@factorialco/rjsf-f0 2.0.0 → 2.1.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.
@@ -1,31 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const hr=require("@rjsf/core"),I=require("react/jsx-runtime"),j=require("@rjsf/utils"),Ae=require("react"),pe=require("@factorialco/f0-react"),Ne=require("@factorialco/f0-react/icons/app");function _i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ji=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ni={};function wt(e,n){return(Ni.jsx?Mi:ji).test(e)}const Bi=/[ \t\n\f\r]/g;function Ui(e){return typeof e=="object"?e.type==="text"?St(e.value):!1:St(e)}function St(e){return e.replace(Bi,"")===""}class en{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}en.prototype.normal={};en.prototype.property={};en.prototype.space=void 0;function pr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new en(t,r,n)}function Nn(e){return e.toLowerCase()}class te{constructor(n,t){this.attribute=t,this.property=n}}te.prototype.attribute="";te.prototype.booleanish=!1;te.prototype.boolean=!1;te.prototype.commaOrSpaceSeparated=!1;te.prototype.commaSeparated=!1;te.prototype.defined=!1;te.prototype.mustUseProperty=!1;te.prototype.number=!1;te.prototype.overloadedBoolean=!1;te.prototype.property="";te.prototype.spaceSeparated=!1;te.prototype.space=void 0;let Hi=0;const z=Pe(),Q=Pe(),Bn=Pe(),T=Pe(),Y=Pe(),ve=Pe(),ie=Pe();function Pe(){return 2**++Hi}const Un=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:Q,commaOrSpaceSeparated:ie,commaSeparated:ve,number:T,overloadedBoolean:Bn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Sn=Object.keys(Un);class Kn extends te{constructor(n,t,r,i){let o=-1;if(super(n,t),Ct(this,"space",i),typeof r=="number")for(;++o<Sn.length;){const l=Sn[o];Ct(this,Sn[o],(r&Un[l])===Un[l])}}}Kn.prototype.defined=!0;function Ct(e,n,t){t&&(e[n]=t)}function Be(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Kn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Nn(r)]=r,t[Nn(o.attribute)]=r}return new en(n,t,e.space)}const mr=Be({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:T,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:Q,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function dr(e,n){return n in e?e[n]:n}function gr(e,n){return dr(e,n.toLowerCase())}const qi=Be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alpha:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:Y,autoFocus:z,autoPlay:z,blocking:Y,capture:null,charSet:null,checked:z,cite:null,className:Y,closedBy:null,colorSpace:null,cols:T,colSpan:T,command:null,commandFor:null,content:null,contentEditable:Q,controls:z,controlsList:Y,coords:T|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:Bn,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:Y,height:T,hidden:Bn,high:T,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:Y,itemRef:Y,itemScope:z,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:T,pattern:null,ping:Y,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:Y,required:z,reversed:z,rows:T,rowSpan:T,sandbox:Y,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootCustomElementRegistry:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shadowRootSerializable:z,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:Q,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:z,disablePictureInPicture:z,disableRemotePlayback:z,exportParts:ve,part:Y,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:gr}),Vi=Be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ie,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:Y,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ie,rev:ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ie,requiredFeatures:ie,requiredFonts:ie,requiredFormats:ie,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ie,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),yr=Be({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),xr=Be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gr}),kr=Be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),$i={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"},Wi=/[A-Z]/g,Et=/-[a-z]/g,Yi=/^data[-\w.:]+$/i;function Xi(e,n){const t=Nn(n);let r=n,i=te;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Yi.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Et,Gi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Et.test(o)){let l=o.replace(Wi,Qi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Kn}return new i(r,n)}function Qi(e){return"-"+e.toLowerCase()}function Gi(e){return e.charAt(1).toUpperCase()}const Ki=pr([mr,qi,yr,xr,kr],"html"),Jn=pr([mr,Vi,yr,xr,kr],"svg");function Ji(e){return e.join(" ").trim()}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},Cn,Tt;function Zi(){if(Tt)return Cn;Tt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
2
- `,s="/",f="*",c="",p="comment",h="declaration";function g(S,y){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];y=y||{};var E=1,C=1;function R(L){var v=L.match(n);v&&(E+=v.length);var $=L.lastIndexOf(u);C=~$?L.length-$:C+L.length}function _(){var L={line:E,column:C};return function(v){return v.position=new w(L),H(),v}}function w(L){this.start=L,this.end={line:E,column:C},this.source=y.source}w.prototype.content=S;function N(L){var v=new Error(y.source+":"+E+":"+C+": "+L);if(v.reason=L,v.filename=y.source,v.line=E,v.column=C,v.source=S,!y.silent)throw v}function q(L){var v=L.exec(S);if(v){var $=v[0];return R($),S=S.slice($.length),v}}function H(){q(t)}function x(L){var v;for(L=L||[];v=F();)v!==!1&&L.push(v);return L}function F(){var L=_();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var v=2;c!=S.charAt(v)&&(f!=S.charAt(v)||s!=S.charAt(v+1));)++v;if(v+=2,c===S.charAt(v-1))return N("End of comment missing");var $=S.slice(2,v-2);return C+=2,R($),S=S.slice(v),C+=2,L({type:p,comment:$})}}function P(){var L=_(),v=q(r);if(v){if(F(),!q(i))return N("property missing ':'");var $=q(o),G=L({type:h,property:k(v[0].replace(e,c)),value:$?k($[0].replace(e,c)):c});return q(l),G}}function V(){var L=[];x(L);for(var v;v=P();)v!==!1&&(L.push(v),x(L));return L}return H(),V()}function k(S){return S?S.replace(a,c):c}return Cn=g,Cn}var It;function el(){if(It)return Oe;It=1;var e=Oe&&Oe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=t;const n=e(Zi());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return Oe}var $e={},At;function nl(){if(At)return $e;At=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(n,l))};return $e.camelCase=u,$e}var We,vt;function tl(){if(vt)return We;vt=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(el()),t=nl();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,t.camelCase)(a,o)]=u)}),l}return r.default=r,We=r,We}var rl=tl();const il=br(rl),wr=Sr("end"),Zn=Sr("start");function Sr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ll(e){const n=Zn(e),t=wr(e);if(n&&t)return{start:n,end:t}}function Qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ft(e.position):"start"in e||"end"in e?Ft(e):"line"in e||"column"in e?Hn(e):""}function Hn(e){return Pt(e&&e.line)+":"+Pt(e&&e.column)}function Ft(e){return Hn(e&&e.start)+"-"+Hn(e&&e.end)}function Pt(e){return e&&typeof e=="number"?e:1}class Z extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;const et={}.hasOwnProperty,ol=new Map,al=/[A-Z]/g,ul=new Set(["table","tbody","thead","tfoot","tr"]),sl=new Set(["td","th"]),Cr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=xl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Jn:Ki,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Er(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Er(e,n,t){if(n.type==="element")return fl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return hl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ml(e,n,t);if(n.type==="mdxjsEsm")return pl(e,n);if(n.type==="root")return dl(e,n,t);if(n.type==="text")return gl(e,n)}function fl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(n);const o=Ir(e,n.tagName,!1),l=kl(e,n);let a=tt(e,n);return ul.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ui(u):!0})),Tr(e,l,o,n),nt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function hl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Je(e,n.position)}function pl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Je(e,n.position)}function ml(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Ir(e,n.name,!0),l=bl(e,n),a=tt(e,n);return Tr(e,l,o,n),nt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function dl(e,n,t){const r={};return nt(r,tt(e,n)),e.create(n,e.Fragment,r,t)}function gl(e,n){return n.value}function Tr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function nt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function yl(e,n,t){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?t:n;return a?s(o,l,a):s(o,l)}}function xl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=Zn(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function kl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&et.call(n.properties,i)){const o=wl(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&sl.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function bl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Je(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Je(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function tt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ol;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=Er(e,o,l);a!==void 0&&t.push(a)}return t}function wl(e,n,t){const r=Xi(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?_i(t):Ji(t)),r.property==="style"){let i=typeof t=="object"?t:Sl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Cl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?$i[r.property]||r.property:r.attribute,t]}}function Sl(e,n){try{return il(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Cr+"#cannot-parse-style-attribute",i}}function Ir(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=wt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=wt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return et.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Je(e)}function Je(e,n){const t=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Cr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Cl(e){const n={};let t;for(t in e)et.call(e,t)&&(n[El(t)]=e[t]);return n}function El(e){let n=e.replace(al,Tl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Tl(e){return"-"+e.toLowerCase()}const En={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"]},Il={};function rt(e,n){const t=Il,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ar(e,r,i)}function Ar(e,n,t){if(Al(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dt(e.children,n,t)}return Array.isArray(e)?Dt(e,n,t):""}function Dt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ar(e[i],n,t);return r.join("")}function Al(e){return!!(e&&typeof e=="object")}const Lt=document.createElement("i");function it(e){const n="&"+e+";";Lt.innerHTML=n;const t=Lt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function le(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function oe(e,n){return e.length>0?(le(e,e.length,0,n),e):n}const zt={}.hasOwnProperty;function vr(e){const n={};let t=-1;for(;++t<e.length;)vl(n,e[t]);return n}function vl(e,n){let t;for(t in n){const i=(zt.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){zt.call(i,l)||(i[l]=[]);const a=o[l];Fl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Fl(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);le(e,0,0,r)}function Fr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ee=Se(/[A-Za-z]/),J=Se(/[\dA-Za-z]/),Pl=Se(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return e!==null&&(e<32||e===127)}const qn=Se(/\d/),Dl=Se(/[\dA-Fa-f]/),Ll=Se(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}const gn=Se(new RegExp("\\p{P}|\\p{S}","u")),Fe=Se(/\s/);function Se(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ue(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&J(e.charCodeAt(t+1))&&J(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return M(u)?(e.enter(t),a(u)):n(u)}function a(u){return M(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const zl={tokenize:Ol};function Ol(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Rl={tokenize:_l},Ot={tokenize:jl};function _l(e){const n=this,t=[];let r=0,i,o,l;return a;function a(C){if(r<t.length){const R=t[r];return n.containerState=R[1],e.attempt(R[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const R=n.events.length;let _=R,w;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){w=n.events[_][1].end;break}y(r);let N=R;for(;N<n.events.length;)n.events[N][1].end={...w},N++;return le(n.events,_+1,0,n.events.slice(R)),n.events.length=N,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ot,f,c)(C)}function f(C){return i&&E(),y(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(C)}function p(C){return n.containerState={},e.attempt(Ot,h,g)(C)}function h(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function g(C){if(C===null){i&&E(),y(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(C)}function k(C){if(C===null){S(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return D(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),k)}function S(C,R){const _=n.sliceStream(C);if(R&&_.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(_),n.parser.lazy[C.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const N=n.events.length;let q=N,H,x;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(H){x=n.events[q][1].end;break}H=!0}for(y(r),w=N;w<n.events.length;)n.events[w][1].end={...x},w++;le(n.events,q+1,0,n.events.slice(N)),n.events.length=w}}function y(C){let R=t.length;for(;R-- >C;){const _=t[R];n.containerState=_[1],_[0].exit.call(n,e)}t.length=C}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function jl(e,n,t){return U(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function je(e){if(e===null||X(e)||Fe(e))return 1;if(gn(e))return 2}function yn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Vn={name:"attention",resolveAll:Ml,tokenize:Nl};function Ml(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Rt(c,-u),Rt(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=oe(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=oe(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=oe(s,yn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=oe(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=oe(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,le(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Nl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=je(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=je(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function Rt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Bl={name:"autolink",tokenize:Ul};function Ul(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ee(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||J(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||J(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||fn(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Pl(h)?(e.consume(h),s):t(h)}function f(h){return J(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||J(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const nn={partial:!0,tokenize:Hl};function Hl(e,n,t){return r;function r(o){return M(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?n(o):t(o)}}const Pr={continuation:{tokenize:Vl},exit:$l,name:"blockQuote",tokenize:ql};function ql(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return M(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Vl(e,n,t){const r=this;return i;function i(l){return M(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Pr,n,t)(l)}}function $l(e){e.exit("blockQuote")}const Dr={name:"characterEscape",tokenize:Wl};function Wl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ll(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Lr={name:"characterReference",tokenize:Yl};function Yl(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=J,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Dl,f):(e.enter("characterReferenceValue"),o=7,l=qn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===J&&!it(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const _t={partial:!0,tokenize:Ql},jt={concrete:!0,name:"codeFenced",tokenize:Xl};function Xl(e,n,t){const r=this,i={partial:!0,tokenize:_};let o=0,l=0,a;return u;function u(w){return s(w)}function s(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),M(w)?U(e,c,"whitespace")(w):c(w))}function c(w){return w===null||D(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(_t,k,R)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||D(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,h,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),p)}function h(w){return w===null||D(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||D(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?t(w):(e.consume(w),g)}function k(w){return e.attempt(i,R,S)(w)}function S(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&M(w)?U(e,E,"linePrefix",o+1)(w):E(w)}function E(w){return w===null||D(w)?e.check(_t,k,R)(w):(e.enter("codeFlowValue"),C(w))}function C(w){return w===null||D(w)?(e.exit("codeFlowValue"),E(w)):(e.consume(w),C)}function R(w){return e.exit("codeFenced"),n(w)}function _(w,N,q){let H=0;return x;function x(v){return w.enter("lineEnding"),w.consume(v),w.exit("lineEnding"),F}function F(v){return w.enter("codeFencedFence"),M(v)?U(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):P(v)}function P(v){return v===a?(w.enter("codeFencedFenceSequence"),V(v)):q(v)}function V(v){return v===a?(H++,w.consume(v),V):H>=l?(w.exit("codeFencedFenceSequence"),M(v)?U(w,L,"whitespace")(v):L(v)):q(v)}function L(v){return v===null||D(v)?(w.exit("codeFencedFence"),N(v)):q(v)}}}function Ql(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Tn={name:"codeIndented",tokenize:Kl},Gl={partial:!0,tokenize:Jl};function Kl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):D(s)?e.attempt(Gl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||D(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Jl(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):D(l)?i(l):t(l)}}const Zl={name:"codeText",previous:no,resolve:eo,tokenize:to};function eo(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function no(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function to(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):D(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||D(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class ro{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ye(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ye(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ye(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ye(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ye(this.left,t.reverse())}}}function Ye(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function zr(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new ro(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,io(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return le(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function io(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,g=0,k=0;const S=[k];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,S.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const y=a.slice(S[p],S[p+1]),E=o.pop();u.push([E,E+y.length-1]),e.splice(E,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[g+u[p][0]]=g+u[p][1],g+=u[p][1]-u[p][0]-1;return s}const lo={resolve:ao,tokenize:uo},oo={partial:!0,tokenize:so};function ao(e){return zr(e),e}function uo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):D(a)?e.check(oo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function so(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||D(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Or(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||fn(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||D(y)?t(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function k(y){return!f&&(y===null||y===41||X(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<s&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||fn(y)?t(y):(e.consume(y),y===92?S:k)}function S(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function Rr(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||D(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!M(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function _r(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),U(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||D(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ge(e,n){let t;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):M(i)?U(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const co={name:"definition",tokenize:ho},fo={partial:!0,tokenize:po};function ho(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Rr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return X(h)?Ge(e,s)(h):s(h)}function s(h){return Or(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(fo,c,c)(h)}function c(h){return M(h)?U(e,p,"whitespace")(h):p(h)}function p(h){return h===null||D(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function po(e,n,t){return r;function r(a){return X(a)?Ge(e,i)(a):t(a)}function i(a){return _r(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return M(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?n(a):t(a)}}const mo={name:"hardBreakEscape",tokenize:go};function go(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const yo={name:"headingAtx",resolve:xo,tokenize:ko};function xo(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},le(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function ko(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||X(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||D(f)?(e.exit("atxHeading"),n(f)):M(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||X(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const bo=["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"],Mt=["pre","script","style","textarea"],wo={concrete:!0,name:"htmlFlow",resolveTo:Eo,tokenize:To},So={partial:!0,tokenize:Ao},Co={partial:!0,tokenize:Io};function Eo(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function To(e,n,t){const r=this;let i,o,l,a,u;return s;function s(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,k):d===63?(e.consume(d),i=3,r.interrupt?n:m):ee(d)?(e.consume(d),l=String.fromCharCode(d),S):t(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ee(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function h(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function g(d){const se="CDATA[";return d===se.charCodeAt(a++)?(e.consume(d),a===se.length?r.interrupt?n:P:g):t(d)}function k(d){return ee(d)?(e.consume(d),l=String.fromCharCode(d),S):t(d)}function S(d){if(d===null||d===47||d===62||X(d)){const se=d===47,Ce=l.toLowerCase();return!se&&!o&&Mt.includes(Ce)?(i=1,r.interrupt?n(d):P(d)):bo.includes(l.toLowerCase())?(i=6,se?(e.consume(d),y):r.interrupt?n(d):P(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):o?E(d):C(d))}return d===45||J(d)?(e.consume(d),l+=String.fromCharCode(d),S):t(d)}function y(d){return d===62?(e.consume(d),r.interrupt?n:P):t(d)}function E(d){return M(d)?(e.consume(d),E):x(d)}function C(d){return d===47?(e.consume(d),x):d===58||d===95||ee(d)?(e.consume(d),R):M(d)?(e.consume(d),C):x(d)}function R(d){return d===45||d===46||d===58||d===95||J(d)?(e.consume(d),R):_(d)}function _(d){return d===61?(e.consume(d),w):M(d)?(e.consume(d),_):C(d)}function w(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),u=d,N):M(d)?(e.consume(d),w):q(d)}function N(d){return d===u?(e.consume(d),u=null,H):d===null||D(d)?t(d):(e.consume(d),N)}function q(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||X(d)?_(d):(e.consume(d),q)}function H(d){return d===47||d===62||M(d)?C(d):t(d)}function x(d){return d===62?(e.consume(d),F):t(d)}function F(d){return d===null||D(d)?P(d):M(d)?(e.consume(d),F):t(d)}function P(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),G):d===62&&i===4?(e.consume(d),ue):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),de):D(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(So,ge,V)(d)):d===null||D(d)?(e.exit("htmlFlowData"),V(d)):(e.consume(d),P)}function V(d){return e.check(Co,L,ge)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),v}function v(d){return d===null||D(d)?V(d):(e.enter("htmlFlowData"),P(d))}function $(d){return d===45?(e.consume(d),m):P(d)}function G(d){return d===47?(e.consume(d),l="",ae):P(d)}function ae(d){if(d===62){const se=l.toLowerCase();return Mt.includes(se)?(e.consume(d),ue):P(d)}return ee(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ae):P(d)}function de(d){return d===93?(e.consume(d),m):P(d)}function m(d){return d===62?(e.consume(d),ue):d===45&&i===2?(e.consume(d),m):P(d)}function ue(d){return d===null||D(d)?(e.exit("htmlFlowData"),ge(d)):(e.consume(d),ue)}function ge(d){return e.exit("htmlFlow"),n(d)}}function Io(e,n,t){const r=this;return i;function i(l){return D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Ao(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nn,n,t)}}const vo={name:"htmlText",tokenize:Fo};function Fo(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),_):m===63?(e.consume(m),C):ee(m)?(e.consume(m),q):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ee(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):D(m)?(l=c,G(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?$(m):m===45?p(m):c(m)}function g(m){const ue="CDATA[";return m===ue.charCodeAt(o++)?(e.consume(m),o===ue.length?k:g):t(m)}function k(m){return m===null?t(m):m===93?(e.consume(m),S):D(m)?(l=k,G(m)):(e.consume(m),k)}function S(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?$(m):m===93?(e.consume(m),y):k(m)}function E(m){return m===null||m===62?$(m):D(m)?(l=E,G(m)):(e.consume(m),E)}function C(m){return m===null?t(m):m===63?(e.consume(m),R):D(m)?(l=C,G(m)):(e.consume(m),C)}function R(m){return m===62?$(m):C(m)}function _(m){return ee(m)?(e.consume(m),w):t(m)}function w(m){return m===45||J(m)?(e.consume(m),w):N(m)}function N(m){return D(m)?(l=N,G(m)):M(m)?(e.consume(m),N):$(m)}function q(m){return m===45||J(m)?(e.consume(m),q):m===47||m===62||X(m)?H(m):t(m)}function H(m){return m===47?(e.consume(m),$):m===58||m===95||ee(m)?(e.consume(m),x):D(m)?(l=H,G(m)):M(m)?(e.consume(m),H):$(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):F(m)}function F(m){return m===61?(e.consume(m),P):D(m)?(l=F,G(m)):M(m)?(e.consume(m),F):H(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,V):D(m)?(l=P,G(m)):M(m)?(e.consume(m),P):(e.consume(m),L)}function V(m){return m===i?(e.consume(m),i=void 0,v):m===null?t(m):D(m)?(l=V,G(m)):(e.consume(m),V)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||X(m)?H(m):(e.consume(m),L)}function v(m){return m===47||m===62||X(m)?H(m):t(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function G(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ae}function ae(m){return M(m)?U(e,de,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):de(m)}function de(m){return e.enter("htmlTextData"),l(m)}}const lt={name:"labelEnd",resolveAll:zo,resolveTo:Oo,tokenize:Ro},Po={tokenize:_o},Do={tokenize:jo},Lo={tokenize:Mo};function zo(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&le(e,0,e.length,t),e}function Oo(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=oe(a,e.slice(o+1,o+r+3)),a=oe(a,[["enter",f,n]]),a=oe(a,yn(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=oe(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=oe(a,e.slice(l+1)),a=oe(a,[["exit",u,n]]),le(e,o,e.length,a),e}function Ro(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(fe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(Po,f,l?f:c)(p):p===91?e.attempt(Do,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Lo,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function _o(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return X(c)?Ge(e,o)(c):o(c)}function o(c){return c===41?f(c):Or(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return X(c)?Ge(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?_r(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return X(c)?Ge(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function jo(e,n,t){const r=this;return i;function i(a){return Rr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Mo(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const No={name:"labelStartImage",resolveAll:lt.resolveAll,tokenize:Bo};function Bo(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Uo={name:"labelStartLink",resolveAll:lt.resolveAll,tokenize:Ho};function Ho(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const In={name:"lineEnding",tokenize:qo};function qo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:Vo};function Vo(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||D(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),M(s)?U(e,a,"whitespace")(s):a(s))}}const ne={continuation:{tokenize:Xo},exit:Go,name:"list",tokenize:Yo},$o={partial:!0,tokenize:Ko},Wo={partial:!0,tokenize:Qo};function Yo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:qn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(cn,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return qn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(nn,r.interrupt?t:f,e.attempt($o,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return M(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Xo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(nn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wo,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(ne,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Qo(e,n,t){const r=this;return U(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Go(e){e.exit(this.containerState.type)}function Ko(e,n,t){const r=this;return U(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!M(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Nt={name:"setextUnderline",resolveTo:Jo,tokenize:Zo};function Jo(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Zo(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),M(s)?U(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||D(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const ea={tokenize:na};function na(e){const n=this,t=e.attempt(nn,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lo,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ta={resolveAll:Mr()},ra=jr("string"),ia=jr("text");function jr(e){return{resolveAll:Mr(e==="text"?la:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Mr(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function la(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const oa={42:ne,43:ne,45:ne,48:ne,49:ne,50:ne,51:ne,52:ne,53:ne,54:ne,55:ne,56:ne,57:ne,62:Pr},aa={91:co},ua={[-2]:Tn,[-1]:Tn,32:Tn},sa={35:yo,42:cn,45:[Nt,cn],60:wo,61:Nt,95:cn,96:jt,126:jt},ca={38:Lr,92:Dr},fa={[-5]:In,[-4]:In,[-3]:In,33:No,38:Lr,42:Vn,60:[Bl,vo],91:Uo,92:[mo,Dr],93:lt,95:Vn,96:Zl},ha={null:[Vn,ta]},pa={null:[42,95]},ma={null:[]},da=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pa,contentInitial:aa,disable:ma,document:oa,flow:sa,flowInitial:ua,insideSpan:ha,string:ca,text:fa},Symbol.toStringTag,{value:"Module"}));function ga(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:N(_),check:N(w),consume:E,enter:C,exit:R,interrupt:N(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(F){return l=oe(l,F),S(),l[l.length-1]!==null?[]:(q(n,0),s.events=yn(o,s.events,s),s.events)}function p(F,P){return xa(h(F),P)}function h(F){return ya(l,F)}function g(){const{_bufferIndex:F,_index:P,line:V,column:L,offset:v}=r;return{_bufferIndex:F,_index:P,line:V,column:L,offset:v}}function k(F){i[F.line]=F.column,x()}function S(){let F;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(F){f=f(F)}function E(F){D(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,x()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=F}function C(F,P){const V=P||{};return V.type=F,V.start=g(),s.events.push(["enter",V,s]),a.push(V),V}function R(F){const P=a.pop();return P.end=g(),s.events.push(["exit",P,s]),P}function _(F,P){q(F,P.from)}function w(F,P){P.restore()}function N(F,P){return V;function V(L,v,$){let G,ae,de,m;return Array.isArray(L)?ge(L):"tokenize"in L?ge([L]):ue(L);function ue(K){return He;function He(be){const De=be!==null&&K[be],Le=be!==null&&K.null,ln=[...Array.isArray(De)?De:De?[De]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return ge(ln)(be)}}function ge(K){return G=K,ae=0,K.length===0?$:d(K[ae])}function d(K){return He;function He(be){return m=H(),de=K,K.partial||(s.currentConstruct=K),K.name&&s.parser.constructs.disable.null.includes(K.name)?Ce():K.tokenize.call(P?Object.assign(Object.create(s),P):s,u,se,Ce)(be)}}function se(K){return F(de,m),v}function Ce(K){return m.restore(),++ae<G.length?d(G[ae]):$}}}function q(F,P){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&le(s.events,P,s.events.length-P,F.resolve(s.events.slice(P),s)),F.resolveTo&&(s.events=F.resolveTo(s.events,s))}function H(){const F=g(),P=s.previous,V=s.currentConstruct,L=s.events.length,v=Array.from(a);return{from:L,restore:$};function $(){r=F,s.previous=P,s.currentConstruct=V,s.events.length=L,a=v,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ya(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function xa(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pr=require("@rjsf/core"),C=require("react/jsx-runtime"),_=require("@rjsf/utils"),Ae=require("react"),ae=require("@factorialco/f0-react"),Ne=require("@factorialco/f0-react/icons/app"),Mi=require("@factorialco/f0-react/dist/experimental");function Ni(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Bi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi={};function St(e,t){return(Hi.jsx?Ui:Bi).test(e)}const qi=/[ \t\n\f\r]/g;function Vi(e){return typeof e=="object"?e.type==="text"?Ct(e.value):!1:Ct(e)}function Ct(e){return e.replace(qi,"")===""}class en{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}en.prototype.normal={};en.prototype.property={};en.prototype.space=void 0;function mr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new en(n,r,t)}function Nn(e){return e.toLowerCase()}class te{constructor(t,n){this.attribute=n,this.property=t}}te.prototype.attribute="";te.prototype.booleanish=!1;te.prototype.boolean=!1;te.prototype.commaOrSpaceSeparated=!1;te.prototype.commaSeparated=!1;te.prototype.defined=!1;te.prototype.mustUseProperty=!1;te.prototype.number=!1;te.prototype.overloadedBoolean=!1;te.prototype.property="";te.prototype.spaceSeparated=!1;te.prototype.space=void 0;let $i=0;const z=De(),Q=De(),Bn=De(),I=De(),Y=De(),ve=De(),ie=De();function De(){return 2**++$i}const Un=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:Q,commaOrSpaceSeparated:ie,commaSeparated:ve,number:I,overloadedBoolean:Bn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Sn=Object.keys(Un);class Kn extends te{constructor(t,n,r,i){let o=-1;if(super(t,n),Et(this,"space",i),typeof r=="number")for(;++o<Sn.length;){const l=Sn[o];Et(this,Sn[o],(r&Un[l])===Un[l])}}}Kn.prototype.defined=!0;function Et(e,t,n){n&&(e[t]=n)}function Be(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Kn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Nn(r)]=r,n[Nn(o.attribute)]=r}return new en(t,n,e.space)}const dr=Be({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Q,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function gr(e,t){return t in e?e[t]:t}function yr(e,t){return gr(e,t.toLowerCase())}const Wi=Be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alpha:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:Y,autoFocus:z,autoPlay:z,blocking:Y,capture:null,charSet:null,checked:z,cite:null,className:Y,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Q,controls:z,controlsList:Y,coords:I|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:Bn,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:Y,height:I,hidden:Bn,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:Y,itemRef:Y,itemScope:z,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:Y,required:z,reversed:z,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootCustomElementRegistry:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shadowRootSerializable:z,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:Q,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:z,disablePictureInPicture:z,disableRemotePlayback:z,exportParts:ve,part:Y,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:yr}),Yi=Be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ie,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ie,rev:ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ie,requiredFeatures:ie,requiredFonts:ie,requiredFormats:ie,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ie,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=Be({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),kr=Be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),br=Be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Xi={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"},Qi=/[A-Z]/g,Tt=/-[a-z]/g,Gi=/^data[-\w.:]+$/i;function Ki(e,t){const n=Nn(t);let r=t,i=te;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tt,Zi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tt.test(o)){let l=o.replace(Qi,Ji);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Kn}return new i(r,t)}function Ji(e){return"-"+e.toLowerCase()}function Zi(e){return e.charAt(1).toUpperCase()}const el=mr([dr,Wi,xr,kr,br],"html"),Jn=mr([dr,Yi,xr,kr,br],"svg");function nl(e){return e.join(" ").trim()}function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var je={},Cn,It;function tl(){if(It)return Cn;It=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
2
+ `,s="/",f="*",c="",p="comment",h="declaration";function g(S,y){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];y=y||{};var T=1,E=1;function O(L){var v=L.match(t);v&&(T+=v.length);var $=L.lastIndexOf(u);E=~$?L.length-$:E+L.length}function R(){var L={line:T,column:E};return function(v){return v.position=new w(L),H(),v}}function w(L){this.start=L,this.end={line:T,column:E},this.source=y.source}w.prototype.content=S;function N(L){var v=new Error(y.source+":"+T+":"+E+": "+L);if(v.reason=L,v.filename=y.source,v.line=T,v.column=E,v.source=S,!y.silent)throw v}function q(L){var v=L.exec(S);if(v){var $=v[0];return O($),S=S.slice($.length),v}}function H(){q(n)}function x(L){var v;for(L=L||[];v=F();)v!==!1&&L.push(v);return L}function F(){var L=R();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var v=2;c!=S.charAt(v)&&(f!=S.charAt(v)||s!=S.charAt(v+1));)++v;if(v+=2,c===S.charAt(v-1))return N("End of comment missing");var $=S.slice(2,v-2);return E+=2,O($),S=S.slice(v),E+=2,L({type:p,comment:$})}}function D(){var L=R(),v=q(r);if(v){if(F(),!q(i))return N("property missing ':'");var $=q(o),G=L({type:h,property:k(v[0].replace(e,c)),value:$?k($[0].replace(e,c)):c});return q(l),G}}function V(){var L=[];x(L);for(var v;v=D();)v!==!1&&(L.push(v),x(L));return L}return H(),V()}function k(S){return S?S.replace(a,c):c}return Cn=g,Cn}var At;function rl(){if(At)return je;At=1;var e=je&&je.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(je,"__esModule",{value:!0}),je.default=n;const t=e(tl());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return je}var $e={},vt;function il(){if(vt)return $e;vt=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(t,l))};return $e.camelCase=u,$e}var We,Ft;function ll(){if(Ft)return We;Ft=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(rl()),n=il();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,u){a&&u&&(l[(0,n.camelCase)(a,o)]=u)}),l}return r.default=r,We=r,We}var ol=ll();const al=wr(ol),Sr=Cr("end"),Zn=Cr("start");function Cr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ul(e){const t=Zn(e),n=Sr(e);if(t&&n)return{start:t,end:n}}function Qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dt(e.position):"start"in e||"end"in e?Dt(e):"line"in e||"column"in e?Hn(e):""}function Hn(e){return Pt(e&&e.line)+":"+Pt(e&&e.column)}function Dt(e){return Hn(e&&e.start)+"-"+Hn(e&&e.end)}function Pt(e){return e&&typeof e=="number"?e:1}class Z extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;const et={}.hasOwnProperty,sl=new Map,cl=/[A-Z]/g,fl=new Set(["table","tbody","thead","tfoot","tr"]),hl=new Set(["td","th"]),Er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=bl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Jn:el,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Tr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tr(e,t,n){if(t.type==="element")return ml(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yl(e,t,n);if(t.type==="mdxjsEsm")return gl(e,t);if(t.type==="root")return xl(e,t,n);if(t.type==="text")return kl(e,t)}function ml(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=Ar(e,t.tagName,!1),l=Sl(e,t);let a=tt(e,t);return fl.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Vi(u):!0})),Ir(e,l,o,t),nt(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function dl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Je(e,t.position)}function gl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Je(e,t.position)}function yl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Ar(e,t.name,!0),l=Cl(e,t),a=tt(e,t);return Ir(e,l,o,t),nt(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function xl(e,t,n){const r={};return nt(r,tt(e,t)),e.create(t,e.Fragment,r,n)}function kl(e,t){return t.value}function Ir(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bl(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function wl(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=Zn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Sl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&et.call(t.properties,i)){const o=El(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&hl.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Cl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Je(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Je(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function tt(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=Tr(e,o,l);a!==void 0&&n.push(a)}return n}function El(e,t,n){const r=Ki(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ni(n):nl(n)),r.property==="style"){let i=typeof n=="object"?n:Tl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Il(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Xi[r.property]||r.property:r.attribute,n]}}function Tl(e,t){try{return al(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Er+"#cannot-parse-style-attribute",i}}function Ar(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=St(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=St(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return et.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Je(e)}function Je(e,t){const n=new Z("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=Er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Il(e){const t={};let n;for(n in e)et.call(e,n)&&(t[Al(n)]=e[n]);return t}function Al(e){let t=e.replace(cl,vl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vl(e){return"-"+e.toLowerCase()}const En={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"]},Fl={};function rt(e,t){const n=Fl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return vr(e,r,i)}function vr(e,t,n){if(Dl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Lt(e.children,t,n)}return Array.isArray(e)?Lt(e,t,n):""}function Lt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=vr(e[i],t,n);return r.join("")}function Dl(e){return!!(e&&typeof e=="object")}const zt=document.createElement("i");function it(e){const t="&"+e+";";zt.innerHTML=t;const n=zt.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function le(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function oe(e,t){return e.length>0?(le(e,e.length,0,t),e):t}const jt={}.hasOwnProperty;function Fr(e){const t={};let n=-1;for(;++n<e.length;)Pl(t,e[n]);return t}function Pl(e,t){let n;for(n in t){const i=(jt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){jt.call(i,l)||(i[l]=[]);const a=o[l];Ll(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Ll(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);le(e,0,0,r)}function Dr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function he(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ee=Se(/[A-Za-z]/),J=Se(/[\dA-Za-z]/),zl=Se(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return e!==null&&(e<32||e===127)}const qn=Se(/\d/),jl=Se(/[\dA-Fa-f]/),Ol=Se(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}const gn=Se(new RegExp("\\p{P}|\\p{S}","u")),Fe=Se(/\s/);function Se(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ue(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&J(e.charCodeAt(n+1))&&J(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function U(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return M(u)?(e.enter(n),a(u)):t(u)}function a(u){return M(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const Rl={tokenize:_l};function _l(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Ml={tokenize:Nl},Ot={tokenize:Bl};function Nl(e){const t=this,n=[];let r=0,i,o,l;return a;function a(E){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,u,s)(E)}return s(E)}function u(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const O=t.events.length;let R=O,w;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){w=t.events[R][1].end;break}y(r);let N=O;for(;N<t.events.length;)t.events[N][1].end={...w},N++;return le(t.events,R+1,0,t.events.slice(O)),t.events.length=N,s(E)}return a(E)}function s(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return g(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ot,f,c)(E)}function f(E){return i&&T(),y(r),p(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(E)}function p(E){return t.containerState={},e.attempt(Ot,h,g)(E)}function h(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function g(E){if(E===null){i&&T(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(E)}function k(E){if(E===null){S(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return P(E)?(e.consume(E),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(E),k)}function S(E,O){const R=t.sliceStream(E);if(O&&R.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(R),t.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const N=t.events.length;let q=N,H,x;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(H){x=t.events[q][1].end;break}H=!0}for(y(r),w=N;w<t.events.length;)t.events[w][1].end={...x},w++;le(t.events,q+1,0,t.events.slice(N)),t.events.length=w}}function y(E){let O=n.length;for(;O-- >E;){const R=n[O];t.containerState=R[1],R[0].exit.call(t,e)}n.length=E}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Bl(e,t,n){return U(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _e(e){if(e===null||X(e)||Fe(e))return 1;if(gn(e))return 2}function yn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Vn={name:"attention",resolveAll:Ul,tokenize:Hl};function Ul(e,t){let n=-1,r,i,o,l,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Rt(c,-u),Rt(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=oe(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=oe(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=oe(s,yn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=oe(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=oe(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,le(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Hl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_e(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=_e(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(u)}}function Rt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ql={name:"autolink",tokenize:Vl};function Vl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ee(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||J(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||J(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||fn(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):zl(h)?(e.consume(h),s):n(h)}function f(h){return J(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||J(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return n(h)}}const nn={partial:!0,tokenize:$l};function $l(e,t,n){return r;function r(o){return M(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?t(o):n(o)}}const Pr={continuation:{tokenize:Yl},exit:Xl,name:"blockQuote",tokenize:Wl};function Wl(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return M(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Yl(e,t,n){const r=this;return i;function i(l){return M(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Pr,t,n)(l)}}function Xl(e){e.exit("blockQuote")}const Lr={name:"characterEscape",tokenize:Ql};function Ql(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ol(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const zr={name:"characterReference",tokenize:Gl};function Gl(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=J,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=jl,f):(e.enter("characterReferenceValue"),o=7,l=qn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===J&&!it(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const _t={partial:!0,tokenize:Jl},Mt={concrete:!0,name:"codeFenced",tokenize:Kl};function Kl(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,l=0,a;return u;function u(w){return s(w)}function s(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?n(w):(e.exit("codeFencedFenceSequence"),M(w)?U(e,c,"whitespace")(w):c(w))}function c(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(_t,k,O)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,h,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),p)}function h(w){return w===null||P(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?n(w):(e.consume(w),g)}function k(w){return e.attempt(i,O,S)(w)}function S(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&M(w)?U(e,T,"linePrefix",o+1)(w):T(w)}function T(w){return w===null||P(w)?e.check(_t,k,O)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||P(w)?(e.exit("codeFlowValue"),T(w)):(e.consume(w),E)}function O(w){return e.exit("codeFenced"),t(w)}function R(w,N,q){let H=0;return x;function x(v){return w.enter("lineEnding"),w.consume(v),w.exit("lineEnding"),F}function F(v){return w.enter("codeFencedFence"),M(v)?U(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):D(v)}function D(v){return v===a?(w.enter("codeFencedFenceSequence"),V(v)):q(v)}function V(v){return v===a?(H++,w.consume(v),V):H>=l?(w.exit("codeFencedFenceSequence"),M(v)?U(w,L,"whitespace")(v):L(v)):q(v)}function L(v){return v===null||P(v)?(w.exit("codeFencedFence"),N(v)):q(v)}}}function Jl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Tn={name:"codeIndented",tokenize:eo},Zl={partial:!0,tokenize:no};function eo(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):P(s)?e.attempt(Zl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||P(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function no(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):P(l)?i(l):n(l)}}const to={name:"codeText",previous:io,resolve:ro,tokenize:lo};function ro(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function io(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lo(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):P(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||P(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class oo{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ye(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ye(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ye(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ye(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ye(this.left,n.reverse())}}}function Ye(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 jr(e){const t={};let n=-1,r,i,o,l,a,u,s;const f=new oo(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ao(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return le(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function ao(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=n,g=0,k=0;const S=[k];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,S.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const y=a.slice(S[p],S[p+1]),T=o.pop();u.push([T,T+y.length-1]),e.splice(T,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[g+u[p][0]]=g+u[p][1],g+=u[p][1]-u[p][0]-1;return s}const uo={resolve:co,tokenize:fo},so={partial:!0,tokenize:ho};function co(e){return jr(e),e}function fo(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):P(a)?e.check(so,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ho(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||P(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Or(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||fn(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||P(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function k(y){return!f&&(y===null||y===41||X(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):f<s&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||fn(y)?n(y):(e.consume(y),y===92?S:k)}function S(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function Rr(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!M(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function _r(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),U(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||P(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ge(e,t){let n;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):M(i)?U(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const po={name:"definition",tokenize:go},mo={partial:!0,tokenize:yo};function go(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Rr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=he(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return X(h)?Ge(e,s)(h):s(h)}function s(h){return Or(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(mo,c,c)(h)}function c(h){return M(h)?U(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function yo(e,t,n){return r;function r(a){return X(a)?Ge(e,i)(a):n(a)}function i(a){return _r(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return M(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||P(a)?t(a):n(a)}}const xo={name:"hardBreakEscape",tokenize:ko};function ko(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const bo={name:"headingAtx",resolve:wo,tokenize:So};function wo(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function So(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||X(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||P(f)?(e.exit("atxHeading"),t(f)):M(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||X(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Co=["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"],Nt=["pre","script","style","textarea"],Eo={concrete:!0,name:"htmlFlow",resolveTo:Ao,tokenize:vo},To={partial:!0,tokenize:Do},Io={partial:!0,tokenize:Fo};function Ao(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vo(e,t,n){const r=this;let i,o,l,a,u;return s;function s(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,k):d===63?(e.consume(d),i=3,r.interrupt?t:m):ee(d)?(e.consume(d),l=String.fromCharCode(d),S):n(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ee(d)?(e.consume(d),i=4,r.interrupt?t:m):n(d)}function h(d){return d===45?(e.consume(d),r.interrupt?t:m):n(d)}function g(d){const ce="CDATA[";return d===ce.charCodeAt(a++)?(e.consume(d),a===ce.length?r.interrupt?t:D:g):n(d)}function k(d){return ee(d)?(e.consume(d),l=String.fromCharCode(d),S):n(d)}function S(d){if(d===null||d===47||d===62||X(d)){const ce=d===47,Ce=l.toLowerCase();return!ce&&!o&&Nt.includes(Ce)?(i=1,r.interrupt?t(d):D(d)):Co.includes(l.toLowerCase())?(i=6,ce?(e.consume(d),y):r.interrupt?t(d):D(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):o?T(d):E(d))}return d===45||J(d)?(e.consume(d),l+=String.fromCharCode(d),S):n(d)}function y(d){return d===62?(e.consume(d),r.interrupt?t:D):n(d)}function T(d){return M(d)?(e.consume(d),T):x(d)}function E(d){return d===47?(e.consume(d),x):d===58||d===95||ee(d)?(e.consume(d),O):M(d)?(e.consume(d),E):x(d)}function O(d){return d===45||d===46||d===58||d===95||J(d)?(e.consume(d),O):R(d)}function R(d){return d===61?(e.consume(d),w):M(d)?(e.consume(d),R):E(d)}function w(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),u=d,N):M(d)?(e.consume(d),w):q(d)}function N(d){return d===u?(e.consume(d),u=null,H):d===null||P(d)?n(d):(e.consume(d),N)}function q(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||X(d)?R(d):(e.consume(d),q)}function H(d){return d===47||d===62||M(d)?E(d):n(d)}function x(d){return d===62?(e.consume(d),F):n(d)}function F(d){return d===null||P(d)?D(d):M(d)?(e.consume(d),F):n(d)}function D(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),G):d===62&&i===4?(e.consume(d),se):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),de):P(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(To,ge,V)(d)):d===null||P(d)?(e.exit("htmlFlowData"),V(d)):(e.consume(d),D)}function V(d){return e.check(Io,L,ge)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),v}function v(d){return d===null||P(d)?V(d):(e.enter("htmlFlowData"),D(d))}function $(d){return d===45?(e.consume(d),m):D(d)}function G(d){return d===47?(e.consume(d),l="",ue):D(d)}function ue(d){if(d===62){const ce=l.toLowerCase();return Nt.includes(ce)?(e.consume(d),se):D(d)}return ee(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ue):D(d)}function de(d){return d===93?(e.consume(d),m):D(d)}function m(d){return d===62?(e.consume(d),se):d===45&&i===2?(e.consume(d),m):D(d)}function se(d){return d===null||P(d)?(e.exit("htmlFlowData"),ge(d)):(e.consume(d),se)}function ge(d){return e.exit("htmlFlow"),t(d)}}function Fo(e,t,n){const r=this;return i;function i(l){return P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Do(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nn,t,n)}}const Po={name:"htmlText",tokenize:Lo};function Lo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),R):m===63?(e.consume(m),E):ee(m)?(e.consume(m),q):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ee(m)?(e.consume(m),T):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):P(m)?(l=c,G(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?$(m):m===45?p(m):c(m)}function g(m){const se="CDATA[";return m===se.charCodeAt(o++)?(e.consume(m),o===se.length?k:g):n(m)}function k(m){return m===null?n(m):m===93?(e.consume(m),S):P(m)?(l=k,G(m)):(e.consume(m),k)}function S(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?$(m):m===93?(e.consume(m),y):k(m)}function T(m){return m===null||m===62?$(m):P(m)?(l=T,G(m)):(e.consume(m),T)}function E(m){return m===null?n(m):m===63?(e.consume(m),O):P(m)?(l=E,G(m)):(e.consume(m),E)}function O(m){return m===62?$(m):E(m)}function R(m){return ee(m)?(e.consume(m),w):n(m)}function w(m){return m===45||J(m)?(e.consume(m),w):N(m)}function N(m){return P(m)?(l=N,G(m)):M(m)?(e.consume(m),N):$(m)}function q(m){return m===45||J(m)?(e.consume(m),q):m===47||m===62||X(m)?H(m):n(m)}function H(m){return m===47?(e.consume(m),$):m===58||m===95||ee(m)?(e.consume(m),x):P(m)?(l=H,G(m)):M(m)?(e.consume(m),H):$(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):F(m)}function F(m){return m===61?(e.consume(m),D):P(m)?(l=F,G(m)):M(m)?(e.consume(m),F):H(m)}function D(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,V):P(m)?(l=D,G(m)):M(m)?(e.consume(m),D):(e.consume(m),L)}function V(m){return m===i?(e.consume(m),i=void 0,v):m===null?n(m):P(m)?(l=V,G(m)):(e.consume(m),V)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||X(m)?H(m):(e.consume(m),L)}function v(m){return m===47||m===62||X(m)?H(m):n(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function G(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ue}function ue(m){return M(m)?U(e,de,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):de(m)}function de(m){return e.enter("htmlTextData"),l(m)}}const lt={name:"labelEnd",resolveAll:Ro,resolveTo:_o,tokenize:Mo},zo={tokenize:No},jo={tokenize:Bo},Oo={tokenize:Uo};function Ro(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&le(e,0,e.length,n),e}function _o(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=oe(a,e.slice(o+1,o+r+3)),a=oe(a,[["enter",f,t]]),a=oe(a,yn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=oe(a,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),a=oe(a,e.slice(l+1)),a=oe(a,[["exit",u,t]]),le(e,o,e.length,a),e}function Mo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(he(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(zo,f,l?f:c)(p):p===91?e.attempt(jo,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Oo,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function No(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return X(c)?Ge(e,o)(c):o(c)}function o(c){return c===41?f(c):Or(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return X(c)?Ge(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?_r(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return X(c)?Ge(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Bo(e,t,n){const r=this;return i;function i(a){return Rr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(he(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Uo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Ho={name:"labelStartImage",resolveAll:lt.resolveAll,tokenize:qo};function qo(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Vo={name:"labelStartLink",resolveAll:lt.resolveAll,tokenize:$o};function $o(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const In={name:"lineEnding",tokenize:Wo};function Wo(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,t,"linePrefix")}}const cn={name:"thematicBreak",tokenize:Yo};function Yo(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||P(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),M(s)?U(e,a,"whitespace")(s):a(s))}}const ne={continuation:{tokenize:Ko},exit:Zo,name:"list",tokenize:Go},Xo={partial:!0,tokenize:ea},Qo={partial:!0,tokenize:Jo};function Go(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:qn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(cn,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return qn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(nn,r.interrupt?n:f,e.attempt(Xo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return M(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ko(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(nn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Qo,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(ne,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Jo(e,t,n){const r=this;return U(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Zo(e){e.exit(this.containerState.type)}function ea(e,t,n){const r=this;return U(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!M(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Bt={name:"setextUnderline",resolveTo:na,tokenize:ta};function na(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function ta(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),M(s)?U(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||P(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const ra={tokenize:ia};function ia(e){const t=this,n=e.attempt(nn,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uo,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const la={resolveAll:Nr()},oa=Mr("string"),aa=Mr("text");function Mr(e){return{resolveAll:Nr(e==="text"?ua:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Nr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function ua(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const sa={42:ne,43:ne,45:ne,48:ne,49:ne,50:ne,51:ne,52:ne,53:ne,54:ne,55:ne,56:ne,57:ne,62:Pr},ca={91:po},fa={[-2]:Tn,[-1]:Tn,32:Tn},ha={35:bo,42:cn,45:[Bt,cn],60:Eo,61:Bt,95:cn,96:Mt,126:Mt},pa={38:zr,92:Lr},ma={[-5]:In,[-4]:In,[-3]:In,33:Ho,38:zr,42:Vn,60:[ql,Po],91:Vo,92:[xo,Lr],93:lt,95:Vn,96:to},da={null:[Vn,la]},ga={null:[42,95]},ya={null:[]},xa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ga,contentInitial:ca,disable:ya,document:sa,flow:ha,flowInitial:fa,insideSpan:da,string:pa,text:ma},Symbol.toStringTag,{value:"Module"}));function ka(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:N(R),check:N(w),consume:T,enter:E,exit:O,interrupt:N(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function c(F){return l=oe(l,F),S(),l[l.length-1]!==null?[]:(q(t,0),s.events=yn(o,s.events,s),s.events)}function p(F,D){return wa(h(F),D)}function h(F){return ba(l,F)}function g(){const{_bufferIndex:F,_index:D,line:V,column:L,offset:v}=r;return{_bufferIndex:F,_index:D,line:V,column:L,offset:v}}function k(F){i[F.line]=F.column,x()}function S(){let F;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<D.length;)y(D.charCodeAt(r._bufferIndex));else y(D)}}function y(F){f=f(F)}function T(F){P(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,x()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=F}function E(F,D){const V=D||{};return V.type=F,V.start=g(),s.events.push(["enter",V,s]),a.push(V),V}function O(F){const D=a.pop();return D.end=g(),s.events.push(["exit",D,s]),D}function R(F,D){q(F,D.from)}function w(F,D){D.restore()}function N(F,D){return V;function V(L,v,$){let G,ue,de,m;return Array.isArray(L)?ge(L):"tokenize"in L?ge([L]):se(L);function se(K){return He;function He(be){const Pe=be!==null&&K[be],Le=be!==null&&K.null,ln=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return ge(ln)(be)}}function ge(K){return G=K,ue=0,K.length===0?$:d(K[ue])}function d(K){return He;function He(be){return m=H(),de=K,K.partial||(s.currentConstruct=K),K.name&&s.parser.constructs.disable.null.includes(K.name)?Ce():K.tokenize.call(D?Object.assign(Object.create(s),D):s,u,ce,Ce)(be)}}function ce(K){return F(de,m),v}function Ce(K){return m.restore(),++ue<G.length?d(G[ue]):$}}}function q(F,D){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&le(s.events,D,s.events.length-D,F.resolve(s.events.slice(D),s)),F.resolveTo&&(s.events=F.resolveTo(s.events,s))}function H(){const F=g(),D=s.previous,V=s.currentConstruct,L=s.events.length,v=Array.from(a);return{from:L,restore:$};function $(){r=F,s.previous=D,s.currentConstruct=V,s.events.length=L,a=v,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ba(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function wa(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
- `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function ka(e){const r={constructs:vr([da,...(e||{}).extensions||[]]),content:i(zl),defined:[],document:i(Rl),flow:i(ea),lazy:{},string:i(ra),text:i(ia)};return r;function i(o){return l;function l(a){return ga(r,o,a)}}}function ba(e){for(;!zr(e););return e}const Bt=/[\0\t\n\r]/g;function wa(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(Bt.lastIndex=c,s=Bt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const Sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ca(e){return e.replace(Sa,Ea)}function Ea(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Fr(t.slice(o?2:1),o?16:10)}return it(t)||e}const Nr={}.hasOwnProperty;function Ta(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ia(t)(ba(ka(t).document().write(wa()(e,n,!0))))}function Ia(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(kt),autolinkProtocol:H,autolinkEmail:H,atxHeading:o(gt),blockQuote:o(Le),characterEscape:H,characterReference:H,codeFenced:o(ln),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ln,l),codeText:o(Ai,l),codeTextData:H,data:H,codeFlowValue:H,definition:o(vi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Fi),hardBreakEscape:o(yt),hardBreakTrailing:o(yt),htmlFlow:o(xt,l),htmlFlowData:H,htmlText:o(xt,l),htmlTextData:H,image:o(Pi),label:l,link:o(kt),listItem:o(Di),listItemValue:p,listOrdered:o(bt,c),listUnordered:o(bt),paragraph:o(Li),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(gt),strong:o(zi),thematicBreak:o(Ri)},exit:{atxHeading:u(),atxHeadingSequence:_,autolink:u(),autolinkEmail:De,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:K,characterReference:He,codeFenced:u(S),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:u(y),codeText:u(v),codeTextData:x,data:x,definition:u(),definitionDestinationString:R,definitionLabelString:E,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u(V),htmlFlowData:x,htmlText:u(L),htmlTextData:x,image:u(G),label:de,labelText:ae,lineEnding:F,link:u($),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:se,resourceDestinationString:m,resourceTitleString:ue,resource:ge,setextHeading:u(q),setextHeadingLineSequence:N,setextHeadingText:w,strong:u(),thematicBreak:u()}};Br(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let A={type:"root",children:[]};const O={stack:[A],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},B=[];let W=-1;for(;++W<b.length;)if(b[W][1].type==="listOrdered"||b[W][1].type==="listUnordered")if(b[W][0]==="enter")B.push(W);else{const ce=B.pop();W=i(b,ce,W)}for(W=-1;++W<b.length;){const ce=n[b[W][0]];Nr.call(ce,b[W][1].type)&&ce[b[W][1].type].call(Object.assign({sliceSerialize:b[W][2].sliceSerialize},O),b[W][1])}if(O.tokenStack.length>0){const ce=O.tokenStack[O.tokenStack.length-1];(ce[1]||Ut).call(O,void 0,ce[0])}for(A.position={start:we(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:we(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<n.transforms.length;)A=n.transforms[W](A)||A;return A}function i(b,A,O){let B=A-1,W=-1,ce=!1,Ee,ye,qe,Ve;for(;++B<=O;){const re=b[B];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?W++:W--,Ve=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(Ee&&!Ve&&!W&&!qe&&(qe=B),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!W&&re[0]==="enter"&&re[1].type==="listItemPrefix"||W===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(Ee){let ze=B;for(ye=void 0;ze--;){const xe=b[ze];if(xe[1].type==="lineEnding"||xe[1].type==="lineEndingBlank"){if(xe[0]==="exit")continue;ye&&(b[ye][1].type="lineEndingBlank",ce=!0),xe[1].type="lineEnding",ye=ze}else if(!(xe[1].type==="linePrefix"||xe[1].type==="blockQuotePrefix"||xe[1].type==="blockQuotePrefixWhitespace"||xe[1].type==="blockQuoteMarker"||xe[1].type==="listItemIndent"))break}qe&&(!ye||qe<ye)&&(Ee._spread=!0),Ee.end=Object.assign({},ye?b[ye][1].start:re[1].end),b.splice(ye||B,0,["exit",Ee,re[2]]),B++,O++}if(re[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};Ee=ze,b.splice(B,0,["enter",ze,re[2]]),B++,O++,qe=void 0,Ve=!0}}}return b[A][1]._spread=ce,O}function o(b,A){return O;function O(B){a.call(this,b(B),B),A&&A.call(this,B)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,A,O){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([A,O||void 0]),b.position={start:we(A.start),end:void 0}}function u(b){return A;function A(O){b&&b.call(this,O),s.call(this,O)}}function s(b,A){const O=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==b.type&&(A?A.call(this,b,B[0]):(B[1]||Ut).call(this,b,B[0]));else throw new Error("Cannot close `"+b.type+"` ("+Qe({start:b.start,end:b.end})+"): it’s not open");O.position.end=we(b.end)}function f(){return rt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),A=this.stack[this.stack.length-1];A.lang=b}function g(){const b=this.resume(),A=this.stack[this.stack.length-1];A.meta=b}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/(\r?\n|\r)$/g,"")}function E(b){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=fe(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function R(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function _(b){const A=this.stack[this.stack.length-1];if(!A.depth){const O=this.sliceSerialize(b).length;A.depth=O}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(b){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function H(b){const O=this.stack[this.stack.length-1].children;let B=O[O.length-1];(!B||B.type!=="text")&&(B=Oi(),B.position={start:we(b.start),end:void 0},O.push(B)),this.stack.push(B)}function x(b){const A=this.stack.pop();A.value+=this.sliceSerialize(b),A.position.end=we(b.end)}function F(b){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=A.children[A.children.length-1];O.position.end=we(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(H.call(this,b),x.call(this,b))}function P(){this.data.atHardBreak=!0}function V(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function L(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function v(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function $(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function G(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ae(b){const A=this.sliceSerialize(b),O=this.stack[this.stack.length-2];O.label=Ca(A),O.identifier=fe(A).toLowerCase()}function de(){const b=this.stack[this.stack.length-1],A=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const B=b.children;O.children=B}else O.alt=A}function m(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function ue(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function ge(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function se(b){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=fe(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Ce(b){this.data.characterReferenceType=b.type}function K(b){const A=this.sliceSerialize(b),O=this.data.characterReferenceType;let B;O?(B=Fr(A,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=it(A);const W=this.stack[this.stack.length-1];W.value+=B}function He(b){const A=this.stack.pop();A.position.end=we(b.end)}function be(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(b)}function De(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(b)}function Le(){return{type:"blockquote",children:[]}}function ln(){return{type:"code",lang:null,meta:null,value:""}}function Ai(){return{type:"inlineCode",value:""}}function vi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fi(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function yt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Pi(){return{type:"image",title:null,url:"",alt:null}}function kt(){return{type:"link",title:null,url:"",children:[]}}function bt(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Di(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Li(){return{type:"paragraph",children:[]}}function zi(){return{type:"strong",children:[]}}function Oi(){return{type:"text",value:""}}function Ri(){return{type:"thematicBreak"}}}function we(e){return{line:e.line,column:e.column,offset:e.offset}}function Br(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Br(e,r):Aa(e,r)}}function Aa(e,n){let t;for(t in n)if(Nr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Ut(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Qe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Qe({start:n.start,end:n.end})+") is still open")}function va(e){const n=this;n.parser=t;function t(r){return Ta(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Fa(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Pa(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
- `}]}function Da(e,n){const t=n.value?n.value+`
6
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function La(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function za(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Oa(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Ue(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function Ra(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function _a(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Ur(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function ja(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Ur(e,n);const i={src:Ue(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Ma(e,n){const t={src:Ue(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Na(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ba(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Ur(e,n);const i={href:Ue(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Ua(e,n){const t={href:Ue(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n,t){const r=e.all(n),i=t?qa(t):Hr(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
4
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Sa(e){const r={constructs:Fr([xa,...(e||{}).extensions||[]]),content:i(Rl),defined:[],document:i(Ml),flow:i(ra),lazy:{},string:i(oa),text:i(aa)};return r;function i(o){return l;function l(a){return ka(r,o,a)}}}function Ca(e){for(;!jr(e););return e}const Ut=/[\0\t\n\r]/g;function Ea(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Ut.lastIndex=c,s=Ut.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Ta=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ia(e){return e.replace(Ta,Aa)}function Aa(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Dr(n.slice(o?2:1),o?16:10)}return it(n)||e}const Br={}.hasOwnProperty;function va(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Fa(n)(Ca(Sa(n).document().write(Ea()(e,t,!0))))}function Fa(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(bt),autolinkProtocol:H,autolinkEmail:H,atxHeading:o(yt),blockQuote:o(Le),characterEscape:H,characterReference:H,codeFenced:o(ln),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ln,l),codeText:o(Fi,l),codeTextData:H,data:H,codeFlowValue:H,definition:o(Di),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Pi),hardBreakEscape:o(xt),hardBreakTrailing:o(xt),htmlFlow:o(kt,l),htmlFlowData:H,htmlText:o(kt,l),htmlTextData:H,image:o(Li),label:l,link:o(bt),listItem:o(zi),listItemValue:p,listOrdered:o(wt,c),listUnordered:o(wt),paragraph:o(ji),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(yt),strong:o(Oi),thematicBreak:o(_i)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:Pe,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:K,characterReference:He,codeFenced:u(S),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:u(y),codeText:u(v),codeTextData:x,data:x,definition:u(),definitionDestinationString:O,definitionLabelString:T,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(V),htmlFlowData:x,htmlText:u(L),htmlTextData:x,image:u(G),label:de,labelText:ue,lineEnding:F,link:u($),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ce,resourceDestinationString:m,resourceTitleString:se,resource:ge,setextHeading:u(q),setextHeadingLineSequence:N,setextHeadingText:w,strong:u(),thematicBreak:u()}};Ur(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let A={type:"root",children:[]};const j={stack:[A],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},B=[];let W=-1;for(;++W<b.length;)if(b[W][1].type==="listOrdered"||b[W][1].type==="listUnordered")if(b[W][0]==="enter")B.push(W);else{const fe=B.pop();W=i(b,fe,W)}for(W=-1;++W<b.length;){const fe=t[b[W][0]];Br.call(fe,b[W][1].type)&&fe[b[W][1].type].call(Object.assign({sliceSerialize:b[W][2].sliceSerialize},j),b[W][1])}if(j.tokenStack.length>0){const fe=j.tokenStack[j.tokenStack.length-1];(fe[1]||Ht).call(j,void 0,fe[0])}for(A.position={start:we(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:we(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<t.transforms.length;)A=t.transforms[W](A)||A;return A}function i(b,A,j){let B=A-1,W=-1,fe=!1,Ee,ye,qe,Ve;for(;++B<=j;){const re=b[B];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?W++:W--,Ve=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(Ee&&!Ve&&!W&&!qe&&(qe=B),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!W&&re[0]==="enter"&&re[1].type==="listItemPrefix"||W===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(Ee){let ze=B;for(ye=void 0;ze--;){const xe=b[ze];if(xe[1].type==="lineEnding"||xe[1].type==="lineEndingBlank"){if(xe[0]==="exit")continue;ye&&(b[ye][1].type="lineEndingBlank",fe=!0),xe[1].type="lineEnding",ye=ze}else if(!(xe[1].type==="linePrefix"||xe[1].type==="blockQuotePrefix"||xe[1].type==="blockQuotePrefixWhitespace"||xe[1].type==="blockQuoteMarker"||xe[1].type==="listItemIndent"))break}qe&&(!ye||qe<ye)&&(Ee._spread=!0),Ee.end=Object.assign({},ye?b[ye][1].start:re[1].end),b.splice(ye||B,0,["exit",Ee,re[2]]),B++,j++}if(re[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};Ee=ze,b.splice(B,0,["enter",ze,re[2]]),B++,j++,qe=void 0,Ve=!0}}}return b[A][1]._spread=fe,j}function o(b,A){return j;function j(B){a.call(this,b(B),B),A&&A.call(this,B)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,A,j){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([A,j||void 0]),b.position={start:we(A.start),end:void 0}}function u(b){return A;function A(j){b&&b.call(this,j),s.call(this,j)}}function s(b,A){const j=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==b.type&&(A?A.call(this,b,B[0]):(B[1]||Ht).call(this,b,B[0]));else throw new Error("Cannot close `"+b.type+"` ("+Qe({start:b.start,end:b.end})+"): it’s not open");j.position.end=we(b.end)}function f(){return rt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),A=this.stack[this.stack.length-1];A.lang=b}function g(){const b=this.resume(),A=this.stack[this.stack.length-1];A.meta=b}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/(\r?\n|\r)$/g,"")}function T(b){const A=this.resume(),j=this.stack[this.stack.length-1];j.label=A,j.identifier=he(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function O(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function R(b){const A=this.stack[this.stack.length-1];if(!A.depth){const j=this.sliceSerialize(b).length;A.depth=j}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(b){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function H(b){const j=this.stack[this.stack.length-1].children;let B=j[j.length-1];(!B||B.type!=="text")&&(B=Ri(),B.position={start:we(b.start),end:void 0},j.push(B)),this.stack.push(B)}function x(b){const A=this.stack.pop();A.value+=this.sliceSerialize(b),A.position.end=we(b.end)}function F(b){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=A.children[A.children.length-1];j.position.end=we(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(H.call(this,b),x.call(this,b))}function D(){this.data.atHardBreak=!0}function V(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function L(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function v(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function $(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function G(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ue(b){const A=this.sliceSerialize(b),j=this.stack[this.stack.length-2];j.label=Ia(A),j.identifier=he(A).toLowerCase()}function de(){const b=this.stack[this.stack.length-1],A=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const B=b.children;j.children=B}else j.alt=A}function m(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function se(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function ge(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ce(b){const A=this.resume(),j=this.stack[this.stack.length-1];j.label=A,j.identifier=he(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Ce(b){this.data.characterReferenceType=b.type}function K(b){const A=this.sliceSerialize(b),j=this.data.characterReferenceType;let B;j?(B=Dr(A,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=it(A);const W=this.stack[this.stack.length-1];W.value+=B}function He(b){const A=this.stack.pop();A.position.end=we(b.end)}function be(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(b)}function Pe(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(b)}function Le(){return{type:"blockquote",children:[]}}function ln(){return{type:"code",lang:null,meta:null,value:""}}function Fi(){return{type:"inlineCode",value:""}}function Di(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pi(){return{type:"emphasis",children:[]}}function yt(){return{type:"heading",depth:0,children:[]}}function xt(){return{type:"break"}}function kt(){return{type:"html",value:""}}function Li(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function wt(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function zi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function ji(){return{type:"paragraph",children:[]}}function Oi(){return{type:"strong",children:[]}}function Ri(){return{type:"text",value:""}}function _i(){return{type:"thematicBreak"}}}function we(e){return{line:e.line,column:e.column,offset:e.offset}}function Ur(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ur(e,r):Da(e,r)}}function Da(e,t){let n;for(n in t)if(Br.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ht(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is still open")}function Pa(e){const t=this;t.parser=n;function n(r){return va(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function La(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function za(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5
+ `}]}function ja(e,t){const n=t.value?t.value+`
6
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Oa(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ra(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _a(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ue(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Ma(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Na(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Hr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Ba(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hr(e,t);const i={src:Ue(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Ua(e,t){const n={src:Ue(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ha(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qa(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hr(e,t);const i={href:Ue(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Va(e,t){const n={href:Ue(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $a(e,t,n){const r=e.all(t),i=n?Wa(n):qr(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
7
7
  `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
8
- `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function qa(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Hr(t[r])}return n}function Hr(e){const n=e.spread;return n??e.children.length>1}function Va(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function $a(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Wa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ya(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Xa(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Zn(n.children[1]),u=wr(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Qa(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),s.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Ga(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Ht=9,qt=32;function Ka(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Vt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Vt(n.slice(i),i>0,!1)),o.join("")}function Vt(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===Ht||o===qt;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===Ht||o===qt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ja(e,n){const t={type:"text",value:Ka(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Za(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const eu={blockquote:Fa,break:Pa,code:Da,delete:La,emphasis:za,footnoteReference:Oa,heading:Ra,html:_a,imageReference:ja,image:Ma,inlineCode:Na,linkReference:Ba,link:Ua,listItem:Ha,list:Va,paragraph:$a,root:Wa,strong:Ya,table:Xa,tableCell:Ga,tableRow:Qa,text:Ja,thematicBreak:Za,toml:on,yaml:on,definition:on,footnoteDefinition:on};function on(){}const qr=-1,xn=0,Ke=1,hn=2,ot=3,at=4,ut=5,st=6,Vr=7,$r=8,nu=typeof self=="object"?self:globalThis,$t=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new nu[e](n)},tu=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case xn:case qr:return t(l,i);case Ke:{const a=t([],i);for(const u of l)a.push(r(u));return a}case hn:{const a=t({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case ot:return t(new Date(l),i);case at:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case ut:{const a=t(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case st:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case Vr:{const{name:a,message:u}=l;return t($t(a,u),i)}case $r:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t($t(o,l),i)};return r},Wt=e=>tu(new Map,e)(0),Re="",{toString:ru}={},{keys:iu}=Object,Xe=e=>{const n=typeof e;if(n!=="object"||!e)return[xn,n];const t=ru.call(e).slice(8,-1);switch(t){case"Array":return[Ke,Re];case"Object":return[hn,Re];case"Date":return[ot,Re];case"RegExp":return[at,Re];case"Map":return[ut,Re];case"Set":return[st,Re];case"DataView":return[Ke,t]}return t.includes("Array")?[Ke,t]:t.includes("Error")?[Vr,t]:[hn,t]},an=([e,n])=>e===xn&&(n==="function"||n==="symbol"),lu=(e,n,t,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=Xe(l);switch(a){case xn:{let f=l;switch(u){case"bigint":a=$r,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([qr],l)}return i([a,f],l)}case Ke:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case hn:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of iu(l))(e||!an(Xe(l[p])))&&f.push([o(p),o(l[p])]);return c}case ot:return i([a,l.toISOString()],l);case at:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case ut:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(an(Xe(p))||an(Xe(h))))&&f.push([o(p),o(h)]);return c}case st:{const f=[],c=i([a,f],l);for(const p of l)(e||!an(Xe(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Yt=(e,{json:n,lossy:t}={})=>{const r=[];return lu(!(n||t),!!n,new Map,r)(e),r},pn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Wt(Yt(e,n)):structuredClone(e):(e,n)=>Wt(Yt(e,n));function ou(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function au(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function uu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||ou,r=e.options.footnoteBackLabel||au,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Ue(c.toLowerCase());let h=0;const g=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++h<=k;){g.length>0&&g.push({type:"text",value:" "});let E=typeof t=="string"?t:t(u,h);typeof E=="string"&&(E={type:"text",value:E}),g.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const E=S.children[S.children.length-1];E&&E.type==="text"?E.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else f.push(...g);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...pn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
8
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function Wa(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=qr(n[r])}return t}function qr(e){const t=e.spread;return t??e.children.length>1}function Ya(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Xa(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qa(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ga(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ka(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Zn(t.children[1]),u=Sr(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Ja(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u<a;){const c=t.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),s.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function Za(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const qt=9,Vt=32;function eu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push($t(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push($t(t.slice(i),i>0,!1)),o.join("")}function $t(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===qt||o===Vt;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===qt||o===Vt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function nu(e,t){const n={type:"text",value:eu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ru={blockquote:La,break:za,code:ja,delete:Oa,emphasis:Ra,footnoteReference:_a,heading:Ma,html:Na,imageReference:Ba,image:Ua,inlineCode:Ha,linkReference:qa,link:Va,listItem:$a,list:Ya,paragraph:Xa,root:Qa,strong:Ga,table:Ka,tableCell:Za,tableRow:Ja,text:nu,thematicBreak:tu,toml:on,yaml:on,definition:on,footnoteDefinition:on};function on(){}const Vr=-1,xn=0,Ke=1,hn=2,ot=3,at=4,ut=5,st=6,$r=7,Wr=8,iu=typeof self=="object"?self:globalThis,Wt=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new iu[e](t)},lu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case xn:case Vr:return n(l,i);case Ke:{const a=n([],i);for(const u of l)a.push(r(u));return a}case hn:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case ot:return n(new Date(l),i);case at:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case ut:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case st:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case $r:{const{name:a,message:u}=l;return n(Wt(a,u),i)}case Wr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(Wt(o,l),i)};return r},Yt=e=>lu(new Map,e)(0),Oe="",{toString:ou}={},{keys:au}=Object,Xe=e=>{const t=typeof e;if(t!=="object"||!e)return[xn,t];const n=ou.call(e).slice(8,-1);switch(n){case"Array":return[Ke,Oe];case"Object":return[hn,Oe];case"Date":return[ot,Oe];case"RegExp":return[at,Oe];case"Map":return[ut,Oe];case"Set":return[st,Oe];case"DataView":return[Ke,n]}return n.includes("Array")?[Ke,n]:n.includes("Error")?[$r,n]:[hn,n]},an=([e,t])=>e===xn&&(t==="function"||t==="symbol"),uu=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=Xe(l);switch(a){case xn:{let f=l;switch(u){case"bigint":a=Wr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Vr],l)}return i([a,f],l)}case Ke:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case hn:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of au(l))(e||!an(Xe(l[p])))&&f.push([o(p),o(l[p])]);return c}case ot:return i([a,l.toISOString()],l);case at:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case ut:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(an(Xe(p))||an(Xe(h))))&&f.push([o(p),o(h)]);return c}case st:{const f=[],c=i([a,f],l);for(const p of l)(e||!an(Xe(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Xt=(e,{json:t,lossy:n}={})=>{const r=[];return uu(!(t||n),!!t,new Map,r)(e),r},pn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yt(Xt(e,t)):structuredClone(e):(e,t)=>Yt(Xt(e,t));function su(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||su,r=e.options.footnoteBackLabel||cu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Ue(c.toLowerCase());let h=0;const g=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++h<=k;){g.length>0&&g.push({type:"text",value:" "});let T=typeof n=="string"?n:n(u,h);typeof T=="string"&&(T={type:"text",value:T}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const T=S.children[S.children.length-1];T&&T.type==="text"?T.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else f.push(...g);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...pn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
9
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
- `}]}}const kn=(function(e){if(e==null)return hu;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?su(e):cu(e);if(typeof e=="string")return fu(e);throw new Error("Expected function, string, or object as test")});function su(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=kn(e[t]);return bn(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function cu(e){const n=e;return bn(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function fu(e){return bn(n);function n(t){return t&&t.type===e}}function bn(e){return n;function n(t,r,i){return!!(pu(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function hu(){return!0}function pu(e){return e!==null&&typeof e=="object"&&"type"in e}const Wr=[],mu=!0,$n=!1,du="skip";function Yr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=kn(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Wr,g,k,S;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=gu(t(u,f)),h[0]===$n))return h;if("children"in u&&u.children){const y=u;if(y.children&&h[0]!==du)for(k=(r?y.children.length:-1)+l,S=f.concat(y);k>-1&&k<y.children.length;){const E=y.children[k];if(g=a(E,k,S)(),g[0]===$n)return g;k=typeof g[1]=="number"?g[1]:k+l}}return h}}}function gu(e){return Array.isArray(e)?e:typeof e=="number"?[mu,e]:e==null?Wr:[e]}function ct(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Yr(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const Wn={}.hasOwnProperty,yu={};function xu(e,n){const t=n||yu,r=new Map,i=new Map,o=new Map,l={...eu,...t.handlers},a={all:s,applyData:bu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:ku,wrap:Su};return ct(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(Wn.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:k,...S}=f,y=pn(S);return y.children=a.all(f),y}return pn(f)}return(a.options.unknownHandler||wu)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Xt(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=Xt(k.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function ku(e,n){e.position&&(n.position=ll(e))}function bu(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,pn(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function wu(e,n){const t=n.data||{},r="value"in n&&!(Wn.call(t,"hProperties")||Wn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Su(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
- `});++r<e.length;)r&&t.push({type:"text",value:`
12
- `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
- `}),t}function Xt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Qt(e,n){const t=xu(e,n),r=t.one(e,void 0),i=uu(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14
- `},i),o}function Cu(e,n){return e&&"run"in e?async function(t,r){const i=Qt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Qt(t,{file:r,...e||n})}}function Gt(e){if(e)throw e}var An,Kt;function Eu(){if(Kt)return An;Kt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return An=function u(){var s,f,c,p,h,g,k=arguments[0],S=1,y=arguments.length,E=!1;for(typeof k=="boolean"&&(E=k,k=arguments[1]||{},S=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});S<y;++S)if(s=arguments[S],s!=null)for(f in s)c=a(k,f),p=a(s,f),k!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(k,{name:f,newValue:u(E,g,p)})):typeof p<"u"&&l(k,{name:f,newValue:p}));return k},An}var Tu=Eu();const vn=br(Tu);function Yn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Iu(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Au(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Au(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const he={basename:vu,dirname:Fu,extname:Pu,join:Du,sep:"/"};function vu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');tn(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Fu(e){if(tn(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Pu(e){tn(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Du(...e){let n=-1,t;for(;++n<e.length;)tn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Lu(t)}function Lu(e){tn(e);const n=e.codePointAt(0)===47;let t=zu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function zu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ou={cwd:Ru};function Ru(){return"/"}function Xn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _u(e){if(typeof e=="string")e=new URL(e);else if(!Xn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return ju(e)}function ju(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Fn=["history","path","basename","stem","extname","dirname"];class Xr{constructor(n){let t;n?Xn(n)?t={path:n}:typeof n=="string"||Mu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Ou.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Fn.length;){const o=Fn[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Fn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?he.basename(this.path):void 0}set basename(n){Dn(n,"basename"),Pn(n,"basename"),this.path=he.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?he.dirname(this.path):void 0}set dirname(n){Jt(this.basename,"dirname"),this.path=he.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?he.extname(this.path):void 0}set extname(n){if(Pn(n,"extname"),Jt(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=he.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Xn(n)&&(n=_u(n)),Dn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?he.basename(this.path,this.extname):void 0}set stem(n){Dn(n,"stem"),Pn(n,"stem"),this.path=he.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Z(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Pn(e,n){if(e&&e.includes(he.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+he.sep+"`")}function Dn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Jt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Bu={}.hasOwnProperty;class ft extends Nu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Iu()}copy(){const n=new ft;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(vn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(On("data",this.frozen),this.namespace[n]=t,this):Bu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(On("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=un(n),r=this.parser||this.Parser;return Ln("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Ln("process",this.parser||this.Parser),zn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=un(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,g=r.stringify(h,p);qu(g)?p.value=g:p.result=g,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Ln("processSync",this.parser||this.Parser),zn("processSync",this.compiler||this.Compiler),this.process(n,i),er("processSync","process",t),r;function i(o,l){t=!0,Gt(o),r=l}}run(n,t,r){Zt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=un(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),er("runSync","run",r),i;function o(l,a){Gt(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=un(t),i=this.compiler||this.Compiler;return zn("stringify",i),Zt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(On("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=vn(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...g]=f;const k=r[p][1];Yn(k)&&Yn(h)&&(h=vn(!0,k,h)),r[p]=[s,h,...g]}}}}const Uu=new ft().freeze();function Ln(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function On(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zt(e){if(!Yn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function er(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function un(e){return Hu(e)?e:new Xr(e)}function Hu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qu(e){return typeof e=="string"||Vu(e)}function Vu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $u="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",nr=[],tr={allowDangerousHtml:!0},Wu=/^(https?|ircs?|mailto|xmpp)$/i,Yu=[{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 Xu(e){const n=Qu(e),t=Gu(e);return Ku(n.runSync(n.parse(t),t),e)}function Qu(e){const n=e.rehypePlugins||nr,t=e.remarkPlugins||nr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tr}:tr;return Uu().use(va).use(t).use(Cu,r).use(n)}function Gu(e){const n=e.children||"",t=new Xr;return typeof n=="string"&&(t.value=n),t}function Ku(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||Ju;for(const f of Yu)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+$u+f.id,void 0);return ct(e,s),cl(e,{Fragment:I.Fragment,components:i,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in En)if(Object.hasOwn(En,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],k=En[h];(k===null||k.includes(f.tagName))&&(f.properties[h]=u(String(g||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Ju(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Wu.test(e.slice(0,n))?e:""}function rr(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Zu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function es(e,n,t){const i=kn((t||{}).ignore||[]),o=ns(n);let l=-1;for(;++l<o.length;)Yr(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const S=c.children.indexOf(s);let y=!1,E=[];p.lastIndex=0;let C=p.exec(s.value);for(;C;){const R=C.index,_={index:C.index,input:C.input,stack:[...f,s]};let w=h(...C,_);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=R+1:(g!==R&&E.push({type:"text",value:s.value.slice(g,R)}),Array.isArray(w)?E.push(...w):w&&E.push(w),g=R+C[0].length,y=!0),!p.global)break;C=p.exec(s.value)}return y?(g<s.value.length&&E.push({type:"text",value:s.value.slice(g)}),c.children.splice(S,1,...E)):E=[s],S+E.length}}function ns(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([ts(i[0]),rs(i[1])])}return n}function ts(e){return typeof e=="string"?new RegExp(Zu(e),"g"):e}function rs(e){return typeof e=="function"?e:function(){return e}}const Rn="phrasing",_n=["autolink","link","image","label"];function is(){return{transforms:[fs],enter:{literalAutolink:os,literalAutolinkEmail:jn,literalAutolinkHttp:jn,literalAutolinkWww:jn},exit:{literalAutolink:cs,literalAutolinkEmail:ss,literalAutolinkHttp:as,literalAutolinkWww:us}}}function ls(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:_n},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:_n},{character:":",before:"[ps]",after:"\\/",inConstruct:Rn,notInConstruct:_n}]}}function os(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function jn(e){this.config.enter.autolinkProtocol.call(this,e)}function as(e){this.config.exit.autolinkProtocol.call(this,e)}function us(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function ss(e){this.config.exit.autolinkEmail.call(this,e)}function cs(e){this.exit(e)}function fs(e){es(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ps]],{ignore:["link","linkReference"]})}function hs(e,n,t,r,i){let o="";if(!Qr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!ms(t)))return!1;const l=ds(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ps(e,n,t,r){return!Qr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ms(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function ds(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=rr(e,"(");let o=rr(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function Qr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Fe(t)||gn(t))&&(!n||t!==47)}Gr.peek=Es;function gs(){this.buffer()}function ys(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xs(){this.buffer()}function ks(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bs(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=fe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ws(e){this.exit(e)}function Ss(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=fe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Cs(e){this.exit(e)}function Es(){return"["}function Gr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Ts(){return{enter:{gfmFootnoteCallString:gs,gfmFootnoteCall:ys,gfmFootnoteDefinitionLabelString:xs,gfmFootnoteDefinition:ks},exit:{gfmFootnoteCallString:bs,gfmFootnoteCall:ws,gfmFootnoteDefinitionLabelString:Ss,gfmFootnoteDefinition:Cs}}}function Is(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Gr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
15
- `:" ")+o.indentLines(o.containerFlow(r,a.current()),n?Kr:As))),s(),u}}function As(e,n,t){return n===0?e:Kr(e,n,t)}function Kr(e,n,t){return(t?"":" ")+e}const vs=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Jr.peek=zs;function Fs(){return{canContainEols:["delete"],enter:{strikethrough:Ds},exit:{strikethrough:Ls}}}function Ps(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vs}],handlers:{delete:Jr}}}function Ds(e){this.enter({type:"delete",children:[]},e)}function Ls(e){this.exit(e)}function Jr(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function zs(){return"~"}function Os(e){return e.length}function Rs(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Os,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const k=[],S=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const E=_s(e[f][y]);if(t.alignDelimiters!==!1){const C=i(E);S[y]=C,(u[y]===void 0||C>u[y])&&(u[y]=C)}k.push(E)}l[f]=k,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=ir(r[c]);else{const k=ir(r);for(;++c<s;)o[c]=k}c=-1;const p=[],h=[];for(;++c<s;){const k=o[c];let S="",y="";k===99?(S=":",y=":"):k===108?S=":":k===114&&(y=":");let E=t.alignDelimiters===!1?1:Math.max(1,u[c]-S.length-y.length);const C=S+"-".repeat(E)+y;t.alignDelimiters!==!1&&(E=S.length+E+y.length,E>u[c]&&(u[c]=E),h[c]=E),p[c]=C}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const k=l[f],S=a[f];c=-1;const y=[];for(;++c<s;){const E=k[c]||"";let C="",R="";if(t.alignDelimiters!==!1){const _=u[c]-(S[c]||0),w=o[c];w===114?C=" ".repeat(_):w===99?_%2?(C=" ".repeat(_/2+.5),R=" ".repeat(_/2-.5)):(C=" ".repeat(_/2),R=C):R=" ".repeat(_)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&E==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(C),y.push(E),t.alignDelimiters!==!1&&y.push(R),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&y.push("|")}g.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(`
16
- `)}function _s(e){return e==null?"":String(e)}function ir(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function js(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Ms);return i(),l}function Ms(e,n,t){return">"+(t?"":" ")+e}function Ns(e,n){return lr(e,n.inConstruct,!0)&&!lr(e,n.notInConstruct,!1)}function lr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function or(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
- `&&Ns(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
- `}function Bs(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Us(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Hs(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function qs(e,n,t,r){const i=Hs(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Us(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,Vs);return c(),p}const a=t.createTracker(r),u=i.repeat(Math.max(Bs(o,i)+1,3)),s=t.enter("codeFenced");let f=a.move(u);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
10
+ `}]}}const kn=(function(e){if(e==null)return du;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?hu(e):pu(e);if(typeof e=="string")return mu(e);throw new Error("Expected function, string, or object as test")});function hu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kn(e[n]);return bn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function pu(e){const t=e;return bn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function mu(e){return bn(t);function t(n){return n&&n.type===e}}function bn(e){return t;function t(n,r,i){return!!(gu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function du(){return!0}function gu(e){return e!==null&&typeof e=="object"&&"type"in e}const Yr=[],yu=!0,$n=!1,xu="skip";function Xr(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=kn(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Yr,g,k,S;if((!t||o(u,s,f[f.length-1]||void 0))&&(h=ku(n(u,f)),h[0]===$n))return h;if("children"in u&&u.children){const y=u;if(y.children&&h[0]!==xu)for(k=(r?y.children.length:-1)+l,S=f.concat(y);k>-1&&k<y.children.length;){const T=y.children[k];if(g=a(T,k,S)(),g[0]===$n)return g;k=typeof g[1]=="number"?g[1]:k+l}}return h}}}function ku(e){return Array.isArray(e)?e:typeof e=="number"?[yu,e]:e==null?Yr:[e]}function ct(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Xr(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const Wn={}.hasOwnProperty,bu={};function wu(e,t){const n=t||bu,r=new Map,i=new Map,o=new Map,l={...ru,...n.handlers},a={all:s,applyData:Cu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:n,patch:Su,wrap:Tu};return ct(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(Wn.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:k,...S}=f,y=pn(S);return y.children=a.all(f),y}return pn(f)}return(a.options.unknownHandler||Eu)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Qt(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=Qt(k.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Su(e,t){e.position&&(t.position=ul(e))}function Cu(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,pn(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Eu(e,t){const n=t.data||{},r="value"in t&&!(Wn.call(n,"hProperties")||Wn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Tu(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
11
+ `});++r<e.length;)r&&n.push({type:"text",value:`
12
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
13
+ `}),n}function Qt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gt(e,t){const n=wu(e,t),r=n.one(e,void 0),i=fu(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14
+ `},i),o}function Iu(e,t){return e&&"run"in e?async function(n,r){const i=Gt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Gt(n,{file:r,...e||t})}}function Kt(e){if(e)throw e}var An,Jt;function Au(){if(Jt)return An;Jt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},o=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){n&&f.name==="__proto__"?n(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return An=function u(){var s,f,c,p,h,g,k=arguments[0],S=1,y=arguments.length,T=!1;for(typeof k=="boolean"&&(T=k,k=arguments[1]||{},S=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});S<y;++S)if(s=arguments[S],s!=null)for(f in s)c=a(k,f),p=a(s,f),k!==p&&(T&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(k,{name:f,newValue:u(T,g,p)})):typeof p<"u"&&l(k,{name:f,newValue:p}));return k},An}var vu=Au();const vn=wr(vu);function Yn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fu(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Du(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Du(e,t){let n;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&n)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const pe={basename:Pu,dirname:Lu,extname:zu,join:ju,sep:"/"};function Pu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Lu(e){if(tn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zu(e){tn(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ju(...e){let t=-1,n;for(;++t<e.length;)tn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ou(n)}function Ou(e){tn(e);const t=e.codePointAt(0)===47;let n=Ru(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ru(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _u={cwd:Mu};function Mu(){return"/"}function Xn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Nu(e){if(typeof e=="string")e=new URL(e);else if(!Xn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Bu(e)}function Bu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Fn=["history","path","basename","stem","extname","dirname"];class Qr{constructor(t){let n;t?Xn(t)?n={path:t}:typeof t=="string"||Uu(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_u.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Fn.length;){const o=Fn[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Fn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pe.basename(this.path):void 0}set basename(t){Pn(t,"basename"),Dn(t,"basename"),this.path=pe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pe.dirname(this.path):void 0}set dirname(t){Zt(this.basename,"dirname"),this.path=pe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pe.extname(this.path):void 0}set extname(t){if(Dn(t,"extname"),Zt(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xn(t)&&(t=Nu(t)),Pn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pe.basename(this.path,this.extname):void 0}set stem(t){Pn(t,"stem"),Dn(t,"stem"),this.path=pe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Z(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Dn(e,t){if(e&&e.includes(pe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pe.sep+"`")}function Pn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Zt(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Uu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Hu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),qu={}.hasOwnProperty;class ft extends Hu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Fu()}copy(){const t=new ft;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(vn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(jn("data",this.frozen),this.namespace[t]=n,this):qu.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=un(t),r=this.parser||this.Parser;return Ln("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ln("process",this.parser||this.Parser),zn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=un(t),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,g=r.stringify(h,p);Wu(g)?p.value=g:p.result=g,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ln("processSync",this.parser||this.Parser),zn("processSync",this.compiler||this.Compiler),this.process(t,i),nr("processSync","process",n),r;function i(o,l){n=!0,Kt(o),r=l}}run(t,n,r){er(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=un(n);i.run(t,u,s);function s(f,c,p){const h=c||t;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),nr("runSync","run",r),i;function o(l,a){Kt(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=un(n),i=this.compiler||this.Compiler;return zn("stringify",i),er(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(jn("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=vn(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...g]=f;const k=r[p][1];Yn(k)&&Yn(h)&&(h=vn(!0,k,h)),r[p]=[s,h,...g]}}}}const Vu=new ft().freeze();function Ln(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function er(e){if(!Yn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function nr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function un(e){return $u(e)?e:new Qr(e)}function $u(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Wu(e){return typeof e=="string"||Yu(e)}function Yu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",tr=[],rr={allowDangerousHtml:!0},Qu=/^(https?|ircs?|mailto|xmpp)$/i,Gu=[{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 Ku(e){const t=Ju(e),n=Zu(e);return es(t.runSync(t.parse(n),n),e)}function Ju(e){const t=e.rehypePlugins||tr,n=e.remarkPlugins||tr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rr}:rr;return Vu().use(Pa).use(n).use(Iu,r).use(t)}function Zu(e){const t=e.children||"",n=new Qr;return typeof t=="string"&&(n.value=t),n}function es(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||ns;for(const f of Gu)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Xu+f.id,void 0);return ct(e,s),pl(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in En)if(Object.hasOwn(En,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],k=En[h];(k===null||k.includes(f.tagName))&&(f.properties[h]=u(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function ns(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Qu.test(e.slice(0,t))?e:""}function ir(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ts(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function rs(e,t,n){const i=kn((n||{}).ignore||[]),o=is(t);let l=-1;for(;++l<o.length;)Xr(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const S=c.children.indexOf(s);let y=!1,T=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const O=E.index,R={index:E.index,input:E.input,stack:[...f,s]};let w=h(...E,R);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=O+1:(g!==O&&T.push({type:"text",value:s.value.slice(g,O)}),Array.isArray(w)?T.push(...w):w&&T.push(w),g=O+E[0].length,y=!0),!p.global)break;E=p.exec(s.value)}return y?(g<s.value.length&&T.push({type:"text",value:s.value.slice(g)}),c.children.splice(S,1,...T)):T=[s],S+T.length}}function is(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([ls(i[0]),os(i[1])])}return t}function ls(e){return typeof e=="string"?new RegExp(ts(e),"g"):e}function os(e){return typeof e=="function"?e:function(){return e}}const On="phrasing",Rn=["autolink","link","image","label"];function as(){return{transforms:[ms],enter:{literalAutolink:ss,literalAutolinkEmail:_n,literalAutolinkHttp:_n,literalAutolinkWww:_n},exit:{literalAutolink:ps,literalAutolinkEmail:hs,literalAutolinkHttp:cs,literalAutolinkWww:fs}}}function us(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:On,notInConstruct:Rn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:On,notInConstruct:Rn},{character:":",before:"[ps]",after:"\\/",inConstruct:On,notInConstruct:Rn}]}}function ss(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _n(e){this.config.enter.autolinkProtocol.call(this,e)}function cs(e){this.config.exit.autolinkProtocol.call(this,e)}function fs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function hs(e){this.config.exit.autolinkEmail.call(this,e)}function ps(e){this.exit(e)}function ms(e){rs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ds],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),gs]],{ignore:["link","linkReference"]})}function ds(e,t,n,r,i){let o="";if(!Gr(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!ys(n)))return!1;const l=xs(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function gs(e,t,n,r){return!Gr(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ys(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xs(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ir(e,"(");let o=ir(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Gr(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Fe(n)||gn(n))&&(!t||n!==47)}Kr.peek=As;function ks(){this.buffer()}function bs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ws(){this.buffer()}function Ss(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=he(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Es(e){this.exit(e)}function Ts(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=he(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Is(e){this.exit(e)}function As(){return"["}function Kr(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function vs(){return{enter:{gfmFootnoteCallString:ks,gfmFootnoteCall:bs,gfmFootnoteDefinitionLabelString:ws,gfmFootnoteDefinition:Ss},exit:{gfmFootnoteCallString:Cs,gfmFootnoteCall:Es,gfmFootnoteDefinitionLabelString:Ts,gfmFootnoteDefinition:Is}}}function Fs(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Kr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((t?`
15
+ `:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Jr:Ds))),s(),u}}function Ds(e,t,n){return t===0?e:Jr(e,t,n)}function Jr(e,t,n){return(n?"":" ")+e}const Ps=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zr.peek=Rs;function Ls(){return{canContainEols:["delete"],enter:{strikethrough:js},exit:{strikethrough:Os}}}function zs(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ps}],handlers:{delete:Zr}}}function js(e){this.enter({type:"delete",children:[]},e)}function Os(e){this.exit(e)}function Zr(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Rs(){return"~"}function _s(e){return e.length}function Ms(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||_s,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const k=[],S=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const T=Ns(e[f][y]);if(n.alignDelimiters!==!1){const E=i(T);S[y]=E,(u[y]===void 0||E>u[y])&&(u[y]=E)}k.push(T)}l[f]=k,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=lr(r[c]);else{const k=lr(r);for(;++c<s;)o[c]=k}c=-1;const p=[],h=[];for(;++c<s;){const k=o[c];let S="",y="";k===99?(S=":",y=":"):k===108?S=":":k===114&&(y=":");let T=n.alignDelimiters===!1?1:Math.max(1,u[c]-S.length-y.length);const E=S+"-".repeat(T)+y;n.alignDelimiters!==!1&&(T=S.length+T+y.length,T>u[c]&&(u[c]=T),h[c]=T),p[c]=E}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const k=l[f],S=a[f];c=-1;const y=[];for(;++c<s;){const T=k[c]||"";let E="",O="";if(n.alignDelimiters!==!1){const R=u[c]-(S[c]||0),w=o[c];w===114?E=" ".repeat(R):w===99?R%2?(E=" ".repeat(R/2+.5),O=" ".repeat(R/2-.5)):(E=" ".repeat(R/2),O=E):O=" ".repeat(R)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(E),y.push(T),n.alignDelimiters!==!1&&y.push(O),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&y.push("|")}g.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(`
16
+ `)}function Ns(e){return e==null?"":String(e)}function lr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Bs(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),Us);return i(),l}function Us(e,t,n){return">"+(n?"":" ")+e}function Hs(e,t){return or(e,t.inConstruct,!0)&&!or(e,t.notInConstruct,!1)}function or(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ar(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
17
+ `&&Hs(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
+ `}function qs(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Vs(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $s(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ws(e,t,n,r){const i=$s(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Vs(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,Ys);return c(),p}const a=n.createTracker(r),u=i.repeat(Math.max(qs(o,i)+1,3)),s=n.enter("codeFenced");let f=a.move(u);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
19
19
  `,encode:["`"],...a.current()})),c()}return f+=a.move(`
20
20
  `),o&&(f+=a.move(o+`
21
- `)),f+=a.move(u),s(),f}function Vs(e,n,t){return(t?"":" ")+e}function ht(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function $s(e,n,t,r){const i=ht(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("[");return s+=u.move(t.safe(t.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":`
22
- `,...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function Ws(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Ze(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mn(e,n,t){const r=je(e),i=je(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Zr.peek=Ys;function Zr(e,n,t,r){const i=Ws(t),o=t.enter("emphasis"),l=t.createTracker(r),a=l.move(i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=mn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Ze(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=mn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Ze(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function Ys(e,n,t){return t.options.emphasis||"*"}function Xs(e,n){let t=!1;return ct(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,$n}),!!((!e.depth||e.depth<3)&&rt(e)&&(n.options.setext||t))}function Qs(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(Xs(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
21
+ `)),f+=a.move(u),s(),f}function Ys(e,t,n){return(n?"":" ")+e}function ht(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Xs(e,t,n,r){const i=ht(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":`
22
+ `,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function Qs(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ze(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mn(e,t,n){const r=_e(e),i=_e(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ei.peek=Gs;function ei(e,t,n,r){const i=Qs(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=mn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Ze(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=mn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Ze(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function Gs(e,t,n){return n.options.emphasis||"*"}function Ks(e,t){let n=!1;return ct(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$n}),!!((!e.depth||e.depth<3)&&rt(e)&&(t.options.setext||n))}function Js(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Ks(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
23
23
  `,after:`
24
24
  `});return c(),f(),p+`
25
25
  `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26
- `))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
27
- `,...o.current()});return/^[\t ]/.test(s)&&(s=Ze(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}ei.peek=Gs;function ei(e){return e.value||""}function Gs(){return"<"}ni.peek=Ks;function ni(e,n,t,r){const i=ht(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function Ks(){return"!"}ti.peek=Js;function ti(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("![");const s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Js(){return"!"}ri.peek=Zs;function ri(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function Zs(){return"`"}function ii(e,n){const t=rt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}li.peek=ec;function li(e,n,t,r){const i=ht(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(ii(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function ec(e,n,t){return ii(e,t)?"<":"["}oi.peek=nc;function oi(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function nc(){return"["}function pt(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function tc(e){const n=pt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function rc(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ai(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ic(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?rc(t):pt(t);const a=e.ordered?l==="."?")":".":tc(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),ai(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function lc(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function oc(e,n,t,r){const i=lc(t);let o=t.bulletCurrent||pt(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function ac(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const uc=kn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sc(e,n,t,r){return(e.children.some(function(l){return uc(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function cc(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}ui.peek=fc;function ui(e,n,t,r){const i=cc(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=mn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Ze(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=mn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Ze(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function fc(e,n,t){return t.options.strong||"*"}function hc(e,n,t,r){return t.safe(e.value,r)}function pc(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function mc(e,n,t){const r=(ai(t)+(t.options.ruleSpaces?" ":"")).repeat(pc(t));return t.options.ruleSpaces?r.slice(0,-1):r}const si={blockquote:js,break:or,code:qs,definition:$s,emphasis:Zr,hardBreak:or,heading:Qs,html:ei,image:ni,imageReference:ti,inlineCode:ri,link:li,linkReference:oi,list:ic,listItem:oc,paragraph:ac,root:sc,strong:ui,text:hc,thematicBreak:mc};function dc(){return{enter:{table:gc,tableData:ar,tableHeader:ar,tableRow:xc},exit:{codeText:kc,table:yc,tableData:Mn,tableHeader:Mn,tableRow:Mn}}}function gc(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function yc(e){this.exit(e),this.data.inTable=void 0}function xc(e){this.enter({type:"tableRow",children:[]},e)}function Mn(e){this.exit(e)}function ar(e){this.enter({type:"tableCell",children:[]},e)}function kc(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,bc));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function bc(e,n){return n==="|"?n:e}function wc(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,g,k,S){return s(f(h,k,S),h.align)}function a(h,g,k,S){const y=c(h,k,S),E=s([y]);return E.slice(0,E.indexOf(`
29
- `))}function u(h,g,k,S){const y=k.enter("tableCell"),E=k.enter("phrasing"),C=k.containerPhrasing(h,{...S,before:o,after:o});return E(),y(),C}function s(h,g){return Rs(h,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(h,g,k){const S=h.children;let y=-1;const E=[],C=g.enter("table");for(;++y<S.length;)E[y]=c(S[y],g,k);return C(),E}function c(h,g,k){const S=h.children;let y=-1;const E=[],C=g.enter("tableRow");for(;++y<S.length;)E[y]=u(S[y],h,g,k);return C(),E}function p(h,g,k){let S=si.inlineCode(h,g,k);return k.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Sc(){return{exit:{taskListCheckValueChecked:ur,taskListCheckValueUnchecked:ur,paragraph:Ec}}}function Cc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Tc}}}function ur(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Ec(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Tc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=si.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Ic(){return[is(),Ts(),Fs(),dc(),Sc()]}function Ac(e){return{extensions:[ls(),Is(e),Ps(),wc(e),Cc()]}}const vc={tokenize:Oc,partial:!0},ci={tokenize:Rc,partial:!0},fi={tokenize:_c,partial:!0},hi={tokenize:jc,partial:!0},Fc={tokenize:Mc,partial:!0},pi={name:"wwwAutolink",tokenize:Lc,previous:di},mi={name:"protocolAutolink",tokenize:zc,previous:gi},ke={name:"emailAutolink",tokenize:Dc,previous:yi},me={};function Pc(){return{text:me}}let Te=48;for(;Te<123;)me[Te]=ke,Te++,Te===58?Te=65:Te===91&&(Te=97);me[43]=ke;me[45]=ke;me[46]=ke;me[95]=ke;me[72]=[ke,mi];me[104]=[ke,mi];me[87]=[ke,pi];me[119]=[ke,pi];function Dc(e,n,t){const r=this;let i,o;return l;function l(c){return!Qn(c)||!yi.call(r,r.previous)||mt(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Qn(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(Fc,f,s)(c):c===45||c===95||J(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&ee(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Lc(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!di.call(r,r.previous)||mt(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(vc,e.attempt(ci,e.attempt(fi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function zc(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&gi.call(r,r.previous)&&!mt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ee(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||fn(c)||X(c)||Fe(c)||gn(c)?t(c):e.attempt(ci,e.attempt(fi,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Oc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Rc(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(hi,u,a)(s):s===null||X(s)||Fe(s)||s!==45&&gn(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function _c(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(hi,n,o)(l):l===null||X(l)||Fe(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function jc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||X(a)||Fe(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||X(a)||Fe(a)?n(a):r(a)}function o(a){return ee(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ee(a)?(e.consume(a),l):t(a)}}function Mc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return J(o)?t(o):n(o)}}function di(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function gi(e){return!ee(e)}function yi(e){return!(e===47||Qn(e))}function Qn(e){return e===43||e===45||e===46||e===95||J(e)}function mt(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Nc={tokenize:Yc,partial:!0};function Bc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Vc,continuation:{tokenize:$c},exit:Wc}},text:{91:{name:"gfmFootnoteCall",tokenize:qc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Uc,resolveTo:Hc}}}}function Uc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=fe(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function Hc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function qc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||X(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(fe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return X(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Vc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||X(g))return t(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=fe(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,h,"gfmFootnoteDefinitionWhitespace")):t(g)}function h(g){return n(g)}}function $c(e,n,t){return e.check(nn,n,e.attempt(Nc,n,t))}function Wc(e){e.exit("gfmFootnoteDefinition")}function Yc(e,n,t){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Xc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&le(p,p.length,0,yn(h,l.slice(s+1,u),a)),le(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),le(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(g){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const k=je(s);if(g===126)return c>1?u(g):(l.consume(g),c++,h);if(c<2&&!t)return u(g);const S=l.exit("strikethroughSequenceTemporary"),y=je(g);return S._open=!y||y===2&&!!k,S._close=!k||k===2&&!!y,a(g)}}}class Qc{constructor(){this.map=[]}add(n,t,r){Gc(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Gc(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Kc(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Jc(){return{flow:{null:{name:"table",tokenize:Zc,resolveAll:ef}}}}function Zc(e,n,t){const r=this;let i=0,o=0,l;return a;function a(x){let F=r.events.length-1;for(;F>-1;){const L=r.events[F][1].type;if(L==="lineEnding"||L==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,V=P==="tableHead"||P==="tableRow"?w:u;return V===w&&r.parser.lazy[r.now().line]?t(x):V(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?t(x):D(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):M(x)?U(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||X(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),l=!1,M(x)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):g(x))}function g(x){return x===45||x===58?S(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):_(x)}function k(x){return M(x)?U(e,S,"whitespace")(x):S(x)}function S(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||D(x)?R(x):_(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),E(x)):_(x)}function E(x){return x===45?(e.consume(x),E):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(x))}function C(x){return M(x)?U(e,R,"whitespace")(x):R(x)}function R(x){return x===124?g(x):x===null||D(x)?!l||i!==o?_(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):_(x)}function _(x){return t(x)}function w(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||D(x)?(e.exit("tableRow"),n(x)):M(x)?U(e,N,"whitespace")(x):(e.enter("data"),q(x))}function q(x){return x===null||x===124||X(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?H:q)}function H(x){return x===92||x===124?(e.consume(x),q):q(x)}}function ef(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Qc;for(;++t<e.length;){const h=e[t],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,u!==0&&(sr(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",s,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=sn(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=sn(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,u=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=sn(p,n,o,i,t,c)):l[1]!==0&&(c=sn(p,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&sr(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Kc(n.events,t))}return e}function sn(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},_e(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=_e(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=_e(n.events,t[2]),f=_e(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,k=t[3]-t[2]-1;e.add(g,k,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},_e(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function sr(e,n,t,r,i){const o=[],l=_e(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function _e(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const nf={name:"tasklistCheck",tokenize:rf};function tf(){return{text:{91:nf}}}function rf(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return X(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return D(u)?n(u):M(u)?e.check({tokenize:lf},n,t)(u):t(u)}}function lf(e,n,t){return U(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function of(e){return vr([Pc(),Bc(),Xc(e),Jc(),tf()])}const af={};function uf(e){const n=this,t=e||af,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(of(t)),o.push(Ic()),l.push(Ac(t))}const xi=Xu,ki=e=>I.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Me(e){const n=e.components||{};return n.a||(n.a=ki),I.jsx(xi,{...e,components:n,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const sf=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function cr(e){const n=e.components||{};return n.a||(n.a=ki),I.jsx(xi,{...e,remarkPlugins:[uf],components:n,allowedElements:sf})}const bi={...pe.markdownRenderers};delete bi["entity-ref"];const Gn=bi;function cf(e){var E,C;const{id:n,children:t,displayLabel:r,rawErrors:i=[],errors:o,help:l,rawDescription:a,hidden:u,label:s,required:f,schema:c,uiSchema:p,registry:h}=e,g=j.getUiOptions(p),k=j.getTemplate("WrapIfAdditionalTemplate",h,g);if(u)return I.jsx("div",{className:"rjsf-f0-hidden",children:t});const S=g.widget==="checkbox"||c.type==="boolean",y=r&&!S&&!!s;return I.jsxs(I.Fragment,{children:[((E=c==null?void 0:c.markdown)==null?void 0:E.before)&&I.jsx("div",{className:"fcode-form-markdown",children:I.jsx(cr,{components:Gn,children:c.markdown.before})}),I.jsx(k,{...e,children:I.jsxs("div",{className:"rjsf-f0-field",children:[y&&I.jsxs("label",{className:"rjsf-f0-label",htmlFor:n,children:[I.jsx(Me,{components:{p:"span"},children:s}),f&&I.jsx("span",{"aria-hidden":"true",children:" *"})]}),t,r&&a&&I.jsx("div",{className:"rjsf-f0-help",children:I.jsx(Me,{children:a})}),i.length>0&&o,l]})}),((C=c==null?void 0:c.markdown)==null?void 0:C.after)&&I.jsx("div",{className:"fcode-form-markdown",children:I.jsx(cr,{components:Gn,children:c.markdown.after})})]})}function wi(e){return Ae.useCallback(n=>{n.preventDefault(),e==null||e(n)},[e])}function rn({icon:e,label:n,variant:t="outline",disabled:r,onClick:i,id:o,registry:l,uiSchema:a,iconType:u,...s}){const f=wi(i);return I.jsx(pe.F0Button,{...s,"data-testid":o,label:n,hideLabel:!0,icon:e,size:"sm",variant:t,disabled:r,onClick:f})}function ff(e){const{translateString:n}=e.registry;return I.jsx(rn,{...e,icon:Ne.Files,label:n(j.TranslatableString.CopyButton)})}function hf(e){const{translateString:n}=e.registry;return I.jsx(rn,{...e,icon:Ne.ArrowUp,label:n(j.TranslatableString.MoveUpButton)})}function pf(e){const{translateString:n}=e.registry;return I.jsx(rn,{...e,icon:Ne.ArrowDown,label:n(j.TranslatableString.MoveDownButton)})}function mf(e){const{translateString:n}=e.registry;return I.jsx(rn,{...e,icon:Ne.Delete,variant:"critical",label:n(j.TranslatableString.RemoveButton)})}function df(e){const{translateString:n}=e.registry;return I.jsx(rn,{...e,icon:Ne.Delete,variant:"ghost",label:n(j.TranslatableString.ClearButton)})}function gf(e){const{translateString:n}=e.registry,{disabled:t,onClick:r,id:i}=e,o=wi(r),l=n(j.TranslatableString.AddItemButton);return I.jsx(pe.F0Button,{"data-testid":i,label:l,icon:Ne.Add,size:"sm",variant:"outline",disabled:t,onClick:o})}function yf({uiSchema:e}){const{submitText:n,norender:t,props:r={}}=j.getSubmitButtonOptions(e);return t?null:I.jsx("div",{className:"rjsf-f0-submit",children:I.jsx(pe.F0Button,{label:n,variant:"default",disabled:r.disabled})})}const xf={SubmitButton:yf,AddButton:gf,CopyButton:ff,MoveDownButton:pf,MoveUpButton:hf,RemoveButton:mf,ClearButton:df};function kf({id:e,title:n,uiSchema:t,optionalDataControl:r}){const o=j.getUiOptions(t).title||n;return o?I.jsxs("div",{id:e,className:"rjsf-f0-title",children:[I.jsx(pe.F0Heading,{as:"h5",variant:"heading",content:o}),r]}):null}function bf({id:e,description:n}){return n?I.jsx("div",{id:e,className:"rjsf-f0-section-description",children:typeof n=="string"?I.jsx(Me,{children:n}):n}):null}function wf({errors:e=[],fieldPathId:n}){const t=e.filter(Boolean);return t.length<2?null:I.jsx("ul",{className:"rjsf-f0-errors",id:j.errorId(n),children:t.map((r,i)=>I.jsx("li",{children:typeof r=="string"?I.jsx(Me,{components:{p:"span"},children:r}):r},`${r}-${i}`))})}function Sf({fieldPathId:e,help:n}){return n?I.jsx("div",{className:"rjsf-f0-help",id:j.helpId(e),children:n}):null}function Cf({errors:e,registry:n}){const{translateString:t}=n;return I.jsx("div",{className:"rjsf-f0-error-list",children:I.jsx(pe.F0Alert,{variant:"critical",title:t(j.TranslatableString.ErrorsLabel),description:e.map(r=>r.stack).join(`
30
- `)})})}function Ef(e){const{id:n,classNames:t,style:r,disabled:i,label:o,onKeyRename:l,onRemoveProperty:a,readonly:u,required:s,schema:f,children:c,uiSchema:p,registry:h}=e,{templates:g,translateString:k}=h,{RemoveButton:S}=g.ButtonTemplates,[y,E]=Ae.useState(o);if(!(j.ADDITIONAL_PROPERTY_FLAG in f))return I.jsx("div",{className:t,style:r,children:c});const C=`${n}-key`;return I.jsx("div",{className:t,style:r,children:I.jsxs("div",{className:"rjsf-f0-additional-property",children:[I.jsx(pe.F0TextInput,{id:C,name:C,label:k(j.TranslatableString.KeyLabel,[o]),value:y,required:s,disabled:i||u,onChange:E,onBlur:u?void 0:()=>{y!==o&&l(y)}}),c,I.jsx(S,{disabled:i||u,onClick:a,uiSchema:p,registry:h})]})})}function Tf(e){const{description:n,disabled:t,formData:r,fieldPathId:i,onAddProperty:o,optionalDataControl:l,properties:a,readonly:u,registry:s,required:f,schema:c,title:p,uiSchema:h}=e,g=j.getUiOptions(h),k=j.getTemplate("TitleFieldTemplate",s,g),S=j.getTemplate("DescriptionFieldTemplate",s,g),{AddButton:y}=s.templates.ButtonTemplates;if((c.oneOf||c.anyOf)&&!c.properties&&a.length===0)return null;const E=!u&&!t;return I.jsxs("div",{className:"rjsf-f0-object",children:[p&&I.jsx(k,{id:j.titleId(i),title:p,required:f,schema:c,uiSchema:h,registry:s,optionalDataControl:E?l:void 0}),n&&I.jsx(S,{id:j.descriptionId(i),description:n,schema:c,uiSchema:h,registry:s}),E?void 0:l,a.map(C=>I.jsx("div",{className:C.hidden?"rjsf-f0-hidden":"rjsf-f0-row",children:C.content},C.name)),j.canExpand(c,h,r)&&I.jsx("div",{className:"rjsf-f0-add",children:I.jsx(y,{id:j.buttonId(i,"add"),onClick:o,disabled:t||u,uiSchema:h,registry:s})})]})}function If(e){const{canAdd:n,disabled:t,fieldPathId:r,items:i,optionalDataControl:o,onAddClick:l,readonly:a,registry:u,required:s,schema:f,title:c,uiSchema:p}=e,h=j.getUiOptions(p),g=j.getTemplate("ArrayFieldTitleTemplate",u,h),k=j.getTemplate("ArrayFieldDescriptionTemplate",u,h),{AddButton:S}=u.templates.ButtonTemplates,y=!a&&!t;return I.jsxs("div",{className:"rjsf-f0-array",children:[I.jsx(g,{fieldPathId:r,title:h.title||c,required:s,schema:f,uiSchema:p,registry:u,optionalDataControl:y?o:void 0}),I.jsx(k,{fieldPathId:r,description:h.description||f.description,schema:f,uiSchema:p,registry:u}),y?void 0:o,I.jsx("div",{className:"rjsf-f0-array-items",children:i}),n&&I.jsx("div",{className:"rjsf-f0-add",children:I.jsx(S,{id:j.buttonId(r,"add"),onClick:l,disabled:t||a,uiSchema:p,registry:u})})]})}function Af(e){const{children:n,buttonsProps:t,hasToolbar:r,registry:i,schema:o,uiSchema:l}=e,a=j.getUiOptions(l),u=j.getTemplate("ArrayFieldItemButtonsTemplate",i,a),s=o.type==="object"||o.type==="array";return I.jsxs("div",{className:s?"rjsf-f0-array-item rjsf-f0-array-item-composite":"rjsf-f0-array-item",children:[I.jsx("div",{className:"rjsf-f0-array-item-content",children:n}),r&&I.jsx("div",{className:"rjsf-f0-array-item-toolbar",children:I.jsx(u,{...t})})]})}function vf(e){const{disabled:n,hasCopy:t,hasMoveDown:r,hasMoveUp:i,hasRemove:o,fieldPathId:l,onCopyItem:a,onRemoveItem:u,onMoveDownItem:s,onMoveUpItem:f,readonly:c,registry:p,uiSchema:h}=e,{CopyButton:g,MoveDownButton:k,MoveUpButton:S,RemoveButton:y}=p.templates.ButtonTemplates,E={uiSchema:h,registry:p};return I.jsxs(I.Fragment,{children:[(i||r)&&I.jsx(S,{id:j.buttonId(l,"moveUp"),disabled:n||c||!i,onClick:f,...E}),(i||r)&&I.jsx(k,{id:j.buttonId(l,"moveDown"),disabled:n||c||!r,onClick:s,...E}),t&&I.jsx(g,{id:j.buttonId(l,"copy"),disabled:n||c,onClick:a,...E}),o&&I.jsx(y,{id:j.buttonId(l,"remove"),disabled:n||c,onClick:u,...E})]})}function Ff({children:e,className:n,column:t,...r}){return I.jsx("div",{className:n??(t?void 0:"rjsf-f0-grid"),...r,children:e})}function Pf({selector:e,optionSchemaField:n}){return I.jsxs("div",{className:"rjsf-f0-multischema",children:[I.jsx("div",{className:"rjsf-f0-row",children:e}),n]})}function wn(e){return e?e.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_~`]/g,"").replace(/\s+/g," ").trim():""}function Si(e){return!!e&&wn(e)!==e.trim()}function Ie({field:e,toFieldValue:n,fromFieldValue:t,id:r,label:i,value:o,required:l,disabled:a,readonly:u,placeholder:s,rawErrors:f,onChange:c,onBlur:p}){const h=Ae.useCallback(y=>c(t?t(y):y),[c,t]),g=Ae.useCallback(()=>p(r,o),[p,r,o]),k=Ae.useMemo(()=>({id:r,label:wn(i)||r,placeholder:s,helpText:void 0,...e}),[r,i,s,e]),[S]=f??[];return I.jsx(pe.F0FormField,{field:k,value:n?n(o):o,onChange:h,onBlur:g,error:!!S,errorMessage:S,required:l,disabled:a||u,hideLabel:!0})}const fr=e=>{if(!e||typeof e!="string")return;const n=new Date(e);return Number.isNaN(n.getTime())?void 0:n},dn=e=>String(e).padStart(2,"0"),Ci=e=>{if(!(!(e instanceof Date)||Number.isNaN(e.getTime())))return`${e.getFullYear()}-${dn(e.getMonth()+1)}-${dn(e.getDate())}`},Df=e=>{const n=Ci(e);if(!(!n||!(e instanceof Date)))return`${n}T${dn(e.getHours())}:${dn(e.getMinutes())}`},Lf={number:"number",integer:"number",range:"number",date:"date","datetime-local":"datetime",time:"time"},zf=new Set(["password","email","tel","url"]);function Of(e){const{id:n,htmlName:t,autofocus:r,disabled:i,readonly:o,required:l,multiple:a,accept:u,onChangeOverride:s,onBlur:f,onFocus:c}=e;return I.jsx("input",{id:n,name:t||n,className:"rjsf-f0-file",type:"file",autoFocus:r,disabled:i||o,required:l,multiple:a,accept:u,onChange:s,onBlur:p=>f(n,p.target.value),onFocus:p=>c(n,p.target.value)})}function Rf(e){const{type:n,schema:t,options:r}=e,i=n||(t.type==="number"||t.type==="integer"?"number":"text");if(i==="file")return I.jsx(Of,{...e});const o=Lf[i]??"text";return o==="date"?I.jsx(Ie,{...e,field:{type:"date"},toFieldValue:fr,fromFieldValue:Ci}):o==="datetime"?I.jsx(Ie,{...e,field:{type:"datetime"},toFieldValue:fr,fromFieldValue:Df}):o==="number"?I.jsx(Ie,{...e,field:{type:"number",...t.minimum!==void 0&&{min:t.minimum},...t.maximum!==void 0&&{max:t.maximum},...t.type==="integer"&&{maxDecimals:0}},fromFieldValue:l=>l===""||l===null?void 0:l}):I.jsx(Ie,{...e,field:{type:o,...zf.has(i)&&{inputType:i}},fromFieldValue:l=>l===""?r.emptyValue:l})}const _f=5;function jf(e){const{options:n}=e;return I.jsx(Ie,{...e,field:{type:"textarea",rows:n.rows||_f},fromFieldValue:t=>t===""?n.emptyValue:t})}const Mf=e=>(Array.isArray(e)?e:[]).map((n,t)=>({value:String(t),label:String(n.label)}));function Nf(e){const{options:n,multiple:t,value:r,schema:i}=e,{enumOptions:o,enumDisabled:l}=n,a=Array.isArray(o)?o:[],u=c=>a.findIndex(p=>j.enumOptionsIsSelected(p.value,c)),s=Ae.useCallback(c=>{if(t)return(Array.isArray(c)?c:[]).map(g=>u(g)).filter(g=>g>=0).map(String);const p=u(c);return p>=0?String(p):void 0},[t,a]),f=Ae.useCallback(c=>{var p;return t?(Array.isArray(c)?c:[]).map(g=>{var k;return(k=a[Number(g)])==null?void 0:k.value}):c==null||c===""?n.emptyValue:(p=a[Number(c)])==null?void 0:p.value},[t,a,n.emptyValue]);return I.jsx(Ie,{...e,field:{type:"select",options:Mf(o).filter((c,p)=>{var h;return!(Array.isArray(l)&&l.includes((h=a[p])==null?void 0:h.value))}),multiple:t,clearable:!i.default&&!e.required,showSearchBox:a.length>8},value:r,toFieldValue:s,fromFieldValue:f})}function Bf({id:e,value:n,label:t,hideLabel:r,disabled:i,readonly:o,onChange:l}){const a=!r&&Si(t);return I.jsxs("div",{className:"rjsf-f0-checkbox",children:[I.jsx(pe.F0Checkbox,{id:e,title:wn(t),checked:n===!0,hideLabel:r||a,disabled:i||o,onCheckedChange:u=>l(u===!0)}),a&&I.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:e,children:I.jsx(Me,{components:{p:"span"},children:t})})]})}function Uf({id:e,disabled:n,readonly:t,options:r,value:i,onChange:o}){const{enumOptions:l,enumDisabled:a}=r,u=Array.isArray(i)?i:[];return I.jsx("div",{className:"rjsf-f0-checkboxes",children:(Array.isArray(l)?l:[]).map((s,f)=>{const c=j.enumOptionsIsSelected(s.value,u),p=Array.isArray(a)&&a.includes(s.value),h=j.optionId(e,f),g=String(s.label),k=Si(g);return I.jsxs("div",{className:"rjsf-f0-checkbox",children:[I.jsx(pe.F0Checkbox,{id:h,title:wn(g),checked:c,hideLabel:k,disabled:n||t||p,onCheckedChange:S=>o(S===!0?j.enumOptionsSelectValue(f,u,l):j.enumOptionsDeselectValue(f,u,l))}),k&&I.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:h,children:I.jsx(Me,{components:{p:"span"},children:g})})]},String(s.value))})})}function Hf(e){const{options:n,required:t}=e,r=Array.isArray(n.enumOptions)?n.enumOptions:[];return I.jsx(Ie,{...e,field:{type:"cardSelect",grouped:!0,options:r.map((i,o)=>{var l;return{value:String(o),label:String(i.label),...(l=i.schema)!=null&&l.description?{description:String(i.schema.description)}:{}}})},toFieldValue:i=>{const o=r.findIndex(l=>j.enumOptionsIsSelected(l.value,i));return o>=0?String(o):void 0},fromFieldValue:i=>{var o;return i===void 0||i===""?n.emptyValue:(o=r[Number(i)])==null?void 0:o.value},required:t})}const Ei={ArrayFieldItemButtonsTemplate:vf,ArrayFieldItemTemplate:Af,ArrayFieldTemplate:If,BaseInputTemplate:Rf,ButtonTemplates:xf,DescriptionFieldTemplate:bf,ErrorListTemplate:Cf,FieldErrorTemplate:wf,FieldHelpTemplate:Sf,FieldTemplate:cf,GridTemplate:Ff,MultiSchemaFieldTemplate:Pf,ObjectFieldTemplate:Tf,TitleFieldTemplate:kf,WrapIfAdditionalTemplate:Ef},Ti={CheckboxWidget:Bf,CheckboxesWidget:Uf,RadioWidget:Hf,SelectWidget:Nf,TextareaWidget:jf};function dt(){return{templates:Ei,widgets:Ti}}const Ii=dt();function qf(){return hr.withTheme(dt())}const Vf=hr.withTheme(Ii);exports.Form=Vf;exports.Templates=Ei;exports.Theme=Ii;exports.Widgets=Ti;exports.generateForm=qf;exports.generateTheme=dt;exports.markdownComponents=Gn;
26
+ `))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
27
+ `,...o.current()});return/^[\t ]/.test(s)&&(s=Ze(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),u(),a(),s}ni.peek=Zs;function ni(e){return e.value||""}function Zs(){return"<"}ti.peek=ec;function ti(e,t,n,r){const i=ht(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function ec(){return"!"}ri.peek=nc;function ri(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function nc(){return"!"}ii.peek=tc;function ii(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function tc(){return"`"}function li(e,t){const n=rt(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}oi.peek=rc;function oi(e,t,n,r){const i=ht(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,u;if(li(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),u=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function rc(e,t,n){return li(e,n)?"<":"["}ai.peek=ic;function ai(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function ic(){return"["}function pt(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function lc(e){const t=pt(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function oc(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ui(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ac(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?oc(n):pt(n);const a=e.ordered?l==="."?")":".":lc(n);let u=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),ui(n)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function uc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sc(e,t,n,r){const i=uc(n);let o=n.bulletCurrent||pt(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function cc(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const fc=kn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hc(e,t,n,r){return(e.children.some(function(l){return fc(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}si.peek=mc;function si(e,t,n,r){const i=pc(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=mn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Ze(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=mn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Ze(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function mc(e,t,n){return n.options.strong||"*"}function dc(e,t,n,r){return n.safe(e.value,r)}function gc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function yc(e,t,n){const r=(ui(n)+(n.options.ruleSpaces?" ":"")).repeat(gc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ci={blockquote:Bs,break:ar,code:Ws,definition:Xs,emphasis:ei,hardBreak:ar,heading:Js,html:ni,image:ti,imageReference:ri,inlineCode:ii,link:oi,linkReference:ai,list:ac,listItem:sc,paragraph:cc,root:hc,strong:si,text:dc,thematicBreak:yc};function xc(){return{enter:{table:kc,tableData:ur,tableHeader:ur,tableRow:wc},exit:{codeText:Sc,table:bc,tableData:Mn,tableHeader:Mn,tableRow:Mn}}}function kc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function bc(e){this.exit(e),this.data.inTable=void 0}function wc(e){this.enter({type:"tableRow",children:[]},e)}function Mn(e){this.exit(e)}function ur(e){this.enter({type:"tableCell",children:[]},e)}function Sc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Cc(e,t){return t==="|"?t:e}function Ec(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,g,k,S){return s(f(h,k,S),h.align)}function a(h,g,k,S){const y=c(h,k,S),T=s([y]);return T.slice(0,T.indexOf(`
29
+ `))}function u(h,g,k,S){const y=k.enter("tableCell"),T=k.enter("phrasing"),E=k.containerPhrasing(h,{...S,before:o,after:o});return T(),y(),E}function s(h,g){return Ms(h,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(h,g,k){const S=h.children;let y=-1;const T=[],E=g.enter("table");for(;++y<S.length;)T[y]=c(S[y],g,k);return E(),T}function c(h,g,k){const S=h.children;let y=-1;const T=[],E=g.enter("tableRow");for(;++y<S.length;)T[y]=u(S[y],h,g,k);return E(),T}function p(h,g,k){let S=ci.inlineCode(h,g,k);return k.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Tc(){return{exit:{taskListCheckValueChecked:sr,taskListCheckValueUnchecked:sr,paragraph:Ac}}}function Ic(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vc}}}function sr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ac(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function vc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let u=ci.listItem(e,t,n,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Fc(){return[as(),vs(),Ls(),xc(),Tc()]}function Dc(e){return{extensions:[us(),Fs(e),zs(),Ec(e),Ic()]}}const Pc={tokenize:_c,partial:!0},fi={tokenize:Mc,partial:!0},hi={tokenize:Nc,partial:!0},pi={tokenize:Bc,partial:!0},Lc={tokenize:Uc,partial:!0},mi={name:"wwwAutolink",tokenize:Oc,previous:gi},di={name:"protocolAutolink",tokenize:Rc,previous:yi},ke={name:"emailAutolink",tokenize:jc,previous:xi},me={};function zc(){return{text:me}}let Te=48;for(;Te<123;)me[Te]=ke,Te++,Te===58?Te=65:Te===91&&(Te=97);me[43]=ke;me[45]=ke;me[46]=ke;me[95]=ke;me[72]=[ke,di];me[104]=[ke,di];me[87]=[ke,mi];me[119]=[ke,mi];function jc(e,t,n){const r=this;let i,o;return l;function l(c){return!Qn(c)||!xi.call(r,r.previous)||mt(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Qn(c)?(e.consume(c),a):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Lc,f,s)(c):c===45||c===95||J(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&ee(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Oc(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!gi.call(r,r.previous)||mt(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Pc,e.attempt(fi,e.attempt(hi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Rc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&yi.call(r,r.previous)&&!mt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(ee(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):n(c)}function s(c){return c===null||fn(c)||X(c)||Fe(c)||gn(c)?n(c):e.attempt(fi,e.attempt(hi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function _c(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Mc(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(pi,u,a)(s):s===null||X(s)||Fe(s)||s!==45&&gn(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?n(s):t(s)}}function Nc(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(pi,t,o)(l):l===null||X(l)||Fe(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Bc(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||X(a)||Fe(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||X(a)||Fe(a)?t(a):r(a)}function o(a){return ee(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):ee(a)?(e.consume(a),l):n(a)}}function Uc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return J(o)?n(o):t(o)}}function gi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function yi(e){return!ee(e)}function xi(e){return!(e===47||Qn(e))}function Qn(e){return e===43||e===45||e===46||e===95||J(e)}function mt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Hc={tokenize:Gc,partial:!0};function qc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Yc,continuation:{tokenize:Xc},exit:Qc}},text:{91:{name:"gfmFootnoteCall",tokenize:Wc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vc,resolveTo:$c}}}}function Vc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return n(u);const s=he(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function $c(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const 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++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Wc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||X(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(he(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return X(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Yc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||X(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=he(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function Xc(e,t,n){return e.check(nn,t,e.attempt(Hc,t,n))}function Qc(e){e.exit("gfmFootnoteDefinition")}function Gc(e,t,n){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Kc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&le(p,p.length,0,yn(h,l.slice(s+1,u),a)),le(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),le(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(g){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const k=_e(s);if(g===126)return c>1?u(g):(l.consume(g),c++,h);if(c<2&&!n)return u(g);const S=l.exit("strikethroughSequenceTemporary"),y=_e(g);return S._open=!y||y===2&&!!k,S._close=!k||k===2&&!!y,a(g)}}}class Jc{constructor(){this.map=[]}add(t,n,r){Zc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Zc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function ef(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function nf(){return{flow:{null:{name:"table",tokenize:tf,resolveAll:rf}}}}function tf(e,t,n){const r=this;let i=0,o=0,l;return a;function a(x){let F=r.events.length-1;for(;F>-1;){const L=r.events[F][1].type;if(L==="lineEnding"||L==="linePrefix")F--;else break}const D=F>-1?r.events[F][1].type:null,V=D==="tableHead"||D==="tableRow"?w:u;return V===w&&r.parser.lazy[r.now().line]?n(x):V(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?n(x):P(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):n(x):M(x)?U(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||X(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,M(x)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):g(x))}function g(x){return x===45||x===58?S(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):R(x)}function k(x){return M(x)?U(e,S,"whitespace")(x):S(x)}function S(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||P(x)?O(x):R(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),T(x)):R(x)}function T(x){return x===45?(e.consume(x),T):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return M(x)?U(e,O,"whitespace")(x):O(x)}function O(x){return x===124?g(x):x===null||P(x)?!l||i!==o?R(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):R(x)}function R(x){return n(x)}function w(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||P(x)?(e.exit("tableRow"),t(x)):M(x)?U(e,N,"whitespace")(x):(e.enter("data"),q(x))}function q(x){return x===null||x===124||X(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?H:q)}function H(x){return x===92||x===124?(e.consume(x),q):q(x)}}function rf(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Jc;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,u!==0&&(cr(p,t,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",s,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=sn(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=sn(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(a=!0,u=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=n,o[1]!==0?(l[0]=l[1],c=sn(p,t,o,i,n,c)):l[1]!==0&&(c=sn(p,t,l,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(u!==0&&cr(p,t,u,s,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=ef(t.events,n))}return e}function sn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Re(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=Re(t.events,n[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Re(t.events,n[2]),f=Re(t.events,n[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Re(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function cr(e,t,n,r,i){const o=[],l=Re(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Re(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const lf={name:"tasklistCheck",tokenize:af};function of(){return{text:{91:lf}}}function af(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return X(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):n(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return P(u)?t(u):M(u)?e.check({tokenize:uf},t,n)(u):n(u)}}function uf(e,t,n){return U(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function sf(e){return Fr([zc(),qc(),Kc(e),nf(),of()])}const cf={};function ff(e){const t=this,n=e||cf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(sf(n)),o.push(Fc()),l.push(Dc(n))}const ki=Ku,bi=e=>C.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Me(e){const t=e.components||{};return t.a||(t.a=bi),C.jsx(ki,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const hf=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function fr(e){const t=e.components||{};return t.a||(t.a=bi),C.jsx(ki,{...e,remarkPlugins:[ff],components:t,allowedElements:hf})}const wi={...ae.markdownRenderers};delete wi["entity-ref"];const Gn=wi;function pf(e){var T,E;const{id:t,children:n,displayLabel:r,rawErrors:i=[],errors:o,help:l,rawDescription:a,hidden:u,label:s,required:f,schema:c,uiSchema:p,registry:h}=e,g=_.getUiOptions(p),k=_.getTemplate("WrapIfAdditionalTemplate",h,g);if(u)return C.jsx("div",{className:"rjsf-f0-hidden",children:n});const S=g.widget==="checkbox"||c.type==="boolean",y=r&&!S&&!!s;return C.jsxs(C.Fragment,{children:[((T=c==null?void 0:c.markdown)==null?void 0:T.before)&&C.jsx("div",{className:"fcode-form-markdown",children:C.jsx(fr,{components:Gn,children:c.markdown.before})}),C.jsx(k,{...e,children:C.jsxs("div",{className:"rjsf-f0-field",children:[y&&C.jsxs("label",{className:"rjsf-f0-label",htmlFor:t,children:[C.jsx(Me,{components:{p:"span"},children:s}),f&&C.jsx("span",{"aria-hidden":"true",children:" *"})]}),n,r&&a&&C.jsx("div",{className:"rjsf-f0-help",children:C.jsx(Me,{children:a})}),i.length>0&&o,l]})}),((E=c==null?void 0:c.markdown)==null?void 0:E.after)&&C.jsx("div",{className:"fcode-form-markdown",children:C.jsx(fr,{components:Gn,children:c.markdown.after})})]})}function dt(e){return Ae.useCallback(t=>{t.preventDefault(),e==null||e(t)},[e])}function rn({icon:e,label:t,variant:n="outline",disabled:r,onClick:i,id:o,registry:l,uiSchema:a,iconType:u,...s}){const f=dt(i);return C.jsx(ae.F0Button,{...s,"data-testid":o,label:t,hideLabel:!0,icon:e,size:"sm",variant:n,disabled:r,onClick:f})}function mf(e){const{translateString:t}=e.registry;return C.jsx(rn,{...e,icon:Ne.Files,label:t(_.TranslatableString.CopyButton)})}function df(e){const{translateString:t}=e.registry;return C.jsx(rn,{...e,icon:Ne.ArrowUp,label:t(_.TranslatableString.MoveUpButton)})}function gf(e){const{translateString:t}=e.registry;return C.jsx(rn,{...e,icon:Ne.ArrowDown,label:t(_.TranslatableString.MoveDownButton)})}function yf(e){const{translateString:t}=e.registry;return C.jsx(rn,{...e,icon:Ne.Delete,variant:"critical",label:t(_.TranslatableString.RemoveButton)})}function xf(e){const{translateString:t}=e.registry;return C.jsx(rn,{...e,icon:Ne.Delete,variant:"ghost",label:t(_.TranslatableString.ClearButton)})}function kf(e){const{translateString:t}=e.registry,{disabled:n,onClick:r,id:i}=e,o=dt(r),l=t(_.TranslatableString.AddItemButton);return C.jsx(ae.F0Button,{"data-testid":i,label:l,icon:Ne.Add,size:"sm",variant:"outline",disabled:n,onClick:o})}function bf({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=_.getSubmitButtonOptions(e);return n?null:C.jsx("div",{className:"rjsf-f0-submit",children:C.jsx(ae.F0Button,{label:t,variant:"default",disabled:r.disabled})})}const wf={SubmitButton:bf,AddButton:kf,CopyButton:mf,MoveDownButton:gf,MoveUpButton:df,RemoveButton:yf,ClearButton:xf};function Sf({id:e,title:t,uiSchema:n,optionalDataControl:r}){const o=_.getUiOptions(n).title||t;return o?C.jsxs("div",{id:e,className:"rjsf-f0-title",children:[C.jsx(ae.F0Heading,{as:"h5",variant:"heading",content:o}),r]}):null}function Cf({id:e,description:t}){return t?C.jsx("div",{id:e,className:"rjsf-f0-section-description",children:typeof t=="string"?C.jsx(Me,{children:t}):t}):null}function Ef({errors:e=[],fieldPathId:t}){const n=e.filter(Boolean);return n.length<2?null:C.jsx("ul",{className:"rjsf-f0-errors",id:_.errorId(t),children:n.map((r,i)=>C.jsx("li",{children:typeof r=="string"?C.jsx(Me,{components:{p:"span"},children:r}):r},`${r}-${i}`))})}function Tf({fieldPathId:e,help:t}){return t?C.jsx("div",{className:"rjsf-f0-help",id:_.helpId(e),children:t}):null}function If({errors:e,registry:t}){const{translateString:n}=t;return C.jsx("div",{className:"rjsf-f0-error-list",children:C.jsx(ae.F0Alert,{variant:"critical",title:n(_.TranslatableString.ErrorsLabel),description:e.map(r=>r.stack).join(`
30
+ `)})})}function Af(e){const{id:t,classNames:n,style:r,disabled:i,label:o,onKeyRename:l,onRemoveProperty:a,readonly:u,required:s,schema:f,children:c,uiSchema:p,registry:h}=e,{templates:g,translateString:k}=h,{RemoveButton:S}=g.ButtonTemplates,[y,T]=Ae.useState(o);if(!(_.ADDITIONAL_PROPERTY_FLAG in f))return C.jsx("div",{className:n,style:r,children:c});const E=`${t}-key`;return C.jsx("div",{className:n,style:r,children:C.jsxs("div",{className:"rjsf-f0-additional-property",children:[C.jsx(ae.F0TextInput,{id:E,name:E,label:k(_.TranslatableString.KeyLabel,[o]),value:y,required:s,disabled:i||u,onChange:T,onBlur:u?void 0:()=>{y!==o&&l(y)}}),c,C.jsx(S,{disabled:i||u,onClick:a,uiSchema:p,registry:h})]})})}function vf(e){const{description:t,disabled:n,formData:r,fieldPathId:i,onAddProperty:o,optionalDataControl:l,properties:a,readonly:u,registry:s,required:f,schema:c,title:p,uiSchema:h}=e,g=_.getUiOptions(h),k=_.getTemplate("TitleFieldTemplate",s,g),S=_.getTemplate("DescriptionFieldTemplate",s,g),{AddButton:y}=s.templates.ButtonTemplates;if((c.oneOf||c.anyOf)&&!c.properties&&a.length===0)return null;const T=!u&&!n;return C.jsxs("div",{className:"rjsf-f0-object",children:[p&&C.jsx(k,{id:_.titleId(i),title:p,required:f,schema:c,uiSchema:h,registry:s,optionalDataControl:T?l:void 0}),t&&C.jsx(S,{id:_.descriptionId(i),description:t,schema:c,uiSchema:h,registry:s}),T?void 0:l,a.map(E=>C.jsx("div",{className:E.hidden?"rjsf-f0-hidden":"rjsf-f0-row",children:E.content},E.name)),_.canExpand(c,h,r)&&C.jsx("div",{className:"rjsf-f0-add",children:C.jsx(y,{id:_.buttonId(i,"add"),onClick:o,disabled:n||u,uiSchema:h,registry:s})})]})}function Ff(e){const{canAdd:t,disabled:n,fieldPathId:r,items:i,optionalDataControl:o,onAddClick:l,readonly:a,registry:u,required:s,schema:f,title:c,uiSchema:p}=e,h=_.getUiOptions(p),g=_.getTemplate("ArrayFieldTitleTemplate",u,h),k=_.getTemplate("ArrayFieldDescriptionTemplate",u,h),{AddButton:S}=u.templates.ButtonTemplates,y=!a&&!n;return C.jsxs("div",{className:"rjsf-f0-array",children:[C.jsx(g,{fieldPathId:r,title:h.title||c,required:s,schema:f,uiSchema:p,registry:u,optionalDataControl:y?o:void 0}),C.jsx(k,{fieldPathId:r,description:h.description||f.description,schema:f,uiSchema:p,registry:u}),y?void 0:o,C.jsx("div",{className:"rjsf-f0-array-items",children:i}),t&&C.jsx("div",{className:"rjsf-f0-add",children:C.jsx(S,{id:_.buttonId(r,"add"),onClick:l,disabled:n||a,uiSchema:p,registry:u})})]})}function Df(e){const{children:t,buttonsProps:n,hasToolbar:r,registry:i,schema:o,uiSchema:l}=e,a=_.getUiOptions(l),u=_.getTemplate("ArrayFieldItemButtonsTemplate",i,a),s=o.type==="object"||o.type==="array";return C.jsxs("div",{className:s?"rjsf-f0-array-item rjsf-f0-array-item-composite":"rjsf-f0-array-item",children:[C.jsx("div",{className:"rjsf-f0-array-item-content",children:t}),r&&C.jsx("div",{className:"rjsf-f0-array-item-toolbar",children:C.jsx(u,{...n})})]})}function Pf(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:o,fieldPathId:l,onCopyItem:a,onRemoveItem:u,onMoveDownItem:s,onMoveUpItem:f,readonly:c,registry:p,uiSchema:h}=e,{CopyButton:g,MoveDownButton:k,MoveUpButton:S,RemoveButton:y}=p.templates.ButtonTemplates,T={uiSchema:h,registry:p};return C.jsxs(C.Fragment,{children:[(i||r)&&C.jsx(S,{id:_.buttonId(l,"moveUp"),disabled:t||c||!i,onClick:f,...T}),(i||r)&&C.jsx(k,{id:_.buttonId(l,"moveDown"),disabled:t||c||!r,onClick:s,...T}),n&&C.jsx(g,{id:_.buttonId(l,"copy"),disabled:t||c,onClick:a,...T}),o&&C.jsx(y,{id:_.buttonId(l,"remove"),disabled:t||c,onClick:u,...T})]})}function Lf({children:e,className:t,column:n,...r}){return C.jsx("div",{className:t??(n?void 0:"rjsf-f0-grid"),...r,children:e})}function zf({selector:e,optionSchemaField:t}){return C.jsxs("div",{className:"rjsf-f0-multischema",children:[C.jsx("div",{className:"rjsf-f0-row",children:e}),t]})}function wn(e){return e?e.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_~`]/g,"").replace(/\s+/g," ").trim():""}function Si(e){return!!e&&wn(e)!==e.trim()}function Ie({field:e,toFieldValue:t,fromFieldValue:n,id:r,label:i,value:o,required:l,disabled:a,readonly:u,placeholder:s,rawErrors:f,onChange:c,onBlur:p}){const h=Ae.useCallback(y=>c(n?n(y):y),[c,n]),g=Ae.useCallback(()=>p(r,o),[p,r,o]),k=Ae.useMemo(()=>({id:r,label:wn(i)||r,placeholder:s,helpText:void 0,...e}),[r,i,s,e]),[S]=f??[];return C.jsx(ae.F0FormField,{field:k,value:t?t(o):o,onChange:h,onBlur:g,error:!!S,errorMessage:S,required:l,disabled:a||u,hideLabel:!0})}const hr=e=>{if(!e||typeof e!="string")return;const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},dn=e=>String(e).padStart(2,"0"),Ci=e=>{if(!(!(e instanceof Date)||Number.isNaN(e.getTime())))return`${e.getFullYear()}-${dn(e.getMonth()+1)}-${dn(e.getDate())}`},jf=e=>{const t=Ci(e);if(!(!t||!(e instanceof Date)))return`${t}T${dn(e.getHours())}:${dn(e.getMinutes())}`},Of={number:"number",integer:"number",range:"number",date:"date","datetime-local":"datetime",time:"time"},Rf=new Set(["password","email","tel","url"]);function _f(e){const{id:t,htmlName:n,autofocus:r,disabled:i,readonly:o,required:l,multiple:a,accept:u,onChangeOverride:s,onBlur:f,onFocus:c}=e;return C.jsx("input",{id:t,name:n||t,className:"rjsf-f0-file",type:"file",autoFocus:r,disabled:i||o,required:l,multiple:a,accept:u,onChange:s,onBlur:p=>f(t,p.target.value),onFocus:p=>c(t,p.target.value)})}function Mf(e){const{type:t,schema:n,options:r}=e,i=t||(n.type==="number"||n.type==="integer"?"number":"text");if(i==="file")return C.jsx(_f,{...e});const o=Of[i]??"text";return o==="date"?C.jsx(Ie,{...e,field:{type:"date"},toFieldValue:hr,fromFieldValue:Ci}):o==="datetime"?C.jsx(Ie,{...e,field:{type:"datetime"},toFieldValue:hr,fromFieldValue:jf}):o==="number"?C.jsx(Ie,{...e,field:{type:"number",...n.minimum!==void 0&&{min:n.minimum},...n.maximum!==void 0&&{max:n.maximum},...n.type==="integer"&&{maxDecimals:0}},fromFieldValue:l=>l===""||l===null?void 0:l}):C.jsx(Ie,{...e,field:{type:o,...Rf.has(i)&&{inputType:i}},fromFieldValue:l=>l===""?r.emptyValue:l})}const Nf=5;function Bf(e){const{options:t}=e;return C.jsx(Ie,{...e,field:{type:"textarea",rows:t.rows||Nf},fromFieldValue:n=>n===""?t.emptyValue:n})}const Uf=e=>(Array.isArray(e)?e:[]).map((t,n)=>({value:String(n),label:String(t.label)}));function Hf(e){const{options:t,multiple:n,value:r,schema:i}=e,{enumOptions:o,enumDisabled:l}=t,a=Array.isArray(o)?o:[],u=c=>a.findIndex(p=>_.enumOptionsIsSelected(p.value,c)),s=Ae.useCallback(c=>{if(n)return(Array.isArray(c)?c:[]).map(g=>u(g)).filter(g=>g>=0).map(String);const p=u(c);return p>=0?String(p):void 0},[n,a]),f=Ae.useCallback(c=>{var p;return n?(Array.isArray(c)?c:[]).map(g=>{var k;return(k=a[Number(g)])==null?void 0:k.value}):c==null||c===""?t.emptyValue:(p=a[Number(c)])==null?void 0:p.value},[n,a,t.emptyValue]);return C.jsx(Ie,{...e,field:{type:"select",options:Uf(o).filter((c,p)=>{var h;return!(Array.isArray(l)&&l.includes((h=a[p])==null?void 0:h.value))}),multiple:n,clearable:!i.default&&!e.required,showSearchBox:a.length>8},value:r,toFieldValue:s,fromFieldValue:f})}function qf({id:e,value:t,label:n,hideLabel:r,disabled:i,readonly:o,onChange:l}){const a=!r&&Si(n);return C.jsxs("div",{className:"rjsf-f0-checkbox",children:[C.jsx(ae.F0Checkbox,{id:e,title:wn(n),checked:t===!0,hideLabel:r||a,disabled:i||o,onCheckedChange:u=>l(u===!0)}),a&&C.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:e,children:C.jsx(Me,{components:{p:"span"},children:n})})]})}function Vf({id:e,disabled:t,readonly:n,options:r,value:i,onChange:o}){const{enumOptions:l,enumDisabled:a}=r,u=Array.isArray(i)?i:[];return C.jsx("div",{className:"rjsf-f0-checkboxes",children:(Array.isArray(l)?l:[]).map((s,f)=>{const c=_.enumOptionsIsSelected(s.value,u),p=Array.isArray(a)&&a.includes(s.value),h=_.optionId(e,f),g=String(s.label),k=Si(g);return C.jsxs("div",{className:"rjsf-f0-checkbox",children:[C.jsx(ae.F0Checkbox,{id:h,title:wn(g),checked:c,hideLabel:k,disabled:t||n||p,onCheckedChange:S=>o(S===!0?_.enumOptionsSelectValue(f,u,l):_.enumOptionsDeselectValue(f,u,l))}),k&&C.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:h,children:C.jsx(Me,{components:{p:"span"},children:g})})]},String(s.value))})})}function $f(e){const{options:t,required:n}=e,r=Array.isArray(t.enumOptions)?t.enumOptions:[];return C.jsx(Ie,{...e,field:{type:"cardSelect",grouped:!0,options:r.map((i,o)=>{var l;return{value:String(o),label:String(i.label),...(l=i.schema)!=null&&l.description?{description:String(i.schema.description)}:{}}})},toFieldValue:i=>{const o=r.findIndex(l=>_.enumOptionsIsSelected(l.value,i));return o>=0?String(o):void 0},fromFieldValue:i=>{var o;return i===void 0||i===""?t.emptyValue:(o=r[Number(i)])==null?void 0:o.value},required:n})}const Ei=e=>!e.clickable&&e.status!=="current",Wf=({items:e,onNavigate:t})=>C.jsx("nav",{className:"rjsf-f0-steps-tabs","aria-label":"Form steps",children:e.map(n=>C.jsx("div",{className:`rjsf-f0-steps-tab rjsf-f0-steps-tab-${n.status}`,...n.status==="current"&&{"aria-current":"step"},children:C.jsx(ae.F0Button,{label:`${n.index+1}. ${n.title}`,size:"sm",variant:n.status==="current"?"neutral":"ghost",disabled:Ei(n),onClick:r=>{r.preventDefault(),t(n.index)}})},n.index))}),Yf=({items:e,currentIndex:t,onNavigate:n})=>C.jsx("nav",{className:"rjsf-f0-steps-nav","aria-label":"Form steps",children:C.jsx(Mi.F0TableOfContent,{items:e.map(r=>({id:String(r.index),label:r.title,disabled:Ei(r),onClick:i=>n(Number(i))})),activeItem:String(t),scrollable:!1})}),Xf=({layout:e,items:t,currentIndex:n,onNavigate:r,children:i})=>{const o=t[n];return C.jsxs("div",{className:`rjsf-f0-steps rjsf-f0-steps-layout-${e}`,children:[e==="sidebar"?C.jsx(Yf,{items:t,currentIndex:n,onNavigate:r}):C.jsx(Wf,{items:t,onNavigate:r}),C.jsxs("div",{className:"rjsf-f0-steps-main",children:[o&&C.jsxs("div",{className:"rjsf-f0-steps-header",children:[C.jsx("h3",{className:"rjsf-f0-steps-title",children:o.title}),o.description&&C.jsx("p",{className:"rjsf-f0-steps-description",children:o.description})]}),C.jsx("div",{className:"rjsf-f0-steps-panel",children:i})]})]})},Qf=({label:e,onClick:t,disabled:n})=>{const r=dt(t);return C.jsx("div",{className:"rjsf-f0-steps-back",children:C.jsx(ae.F0Button,{label:e,variant:"outline",disabled:n,onClick:r})})},Ti={StepsNavigation:Xf,BackButton:Qf},Ii={ArrayFieldItemButtonsTemplate:Pf,ArrayFieldItemTemplate:Df,ArrayFieldTemplate:Ff,BaseInputTemplate:Mf,ButtonTemplates:wf,DescriptionFieldTemplate:Cf,ErrorListTemplate:If,FieldErrorTemplate:Ef,FieldHelpTemplate:Tf,FieldTemplate:pf,GridTemplate:Lf,MultiSchemaFieldTemplate:zf,ObjectFieldTemplate:vf,TitleFieldTemplate:Sf,WrapIfAdditionalTemplate:Af},Ai={CheckboxWidget:qf,CheckboxesWidget:Vf,RadioWidget:$f,SelectWidget:Hf,TextareaWidget:Bf};function gt(){return{templates:Ii,widgets:Ai,multistep:Ti}}const vi=gt();function Gf(){return pr.withTheme(gt())}const Kf=pr.withTheme(vi);exports.Form=Kf;exports.Multistep=Ti;exports.Templates=Ii;exports.Theme=vi;exports.Widgets=Ai;exports.generateForm=Gf;exports.generateTheme=gt;exports.markdownComponents=Gn;
31
31
  //# sourceMappingURL=rjsf-f0.cjs.js.map