tia-gpc-widget 3.0.1 β†’ 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),A=require("react"),ce=require("react-i18next"),ie=require("lucide-react"),Ie=require("react-hot-toast"),Li=require("axios"),gt=require("i18next"),Pi=require("i18next-browser-languagedetector"),ot="3.0.1",ji=30,dr=ji*24*60*60*1e3,Pe={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},zi=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const Mi=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=ce.useTranslation(),i=n?.widget_customization?.branding?.company_name||r("widget.title"),o=a=>{a.preventDefault(),a.stopPropagation(),e()};return d.jsxs("button",{type:"button",onClick:o,className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[d.jsxs("div",{className:"gpc-floating-content",children:[d.jsx(ie.MessageCircle,{className:"gpc-floating-icon"}),d.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",i]})]}),t>0&&d.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},Ri=()=>{const{i18n:e,t}=ce.useTranslation(),n=[{code:"en",label:t("languages.english"),flag:"πŸ‡¬πŸ‡§"},{code:"es",label:t("languages.spanish"),flag:"πŸ‡ͺπŸ‡Έ"},{code:"fr",label:t("languages.french"),flag:"πŸ‡«πŸ‡·"}],[r,i]=A.useState(!1),o=A.useRef(null),a=n.find(l=>l.code===e.language)||n[0],s=(l,u)=>{l.preventDefault(),l.stopPropagation(),e.changeLanguage(u),i(!1)};return A.useEffect(()=>{const l=u=>{o.current&&!o.current.contains(u.target)&&i(!1)};return r&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[r]),d.jsxs("div",{className:"gpc-language-selector",ref:o,children:[d.jsx("button",{type:"button",onClick:l=>{l.preventDefault(),l.stopPropagation(),i(!r)},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":t("ui.languageSelector.label"),title:t("ui.languageSelector.label"),children:d.jsx(ie.Globe,{className:"gpc-icon"})}),r&&d.jsx("div",{className:"gpc-language-dropdown",children:n.map(l=>d.jsxs("button",{type:"button",onClick:u=>s(u,l.code),className:`gpc-language-option ${l.code===a.code?"gpc-language-option-active":""}`,children:[d.jsx("span",{className:"gpc-language-flag",children:l.flag}),d.jsx("span",{className:"gpc-language-label",children:l.label})]},l.code))})]})},Oi=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:i=null,onToggleConversations:o,showConversations:a=!1,conversationsCount:s=0,onToggleAbout:l,showAbout:u=!1,version:h=ot,onToggleMcpLogin:c,showMcpLogin:f=!1,mcpLoggedIn:p=!1})=>{const{t:m}=ce.useTranslation(),[k,v]=A.useState(!1),b=A.useRef(null);A.useEffect(()=>{const C=z=>{b.current&&!b.current.contains(z.target)&&v(!1)};return k&&document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[k]);const E=i?.widget_customization?.branding?.company_name||m("widget.title"),T=i?.widget_customization?.branding?.custom_title,M=i?.widget_customization?.branding?.company_logo_base64,D=T||E,w=M?.startsWith("data:")?M:M?`data:image/png;base64,${M}`:null,R=i?.widget_customization?.colors?.header_background,_=i?.widget_customization?.colors?.header_text,F={};R&&(F.backgroundColor=R),_&&(F.color=_);const x=(C,z)=>{C.preventDefault(),C.stopPropagation(),v(!1),z()};return d.jsxs("div",{className:"gpc-chat-header",style:F,children:[d.jsxs("div",{className:"gpc-header-content",children:[w&&d.jsx("div",{className:"gpc-header-logo",children:d.jsx("img",{src:w,alt:E,className:"gpc-company-logo"})}),d.jsx("div",{className:"gpc-header-text",children:d.jsx("h2",{className:"gpc-header-title",style:_?{color:_}:{},children:D})})]}),d.jsxs("div",{className:"gpc-header-actions",children:[o&&d.jsxs("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),o()},className:`gpc-header-button gpc-focus-visible gpc-transition relative ${a?"bg-blue-500 text-white":""}`,"aria-label":m("conversations.toggle","Toggle conversations"),title:m("conversations.toggle","Toggle conversations"),children:[d.jsx(ie.MessageSquare,{className:"gpc-icon",size:20}),s>0&&d.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-4 h-4 flex items-center justify-center",children:s>9?"9+":s})]}),d.jsx(Ri,{}),d.jsxs("div",{className:"gpc-header-menu",ref:b,children:[d.jsx("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),v(z=>!z)},className:`gpc-header-button gpc-focus-visible gpc-transition ${k?"bg-blue-500 text-white":""}`,"aria-label":m("ui.menu"),title:m("ui.menu"),children:d.jsx(ie.MoreVertical,{className:"gpc-icon",size:20})}),k&&d.jsxs("div",{className:"gpc-header-dropdown",children:[d.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:C=>x(C,n),children:[t==="light"?d.jsx(ie.Moon,{size:16,className:"gpc-header-dropdown-icon"}):d.jsx(ie.Sun,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m("theme.toggle")})]}),l&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"gpc-header-dropdown-divider"}),d.jsxs("button",{type:"button",className:`gpc-header-dropdown-item ${u?"gpc-header-dropdown-item-active":""}`,onClick:C=>x(C,l),children:[d.jsx(ie.Info,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m("about.title")})]})]}),c&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"gpc-header-dropdown-divider"}),d.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:C=>x(C,c),children:[p?d.jsx(ie.LogOut,{size:16,className:"gpc-header-dropdown-icon"}):d.jsx(ie.LogIn,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m(p?"moodle.logout":"moodle.login")})]})]})]})]}),d.jsx("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":m("chat.close"),title:m("chat.close"),children:d.jsx(ie.ChevronDown,{className:"gpc-icon"})})]})]})};function Fi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const _i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi={};function Sn(e,t){return(Hi.jsx?Bi:_i).test(e)}const Ui=/[ \t\n\f\r]/g;function qi(e){return typeof e=="object"?e.type==="text"?En(e.value):!1:En(e)}function En(e){return e.replace(Ui,"")===""}class at{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}at.prototype.normal={};at.prototype.property={};at.prototype.space=void 0;function mr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new at(n,r,t)}function Vt(e){return e.toLowerCase()}class me{constructor(t,n){this.attribute=n,this.property=t}}me.prototype.attribute="";me.prototype.booleanish=!1;me.prototype.boolean=!1;me.prototype.commaOrSpaceSeparated=!1;me.prototype.commaSeparated=!1;me.prototype.defined=!1;me.prototype.mustUseProperty=!1;me.prototype.number=!1;me.prototype.overloadedBoolean=!1;me.prototype.property="";me.prototype.spaceSeparated=!1;me.prototype.space=void 0;let Wi=0;const q=Fe(),ae=Fe(),Gt=Fe(),I=Fe(),te=Fe(),We=Fe(),xe=Fe();function Fe(){return 2**++Wi}const Yt=Object.freeze(Object.defineProperty({__proto__:null,boolean:q,booleanish:ae,commaOrSpaceSeparated:xe,commaSeparated:We,number:I,overloadedBoolean:Gt,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),At=Object.keys(Yt);class nn extends me{constructor(t,n,r,i){let o=-1;if(super(t,n),Tn(this,"space",i),typeof r=="number")for(;++o<At.length;){const a=At[o];Tn(this,At[o],(r&Yt[a])===Yt[a])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function Ge(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Vt(r)]=r,n[Vt(o.attribute)]=r}return new at(t,n,e.space)}const gr=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:te,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:I,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:te,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ae,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yr(e,t){return t in e?e[t]:t}function xr(e,t){return yr(e,t.toLowerCase())}const Vi=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:We,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:q,allowPaymentRequest:q,allowUserMedia:q,alt:null,as:null,async:q,autoCapitalize:null,autoComplete:te,autoFocus:q,autoPlay:q,blocking:te,capture:null,charSet:null,checked:q,cite:null,className:te,cols:I,colSpan:null,content:null,contentEditable:ae,controls:q,controlsList:te,coords:I|We,crossOrigin:null,data:null,dateTime:null,decoding:null,default:q,defer:q,dir:null,dirName:null,disabled:q,download:Gt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:q,formTarget:null,headers:te,height:I,hidden:Gt,high:I,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:q,inputMode:null,integrity:null,is:null,isMap:q,itemId:null,itemProp:te,itemRef:te,itemScope:q,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:q,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:q,muted:q,name:null,nonce:null,noModule:q,noValidate:q,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:q,optimum:I,pattern:null,ping:te,placeholder:null,playsInline:q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:q,referrerPolicy:null,rel:te,required:q,reversed:q,rows:I,rowSpan:I,sandbox:te,scope:null,scoped:q,seamless:q,selected:q,shadowRootClonable:q,shadowRootDelegatesFocus:q,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:q,useMap:null,value:ae,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:q,declare:q,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:q,noHref:q,noShade:q,noWrap:q,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:q,disableRemotePlayback:q,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:xr}),Gi=Ge({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:xe,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:q,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:We,g2:We,glyphName:We,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xe,rev:xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xe,requiredFeatures:xe,requiredFonts:xe,requiredFormats:xe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xe,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yr}),br=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),kr=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),wr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Yi={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"},Zi=/[A-Z]/g,An=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Qi(e,t){const n=Vt(t);let r=t,i=me;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ji.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(An,Ki);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!An.test(o)){let a=o.replace(Zi,Xi);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=nn}return new i(r,t)}function Xi(e){return"-"+e.toLowerCase()}function Ki(e){return e.charAt(1).toUpperCase()}const $i=mr([gr,Vi,br,kr,wr],"html"),rn=mr([gr,Gi,br,kr,wr],"svg");function eo(e){return e.join(" ").trim()}function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={},It,In;function to(){if(In)return It;In=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),A=require("react"),ce=require("react-i18next"),ie=require("lucide-react"),Ie=require("react-hot-toast"),Li=require("axios"),gt=require("i18next"),Pi=require("i18next-browser-languagedetector"),ot="3.0.2",ji=30,dr=ji*24*60*60*1e3,Pe={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},zi=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const Mi=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=ce.useTranslation(),i=n?.widget_customization?.branding?.company_name||r("widget.title"),o=a=>{a.preventDefault(),a.stopPropagation(),e()};return d.jsxs("button",{type:"button",onClick:o,className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[d.jsxs("div",{className:"gpc-floating-content",children:[d.jsx(ie.MessageCircle,{className:"gpc-floating-icon"}),d.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",i]})]}),t>0&&d.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},Ri=()=>{const{i18n:e,t}=ce.useTranslation(),n=[{code:"en",label:t("languages.english"),flag:"πŸ‡¬πŸ‡§"},{code:"es",label:t("languages.spanish"),flag:"πŸ‡ͺπŸ‡Έ"},{code:"fr",label:t("languages.french"),flag:"πŸ‡«πŸ‡·"}],[r,i]=A.useState(!1),o=A.useRef(null),a=n.find(l=>l.code===e.language)||n[0],s=(l,u)=>{l.preventDefault(),l.stopPropagation(),e.changeLanguage(u),i(!1)};return A.useEffect(()=>{const l=u=>{o.current&&!o.current.contains(u.target)&&i(!1)};return r&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[r]),d.jsxs("div",{className:"gpc-language-selector",ref:o,children:[d.jsx("button",{type:"button",onClick:l=>{l.preventDefault(),l.stopPropagation(),i(!r)},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":t("ui.languageSelector.label"),title:t("ui.languageSelector.label"),children:d.jsx(ie.Globe,{className:"gpc-icon"})}),r&&d.jsx("div",{className:"gpc-language-dropdown",children:n.map(l=>d.jsxs("button",{type:"button",onClick:u=>s(u,l.code),className:`gpc-language-option ${l.code===a.code?"gpc-language-option-active":""}`,children:[d.jsx("span",{className:"gpc-language-flag",children:l.flag}),d.jsx("span",{className:"gpc-language-label",children:l.label})]},l.code))})]})},Oi=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:i=null,onToggleConversations:o,showConversations:a=!1,conversationsCount:s=0,onToggleAbout:l,showAbout:u=!1,version:h=ot,onToggleMcpLogin:c,showMcpLogin:f=!1,mcpLoggedIn:p=!1})=>{const{t:m}=ce.useTranslation(),[k,v]=A.useState(!1),b=A.useRef(null);A.useEffect(()=>{const C=z=>{b.current&&!b.current.contains(z.target)&&v(!1)};return k&&document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[k]);const E=i?.widget_customization?.branding?.company_name||m("widget.title"),T=i?.widget_customization?.branding?.custom_title,M=i?.widget_customization?.branding?.company_logo_base64,D=T||E,w=M?.startsWith("data:")?M:M?`data:image/png;base64,${M}`:null,R=i?.widget_customization?.colors?.header_background,_=i?.widget_customization?.colors?.header_text,F={};R&&(F.backgroundColor=R),_&&(F.color=_);const x=(C,z)=>{C.preventDefault(),C.stopPropagation(),v(!1),z()};return d.jsxs("div",{className:"gpc-chat-header",style:F,children:[d.jsxs("div",{className:"gpc-header-content",children:[w&&d.jsx("div",{className:"gpc-header-logo",children:d.jsx("img",{src:w,alt:E,className:"gpc-company-logo"})}),d.jsx("div",{className:"gpc-header-text",children:d.jsx("h2",{className:"gpc-header-title",style:_?{color:_}:{},children:D})})]}),d.jsxs("div",{className:"gpc-header-actions",children:[o&&d.jsxs("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),o()},className:`gpc-header-button gpc-focus-visible gpc-transition relative ${a?"bg-blue-500 text-white":""}`,"aria-label":m("conversations.toggle","Toggle conversations"),title:m("conversations.toggle","Toggle conversations"),children:[d.jsx(ie.MessageSquare,{className:"gpc-icon",size:20}),s>0&&d.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-4 h-4 flex items-center justify-center",children:s>9?"9+":s})]}),d.jsx(Ri,{}),d.jsxs("div",{className:"gpc-header-menu",ref:b,children:[d.jsx("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),v(z=>!z)},className:`gpc-header-button gpc-focus-visible gpc-transition ${k?"bg-blue-500 text-white":""}`,"aria-label":m("ui.menu"),title:m("ui.menu"),children:d.jsx(ie.MoreVertical,{className:"gpc-icon",size:20})}),k&&d.jsxs("div",{className:"gpc-header-dropdown",children:[d.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:C=>x(C,n),children:[t==="light"?d.jsx(ie.Moon,{size:16,className:"gpc-header-dropdown-icon"}):d.jsx(ie.Sun,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m("theme.toggle")})]}),l&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"gpc-header-dropdown-divider"}),d.jsxs("button",{type:"button",className:`gpc-header-dropdown-item ${u?"gpc-header-dropdown-item-active":""}`,onClick:C=>x(C,l),children:[d.jsx(ie.Info,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m("about.title")})]})]}),c&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"gpc-header-dropdown-divider"}),d.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:C=>x(C,c),children:[p?d.jsx(ie.LogOut,{size:16,className:"gpc-header-dropdown-icon"}):d.jsx(ie.LogIn,{size:16,className:"gpc-header-dropdown-icon"}),d.jsx("span",{children:m(p?"moodle.logout":"moodle.login")})]})]})]})]}),d.jsx("button",{type:"button",onClick:C=>{C.preventDefault(),C.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":m("chat.close"),title:m("chat.close"),children:d.jsx(ie.ChevronDown,{className:"gpc-icon"})})]})]})};function Fi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const _i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi={};function Sn(e,t){return(Hi.jsx?Bi:_i).test(e)}const Ui=/[ \t\n\f\r]/g;function qi(e){return typeof e=="object"?e.type==="text"?En(e.value):!1:En(e)}function En(e){return e.replace(Ui,"")===""}class at{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}at.prototype.normal={};at.prototype.property={};at.prototype.space=void 0;function mr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new at(n,r,t)}function Vt(e){return e.toLowerCase()}class me{constructor(t,n){this.attribute=n,this.property=t}}me.prototype.attribute="";me.prototype.booleanish=!1;me.prototype.boolean=!1;me.prototype.commaOrSpaceSeparated=!1;me.prototype.commaSeparated=!1;me.prototype.defined=!1;me.prototype.mustUseProperty=!1;me.prototype.number=!1;me.prototype.overloadedBoolean=!1;me.prototype.property="";me.prototype.spaceSeparated=!1;me.prototype.space=void 0;let Wi=0;const q=Fe(),ae=Fe(),Gt=Fe(),I=Fe(),te=Fe(),We=Fe(),xe=Fe();function Fe(){return 2**++Wi}const Yt=Object.freeze(Object.defineProperty({__proto__:null,boolean:q,booleanish:ae,commaOrSpaceSeparated:xe,commaSeparated:We,number:I,overloadedBoolean:Gt,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),At=Object.keys(Yt);class nn extends me{constructor(t,n,r,i){let o=-1;if(super(t,n),Tn(this,"space",i),typeof r=="number")for(;++o<At.length;){const a=At[o];Tn(this,At[o],(r&Yt[a])===Yt[a])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function Ge(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Vt(r)]=r,n[Vt(o.attribute)]=r}return new at(t,n,e.space)}const gr=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:te,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:I,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:te,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ae,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yr(e,t){return t in e?e[t]:t}function xr(e,t){return yr(e,t.toLowerCase())}const Vi=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:We,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:q,allowPaymentRequest:q,allowUserMedia:q,alt:null,as:null,async:q,autoCapitalize:null,autoComplete:te,autoFocus:q,autoPlay:q,blocking:te,capture:null,charSet:null,checked:q,cite:null,className:te,cols:I,colSpan:null,content:null,contentEditable:ae,controls:q,controlsList:te,coords:I|We,crossOrigin:null,data:null,dateTime:null,decoding:null,default:q,defer:q,dir:null,dirName:null,disabled:q,download:Gt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:q,formTarget:null,headers:te,height:I,hidden:Gt,high:I,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:q,inputMode:null,integrity:null,is:null,isMap:q,itemId:null,itemProp:te,itemRef:te,itemScope:q,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:q,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:q,muted:q,name:null,nonce:null,noModule:q,noValidate:q,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:q,optimum:I,pattern:null,ping:te,placeholder:null,playsInline:q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:q,referrerPolicy:null,rel:te,required:q,reversed:q,rows:I,rowSpan:I,sandbox:te,scope:null,scoped:q,seamless:q,selected:q,shadowRootClonable:q,shadowRootDelegatesFocus:q,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:q,useMap:null,value:ae,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:q,declare:q,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:q,noHref:q,noShade:q,noWrap:q,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:q,disableRemotePlayback:q,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:xr}),Gi=Ge({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:xe,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:q,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:We,g2:We,glyphName:We,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xe,rev:xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xe,requiredFeatures:xe,requiredFonts:xe,requiredFormats:xe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xe,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yr}),br=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),kr=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),wr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Yi={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"},Zi=/[A-Z]/g,An=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Qi(e,t){const n=Vt(t);let r=t,i=me;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ji.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(An,Ki);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!An.test(o)){let a=o.replace(Zi,Xi);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=nn}return new i(r,t)}function Xi(e){return"-"+e.toLowerCase()}function Ki(e){return e.charAt(1).toUpperCase()}const $i=mr([gr,Vi,br,kr,wr],"html"),rn=mr([gr,Gi,br,kr,wr],"svg");function eo(e){return e.join(" ").trim()}function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={},It,In;function to(){if(In)return It;In=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
2
2
  `,u="/",h="*",c="",f="comment",p="declaration";It=function(k,v){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];v=v||{};var b=1,E=1;function T(j){var N=j.match(t);N&&(b+=N.length);var L=j.lastIndexOf(l);E=~L?j.length-L:E+j.length}function M(){var j={line:b,column:E};return function(N){return N.position=new D(j),_(),N}}function D(j){this.start=j,this.end={line:b,column:E},this.source=v.source}D.prototype.content=k;function w(j){var N=new Error(v.source+":"+b+":"+E+": "+j);if(N.reason=j,N.filename=v.source,N.line=b,N.column=E,N.source=k,!v.silent)throw N}function R(j){var N=j.exec(k);if(N){var L=N[0];return T(L),k=k.slice(L.length),N}}function _(){R(n)}function F(j){var N;for(j=j||[];N=x();)N!==!1&&j.push(N);return j}function x(){var j=M();if(!(u!=k.charAt(0)||h!=k.charAt(1))){for(var N=2;c!=k.charAt(N)&&(h!=k.charAt(N)||u!=k.charAt(N+1));)++N;if(N+=2,c===k.charAt(N-1))return w("End of comment missing");var L=k.slice(2,N-2);return E+=2,T(L),k=k.slice(N),E+=2,j({type:f,comment:L})}}function C(){var j=M(),N=R(r);if(N){if(x(),!R(i))return w("property missing ':'");var L=R(o),W=j({type:p,property:m(N[0].replace(e,c)),value:L?m(L[0].replace(e,c)):c});return R(a),W}}function z(){var j=[];F(j);for(var N;N=C();)N!==!1&&(j.push(N),F(j));return j}return _(),z()};function m(k){return k?k.replace(s,c):c}return It}var Nn;function no(){if(Nn)return He;Nn=1;var e=He&&He.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(He,"__esModule",{value:!0}),He.default=n;const t=e(to());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:h}=l;s?i(u,h,l):h&&(o=o||{},o[u]=h)}),o}return He}var Qe={},Dn;function ro(){if(Dn)return Qe;Dn=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},a=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},l=function(u,h){return h===void 0&&(h={}),o(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,a))};return Qe.camelCase=l,Qe}var Xe,Ln;function io(){if(Ln)return Xe;Ln=1;var e=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(no()),n=ro();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,n.camelCase)(s,o)]=l)}),a}return r.default=r,Xe=r,Xe}var oo=io();const ao=vr(oo),Cr=Sr("end"),on=Sr("start");function Sr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function so(e){const t=on(e),n=Cr(e);if(t&&n)return{start:t,end:n}}function et(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pn(e.position):"start"in e||"end"in e?Pn(e):"line"in e||"column"in e?Zt(e):""}function Zt(e){return jn(e&&e.line)+":"+jn(e&&e.column)}function Pn(e){return Zt(e&&e.start)+"-"+Zt(e&&e.end)}function jn(e){return e&&typeof e=="number"?e:1}class he extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=et(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=a&&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}}he.prototype.file="";he.prototype.name="";he.prototype.reason="";he.prototype.message="";he.prototype.stack="";he.prototype.column=void 0;he.prototype.line=void 0;he.prototype.ancestors=void 0;he.prototype.cause=void 0;he.prototype.fatal=void 0;he.prototype.place=void 0;he.prototype.ruleId=void 0;he.prototype.source=void 0;const an={}.hasOwnProperty,lo=new Map,uo=/[A-Z]/g,co=new Set(["table","tbody","thead","tfoot","tr"]),ho=new Set(["td","th"]),Er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function po(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wo(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ko(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rn:$i,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Tr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tr(e,t,n){if(t.type==="element")return fo(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mo(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yo(e,t,n);if(t.type==="mdxjsEsm")return go(e,t);if(t.type==="root")return xo(e,t,n);if(t.type==="text")return bo(e,t)}function fo(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const o=Ir(e,t.tagName,!1),a=vo(e,t);let s=ln(e,t);return co.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!qi(l):!0})),Ar(e,a,o,t),sn(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function mo(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}rt(e,t.position)}function go(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rt(e,t.position)}function yo(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Ir(e,t.name,!0),a=Co(e,t),s=ln(e,t);return Ar(e,a,o,t),sn(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function xo(e,t,n){const r={};return sn(r,ln(e,t)),e.create(t,e.Fragment,r,n)}function bo(e,t){return t.value}function Ar(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function sn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ko(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function wo(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=on(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function vo(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&an.call(t.properties,i)){const o=So(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&ho.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Co(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else rt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else rt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ln(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:lo;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const s=Tr(e,o,a);s!==void 0&&n.push(s)}return n}function So(e,t,n){const r=Qi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fi(n):eo(n)),r.property==="style"){let i=typeof n=="object"?n:Eo(e,String(n));return e.stylePropertyNameCase==="css"&&(i=To(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yi[r.property]||r.property:r.attribute,n]}}function Eo(e,t){try{return ao(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new he("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Er+"#cannot-parse-style-attribute",i}}function Ir(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=Sn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=Sn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return an.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);rt(e)}function rt(e,t){const n=new he("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function To(e){const t={};let n;for(n in e)an.call(e,n)&&(t[Ao(n)]=e[n]);return t}function Ao(e){let t=e.replace(uo,Io);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Io(e){return"-"+e.toLowerCase()}const Nt={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"]},No={};function un(e,t){const n=No,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Nr(e,r,i)}function Nr(e,t,n){if(Do(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zn(e.children,t,n)}return Array.isArray(e)?zn(e,t,n):""}function zn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Nr(e[i],t,n);return r.join("")}function Do(e){return!!(e&&typeof e=="object")}const Mn=document.createElement("i");function cn(e){const t="&"+e+";";Mn.innerHTML=t;const n=Mn.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function be(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function ke(e,t){return e.length>0?(be(e,e.length,0,t),e):t}const Rn={}.hasOwnProperty;function Dr(e){const t={};let n=-1;for(;++n<e.length;)Lo(t,e[n]);return t}function Lo(e,t){let n;for(n in t){const i=(Rn.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Rn.call(i,a)||(i[a]=[]);const s=o[a];Po(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Po(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);be(e,0,0,r)}function Lr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"οΏ½":String.fromCodePoint(n)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe=je(/[A-Za-z]/),ue=je(/[\dA-Za-z]/),jo=je(/[#-'*+\--9=?A-Z^-~]/);function xt(e){return e!==null&&(e<32||e===127)}const Jt=je(/\d/),zo=je(/[\dA-Fa-f]/),Mo=je(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function G(e){return e===-2||e===-1||e===32}const vt=je(new RegExp("\\p{P}|\\p{S}","u")),Oe=je(/\s/);function je(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ye(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&ue(e.charCodeAt(n+1))&&ue(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="οΏ½"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Z(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return G(l)?(e.enter(n),s(l)):t(l)}function s(l){return G(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Ro={tokenize:Oo};function Oo(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Z(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return B(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const Fo={tokenize:_o},On={tokenize:Bo};function _o(e){const t=this,n=[];let r=0,i,o,a;return s;function s(T){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,l,u)(T)}return u(T)}function l(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const M=t.events.length;let D=M,w;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){w=t.events[D][1].end;break}b(r);let R=M;for(;R<t.events.length;)t.events[R][1].end={...w},R++;return be(t.events,D+1,0,t.events.slice(M)),t.events.length=R,u(T)}return s(T)}function u(T){if(r===n.length){if(!i)return f(T);if(i.currentConstruct&&i.currentConstruct.concrete)return m(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(On,h,c)(T)}function h(T){return i&&E(),b(r),f(T)}function c(T){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(T)}function f(T){return t.containerState={},e.attempt(On,p,m)(T)}function p(T){return r++,n.push([t.currentConstruct,t.containerState]),f(T)}function m(T){if(T===null){i&&E(),b(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(T)}function k(T){if(T===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(T);return}return B(T)?(e.consume(T),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(T),k)}function v(T,M){const D=t.sliceStream(T);if(M&&D.push(null),T.previous=o,o&&(o.next=T),o=T,i.defineSkip(T.start),i.write(D),t.parser.lazy[T.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const R=t.events.length;let _=R,F,x;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(F){x=t.events[_][1].end;break}F=!0}for(b(r),w=R;w<t.events.length;)t.events[w][1].end={...x},w++;be(t.events,_+1,0,t.events.slice(R)),t.events.length=w}}function b(T){let M=n.length;for(;M-- >T;){const D=n[M];t.containerState=D[1],D[0].exit.call(t,e)}n.length=T}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Bo(e,t,n){return Z(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ve(e){if(e===null||ee(e)||Oe(e))return 1;if(vt(e))return 2}function Ct(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Qt={name:"attention",resolveAll:Ho,tokenize:Uo};function Ho(e,t){let n=-1,r,i,o,a,s,l,u,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},f={...e[n][1].start};Fn(c,-l),Fn(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ke(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ke(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=ke(u,Ct(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ke(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,u=ke(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,be(e,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Uo(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ve(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),h=Ve(l),c=!h||h===2&&i||n.includes(l),f=!i||i===2&&h||n.includes(r);return u._open=!!(o===42?c:c&&(i||!f)),u._close=!!(o===42?f:f&&(h||!c)),t(l)}}function Fn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qo={name:"autolink",tokenize:Wo};function Wo(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return fe(p)?(e.consume(p),a):p===64?n(p):u(p)}function a(p){return p===43||p===45||p===46||ue(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||ue(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||xt(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),h):jo(p)?(e.consume(p),u):n(p)}function h(p){return ue(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||ue(p))&&r++<63){const m=p===45?f:c;return e.consume(p),m}return n(p)}}const st={partial:!0,tokenize:Vo};function Vo(e,t,n){return r;function r(o){return G(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||B(o)?t(o):n(o)}}const Pr={continuation:{tokenize:Yo},exit:Zo,name:"blockQuote",tokenize:Go};function Go(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return G(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Yo(e,t,n){const r=this;return i;function i(a){return G(a)?Z(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Pr,t,n)(a)}}function Zo(e){e.exit("blockQuote")}const jr={name:"characterEscape",tokenize:Jo};function Jo(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Mo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const zr={name:"characterReference",tokenize:Qo};function Qo(e,t,n){const r=this;let i=0,o,a;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=ue,h(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=zo,h):(e.enter("characterReferenceValue"),o=7,a=Jt,h(c))}function h(c){if(c===59&&i){const f=e.exit("characterReferenceValue");return a===ue&&!cn(r.sliceSerialize(f))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<o?(e.consume(c),h):n(c)}}const _n={partial:!0,tokenize:Ko},Bn={concrete:!0,name:"codeFenced",tokenize:Xo};function Xo(e,t,n){const r=this,i={partial:!0,tokenize:D};let o=0,a=0,s;return l;function l(w){return u(w)}function u(w){const R=r.events[r.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(w)}function h(w){return w===s?(a++,e.consume(w),h):a<3?n(w):(e.exit("codeFencedFenceSequence"),G(w)?Z(e,c,"whitespace")(w):c(w))}function c(w){return w===null||B(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(_n,k,M)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||B(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):G(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Z(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),f)}function p(w){return w===null||B(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||B(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),m)}function k(w){return e.attempt(i,M,v)(w)}function v(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),b}function b(w){return o>0&&G(w)?Z(e,E,"linePrefix",o+1)(w):E(w)}function E(w){return w===null||B(w)?e.check(_n,k,M)(w):(e.enter("codeFlowValue"),T(w))}function T(w){return w===null||B(w)?(e.exit("codeFlowValue"),E(w)):(e.consume(w),T)}function M(w){return e.exit("codeFenced"),t(w)}function D(w,R,_){let F=0;return x;function x(L){return w.enter("lineEnding"),w.consume(L),w.exit("lineEnding"),C}function C(L){return w.enter("codeFencedFence"),G(L)?Z(w,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):z(L)}function z(L){return L===s?(w.enter("codeFencedFenceSequence"),j(L)):_(L)}function j(L){return L===s?(F++,w.consume(L),j):F>=a?(w.exit("codeFencedFenceSequence"),G(L)?Z(w,N,"whitespace")(L):N(L)):_(L)}function N(L){return L===null||B(L)?(w.exit("codeFencedFence"),R(L)):_(L)}}}function Ko(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Dt={name:"codeIndented",tokenize:ea},$o={partial:!0,tokenize:ta};function ea(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Z(e,o,"linePrefix",5)(u)}function o(u){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):B(u)?e.attempt($o,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||B(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function ta(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):B(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Z(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):B(a)?i(a):n(a)}}const na={name:"codeText",previous:ia,resolve:ra,tokenize:oa};function ra(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ia(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oa(e,t,n){let r=0,i,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,h(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function h(c){return c===96?(e.consume(c),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class aa{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ke(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ke(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ke(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ke(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ke(this.left,n.reverse())}}}function Ke(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Mr(e){const t={};let n=-1,r,i,o,a,s,l,u;const h=new aa(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,sa(h,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=h.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},s=h.slice(i,n),s.unshift(r),h.splice(i,n-i+1,s))}}return be(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function sa(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let h,c,f=-1,p=n,m=0,k=0;const v=[k];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),c&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(h),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(k=f+1,v.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){const b=s.slice(v[f],v[f+1]),E=o.pop();l.push([E,E+b.length-1]),e.splice(E,2,b)}for(l.reverse(),f=-1;++f<l.length;)u[m+l[f][0]]=m+l[f][1],m+=l[f][1]-l[f][0]-1;return u}const la={resolve:ca,tokenize:ha},ua={partial:!0,tokenize:pa};function ca(e){return Mr(e),e}function ha(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):B(s)?e.check(ua,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function pa(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Z(e,o,"linePrefix")}function o(a){if(a===null||B(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Rr(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let h=0;return c;function c(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),f):b===null||b===32||b===41||xt(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(b))}function f(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||B(b)?n(b):(e.consume(b),b===92?m:p)}function m(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function k(b){return!h&&(b===null||b===41||ee(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):h<u&&b===40?(e.consume(b),h++,k):b===41?(e.consume(b),h--,k):b===null||b===32||b===40||xt(b)?n(b):(e.consume(b),b===92?v:k)}function v(b){return b===40||b===41||b===92?(e.consume(b),k):k(b)}}function Or(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),h}function h(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||B(p)||s++>999?(e.exit("chunkString"),h(p)):(e.consume(p),l||(l=!G(p)),p===92?f:c)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function Fr(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):B(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Z(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===a||f===null||B(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:h)}function c(f){return f===a||f===92?(e.consume(f),h):h(f)}}function tt(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):G(i)?Z(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const fa={name:"definition",tokenize:ma},da={partial:!0,tokenize:ga};function ma(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return Or.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ee(p)?tt(e,u)(p):u(p)}function u(p){return Rr(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(da,c,c)(p)}function c(p){return G(p)?Z(e,f,"whitespace")(p):f(p)}function f(p){return p===null||B(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function ga(e,t,n){return r;function r(s){return ee(s)?tt(e,i)(s):n(s)}function i(s){return Fr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return G(s)?Z(e,a,"whitespace")(s):a(s)}function a(s){return s===null||B(s)?t(s):n(s)}}const ya={name:"hardBreakEscape",tokenize:xa};function xa(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return B(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ba={name:"headingAtx",resolve:ka,tokenize:wa};function ka(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},be(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function wa(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),o(h)}function o(h){return e.enter("atxHeadingSequence"),a(h)}function a(h){return h===35&&r++<6?(e.consume(h),a):h===null||ee(h)?(e.exit("atxHeadingSequence"),s(h)):n(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||B(h)?(e.exit("atxHeading"),t(h)):G(h)?Z(e,s,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),s(h))}function u(h){return h===null||h===35||ee(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const va=["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"],Hn=["pre","script","style","textarea"],Ca={concrete:!0,name:"htmlFlow",resolveTo:Ta,tokenize:Aa},Sa={partial:!0,tokenize:Na},Ea={partial:!0,tokenize:Ia};function Ta(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Aa(e,t,n){const r=this;let i,o,a,s,l;return u;function u(y){return h(y)}function h(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),c}function c(y){return y===33?(e.consume(y),f):y===47?(e.consume(y),o=!0,k):y===63?(e.consume(y),i=3,r.interrupt?t:g):fe(y)?(e.consume(y),a=String.fromCharCode(y),v):n(y)}function f(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,m):fe(y)?(e.consume(y),i=4,r.interrupt?t:g):n(y)}function p(y){return y===45?(e.consume(y),r.interrupt?t:g):n(y)}function m(y){const se="CDATA[";return y===se.charCodeAt(s++)?(e.consume(y),s===se.length?r.interrupt?t:z:m):n(y)}function k(y){return fe(y)?(e.consume(y),a=String.fromCharCode(y),v):n(y)}function v(y){if(y===null||y===47||y===62||ee(y)){const se=y===47,ge=a.toLowerCase();return!se&&!o&&Hn.includes(ge)?(i=1,r.interrupt?t(y):z(y)):va.includes(a.toLowerCase())?(i=6,se?(e.consume(y),b):r.interrupt?t(y):z(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):o?E(y):T(y))}return y===45||ue(y)?(e.consume(y),a+=String.fromCharCode(y),v):n(y)}function b(y){return y===62?(e.consume(y),r.interrupt?t:z):n(y)}function E(y){return G(y)?(e.consume(y),E):x(y)}function T(y){return y===47?(e.consume(y),x):y===58||y===95||fe(y)?(e.consume(y),M):G(y)?(e.consume(y),T):x(y)}function M(y){return y===45||y===46||y===58||y===95||ue(y)?(e.consume(y),M):D(y)}function D(y){return y===61?(e.consume(y),w):G(y)?(e.consume(y),D):T(y)}function w(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),l=y,R):G(y)?(e.consume(y),w):_(y)}function R(y){return y===l?(e.consume(y),l=null,F):y===null||B(y)?n(y):(e.consume(y),R)}function _(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||ee(y)?D(y):(e.consume(y),_)}function F(y){return y===47||y===62||G(y)?T(y):n(y)}function x(y){return y===62?(e.consume(y),C):n(y)}function C(y){return y===null||B(y)?z(y):G(y)?(e.consume(y),C):n(y)}function z(y){return y===45&&i===2?(e.consume(y),W):y===60&&i===1?(e.consume(y),Q):y===62&&i===4?(e.consume(y),le):y===63&&i===3?(e.consume(y),g):y===93&&i===5?(e.consume(y),ne):B(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Sa,pe,j)(y)):y===null||B(y)?(e.exit("htmlFlowData"),j(y)):(e.consume(y),z)}function j(y){return e.check(Ea,N,pe)(y)}function N(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),L}function L(y){return y===null||B(y)?j(y):(e.enter("htmlFlowData"),z(y))}function W(y){return y===45?(e.consume(y),g):z(y)}function Q(y){return y===47?(e.consume(y),a="",oe):z(y)}function oe(y){if(y===62){const se=a.toLowerCase();return Hn.includes(se)?(e.consume(y),le):z(y)}return fe(y)&&a.length<8?(e.consume(y),a+=String.fromCharCode(y),oe):z(y)}function ne(y){return y===93?(e.consume(y),g):z(y)}function g(y){return y===62?(e.consume(y),le):y===45&&i===2?(e.consume(y),g):z(y)}function le(y){return y===null||B(y)?(e.exit("htmlFlowData"),pe(y)):(e.consume(y),le)}function pe(y){return e.exit("htmlFlow"),t(y)}}function Ia(e,t,n){const r=this;return i;function i(a){return B(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Na(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(st,t,n)}}const Da={name:"htmlText",tokenize:La};function La(e,t,n){const r=this;let i,o,a;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),D):g===63?(e.consume(g),T):fe(g)?(e.consume(g),_):n(g)}function u(g){return g===45?(e.consume(g),h):g===91?(e.consume(g),o=0,m):fe(g)?(e.consume(g),E):n(g)}function h(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),f):B(g)?(a=c,Q(g)):(e.consume(g),c)}function f(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?W(g):g===45?f(g):c(g)}function m(g){const le="CDATA[";return g===le.charCodeAt(o++)?(e.consume(g),o===le.length?k:m):n(g)}function k(g){return g===null?n(g):g===93?(e.consume(g),v):B(g)?(a=k,Q(g)):(e.consume(g),k)}function v(g){return g===93?(e.consume(g),b):k(g)}function b(g){return g===62?W(g):g===93?(e.consume(g),b):k(g)}function E(g){return g===null||g===62?W(g):B(g)?(a=E,Q(g)):(e.consume(g),E)}function T(g){return g===null?n(g):g===63?(e.consume(g),M):B(g)?(a=T,Q(g)):(e.consume(g),T)}function M(g){return g===62?W(g):T(g)}function D(g){return fe(g)?(e.consume(g),w):n(g)}function w(g){return g===45||ue(g)?(e.consume(g),w):R(g)}function R(g){return B(g)?(a=R,Q(g)):G(g)?(e.consume(g),R):W(g)}function _(g){return g===45||ue(g)?(e.consume(g),_):g===47||g===62||ee(g)?F(g):n(g)}function F(g){return g===47?(e.consume(g),W):g===58||g===95||fe(g)?(e.consume(g),x):B(g)?(a=F,Q(g)):G(g)?(e.consume(g),F):W(g)}function x(g){return g===45||g===46||g===58||g===95||ue(g)?(e.consume(g),x):C(g)}function C(g){return g===61?(e.consume(g),z):B(g)?(a=C,Q(g)):G(g)?(e.consume(g),C):F(g)}function z(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,j):B(g)?(a=z,Q(g)):G(g)?(e.consume(g),z):(e.consume(g),N)}function j(g){return g===i?(e.consume(g),i=void 0,L):g===null?n(g):B(g)?(a=j,Q(g)):(e.consume(g),j)}function N(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||ee(g)?F(g):(e.consume(g),N)}function L(g){return g===47||g===62||ee(g)?F(g):n(g)}function W(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function Q(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),oe}function oe(g){return G(g)?Z(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):ne(g)}function ne(g){return e.enter("htmlTextData"),a(g)}}const hn={name:"labelEnd",resolveAll:Ma,resolveTo:Ra,tokenize:Oa},Pa={tokenize:Fa},ja={tokenize:_a},za={tokenize:Ba};function Ma(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&be(e,0,e.length,n),e}function Ra(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},h={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=ke(s,e.slice(o+1,o+r+3)),s=ke(s,[["enter",h,t]]),s=ke(s,Ct(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=ke(s,[["exit",h,t],e[a-2],e[a-1],["exit",u,t]]),s=ke(s,e.slice(a+1)),s=ke(s,[["exit",l,t]]),be(e,o,e.length,s),e}function Oa(e,t,n){const r=this;let i=r.events.length,o,a;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 s;function s(f){return o?o._inactive?c(f):(a=r.parser.defined.includes(ve(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Pa,h,a?h:c)(f):f===91?e.attempt(ja,h,a?u:c)(f):a?h(f):c(f)}function u(f){return e.attempt(za,h,c)(f)}function h(f){return t(f)}function c(f){return o._balanced=!0,n(f)}}function Fa(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ee(c)?tt(e,o)(c):o(c)}function o(c){return c===41?h(c):Rr(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return ee(c)?tt(e,l)(c):h(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?Fr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):h(c)}function u(c){return ee(c)?tt(e,h)(c):h(c)}function h(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function _a(e,t,n){const r=this;return i;function i(s){return Or.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function Ba(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Ha={name:"labelStartImage",resolveAll:hn.resolveAll,tokenize:Ua};function Ua(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const qa={name:"labelStartLink",resolveAll:hn.resolveAll,tokenize:Wa};function Wa(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Lt={name:"lineEnding",tokenize:Va};function Va(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Z(e,t,"linePrefix")}}const yt={name:"thematicBreak",tokenize:Ga};function Ga(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||B(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),G(u)?Z(e,s,"whitespace")(u):s(u))}}const de={continuation:{tokenize:Qa},exit:Ka,name:"list",tokenize:Ja},Ya={partial:!0,tokenize:$a},Za={partial:!0,tokenize:Xa};function Ja(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Jt(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(yt,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Jt(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(st,r.interrupt?n:h,e.attempt(Ya,f,c))}function h(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function c(p){return G(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Qa(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(st,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Z(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!G(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Za,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Z(e,e.attempt(de,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Xa(e,t,n){const r=this;return Z(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Ka(e){e.exit(this.containerState.type)}function $a(e,t,n){const r=this;return Z(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!G(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Un={name:"setextUnderline",resolveTo:es,tokenize:ts};function es(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={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",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function ts(e,t,n){const r=this;let i;return o;function o(u){let h=r.events.length,c;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){c=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),G(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||B(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ns={tokenize:rs};function rs(e){const t=this,n=e.attempt(st,r,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(la,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const is={resolveAll:Br()},os=_r("string"),as=_r("text");function _r(e){return{resolveAll:Br(e==="text"?ss:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(h){return u(h)?o(h):s(h)}function s(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return u(h)?(n.exit("data"),o(h)):(n.consume(h),l)}function u(h){if(h===null)return!0;const c=i[h];let f=-1;if(c)for(;++f<c.length;){const p=c[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Br(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function ss(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const ls={42:de,43:de,45:de,48:de,49:de,50:de,51:de,52:de,53:de,54:de,55:de,56:de,57:de,62:Pr},us={91:fa},cs={[-2]:Dt,[-1]:Dt,32:Dt},hs={35:ba,42:yt,45:[Un,yt],60:Ca,61:Un,95:yt,96:Bn,126:Bn},ps={38:zr,92:jr},fs={[-5]:Lt,[-4]:Lt,[-3]:Lt,33:Ha,38:zr,42:Qt,60:[qo,Da],91:qa,92:[ya,jr],93:hn,95:Qt,96:na},ds={null:[Qt,is]},ms={null:[42,95]},gs={null:[]},ys=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ms,contentInitial:us,disable:gs,document:ls,flow:hs,flowInitial:cs,insideSpan:ds,string:ps,text:fs},Symbol.toStringTag,{value:"Module"}));function xs(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:R(D),check:R(w),consume:E,enter:T,exit:M,interrupt:R(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:c};let h=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c(C){return a=ke(a,C),v(),a[a.length-1]!==null?[]:(_(t,0),u.events=Ct(o,u.events,u),u.events)}function f(C,z){return ks(p(C),z)}function p(C){return bs(a,C)}function m(){const{_bufferIndex:C,_index:z,line:j,column:N,offset:L}=r;return{_bufferIndex:C,_index:z,line:j,column:N,offset:L}}function k(C){i[C.line]=C.column,x()}function v(){let C;for(;r._index<a.length;){const z=a[r._index];if(typeof z=="string")for(C=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===C&&r._bufferIndex<z.length;)b(z.charCodeAt(r._bufferIndex));else b(z)}}function b(C){h=h(C)}function E(C){B(C)?(r.line++,r.column=1,r.offset+=C===-3?2:1,x()):C!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=C}function T(C,z){const j=z||{};return j.type=C,j.start=m(),u.events.push(["enter",j,u]),s.push(j),j}function M(C){const z=s.pop();return z.end=m(),u.events.push(["exit",z,u]),z}function D(C,z){_(C,z.from)}function w(C,z){z.restore()}function R(C,z){return j;function j(N,L,W){let Q,oe,ne,g;return Array.isArray(N)?pe(N):"tokenize"in N?pe([N]):le(N);function le(O){return H;function H(V){const J=V!==null&&O[V],K=V!==null&&O.null,X=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(K)?K:K?[K]:[]];return pe(X)(V)}}function pe(O){return Q=O,oe=0,O.length===0?W:y(O[oe])}function y(O){return H;function H(V){return g=F(),ne=O,O.partial||(u.currentConstruct=O),O.name&&u.parser.constructs.disable.null.includes(O.name)?ge():O.tokenize.call(z?Object.assign(Object.create(u),z):u,l,se,ge)(V)}}function se(O){return C(ne,g),L}function ge(O){return g.restore(),++oe<Q.length?y(Q[oe]):W}}}function _(C,z){C.resolveAll&&!o.includes(C)&&o.push(C),C.resolve&&be(u.events,z,u.events.length-z,C.resolve(u.events.slice(z),u)),C.resolveTo&&(u.events=C.resolveTo(u.events,u))}function F(){const C=m(),z=u.previous,j=u.currentConstruct,N=u.events.length,L=Array.from(s);return{from:N,restore:W};function W(){r=C,u.previous=z,u.currentConstruct=j,u.events.length=N,s=L,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function bs(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function ks(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
3
3
  `;break}case-3:{a=`\r
4
4
  `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function ws(e){const r={constructs:Dr([ys,...(e||{}).extensions||[]]),content:i(Ro),defined:[],document:i(Fo),flow:i(ns),lazy:{},string:i(os),text:i(as)};return r;function i(o){return a;function a(s){return xs(r,o,s)}}}function vs(e){for(;!Mr(e););return e}const qn=/[\0\t\n\r]/g;function Cs(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,h,c,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(qn.lastIndex=c,u=qn.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(c);break}if(p===10&&c===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<f&&(l.push(o.slice(c,f)),e+=f-c),p){case 0:{l.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ss=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Es(e){return e.replace(Ss,Ts)}function Ts(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Lr(n.slice(o?2:1),o?16:10)}return cn(n)||e}const Hr={}.hasOwnProperty;function As(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Is(n)(vs(ws(n).document().write(Cs()(e,t,!0))))}function Is(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(vn),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(ut),blockQuote:o(K),characterEscape:F,characterReference:F,codeFenced:o(X),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(X,a),codeText:o(re,a),codeTextData:F,data:F,codeFlowValue:F,definition:o(Ee),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(ze),hardBreakEscape:o(_e),hardBreakTrailing:o(_e),htmlFlow:o(ct,a),htmlFlowData:F,htmlText:o(ct,a),htmlTextData:F,image:o(Ei),label:a,link:o(vn),listItem:o(Ti),listItemValue:f,listOrdered:o(Cn,c),listUnordered:o(Cn),paragraph:o(Ai),reference:y,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(ut),strong:o(Ii),thematicBreak:o(Di)},exit:{atxHeading:l(),atxHeadingSequence:D,autolink:l(),autolinkEmail:J,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:O,characterReference:H,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:x,codeIndented:l(b),codeText:l(L),codeTextData:x,data:x,definition:l(),definitionDestinationString:M,definitionLabelString:E,definitionTitleString:T,emphasis:l(),hardBreakEscape:l(z),hardBreakTrailing:l(z),htmlFlow:l(j),htmlFlowData:x,htmlText:l(N),htmlTextData:x,image:l(Q),label:ne,labelText:oe,lineEnding:C,link:l(W),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:g,resourceTitleString:le,resource:pe,setextHeading:l(_),setextHeadingLineSequence:R,setextHeadingText:w,strong:l(),thematicBreak:l()}};Ur(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(S){let P={type:"root",children:[]};const U={stack:[P],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:h,data:n},Y=[];let $=-1;for(;++$<S.length;)if(S[$][1].type==="listOrdered"||S[$][1].type==="listUnordered")if(S[$][0]==="enter")Y.push($);else{const we=Y.pop();$=i(S,we,$)}for($=-1;++$<S.length;){const we=t[S[$][0]];Hr.call(we,S[$][1].type)&&we[S[$][1].type].call(Object.assign({sliceSerialize:S[$][2].sliceSerialize},U),S[$][1])}if(U.tokenStack.length>0){const we=U.tokenStack[U.tokenStack.length-1];(we[1]||Wn).call(U,void 0,we[0])}for(P.position={start:De(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:De(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<t.transforms.length;)P=t.transforms[$](P)||P;return P}function i(S,P,U){let Y=P-1,$=-1,we=!1,Me,Te,Ze,Je;for(;++Y<=U;){const ye=S[Y];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?$++:$--,Je=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Me&&!Je&&!$&&!Ze&&(Ze=Y),Je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Je=void 0}if(!$&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||$===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Me){let Be=Y;for(Te=void 0;Be--;){const Ae=S[Be];if(Ae[1].type==="lineEnding"||Ae[1].type==="lineEndingBlank"){if(Ae[0]==="exit")continue;Te&&(S[Te][1].type="lineEndingBlank",we=!0),Ae[1].type="lineEnding",Te=Be}else if(!(Ae[1].type==="linePrefix"||Ae[1].type==="blockQuotePrefix"||Ae[1].type==="blockQuotePrefixWhitespace"||Ae[1].type==="blockQuoteMarker"||Ae[1].type==="listItemIndent"))break}Ze&&(!Te||Ze<Te)&&(Me._spread=!0),Me.end=Object.assign({},Te?S[Te][1].start:ye[1].end),S.splice(Te||Y,0,["exit",Me,ye[2]]),Y++,U++}if(ye[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Me=Be,S.splice(Y,0,["enter",Be,ye[2]]),Y++,U++,Ze=void 0,Je=!0}}}return S[P][1]._spread=we,U}function o(S,P){return U;function U(Y){s.call(this,S(Y),Y),P&&P.call(this,Y)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(S,P,U){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([P,U||void 0]),S.position={start:De(P.start),end:void 0}}function l(S){return P;function P(U){S&&S.call(this,U),u.call(this,U)}}function u(S,P){const U=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==S.type&&(P?P.call(this,S,Y[0]):(Y[1]||Wn).call(this,S,Y[0]));else throw new Error("Cannot close `"+S.type+"` ("+et({start:S.start,end:S.end})+"): it’s not open");U.position.end=De(S.end)}function h(){return un(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(S){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function p(){const S=this.resume(),P=this.stack[this.stack.length-1];P.lang=S}function m(){const S=this.resume(),P=this.stack[this.stack.length-1];P.meta=S}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const S=this.resume(),P=this.stack[this.stack.length-1];P.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const S=this.resume(),P=this.stack[this.stack.length-1];P.value=S.replace(/(\r?\n|\r)$/g,"")}function E(S){const P=this.resume(),U=this.stack[this.stack.length-1];U.label=P,U.identifier=ve(this.sliceSerialize(S)).toLowerCase()}function T(){const S=this.resume(),P=this.stack[this.stack.length-1];P.title=S}function M(){const S=this.resume(),P=this.stack[this.stack.length-1];P.url=S}function D(S){const P=this.stack[this.stack.length-1];if(!P.depth){const U=this.sliceSerialize(S).length;P.depth=U}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function R(S){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function F(S){const U=this.stack[this.stack.length-1].children;let Y=U[U.length-1];(!Y||Y.type!=="text")&&(Y=Ni(),Y.position={start:De(S.start),end:void 0},U.push(Y)),this.stack.push(Y)}function x(S){const P=this.stack.pop();P.value+=this.sliceSerialize(S),P.position.end=De(S.end)}function C(S){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=P.children[P.children.length-1];U.position.end=De(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(F.call(this,S),x.call(this,S))}function z(){this.data.atHardBreak=!0}function j(){const S=this.resume(),P=this.stack[this.stack.length-1];P.value=S}function N(){const S=this.resume(),P=this.stack[this.stack.length-1];P.value=S}function L(){const S=this.resume(),P=this.stack[this.stack.length-1];P.value=S}function W(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=P,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function Q(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=P,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function oe(S){const P=this.sliceSerialize(S),U=this.stack[this.stack.length-2];U.label=Es(P),U.identifier=ve(P).toLowerCase()}function ne(){const S=this.stack[this.stack.length-1],P=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const Y=S.children;U.children=Y}else U.alt=P}function g(){const S=this.resume(),P=this.stack[this.stack.length-1];P.url=S}function le(){const S=this.resume(),P=this.stack[this.stack.length-1];P.title=S}function pe(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(S){const P=this.resume(),U=this.stack[this.stack.length-1];U.label=P,U.identifier=ve(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function ge(S){this.data.characterReferenceType=S.type}function O(S){const P=this.sliceSerialize(S),U=this.data.characterReferenceType;let Y;U?(Y=Lr(P,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=cn(P);const $=this.stack[this.stack.length-1];$.value+=Y}function H(S){const P=this.stack.pop();P.position.end=De(S.end)}function V(S){x.call(this,S);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(S)}function J(S){x.call(this,S);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(S)}function K(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function Ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function ct(){return{type:"html",value:""}}function Ei(){return{type:"image",title:null,url:"",alt:null}}function vn(){return{type:"link",title:null,url:"",children:[]}}function Cn(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Ti(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ai(){return{type:"paragraph",children:[]}}function Ii(){return{type:"strong",children:[]}}function Ni(){return{type:"text",value:""}}function Di(){return{type:"thematicBreak"}}}function De(e){return{line:e.line,column:e.column,offset:e.offset}}function Ur(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ur(e,r):Ns(e,r)}}function Ns(e,t){let n;for(n in t)if(Hr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Wn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+et({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+et({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+et({start:t.start,end:t.end})+") is still open")}function Ds(e){const t=this;t.parser=n;function n(r){return As(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ls(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ps(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`