meshy-node 0.5.6 → 0.5.7

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,4 +1,4 @@
1
- import{c as Ze,ba as Dt,j as y,r as re,bb as Ar,bc as Pr,bd as zr,J as rn,B as Me,i as jr,b as Te}from"./index-nG4cAWuh.js";import{F as Lr}from"./folder-DgOi0nrN.js";import{F as Fr}from"./file-CPaJOnu-.js";/**
1
+ import{c as Ze,bc as Dt,j as y,r as re,bd as Ar,be as Pr,bf as zr,K as rn,B as Me,i as jr,b as Te}from"./index-DX2JBoPo.js";import{F as Lr}from"./folder-Cze4nFZO.js";import{F as Fr}from"./file-Bxn4xj1r.js";/**
2
2
  * @license lucide-react v1.7.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,18 +18,18 @@ import{c as Ze,ba as Dt,j as y,r as re,bb as Ar,bc as Pr,bd as zr,J as rn,B as M
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const Mr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Br=Ze("eye",Mr);function Ur(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Hr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qr={};function Jn(e,n){return(qr.jsx?Vr:Hr).test(e)}const $r=/[ \t\n\f\r]/g;function Wr(e){return typeof e=="object"?e.type==="text"?Kn(e.value):!1:Kn(e)}function Kn(e){return e.replace($r,"")===""}class qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function _t(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new qe(t,r,n)}function kn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Yr=0;const F=we(),Y=we(),bn=we(),b=we(),$=we(),Ne=we(),ne=we();function we(){return 2**++Yr}const wn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:Ne,number:b,overloadedBoolean:bn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),ln=Object.keys(wn);class Pn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),Gn(this,"space",i),typeof r=="number")for(;++l<ln.length;){const o=ln[l];Gn(this,ln[l],(r&wn[o])===wn[o])}}}Pn.prototype.defined=!0;function Gn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Pn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[kn(r)]=r,t[kn(l.attribute)]=r}return new qe(n,t,e.space)}const Rt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:$,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:b,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:$,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:Y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Mt(e,n){return n in e?e[n]:n}function Bt(e,n){return Mt(e,n.toLowerCase())}const Xr=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:$,autoFocus:F,autoPlay:F,blocking:$,capture:null,charSet:null,checked:F,cite:null,className:$,cols:b,colSpan:null,content:null,contentEditable:Y,controls:F,controlsList:$,coords:b|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:bn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:$,height:b,hidden:bn,high:b,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:$,itemRef:$,itemScope:F,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:b,pattern:null,ping:$,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:$,required:F,reversed:F,rows:b,rowSpan:b,sandbox:$,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:Y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:Bt}),Qr=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mt}),Ut=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ht=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bt}),Vt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Jr={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"},Kr=/[A-Z]/g,Zn=/-[a-z]/g,Gr=/^data[-\w.:]+$/i;function Zr(e,n){const t=kn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Gr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Zn,ni);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Zn.test(l)){let o=l.replace(Kr,ei);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Pn}return new i(r,n)}function ei(e){return"-"+e.toLowerCase()}function ni(e){return e.charAt(1).toUpperCase()}const ti=_t([Rt,Xr,Ut,Ht,Vt],"html"),zn=_t([Rt,Qr,Ut,Ht,Vt],"svg");function ri(e){return e.join(" ").trim()}var Ie={},on,et;function ii(){if(et)return on;et=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
22
- `,u="/",s="*",f="",m="comment",p="declaration";function w(T,k){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];k=k||{};var P=1,I=1;function M(z){var E=z.match(n);E&&(P+=E.length);var H=z.lastIndexOf(c);I=~H?z.length-H:I+z.length}function B(){var z={line:P,column:I};return function(E){return E.position=new x(z),_(),E}}function x(z){this.start=z,this.end={line:P,column:I},this.source=k.source}x.prototype.content=T;function D(z){var E=new Error(k.source+":"+P+":"+I+": "+z);if(E.reason=z,E.filename=k.source,E.line=P,E.column=I,E.source=T,!k.silent)throw E}function U(z){var E=z.exec(T);if(E){var H=E[0];return M(H),T=T.slice(H.length),E}}function _(){U(t)}function N(z){var E;for(z=z||[];E=v();)E!==!1&&z.push(E);return z}function v(){var z=B();if(!(u!=T.charAt(0)||s!=T.charAt(1))){for(var E=2;f!=T.charAt(E)&&(s!=T.charAt(E)||u!=T.charAt(E+1));)++E;if(E+=2,f===T.charAt(E-1))return D("End of comment missing");var H=T.slice(2,E-2);return I+=2,M(H),T=T.slice(E),I+=2,z({type:m,comment:H})}}function A(){var z=B(),E=U(r);if(E){if(v(),!U(i))return D("property missing ':'");var H=U(l),X=z({type:p,property:C(E[0].replace(e,f)),value:H?C(H[0].replace(e,f)):f});return U(o),X}}function q(){var z=[];N(z);for(var E;E=A();)E!==!1&&(z.push(E),N(z));return z}return _(),q()}function C(T){return T?T.replace(a,f):f}return on=w,on}var nt;function li(){if(nt)return Ie;nt=1;var e=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=t;const n=e(ii());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ie}var Oe={},tt;function oi(){if(tt)return Oe;tt=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Oe.camelCase=c,Oe}var De,rt;function ai(){if(rt)return De;rt=1;var e=De&&De.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(li()),t=oi();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,De=r,De}var ui=ai();const si=Dt(ui),qt=$t("end"),jn=$t("start");function $t(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 ci(e){const n=jn(e),t=qt(e);if(n&&t)return{start:n,end:t}}function Be(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?it(e.position):"start"in e||"end"in e?it(e):"line"in e||"column"in e?Sn(e):""}function Sn(e){return lt(e&&e.line)+":"+lt(e&&e.column)}function it(e){return Sn(e&&e.start)+"-"+Sn(e&&e.end)}function lt(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Be(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const Ln={}.hasOwnProperty,pi=new Map,fi=/[A-Z]/g,hi=new Set(["table","tbody","thead","tfoot","tr"]),di=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mi(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=Ci(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=Si(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"?zn:ti,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Yt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Yt(e,n,t){if(n.type==="element")return gi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return xi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ki(e,n,t);if(n.type==="mdxjsEsm")return yi(e,n);if(n.type==="root")return bi(e,n,t);if(n.type==="text")return wi(e,n)}function gi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=Qt(e,n.tagName,!1),o=Ei(e,n);let a=On(e,n);return hi.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Wr(c):!0})),Xt(e,o,l,n),Fn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function xi(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)}Ve(e,n.position)}function yi(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ve(e,n.position)}function ki(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Qt(e,n.name,!0),o=Ii(e,n),a=On(e,n);return Xt(e,o,l,n),Fn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function bi(e,n,t){const r={};return Fn(r,On(e,n)),e.create(n,e.Fragment,r,t)}function wi(e,n){return n.value}function Xt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Fn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Si(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Ci(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=jn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Ei(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ln.call(n.properties,i)){const l=vi(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&di.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ii(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ve(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Ve(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:pi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Yt(e,l,o);a!==void 0&&t.push(a)}return t}function vi(e,n,t){const r=Zr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ur(t):ri(t)),r.property==="style"){let i=typeof t=="object"?t:Ti(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ni(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Jr[r.property]||r.property:r.attribute,t]}}function Ti(e,n){try{return si(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new J("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=Wt+"#cannot-parse-style-attribute",i}}function Qt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Jn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Jn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Ln.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(e,n){const t=new J("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=Wt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ni(e){const n={};let t;for(t in e)Ln.call(e,t)&&(n[Ai(t)]=e[t]);return n}function Ai(e){let n=e.replace(fi,Pi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Pi(e){return"-"+e.toLowerCase()}const an={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"]},zi={};function ji(e,n){const t=zi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Jt(e,r,i)}function Jt(e,n,t){if(Li(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 ot(e.children,n,t)}return Array.isArray(e)?ot(e,n,t):""}function ot(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Jt(e[i],n,t);return r.join("")}function Li(e){return!!(e&&typeof e=="object")}const at=document.createElement("i");function Dn(e){const n="&"+e+";";at.innerHTML=n;const t=at.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function pe(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function ie(e,n){return e.length>0?(pe(e,e.length,0,n),e):n}const ut={}.hasOwnProperty;function Fi(e){const n={};let t=-1;for(;++t<e.length;)Oi(n,e[t]);return n}function Oi(e,n){let t;for(t in n){const i=(ut.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){ut.call(i,o)||(i[o]=[]);const a=l[o];Di(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Di(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);pe(e,0,0,r)}function Kt(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 Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ce=ye(/[A-Za-z]/),te=ye(/[\dA-Za-z]/),_i=ye(/[#-'*+\--9=?A-Z^-~]/);function Cn(e){return e!==null&&(e<32||e===127)}const En=ye(/\d/),Ri=ye(/[\dA-Fa-f]/),Mi=ye(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}const Bi=ye(new RegExp("\\p{P}|\\p{S}","u")),Ui=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ze(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return R(c)?(e.enter(t),a(c)):n(c)}function a(c){return R(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const Hi={tokenize:Vi};function Vi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return j(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const qi={tokenize:$i},st={tokenize:Wi};function $i(e){const n=this,t=[];let r=0,i,l,o;return a;function a(I){if(r<t.length){const M=t[r];return n.containerState=M[1],e.attempt(M[0].continuation,c,u)(I)}return u(I)}function c(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&P();const M=n.events.length;let B=M,x;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){x=n.events[B][1].end;break}k(r);let D=M;for(;D<n.events.length;)n.events[D][1].end={...x},D++;return pe(n.events,B+1,0,n.events.slice(M)),n.events.length=D,u(I)}return a(I)}function u(I){if(r===t.length){if(!i)return m(I);if(i.currentConstruct&&i.currentConstruct.concrete)return w(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,s,f)(I)}function s(I){return i&&P(),k(r),m(I)}function f(I){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(I)}function m(I){return n.containerState={},e.attempt(st,p,w)(I)}function p(I){return r++,t.push([n.currentConstruct,n.containerState]),m(I)}function w(I){if(I===null){i&&P(),k(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(I)}function C(I){if(I===null){T(e.exit("chunkFlow"),!0),k(0),e.consume(I);return}return j(I)?(e.consume(I),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(I),C)}function T(I,M){const B=n.sliceStream(I);if(M&&B.push(null),I.previous=l,l&&(l.next=I),l=I,i.defineSkip(I.start),i.write(B),n.parser.lazy[I.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const D=n.events.length;let U=D,_,N;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(_){N=n.events[U][1].end;break}_=!0}for(k(r),x=D;x<n.events.length;)n.events[x][1].end={...N},x++;pe(n.events,U+1,0,n.events.slice(D)),n.events.length=x}}function k(I){let M=t.length;for(;M-- >I;){const B=t[M];n.containerState=B[1],B[0].exit.call(n,e)}t.length=I}function P(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Wi(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||G(e)||Ui(e))return 1;if(Bi(e))return 2}function _n(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const In={name:"attention",resolveAll:Yi,tokenize:Xi};function Yi(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[t][1].start};pt(f,-c),pt(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:m},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ie(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ie(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=ie(u,_n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ie(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=ie(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,pe(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Xi(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=ct(c),f=!s||s===2&&i||t.includes(c),m=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?f:f&&(i||!m)),u._close=!!(l===42?m:m&&(s||!f)),n(c)}}function pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Qi={name:"autolink",tokenize:Ji};function Ji(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ce(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||te(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||te(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Cn(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),s):_i(p)?(e.consume(p),u):t(p)}function s(p){return te(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):m(p)}function m(p){if((p===45||te(p))&&r++<63){const w=p===45?m:f;return e.consume(p),w}return t(p)}}const en={partial:!0,tokenize:Ki};function Ki(e,n,t){return r;function r(l){return R(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||j(l)?n(l):t(l)}}const Gt={continuation:{tokenize:Zi},exit:el,name:"blockQuote",tokenize:Gi};function Gi(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return R(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Zi(e,n,t){const r=this;return i;function i(o){return R(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Gt,n,t)(o)}}function el(e){e.exit("blockQuote")}const Zt={name:"characterEscape",tokenize:nl};function nl(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Mi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const er={name:"characterReference",tokenize:tl};function tl(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ri,s):(e.enter("characterReferenceValue"),l=7,o=En,s(f))}function s(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return o===te&&!Dn(r.sliceSerialize(m))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),s):t(f)}}const ft={partial:!0,tokenize:il},ht={concrete:!0,name:"codeFenced",tokenize:rl};function rl(e,n,t){const r=this,i={partial:!0,tokenize:B};let l=0,o=0,a;return c;function c(x){return u(x)}function u(x){const D=r.events[r.events.length-1];return l=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(x)}function s(x){return x===a?(o++,e.consume(x),s):o<3?t(x):(e.exit("codeFencedFenceSequence"),R(x)?W(e,f,"whitespace")(x):f(x))}function f(x){return x===null||j(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(ft,C,M)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||j(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(x)):R(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,p,"whitespace")(x)):x===96&&x===a?t(x):(e.consume(x),m)}function p(x){return x===null||j(x)?f(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(x))}function w(x){return x===null||j(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?t(x):(e.consume(x),w)}function C(x){return e.attempt(i,M,T)(x)}function T(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),k}function k(x){return l>0&&R(x)?W(e,P,"linePrefix",l+1)(x):P(x)}function P(x){return x===null||j(x)?e.check(ft,C,M)(x):(e.enter("codeFlowValue"),I(x))}function I(x){return x===null||j(x)?(e.exit("codeFlowValue"),P(x)):(e.consume(x),I)}function M(x){return e.exit("codeFenced"),n(x)}function B(x,D,U){let _=0;return N;function N(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),v}function v(E){return x.enter("codeFencedFence"),R(E)?W(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):A(E)}function A(E){return E===a?(x.enter("codeFencedFenceSequence"),q(E)):U(E)}function q(E){return E===a?(_++,x.consume(E),q):_>=o?(x.exit("codeFencedFenceSequence"),R(E)?W(x,z,"whitespace")(E):z(E)):U(E)}function z(E){return E===null||j(E)?(x.exit("codeFencedFence"),D(E)):U(E)}}}function il(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const un={name:"codeIndented",tokenize:ol},ll={partial:!0,tokenize:al};function ol(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):j(u)?e.attempt(ll,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||j(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function al(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):j(o)?i(o):t(o)}}const ul={name:"codeText",previous:cl,resolve:sl,tokenize:pl};function sl(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 cl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pl(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(l=e.enter("codeTextSequence"),i=0,s(f)):j(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||j(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class fl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_e(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),_e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),_e(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);_e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);_e(this.left,t.reverse())}}}function _e(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 nr(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new fl(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,hl(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return pe(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function hl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,f,m=-1,p=t,w=0,C=0;const T=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(C=m+1,T.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),m=T.length;m--;){const k=a.slice(T[m],T[m+1]),P=l.pop();c.push([P,P+k.length-1]),e.splice(P,2,k)}for(c.reverse(),m=-1;++m<c.length;)u[w+c[m][0]]=w+c[m][1],w+=c[m][1]-c[m][0]-1;return u}const dl={resolve:gl,tokenize:xl},ml={partial:!0,tokenize:yl};function gl(e){return nr(e),e}function xl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):j(a)?e.check(ml,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function yl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||j(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function tr(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return f;function f(k){return k===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(k),e.exit(l),m):k===null||k===32||k===41||Cn(k)?t(k):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(k))}function m(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),m(k)):k===null||k===60||j(k)?t(k):(e.consume(k),k===92?w:p)}function w(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function C(k){return!s&&(k===null||k===41||G(k))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(k)):s<u&&k===40?(e.consume(k),s++,C):k===41?(e.consume(k),s--,C):k===null||k===32||k===40||Cn(k)?t(k):(e.consume(k),k===92?T:C)}function T(k){return k===40||k===41||k===92?(e.consume(k),C):C(k)}}function rr(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!R(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function ir(e,n,t,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,c):t(m)}function c(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),n):(e.enter(l),u(m))}function u(m){return m===o?(e.exit(l),c(o)):m===null?t(m):j(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(m))}function s(m){return m===o||m===null||j(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:s)}function f(m){return m===o||m===92?(e.consume(m),s):s(m)}}function Ue(e,n){let t;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):R(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const kl={name:"definition",tokenize:wl},bl={partial:!0,tokenize:Sl};function wl(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return rr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return G(p)?Ue(e,u)(p):u(p)}function u(p){return tr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(bl,f,f)(p)}function f(p){return R(p)?W(e,m,"whitespace")(p):m(p)}function m(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Sl(e,n,t){return r;function r(a){return G(a)?Ue(e,i)(a):t(a)}function i(a){return ir(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return R(a)?W(e,o,"whitespace")(a):o(a)}function o(a){return a===null||j(a)?n(a):t(a)}}const Cl={name:"hardBreakEscape",tokenize:El};function El(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return j(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Il={name:"headingAtx",resolve:vl,tokenize:Tl};function vl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},pe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Tl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||G(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||j(s)?(e.exit("atxHeading"),n(s)):R(s)?W(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||G(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Nl=["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"],dt=["pre","script","style","textarea"],Al={concrete:!0,name:"htmlFlow",resolveTo:jl,tokenize:Ll},Pl={partial:!0,tokenize:Ol},zl={partial:!0,tokenize:Fl};function jl(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 Ll(e,n,t){const r=this;let i,l,o,a,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),f}function f(d){return d===33?(e.consume(d),m):d===47?(e.consume(d),l=!0,C):d===63?(e.consume(d),i=3,r.interrupt?n:h):ce(d)?(e.consume(d),o=String.fromCharCode(d),T):t(d)}function m(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,a=0,w):ce(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function p(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function w(d){const ae="CDATA[";return d===ae.charCodeAt(a++)?(e.consume(d),a===ae.length?r.interrupt?n:A:w):t(d)}function C(d){return ce(d)?(e.consume(d),o=String.fromCharCode(d),T):t(d)}function T(d){if(d===null||d===47||d===62||G(d)){const ae=d===47,ke=o.toLowerCase();return!ae&&!l&&dt.includes(ke)?(i=1,r.interrupt?n(d):A(d)):Nl.includes(o.toLowerCase())?(i=6,ae?(e.consume(d),k):r.interrupt?n(d):A(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?P(d):I(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),T):t(d)}function k(d){return d===62?(e.consume(d),r.interrupt?n:A):t(d)}function P(d){return R(d)?(e.consume(d),P):N(d)}function I(d){return d===47?(e.consume(d),N):d===58||d===95||ce(d)?(e.consume(d),M):R(d)?(e.consume(d),I):N(d)}function M(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),M):B(d)}function B(d){return d===61?(e.consume(d),x):R(d)?(e.consume(d),B):I(d)}function x(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,D):R(d)?(e.consume(d),x):U(d)}function D(d){return d===c?(e.consume(d),c=null,_):d===null||j(d)?t(d):(e.consume(d),D)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||G(d)?B(d):(e.consume(d),U)}function _(d){return d===47||d===62||R(d)?I(d):t(d)}function N(d){return d===62?(e.consume(d),v):t(d)}function v(d){return d===null||j(d)?A(d):R(d)?(e.consume(d),v):t(d)}function A(d){return d===45&&i===2?(e.consume(d),H):d===60&&i===1?(e.consume(d),X):d===62&&i===4?(e.consume(d),oe):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),fe):j(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Pl,he,q)(d)):d===null||j(d)?(e.exit("htmlFlowData"),q(d)):(e.consume(d),A)}function q(d){return e.check(zl,z,he)(d)}function z(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),E}function E(d){return d===null||j(d)?q(d):(e.enter("htmlFlowData"),A(d))}function H(d){return d===45?(e.consume(d),h):A(d)}function X(d){return d===47?(e.consume(d),o="",le):A(d)}function le(d){if(d===62){const ae=o.toLowerCase();return dt.includes(ae)?(e.consume(d),oe):A(d)}return ce(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),le):A(d)}function fe(d){return d===93?(e.consume(d),h):A(d)}function h(d){return d===62?(e.consume(d),oe):d===45&&i===2?(e.consume(d),h):A(d)}function oe(d){return d===null||j(d)?(e.exit("htmlFlowData"),he(d)):(e.consume(d),oe)}function he(d){return e.exit("htmlFlow"),n(d)}}function Fl(e,n,t){const r=this;return i;function i(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ol(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Dl={name:"htmlText",tokenize:_l};function _l(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),B):h===63?(e.consume(h),I):ce(h)?(e.consume(h),U):t(h)}function u(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,w):ce(h)?(e.consume(h),P):t(h)}function s(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),m):j(h)?(o=f,X(h)):(e.consume(h),f)}function m(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?H(h):h===45?m(h):f(h)}function w(h){const oe="CDATA[";return h===oe.charCodeAt(l++)?(e.consume(h),l===oe.length?C:w):t(h)}function C(h){return h===null?t(h):h===93?(e.consume(h),T):j(h)?(o=C,X(h)):(e.consume(h),C)}function T(h){return h===93?(e.consume(h),k):C(h)}function k(h){return h===62?H(h):h===93?(e.consume(h),k):C(h)}function P(h){return h===null||h===62?H(h):j(h)?(o=P,X(h)):(e.consume(h),P)}function I(h){return h===null?t(h):h===63?(e.consume(h),M):j(h)?(o=I,X(h)):(e.consume(h),I)}function M(h){return h===62?H(h):I(h)}function B(h){return ce(h)?(e.consume(h),x):t(h)}function x(h){return h===45||te(h)?(e.consume(h),x):D(h)}function D(h){return j(h)?(o=D,X(h)):R(h)?(e.consume(h),D):H(h)}function U(h){return h===45||te(h)?(e.consume(h),U):h===47||h===62||G(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),H):h===58||h===95||ce(h)?(e.consume(h),N):j(h)?(o=_,X(h)):R(h)?(e.consume(h),_):H(h)}function N(h){return h===45||h===46||h===58||h===95||te(h)?(e.consume(h),N):v(h)}function v(h){return h===61?(e.consume(h),A):j(h)?(o=v,X(h)):R(h)?(e.consume(h),v):_(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,q):j(h)?(o=A,X(h)):R(h)?(e.consume(h),A):(e.consume(h),z)}function q(h){return h===i?(e.consume(h),i=void 0,E):h===null?t(h):j(h)?(o=q,X(h)):(e.consume(h),q)}function z(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||G(h)?_(h):(e.consume(h),z)}function E(h){return h===47||h===62||G(h)?_(h):t(h)}function H(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function X(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),le}function le(h){return R(h)?W(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}const Rn={name:"labelEnd",resolveAll:Ul,resolveTo:Hl,tokenize:Vl},Rl={tokenize:ql},Ml={tokenize:$l},Bl={tokenize:Wl};function Ul(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&&pe(e,0,e.length,t),e}function Hl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=ie(a,e.slice(l+1,l+r+3)),a=ie(a,[["enter",s,n]]),a=ie(a,_n(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=ie(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=ie(a,e.slice(o+1)),a=ie(a,[["exit",c,n]]),pe(e,l,e.length,a),e}function Vl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?f(m):(o=r.parser.defined.includes(Ae(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):t(m)}function c(m){return m===40?e.attempt(Rl,s,o?s:f)(m):m===91?e.attempt(Ml,s,o?u:f)(m):o?s(m):f(m)}function u(m){return e.attempt(Bl,s,f)(m)}function s(m){return n(m)}function f(m){return l._balanced=!0,t(m)}}function ql(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return G(f)?Ue(e,l)(f):l(f)}function l(f){return f===41?s(f):tr(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return G(f)?Ue(e,c)(f):s(f)}function a(f){return t(f)}function c(f){return f===34||f===39||f===40?ir(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function u(f){return G(f)?Ue(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function $l(e,n,t){const r=this;return i;function i(a){return rr.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Wl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Yl={name:"labelStartImage",resolveAll:Rn.resolveAll,tokenize:Xl};function Xl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Ql={name:"labelStartLink",resolveAll:Rn.resolveAll,tokenize:Jl};function Jl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const sn={name:"lineEnding",tokenize:Kl};function Kl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Je={name:"thematicBreak",tokenize:Gl};function Gl(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||j(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),R(u)?W(e,a,"whitespace")(u):a(u))}}const K={continuation:{tokenize:to},exit:io,name:"list",tokenize:no},Zl={partial:!0,tokenize:lo},eo={partial:!0,tokenize:ro};function no(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:En(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Je,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return En(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(en,r.interrupt?t:s,e.attempt(Zl,m,f))}function s(p){return r.containerState.initialBlankLine=!0,l++,m(p)}function f(p){return R(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):t(p)}function m(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function to(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!R(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eo,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ro(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function io(e){e.exit(this.containerState.type)}function lo(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!R(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const mt={name:"setextUnderline",resolveTo:oo,tokenize:ao};function oo(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function ao(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),R(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||j(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const uo={tokenize:so};function so(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(dl,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const co={resolveAll:or()},po=lr("string"),fo=lr("text");function lr(e){return{resolveAll:or(e==="text"?ho:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const f=i[s];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function or(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function ho(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const mo={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:Gt},go={91:kl},xo={[-2]:un,[-1]:un,32:un},yo={35:Il,42:Je,45:[mt,Je],60:Al,61:mt,95:Je,96:ht,126:ht},ko={38:er,92:Zt},bo={[-5]:sn,[-4]:sn,[-3]:sn,33:Yl,38:er,42:In,60:[Qi,Dl],91:Ql,92:[Cl,Zt],93:Rn,95:In,96:ul},wo={null:[In,co]},So={null:[42,95]},Co={null:[]},Eo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:So,contentInitial:go,disable:Co,document:mo,flow:yo,flowInitial:xo,insideSpan:wo,string:ko,text:bo},Symbol.toStringTag,{value:"Module"}));function Io(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:D(B),check:D(x),consume:P,enter:I,exit:M,interrupt:D(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function f(v){return o=ie(o,v),T(),o[o.length-1]!==null?[]:(U(n,0),u.events=_n(l,u.events,u),u.events)}function m(v,A){return To(p(v),A)}function p(v){return vo(o,v)}function w(){const{_bufferIndex:v,_index:A,line:q,column:z,offset:E}=r;return{_bufferIndex:v,_index:A,line:q,column:z,offset:E}}function C(v){i[v.line]=v.column,N()}function T(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)k(A.charCodeAt(r._bufferIndex));else k(A)}}function k(v){s=s(v)}function P(v){j(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,N()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function I(v,A){const q=A||{};return q.type=v,q.start=w(),u.events.push(["enter",q,u]),a.push(q),q}function M(v){const A=a.pop();return A.end=w(),u.events.push(["exit",A,u]),A}function B(v,A){U(v,A.from)}function x(v,A){A.restore()}function D(v,A){return q;function q(z,E,H){let X,le,fe,h;return Array.isArray(z)?he(z):"tokenize"in z?he([z]):oe(z);function oe(Q){return je;function je(ge){const Se=ge!==null&&Q[ge],Ce=ge!==null&&Q.null,We=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return he(We)(ge)}}function he(Q){return X=Q,le=0,Q.length===0?H:d(Q[le])}function d(Q){return je;function je(ge){return h=_(),fe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?ke():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,c,ae,ke)(ge)}}function ae(Q){return v(fe,h),E}function ke(Q){return h.restore(),++le<X.length?d(X[le]):H}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&pe(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function _(){const v=w(),A=u.previous,q=u.currentConstruct,z=u.events.length,E=Array.from(a);return{from:z,restore:H};function H(){r=v,u.previous=A,u.currentConstruct=q,u.events.length=z,a=E,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function To(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
21
+ */const Mr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Br=Ze("eye",Mr);function Ur(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Hr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qr={};function Kn(e,n){return(qr.jsx?Vr:Hr).test(e)}const $r=/[ \t\n\f\r]/g;function Wr(e){return typeof e=="object"?e.type==="text"?Jn(e.value):!1:Jn(e)}function Jn(e){return e.replace($r,"")===""}class qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function _t(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new qe(t,r,n)}function kn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Yr=0;const F=we(),Y=we(),bn=we(),b=we(),$=we(),Ne=we(),ne=we();function we(){return 2**++Yr}const wn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:Ne,number:b,overloadedBoolean:bn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),ln=Object.keys(wn);class Pn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),Gn(this,"space",i),typeof r=="number")for(;++l<ln.length;){const o=ln[l];Gn(this,ln[l],(r&wn[o])===wn[o])}}}Pn.prototype.defined=!0;function Gn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Pn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[kn(r)]=r,t[kn(l.attribute)]=r}return new qe(n,t,e.space)}const Rt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:$,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:b,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:$,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:Y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Mt(e,n){return n in e?e[n]:n}function Bt(e,n){return Mt(e,n.toLowerCase())}const Xr=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:$,autoFocus:F,autoPlay:F,blocking:$,capture:null,charSet:null,checked:F,cite:null,className:$,cols:b,colSpan:null,content:null,contentEditable:Y,controls:F,controlsList:$,coords:b|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:bn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:$,height:b,hidden:bn,high:b,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:$,itemRef:$,itemScope:F,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:b,pattern:null,ping:$,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:$,required:F,reversed:F,rows:b,rowSpan:b,sandbox:$,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:Y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:Bt}),Qr=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mt}),Ut=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ht=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bt}),Vt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Kr={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"},Jr=/[A-Z]/g,Zn=/-[a-z]/g,Gr=/^data[-\w.:]+$/i;function Zr(e,n){const t=kn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Gr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Zn,ni);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Zn.test(l)){let o=l.replace(Jr,ei);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Pn}return new i(r,n)}function ei(e){return"-"+e.toLowerCase()}function ni(e){return e.charAt(1).toUpperCase()}const ti=_t([Rt,Xr,Ut,Ht,Vt],"html"),zn=_t([Rt,Qr,Ut,Ht,Vt],"svg");function ri(e){return e.join(" ").trim()}var Ie={},on,et;function ii(){if(et)return on;et=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
22
+ `,u="/",s="*",f="",m="comment",p="declaration";function w(T,k){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];k=k||{};var P=1,I=1;function M(z){var E=z.match(n);E&&(P+=E.length);var H=z.lastIndexOf(c);I=~H?z.length-H:I+z.length}function B(){var z={line:P,column:I};return function(E){return E.position=new x(z),_(),E}}function x(z){this.start=z,this.end={line:P,column:I},this.source=k.source}x.prototype.content=T;function D(z){var E=new Error(k.source+":"+P+":"+I+": "+z);if(E.reason=z,E.filename=k.source,E.line=P,E.column=I,E.source=T,!k.silent)throw E}function U(z){var E=z.exec(T);if(E){var H=E[0];return M(H),T=T.slice(H.length),E}}function _(){U(t)}function N(z){var E;for(z=z||[];E=v();)E!==!1&&z.push(E);return z}function v(){var z=B();if(!(u!=T.charAt(0)||s!=T.charAt(1))){for(var E=2;f!=T.charAt(E)&&(s!=T.charAt(E)||u!=T.charAt(E+1));)++E;if(E+=2,f===T.charAt(E-1))return D("End of comment missing");var H=T.slice(2,E-2);return I+=2,M(H),T=T.slice(E),I+=2,z({type:m,comment:H})}}function A(){var z=B(),E=U(r);if(E){if(v(),!U(i))return D("property missing ':'");var H=U(l),X=z({type:p,property:C(E[0].replace(e,f)),value:H?C(H[0].replace(e,f)):f});return U(o),X}}function q(){var z=[];N(z);for(var E;E=A();)E!==!1&&(z.push(E),N(z));return z}return _(),q()}function C(T){return T?T.replace(a,f):f}return on=w,on}var nt;function li(){if(nt)return Ie;nt=1;var e=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=t;const n=e(ii());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ie}var Oe={},tt;function oi(){if(tt)return Oe;tt=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Oe.camelCase=c,Oe}var De,rt;function ai(){if(rt)return De;rt=1;var e=De&&De.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(li()),t=oi();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,De=r,De}var ui=ai();const si=Dt(ui),qt=$t("end"),jn=$t("start");function $t(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 ci(e){const n=jn(e),t=qt(e);if(n&&t)return{start:n,end:t}}function Be(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?it(e.position):"start"in e||"end"in e?it(e):"line"in e||"column"in e?Sn(e):""}function Sn(e){return lt(e&&e.line)+":"+lt(e&&e.column)}function it(e){return Sn(e&&e.start)+"-"+Sn(e&&e.end)}function lt(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Be(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ln={}.hasOwnProperty,pi=new Map,fi=/[A-Z]/g,hi=new Set(["table","tbody","thead","tfoot","tr"]),di=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mi(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=Ci(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=Si(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"?zn:ti,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Yt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Yt(e,n,t){if(n.type==="element")return gi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return xi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ki(e,n,t);if(n.type==="mdxjsEsm")return yi(e,n);if(n.type==="root")return bi(e,n,t);if(n.type==="text")return wi(e,n)}function gi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=Qt(e,n.tagName,!1),o=Ei(e,n);let a=On(e,n);return hi.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Wr(c):!0})),Xt(e,o,l,n),Fn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function xi(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)}Ve(e,n.position)}function yi(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ve(e,n.position)}function ki(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=zn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Qt(e,n.name,!0),o=Ii(e,n),a=On(e,n);return Xt(e,o,l,n),Fn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function bi(e,n,t){const r={};return Fn(r,On(e,n)),e.create(n,e.Fragment,r,t)}function wi(e,n){return n.value}function Xt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Fn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Si(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Ci(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=jn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Ei(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ln.call(n.properties,i)){const l=vi(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&di.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ii(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ve(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Ve(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:pi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Yt(e,l,o);a!==void 0&&t.push(a)}return t}function vi(e,n,t){const r=Zr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ur(t):ri(t)),r.property==="style"){let i=typeof t=="object"?t:Ti(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ni(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Kr[r.property]||r.property:r.attribute,t]}}function Ti(e,n){try{return si(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("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=Wt+"#cannot-parse-style-attribute",i}}function Qt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Kn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Kn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Ln.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(e,n){const t=new K("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=Wt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ni(e){const n={};let t;for(t in e)Ln.call(e,t)&&(n[Ai(t)]=e[t]);return n}function Ai(e){let n=e.replace(fi,Pi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Pi(e){return"-"+e.toLowerCase()}const an={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"]},zi={};function ji(e,n){const t=zi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Kt(e,r,i)}function Kt(e,n,t){if(Li(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 ot(e.children,n,t)}return Array.isArray(e)?ot(e,n,t):""}function ot(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Kt(e[i],n,t);return r.join("")}function Li(e){return!!(e&&typeof e=="object")}const at=document.createElement("i");function Dn(e){const n="&"+e+";";at.innerHTML=n;const t=at.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function pe(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function ie(e,n){return e.length>0?(pe(e,e.length,0,n),e):n}const ut={}.hasOwnProperty;function Fi(e){const n={};let t=-1;for(;++t<e.length;)Oi(n,e[t]);return n}function Oi(e,n){let t;for(t in n){const i=(ut.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){ut.call(i,o)||(i[o]=[]);const a=l[o];Di(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Di(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);pe(e,0,0,r)}function Jt(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 Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ce=ye(/[A-Za-z]/),te=ye(/[\dA-Za-z]/),_i=ye(/[#-'*+\--9=?A-Z^-~]/);function Cn(e){return e!==null&&(e<32||e===127)}const En=ye(/\d/),Ri=ye(/[\dA-Fa-f]/),Mi=ye(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}const Bi=ye(new RegExp("\\p{P}|\\p{S}","u")),Ui=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ze(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return R(c)?(e.enter(t),a(c)):n(c)}function a(c){return R(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const Hi={tokenize:Vi};function Vi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return j(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const qi={tokenize:$i},st={tokenize:Wi};function $i(e){const n=this,t=[];let r=0,i,l,o;return a;function a(I){if(r<t.length){const M=t[r];return n.containerState=M[1],e.attempt(M[0].continuation,c,u)(I)}return u(I)}function c(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&P();const M=n.events.length;let B=M,x;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){x=n.events[B][1].end;break}k(r);let D=M;for(;D<n.events.length;)n.events[D][1].end={...x},D++;return pe(n.events,B+1,0,n.events.slice(M)),n.events.length=D,u(I)}return a(I)}function u(I){if(r===t.length){if(!i)return m(I);if(i.currentConstruct&&i.currentConstruct.concrete)return w(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,s,f)(I)}function s(I){return i&&P(),k(r),m(I)}function f(I){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(I)}function m(I){return n.containerState={},e.attempt(st,p,w)(I)}function p(I){return r++,t.push([n.currentConstruct,n.containerState]),m(I)}function w(I){if(I===null){i&&P(),k(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(I)}function C(I){if(I===null){T(e.exit("chunkFlow"),!0),k(0),e.consume(I);return}return j(I)?(e.consume(I),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(I),C)}function T(I,M){const B=n.sliceStream(I);if(M&&B.push(null),I.previous=l,l&&(l.next=I),l=I,i.defineSkip(I.start),i.write(B),n.parser.lazy[I.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const D=n.events.length;let U=D,_,N;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(_){N=n.events[U][1].end;break}_=!0}for(k(r),x=D;x<n.events.length;)n.events[x][1].end={...N},x++;pe(n.events,U+1,0,n.events.slice(D)),n.events.length=x}}function k(I){let M=t.length;for(;M-- >I;){const B=t[M];n.containerState=B[1],B[0].exit.call(n,e)}t.length=I}function P(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Wi(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||G(e)||Ui(e))return 1;if(Bi(e))return 2}function _n(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const In={name:"attention",resolveAll:Yi,tokenize:Xi};function Yi(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[t][1].start};pt(f,-c),pt(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:m},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ie(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=ie(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=ie(u,_n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=ie(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=ie(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,pe(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Xi(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=ct(c),f=!s||s===2&&i||t.includes(c),m=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?f:f&&(i||!m)),u._close=!!(l===42?m:m&&(s||!f)),n(c)}}function pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Qi={name:"autolink",tokenize:Ki};function Ki(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ce(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||te(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||te(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Cn(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),s):_i(p)?(e.consume(p),u):t(p)}function s(p){return te(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):m(p)}function m(p){if((p===45||te(p))&&r++<63){const w=p===45?m:f;return e.consume(p),w}return t(p)}}const en={partial:!0,tokenize:Ji};function Ji(e,n,t){return r;function r(l){return R(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||j(l)?n(l):t(l)}}const Gt={continuation:{tokenize:Zi},exit:el,name:"blockQuote",tokenize:Gi};function Gi(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return R(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Zi(e,n,t){const r=this;return i;function i(o){return R(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Gt,n,t)(o)}}function el(e){e.exit("blockQuote")}const Zt={name:"characterEscape",tokenize:nl};function nl(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Mi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const er={name:"characterReference",tokenize:tl};function tl(e,n,t){const r=this;let i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ri,s):(e.enter("characterReferenceValue"),l=7,o=En,s(f))}function s(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return o===te&&!Dn(r.sliceSerialize(m))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),s):t(f)}}const ft={partial:!0,tokenize:il},ht={concrete:!0,name:"codeFenced",tokenize:rl};function rl(e,n,t){const r=this,i={partial:!0,tokenize:B};let l=0,o=0,a;return c;function c(x){return u(x)}function u(x){const D=r.events[r.events.length-1];return l=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(x)}function s(x){return x===a?(o++,e.consume(x),s):o<3?t(x):(e.exit("codeFencedFenceSequence"),R(x)?W(e,f,"whitespace")(x):f(x))}function f(x){return x===null||j(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(ft,C,M)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||j(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(x)):R(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,p,"whitespace")(x)):x===96&&x===a?t(x):(e.consume(x),m)}function p(x){return x===null||j(x)?f(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(x))}function w(x){return x===null||j(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?t(x):(e.consume(x),w)}function C(x){return e.attempt(i,M,T)(x)}function T(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),k}function k(x){return l>0&&R(x)?W(e,P,"linePrefix",l+1)(x):P(x)}function P(x){return x===null||j(x)?e.check(ft,C,M)(x):(e.enter("codeFlowValue"),I(x))}function I(x){return x===null||j(x)?(e.exit("codeFlowValue"),P(x)):(e.consume(x),I)}function M(x){return e.exit("codeFenced"),n(x)}function B(x,D,U){let _=0;return N;function N(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),v}function v(E){return x.enter("codeFencedFence"),R(E)?W(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):A(E)}function A(E){return E===a?(x.enter("codeFencedFenceSequence"),q(E)):U(E)}function q(E){return E===a?(_++,x.consume(E),q):_>=o?(x.exit("codeFencedFenceSequence"),R(E)?W(x,z,"whitespace")(E):z(E)):U(E)}function z(E){return E===null||j(E)?(x.exit("codeFencedFence"),D(E)):U(E)}}}function il(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const un={name:"codeIndented",tokenize:ol},ll={partial:!0,tokenize:al};function ol(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):j(u)?e.attempt(ll,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||j(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function al(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):j(o)?i(o):t(o)}}const ul={name:"codeText",previous:cl,resolve:sl,tokenize:pl};function sl(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 cl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pl(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(l=e.enter("codeTextSequence"),i=0,s(f)):j(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||j(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",u(f))}}class fl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_e(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),_e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),_e(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);_e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);_e(this.left,t.reverse())}}}function _e(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 nr(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new fl(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,hl(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return pe(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function hl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,f,m=-1,p=t,w=0,C=0;const T=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(C=m+1,T.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),m=T.length;m--;){const k=a.slice(T[m],T[m+1]),P=l.pop();c.push([P,P+k.length-1]),e.splice(P,2,k)}for(c.reverse(),m=-1;++m<c.length;)u[w+c[m][0]]=w+c[m][1],w+=c[m][1]-c[m][0]-1;return u}const dl={resolve:gl,tokenize:xl},ml={partial:!0,tokenize:yl};function gl(e){return nr(e),e}function xl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):j(a)?e.check(ml,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function yl(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||j(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function tr(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return f;function f(k){return k===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(k),e.exit(l),m):k===null||k===32||k===41||Cn(k)?t(k):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(k))}function m(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),m(k)):k===null||k===60||j(k)?t(k):(e.consume(k),k===92?w:p)}function w(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function C(k){return!s&&(k===null||k===41||G(k))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(k)):s<u&&k===40?(e.consume(k),s++,C):k===41?(e.consume(k),s--,C):k===null||k===32||k===40||Cn(k)?t(k):(e.consume(k),k===92?T:C)}function T(k){return k===40||k===41||k===92?(e.consume(k),C):C(k)}}function rr(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!R(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function ir(e,n,t,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,c):t(m)}function c(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),n):(e.enter(l),u(m))}function u(m){return m===o?(e.exit(l),c(o)):m===null?t(m):j(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(m))}function s(m){return m===o||m===null||j(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:s)}function f(m){return m===o||m===92?(e.consume(m),s):s(m)}}function Ue(e,n){let t;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):R(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const kl={name:"definition",tokenize:wl},bl={partial:!0,tokenize:Sl};function wl(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return rr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return G(p)?Ue(e,u)(p):u(p)}function u(p){return tr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(bl,f,f)(p)}function f(p){return R(p)?W(e,m,"whitespace")(p):m(p)}function m(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Sl(e,n,t){return r;function r(a){return G(a)?Ue(e,i)(a):t(a)}function i(a){return ir(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return R(a)?W(e,o,"whitespace")(a):o(a)}function o(a){return a===null||j(a)?n(a):t(a)}}const Cl={name:"hardBreakEscape",tokenize:El};function El(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return j(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Il={name:"headingAtx",resolve:vl,tokenize:Tl};function vl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},pe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Tl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||G(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||j(s)?(e.exit("atxHeading"),n(s)):R(s)?W(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||G(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Nl=["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"],dt=["pre","script","style","textarea"],Al={concrete:!0,name:"htmlFlow",resolveTo:jl,tokenize:Ll},Pl={partial:!0,tokenize:Ol},zl={partial:!0,tokenize:Fl};function jl(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 Ll(e,n,t){const r=this;let i,l,o,a,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),f}function f(d){return d===33?(e.consume(d),m):d===47?(e.consume(d),l=!0,C):d===63?(e.consume(d),i=3,r.interrupt?n:h):ce(d)?(e.consume(d),o=String.fromCharCode(d),T):t(d)}function m(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,a=0,w):ce(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function p(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function w(d){const ae="CDATA[";return d===ae.charCodeAt(a++)?(e.consume(d),a===ae.length?r.interrupt?n:A:w):t(d)}function C(d){return ce(d)?(e.consume(d),o=String.fromCharCode(d),T):t(d)}function T(d){if(d===null||d===47||d===62||G(d)){const ae=d===47,ke=o.toLowerCase();return!ae&&!l&&dt.includes(ke)?(i=1,r.interrupt?n(d):A(d)):Nl.includes(o.toLowerCase())?(i=6,ae?(e.consume(d),k):r.interrupt?n(d):A(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?P(d):I(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),T):t(d)}function k(d){return d===62?(e.consume(d),r.interrupt?n:A):t(d)}function P(d){return R(d)?(e.consume(d),P):N(d)}function I(d){return d===47?(e.consume(d),N):d===58||d===95||ce(d)?(e.consume(d),M):R(d)?(e.consume(d),I):N(d)}function M(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),M):B(d)}function B(d){return d===61?(e.consume(d),x):R(d)?(e.consume(d),B):I(d)}function x(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,D):R(d)?(e.consume(d),x):U(d)}function D(d){return d===c?(e.consume(d),c=null,_):d===null||j(d)?t(d):(e.consume(d),D)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||G(d)?B(d):(e.consume(d),U)}function _(d){return d===47||d===62||R(d)?I(d):t(d)}function N(d){return d===62?(e.consume(d),v):t(d)}function v(d){return d===null||j(d)?A(d):R(d)?(e.consume(d),v):t(d)}function A(d){return d===45&&i===2?(e.consume(d),H):d===60&&i===1?(e.consume(d),X):d===62&&i===4?(e.consume(d),oe):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),fe):j(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Pl,he,q)(d)):d===null||j(d)?(e.exit("htmlFlowData"),q(d)):(e.consume(d),A)}function q(d){return e.check(zl,z,he)(d)}function z(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),E}function E(d){return d===null||j(d)?q(d):(e.enter("htmlFlowData"),A(d))}function H(d){return d===45?(e.consume(d),h):A(d)}function X(d){return d===47?(e.consume(d),o="",le):A(d)}function le(d){if(d===62){const ae=o.toLowerCase();return dt.includes(ae)?(e.consume(d),oe):A(d)}return ce(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),le):A(d)}function fe(d){return d===93?(e.consume(d),h):A(d)}function h(d){return d===62?(e.consume(d),oe):d===45&&i===2?(e.consume(d),h):A(d)}function oe(d){return d===null||j(d)?(e.exit("htmlFlowData"),he(d)):(e.consume(d),oe)}function he(d){return e.exit("htmlFlow"),n(d)}}function Fl(e,n,t){const r=this;return i;function i(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ol(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Dl={name:"htmlText",tokenize:_l};function _l(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),B):h===63?(e.consume(h),I):ce(h)?(e.consume(h),U):t(h)}function u(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,w):ce(h)?(e.consume(h),P):t(h)}function s(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),m):j(h)?(o=f,X(h)):(e.consume(h),f)}function m(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?H(h):h===45?m(h):f(h)}function w(h){const oe="CDATA[";return h===oe.charCodeAt(l++)?(e.consume(h),l===oe.length?C:w):t(h)}function C(h){return h===null?t(h):h===93?(e.consume(h),T):j(h)?(o=C,X(h)):(e.consume(h),C)}function T(h){return h===93?(e.consume(h),k):C(h)}function k(h){return h===62?H(h):h===93?(e.consume(h),k):C(h)}function P(h){return h===null||h===62?H(h):j(h)?(o=P,X(h)):(e.consume(h),P)}function I(h){return h===null?t(h):h===63?(e.consume(h),M):j(h)?(o=I,X(h)):(e.consume(h),I)}function M(h){return h===62?H(h):I(h)}function B(h){return ce(h)?(e.consume(h),x):t(h)}function x(h){return h===45||te(h)?(e.consume(h),x):D(h)}function D(h){return j(h)?(o=D,X(h)):R(h)?(e.consume(h),D):H(h)}function U(h){return h===45||te(h)?(e.consume(h),U):h===47||h===62||G(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),H):h===58||h===95||ce(h)?(e.consume(h),N):j(h)?(o=_,X(h)):R(h)?(e.consume(h),_):H(h)}function N(h){return h===45||h===46||h===58||h===95||te(h)?(e.consume(h),N):v(h)}function v(h){return h===61?(e.consume(h),A):j(h)?(o=v,X(h)):R(h)?(e.consume(h),v):_(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,q):j(h)?(o=A,X(h)):R(h)?(e.consume(h),A):(e.consume(h),z)}function q(h){return h===i?(e.consume(h),i=void 0,E):h===null?t(h):j(h)?(o=q,X(h)):(e.consume(h),q)}function z(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||G(h)?_(h):(e.consume(h),z)}function E(h){return h===47||h===62||G(h)?_(h):t(h)}function H(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function X(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),le}function le(h){return R(h)?W(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}const Rn={name:"labelEnd",resolveAll:Ul,resolveTo:Hl,tokenize:Vl},Rl={tokenize:ql},Ml={tokenize:$l},Bl={tokenize:Wl};function Ul(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&&pe(e,0,e.length,t),e}function Hl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=ie(a,e.slice(l+1,l+r+3)),a=ie(a,[["enter",s,n]]),a=ie(a,_n(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=ie(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=ie(a,e.slice(o+1)),a=ie(a,[["exit",c,n]]),pe(e,l,e.length,a),e}function Vl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?f(m):(o=r.parser.defined.includes(Ae(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):t(m)}function c(m){return m===40?e.attempt(Rl,s,o?s:f)(m):m===91?e.attempt(Ml,s,o?u:f)(m):o?s(m):f(m)}function u(m){return e.attempt(Bl,s,f)(m)}function s(m){return n(m)}function f(m){return l._balanced=!0,t(m)}}function ql(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return G(f)?Ue(e,l)(f):l(f)}function l(f){return f===41?s(f):tr(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return G(f)?Ue(e,c)(f):s(f)}function a(f){return t(f)}function c(f){return f===34||f===39||f===40?ir(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function u(f){return G(f)?Ue(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function $l(e,n,t){const r=this;return i;function i(a){return rr.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Wl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Yl={name:"labelStartImage",resolveAll:Rn.resolveAll,tokenize:Xl};function Xl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Ql={name:"labelStartLink",resolveAll:Rn.resolveAll,tokenize:Kl};function Kl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const sn={name:"lineEnding",tokenize:Jl};function Jl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Ke={name:"thematicBreak",tokenize:Gl};function Gl(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||j(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),R(u)?W(e,a,"whitespace")(u):a(u))}}const J={continuation:{tokenize:to},exit:io,name:"list",tokenize:no},Zl={partial:!0,tokenize:lo},eo={partial:!0,tokenize:ro};function no(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:En(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ke,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return En(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(en,r.interrupt?t:s,e.attempt(Zl,m,f))}function s(p){return r.containerState.initialBlankLine=!0,l++,m(p)}function f(p){return R(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):t(p)}function m(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function to(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!R(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eo,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(J,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ro(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function io(e){e.exit(this.containerState.type)}function lo(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!R(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const mt={name:"setextUnderline",resolveTo:oo,tokenize:ao};function oo(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function ao(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),R(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||j(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const uo={tokenize:so};function so(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(dl,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const co={resolveAll:or()},po=lr("string"),fo=lr("text");function lr(e){return{resolveAll:or(e==="text"?ho:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const f=i[s];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function or(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function ho(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const mo={42:J,43:J,45:J,48:J,49:J,50:J,51:J,52:J,53:J,54:J,55:J,56:J,57:J,62:Gt},go={91:kl},xo={[-2]:un,[-1]:un,32:un},yo={35:Il,42:Ke,45:[mt,Ke],60:Al,61:mt,95:Ke,96:ht,126:ht},ko={38:er,92:Zt},bo={[-5]:sn,[-4]:sn,[-3]:sn,33:Yl,38:er,42:In,60:[Qi,Dl],91:Ql,92:[Cl,Zt],93:Rn,95:In,96:ul},wo={null:[In,co]},So={null:[42,95]},Co={null:[]},Eo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:So,contentInitial:go,disable:Co,document:mo,flow:yo,flowInitial:xo,insideSpan:wo,string:ko,text:bo},Symbol.toStringTag,{value:"Module"}));function Io(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:D(B),check:D(x),consume:P,enter:I,exit:M,interrupt:D(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function f(v){return o=ie(o,v),T(),o[o.length-1]!==null?[]:(U(n,0),u.events=_n(l,u.events,u),u.events)}function m(v,A){return To(p(v),A)}function p(v){return vo(o,v)}function w(){const{_bufferIndex:v,_index:A,line:q,column:z,offset:E}=r;return{_bufferIndex:v,_index:A,line:q,column:z,offset:E}}function C(v){i[v.line]=v.column,N()}function T(){let v;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<A.length;)k(A.charCodeAt(r._bufferIndex));else k(A)}}function k(v){s=s(v)}function P(v){j(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,N()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function I(v,A){const q=A||{};return q.type=v,q.start=w(),u.events.push(["enter",q,u]),a.push(q),q}function M(v){const A=a.pop();return A.end=w(),u.events.push(["exit",A,u]),A}function B(v,A){U(v,A.from)}function x(v,A){A.restore()}function D(v,A){return q;function q(z,E,H){let X,le,fe,h;return Array.isArray(z)?he(z):"tokenize"in z?he([z]):oe(z);function oe(Q){return je;function je(ge){const Se=ge!==null&&Q[ge],Ce=ge!==null&&Q.null,We=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return he(We)(ge)}}function he(Q){return X=Q,le=0,Q.length===0?H:d(Q[le])}function d(Q){return je;function je(ge){return h=_(),fe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?ke():Q.tokenize.call(A?Object.assign(Object.create(u),A):u,c,ae,ke)(ge)}}function ae(Q){return v(fe,h),E}function ke(Q){return h.restore(),++le<X.length?d(X[le]):H}}}function U(v,A){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&pe(u.events,A,u.events.length-A,v.resolve(u.events.slice(A),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function _(){const v=w(),A=u.previous,q=u.currentConstruct,z=u.events.length,E=Array.from(a);return{from:z,restore:H};function H(){r=v,u.previous=A,u.currentConstruct=q,u.events.length=z,a=E,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function To(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
23
23
  `;break}case-3:{o=`\r
24
- `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function No(e){const r={constructs:Fi([Eo,...(e||{}).extensions||[]]),content:i(Hi),defined:[],document:i(qi),flow:i(uo),lazy:{},string:i(po),text:i(fo)};return r;function i(l){return o;function o(a){return Io(r,l,a)}}}function Ao(e){for(;!nr(e););return e}const gt=/[\0\t\n\r]/g;function Po(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,f,m,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,u=gt.exec(l),m=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(m),!u){n=l.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(l.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const zo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jo(e){return e.replace(zo,Lo)}function Lo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Kt(t.slice(l?2:1),l?16:10)}return Dn(t)||e}const ar={}.hasOwnProperty;function Fo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Oo(t)(Ao(No(t).document().write(Po()(e,n,!0))))}function Oo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Yn),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(qn),blockQuote:l(Ce),characterEscape:_,characterReference:_,codeFenced:l(We),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(We,o),codeText:l(br,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(wr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Sr),hardBreakEscape:l($n),hardBreakTrailing:l($n),htmlFlow:l(Wn,o),htmlFlowData:_,htmlText:l(Wn,o),htmlTextData:_,image:l(Cr),label:o,link:l(Yn),listItem:l(Er),listItemValue:m,listOrdered:l(Xn,f),listUnordered:l(Xn),paragraph:l(Ir),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(qn),strong:l(vr),thematicBreak:l(Nr)},exit:{atxHeading:c(),atxHeadingSequence:B,autolink:c(),autolinkEmail:Se,autolinkProtocol:ge,blockQuote:c(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Q,characterReference:je,codeFenced:c(T),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:N,codeIndented:c(k),codeText:c(E),codeTextData:N,data:N,definition:c(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:I,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(q),htmlFlowData:N,htmlText:c(z),htmlTextData:N,image:c(X),label:fe,labelText:le,lineEnding:v,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ae,resourceDestinationString:h,resourceTitleString:oe,resource:he,setextHeading:c(U),setextHeadingLineSequence:D,setextHeadingText:x,strong:c(),thematicBreak:c()}};ur(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let S={type:"root",children:[]};const L={stack:[S],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},O=[];let V=-1;for(;++V<g.length;)if(g[V][1].type==="listOrdered"||g[V][1].type==="listUnordered")if(g[V][0]==="enter")O.push(V);else{const ue=O.pop();V=i(g,ue,V)}for(V=-1;++V<g.length;){const ue=n[g[V][0]];ar.call(ue,g[V][1].type)&&ue[g[V][1].type].call(Object.assign({sliceSerialize:g[V][2].sliceSerialize},L),g[V][1])}if(L.tokenStack.length>0){const ue=L.tokenStack[L.tokenStack.length-1];(ue[1]||xt).call(L,void 0,ue[0])}for(S.position={start:xe(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:xe(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<n.transforms.length;)S=n.transforms[V](S)||S;return S}function i(g,S,L){let O=S-1,V=-1,ue=!1,be,de,Le,Fe;for(;++O<=L;){const ee=g[O];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?V++:V--,Fe=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(be&&!Fe&&!V&&!Le&&(Le=O),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!V&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||V===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(be){let Ee=O;for(de=void 0;Ee--;){const me=g[Ee];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;de&&(g[de][1].type="lineEndingBlank",ue=!0),me[1].type="lineEnding",de=Ee}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Le&&(!de||Le<de)&&(be._spread=!0),be.end=Object.assign({},de?g[de][1].start:ee[1].end),g.splice(de||O,0,["exit",be,ee[2]]),O++,L++}if(ee[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};be=Ee,g.splice(O,0,["enter",Ee,ee[2]]),O++,L++,Le=void 0,Fe=!0}}}return g[S][1]._spread=ue,L}function l(g,S){return L;function L(O){a.call(this,g(O),O),S&&S.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,S,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,L||void 0]),g.position={start:xe(S.start),end:void 0}}function c(g){return S;function S(L){g&&g.call(this,L),u.call(this,L)}}function u(g,S){const L=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(S?S.call(this,g,O[0]):(O[1]||xt).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+Be({start:g.start,end:g.end})+"): it’s not open");L.position.end=xe(g.end)}function s(){return ji(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(g){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function w(){const g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function P(g){const S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase()}function I(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function M(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function B(g){const S=this.stack[this.stack.length-1];if(!S.depth){const L=this.sliceSerialize(g).length;S.depth=L}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function D(g){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const L=this.stack[this.stack.length-1].children;let O=L[L.length-1];(!O||O.type!=="text")&&(O=Tr(),O.position={start:xe(g.start),end:void 0},L.push(O)),this.stack.push(O)}function N(g){const S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=xe(g.end)}function v(g){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=S.children[S.children.length-1];L.position.end=xe(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(_.call(this,g),N.call(this,g))}function A(){this.data.atHardBreak=!0}function q(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function z(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function E(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function H(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function le(g){const S=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=jo(S),L.identifier=Ae(S).toLowerCase()}function fe(){const g=this.stack[this.stack.length-1],S=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const O=g.children;L.children=O}else L.alt=S}function h(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function oe(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function he(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(g){const S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ke(g){this.data.characterReferenceType=g.type}function Q(g){const S=this.sliceSerialize(g),L=this.data.characterReferenceType;let O;L?(O=Kt(S,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Dn(S);const V=this.stack[this.stack.length-1];V.value+=O}function je(g){const S=this.stack.pop();S.position.end=xe(g.end)}function ge(g){N.call(this,g);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function Se(g){N.call(this,g);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function br(){return{type:"inlineCode",value:""}}function wr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sr(){return{type:"emphasis",children:[]}}function qn(){return{type:"heading",depth:0,children:[]}}function $n(){return{type:"break"}}function Wn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function Yn(){return{type:"link",title:null,url:"",children:[]}}function Xn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Er(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ir(){return{type:"paragraph",children:[]}}function vr(){return{type:"strong",children:[]}}function Tr(){return{type:"text",value:""}}function Nr(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function ur(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?ur(e,r):Do(e,r)}}function Do(e,n){let t;for(t in n)if(ar.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 xt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Be({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is still open")}function _o(e){const n=this;n.parser=t;function t(r){return Fo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ro(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 Mo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
24
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function No(e){const r={constructs:Fi([Eo,...(e||{}).extensions||[]]),content:i(Hi),defined:[],document:i(qi),flow:i(uo),lazy:{},string:i(po),text:i(fo)};return r;function i(l){return o;function o(a){return Io(r,l,a)}}}function Ao(e){for(;!nr(e););return e}const gt=/[\0\t\n\r]/g;function Po(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,f,m,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,u=gt.exec(l),m=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(m),!u){n=l.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(l.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const zo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jo(e){return e.replace(zo,Lo)}function Lo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Jt(t.slice(l?2:1),l?16:10)}return Dn(t)||e}const ar={}.hasOwnProperty;function Fo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Oo(t)(Ao(No(t).document().write(Po()(e,n,!0))))}function Oo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Yn),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(qn),blockQuote:l(Ce),characterEscape:_,characterReference:_,codeFenced:l(We),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(We,o),codeText:l(br,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(wr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Sr),hardBreakEscape:l($n),hardBreakTrailing:l($n),htmlFlow:l(Wn,o),htmlFlowData:_,htmlText:l(Wn,o),htmlTextData:_,image:l(Cr),label:o,link:l(Yn),listItem:l(Er),listItemValue:m,listOrdered:l(Xn,f),listUnordered:l(Xn),paragraph:l(Ir),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(qn),strong:l(vr),thematicBreak:l(Nr)},exit:{atxHeading:c(),atxHeadingSequence:B,autolink:c(),autolinkEmail:Se,autolinkProtocol:ge,blockQuote:c(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Q,characterReference:je,codeFenced:c(T),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:N,codeIndented:c(k),codeText:c(E),codeTextData:N,data:N,definition:c(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:I,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(q),htmlFlowData:N,htmlText:c(z),htmlTextData:N,image:c(X),label:fe,labelText:le,lineEnding:v,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ae,resourceDestinationString:h,resourceTitleString:oe,resource:he,setextHeading:c(U),setextHeadingLineSequence:D,setextHeadingText:x,strong:c(),thematicBreak:c()}};ur(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let S={type:"root",children:[]};const L={stack:[S],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},O=[];let V=-1;for(;++V<g.length;)if(g[V][1].type==="listOrdered"||g[V][1].type==="listUnordered")if(g[V][0]==="enter")O.push(V);else{const ue=O.pop();V=i(g,ue,V)}for(V=-1;++V<g.length;){const ue=n[g[V][0]];ar.call(ue,g[V][1].type)&&ue[g[V][1].type].call(Object.assign({sliceSerialize:g[V][2].sliceSerialize},L),g[V][1])}if(L.tokenStack.length>0){const ue=L.tokenStack[L.tokenStack.length-1];(ue[1]||xt).call(L,void 0,ue[0])}for(S.position={start:xe(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:xe(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<n.transforms.length;)S=n.transforms[V](S)||S;return S}function i(g,S,L){let O=S-1,V=-1,ue=!1,be,de,Le,Fe;for(;++O<=L;){const ee=g[O];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?V++:V--,Fe=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(be&&!Fe&&!V&&!Le&&(Le=O),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!V&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||V===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(be){let Ee=O;for(de=void 0;Ee--;){const me=g[Ee];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;de&&(g[de][1].type="lineEndingBlank",ue=!0),me[1].type="lineEnding",de=Ee}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Le&&(!de||Le<de)&&(be._spread=!0),be.end=Object.assign({},de?g[de][1].start:ee[1].end),g.splice(de||O,0,["exit",be,ee[2]]),O++,L++}if(ee[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};be=Ee,g.splice(O,0,["enter",Ee,ee[2]]),O++,L++,Le=void 0,Fe=!0}}}return g[S][1]._spread=ue,L}function l(g,S){return L;function L(O){a.call(this,g(O),O),S&&S.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,S,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,L||void 0]),g.position={start:xe(S.start),end:void 0}}function c(g){return S;function S(L){g&&g.call(this,L),u.call(this,L)}}function u(g,S){const L=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(S?S.call(this,g,O[0]):(O[1]||xt).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+Be({start:g.start,end:g.end})+"): it’s not open");L.position.end=xe(g.end)}function s(){return ji(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(g){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function w(){const g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function P(g){const S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase()}function I(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function M(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function B(g){const S=this.stack[this.stack.length-1];if(!S.depth){const L=this.sliceSerialize(g).length;S.depth=L}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function D(g){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const L=this.stack[this.stack.length-1].children;let O=L[L.length-1];(!O||O.type!=="text")&&(O=Tr(),O.position={start:xe(g.start),end:void 0},L.push(O)),this.stack.push(O)}function N(g){const S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=xe(g.end)}function v(g){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=S.children[S.children.length-1];L.position.end=xe(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(_.call(this,g),N.call(this,g))}function A(){this.data.atHardBreak=!0}function q(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function z(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function E(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function H(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function le(g){const S=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=jo(S),L.identifier=Ae(S).toLowerCase()}function fe(){const g=this.stack[this.stack.length-1],S=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const O=g.children;L.children=O}else L.alt=S}function h(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function oe(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function he(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(g){const S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ke(g){this.data.characterReferenceType=g.type}function Q(g){const S=this.sliceSerialize(g),L=this.data.characterReferenceType;let O;L?(O=Jt(S,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Dn(S);const V=this.stack[this.stack.length-1];V.value+=O}function je(g){const S=this.stack.pop();S.position.end=xe(g.end)}function ge(g){N.call(this,g);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function Se(g){N.call(this,g);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function br(){return{type:"inlineCode",value:""}}function wr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sr(){return{type:"emphasis",children:[]}}function qn(){return{type:"heading",depth:0,children:[]}}function $n(){return{type:"break"}}function Wn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function Yn(){return{type:"link",title:null,url:"",children:[]}}function Xn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Er(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ir(){return{type:"paragraph",children:[]}}function vr(){return{type:"strong",children:[]}}function Tr(){return{type:"text",value:""}}function Nr(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function ur(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?ur(e,r):Do(e,r)}}function Do(e,n){let t;for(t in n)if(ar.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 xt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Be({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is still open")}function _o(e){const n=this;n.parser=t;function t(r){return Fo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ro(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 Mo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
25
25
  `}]}function Bo(e,n){const t=n.value?n.value+`
26
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Uo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ho(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ze(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function qo(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 $o(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function sr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Wo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return sr(e,n);const i={src:ze(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Yo(e,n){const t={src:ze(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Xo(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 Qo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return sr(e,n);const i={href:ze(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Jo(e,n){const t={href:ze(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ko(e,n,t){const r=e.all(n),i=t?Go(t):cr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
26
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Uo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ho(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ze(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function qo(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 $o(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function sr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Wo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return sr(e,n);const i={src:ze(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Yo(e,n){const t={src:ze(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Xo(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 Qo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return sr(e,n);const i={href:ze(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Ko(e,n){const t={href:ze(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Jo(e,n,t){const r=e.all(n),i=t?Go(t):cr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
27
27
  `}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
28
- `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function Go(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=cr(t[r])}return n}function cr(e){const n=e.spread;return n??e.children.length>1}function Zo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function ea(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function na(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ta(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ra(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=jn(n.children[1]),c=qt(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ia(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const f=n.children[c],m={},p=o?o[c]:void 0;p&&(m.align=p);let w={type:"element",tagName:l,properties:m,children:[]};f&&(w.children=e.all(f),e.patch(f,w),w=e.applyData(f,w)),u.push(w)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function la(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const yt=9,kt=32;function oa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(bt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(bt(n.slice(i),i>0,!1)),l.join("")}function bt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===yt||l===kt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===yt||l===kt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function aa(e,n){const t={type:"text",value:oa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ua(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const sa={blockquote:Ro,break:Mo,code:Bo,delete:Uo,emphasis:Ho,footnoteReference:Vo,heading:qo,html:$o,imageReference:Wo,image:Yo,inlineCode:Xo,linkReference:Qo,link:Jo,listItem:Ko,list:Zo,paragraph:ea,root:na,strong:ta,table:ra,tableCell:la,tableRow:ia,text:aa,thematicBreak:ua,toml:Ye,yaml:Ye,definition:Ye,footnoteDefinition:Ye};function Ye(){}const pr=-1,nn=0,He=1,Ke=2,Mn=3,Bn=4,Un=5,Hn=6,fr=7,hr=8,wt=typeof self=="object"?self:globalThis,ca=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case nn:case pr:return t(o,i);case He:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Ke:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Mn:return t(new Date(o),i);case Bn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Un:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case Hn:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case fr:{const{name:a,message:c}=o;return t(new wt[a](c),i)}case hr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new wt[l](o),i)};return r},St=e=>ca(new Map,e)(0),ve="",{toString:pa}={},{keys:fa}=Object,Re=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=pa.call(e).slice(8,-1);switch(t){case"Array":return[He,ve];case"Object":return[Ke,ve];case"Date":return[Mn,ve];case"RegExp":return[Bn,ve];case"Map":return[Un,ve];case"Set":return[Hn,ve];case"DataView":return[He,t]}return t.includes("Array")?[He,t]:t.includes("Error")?[fr,t]:[Ke,t]},Xe=([e,n])=>e===nn&&(n==="function"||n==="symbol"),ha=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Re(o);switch(a){case nn:{let s=o;switch(c){case"bigint":a=hr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([pr],o)}return i([a,s],o)}case He:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),i([c,[...m]],o)}const s=[],f=i([a,s],o);for(const m of o)s.push(l(m));return f}case Ke:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],f=i([a,s],o);for(const m of fa(o))(e||!Xe(Re(o[m])))&&s.push([l(m),l(o[m])]);return f}case Mn:return i([a,o.toISOString()],o);case Bn:{const{source:s,flags:f}=o;return i([a,{source:s,flags:f}],o)}case Un:{const s=[],f=i([a,s],o);for(const[m,p]of o)(e||!(Xe(Re(m))||Xe(Re(p))))&&s.push([l(m),l(p)]);return f}case Hn:{const s=[],f=i([a,s],o);for(const m of o)(e||!Xe(Re(m)))&&s.push(l(m));return f}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},Ct=(e,{json:n,lossy:t}={})=>{const r=[];return ha(!(n||t),!!n,new Map,r)(e),r},Ge=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?St(Ct(e,n)):structuredClone(e):(e,n)=>St(Ct(e,n));function da(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 ma(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function ga(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||da,r=e.options.footnoteBackLabel||ma,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),f=String(u.identifier).toUpperCase(),m=ze(f.toLowerCase());let p=0;const w=[],C=e.footnoteCounts.get(f);for(;C!==void 0&&++p<=C;){w.length>0&&w.push({type:"text",value:" "});let P=typeof t=="string"?t:t(c,p);typeof P=="string"&&(P={type:"text",value:P}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const T=s[s.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const P=T.children[T.children.length-1];P&&P.type==="text"?P.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else s.push(...w);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+m},children:e.wrap(s,!0)};e.patch(u,k),a.push(k)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ge(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
28
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function Go(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=cr(t[r])}return n}function cr(e){const n=e.spread;return n??e.children.length>1}function Zo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function ea(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function na(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ta(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ra(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=jn(n.children[1]),c=qt(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ia(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const f=n.children[c],m={},p=o?o[c]:void 0;p&&(m.align=p);let w={type:"element",tagName:l,properties:m,children:[]};f&&(w.children=e.all(f),e.patch(f,w),w=e.applyData(f,w)),u.push(w)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function la(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const yt=9,kt=32;function oa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(bt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(bt(n.slice(i),i>0,!1)),l.join("")}function bt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===yt||l===kt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===yt||l===kt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function aa(e,n){const t={type:"text",value:oa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ua(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const sa={blockquote:Ro,break:Mo,code:Bo,delete:Uo,emphasis:Ho,footnoteReference:Vo,heading:qo,html:$o,imageReference:Wo,image:Yo,inlineCode:Xo,linkReference:Qo,link:Ko,listItem:Jo,list:Zo,paragraph:ea,root:na,strong:ta,table:ra,tableCell:la,tableRow:ia,text:aa,thematicBreak:ua,toml:Ye,yaml:Ye,definition:Ye,footnoteDefinition:Ye};function Ye(){}const pr=-1,nn=0,He=1,Je=2,Mn=3,Bn=4,Un=5,Hn=6,fr=7,hr=8,wt=typeof self=="object"?self:globalThis,ca=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case nn:case pr:return t(o,i);case He:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Je:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Mn:return t(new Date(o),i);case Bn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Un:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case Hn:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case fr:{const{name:a,message:c}=o;return t(new wt[a](c),i)}case hr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new wt[l](o),i)};return r},St=e=>ca(new Map,e)(0),ve="",{toString:pa}={},{keys:fa}=Object,Re=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=pa.call(e).slice(8,-1);switch(t){case"Array":return[He,ve];case"Object":return[Je,ve];case"Date":return[Mn,ve];case"RegExp":return[Bn,ve];case"Map":return[Un,ve];case"Set":return[Hn,ve];case"DataView":return[He,t]}return t.includes("Array")?[He,t]:t.includes("Error")?[fr,t]:[Je,t]},Xe=([e,n])=>e===nn&&(n==="function"||n==="symbol"),ha=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Re(o);switch(a){case nn:{let s=o;switch(c){case"bigint":a=hr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([pr],o)}return i([a,s],o)}case He:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),i([c,[...m]],o)}const s=[],f=i([a,s],o);for(const m of o)s.push(l(m));return f}case Je:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],f=i([a,s],o);for(const m of fa(o))(e||!Xe(Re(o[m])))&&s.push([l(m),l(o[m])]);return f}case Mn:return i([a,o.toISOString()],o);case Bn:{const{source:s,flags:f}=o;return i([a,{source:s,flags:f}],o)}case Un:{const s=[],f=i([a,s],o);for(const[m,p]of o)(e||!(Xe(Re(m))||Xe(Re(p))))&&s.push([l(m),l(p)]);return f}case Hn:{const s=[],f=i([a,s],o);for(const m of o)(e||!Xe(Re(m)))&&s.push(l(m));return f}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},Ct=(e,{json:n,lossy:t}={})=>{const r=[];return ha(!(n||t),!!n,new Map,r)(e),r},Ge=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?St(Ct(e,n)):structuredClone(e):(e,n)=>St(Ct(e,n));function da(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 ma(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function ga(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||da,r=e.options.footnoteBackLabel||ma,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),f=String(u.identifier).toUpperCase(),m=ze(f.toLowerCase());let p=0;const w=[],C=e.footnoteCounts.get(f);for(;C!==void 0&&++p<=C;){w.length>0&&w.push({type:"text",value:" "});let P=typeof t=="string"?t:t(c,p);typeof P=="string"&&(P={type:"text",value:P}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const T=s[s.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const P=T.children[T.children.length-1];P&&P.type==="text"?P.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else s.push(...w);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+m},children:e.wrap(s,!0)};e.patch(u,k),a.push(k)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ge(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
29
29
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
30
30
  `}]}}const dr=(function(e){if(e==null)return ba;if(typeof e=="function")return tn(e);if(typeof e=="object")return Array.isArray(e)?xa(e):ya(e);if(typeof e=="string")return ka(e);throw new Error("Expected function, string, or object as test")});function xa(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=dr(e[t]);return tn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function ya(e){const n=e;return tn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function ka(e){return tn(n);function n(t){return t&&t.type===e}}function tn(e){return n;function n(t,r,i){return!!(wa(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function ba(){return!0}function wa(e){return e!==null&&typeof e=="object"&&"type"in e}const mr=[],Sa=!0,Et=!1,Ca="skip";function Ea(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=dr(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=mr,w,C,T;if((!n||l(c,u,s[s.length-1]||void 0))&&(p=Ia(t(c,s)),p[0]===Et))return p;if("children"in c&&c.children){const k=c;if(k.children&&p[0]!==Ca)for(C=(r?k.children.length:-1)+o,T=s.concat(k);C>-1&&C<k.children.length;){const P=k.children[C];if(w=a(P,C,T)(),w[0]===Et)return w;C=typeof w[1]=="number"?w[1]:C+o}}return p}}}function Ia(e){return Array.isArray(e)?e:typeof e=="number"?[Sa,e]:e==null?mr:[e]}function gr(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),Ea(e,l,a,i);function a(c,u){const s=u[u.length-1],f=s?s.children.indexOf(c):void 0;return o(c,f,s)}}const vn={}.hasOwnProperty,va={};function Ta(e,n){const t=n||va,r=new Map,i=new Map,l=new Map,o={...sa,...t.handlers},a={all:u,applyData:Aa,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:Na,wrap:za};return gr(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const f=s.type==="definition"?r:i,m=String(s.identifier).toUpperCase();f.has(m)||f.set(m,s)}}),a;function c(s,f){const m=s.type,p=a.handlers[m];if(vn.call(a.handlers,m)&&p)return p(a,s,f);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in s){const{children:C,...T}=s,k=Ge(T);return k.children=a.all(s),k}return Ge(s)}return(a.options.unknownHandler||Pa)(a,s,f)}function u(s){const f=[];if("children"in s){const m=s.children;let p=-1;for(;++p<m.length;){const w=a.one(m[p],s);if(w){if(p&&m[p-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=It(w.value)),!Array.isArray(w)&&w.type==="element")){const C=w.children[0];C&&C.type==="text"&&(C.value=It(C.value))}Array.isArray(w)?f.push(...w):f.push(w)}}}return f}}function Na(e,n){e.position&&(n.position=ci(e))}function Aa(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Ge(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Pa(e,n){const t=n.data||{},r="value"in n&&!(vn.call(t,"hProperties")||vn.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 za(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
31
31
  `});++r<e.length;)r&&t.push({type:"text",value:`
32
32
  `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
33
33
  `}),t}function It(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function vt(e,n){const t=Ta(e,n),r=t.one(e,void 0),i=ga(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
34
- `},i),l}function ja(e,n){return e&&"run"in e?async function(t,r){const i=vt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return vt(t,{file:r,...e||n})}}function Tt(e){if(e)throw e}var cn,Nt;function La(){if(Nt)return cn;Nt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!f)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return cn=function c(){var u,s,f,m,p,w,C=arguments[0],T=1,k=arguments.length,P=!1;for(typeof C=="boolean"&&(P=C,C=arguments[1]||{},T=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});T<k;++T)if(u=arguments[T],u!=null)for(s in u)f=a(C,s),m=a(u,s),C!==m&&(P&&m&&(l(m)||(p=i(m)))?(p?(p=!1,w=f&&i(f)?f:[]):w=f&&l(f)?f:{},o(C,{name:s,newValue:c(P,w,m)})):typeof m<"u"&&o(C,{name:s,newValue:m}));return C},cn}var Fa=La();const pn=Dt(Fa);function Tn(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 Oa(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let f=-1;if(c){o(c);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,s?Da(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Da(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const se={basename:_a,dirname:Ra,extname:Ma,join:Ba,sep:"/"};function _a(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');$e(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ra(e){if($e(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 Ma(e){$e(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ba(...e){let n=-1,t;for(;++n<e.length;)$e(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ua(t)}function Ua(e){$e(e);const n=e.codePointAt(0)===47;let t=Ha(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ha(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function $e(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Va={cwd:qa};function qa(){return"/"}function Nn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $a(e){if(typeof e=="string")e=new URL(e);else if(!Nn(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 Wa(e)}function Wa(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?Nn(n)?t={path:n}:typeof n=="string"||Ya(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Va.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fn.length;){const l=fn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)fn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?se.basename(this.path):void 0}set basename(n){dn(n,"basename"),hn(n,"basename"),this.path=se.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?se.dirname(this.path):void 0}set dirname(n){At(this.basename,"dirname"),this.path=se.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?se.extname(this.path):void 0}set extname(n){if(hn(n,"extname"),At(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=se.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Nn(n)&&(n=$a(n)),dn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}set stem(n){dn(n,"stem"),hn(n,"stem"),this.path=se.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 J(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 hn(e,n){if(e&&e.includes(se.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+se.sep+"`")}function dn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function At(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ya(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xa=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Qa={}.hasOwnProperty;class Vn extends Xa{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=Oa()}copy(){const n=new Vn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(pn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(xn("data",this.frozen),this.namespace[n]=t,this):Qa.call(this.namespace,n)&&this.namespace[n]||void 0:n?(xn("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=Qe(n),r=this.parser||this.Parser;return mn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mn("process",this.parser||this.Parser),gn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=Qe(n),c=r.parse(a);r.run(c,a,function(s,f,m){if(s||!f||!m)return u(s);const p=f,w=r.stringify(p,m);Ga(w)?m.value=w:m.result=w,u(s,m)});function u(s,f){s||!f?o(s):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),mn("processSync",this.parser||this.Parser),gn("processSync",this.compiler||this.Compiler),this.process(n,i),zt("processSync","process",t),r;function i(l,o){t=!0,Tt(l),r=o}}run(n,t,r){Pt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=Qe(t);i.run(n,c,u);function u(s,f,m){const p=f||n;s?a(s):o?o(p):r(void 0,p,m)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),zt("runSync","run",r),i;function l(o,a){Tt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=Qe(t),i=this.compiler||this.Compiler;return gn("stringify",i),Pt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(xn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...f]=u;c(s,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=pn(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const f=u[s];l(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===u){m=f;break}if(m===-1)r.push([u,...s]);else if(s.length>0){let[p,...w]=s;const C=r[m][1];Tn(C)&&Tn(p)&&(p=pn(!0,C,p)),r[m]=[u,p,...w]}}}}const Ja=new Vn().freeze();function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xn(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 Pt(e){if(!Tn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Qe(e){return Ka(e)?e:new xr(e)}function Ka(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ga(e){return typeof e=="string"||Za(e)}function Za(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const eu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jt=[],Lt={allowDangerousHtml:!0},nu=/^(https?|ircs?|mailto|xmpp)$/i,tu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ru(e){const n=iu(e),t=lu(e);return ou(n.runSync(n.parse(t),t),e)}function iu(e){const n=e.rehypePlugins||jt,t=e.remarkPlugins||jt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lt}:Lt;return Ja().use(_o).use(t).use(ja,r).use(n)}function lu(e){const n=e.children||"",t=new xr;return typeof n=="string"&&(t.value=n),t}function ou(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||au;for(const s of tu)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+eu+s.id,void 0);return gr(e,u),mi(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function u(s,f,m){if(s.type==="raw"&&m&&typeof f=="number")return o?m.children.splice(f,1):m.children[f]={type:"text",value:s.value},f;if(s.type==="element"){let p;for(p in an)if(Object.hasOwn(an,p)&&Object.hasOwn(s.properties,p)){const w=s.properties[p],C=an[p];(C===null||C.includes(s.tagName))&&(s.properties[p]=c(String(w||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(s,f,m)),p&&m&&typeof f=="number")return a&&s.children?m.children.splice(f,1,...s.children):m.children.splice(f,1),f}}}function au(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||nu.test(e.slice(0,n))?e:""}const uu={getOutput:zr,getOutputTree:Pr,getOutputContent:Ar};function mu({taskId:e,api:n=uu}){var I,M,B,x,D,U,_;const[t,r]=re.useState(null),[i,l]=re.useState([]),[o,a]=re.useState("."),[c,u]=re.useState(null),[s,f]=re.useState(!0),[m,p]=re.useState(null),w=re.useCallback(async()=>{p(null),f(!0),a("."),l([]),u(null);try{const N=await n.getOutput(e);if(r(N),!N.available){f(!1);return}const v=await n.getOutputTree(e,".");l(v.entries),f(!1)}catch(N){p(N instanceof Error?N.message:"Failed to load output"),f(!1)}},[n,e]);re.useEffect(()=>{w()},[w]);const C=re.useCallback(async N=>{p(null);try{const v=await n.getOutputTree(e,N);l(v.entries),a(N),u(null)}catch(v){p(v instanceof Error?v.message:"Failed to load directory")}},[n,e]),T=re.useCallback(async N=>{p(null);try{const v=await n.getOutputContent(e,N);u(v)}catch(v){p(v instanceof Error?v.message:"Failed to load file")}},[n,e]),k=re.useCallback(()=>{if(o===".")return;const N=o.split("/");N.pop();const v=N.length===0?".":N.join("/");C(v)},[o,C]);if(s)return y.jsx(yn,{tone:"muted",children:"Loading files..."});if(m)return y.jsx(yn,{tone:"destructive",children:m});if(!(t!=null&&t.available))return y.jsx(yn,{tone:"muted",children:"Task output is not available yet. The task may not have started."});const P=(((I=t.summary)==null?void 0:I.htmlEntries.length)??0)+(((B=(M=t.summary)==null?void 0:M.markdownEntries)==null?void 0:B.length)??0);return y.jsxs("div",{className:"grid h-full min-h-0 grid-cols-1 lg:grid-cols-[18rem_minmax(0,1fr)]",children:[y.jsxs("aside",{className:Te("flex min-h-0 flex-col border-b border-border/60 bg-background/30 lg:border-b-0 lg:border-r",c&&"hidden lg:flex"),children:[y.jsxs("div",{className:"shrink-0 border-b border-border/60 px-3 py-2.5",children:[y.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.24em] text-muted-foreground",children:"Task output"}),y.jsxs("div",{className:"mt-1.5 flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsx("div",{className:"truncate text-[12px] font-semibold text-foreground",children:((x=t.summary)==null?void 0:x.rootName)??"Artifacts"}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:[((D=t.summary)==null?void 0:D.fileCount)??i.length," files",P>0&&` · ${P} previews`]})]}),y.jsx(rn,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 text-[10px]",children:c?"Inspecting":"Browse"})]}),y.jsxs("div",{className:"mt-2 flex items-center gap-1.5 rounded-full border border-border/70 bg-background/55 px-2 py-1",children:[o!=="."&&y.jsx(Me,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-full",onClick:k,children:y.jsx(Qn,{className:"h-3 w-3"})}),y.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:o==="."?((U=t.summary)==null?void 0:U.rootPath)??((_=t.summary)==null?void 0:_.rootName)??"/":o})]})]}),y.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-1.5",children:i.length>0?y.jsx("div",{className:"space-y-0.5",children:i.map(N=>y.jsxs("button",{type:"button",onClick:()=>{N.type==="directory"?C(N.path):T(N.path)},className:Te("flex w-full items-center gap-2 rounded-[10px] border px-2 py-1.5 text-left transition-colors",(c==null?void 0:c.path)===N.path?"border-primary/40 bg-primary/10":"border-transparent bg-transparent hover:border-border/60 hover:bg-background/55"),children:[N.type==="directory"?y.jsx(Lr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):y.jsx(Fr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"truncate text-[12px] font-medium text-foreground",children:N.name}),y.jsx("div",{className:"mt-0 flex items-center gap-1.5 text-[10px] text-muted-foreground",children:N.type==="directory"?y.jsx("span",{children:"Directory"}):y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"capitalize",children:N.kind??"file"}),N.size!==void 0&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"h-1 w-1 rounded-full bg-border"}),y.jsx("span",{children:pu(N.size)})]})]})})]}),N.type==="directory"&&y.jsx(jr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]},N.path))}):y.jsx("div",{className:"flex h-full items-center justify-center rounded-[14px] border border-dashed border-border/70 bg-background/35 px-3 text-center text-[11px] text-muted-foreground",children:"Empty directory"})})]}),y.jsx("section",{className:Te("min-h-0 flex flex-col bg-card/10",!c&&"hidden lg:flex"),children:c?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"shrink-0 border-b border-border/60 px-3 py-2.5",children:y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[y.jsx(Me,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0 rounded-full",onClick:()=>u(null),children:y.jsx(Qn,{className:"h-3 w-3"})}),y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx(rn,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 text-[10px] capitalize",children:c.kind}),c.truncated&&y.jsx(rn,{variant:"secondary",className:"rounded-full text-[10px]",children:"Truncated"})]}),y.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:c.path})]})]}),c.downloadUrl&&y.jsx(Me,{asChild:!0,variant:"outline",size:"sm",className:"h-7 rounded-full px-2.5 text-[11px]",children:y.jsxs("a",{href:c.downloadUrl,download:!0,children:[y.jsx(An,{className:"h-3.5 w-3.5"}),"Download"]})})]})}),y.jsx("div",{className:"min-h-0 flex-1 overflow-auto p-2.5",children:y.jsx(su,{content:c})})]}):y.jsx("div",{className:"flex h-full items-center justify-center p-4",children:y.jsxs("div",{className:"max-w-md rounded-[20px] border border-border/60 bg-background/55 px-4 py-4 text-center",children:[y.jsx("div",{className:"text-[12px] font-medium text-foreground",children:"Select a file to inspect"}),y.jsx("p",{className:"mt-1 text-[11px] leading-5 text-muted-foreground",children:"Preview source files, generated assets, or exported documents from this task."})]})})})]})}function su({content:e}){const n=e.downloadUrl;if(e.truncated&&!e.content)return y.jsx(kr,{title:"File is too large to preview inline",description:e.path,action:n?y.jsx(Me,{asChild:!0,variant:"outline",size:"sm",className:"h-7 rounded-full px-2.5 text-[11px]",children:y.jsxs("a",{href:n,download:!0,children:[y.jsx(An,{className:"h-3.5 w-3.5"}),"Download"]})}):void 0});if(e.kind==="image"){const t=e.content?`data:${e.mimeType};base64,${e.content}`:n;return t?y.jsx("div",{className:"flex h-full min-h-[16rem] items-center justify-center rounded-[20px] border border-border/60 bg-background/55 p-3",children:y.jsx("img",{src:t,alt:e.path,className:"max-h-full max-w-full rounded-[14px] object-contain shadow-[0_24px_90px_-52px_rgba(0,0,0,0.65)]"})}):y.jsx(Ot,{content:e})}if(e.kind==="pdf"&&n)return y.jsx("div",{className:"h-full min-h-[20rem] overflow-hidden rounded-[20px] border border-border/60 bg-background/55",children:y.jsx("iframe",{src:n,title:e.path,className:"h-full w-full border-0"})});if(e.kind==="json"){let t=e.content;try{t=JSON.stringify(JSON.parse(e.content),null,2)}catch{}return y.jsx(Ft,{content:t,truncated:e.truncated})}return e.kind==="markdown"?y.jsx(cu,{content:e.content,truncated:e.truncated}):e.kind==="text"||e.kind==="html"?y.jsx(Ft,{content:e.content,truncated:e.truncated}):y.jsx(Ot,{content:e})}function cu({content:e,truncated:n}){const[t,r]=re.useState(!1);return y.jsxs("div",{className:"rounded-[20px] border border-border/60 bg-background",children:[y.jsx("div",{className:"sticky top-0 z-10 flex items-center justify-end rounded-t-[20px] border-b border-border/60 bg-background/95 px-3 py-1.5 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:y.jsxs("div",{className:"flex items-center gap-1 rounded-full border border-border/70 bg-muted/50 p-0.5",children:[y.jsxs("button",{type:"button",onClick:()=>r(!1),className:Te("flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] transition-colors",t?"text-muted-foreground hover:text-foreground":"bg-background font-medium text-foreground shadow-sm"),children:[y.jsx(Br,{className:"h-3 w-3"}),"Preview"]}),y.jsxs("button",{type:"button",onClick:()=>r(!0),className:Te("flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] transition-colors",t?"bg-background font-medium text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[y.jsx(_r,{className:"h-3 w-3"}),"Raw"]})]})}),t?y.jsx(yr,{content:e}):y.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none px-4 py-3 text-foreground",children:y.jsx(ru,{children:e})}),n&&y.jsx("div",{className:"border-t border-border/60 px-3 py-1.5 text-[10px] text-muted-foreground",children:"Content truncated. Download the file to inspect the full artifact."})]})}function Ft({content:e,truncated:n}){return y.jsxs("div",{className:"rounded-[20px] border border-border/60 bg-background",children:[y.jsx(yr,{content:e}),n&&y.jsx("div",{className:"border-t border-border/60 px-3 py-1.5 text-[10px] text-muted-foreground",children:"Content truncated. Download the file to inspect the full artifact."})]})}function yr({content:e}){const n=e.length===0?[""]:e.split(`
34
+ `},i),l}function ja(e,n){return e&&"run"in e?async function(t,r){const i=vt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return vt(t,{file:r,...e||n})}}function Tt(e){if(e)throw e}var cn,Nt;function La(){if(Nt)return cn;Nt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!f)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return cn=function c(){var u,s,f,m,p,w,C=arguments[0],T=1,k=arguments.length,P=!1;for(typeof C=="boolean"&&(P=C,C=arguments[1]||{},T=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});T<k;++T)if(u=arguments[T],u!=null)for(s in u)f=a(C,s),m=a(u,s),C!==m&&(P&&m&&(l(m)||(p=i(m)))?(p?(p=!1,w=f&&i(f)?f:[]):w=f&&l(f)?f:{},o(C,{name:s,newValue:c(P,w,m)})):typeof m<"u"&&o(C,{name:s,newValue:m}));return C},cn}var Fa=La();const pn=Dt(Fa);function Tn(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 Oa(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let f=-1;if(c){o(c);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,s?Da(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Da(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const se={basename:_a,dirname:Ra,extname:Ma,join:Ba,sep:"/"};function _a(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');$e(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ra(e){if($e(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 Ma(e){$e(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ba(...e){let n=-1,t;for(;++n<e.length;)$e(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ua(t)}function Ua(e){$e(e);const n=e.codePointAt(0)===47;let t=Ha(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ha(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function $e(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Va={cwd:qa};function qa(){return"/"}function Nn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $a(e){if(typeof e=="string")e=new URL(e);else if(!Nn(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 Wa(e)}function Wa(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?Nn(n)?t={path:n}:typeof n=="string"||Ya(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Va.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fn.length;){const l=fn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)fn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?se.basename(this.path):void 0}set basename(n){dn(n,"basename"),hn(n,"basename"),this.path=se.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?se.dirname(this.path):void 0}set dirname(n){At(this.basename,"dirname"),this.path=se.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?se.extname(this.path):void 0}set extname(n){if(hn(n,"extname"),At(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=se.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Nn(n)&&(n=$a(n)),dn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}set stem(n){dn(n,"stem"),hn(n,"stem"),this.path=se.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 K(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 hn(e,n){if(e&&e.includes(se.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+se.sep+"`")}function dn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function At(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ya(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xa=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Qa={}.hasOwnProperty;class Vn extends Xa{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=Oa()}copy(){const n=new Vn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(pn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(xn("data",this.frozen),this.namespace[n]=t,this):Qa.call(this.namespace,n)&&this.namespace[n]||void 0:n?(xn("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=Qe(n),r=this.parser||this.Parser;return mn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mn("process",this.parser||this.Parser),gn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=Qe(n),c=r.parse(a);r.run(c,a,function(s,f,m){if(s||!f||!m)return u(s);const p=f,w=r.stringify(p,m);Ga(w)?m.value=w:m.result=w,u(s,m)});function u(s,f){s||!f?o(s):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),mn("processSync",this.parser||this.Parser),gn("processSync",this.compiler||this.Compiler),this.process(n,i),zt("processSync","process",t),r;function i(l,o){t=!0,Tt(l),r=o}}run(n,t,r){Pt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=Qe(t);i.run(n,c,u);function u(s,f,m){const p=f||n;s?a(s):o?o(p):r(void 0,p,m)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),zt("runSync","run",r),i;function l(o,a){Tt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=Qe(t),i=this.compiler||this.Compiler;return gn("stringify",i),Pt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(xn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...f]=u;c(s,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=pn(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const f=u[s];l(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===u){m=f;break}if(m===-1)r.push([u,...s]);else if(s.length>0){let[p,...w]=s;const C=r[m][1];Tn(C)&&Tn(p)&&(p=pn(!0,C,p)),r[m]=[u,p,...w]}}}}const Ka=new Vn().freeze();function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xn(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 Pt(e){if(!Tn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Qe(e){return Ja(e)?e:new xr(e)}function Ja(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ga(e){return typeof e=="string"||Za(e)}function Za(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const eu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jt=[],Lt={allowDangerousHtml:!0},nu=/^(https?|ircs?|mailto|xmpp)$/i,tu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ru(e){const n=iu(e),t=lu(e);return ou(n.runSync(n.parse(t),t),e)}function iu(e){const n=e.rehypePlugins||jt,t=e.remarkPlugins||jt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lt}:Lt;return Ka().use(_o).use(t).use(ja,r).use(n)}function lu(e){const n=e.children||"",t=new xr;return typeof n=="string"&&(t.value=n),t}function ou(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||au;for(const s of tu)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+eu+s.id,void 0);return gr(e,u),mi(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function u(s,f,m){if(s.type==="raw"&&m&&typeof f=="number")return o?m.children.splice(f,1):m.children[f]={type:"text",value:s.value},f;if(s.type==="element"){let p;for(p in an)if(Object.hasOwn(an,p)&&Object.hasOwn(s.properties,p)){const w=s.properties[p],C=an[p];(C===null||C.includes(s.tagName))&&(s.properties[p]=c(String(w||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(s,f,m)),p&&m&&typeof f=="number")return a&&s.children?m.children.splice(f,1,...s.children):m.children.splice(f,1),f}}}function au(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||nu.test(e.slice(0,n))?e:""}const uu={getOutput:zr,getOutputTree:Pr,getOutputContent:Ar};function mu({taskId:e,api:n=uu}){var I,M,B,x,D,U,_;const[t,r]=re.useState(null),[i,l]=re.useState([]),[o,a]=re.useState("."),[c,u]=re.useState(null),[s,f]=re.useState(!0),[m,p]=re.useState(null),w=re.useCallback(async()=>{p(null),f(!0),a("."),l([]),u(null);try{const N=await n.getOutput(e);if(r(N),!N.available){f(!1);return}const v=await n.getOutputTree(e,".");l(v.entries),f(!1)}catch(N){p(N instanceof Error?N.message:"Failed to load output"),f(!1)}},[n,e]);re.useEffect(()=>{w()},[w]);const C=re.useCallback(async N=>{p(null);try{const v=await n.getOutputTree(e,N);l(v.entries),a(N),u(null)}catch(v){p(v instanceof Error?v.message:"Failed to load directory")}},[n,e]),T=re.useCallback(async N=>{p(null);try{const v=await n.getOutputContent(e,N);u(v)}catch(v){p(v instanceof Error?v.message:"Failed to load file")}},[n,e]),k=re.useCallback(()=>{if(o===".")return;const N=o.split("/");N.pop();const v=N.length===0?".":N.join("/");C(v)},[o,C]);if(s)return y.jsx(yn,{tone:"muted",children:"Loading files..."});if(m)return y.jsx(yn,{tone:"destructive",children:m});if(!(t!=null&&t.available))return y.jsx(yn,{tone:"muted",children:"Task output is not available yet. The task may not have started."});const P=(((I=t.summary)==null?void 0:I.htmlEntries.length)??0)+(((B=(M=t.summary)==null?void 0:M.markdownEntries)==null?void 0:B.length)??0);return y.jsxs("div",{className:"grid h-full min-h-0 grid-cols-1 lg:grid-cols-[18rem_minmax(0,1fr)]",children:[y.jsxs("aside",{className:Te("flex min-h-0 flex-col border-b border-border/60 bg-background/30 lg:border-b-0 lg:border-r",c&&"hidden lg:flex"),children:[y.jsxs("div",{className:"shrink-0 border-b border-border/60 px-3 py-2.5",children:[y.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.24em] text-muted-foreground",children:"Task output"}),y.jsxs("div",{className:"mt-1.5 flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsx("div",{className:"truncate text-[12px] font-semibold text-foreground",children:((x=t.summary)==null?void 0:x.rootName)??"Artifacts"}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:[((D=t.summary)==null?void 0:D.fileCount)??i.length," files",P>0&&` · ${P} previews`]})]}),y.jsx(rn,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 text-[10px]",children:c?"Inspecting":"Browse"})]}),y.jsxs("div",{className:"mt-2 flex items-center gap-1.5 rounded-full border border-border/70 bg-background/55 px-2 py-1",children:[o!=="."&&y.jsx(Me,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-full",onClick:k,children:y.jsx(Qn,{className:"h-3 w-3"})}),y.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:o==="."?((U=t.summary)==null?void 0:U.rootPath)??((_=t.summary)==null?void 0:_.rootName)??"/":o})]})]}),y.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-1.5",children:i.length>0?y.jsx("div",{className:"space-y-0.5",children:i.map(N=>y.jsxs("button",{type:"button",onClick:()=>{N.type==="directory"?C(N.path):T(N.path)},className:Te("flex w-full items-center gap-2 rounded-[10px] border px-2 py-1.5 text-left transition-colors",(c==null?void 0:c.path)===N.path?"border-primary/40 bg-primary/10":"border-transparent bg-transparent hover:border-border/60 hover:bg-background/55"),children:[N.type==="directory"?y.jsx(Lr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):y.jsx(Fr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"truncate text-[12px] font-medium text-foreground",children:N.name}),y.jsx("div",{className:"mt-0 flex items-center gap-1.5 text-[10px] text-muted-foreground",children:N.type==="directory"?y.jsx("span",{children:"Directory"}):y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"capitalize",children:N.kind??"file"}),N.size!==void 0&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"h-1 w-1 rounded-full bg-border"}),y.jsx("span",{children:pu(N.size)})]})]})})]}),N.type==="directory"&&y.jsx(jr,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]},N.path))}):y.jsx("div",{className:"flex h-full items-center justify-center rounded-[14px] border border-dashed border-border/70 bg-background/35 px-3 text-center text-[11px] text-muted-foreground",children:"Empty directory"})})]}),y.jsx("section",{className:Te("min-h-0 flex flex-col bg-card/10",!c&&"hidden lg:flex"),children:c?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"shrink-0 border-b border-border/60 px-3 py-2.5",children:y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[y.jsx(Me,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0 rounded-full",onClick:()=>u(null),children:y.jsx(Qn,{className:"h-3 w-3"})}),y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx(rn,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 text-[10px] capitalize",children:c.kind}),c.truncated&&y.jsx(rn,{variant:"secondary",className:"rounded-full text-[10px]",children:"Truncated"})]}),y.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:c.path})]})]}),c.downloadUrl&&y.jsx(Me,{asChild:!0,variant:"outline",size:"sm",className:"h-7 rounded-full px-2.5 text-[11px]",children:y.jsxs("a",{href:c.downloadUrl,download:!0,children:[y.jsx(An,{className:"h-3.5 w-3.5"}),"Download"]})})]})}),y.jsx("div",{className:"min-h-0 flex-1 overflow-auto p-2.5",children:y.jsx(su,{content:c})})]}):y.jsx("div",{className:"flex h-full items-center justify-center p-4",children:y.jsxs("div",{className:"max-w-md rounded-[20px] border border-border/60 bg-background/55 px-4 py-4 text-center",children:[y.jsx("div",{className:"text-[12px] font-medium text-foreground",children:"Select a file to inspect"}),y.jsx("p",{className:"mt-1 text-[11px] leading-5 text-muted-foreground",children:"Preview source files, generated assets, or exported documents from this task."})]})})})]})}function su({content:e}){const n=e.downloadUrl;if(e.truncated&&!e.content)return y.jsx(kr,{title:"File is too large to preview inline",description:e.path,action:n?y.jsx(Me,{asChild:!0,variant:"outline",size:"sm",className:"h-7 rounded-full px-2.5 text-[11px]",children:y.jsxs("a",{href:n,download:!0,children:[y.jsx(An,{className:"h-3.5 w-3.5"}),"Download"]})}):void 0});if(e.kind==="image"){const t=e.content?`data:${e.mimeType};base64,${e.content}`:n;return t?y.jsx("div",{className:"flex h-full min-h-[16rem] items-center justify-center rounded-[20px] border border-border/60 bg-background/55 p-3",children:y.jsx("img",{src:t,alt:e.path,className:"max-h-full max-w-full rounded-[14px] object-contain shadow-[0_24px_90px_-52px_rgba(0,0,0,0.65)]"})}):y.jsx(Ot,{content:e})}if(e.kind==="pdf"&&n)return y.jsx("div",{className:"h-full min-h-[20rem] overflow-hidden rounded-[20px] border border-border/60 bg-background/55",children:y.jsx("iframe",{src:n,title:e.path,className:"h-full w-full border-0"})});if(e.kind==="json"){let t=e.content;try{t=JSON.stringify(JSON.parse(e.content),null,2)}catch{}return y.jsx(Ft,{content:t,truncated:e.truncated})}return e.kind==="markdown"?y.jsx(cu,{content:e.content,truncated:e.truncated}):e.kind==="text"||e.kind==="html"?y.jsx(Ft,{content:e.content,truncated:e.truncated}):y.jsx(Ot,{content:e})}function cu({content:e,truncated:n}){const[t,r]=re.useState(!1);return y.jsxs("div",{className:"rounded-[20px] border border-border/60 bg-background",children:[y.jsx("div",{className:"sticky top-0 z-10 flex items-center justify-end rounded-t-[20px] border-b border-border/60 bg-background/95 px-3 py-1.5 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:y.jsxs("div",{className:"flex items-center gap-1 rounded-full border border-border/70 bg-muted/50 p-0.5",children:[y.jsxs("button",{type:"button",onClick:()=>r(!1),className:Te("flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] transition-colors",t?"text-muted-foreground hover:text-foreground":"bg-background font-medium text-foreground shadow-sm"),children:[y.jsx(Br,{className:"h-3 w-3"}),"Preview"]}),y.jsxs("button",{type:"button",onClick:()=>r(!0),className:Te("flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] transition-colors",t?"bg-background font-medium text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[y.jsx(_r,{className:"h-3 w-3"}),"Raw"]})]})}),t?y.jsx(yr,{content:e}):y.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none px-4 py-3 text-foreground",children:y.jsx(ru,{children:e})}),n&&y.jsx("div",{className:"border-t border-border/60 px-3 py-1.5 text-[10px] text-muted-foreground",children:"Content truncated. Download the file to inspect the full artifact."})]})}function Ft({content:e,truncated:n}){return y.jsxs("div",{className:"rounded-[20px] border border-border/60 bg-background",children:[y.jsx(yr,{content:e}),n&&y.jsx("div",{className:"border-t border-border/60 px-3 py-1.5 text-[10px] text-muted-foreground",children:"Content truncated. Download the file to inspect the full artifact."})]})}function yr({content:e}){const n=e.length===0?[""]:e.split(`
35
35
  `),t=`${Math.max(2,String(n.length).length)+1}ch`;return y.jsx("div",{className:"overflow-x-auto font-mono text-[11px] leading-5 text-foreground",children:y.jsx("div",{className:"min-w-full",children:n.map((r,i)=>y.jsxs("div",{className:"flex",children:[y.jsx("span",{className:"sticky left-0 shrink-0 select-none border-r border-border/40 bg-background/95 px-2 py-0 text-right tabular-nums text-muted-foreground/55",style:{width:t},children:i+1}),y.jsx("span",{className:"whitespace-pre-wrap break-all px-3 py-0",children:r||" "})]},i))})})}function Ot({content:e}){return y.jsx(kr,{title:`${e.kind} file`,description:e.path,action:e.downloadUrl?y.jsx(Me,{asChild:!0,variant:"outline",size:"sm",className:"h-7 rounded-full px-2.5 text-[11px]",children:y.jsxs("a",{href:e.downloadUrl,download:!0,children:[y.jsx(An,{className:"h-3.5 w-3.5"}),"Download"]})}):void 0})}function kr({title:e,description:n,action:t}){return y.jsx("div",{className:"flex h-full min-h-[14rem] items-center justify-center rounded-[20px] border border-dashed border-border/70 bg-background/35 p-4 text-center",children:y.jsxs("div",{className:"max-w-sm",children:[y.jsx("div",{className:"text-[12px] font-medium text-foreground",children:e}),y.jsx("div",{className:"mt-1 break-all font-mono text-[10px] text-muted-foreground",children:n}),t&&y.jsx("div",{className:"mt-2.5 flex justify-center",children:t})]})})}function yn({children:e,tone:n}){return y.jsx("div",{className:Te("flex h-48 items-center justify-center text-[12px]",n==="muted"?"text-muted-foreground":"text-destructive"),children:e})}function pu(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}export{mu as FilesTab};