aicodeswitch 3.0.10 → 3.0.12

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.
@@ -67,7 +67,7 @@ Error generating stack: `+a.message+`
67
67
  */function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cd.apply(this,arguments)}function CO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function NL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ML(e,t){return e.button===0&&(!t||t==="_self")&&!NL(e)}const DL=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LL=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],RL="6";try{window.__reactRouterVersion=RL}catch{}const zL=m.createContext({isTransitioning:!1}),$L="startTransition",u1=dP[$L];function BL(e){let{basename:t,children:n,future:r,window:i}=e,a=m.useRef();a.current==null&&(a.current=WD({window:i,v5Compat:!0}));let o=a.current,[l,s]=m.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=m.useCallback(f=>{c&&u1?u1(()=>s(f)):s(f)},[s,c]);return m.useLayoutEffect(()=>o.listen(d),[o,d]),m.useEffect(()=>TL(r),[r]),m.createElement(IL,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const FL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,WL=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:l,target:s,to:c,preventScrollReset:d,viewTransition:f}=t,p=CO(t,DL),{basename:h}=m.useContext(fa),g,y=!1;if(typeof c=="string"&&UL.test(c)&&(g=c,FL))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=Jo(S.pathname,h);S.origin===w.origin&&k!=null?c=k+S.search+S.hash:y=!0}catch{}let x=mL(c,{relative:i}),v=HL(c,{replace:o,state:l,target:s,preventScrollReset:d,relative:i,viewTransition:f});function b(w){r&&r(w),w.defaultPrevented||v(w)}return m.createElement("a",cd({},p,{href:g||x,onClick:y||a?r:b,ref:n,target:s}))}),Ni=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:l,to:s,viewTransition:c,children:d}=t,f=CO(t,LL),p=Nf(s,{relative:f.relative}),h=iu(),g=m.useContext(xO),{navigator:y,basename:x}=m.useContext(fa),v=g!=null&&VL(p)&&c===!0,b=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=h.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&x&&(S=Jo(S,x)||S);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let j=w===b||!o&&w.startsWith(b)&&w.charAt(k)==="/",C=S!=null&&(S===b||!o&&S.startsWith(b)&&S.charAt(b.length)==="/"),E={isActive:j,isPending:C,isTransitioning:v},M=j?r:void 0,I;typeof a=="function"?I=a(E):I=[a,j?"active":null,C?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _=typeof l=="function"?l(E):l;return m.createElement(WL,cd({},f,{"aria-current":M,className:I,ref:n,style:_,to:s,viewTransition:c}),typeof d=="function"?d(E):d)});var lg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lg||(lg={}));var c1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(c1||(c1={}));function KL(e){let t=m.useContext(If);return t||vt(!1),t}function HL(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:l}=t===void 0?{}:t,s=SO(),c=iu(),d=Nf(e,{relative:o});return m.useCallback(f=>{if(ML(f,n)){f.preventDefault();let p=r!==void 0?r:ud(c)===ud(d);s(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:l})}},[c,s,d,r,i,n,e,a,o,l])}function VL(e,t){t===void 0&&(t={});let n=m.useContext(zL);n==null&&vt(!1);let{basename:r}=KL(lg.useViewTransitionState),i=Nf(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Jo(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Jo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ag(i.pathname,o)!=null||ag(i.pathname,a)!=null}function qL(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const YL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XL={};function d1(e,t){return(XL.jsx?GL:YL).test(e)}const QL=/[ \t\n\f\r]/g;function ZL(e){return typeof e=="object"?e.type==="text"?f1(e.value):!1:f1(e)}function f1(e){return e.replace(QL,"")===""}class au{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}au.prototype.normal={};au.prototype.property={};au.prototype.space=void 0;function OO(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new au(n,r,t)}function sg(e){return e.toLowerCase()}class In{constructor(t,n){this.attribute=n,this.property=t}}In.prototype.attribute="";In.prototype.booleanish=!1;In.prototype.boolean=!1;In.prototype.commaOrSpaceSeparated=!1;In.prototype.commaSeparated=!1;In.prototype.defined=!1;In.prototype.mustUseProperty=!1;In.prototype.number=!1;In.prototype.overloadedBoolean=!1;In.prototype.property="";In.prototype.spaceSeparated=!1;In.prototype.space=void 0;let JL=0;const Oe=so(),Ct=so(),ug=so(),ee=so(),Ye=so(),Bo=so(),Ln=so();function so(){return 2**++JL}const cg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Ct,commaOrSpaceSeparated:Ln,commaSeparated:Bo,number:ee,overloadedBoolean:ug,spaceSeparated:Ye},Symbol.toStringTag,{value:"Module"})),Ch=Object.keys(cg);class vy extends In{constructor(t,n,r,i){let a=-1;if(super(t,n),p1(this,"space",i),typeof r=="number")for(;++a<Ch.length;){const o=Ch[a];p1(this,Ch[a],(r&cg[o])===cg[o])}}}vy.prototype.defined=!0;function p1(e,t,n){n&&(e[t]=n)}function cl(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new vy(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[sg(r)]=r,n[sg(a.attribute)]=r}return new au(t,n,e.space)}const EO=cl({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ye,ariaCurrent:null,ariaDescribedBy:Ye,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:Ye,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:Ye,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ye,ariaLevel:ee,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:Ye,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Ct,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function AO(e,t){return t in e?e[t]:t}function TO(e,t){return AO(e,t.toLowerCase())}const eR=cl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bo,acceptCharset:Ye,accessKey:Ye,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:Ye,autoFocus:Oe,autoPlay:Oe,blocking:Ye,capture:null,charSet:null,checked:Oe,cite:null,className:Ye,cols:ee,colSpan:null,content:null,contentEditable:Ct,controls:Oe,controlsList:Ye,coords:ee|Bo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:ug,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:Ye,height:ee,hidden:ug,high:ee,href:null,hrefLang:null,htmlFor:Ye,httpEquiv:Ye,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:Ye,itemRef:Ye,itemScope:Oe,itemType:Ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:ee,pattern:null,ping:Ye,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:Ye,required:Oe,reversed:Oe,rows:ee,rowSpan:ee,sandbox:Ye,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Ct,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ye,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:TO}),tR=cl({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:Ln,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ye,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:Bo,g2:Bo,glyphName:Bo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ln,rev:Ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ln,requiredFeatures:Ln,requiredFonts:Ln,requiredFormats:Ln,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ln,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:AO}),IO=cl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_O=cl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:TO}),NO=cl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nR={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"},rR=/[A-Z]/g,h1=/-[a-z]/g,iR=/^data[-\w.:]+$/i;function aR(e,t){const n=sg(t);let r=t,i=In;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&iR.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(h1,lR);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!h1.test(a)){let o=a.replace(rR,oR);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=vy}return new i(r,t)}function oR(e){return"-"+e.toLowerCase()}function lR(e){return e.charAt(1).toUpperCase()}const sR=OO([EO,eR,IO,_O,NO],"html"),yy=OO([EO,tR,IO,_O,NO],"svg");function uR(e){return e.join(" ").trim()}var xy={},m1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cR=/\n/g,dR=/^\s*/,fR=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pR=/^:\s*/,hR=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,mR=/^[;\s]*/,gR=/^\s+|\s+$/g,vR=`
68
68
  `,g1="/",v1="*",Ta="",yR="comment",xR="declaration";function bR(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var y=g.match(cR);y&&(n+=y.length);var x=g.lastIndexOf(vR);r=~x?g.length-x:r+g.length}function a(){var g={line:n,column:r};return function(y){return y.position=new o(g),c(),y}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function s(g){var y=g.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function c(){s(dR)}function d(g){var y;for(g=g||[];y=f();)y!==!1&&g.push(y);return g}function f(){var g=a();if(!(g1!=e.charAt(0)||v1!=e.charAt(1))){for(var y=2;Ta!=e.charAt(y)&&(v1!=e.charAt(y)||g1!=e.charAt(y+1));)++y;if(y+=2,Ta===e.charAt(y-1))return l("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,g({type:yR,comment:x})}}function p(){var g=a(),y=s(fR);if(y){if(f(),!s(pR))return l("property missing ':'");var x=s(hR),v=g({type:xR,property:y1(y[0].replace(m1,Ta)),value:x?y1(x[0].replace(m1,Ta)):Ta});return s(mR),v}}function h(){var g=[];d(g);for(var y;y=p();)y!==!1&&(g.push(y),d(g));return g}return c(),h()}function y1(e){return e?e.replace(gR,Ta):Ta}var wR=bR,SR=Ho&&Ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xy,"__esModule",{value:!0});xy.default=kR;const jR=SR(wR);function kR(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,jR.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:l}=a;i?t(o,l,a):l&&(n=n||{},n[o]=l)}),n}var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.camelCase=void 0;var PR=/^--[a-zA-Z0-9_-]+$/,CR=/-([a-z])/g,OR=/^[^-]+$/,ER=/^-(webkit|moz|ms|o|khtml)-/,AR=/^-(ms)-/,TR=function(e){return!e||OR.test(e)||PR.test(e)},IR=function(e,t){return t.toUpperCase()},x1=function(e,t){return"".concat(t,"-")},_R=function(e,t){return t===void 0&&(t={}),TR(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(AR,x1):e=e.replace(ER,x1),e.replace(CR,IR))};Mf.camelCase=_R;var NR=Ho&&Ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},MR=NR(xy),DR=Mf;function dg(e,t){var n={};return!e||typeof e!="string"||(0,MR.default)(e,function(r,i){r&&i&&(n[(0,DR.camelCase)(r,t)]=i)}),n}dg.default=dg;var LR=dg;const RR=Vn(LR),MO=DO("end"),by=DO("start");function DO(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function zR(e){const t=by(e),n=MO(e);if(t&&n)return{start:t,end:n}}function ds(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b1(e.position):"start"in e||"end"in e?b1(e):"line"in e||"column"in e?fg(e):""}function fg(e){return w1(e&&e.line)+":"+w1(e&&e.column)}function b1(e){return fg(e&&e.start)+"-"+fg(e&&e.end)}function w1(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=ds(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="";cn.prototype.name="";cn.prototype.reason="";cn.prototype.message="";cn.prototype.stack="";cn.prototype.column=void 0;cn.prototype.line=void 0;cn.prototype.ancestors=void 0;cn.prototype.cause=void 0;cn.prototype.fatal=void 0;cn.prototype.place=void 0;cn.prototype.ruleId=void 0;cn.prototype.source=void 0;const wy={}.hasOwnProperty,$R=new Map,BR=/[A-Z]/g,FR=new Set(["table","tbody","thead","tfoot","tr"]),UR=new Set(["td","th"]),LO="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function WR(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=QR(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=XR(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?yy:sR,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=RO(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function RO(e,t,n){if(t.type==="element")return KR(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HR(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qR(e,t,n);if(t.type==="mdxjsEsm")return VR(e,t);if(t.type==="root")return YR(e,t,n);if(t.type==="text")return GR(e,t)}function KR(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yy,e.schema=i),e.ancestors.push(t);const a=$O(e,t.tagName,!1),o=ZR(e,t);let l=jy(e,t);return FR.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!ZL(s):!0})),zO(e,o,a,t),Sy(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function HR(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ds(e,t.position)}function VR(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ds(e,t.position)}function qR(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=yy,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:$O(e,t.name,!0),o=JR(e,t),l=jy(e,t);return zO(e,o,a,t),Sy(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function YR(e,t,n){const r={};return Sy(r,jy(e,t)),e.create(t,e.Fragment,r,n)}function GR(e,t){return t.value}function zO(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XR(e,t,n){return r;function r(i,a,o,l){const c=Array.isArray(o.children)?n:t;return l?c(a,o,l):c(a,o)}}function QR(e,t){return n;function n(r,i,a,o){const l=Array.isArray(a.children),s=by(r);return t(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function ZR(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wy.call(t.properties,i)){const a=ez(e,i,t.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&UR.has(t.tagName)?r=l:n[o]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function JR(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Ds(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Ds(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function jy(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$R;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=RO(e,a,o);l!==void 0&&n.push(l)}return n}function ez(e,t,n){const r=aR(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qL(n):uR(n)),r.property==="style"){let i=typeof n=="object"?n:tz(e,String(n));return e.stylePropertyNameCase==="css"&&(i=nz(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?nR[r.property]||r.property:r.attribute,n]}}function tz(e,t){try{return RR(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new cn("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=LO+"#cannot-parse-style-attribute",i}}function $O(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const l=d1(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=d1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return wy.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ds(e)}function Ds(e,t){const n=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=LO+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nz(e){const t={};let n;for(n in e)wy.call(e,n)&&(t[rz(n)]=e[n]);return t}function rz(e){let t=e.replace(BR,iz);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function iz(e){return"-"+e.toLowerCase()}const Oh={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"]},az={};function oz(e,t){const n=az,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return BO(e,r,i)}function BO(e,t,n){if(lz(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return S1(e.children,t,n)}return Array.isArray(e)?S1(e,t,n):""}function S1(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=BO(e[i],t,n);return r.join("")}function lz(e){return!!(e&&typeof e=="object")}const j1=document.createElement("i");function ky(e){const t="&"+e+";";j1.innerHTML=t;const n=j1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Hr(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function tr(e,t){return e.length>0?(Hr(e,e.length,0,t),e):t}const k1={}.hasOwnProperty;function sz(e){const t={};let n=-1;for(;++n<e.length;)uz(t,e[n]);return t}function uz(e,t){let n;for(n in t){const i=(k1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){k1.call(i,o)||(i[o]=[]);const l=a[o];cz(i[o],Array.isArray(l)?l:l?[l]:[])}}}function cz(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Hr(e,0,0,r)}function FO(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Fo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $r=pa(/[A-Za-z]/),Bn=pa(/[\dA-Za-z]/),dz=pa(/[#-'*+\--9=?A-Z^-~]/);function pg(e){return e!==null&&(e<32||e===127)}const hg=pa(/\d/),fz=pa(/[\dA-Fa-f]/),pz=pa(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function Tn(e){return e!==null&&(e<0||e===32)}function Be(e){return e===-2||e===-1||e===32}const hz=pa(new RegExp("\\p{P}|\\p{S}","u")),mz=pa(/\s/);function pa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dl(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Bn(e.charCodeAt(n+1))&&Bn(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Qe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return Be(s)?(e.enter(n),l(s)):t(s)}function l(s){return Be(s)&&a++<i?(e.consume(s),l):(e.exit(n),t(s))}}const gz={tokenize:vz};function vz(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qe(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ke(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const yz={tokenize:xz},P1={tokenize:bz};function xz(e){const t=this,n=[];let r=0,i,a,o;return l;function l(w){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,s,c)(w)}return c(w)}function s(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const S=t.events.length;let k=S,j;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){j=t.events[k][1].end;break}v(r);let C=S;for(;C<t.events.length;)t.events[C][1].end={...j},C++;return Hr(t.events,k+1,0,t.events.slice(S)),t.events.length=C,c(w)}return l(w)}function c(w){if(r===n.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return g(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P1,d,f)(w)}function d(w){return i&&b(),v(r),p(w)}function f(w){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(w)}function p(w){return t.containerState={},e.attempt(P1,h,g)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),p(w)}function g(w){if(w===null){i&&b(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(w)}function y(w){if(w===null){x(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return ke(w)?(e.consume(w),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(w),y)}function x(w,S){const k=t.sliceStream(w);if(S&&k.push(null),w.previous=a,a&&(a.next=w),a=w,i.defineSkip(w.start),i.write(k),t.parser.lazy[w.start.line]){let j=i.events.length;for(;j--;)if(i.events[j][1].start.offset<o&&(!i.events[j][1].end||i.events[j][1].end.offset>o))return;const C=t.events.length;let E=C,M,I;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if(M){I=t.events[E][1].end;break}M=!0}for(v(r),j=C;j<t.events.length;)t.events[j][1].end={...I},j++;Hr(t.events,E+1,0,t.events.slice(C)),t.events.length=j}}function v(w){let S=n.length;for(;S-- >w;){const k=n[S];t.containerState=k[1],k[0].exit.call(t,e)}n.length=w}function b(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function bz(e,t,n){return Qe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function C1(e){if(e===null||Tn(e)||mz(e))return 1;if(hz(e))return 2}function Py(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const mg={name:"attention",resolveAll:wz,tokenize:Sz};function wz(e,t){let n=-1,r,i,a,o,l,s,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};O1(f,-s),O1(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=tr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=tr(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=tr(c,Py(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=tr(c,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=tr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Hr(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Sz(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=C1(r);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),d=C1(s),f=!d||d===2&&i||n.includes(s),p=!i||i===2&&d||n.includes(r);return c._open=!!(a===42?f:f&&(i||!p)),c._close=!!(a===42?p:p&&(d||!f)),t(s)}}function O1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jz={name:"autolink",tokenize:kz};function kz(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return $r(h)?(e.consume(h),o):h===64?n(h):c(h)}function o(h){return h===43||h===45||h===46||Bn(h)?(r=1,l(h)):c(h)}function l(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||Bn(h))&&r++<32?(e.consume(h),l):(r=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||pg(h)?n(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),d):dz(h)?(e.consume(h),c):n(h)}function d(h){return Bn(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Bn(h))&&r++<63){const g=h===45?p:f;return e.consume(h),g}return n(h)}}const Df={partial:!0,tokenize:Pz};function Pz(e,t,n){return r;function r(a){return Be(a)?Qe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ke(a)?t(a):n(a)}}const UO={continuation:{tokenize:Oz},exit:Ez,name:"blockQuote",tokenize:Cz};function Cz(e,t,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return Be(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Oz(e,t,n){const r=this;return i;function i(o){return Be(o)?Qe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(UO,t,n)(o)}}function Ez(e){e.exit("blockQuote")}const WO={name:"characterEscape",tokenize:Az};function Az(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return pz(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const KO={name:"characterReference",tokenize:Tz};function Tz(e,t,n){const r=this;let i=0,a,o;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=Bn,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=fz,d):(e.enter("characterReferenceValue"),a=7,o=hg,d(f))}function d(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===Bn&&!ky(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),d):n(f)}}const E1={partial:!0,tokenize:_z},A1={concrete:!0,name:"codeFenced",tokenize:Iz};function Iz(e,t,n){const r=this,i={partial:!0,tokenize:k};let a=0,o=0,l;return s;function s(j){return c(j)}function c(j){const C=r.events[r.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,l=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(j)}function d(j){return j===l?(o++,e.consume(j),d):o<3?n(j):(e.exit("codeFencedFenceSequence"),Be(j)?Qe(e,f,"whitespace")(j):f(j))}function f(j){return j===null||ke(j)?(e.exit("codeFencedFence"),r.interrupt?t(j):e.check(E1,y,S)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(j))}function p(j){return j===null||ke(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(j)):Be(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,h,"whitespace")(j)):j===96&&j===l?n(j):(e.consume(j),p)}function h(j){return j===null||ke(j)?f(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(j))}function g(j){return j===null||ke(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(j)):j===96&&j===l?n(j):(e.consume(j),g)}function y(j){return e.attempt(i,S,x)(j)}function x(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),v}function v(j){return a>0&&Be(j)?Qe(e,b,"linePrefix",a+1)(j):b(j)}function b(j){return j===null||ke(j)?e.check(E1,y,S)(j):(e.enter("codeFlowValue"),w(j))}function w(j){return j===null||ke(j)?(e.exit("codeFlowValue"),b(j)):(e.consume(j),w)}function S(j){return e.exit("codeFenced"),t(j)}function k(j,C,E){let M=0;return I;function I(O){return j.enter("lineEnding"),j.consume(O),j.exit("lineEnding"),_}function _(O){return j.enter("codeFencedFence"),Be(O)?Qe(j,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):N(O)}function N(O){return O===l?(j.enter("codeFencedFenceSequence"),V(O)):E(O)}function V(O){return O===l?(M++,j.consume(O),V):M>=o?(j.exit("codeFencedFenceSequence"),Be(O)?Qe(j,L,"whitespace")(O):L(O)):E(O)}function L(O){return O===null||ke(O)?(j.exit("codeFencedFence"),C(O)):E(O)}}}function _z(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Eh={name:"codeIndented",tokenize:Mz},Nz={partial:!0,tokenize:Dz};function Mz(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Qe(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?s(c):ke(c)?e.attempt(Nz,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||ke(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),t(c)}}function Dz(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Qe(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):ke(o)?i(o):n(o)}}const Lz={name:"codeText",previous:zz,resolve:Rz,tokenize:$z};function Rz(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function zz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $z(e,t,n){let r=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),r++,l):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(a=e.enter("codeTextSequence"),i=0,d(f)):ke(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||ke(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",c(f))}}class Bz{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_l(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),_l(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_l(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);_l(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_l(this.left,n.reverse())}}}function _l(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function HO(e){const t={};let n=-1,r,i,a,o,l,s,c;const d=new Bz(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Fz(d,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Hr(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function Fz(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,s=[],c={};let d,f,p=-1,h=n,g=0,y=0;const x=[y];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(y=p+1,x.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),p=x.length;p--;){const v=l.slice(x[p],x[p+1]),b=a.pop();s.push([b,b+v.length-1]),e.splice(b,2,v)}for(s.reverse(),p=-1;++p<s.length;)c[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return c}const Uz={resolve:Kz,tokenize:Hz},Wz={partial:!0,tokenize:Vz};function Kz(e){return HO(e),e}function Hz(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):ke(l)?e.check(Wz,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Vz(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Qe(e,a,"linePrefix")}function a(o){if(o===null||ke(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function VO(e,t,n,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let d=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),p):v===null||v===32||v===41||pg(v)?n(v):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(v))}function p(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(l),p(v)):v===null||v===60||ke(v)?n(v):(e.consume(v),v===92?g:h)}function g(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function y(v){return!d&&(v===null||v===41||Tn(v))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(v)):d<c&&v===40?(e.consume(v),d++,y):v===41?(e.consume(v),d--,y):v===null||v===32||v===40||pg(v)?n(v):(e.consume(v),v===92?x:y)}function x(v){return v===40||v===41||v===92?(e.consume(v),y):y(v)}}function qO(e,t,n,r,i,a){const o=this;let l=0,s;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(a),d}function d(h){return l>999||h===null||h===91||h===93&&!s||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):ke(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||ke(h)||l++>999?(e.exit("chunkString"),d(h)):(e.consume(h),s||(s=!Be(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function YO(e,t,n,r,i,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),s(o)):p===null?n(p):ke(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Qe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||ke(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:d)}function f(p){return p===o||p===92?(e.consume(p),d):d(p)}}function fs(e,t){let n;return r;function r(i){return ke(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Be(i)?Qe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const qz={name:"definition",tokenize:Gz},Yz={partial:!0,tokenize:Xz};function Gz(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return qO.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return i=Fo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Tn(h)?fs(e,c)(h):c(h)}function c(h){return VO(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(Yz,f,f)(h)}function f(h){return Be(h)?Qe(e,p,"whitespace")(h):p(h)}function p(h){return h===null||ke(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Xz(e,t,n){return r;function r(l){return Tn(l)?fs(e,i)(l):n(l)}function i(l){return YO(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Be(l)?Qe(e,o,"whitespace")(l):o(l)}function o(l){return l===null||ke(l)?t(l):n(l)}}const Qz={name:"hardBreakEscape",tokenize:Zz};function Zz(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ke(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Jz={name:"headingAtx",resolve:e$,tokenize:t$};function e$(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Hr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function t$(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Tn(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),s(d)):d===null||ke(d)?(e.exit("atxHeading"),t(d)):Be(d)?Qe(e,l,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function s(d){return d===35?(e.consume(d),s):(e.exit("atxHeadingSequence"),l(d))}function c(d){return d===null||d===35||Tn(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),c)}}const n$=["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"],T1=["pre","script","style","textarea"],r$={concrete:!0,name:"htmlFlow",resolveTo:o$,tokenize:l$},i$={partial:!0,tokenize:u$},a$={partial:!0,tokenize:s$};function o$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function l$(e,t,n){const r=this;let i,a,o,l,s;return c;function c(A){return d(A)}function d(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),f}function f(A){return A===33?(e.consume(A),p):A===47?(e.consume(A),a=!0,y):A===63?(e.consume(A),i=3,r.interrupt?t:P):$r(A)?(e.consume(A),o=String.fromCharCode(A),x):n(A)}function p(A){return A===45?(e.consume(A),i=2,h):A===91?(e.consume(A),i=5,l=0,g):$r(A)?(e.consume(A),i=4,r.interrupt?t:P):n(A)}function h(A){return A===45?(e.consume(A),r.interrupt?t:P):n(A)}function g(A){const ce="CDATA[";return A===ce.charCodeAt(l++)?(e.consume(A),l===ce.length?r.interrupt?t:N:g):n(A)}function y(A){return $r(A)?(e.consume(A),o=String.fromCharCode(A),x):n(A)}function x(A){if(A===null||A===47||A===62||Tn(A)){const ce=A===47,ye=o.toLowerCase();return!ce&&!a&&T1.includes(ye)?(i=1,r.interrupt?t(A):N(A)):n$.includes(o.toLowerCase())?(i=6,ce?(e.consume(A),v):r.interrupt?t(A):N(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):a?b(A):w(A))}return A===45||Bn(A)?(e.consume(A),o+=String.fromCharCode(A),x):n(A)}function v(A){return A===62?(e.consume(A),r.interrupt?t:N):n(A)}function b(A){return Be(A)?(e.consume(A),b):I(A)}function w(A){return A===47?(e.consume(A),I):A===58||A===95||$r(A)?(e.consume(A),S):Be(A)?(e.consume(A),w):I(A)}function S(A){return A===45||A===46||A===58||A===95||Bn(A)?(e.consume(A),S):k(A)}function k(A){return A===61?(e.consume(A),j):Be(A)?(e.consume(A),k):w(A)}function j(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),s=A,C):Be(A)?(e.consume(A),j):E(A)}function C(A){return A===s?(e.consume(A),s=null,M):A===null||ke(A)?n(A):(e.consume(A),C)}function E(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Tn(A)?k(A):(e.consume(A),E)}function M(A){return A===47||A===62||Be(A)?w(A):n(A)}function I(A){return A===62?(e.consume(A),_):n(A)}function _(A){return A===null||ke(A)?N(A):Be(A)?(e.consume(A),_):n(A)}function N(A){return A===45&&i===2?(e.consume(A),R):A===60&&i===1?(e.consume(A),U):A===62&&i===4?(e.consume(A),Y):A===63&&i===3?(e.consume(A),P):A===93&&i===5?(e.consume(A),z):ke(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(i$,Q,V)(A)):A===null||ke(A)?(e.exit("htmlFlowData"),V(A)):(e.consume(A),N)}function V(A){return e.check(a$,L,Q)(A)}function L(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),O}function O(A){return A===null||ke(A)?V(A):(e.enter("htmlFlowData"),N(A))}function R(A){return A===45?(e.consume(A),P):N(A)}function U(A){return A===47?(e.consume(A),o="",D):N(A)}function D(A){if(A===62){const ce=o.toLowerCase();return T1.includes(ce)?(e.consume(A),Y):N(A)}return $r(A)&&o.length<8?(e.consume(A),o+=String.fromCharCode(A),D):N(A)}function z(A){return A===93?(e.consume(A),P):N(A)}function P(A){return A===62?(e.consume(A),Y):A===45&&i===2?(e.consume(A),P):N(A)}function Y(A){return A===null||ke(A)?(e.exit("htmlFlowData"),Q(A)):(e.consume(A),Y)}function Q(A){return e.exit("htmlFlow"),t(A)}}function s$(e,t,n){const r=this;return i;function i(o){return ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function u$(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Df,t,n)}}const c$={name:"htmlText",tokenize:d$};function d$(e,t,n){const r=this;let i,a,o;return l;function l(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),s}function s(P){return P===33?(e.consume(P),c):P===47?(e.consume(P),k):P===63?(e.consume(P),w):$r(P)?(e.consume(P),E):n(P)}function c(P){return P===45?(e.consume(P),d):P===91?(e.consume(P),a=0,g):$r(P)?(e.consume(P),b):n(P)}function d(P){return P===45?(e.consume(P),h):n(P)}function f(P){return P===null?n(P):P===45?(e.consume(P),p):ke(P)?(o=f,U(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),h):f(P)}function h(P){return P===62?R(P):P===45?p(P):f(P)}function g(P){const Y="CDATA[";return P===Y.charCodeAt(a++)?(e.consume(P),a===Y.length?y:g):n(P)}function y(P){return P===null?n(P):P===93?(e.consume(P),x):ke(P)?(o=y,U(P)):(e.consume(P),y)}function x(P){return P===93?(e.consume(P),v):y(P)}function v(P){return P===62?R(P):P===93?(e.consume(P),v):y(P)}function b(P){return P===null||P===62?R(P):ke(P)?(o=b,U(P)):(e.consume(P),b)}function w(P){return P===null?n(P):P===63?(e.consume(P),S):ke(P)?(o=w,U(P)):(e.consume(P),w)}function S(P){return P===62?R(P):w(P)}function k(P){return $r(P)?(e.consume(P),j):n(P)}function j(P){return P===45||Bn(P)?(e.consume(P),j):C(P)}function C(P){return ke(P)?(o=C,U(P)):Be(P)?(e.consume(P),C):R(P)}function E(P){return P===45||Bn(P)?(e.consume(P),E):P===47||P===62||Tn(P)?M(P):n(P)}function M(P){return P===47?(e.consume(P),R):P===58||P===95||$r(P)?(e.consume(P),I):ke(P)?(o=M,U(P)):Be(P)?(e.consume(P),M):R(P)}function I(P){return P===45||P===46||P===58||P===95||Bn(P)?(e.consume(P),I):_(P)}function _(P){return P===61?(e.consume(P),N):ke(P)?(o=_,U(P)):Be(P)?(e.consume(P),_):M(P)}function N(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),i=P,V):ke(P)?(o=N,U(P)):Be(P)?(e.consume(P),N):(e.consume(P),L)}function V(P){return P===i?(e.consume(P),i=void 0,O):P===null?n(P):ke(P)?(o=V,U(P)):(e.consume(P),V)}function L(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Tn(P)?M(P):(e.consume(P),L)}function O(P){return P===47||P===62||Tn(P)?M(P):n(P)}function R(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function U(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),D}function D(P){return Be(P)?Qe(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):z(P)}function z(P){return e.enter("htmlTextData"),o(P)}}const Cy={name:"labelEnd",resolveAll:m$,resolveTo:g$,tokenize:v$},f$={tokenize:y$},p$={tokenize:x$},h$={tokenize:b$};function m$(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Hr(e,0,e.length,n),e}function g$(e,t){let n=e.length,r=0,i,a,o,l;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",s,t],["enter",c,t]],l=tr(l,e.slice(a+1,a+r+3)),l=tr(l,[["enter",d,t]]),l=tr(l,Py(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),l=tr(l,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),l=tr(l,e.slice(o+1)),l=tr(l,[["exit",s,t]]),Hr(e,a,e.length,l),e}function v$(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(p){return a?a._inactive?f(p):(o=r.parser.defined.includes(Fo(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(f$,d,o?d:f)(p):p===91?e.attempt(p$,d,o?c:f)(p):o?d(p):f(p)}function c(p){return e.attempt(h$,d,f)(p)}function d(p){return t(p)}function f(p){return a._balanced=!0,n(p)}}function y$(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Tn(f)?fs(e,a)(f):a(f)}function a(f){return f===41?d(f):VO(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Tn(f)?fs(e,s)(f):d(f)}function l(f){return n(f)}function s(f){return f===34||f===39||f===40?YO(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Tn(f)?fs(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function x$(e,t,n){const r=this;return i;function i(l){return qO.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(Fo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function b$(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const w$={name:"labelStartImage",resolveAll:Cy.resolveAll,tokenize:S$};function S$(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const j$={name:"labelStartLink",resolveAll:Cy.resolveAll,tokenize:k$};function k$(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Ah={name:"lineEnding",tokenize:P$};function P$(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qe(e,t,"linePrefix")}}const Tc={name:"thematicBreak",tokenize:C$};function C$(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||ke(c))?(e.exit("thematicBreak"),t(c)):n(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Be(c)?Qe(e,l,"whitespace")(c):l(c))}}const Sn={continuation:{tokenize:T$},exit:_$,name:"list",tokenize:A$},O$={partial:!0,tokenize:N$},E$={partial:!0,tokenize:I$};function A$(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:hg(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Tc,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return hg(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Df,r.interrupt?n:d,e.attempt(O$,p,f))}function d(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function f(h){return Be(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function T$(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Df,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Be(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(E$,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(e,e.attempt(Sn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function I$(e,t,n){const r=this;return Qe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function _$(e){e.exit(this.containerState.type)}function N$(e,t,n){const r=this;return Qe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Be(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const I1={name:"setextUnderline",resolveTo:M$,tokenize:D$};function M$(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function D$(e,t,n){const r=this;let i;return a;function a(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Be(c)?Qe(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||ke(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const L$={tokenize:R$};function R$(e){const t=this,n=e.attempt(Df,r,e.attempt(this.parser.constructs.flowInitial,i,Qe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Uz,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const z$={resolveAll:XO()},$$=GO("string"),B$=GO("text");function GO(e){return{resolveAll:XO(e==="text"?F$:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,l);return o;function o(d){return c(d)?a(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),s}function s(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),s)}function c(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function XO(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function F$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const U$={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:UO},W$={91:qz},K$={[-2]:Eh,[-1]:Eh,32:Eh},H$={35:Jz,42:Tc,45:[I1,Tc],60:r$,61:I1,95:Tc,96:A1,126:A1},V$={38:KO,92:WO},q$={[-5]:Ah,[-4]:Ah,[-3]:Ah,33:w$,38:KO,42:mg,60:[jz,c$],91:j$,92:[Qz,WO],93:Cy,95:mg,96:Lz},Y$={null:[mg,z$]},G$={null:[42,95]},X$={null:[]},Q$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:G$,contentInitial:W$,disable:X$,document:U$,flow:H$,flowInitial:K$,insideSpan:Y$,string:V$,text:q$},Symbol.toStringTag,{value:"Module"}));function Z$(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],l=[];const s={attempt:C(k),check:C(j),consume:b,enter:w,exit:S,interrupt:C(j,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(c,s);return t.resolveAll&&a.push(t),c;function f(_){return o=tr(o,_),x(),o[o.length-1]!==null?[]:(E(t,0),c.events=Py(a,c.events,c),c.events)}function p(_,N){return e4(h(_),N)}function h(_){return J$(o,_)}function g(){const{_bufferIndex:_,_index:N,line:V,column:L,offset:O}=r;return{_bufferIndex:_,_index:N,line:V,column:L,offset:O}}function y(_){i[_.line]=_.column,I()}function x(){let _;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<N.length;)v(N.charCodeAt(r._bufferIndex));else v(N)}}function v(_){d=d(_)}function b(_){ke(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,I()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=_}function w(_,N){const V=N||{};return V.type=_,V.start=g(),c.events.push(["enter",V,c]),l.push(V),V}function S(_){const N=l.pop();return N.end=g(),c.events.push(["exit",N,c]),N}function k(_,N){E(_,N.from)}function j(_,N){N.restore()}function C(_,N){return V;function V(L,O,R){let U,D,z,P;return Array.isArray(L)?Q(L):"tokenize"in L?Q([L]):Y(L);function Y(H){return G;function G(de){const W=de!==null&&H[de],te=de!==null&&H.null,se=[...Array.isArray(W)?W:W?[W]:[],...Array.isArray(te)?te:te?[te]:[]];return Q(se)(de)}}function Q(H){return U=H,D=0,H.length===0?R:A(H[D])}function A(H){return G;function G(de){return P=M(),z=H,H.partial||(c.currentConstruct=H),H.name&&c.parser.constructs.disable.null.includes(H.name)?ye():H.tokenize.call(N?Object.assign(Object.create(c),N):c,s,ce,ye)(de)}}function ce(H){return _(z,P),O}function ye(H){return P.restore(),++D<U.length?A(U[D]):R}}}function E(_,N){_.resolveAll&&!a.includes(_)&&a.push(_),_.resolve&&Hr(c.events,N,c.events.length-N,_.resolve(c.events.slice(N),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function M(){const _=g(),N=c.previous,V=c.currentConstruct,L=c.events.length,O=Array.from(l);return{from:L,restore:R};function R(){r=_,c.previous=N,c.currentConstruct=V,c.events.length=L,l=O,I()}}function I(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function J$(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function e4(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
69
69
  `;break}case-3:{o=`\r
70
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function t4(e){const r={constructs:sz([Q$,...(e||{}).extensions||[]]),content:i(gz),defined:[],document:i(yz),flow:i(L$),lazy:{},string:i($$),text:i(B$)};return r;function i(a){return o;function o(l){return Z$(r,a,l)}}}function n4(e){for(;!HO(e););return e}const _1=/[\0\t\n\r]/g;function r4(){let e=1,t="",n=!0,r;return i;function i(a,o,l){const s=[];let c,d,f,p,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(_1.lastIndex=f,c=_1.exec(a),p=c&&c.index!==void 0?c.index:a.length,h=a.charCodeAt(p),!c){t=a.slice(f);break}if(h===10&&f===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<p&&(s.push(a.slice(f,p)),e+=p-f),h){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return l&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const i4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a4(e){return e.replace(i4,o4)}function o4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return FO(n.slice(a?2:1),a?16:10)}return ky(n)||e}const QO={}.hasOwnProperty;function l4(e,t,n){return typeof t!="string"&&(n=t,t=void 0),s4(n)(n4(t4(n).document().write(r4()(e,t,!0))))}function s4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Je),autolinkProtocol:M,autolinkEmail:M,atxHeading:a(me),blockQuote:a(te),characterEscape:M,characterReference:M,codeFenced:a(se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(se,o),codeText:a(q,o),codeTextData:M,data:M,codeFlowValue:M,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ce),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(we,o),htmlFlowData:M,htmlText:a(we,o),htmlTextData:M,image:a(lt),label:o,link:a(Je),listItem:a(wn),listItemValue:p,listOrdered:a(wt,f),listUnordered:a(wt),paragraph:a(St),reference:A,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(me),strong:a(Vt),thematicBreak:a(Nn)},exit:{atxHeading:s(),atxHeadingSequence:k,autolink:s(),autolinkEmail:W,autolinkProtocol:de,blockQuote:s(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:H,characterReference:G,codeFenced:s(x),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:I,codeIndented:s(v),codeText:s(O),codeTextData:I,data:I,definition:s(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:w,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(V),htmlFlowData:I,htmlText:s(L),htmlTextData:I,image:s(U),label:z,labelText:D,lineEnding:_,link:s(R),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ce,resourceDestinationString:P,resourceTitleString:Y,resource:Q,setextHeading:s(E),setextHeadingLineSequence:C,setextHeadingText:j,strong:s(),thematicBreak:s()}};ZO(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let Z={type:"root",children:[]};const ve={stack:[Z],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:d,data:n},Pe=[];let Ae=-1;for(;++Ae<K.length;)if(K[Ae][1].type==="listOrdered"||K[Ae][1].type==="listUnordered")if(K[Ae][0]==="enter")Pe.push(Ae);else{const B=Pe.pop();Ae=i(K,B,Ae)}for(Ae=-1;++Ae<K.length;){const B=t[K[Ae][0]];QO.call(B,K[Ae][1].type)&&B[K[Ae][1].type].call(Object.assign({sliceSerialize:K[Ae][2].sliceSerialize},ve),K[Ae][1])}if(ve.tokenStack.length>0){const B=ve.tokenStack[ve.tokenStack.length-1];(B[1]||N1).call(ve,void 0,B[0])}for(Z.position={start:Mi(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Mi(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)Z=t.transforms[Ae](Z)||Z;return Z}function i(K,Z,ve){let Pe=Z-1,Ae=-1,B=!1,le,ie,be,He;for(;++Pe<=ve;){const Ne=K[Pe];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?Ae++:Ae--,He=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(le&&!He&&!Ae&&!be&&(be=Pe),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!Ae&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||Ae===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(le){let st=Pe;for(ie=void 0;st--;){const De=K[st];if(De[1].type==="lineEnding"||De[1].type==="lineEndingBlank"){if(De[0]==="exit")continue;ie&&(K[ie][1].type="lineEndingBlank",B=!0),De[1].type="lineEnding",ie=st}else if(!(De[1].type==="linePrefix"||De[1].type==="blockQuotePrefix"||De[1].type==="blockQuotePrefixWhitespace"||De[1].type==="blockQuoteMarker"||De[1].type==="listItemIndent"))break}be&&(!ie||be<ie)&&(le._spread=!0),le.end=Object.assign({},ie?K[ie][1].start:Ne[1].end),K.splice(ie||Pe,0,["exit",le,Ne[2]]),Pe++,ve++}if(Ne[1].type==="listItemPrefix"){const st={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};le=st,K.splice(Pe,0,["enter",st,Ne[2]]),Pe++,ve++,be=void 0,He=!0}}}return K[Z][1]._spread=B,ve}function a(K,Z){return ve;function ve(Pe){l.call(this,K(Pe),Pe),Z&&Z.call(this,Pe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(K,Z,ve){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([Z,ve||void 0]),K.position={start:Mi(Z.start),end:void 0}}function s(K){return Z;function Z(ve){K&&K.call(this,ve),c.call(this,ve)}}function c(K,Z){const ve=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==K.type&&(Z?Z.call(this,K,Pe[0]):(Pe[1]||N1).call(this,K,Pe[0]));else throw new Error("Cannot close `"+K.type+"` ("+ds({start:K.start,end:K.end})+"): it’s not open");ve.position.end=Mi(K.end)}function d(){return oz(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(K){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function h(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=K}function g(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=K}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K.replace(/(\r?\n|\r)$/g,"")}function b(K){const Z=this.resume(),ve=this.stack[this.stack.length-1];ve.label=Z,ve.identifier=Fo(this.sliceSerialize(K)).toLowerCase()}function w(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.title=K}function S(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.url=K}function k(K){const Z=this.stack[this.stack.length-1];if(!Z.depth){const ve=this.sliceSerialize(K).length;Z.depth=ve}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function C(K){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const ve=this.stack[this.stack.length-1].children;let Pe=ve[ve.length-1];(!Pe||Pe.type!=="text")&&(Pe=Jr(),Pe.position={start:Mi(K.start),end:void 0},ve.push(Pe)),this.stack.push(Pe)}function I(K){const Z=this.stack.pop();Z.value+=this.sliceSerialize(K),Z.position.end=Mi(K.end)}function _(K){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=Z.children[Z.children.length-1];ve.position.end=Mi(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(M.call(this,K),I.call(this,K))}function N(){this.data.atHardBreak=!0}function V(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function L(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function O(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function R(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Z,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function U(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Z,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function D(K){const Z=this.sliceSerialize(K),ve=this.stack[this.stack.length-2];ve.label=a4(Z),ve.identifier=Fo(Z).toLowerCase()}function z(){const K=this.stack[this.stack.length-1],Z=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Pe=K.children;ve.children=Pe}else ve.alt=Z}function P(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.url=K}function Y(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.title=K}function Q(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function ce(K){const Z=this.resume(),ve=this.stack[this.stack.length-1];ve.label=Z,ve.identifier=Fo(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ye(K){this.data.characterReferenceType=K.type}function H(K){const Z=this.sliceSerialize(K),ve=this.data.characterReferenceType;let Pe;ve?(Pe=FO(Z,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=ky(Z);const Ae=this.stack[this.stack.length-1];Ae.value+=Pe}function G(K){const Z=this.stack.pop();Z.position.end=Mi(K.end)}function de(K){I.call(this,K);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(K)}function W(K){I.call(this,K);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(K)}function te(){return{type:"blockquote",children:[]}}function se(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function me(){return{type:"heading",depth:0,children:[]}}function ge(){return{type:"break"}}function we(){return{type:"html",value:""}}function lt(){return{type:"image",title:null,url:"",alt:null}}function Je(){return{type:"link",title:null,url:"",children:[]}}function wt(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function wn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function Vt(){return{type:"strong",children:[]}}function Jr(){return{type:"text",value:""}}function Nn(){return{type:"thematicBreak"}}}function Mi(e){return{line:e.line,column:e.column,offset:e.offset}}function ZO(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ZO(e,r):u4(e,r)}}function u4(e,t){let n;for(n in t)if(QO.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function N1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function c4(e){const t=this;t.parser=n;function n(r){return l4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function d4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function f4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
70
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function t4(e){const r={constructs:sz([Q$,...(e||{}).extensions||[]]),content:i(gz),defined:[],document:i(yz),flow:i(L$),lazy:{},string:i($$),text:i(B$)};return r;function i(a){return o;function o(l){return Z$(r,a,l)}}}function n4(e){for(;!HO(e););return e}const _1=/[\0\t\n\r]/g;function r4(){let e=1,t="",n=!0,r;return i;function i(a,o,l){const s=[];let c,d,f,p,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(_1.lastIndex=f,c=_1.exec(a),p=c&&c.index!==void 0?c.index:a.length,h=a.charCodeAt(p),!c){t=a.slice(f);break}if(h===10&&f===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<p&&(s.push(a.slice(f,p)),e+=p-f),h){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return l&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const i4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a4(e){return e.replace(i4,o4)}function o4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return FO(n.slice(a?2:1),a?16:10)}return ky(n)||e}const QO={}.hasOwnProperty;function l4(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),s4(n)(n4(t4(n).document().write(r4()(e,t,!0))))}function s4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Je),autolinkProtocol:M,autolinkEmail:M,atxHeading:a(me),blockQuote:a(te),characterEscape:M,characterReference:M,codeFenced:a(se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(se,o),codeText:a(q,o),codeTextData:M,data:M,codeFlowValue:M,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ce),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(we,o),htmlFlowData:M,htmlText:a(we,o),htmlTextData:M,image:a(lt),label:o,link:a(Je),listItem:a(wn),listItemValue:p,listOrdered:a(wt,f),listUnordered:a(wt),paragraph:a(St),reference:A,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(me),strong:a(Vt),thematicBreak:a(Nn)},exit:{atxHeading:s(),atxHeadingSequence:k,autolink:s(),autolinkEmail:W,autolinkProtocol:de,blockQuote:s(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:H,characterReference:G,codeFenced:s(x),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:I,codeIndented:s(v),codeText:s(O),codeTextData:I,data:I,definition:s(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:w,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(V),htmlFlowData:I,htmlText:s(L),htmlTextData:I,image:s(U),label:z,labelText:D,lineEnding:_,link:s(R),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ce,resourceDestinationString:P,resourceTitleString:Y,resource:Q,setextHeading:s(E),setextHeadingLineSequence:C,setextHeadingText:j,strong:s(),thematicBreak:s()}};ZO(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let Z={type:"root",children:[]};const ve={stack:[Z],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:d,data:n},Pe=[];let Ae=-1;for(;++Ae<K.length;)if(K[Ae][1].type==="listOrdered"||K[Ae][1].type==="listUnordered")if(K[Ae][0]==="enter")Pe.push(Ae);else{const B=Pe.pop();Ae=i(K,B,Ae)}for(Ae=-1;++Ae<K.length;){const B=t[K[Ae][0]];QO.call(B,K[Ae][1].type)&&B[K[Ae][1].type].call(Object.assign({sliceSerialize:K[Ae][2].sliceSerialize},ve),K[Ae][1])}if(ve.tokenStack.length>0){const B=ve.tokenStack[ve.tokenStack.length-1];(B[1]||N1).call(ve,void 0,B[0])}for(Z.position={start:Mi(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Mi(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)Z=t.transforms[Ae](Z)||Z;return Z}function i(K,Z,ve){let Pe=Z-1,Ae=-1,B=!1,le,ie,be,He;for(;++Pe<=ve;){const Ne=K[Pe];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?Ae++:Ae--,He=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(le&&!He&&!Ae&&!be&&(be=Pe),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!Ae&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||Ae===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(le){let st=Pe;for(ie=void 0;st--;){const De=K[st];if(De[1].type==="lineEnding"||De[1].type==="lineEndingBlank"){if(De[0]==="exit")continue;ie&&(K[ie][1].type="lineEndingBlank",B=!0),De[1].type="lineEnding",ie=st}else if(!(De[1].type==="linePrefix"||De[1].type==="blockQuotePrefix"||De[1].type==="blockQuotePrefixWhitespace"||De[1].type==="blockQuoteMarker"||De[1].type==="listItemIndent"))break}be&&(!ie||be<ie)&&(le._spread=!0),le.end=Object.assign({},ie?K[ie][1].start:Ne[1].end),K.splice(ie||Pe,0,["exit",le,Ne[2]]),Pe++,ve++}if(Ne[1].type==="listItemPrefix"){const st={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};le=st,K.splice(Pe,0,["enter",st,Ne[2]]),Pe++,ve++,be=void 0,He=!0}}}return K[Z][1]._spread=B,ve}function a(K,Z){return ve;function ve(Pe){l.call(this,K(Pe),Pe),Z&&Z.call(this,Pe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(K,Z,ve){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([Z,ve||void 0]),K.position={start:Mi(Z.start),end:void 0}}function s(K){return Z;function Z(ve){K&&K.call(this,ve),c.call(this,ve)}}function c(K,Z){const ve=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==K.type&&(Z?Z.call(this,K,Pe[0]):(Pe[1]||N1).call(this,K,Pe[0]));else throw new Error("Cannot close `"+K.type+"` ("+ds({start:K.start,end:K.end})+"): it’s not open");ve.position.end=Mi(K.end)}function d(){return oz(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(K){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function h(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=K}function g(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=K}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K.replace(/(\r?\n|\r)$/g,"")}function b(K){const Z=this.resume(),ve=this.stack[this.stack.length-1];ve.label=Z,ve.identifier=Fo(this.sliceSerialize(K)).toLowerCase()}function w(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.title=K}function S(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.url=K}function k(K){const Z=this.stack[this.stack.length-1];if(!Z.depth){const ve=this.sliceSerialize(K).length;Z.depth=ve}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function C(K){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const ve=this.stack[this.stack.length-1].children;let Pe=ve[ve.length-1];(!Pe||Pe.type!=="text")&&(Pe=Jr(),Pe.position={start:Mi(K.start),end:void 0},ve.push(Pe)),this.stack.push(Pe)}function I(K){const Z=this.stack.pop();Z.value+=this.sliceSerialize(K),Z.position.end=Mi(K.end)}function _(K){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=Z.children[Z.children.length-1];ve.position.end=Mi(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(M.call(this,K),I.call(this,K))}function N(){this.data.atHardBreak=!0}function V(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function L(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function O(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.value=K}function R(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Z,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function U(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Z,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function D(K){const Z=this.sliceSerialize(K),ve=this.stack[this.stack.length-2];ve.label=a4(Z),ve.identifier=Fo(Z).toLowerCase()}function z(){const K=this.stack[this.stack.length-1],Z=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Pe=K.children;ve.children=Pe}else ve.alt=Z}function P(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.url=K}function Y(){const K=this.resume(),Z=this.stack[this.stack.length-1];Z.title=K}function Q(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function ce(K){const Z=this.resume(),ve=this.stack[this.stack.length-1];ve.label=Z,ve.identifier=Fo(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ye(K){this.data.characterReferenceType=K.type}function H(K){const Z=this.sliceSerialize(K),ve=this.data.characterReferenceType;let Pe;ve?(Pe=FO(Z,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=ky(Z);const Ae=this.stack[this.stack.length-1];Ae.value+=Pe}function G(K){const Z=this.stack.pop();Z.position.end=Mi(K.end)}function de(K){I.call(this,K);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(K)}function W(K){I.call(this,K);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(K)}function te(){return{type:"blockquote",children:[]}}function se(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function me(){return{type:"heading",depth:0,children:[]}}function ge(){return{type:"break"}}function we(){return{type:"html",value:""}}function lt(){return{type:"image",title:null,url:"",alt:null}}function Je(){return{type:"link",title:null,url:"",children:[]}}function wt(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function wn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function Vt(){return{type:"strong",children:[]}}function Jr(){return{type:"text",value:""}}function Nn(){return{type:"thematicBreak"}}}function Mi(e){return{line:e.line,column:e.column,offset:e.offset}}function ZO(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ZO(e,r):u4(e,r)}}function u4(e,t){let n;for(n in t)if(QO.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function N1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function c4(e){const t=this;t.parser=n;function n(r){return l4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function d4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function f4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
71
71
  `}]}function p4(e,t){const n=t.value?t.value+`
72
72
  `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function h4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function m4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function g4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=dl(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function v4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function y4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function JO(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function x4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JO(e,t);const i={src:dl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function b4(e,t){const n={src:dl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function w4(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function S4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JO(e,t);const i={href:dl(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function j4(e,t){const n={href:dl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function k4(e,t,n){const r=e.all(t),i=n?P4(n):eE(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(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:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
73
73
  `}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>AI Code Switch</title>
7
- <script type="module" crossorigin src="./assets/index-CnkD0YNx.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-CcN9H5O_.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/index-Bbt481dy.css">
9
9
  </head>
10
10
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicodeswitch",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
5
5
  "author": "tangshuang",
6
6
  "license": "GPL-3.0",