@jyork0828/pi-pilot 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ var sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er={exports:{}},mn={},Ir={exports:{}},R={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Xe=Symbol.for("react.element"),Gi=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),Ki=Symbol.for("react.strict_mode"),Zi=Symbol.for("react.profiler"),el=Symbol.for("react.provider"),nl=Symbol.for("react.context"),tl=Symbol.for("react.forward_ref"),rl=Symbol.for("react.suspense"),il=Symbol.for("react.memo"),ll=Symbol.for("react.lazy"),It=Symbol.iterator;function ol(e){return e===null||typeof e!="object"?null:(e=It&&e[It]||e["@@iterator"],typeof e=="function"?e:null)}var Ar={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vr=Object.assign,Tr={};function Re(e,n,t){this.props=e,this.context=n,this.refs=Tr,this.updater=t||Ar}Re.prototype.isReactComponent={};Re.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};Re.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pr(){}Pr.prototype=Re.prototype;function Jn(e,n,t){this.props=e,this.context=n,this.refs=Tr,this.updater=t||Ar}var Kn=Jn.prototype=new Pr;Kn.constructor=Jn;vr(Kn,Re.prototype);Kn.isPureReactComponent=!0;var At=Array.isArray,_r=Object.prototype.hasOwnProperty,Zn={current:null},zr={key:!0,ref:!0,__self:!0,__source:!0};function Dr(e,n,t){var r,i={},o=null,l=null;if(n!=null)for(r in n.ref!==void 0&&(l=n.ref),n.key!==void 0&&(o=""+n.key),n)_r.call(n,r)&&!zr.hasOwnProperty(r)&&(i[r]=n[r]);var u=arguments.length-2;if(u===1)i.children=t;else if(1<u){for(var a=Array(u),s=0;s<u;s++)a[s]=arguments[s+2];i.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Xe,type:e,key:o,ref:l,props:i,_owner:Zn.current}}function ul(e,n){return{$$typeof:Xe,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function et(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xe}function al(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var vt=/\/+/g;function wn(e,n){return typeof e=="object"&&e!==null&&e.key!=null?al(""+e.key):n.toString(36)}function ln(e,n,t,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Xe:case Gi:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+wn(l,0):r,At(i)?(t="",e!=null&&(t=e.replace(vt,"$&/")+"/"),ln(i,n,t,"",function(s){return s})):i!=null&&(et(i)&&(i=ul(i,t+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(vt,"$&/")+"/")+e)),n.push(i)),1;if(l=0,r=r===""?".":r+":",At(e))for(var u=0;u<e.length;u++){o=e[u];var a=r+wn(o,u);l+=ln(o,n,t,a,i)}else if(a=ol(e),typeof a=="function")for(e=a.call(e),u=0;!(o=e.next()).done;)o=o.value,a=r+wn(o,u++),l+=ln(o,n,t,a,i);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return l}function Ze(e,n,t){if(e==null)return e;var r=[],i=0;return ln(e,r,"","",function(o){return n.call(t,o,i++)}),r}function sl(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee={current:null},on={transition:null},cl={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:on,ReactCurrentOwner:Zn};function Lr(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:Ze,forEach:function(e,n,t){Ze(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return Ze(e,function(){n++}),n},toArray:function(e){return Ze(e,function(n){return n})||[]},only:function(e){if(!et(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Component=Re;R.Fragment=Ji;R.Profiler=Zi;R.PureComponent=Jn;R.StrictMode=Ki;R.Suspense=rl;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cl;R.act=Lr;R.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=vr({},e.props),i=e.key,o=e.ref,l=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,l=Zn.current),n.key!==void 0&&(i=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in n)_r.call(n,a)&&!zr.hasOwnProperty(a)&&(r[a]=n[a]===void 0&&u!==void 0?u[a]:n[a])}var a=arguments.length-2;if(a===1)r.children=t;else if(1<a){u=Array(a);for(var s=0;s<a;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:Xe,type:e.type,key:i,ref:o,props:r,_owner:l}};R.createContext=function(e){return e={$$typeof:nl,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:el,_context:e},e.Consumer=e};R.createElement=Dr;R.createFactory=function(e){var n=Dr.bind(null,e);return n.type=e,n};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:tl,render:e}};R.isValidElement=et;R.lazy=function(e){return{$$typeof:ll,_payload:{_status:-1,_result:e},_init:sl}};R.memo=function(e,n){return{$$typeof:il,type:e,compare:n===void 0?null:n}};R.startTransition=function(e){var n=on.transition;on.transition={};try{e()}finally{on.transition=n}};R.unstable_act=Lr;R.useCallback=function(e,n){return ee.current.useCallback(e,n)};R.useContext=function(e){return ee.current.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e){return ee.current.useDeferredValue(e)};R.useEffect=function(e,n){return ee.current.useEffect(e,n)};R.useId=function(){return ee.current.useId()};R.useImperativeHandle=function(e,n,t){return ee.current.useImperativeHandle(e,n,t)};R.useInsertionEffect=function(e,n){return ee.current.useInsertionEffect(e,n)};R.useLayoutEffect=function(e,n){return ee.current.useLayoutEffect(e,n)};R.useMemo=function(e,n){return ee.current.useMemo(e,n)};R.useReducer=function(e,n,t){return ee.current.useReducer(e,n,t)};R.useRef=function(e){return ee.current.useRef(e)};R.useState=function(e){return ee.current.useState(e)};R.useSyncExternalStore=function(e,n,t){return ee.current.useSyncExternalStore(e,n,t)};R.useTransition=function(){return ee.current.useTransition()};R.version="18.3.1";Ir.exports=R;var Fr=Ir.exports;const sh=Gn(Fr);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var fl=Fr,hl=Symbol.for("react.element"),pl=Symbol.for("react.fragment"),ml=Object.prototype.hasOwnProperty,gl=fl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dl={key:!0,ref:!0,__self:!0,__source:!0};function Rr(e,n,t){var r,i={},o=null,l=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(l=n.ref);for(r in n)ml.call(n,r)&&!dl.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:hl,type:e,key:o,ref:l,props:i,_owner:gl.current}}mn.Fragment=pl;mn.jsx=Rr;mn.jsxs=Rr;Er.exports=mn;var Sn=Er.exports;function yl(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const kl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bl={};function Tt(e,n){return(bl.jsx?xl:kl).test(e)}const wl=/[ \t\n\f\r]/g;function Sl(e){return typeof e=="object"?e.type==="text"?Pt(e.value):!1:Pt(e)}function Pt(e){return e.replace(wl,"")===""}class Qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function Or(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Qe(t,r,n)}function Nn(e){return e.toLowerCase()}class te{constructor(n,t){this.attribute=t,this.property=n}}te.prototype.attribute="";te.prototype.booleanish=!1;te.prototype.boolean=!1;te.prototype.commaOrSpaceSeparated=!1;te.prototype.commaSeparated=!1;te.prototype.defined=!1;te.prototype.mustUseProperty=!1;te.prototype.number=!1;te.prototype.overloadedBoolean=!1;te.prototype.property="";te.prototype.spaceSeparated=!1;te.prototype.space=void 0;let Cl=0;const z=ve(),Y=ve(),Bn=ve(),S=ve(),V=ve(),Le=ve(),ie=ve();function ve(){return 2**++Cl}const jn=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:Y,commaOrSpaceSeparated:ie,commaSeparated:Le,number:S,overloadedBoolean:Bn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),Cn=Object.keys(jn);class nt extends te{constructor(n,t,r,i){let o=-1;if(super(n,t),_t(this,"space",i),typeof r=="number")for(;++o<Cn.length;){const l=Cn[o];_t(this,Cn[o],(r&jn[l])===jn[l])}}}nt.prototype.defined=!0;function _t(e,n,t){t&&(e[n]=t)}function Oe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new nt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Nn(r)]=r,t[Nn(o.attribute)]=r}return new Qe(n,t,e.space)}const Mr=Oe({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:V,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:S,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:Y,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Nr(e,n){return n in e?e[n]:n}function Br(e,n){return Nr(e,n.toLowerCase())}const El=Oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:V,autoFocus:z,autoPlay:z,blocking:V,capture:null,charSet:null,checked:z,cite:null,className:V,cols:S,colSpan:null,content:null,contentEditable:Y,controls:z,controlsList:V,coords:S|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:Bn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:V,height:S,hidden:Bn,high:S,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:V,itemRef:V,itemScope:z,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:z,optimum:S,pattern:null,ping:V,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:V,required:z,reversed:z,rows:S,rowSpan:S,sandbox:V,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:Y,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:z,disableRemotePlayback:z,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:Br}),Il=Oe({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:ie,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:V,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:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,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:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ie,rev:ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ie,requiredFeatures:ie,requiredFonts:ie,requiredFormats:ie,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ie,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nr}),jr=Oe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),$r=Oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Br}),Hr=Oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Al={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"},vl=/[A-Z]/g,zt=/-[a-z]/g,Tl=/^data[-\w.:]+$/i;function Pl(e,n){const t=Nn(n);let r=n,i=te;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Tl.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(zt,zl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!zt.test(o)){let l=o.replace(vl,_l);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=nt}return new i(r,n)}function _l(e){return"-"+e.toLowerCase()}function zl(e){return e.charAt(1).toUpperCase()}const Dl=Or([Mr,El,jr,$r,Hr],"html"),tt=Or([Mr,Il,jr,$r,Hr],"svg");function Ll(e){return e.join(" ").trim()}var rt={},Dt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fl=/\n/g,Rl=/^\s*/,Ol=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ml=/^:\s*/,Nl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Bl=/^[;\s]*/,jl=/^\s+|\s+$/g,$l=`
18
+ `,Lt="/",Ft="*",Ie="",Hl="comment",Ul="declaration";function Vl(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(d){var x=d.match(Fl);x&&(t+=x.length);var C=d.lastIndexOf($l);r=~C?d.length-C:r+d.length}function o(){var d={line:t,column:r};return function(x){return x.position=new l(d),s(),x}}function l(d){this.start=d,this.end={line:t,column:r},this.source=n.source}l.prototype.content=e;function u(d){var x=new Error(n.source+":"+t+":"+r+": "+d);if(x.reason=d,x.filename=n.source,x.line=t,x.column=r,x.source=e,!n.silent)throw x}function a(d){var x=d.exec(e);if(x){var C=x[0];return i(C),e=e.slice(C.length),x}}function s(){a(Rl)}function f(d){var x;for(d=d||[];x=c();)x!==!1&&d.push(x);return d}function c(){var d=o();if(!(Lt!=e.charAt(0)||Ft!=e.charAt(1))){for(var x=2;Ie!=e.charAt(x)&&(Ft!=e.charAt(x)||Lt!=e.charAt(x+1));)++x;if(x+=2,Ie===e.charAt(x-1))return u("End of comment missing");var C=e.slice(2,x-2);return r+=2,i(C),e=e.slice(x),r+=2,d({type:Hl,comment:C})}}function p(){var d=o(),x=a(Ol);if(x){if(c(),!a(Ml))return u("property missing ':'");var C=a(Nl),y=d({type:Ul,property:Rt(x[0].replace(Dt,Ie)),value:C?Rt(C[0].replace(Dt,Ie)):Ie});return a(Bl),y}}function h(){var d=[];f(d);for(var x;x=p();)x!==!1&&(d.push(x),f(d));return d}return s(),h()}function Rt(e){return e?e.replace(jl,Ie):Ie}var ql=Vl,Wl=sn&&sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});rt.default=Xl;const Yl=Wl(ql);function Xl(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,Yl.default)(e),i=typeof n=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:u}=o;i?n(l,u,o):u&&(t=t||{},t[l]=u)}),t}var gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.camelCase=void 0;var Ql=/^--[a-zA-Z0-9_-]+$/,Gl=/-([a-z])/g,Jl=/^[^-]+$/,Kl=/^-(webkit|moz|ms|o|khtml)-/,Zl=/^-(ms)-/,eo=function(e){return!e||Jl.test(e)||Ql.test(e)},no=function(e,n){return n.toUpperCase()},Ot=function(e,n){return"".concat(n,"-")},to=function(e,n){return n===void 0&&(n={}),eo(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Zl,Ot):e=e.replace(Kl,Ot),e.replace(Gl,no))};gn.camelCase=to;var ro=sn&&sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},io=ro(rt),lo=gn;function $n(e,n){var t={};return!e||typeof e!="string"||(0,io.default)(e,function(r,i){r&&i&&(t[(0,lo.camelCase)(r,n)]=i)}),t}$n.default=$n;var oo=$n;const uo=Gn(oo),Ur=Vr("end"),it=Vr("start");function Vr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ao(e){const n=it(e),t=Ur(e);if(n&&t)return{start:n,end:t}}function Ue(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mt(e.position):"start"in e||"end"in e?Mt(e):"line"in e||"column"in e?Hn(e):""}function Hn(e){return Nt(e&&e.line)+":"+Nt(e&&e.column)}function Mt(e){return Hn(e&&e.start)+"-"+Hn(e&&e.end)}function Nt(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Ue(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const lt={}.hasOwnProperty,so=new Map,co=/[A-Z]/g,fo=new Set(["table","tbody","thead","tfoot","tr"]),ho=new Set(["td","th"]),qr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function po(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=So(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=wo(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?tt:Dl,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Wr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Wr(e,n,t){if(n.type==="element")return mo(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return go(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ko(e,n,t);if(n.type==="mdxjsEsm")return yo(e,n);if(n.type==="root")return xo(e,n,t);if(n.type==="text")return bo(e,n)}function mo(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=tt,e.schema=i),e.ancestors.push(n);const o=Xr(e,n.tagName,!1),l=Co(e,n);let u=ut(e,n);return fo.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!Sl(a):!0})),Yr(e,l,o,n),ot(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function go(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}We(e,n.position)}function yo(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);We(e,n.position)}function ko(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=tt,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Xr(e,n.name,!0),l=Eo(e,n),u=ut(e,n);return Yr(e,l,o,n),ot(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function xo(e,n,t){const r={};return ot(r,ut(e,n)),e.create(n,e.Fragment,r,t)}function bo(e,n){return n.value}function Yr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function ot(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function wo(e,n,t){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?t:n;return u?s(o,l,u):s(o,l)}}function So(e,n){return t;function t(r,i,o,l){const u=Array.isArray(o.children),a=it(r);return n(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Co(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&lt.call(n.properties,i)){const o=Io(e,i,n.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ho.has(n.tagName)?r=u:t[l]=u}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Eo(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else We(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else We(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function ut(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:so;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=Wr(e,o,l);u!==void 0&&t.push(u)}return t}function Io(e,n,t){const r=Pl(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?yl(t):Ll(t)),r.property==="style"){let i=typeof t=="object"?t:Ao(e,String(t));return e.stylePropertyNameCase==="css"&&(i=vo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Al[r.property]||r.property:r.attribute,t]}}function Ao(e,n){try{return uo(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qr+"#cannot-parse-style-attribute",i}}function Xr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const u=Tt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=Tt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return lt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);We(e)}function We(e,n){const t=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=qr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function vo(e){const n={};let t;for(t in e)lt.call(e,t)&&(n[To(t)]=e[t]);return n}function To(e){let n=e.replace(co,Po);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Po(e){return"-"+e.toLowerCase()}const En={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_o={};function at(e,n){const t=_o,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Qr(e,r,i)}function Qr(e,n,t){if(zo(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Bt(e.children,n,t)}return Array.isArray(e)?Bt(e,n,t):""}function Bt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qr(e[i],n,t);return r.join("")}function zo(e){return!!(e&&typeof e=="object")}const jt=document.createElement("i");function st(e){const n="&"+e+";";jt.innerHTML=n;const t=jt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function le(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function oe(e,n){return e.length>0?(le(e,e.length,0,n),e):n}const $t={}.hasOwnProperty;function Gr(e){const n={};let t=-1;for(;++t<e.length;)Do(n,e[t]);return n}function Do(e,n){let t;for(t in n){const i=($t.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){$t.call(i,l)||(i[l]=[]);const u=o[l];Lo(i[l],Array.isArray(u)?u:u?[u]:[])}}}function Lo(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);le(e,0,0,r)}function Jr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z=we(/[A-Za-z]/),J=we(/[\dA-Za-z]/),Fo=we(/[#-'*+\--9=?A-Z^-~]/);function cn(e){return e!==null&&(e<32||e===127)}const Un=we(/\d/),Ro=we(/[\dA-Fa-f]/),Oo=we(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function U(e){return e!==null&&(e<0||e===32)}function F(e){return e===-2||e===-1||e===32}const dn=we(new RegExp("\\p{P}|\\p{S}","u")),Ae=we(/\s/);function we(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Me(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&J(e.charCodeAt(t+1))&&J(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(t+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function M(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return F(a)?(e.enter(t),u(a)):n(a)}function u(a){return F(a)&&o++<i?(e.consume(a),u):(e.exit(t),n(a))}}const Mo={tokenize:No};function No(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),M(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return P(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const Bo={tokenize:jo},Ht={tokenize:$o};function jo(e){const n=this,t=[];let r=0,i,o,l;return u;function u(E){if(r<t.length){const D=t[r];return n.containerState=D[1],e.attempt(D[0].continuation,a,s)(E)}return s(E)}function a(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();const D=n.events.length;let L=D,w;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){w=n.events[L][1].end;break}y(r);let N=D;for(;N<n.events.length;)n.events[N][1].end={...w},N++;return le(n.events,L+1,0,n.events.slice(D)),n.events.length=N,s(E)}return u(E)}function s(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ht,f,c)(E)}function f(E){return i&&A(),y(r),p(E)}function c(E){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(E)}function p(E){return n.containerState={},e.attempt(Ht,h,d)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function d(E){if(E===null){i&&A(),y(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(E)}function x(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return P(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(E),x)}function C(E,D){const L=n.sliceStream(E);if(D&&L.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(L),n.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const N=n.events.length;let q=N,j,k;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(j){k=n.events[q][1].end;break}j=!0}for(y(r),w=N;w<n.events.length;)n.events[w][1].end={...k},w++;le(n.events,q+1,0,n.events.slice(N)),n.events.length=w}}function y(E){let D=t.length;for(;D-- >E;){const L=t[D];n.containerState=L[1],L[0].exit.call(n,e)}t.length=E}function A(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function $o(e,n,t){return M(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fe(e){if(e===null||U(e)||Ae(e))return 1;if(dn(e))return 2}function yn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Vn={name:"attention",resolveAll:Ho,tokenize:Uo};function Ho(e,n){let t=-1,r,i,o,l,u,a,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Ut(c,-a),Ut(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=oe(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=oe(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=oe(s,yn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=oe(s,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=oe(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,le(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Uo(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fe(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),f=Fe(a),c=!f||f===2&&i||t.includes(a),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(a)}}function Ut(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Vo={name:"autolink",tokenize:qo};function qo(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Z(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||J(h)?(r=1,u(h)):s(h)}function u(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||J(h))&&r++<32?(e.consume(h),u):(r=0,s(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||cn(h)?t(h):(e.consume(h),a)}function s(h){return h===64?(e.consume(h),f):Fo(h)?(e.consume(h),s):t(h)}function f(h){return J(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||J(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const Ge={partial:!0,tokenize:Wo};function Wo(e,n,t){return r;function r(o){return F(o)?M(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?n(o):t(o)}}const Kr={continuation:{tokenize:Xo},exit:Qo,name:"blockQuote",tokenize:Yo};function Yo(e,n,t){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return F(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Xo(e,n,t){const r=this;return i;function i(l){return F(l)?M(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Kr,n,t)(l)}}function Qo(e){e.exit("blockQuote")}const Zr={name:"characterEscape",tokenize:Go};function Go(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Oo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ei={name:"characterReference",tokenize:Jo};function Jo(e,n,t){const r=this;let i=0,o,l;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=J,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Ro,f):(e.enter("characterReferenceValue"),o=7,l=Un,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===J&&!st(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Vt={partial:!0,tokenize:Zo},qt={concrete:!0,name:"codeFenced",tokenize:Ko};function Ko(e,n,t){const r=this,i={partial:!0,tokenize:L};let o=0,l=0,u;return a;function a(w){return s(w)}function s(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===u?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),F(w)?M(e,c,"whitespace")(w):c(w))}function c(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Vt,x,D)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):F(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),M(e,h,"whitespace")(w)):w===96&&w===u?t(w):(e.consume(w),p)}function h(w){return w===null||P(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===u?t(w):(e.consume(w),d)}function x(w){return e.attempt(i,D,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&F(w)?M(e,A,"linePrefix",o+1)(w):A(w)}function A(w){return w===null||P(w)?e.check(Vt,x,D)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||P(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),E)}function D(w){return e.exit("codeFenced"),n(w)}function L(w,N,q){let j=0;return k;function k(B){return w.enter("lineEnding"),w.consume(B),w.exit("lineEnding"),v}function v(B){return w.enter("codeFencedFence"),F(B)?M(w,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):T(B)}function T(B){return B===u?(w.enter("codeFencedFenceSequence"),$(B)):q(B)}function $(B){return B===u?(j++,w.consume(B),$):j>=l?(w.exit("codeFencedFenceSequence"),F(B)?M(w,W,"whitespace")(B):W(B)):q(B)}function W(B){return B===null||P(B)?(w.exit("codeFencedFence"),N(B)):q(B)}}}function Zo(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const In={name:"codeIndented",tokenize:nu},eu={partial:!0,tokenize:tu};function nu(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),M(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?a(s):P(s)?e.attempt(eu,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||P(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function tu(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):M(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(l):P(l)?i(l):t(l)}}const ru={name:"codeText",previous:lu,resolve:iu,tokenize:ou};function iu(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function lu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ou(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):P(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||P(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class uu{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$e(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),$e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),$e(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);$e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);$e(this.left,t.reverse())}}}function $e(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function ni(e){const n={};let t=-1,r,i,o,l,u,a,s;const f=new uu(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,au(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,t),u.unshift(r),f.splice(i,t-i+1,u))}}return le(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function au(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,a=[],s={};let f,c,p=-1,h=t,d=0,x=0;const C=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(x=p+1,C.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=u.slice(C[p],C[p+1]),A=o.pop();a.push([A,A+y.length-1]),e.splice(A,2,y)}for(a.reverse(),p=-1;++p<a.length;)s[d+a[p][0]]=d+a[p][1],d+=a[p][1]-a[p][0]-1;return s}const su={resolve:fu,tokenize:hu},cu={partial:!0,tokenize:pu};function fu(e){return ni(e),e}function hu(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):P(u)?e.check(cu,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function l(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function pu(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),M(e,o,"linePrefix")}function o(l){if(l===null||P(l))return t(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ti(e,n,t,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||cn(y)?t(y):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||P(y)?t(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function x(y){return!f&&(y===null||y===41||U(y))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(y)):f<s&&y===40?(e.consume(y),f++,x):y===41?(e.consume(y),f--,x):y===null||y===32||y===40||cn(y)?t(y):(e.consume(y),y===92?C:x)}function C(y){return y===40||y===41||y===92?(e.consume(y),x):x(y)}}function ri(e,n,t,r,i,o){const l=this;let u=0,a;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return u>999||h===null||h===91||h===93&&!a||h===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||P(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!F(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function ii(e,n,t,r,i,o){let l;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,a):t(p)}function a(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),a(l)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),M(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||P(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ve(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):F(i)?M(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const mu={name:"definition",tokenize:du},gu={partial:!0,tokenize:yu};function du(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return ri.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):t(h)}function a(h){return U(h)?Ve(e,s)(h):s(h)}function s(h){return ti(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(gu,c,c)(h)}function c(h){return F(h)?M(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function yu(e,n,t){return r;function r(u){return U(u)?Ve(e,i)(u):t(u)}function i(u){return ii(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return F(u)?M(e,l,"whitespace")(u):l(u)}function l(u){return u===null||P(u)?n(u):t(u)}}const ku={name:"hardBreakEscape",tokenize:xu};function xu(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const bu={name:"headingAtx",resolve:wu,tokenize:Su};function wu(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},le(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Su(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||U(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||P(f)?(e.exit("atxHeading"),n(f)):F(f)?M(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||U(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const Cu=["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"],Wt=["pre","script","style","textarea"],Eu={concrete:!0,name:"htmlFlow",resolveTo:vu,tokenize:Tu},Iu={partial:!0,tokenize:_u},Au={partial:!0,tokenize:Pu};function vu(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Tu(e,n,t){const r=this;let i,o,l,u,a;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?n:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,u=0,d):Z(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const se="CDATA[";return g===se.charCodeAt(u++)?(e.consume(g),u===se.length?r.interrupt?n:T:d):t(g)}function x(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||U(g)){const se=g===47,Se=l.toLowerCase();return!se&&!o&&Wt.includes(Se)?(i=1,r.interrupt?n(g):T(g)):Cu.includes(l.toLowerCase())?(i=6,se?(e.consume(g),y):r.interrupt?n(g):T(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?A(g):E(g))}return g===45||J(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function y(g){return g===62?(e.consume(g),r.interrupt?n:T):t(g)}function A(g){return F(g)?(e.consume(g),A):k(g)}function E(g){return g===47?(e.consume(g),k):g===58||g===95||Z(g)?(e.consume(g),D):F(g)?(e.consume(g),E):k(g)}function D(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),D):L(g)}function L(g){return g===61?(e.consume(g),w):F(g)?(e.consume(g),L):E(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),a=g,N):F(g)?(e.consume(g),w):q(g)}function N(g){return g===a?(e.consume(g),a=null,j):g===null||P(g)?t(g):(e.consume(g),N)}function q(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?L(g):(e.consume(g),q)}function j(g){return g===47||g===62||F(g)?E(g):t(g)}function k(g){return g===62?(e.consume(g),v):t(g)}function v(g){return g===null||P(g)?T(g):F(g)?(e.consume(g),v):t(g)}function T(g){return g===45&&i===2?(e.consume(g),G):g===60&&i===1?(e.consume(g),X):g===62&&i===4?(e.consume(g),ae):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),me):P(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Iu,ge,$)(g)):g===null||P(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),T)}function $(g){return e.check(Au,W,ge)(g)}function W(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||P(g)?$(g):(e.enter("htmlFlowData"),T(g))}function G(g){return g===45?(e.consume(g),m):T(g)}function X(g){return g===47?(e.consume(g),l="",ue):T(g)}function ue(g){if(g===62){const se=l.toLowerCase();return Wt.includes(se)?(e.consume(g),ae):T(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ue):T(g)}function me(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),m):T(g)}function ae(g){return g===null||P(g)?(e.exit("htmlFlowData"),ge(g)):(e.consume(g),ae)}function ge(g){return e.exit("htmlFlow"),n(g)}}function Pu(e,n,t){const r=this;return i;function i(l){return P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function _u(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,n,t)}}const zu={name:"htmlText",tokenize:Du};function Du(e,n,t){const r=this;let i,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),L):m===63?(e.consume(m),E):Z(m)?(e.consume(m),q):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):Z(m)?(e.consume(m),A):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):P(m)?(l=c,X(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?G(m):m===45?p(m):c(m)}function d(m){const ae="CDATA[";return m===ae.charCodeAt(o++)?(e.consume(m),o===ae.length?x:d):t(m)}function x(m){return m===null?t(m):m===93?(e.consume(m),C):P(m)?(l=x,X(m)):(e.consume(m),x)}function C(m){return m===93?(e.consume(m),y):x(m)}function y(m){return m===62?G(m):m===93?(e.consume(m),y):x(m)}function A(m){return m===null||m===62?G(m):P(m)?(l=A,X(m)):(e.consume(m),A)}function E(m){return m===null?t(m):m===63?(e.consume(m),D):P(m)?(l=E,X(m)):(e.consume(m),E)}function D(m){return m===62?G(m):E(m)}function L(m){return Z(m)?(e.consume(m),w):t(m)}function w(m){return m===45||J(m)?(e.consume(m),w):N(m)}function N(m){return P(m)?(l=N,X(m)):F(m)?(e.consume(m),N):G(m)}function q(m){return m===45||J(m)?(e.consume(m),q):m===47||m===62||U(m)?j(m):t(m)}function j(m){return m===47?(e.consume(m),G):m===58||m===95||Z(m)?(e.consume(m),k):P(m)?(l=j,X(m)):F(m)?(e.consume(m),j):G(m)}function k(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),k):v(m)}function v(m){return m===61?(e.consume(m),T):P(m)?(l=v,X(m)):F(m)?(e.consume(m),v):j(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,$):P(m)?(l=T,X(m)):F(m)?(e.consume(m),T):(e.consume(m),W)}function $(m){return m===i?(e.consume(m),i=void 0,B):m===null?t(m):P(m)?(l=$,X(m)):(e.consume(m),$)}function W(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?j(m):(e.consume(m),W)}function B(m){return m===47||m===62||U(m)?j(m):t(m)}function G(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ue}function ue(m){return F(m)?M(e,me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):me(m)}function me(m){return e.enter("htmlTextData"),l(m)}}const ct={name:"labelEnd",resolveAll:Ou,resolveTo:Mu,tokenize:Nu},Lu={tokenize:Bu},Fu={tokenize:ju},Ru={tokenize:$u};function Ou(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&le(e,0,e.length,t),e}function Mu(e,n){let t=e.length,r=0,i,o,l,u;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,n],["enter",s,n]],u=oe(u,e.slice(o+1,o+r+3)),u=oe(u,[["enter",f,n]]),u=oe(u,yn(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),u=oe(u,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),u=oe(u,e.slice(l+1)),u=oe(u,[["exit",a,n]]),le(e,o,e.length,u),e}function Nu(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(fe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):t(p)}function a(p){return p===40?e.attempt(Lu,f,l?f:c)(p):p===91?e.attempt(Fu,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Ru,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Bu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return U(c)?Ve(e,o)(c):o(c)}function o(c){return c===41?f(c):ti(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return U(c)?Ve(e,a)(c):f(c)}function u(c){return t(c)}function a(c){return c===34||c===39||c===40?ii(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return U(c)?Ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function ju(e,n,t){const r=this;return i;function i(u){return ri.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function l(u){return t(u)}}function $u(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Hu={name:"labelStartImage",resolveAll:ct.resolveAll,tokenize:Uu};function Uu(e,n,t){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):t(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const Vu={name:"labelStartLink",resolveAll:ct.resolveAll,tokenize:qu};function qu(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const An={name:"lineEnding",tokenize:Wu};function Wu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),M(e,n,"linePrefix")}}const un={name:"thematicBreak",tokenize:Yu};function Yu(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||P(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),F(s)?M(e,u,"whitespace")(s):u(s))}}const ne={continuation:{tokenize:Ju},exit:Zu,name:"list",tokenize:Gu},Xu={partial:!0,tokenize:ea},Qu={partial:!0,tokenize:Ku};function Gu(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Un(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(un,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return t(h)}function a(h){return Un(h)&&++l<10?(e.consume(h),a):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ge,r.interrupt?t:f,e.attempt(Xu,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return F(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ju(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,M(e,n,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!F(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Qu,n,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,M(e,e.attempt(ne,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Ku(e,n,t){const r=this;return M(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Zu(e){e.exit(this.containerState.type)}function ea(e,n,t){const r=this;return M(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!F(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Yt={name:"setextUnderline",resolveTo:na,tokenize:ta};function na(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ta(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),F(s)?M(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||P(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const ra={tokenize:ia};function ia(e){const n=this,t=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,M(e,e.attempt(this.parser.constructs.flow,i,e.attempt(su,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const la={resolveAll:oi()},oa=li("string"),ua=li("text");function li(e){return{resolveAll:oi(e==="text"?aa:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,u);return l;function l(f){return s(f)?o(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),a}function a(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function oi(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function aa(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,u=0,a;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(u=0),u){const s={type:t===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const sa={42:ne,43:ne,45:ne,48:ne,49:ne,50:ne,51:ne,52:ne,53:ne,54:ne,55:ne,56:ne,57:ne,62:Kr},ca={91:mu},fa={[-2]:In,[-1]:In,32:In},ha={35:bu,42:un,45:[Yt,un],60:Eu,61:Yt,95:un,96:qt,126:qt},pa={38:ei,92:Zr},ma={[-5]:An,[-4]:An,[-3]:An,33:Hu,38:ei,42:Vn,60:[Vo,zu],91:Vu,92:[ku,Zr],93:ct,95:Vn,96:ru},ga={null:[Vn,la]},da={null:[42,95]},ya={null:[]},ka=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:da,contentInitial:ca,disable:ya,document:sa,flow:ha,flowInitial:fa,insideSpan:ga,string:pa,text:ma},Symbol.toStringTag,{value:"Module"}));function xa(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],u=[];const a={attempt:N(L),check:N(w),consume:A,enter:E,exit:D,interrupt:N(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:x,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,a);return n.resolveAll&&o.push(n),s;function c(v){return l=oe(l,v),C(),l[l.length-1]!==null?[]:(q(n,0),s.events=yn(o,s.events,s),s.events)}function p(v,T){return wa(h(v),T)}function h(v){return ba(l,v)}function d(){const{_bufferIndex:v,_index:T,line:$,column:W,offset:B}=r;return{_bufferIndex:v,_index:T,line:$,column:W,offset:B}}function x(v){i[v.line]=v.column,k()}function C(){let v;for(;r._index<l.length;){const T=l[r._index];if(typeof T=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<T.length;)y(T.charCodeAt(r._bufferIndex));else y(T)}}function y(v){f=f(v)}function A(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,k()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=v}function E(v,T){const $=T||{};return $.type=v,$.start=d(),s.events.push(["enter",$,s]),u.push($),$}function D(v){const T=u.pop();return T.end=d(),s.events.push(["exit",T,s]),T}function L(v,T){q(v,T.from)}function w(v,T){T.restore()}function N(v,T){return $;function $(W,B,G){let X,ue,me,m;return Array.isArray(W)?ge(W):"tokenize"in W?ge([W]):ae(W);function ae(Q){return Ne;function Ne(xe){const Te=xe!==null&&Q[xe],Pe=xe!==null&&Q.null,Ke=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return ge(Ke)(xe)}}function ge(Q){return X=Q,ue=0,Q.length===0?G:g(Q[ue])}function g(Q){return Ne;function Ne(xe){return m=j(),me=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?Se():Q.tokenize.call(T?Object.assign(Object.create(s),T):s,a,se,Se)(xe)}}function se(Q){return v(me,m),B}function Se(Q){return m.restore(),++ue<X.length?g(X[ue]):G}}}function q(v,T){v.resolveAll&&!o.includes(v)&&o.push(v),v.resolve&&le(s.events,T,s.events.length-T,v.resolve(s.events.slice(T),s)),v.resolveTo&&(s.events=v.resolveTo(s.events,s))}function j(){const v=d(),T=s.previous,$=s.currentConstruct,W=s.events.length,B=Array.from(u);return{from:W,restore:G};function G(){r=v,s.previous=T,s.currentConstruct=$,s.events.length=W,u=B,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ba(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function wa(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
19
+ `;break}case-3:{l=`\r
20
+ `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Sa(e){const r={constructs:Gr([ka,...(e||{}).extensions||[]]),content:i(Mo),defined:[],document:i(Bo),flow:i(ra),lazy:{},string:i(oa),text:i(ua)};return r;function i(o){return l;function l(u){return xa(r,o,u)}}}function Ca(e){for(;!ni(e););return e}const Xt=/[\0\t\n\r]/g;function Ea(){let e=1,n="",t=!0,r;return i;function i(o,l,u){const a=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(Xt.lastIndex=c,s=Xt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<p&&(a.push(o.slice(c,p)),e+=p-c),h){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&a.push(-5),n&&a.push(n),a.push(null)),a}}const Ia=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Aa(e){return e.replace(Ia,va)}function va(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Jr(t.slice(o?2:1),o?16:10)}return st(t)||e}const ui={}.hasOwnProperty;function Ta(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Pa(t)(Ca(Sa(t).document().write(Ea()(e,n,!0))))}function Pa(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ct),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(bt),blockQuote:o(Pe),characterEscape:j,characterReference:j,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o($i,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(Hi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Ui),hardBreakEscape:o(wt),hardBreakTrailing:o(wt),htmlFlow:o(St,l),htmlFlowData:j,htmlText:o(St,l),htmlTextData:j,image:o(Vi),label:l,link:o(Ct),listItem:o(qi),listItemValue:p,listOrdered:o(Et,c),listUnordered:o(Et),paragraph:o(Wi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(bt),strong:o(Yi),thematicBreak:o(Qi)},exit:{atxHeading:a(),atxHeadingSequence:L,autolink:a(),autolinkEmail:Te,autolinkProtocol:xe,blockQuote:a(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:Q,characterReference:Ne,codeFenced:a(C),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:a(y),codeText:a(B),codeTextData:k,data:k,definition:a(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:E,emphasis:a(),hardBreakEscape:a(T),hardBreakTrailing:a(T),htmlFlow:a($),htmlFlowData:k,htmlText:a(W),htmlTextData:k,image:a(X),label:me,labelText:ue,lineEnding:v,link:a(G),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:se,resourceDestinationString:m,resourceTitleString:ae,resource:ge,setextHeading:a(q),setextHeadingLineSequence:N,setextHeadingText:w,strong:a(),thematicBreak:a()}};ai(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let I={type:"root",children:[]};const _={stack:[I],tokenStack:[],config:n,enter:u,exit:s,buffer:l,resume:f,data:t},O=[];let H=-1;for(;++H<b.length;)if(b[H][1].type==="listOrdered"||b[H][1].type==="listUnordered")if(b[H][0]==="enter")O.push(H);else{const ce=O.pop();H=i(b,ce,H)}for(H=-1;++H<b.length;){const ce=n[b[H][0]];ui.call(ce,b[H][1].type)&&ce[b[H][1].type].call(Object.assign({sliceSerialize:b[H][2].sliceSerialize},_),b[H][1])}if(_.tokenStack.length>0){const ce=_.tokenStack[_.tokenStack.length-1];(ce[1]||Qt).call(_,void 0,ce[0])}for(I.position={start:be(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:be(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)I=n.transforms[H](I)||I;return I}function i(b,I,_){let O=I-1,H=-1,ce=!1,Ce,de,Be,je;for(;++O<=_;){const re=b[O];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?H++:H--,je=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(Ce&&!je&&!H&&!Be&&(Be=O),je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!H&&re[0]==="enter"&&re[1].type==="listItemPrefix"||H===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(Ce){let _e=O;for(de=void 0;_e--;){const ye=b[_e];if(ye[1].type==="lineEnding"||ye[1].type==="lineEndingBlank"){if(ye[0]==="exit")continue;de&&(b[de][1].type="lineEndingBlank",ce=!0),ye[1].type="lineEnding",de=_e}else if(!(ye[1].type==="linePrefix"||ye[1].type==="blockQuotePrefix"||ye[1].type==="blockQuotePrefixWhitespace"||ye[1].type==="blockQuoteMarker"||ye[1].type==="listItemIndent"))break}Be&&(!de||Be<de)&&(Ce._spread=!0),Ce.end=Object.assign({},de?b[de][1].start:re[1].end),b.splice(de||O,0,["exit",Ce,re[2]]),O++,_++}if(re[1].type==="listItemPrefix"){const _e={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};Ce=_e,b.splice(O,0,["enter",_e,re[2]]),O++,_++,Be=void 0,je=!0}}}return b[I][1]._spread=ce,_}function o(b,I){return _;function _(O){u.call(this,b(O),O),I&&I.call(this,O)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(b,I,_){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([I,_||void 0]),b.position={start:be(I.start),end:void 0}}function a(b){return I;function I(_){b&&b.call(this,_),s.call(this,_)}}function s(b,I){const _=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==b.type&&(I?I.call(this,b,O[0]):(O[1]||Qt).call(this,b,O[0]));else throw new Error("Cannot close `"+b.type+"` ("+Ue({start:b.start,end:b.end})+"): it’s not open");_.position.end=be(b.end)}function f(){return at(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),I=this.stack[this.stack.length-1];I.lang=b}function d(){const b=this.resume(),I=this.stack[this.stack.length-1];I.meta=b}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const I=this.resume(),_=this.stack[this.stack.length-1];_.label=I,_.identifier=fe(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function D(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function L(b){const I=this.stack[this.stack.length-1];if(!I.depth){const _=this.sliceSerialize(b).length;I.depth=_}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(b){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function j(b){const _=this.stack[this.stack.length-1].children;let O=_[_.length-1];(!O||O.type!=="text")&&(O=Xi(),O.position={start:be(b.start),end:void 0},_.push(O)),this.stack.push(O)}function k(b){const I=this.stack.pop();I.value+=this.sliceSerialize(b),I.position.end=be(b.end)}function v(b){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _=I.children[I.children.length-1];_.position.end=be(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(j.call(this,b),k.call(this,b))}function T(){this.data.atHardBreak=!0}function $(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function W(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function B(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function G(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function X(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ue(b){const I=this.sliceSerialize(b),_=this.stack[this.stack.length-2];_.label=Aa(I),_.identifier=fe(I).toLowerCase()}function me(){const b=this.stack[this.stack.length-1],I=this.resume(),_=this.stack[this.stack.length-1];if(this.data.inReference=!0,_.type==="link"){const O=b.children;_.children=O}else _.alt=I}function m(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function ae(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function ge(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function se(b){const I=this.resume(),_=this.stack[this.stack.length-1];_.label=I,_.identifier=fe(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Se(b){this.data.characterReferenceType=b.type}function Q(b){const I=this.sliceSerialize(b),_=this.data.characterReferenceType;let O;_?(O=Jr(I,_==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=st(I);const H=this.stack[this.stack.length-1];H.value+=O}function Ne(b){const I=this.stack.pop();I.position.end=be(b.end)}function xe(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(b)}function Te(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(b)}function Pe(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function $i(){return{type:"inlineCode",value:""}}function Hi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ui(){return{type:"emphasis",children:[]}}function bt(){return{type:"heading",depth:0,children:[]}}function wt(){return{type:"break"}}function St(){return{type:"html",value:""}}function Vi(){return{type:"image",title:null,url:"",alt:null}}function Ct(){return{type:"link",title:null,url:"",children:[]}}function Et(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function qi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Wi(){return{type:"paragraph",children:[]}}function Yi(){return{type:"strong",children:[]}}function Xi(){return{type:"text",value:""}}function Qi(){return{type:"thematicBreak"}}}function be(e){return{line:e.line,column:e.column,offset:e.offset}}function ai(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?ai(e,r):_a(e,r)}}function _a(e,n){let t;for(t in n)if(ui.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Qt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ue({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ue({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ue({start:n.start,end:n.end})+") is still open")}function za(e){const n=this;n.parser=t;function t(r){return Ta(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Da(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function La(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
21
+ `}]}function Fa(e,n){const t=n.value?n.value+`
22
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Ra(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Oa(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ma(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Me(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function Na(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ba(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function si(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function ja(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return si(e,n);const i={src:Me(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function $a(e,n){const t={src:Me(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ua(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return si(e,n);const i={href:Me(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Va(e,n){const t={href:Me(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function qa(e,n,t){const r=e.all(n),i=t?Wa(t):ci(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
23
+ `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
24
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function Wa(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ci(t[r])}return n}function ci(e){const n=e.spread;return n??e.children.length>1}function Ya(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Xa(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Qa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ga(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ja(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=it(n.children[1]),a=Ur(n.children[n.children.length-1]);u&&a&&(l.position={start:u,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Ka(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,u=l?l.length:n.children.length;let a=-1;const s=[];for(;++a<u;){const c=n.children[a],p={},h=l?l[a]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Za(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Gt=9,Jt=32;function es(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Kt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Kt(n.slice(i),i>0,!1)),o.join("")}function Kt(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===Gt||o===Jt;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===Gt||o===Jt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ns(e,n){const t={type:"text",value:es(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ts(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const rs={blockquote:Da,break:La,code:Fa,delete:Ra,emphasis:Oa,footnoteReference:Ma,heading:Na,html:Ba,imageReference:ja,image:$a,inlineCode:Ha,linkReference:Ua,link:Va,listItem:qa,list:Ya,paragraph:Xa,root:Qa,strong:Ga,table:Ja,tableCell:Za,tableRow:Ka,text:ns,thematicBreak:ts,toml:en,yaml:en,definition:en,footnoteDefinition:en};function en(){}const fi=-1,kn=0,qe=1,fn=2,ft=3,ht=4,pt=5,mt=6,hi=7,pi=8,is=typeof self=="object"?self:globalThis,Zt=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new is[e](n)},ls=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case kn:case fi:return t(l,i);case qe:{const u=t([],i);for(const a of l)u.push(r(a));return u}case fn:{const u=t({},i);for(const[a,s]of l)u[r(a)]=r(s);return u}case ft:return t(new Date(l),i);case ht:{const{source:u,flags:a}=l;return t(new RegExp(u,a),i)}case pt:{const u=t(new Map,i);for(const[a,s]of l)u.set(r(a),r(s));return u}case mt:{const u=t(new Set,i);for(const a of l)u.add(r(a));return u}case hi:{const{name:u,message:a}=l;return t(Zt(u,a),i)}case pi:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return t(new DataView(u),l)}}return t(Zt(o,l),i)};return r},er=e=>ls(new Map,e)(0),ze="",{toString:os}={},{keys:us}=Object,He=e=>{const n=typeof e;if(n!=="object"||!e)return[kn,n];const t=os.call(e).slice(8,-1);switch(t){case"Array":return[qe,ze];case"Object":return[fn,ze];case"Date":return[ft,ze];case"RegExp":return[ht,ze];case"Map":return[pt,ze];case"Set":return[mt,ze];case"DataView":return[qe,t]}return t.includes("Array")?[qe,t]:t.includes("Error")?[hi,t]:[fn,t]},nn=([e,n])=>e===kn&&(n==="function"||n==="symbol"),as=(e,n,t,r)=>{const i=(l,u)=>{const a=r.push(l)-1;return t.set(u,a),a},o=l=>{if(t.has(l))return t.get(l);let[u,a]=He(l);switch(u){case kn:{let f=l;switch(a){case"bigint":u=pi,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([fi],l)}return i([u,f],l)}case qe:{if(a){let p=l;return a==="DataView"?p=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(l)),i([a,[...p]],l)}const f=[],c=i([u,f],l);for(const p of l)f.push(o(p));return c}case fn:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([u,f],l);for(const p of us(l))(e||!nn(He(l[p])))&&f.push([o(p),o(l[p])]);return c}case ft:return i([u,l.toISOString()],l);case ht:{const{source:f,flags:c}=l;return i([u,{source:f,flags:c}],l)}case pt:{const f=[],c=i([u,f],l);for(const[p,h]of l)(e||!(nn(He(p))||nn(He(h))))&&f.push([o(p),o(h)]);return c}case mt:{const f=[],c=i([u,f],l);for(const p of l)(e||!nn(He(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([u,{name:a,message:s}],l)};return o},nr=(e,{json:n,lossy:t}={})=>{const r=[];return as(!(n||t),!!n,new Map,r)(e),r},hn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?er(nr(e,n)):structuredClone(e):(e,n)=>er(nr(e,n));function ss(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function cs(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function fs(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||ss,r=e.options.footnoteBackLabel||cs,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Me(c.toLowerCase());let h=0;const d=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++h<=x;){d.length>0&&d.push({type:"text",value:" "});let A=typeof t=="string"?t:t(a,h);typeof A=="string"&&(A={type:"text",value:A}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...d)}else f.push(...d);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...hn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
25
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
26
+ `}]}}const xn=function(e){if(e==null)return gs;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?hs(e):ps(e);if(typeof e=="string")return ms(e);throw new Error("Expected function, string, or object as test")};function hs(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=xn(e[t]);return bn(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function ps(e){const n=e;return bn(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function ms(e){return bn(n);function n(t){return t&&t.type===e}}function bn(e){return n;function n(t,r,i){return!!(ds(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function gs(){return!0}function ds(e){return e!==null&&typeof e=="object"&&"type"in e}const mi=[],ys=!0,qn=!1,ks="skip";function gi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=xn(i),l=r?-1:1;u(e,void 0,[])();function u(a,s,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=mi,d,x,C;if((!n||o(a,s,f[f.length-1]||void 0))&&(h=xs(t(a,f)),h[0]===qn))return h;if("children"in a&&a.children){const y=a;if(y.children&&h[0]!==ks)for(x=(r?y.children.length:-1)+l,C=f.concat(y);x>-1&&x<y.children.length;){const A=y.children[x];if(d=u(A,x,C)(),d[0]===qn)return d;x=typeof d[1]=="number"?d[1]:x+l}}return h}}}function xs(e){return Array.isArray(e)?e:typeof e=="number"?[ys,e]:e==null?mi:[e]}function gt(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),gi(e,o,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return l(a,c,f)}}const Wn={}.hasOwnProperty,bs={};function ws(e,n){const t=n||bs,r=new Map,i=new Map,o=new Map,l={...rs,...t.handlers},u={all:s,applyData:Cs,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:t,patch:Ss,wrap:Is};return gt(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function a(f,c){const p=f.type,h=u.handlers[p];if(Wn.call(u.handlers,p)&&h)return h(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:x,...C}=f,y=hn(C);return y.children=u.all(f),y}return hn(f)}return(u.options.unknownHandler||Es)(u,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=u.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=tr(d.value)),!Array.isArray(d)&&d.type==="element")){const x=d.children[0];x&&x.type==="text"&&(x.value=tr(x.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function Ss(e,n){e.position&&(n.position=ao(e))}function Cs(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,hn(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Es(e,n){const t=n.data||{},r="value"in n&&!(Wn.call(t,"hProperties")||Wn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Is(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
27
+ `});++r<e.length;)r&&t.push({type:"text",value:`
28
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
29
+ `}),t}function tr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function rr(e,n){const t=ws(e,n),r=t.one(e,void 0),i=fs(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
30
+ `},i),o}function As(e,n){return e&&"run"in e?async function(t,r){const i=rr(t,{file:r,...n});await e.run(i,r)}:function(t,r){return rr(t,{file:r,...e||n})}}function ir(e){if(e)throw e}var an=Object.prototype.hasOwnProperty,di=Object.prototype.toString,lr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ur=function(n){return typeof Array.isArray=="function"?Array.isArray(n):di.call(n)==="[object Array]"},ar=function(n){if(!n||di.call(n)!=="[object Object]")return!1;var t=an.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&an.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||an.call(n,i)},sr=function(n,t){lr&&t.name==="__proto__"?lr(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},cr=function(n,t){if(t==="__proto__")if(an.call(n,t)){if(or)return or(n,t).value}else return;return n[t]},vs=function e(){var n,t,r,i,o,l,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(n=arguments[a],n!=null)for(t in n)r=cr(u,t),i=cr(n,t),u!==i&&(f&&i&&(ar(i)||(o=ur(i)))?(o?(o=!1,l=r&&ur(r)?r:[]):l=r&&ar(r)?r:{},sr(u,{name:t,newValue:e(f,l,i)})):typeof i<"u"&&sr(u,{name:t,newValue:i}));return u};const vn=Gn(vs);function Yn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ts(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(a,...s){const f=e[++o];let c=-1;if(a){l(a);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Ps(f,u)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ps(e,n){let t;return r;function r(...l){const u=e.length>l.length;let a;u&&l.push(i);try{a=e.apply(this,l)}catch(s){const f=s;if(u&&t)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...u){t||(t=!0,n(l,...u))}function o(l){i(null,l)}}const he={basename:_s,dirname:zs,extname:Ds,join:Ls,sep:"/"};function _s(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Je(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function zs(e){if(Je(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ds(e){Je(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const u=e.codePointAt(n);if(u===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),u===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ls(...e){let n=-1,t;for(;++n<e.length;)Je(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Fs(t)}function Fs(e){Je(e);const n=e.codePointAt(0)===47;let t=Rs(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Rs(e,n){let t="",r=0,i=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return t}function Je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Os={cwd:Ms};function Ms(){return"/"}function Xn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ns(e){if(typeof e=="string")e=new URL(e);else if(!Xn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Bs(e)}function Bs(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Tn=["history","path","basename","stem","extname","dirname"];class yi{constructor(n){let t;n?Xn(n)?t={path:n}:typeof n=="string"||js(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Os.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tn.length;){const o=Tn[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Tn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?he.basename(this.path):void 0}set basename(n){_n(n,"basename"),Pn(n,"basename"),this.path=he.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?he.dirname(this.path):void 0}set dirname(n){fr(this.basename,"dirname"),this.path=he.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?he.extname(this.path):void 0}set extname(n){if(Pn(n,"extname"),fr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=he.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Xn(n)&&(n=Ns(n)),_n(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?he.basename(this.path,this.extname):void 0}set stem(n){_n(n,"stem"),Pn(n,"stem"),this.path=he.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new K(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Pn(e,n){if(e&&e.includes(he.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+he.sep+"`")}function _n(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function fr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function js(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $s=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Hs={}.hasOwnProperty;class dt extends $s{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ts()}copy(){const n=new dt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(vn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Ln("data",this.frozen),this.namespace[n]=t,this):Hs.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Ln("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=tn(n),r=this.parser||this.Parser;return zn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),zn("process",this.parser||this.Parser),Dn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const u=tn(n),a=r.parse(u);r.run(a,u,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);qs(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),zn("processSync",this.parser||this.Parser),Dn("processSync",this.compiler||this.Compiler),this.process(n,i),pr("processSync","process",t),r;function i(o,l){t=!0,ir(o),r=l}}run(n,t,r){hr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const a=tn(t);i.run(n,a,s);function s(f,c,p){const h=c||n;f?u(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),pr("runSync","run",r),i;function o(l,u){ir(l),i=u,r=!0}}stringify(n,t){this.freeze();const r=tn(t),i=this.compiler||this.Compiler;return Dn("stringify",i),hr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Ln("use",this.frozen),n!=null)if(typeof n=="function")a(n,t);else if(typeof n=="object")Array.isArray(n)?u(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;a(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(s.plugins),s.settings&&(i.settings=vn(!0,i.settings,s.settings))}function u(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const x=r[p][1];Yn(x)&&Yn(h)&&(h=vn(!0,x,h)),r[p]=[s,h,...d]}}}}const Us=new dt().freeze();function zn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ln(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hr(e){if(!Yn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function pr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function tn(e){return Vs(e)?e:new yi(e)}function Vs(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qs(e){return typeof e=="string"||Ws(e)}function Ws(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ys="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mr=[],gr={allowDangerousHtml:!0},Xs=/^(https?|ircs?|mailto|xmpp)$/i,Qs=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ch(e){const n=Gs(e),t=Js(e);return Ks(n.runSync(n.parse(t),t),e)}function Gs(e){const n=e.rehypePlugins||mr,t=e.remarkPlugins||mr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gr}:gr;return Us().use(za).use(t).use(As,r).use(n)}function Js(e){const n=e.children||"",t=new yi;return typeof n=="string"&&(t.value=n),t}function Ks(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||Zs;for(const f of Qs)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Ys+f.id,void 0);return gt(e,s),po(e,{Fragment:Sn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Sn.jsx,jsxs:Sn.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in En)if(Object.hasOwn(En,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],x=En[h];(x===null||x.includes(f.tagName))&&(f.properties[h]=a(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Zs(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Xs.test(e.slice(0,n))?e:""}function dr(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function ec(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function nc(e,n,t){const i=xn((t||{}).ignore||[]),o=tc(n);let l=-1;for(;++l<o.length;)gi(e,"text",u);function u(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return a(s,f)}function a(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const C=c.children.indexOf(s);let y=!1,A=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const D=E.index,L={index:E.index,input:E.input,stack:[...f,s]};let w=h(...E,L);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=D+1:(d!==D&&A.push({type:"text",value:s.value.slice(d,D)}),Array.isArray(w)?A.push(...w):w&&A.push(w),d=D+E[0].length,y=!0),!p.global)break;E=p.exec(s.value)}return y?(d<s.value.length&&A.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...A)):A=[s],C+A.length}}function tc(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([rc(i[0]),ic(i[1])])}return n}function rc(e){return typeof e=="string"?new RegExp(ec(e),"g"):e}function ic(e){return typeof e=="function"?e:function(){return e}}const Fn="phrasing",Rn=["autolink","link","image","label"];function lc(){return{transforms:[hc],enter:{literalAutolink:uc,literalAutolinkEmail:On,literalAutolinkHttp:On,literalAutolinkWww:On},exit:{literalAutolink:fc,literalAutolinkEmail:cc,literalAutolinkHttp:ac,literalAutolinkWww:sc}}}function oc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fn,notInConstruct:Rn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fn,notInConstruct:Rn},{character:":",before:"[ps]",after:"\\/",inConstruct:Fn,notInConstruct:Rn}]}}function uc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function On(e){this.config.enter.autolinkProtocol.call(this,e)}function ac(e){this.config.exit.autolinkProtocol.call(this,e)}function sc(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function cc(e){this.config.exit.autolinkEmail.call(this,e)}function fc(e){this.exit(e)}function hc(e){nc(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pc],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),mc]],{ignore:["link","linkReference"]})}function pc(e,n,t,r,i){let o="";if(!ki(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!gc(t)))return!1;const l=dc(t+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function mc(e,n,t,r){return!ki(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function gc(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function dc(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=dr(e,"(");let o=dr(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function ki(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ae(t)||dn(t))&&(!n||t!==47)}xi.peek=Ic;function yc(){this.buffer()}function kc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xc(){this.buffer()}function bc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wc(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=fe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Sc(e){this.exit(e)}function Cc(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=fe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ec(e){this.exit(e)}function Ic(){return"["}function xi(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),u=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function Ac(){return{enter:{gfmFootnoteCallString:yc,gfmFootnoteCall:kc,gfmFootnoteDefinitionLabelString:xc,gfmFootnoteDefinition:bc},exit:{gfmFootnoteCallString:wc,gfmFootnoteCall:Sc,gfmFootnoteDefinitionLabelString:Cc,gfmFootnoteDefinition:Ec}}}function vc(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:xi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const u=o.createTracker(l);let a=u.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return a+=u.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?`
31
+ `:" ")+o.indentLines(o.containerFlow(r,u.current()),n?bi:Tc))),s(),a}}function Tc(e,n,t){return n===0?e:bi(e,n,t)}function bi(e,n,t){return(t?"":" ")+e}const Pc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wi.peek=Fc;function _c(){return{canContainEols:["delete"],enter:{strikethrough:Dc},exit:{strikethrough:Lc}}}function zc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pc}],handlers:{delete:wi}}}function Dc(e){this.enter({type:"delete",children:[]},e)}function Lc(e){this.exit(e)}function wi(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Fc(){return"~"}function Rc(e){return e.length}function Oc(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Rc,o=[],l=[],u=[],a=[];let s=0,f=-1;for(;++f<e.length;){const x=[],C=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const A=Mc(e[f][y]);if(t.alignDelimiters!==!1){const E=i(A);C[y]=E,(a[y]===void 0||E>a[y])&&(a[y]=E)}x.push(A)}l[f]=x,u[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=yr(r[c]);else{const x=yr(r);for(;++c<s;)o[c]=x}c=-1;const p=[],h=[];for(;++c<s;){const x=o[c];let C="",y="";x===99?(C=":",y=":"):x===108?C=":":x===114&&(y=":");let A=t.alignDelimiters===!1?1:Math.max(1,a[c]-C.length-y.length);const E=C+"-".repeat(A)+y;t.alignDelimiters!==!1&&(A=C.length+A+y.length,A>a[c]&&(a[c]=A),h[c]=A),p[c]=E}l.splice(1,0,p),u.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const x=l[f],C=u[f];c=-1;const y=[];for(;++c<s;){const A=x[c]||"";let E="",D="";if(t.alignDelimiters!==!1){const L=a[c]-(C[c]||0),w=o[c];w===114?E=" ".repeat(L):w===99?L%2?(E=" ".repeat(L/2+.5),D=" ".repeat(L/2-.5)):(E=" ".repeat(L/2),D=E):D=" ".repeat(L)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&A==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(E),y.push(A),t.alignDelimiters!==!1&&y.push(D),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&y.push("|")}d.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return d.join(`
32
+ `)}function Mc(e){return e==null?"":String(e)}function yr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const kr={}.hasOwnProperty;function fh(e,n){const t=n||{};function r(i,...o){let l=r.invalid;const u=r.handlers;if(i&&kr.call(i,e)){const a=String(i[e]);l=kr.call(u,a)?u[a]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}function Nc(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Bc);return i(),l}function Bc(e,n,t){return">"+(t?"":" ")+e}function jc(e,n){return xr(e,n.inConstruct,!0)&&!xr(e,n.notInConstruct,!1)}function xr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function br(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
33
+ `&&jc(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
34
+ `}function $c(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Hc(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Uc(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Vc(e,n,t,r){const i=Uc(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Hc(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,qc);return c(),p}const u=t.createTracker(r),a=i.repeat(Math.max($c(o,i)+1,3)),s=t.enter("codeFenced");let f=u.move(a);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:`
35
+ `,encode:["`"],...u.current()})),c()}return f+=u.move(`
36
+ `),o&&(f+=u.move(o+`
37
+ `)),f+=u.move(a),s(),f}function qc(e,n,t){return(t?"":" ")+e}function yt(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Wc(e,n,t,r){const i=yt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("[");return s+=a.move(t.safe(t.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":`
38
+ `,...a.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),l(),s}function Yc(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Ye(e){return"&#x"+e.toString(16).toUpperCase()+";"}function pn(e,n,t){const r=Fe(e),i=Fe(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Si.peek=Xc;function Si(e,n,t,r){const i=Yc(t),o=t.enter("emphasis"),l=t.createTracker(r),u=l.move(i);let a=l.move(t.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=pn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Ye(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=pn(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+Ye(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function Xc(e,n,t){return t.options.emphasis||"*"}function Qc(e,n){let t=!1;return gt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,qn}),!!((!e.depth||e.depth<3)&&at(e)&&(n.options.setext||t))}function Gc(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(Qc(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
39
+ `,after:`
40
+ `});return c(),f(),p+`
41
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
42
+ `))+1))}const l="#".repeat(i),u=t.enter("headingAtx"),a=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
43
+ `,...o.current()});return/^[\t ]/.test(s)&&(s=Ye(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),a(),u(),s}Ci.peek=Jc;function Ci(e){return e.value||""}function Jc(){return"<"}Ei.peek=Kc;function Ei(e,n,t,r){const i=yt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("![");return s+=a.move(t.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function Kc(){return"!"}Ii.peek=Zc;function Ii(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const u=t.createTracker(r);let a=u.move("![");const s=t.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Zc(){return"!"}Ai.peek=ef;function Ai(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],u=t.compilePattern(l);let a;if(l.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function ef(){return"`"}function vi(e,n){const t=at(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ti.peek=nf;function Ti(e,n,t,r){const i=yt(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let u,a;if(vi(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),u(),t.stack=f,c}u=t.enter("link"),a=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function nf(e,n,t){return vi(e,t)?"<":"["}Pi.peek=tf;function Pi(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const u=t.createTracker(r);let a=u.move("[");const s=t.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function tf(){return"["}function kt(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function rf(e){const n=kt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function lf(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function _i(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function of(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?lf(t):kt(t);const u=e.ordered?l==="."?")":".":rf(t);let a=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(a=!0),_i(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function uf(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function af(e,n,t,r){const i=uf(t);let o=t.bulletCurrent||kt(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=t.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),f);return a(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function sf(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const cf=xn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ff(e,n,t,r){return(e.children.some(function(l){return cf(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function hf(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}zi.peek=pf;function zi(e,n,t,r){const i=hf(t),o=t.enter("strong"),l=t.createTracker(r),u=l.move(i+i);let a=l.move(t.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=pn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Ye(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=pn(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+Ye(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function pf(e,n,t){return t.options.strong||"*"}function mf(e,n,t,r){return t.safe(e.value,r)}function gf(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function df(e,n,t){const r=(_i(t)+(t.options.ruleSpaces?" ":"")).repeat(gf(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Di={blockquote:Nc,break:br,code:Vc,definition:Wc,emphasis:Si,hardBreak:br,heading:Gc,html:Ci,image:Ei,imageReference:Ii,inlineCode:Ai,link:Ti,linkReference:Pi,list:of,listItem:af,paragraph:sf,root:ff,strong:zi,text:mf,thematicBreak:df};function yf(){return{enter:{table:kf,tableData:wr,tableHeader:wr,tableRow:bf},exit:{codeText:wf,table:xf,tableData:Mn,tableHeader:Mn,tableRow:Mn}}}function kf(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function xf(e){this.exit(e),this.data.inTable=void 0}function bf(e){this.enter({type:"tableRow",children:[]},e)}function Mn(e){this.exit(e)}function wr(e){this.enter({type:"tableCell",children:[]},e)}function wf(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Sf));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Sf(e,n){return n==="|"?n:e}function Cf(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
44
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:a,tableRow:u}};function l(h,d,x,C){return s(f(h,x,C),h.align)}function u(h,d,x,C){const y=c(h,x,C),A=s([y]);return A.slice(0,A.indexOf(`
45
+ `))}function a(h,d,x,C){const y=x.enter("tableCell"),A=x.enter("phrasing"),E=x.containerPhrasing(h,{...C,before:o,after:o});return A(),y(),E}function s(h,d){return Oc(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,x){const C=h.children;let y=-1;const A=[],E=d.enter("table");for(;++y<C.length;)A[y]=c(C[y],d,x);return E(),A}function c(h,d,x){const C=h.children;let y=-1;const A=[],E=d.enter("tableRow");for(;++y<C.length;)A[y]=a(C[y],h,d,x);return E(),A}function p(h,d,x){let C=Di.inlineCode(h,d,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Ef(){return{exit:{taskListCheckValueChecked:Sr,taskListCheckValueUnchecked:Sr,paragraph:Af}}}function If(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vf}}}function Sr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Af(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function vf(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);o&&u.move(l);let a=Di.listItem(e,n,t,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+l}}function Tf(){return[lc(),Ac(),_c(),yf(),Ef()]}function Pf(e){return{extensions:[oc(),vc(e),zc(),Cf(e),If()]}}const _f={tokenize:Of,partial:!0},Li={tokenize:Mf,partial:!0},Fi={tokenize:Nf,partial:!0},Ri={tokenize:Bf,partial:!0},zf={tokenize:jf,partial:!0},Oi={name:"wwwAutolink",tokenize:Ff,previous:Ni},Mi={name:"protocolAutolink",tokenize:Rf,previous:Bi},ke={name:"emailAutolink",tokenize:Lf,previous:ji},pe={};function Df(){return{text:pe}}let Ee=48;for(;Ee<123;)pe[Ee]=ke,Ee++,Ee===58?Ee=65:Ee===91&&(Ee=97);pe[43]=ke;pe[45]=ke;pe[46]=ke;pe[95]=ke;pe[72]=[ke,Mi];pe[104]=[ke,Mi];pe[87]=[ke,Oi];pe[119]=[ke,Oi];function Lf(e,n,t){const r=this;let i,o;return l;function l(c){return!Qn(c)||!ji.call(r,r.previous)||xt(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Qn(c)?(e.consume(c),u):c===64?(e.consume(c),a):t(c)}function a(c){return c===46?e.check(zf,f,s)(c):c===45||c===95||J(c)?(o=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return o&&i&&Z(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Ff(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Ni.call(r,r.previous)||xt(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_f,e.attempt(Li,e.attempt(Fi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Rf(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Bi.call(r,r.previous)&&!xt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):t(c)}function u(c){if(Z(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),a}return t(c)}function a(c){return c===47?(e.consume(c),o?s:(o=!0,a)):t(c)}function s(c){return c===null||cn(c)||U(c)||Ae(c)||dn(c)?t(c):e.attempt(Li,e.attempt(Fi,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Of(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Mf(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Ri,a,u)(s):s===null||U(s)||Ae(s)||s!==45&&dn(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?t(s):n(s)}}function Nf(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Ri,n,o)(l):l===null||U(l)||Ae(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Bf(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||U(u)||Ae(u)?n(u):t(u)}function i(u){return u===null||u===40||u===91||U(u)||Ae(u)?n(u):r(u)}function o(u){return Z(u)?l(u):t(u)}function l(u){return u===59?(e.consume(u),r):Z(u)?(e.consume(u),l):t(u)}}function jf(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return J(o)?t(o):n(o)}}function Ni(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||U(e)}function Bi(e){return!Z(e)}function ji(e){return!(e===47||Qn(e))}function Qn(e){return e===43||e===45||e===46||e===95||J(e)}function xt(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const $f={tokenize:Qf,partial:!0};function Hf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Wf,continuation:{tokenize:Yf},exit:Xf}},text:{91:{name:"gfmFootnoteCall",tokenize:qf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Uf,resolveTo:Vf}}}}function Uf(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return t(a);const s=fe(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function Vf(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function qf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||U(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(fe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return U(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Wf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||U(d))return t(d);if(d===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=fe(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return U(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),M(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function Yf(e,n,t){return e.check(Ge,n,e.attempt($f,n,t))}function Xf(e){e.exit("gfmFootnoteDefinition")}function Qf(e,n,t){const r=this;return M(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Gf(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},p=[["enter",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",c,u]],h=u.parser.constructs.insideSpan.null;h&&le(p,p.length,0,yn(h,l.slice(s+1,a),u)),le(p,p.length,0,[["exit",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",f,u]]),le(l,s-1,a-s+3,p),a=s+p.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const x=Fe(s);if(d===126)return c>1?a(d):(l.consume(d),c++,h);if(c<2&&!t)return a(d);const C=l.exit("strikethroughSequenceTemporary"),y=Fe(d);return C._open=!y||y===2&&!!x,C._close=!x||x===2&&!!y,u(d)}}}class Jf{constructor(){this.map=[]}add(n,t,r){Kf(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Kf(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Zf(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function eh(){return{flow:{null:{name:"table",tokenize:nh,resolveAll:th}}}}function nh(e,n,t){const r=this;let i=0,o=0,l;return u;function u(k){let v=r.events.length-1;for(;v>-1;){const W=r.events[v][1].type;if(W==="lineEnding"||W==="linePrefix")v--;else break}const T=v>-1?r.events[v][1].type:null,$=T==="tableHead"||T==="tableRow"?w:a;return $===w&&r.parser.lazy[r.now().line]?t(k):$(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):P(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):F(k)?M(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||U(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,F(k)?M(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),x):L(k)}function x(k){return F(k)?M(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(o+=1,y(k)):k===null||P(k)?D(k):L(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),A(k)):L(k)}function A(k){return k===45?(e.consume(k),A):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(k))}function E(k){return F(k)?M(e,D,"whitespace")(k):D(k)}function D(k){return k===124?d(k):k===null||P(k)?!l||i!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):L(k)}function L(k){return t(k)}function w(k){return e.enter("tableRow"),N(k)}function N(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),N):k===null||P(k)?(e.exit("tableRow"),n(k)):F(k)?M(e,N,"whitespace")(k):(e.enter("data"),q(k))}function q(k){return k===null||k===124||U(k)?(e.exit("data"),N(k)):(e.consume(k),k===92?j:q)}function j(k){return k===92||k===124?(e.consume(k),q):q(k)}}function th(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,f,c;const p=new Jf;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(u=!1,a!==0&&(Cr(p,n,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=rn(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=rn(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):d.type==="tableHead"?(u=!0,a=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=t,o[1]!==0?(l[0]=l[1],c=rn(p,n,o,i,t,c)):l[1]!==0&&(c=rn(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(a!==0&&Cr(p,n,a,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Zf(n.events,t))}return e}function rn(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(o.end=Object.assign({},De(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const a=De(n.events,t[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=De(n.events,t[2]),f=De(n.events,t[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,x=t[3]-t[2]-1;e.add(d,x,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},De(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Cr(e,n,t,r,i){const o=[],l=De(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function De(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const rh={name:"tasklistCheck",tokenize:lh};function ih(){return{text:{91:rh}}}function lh(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return U(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):t(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return P(a)?n(a):F(a)?e.check({tokenize:oh},n,t)(a):t(a)}}function oh(e,n,t){return M(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function uh(e){return Gr([Df(),Hf(),Gf(e),eh(),ih()])}const ah={};function hh(e){const n=this,t=e||ah,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(uh(t)),o.push(Tf()),l.push(Pf(t))}export{ch as M,sh as R,hh as a,Ll as b,dr as c,tt as d,Pl as f,Dl as h,Sn as j,Fr as r,yl as s,Sl as w,fh as z};