tia-gpc-widget 2.0.8 β 2.0.9
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.
- package/dist/loader.js +2 -2
- package/dist/loader.min.js +2 -2
- package/dist/tia-gpc-widget.standalone.css +1 -1
- package/dist/tia-gpc-widget.standalone.js +1 -1
- package/dist/tia-gpc-widget.standalone.js.map +1 -1
- package/dist/tia-gpc.cjs.js +1 -1
- package/dist/tia-gpc.cjs.js.map +1 -1
- package/dist/tia-gpc.css +1 -1
- package/dist/tia-gpc.es.js +1 -1
- package/dist/tia-gpc.es.js.map +1 -1
- package/dist/version.json +14 -14
- package/package.json +1 -1
package/dist/tia-gpc.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),I=require("react"),ue=require("react-i18next"),ie=require("lucide-react"),Pe=require("react-hot-toast"),Pi=require("axios"),gt=require("i18next"),Di=require("i18next-browser-languagedetector"),ot="2.0.8",Li=30,zi=Li*24*60*60*1e3,Ue={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},Ri=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const ji=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=ue.useTranslation(),i=n?.widget_customization?.branding?.company_name||r("widget.title"),a=o=>{o.preventDefault(),o.stopPropagation(),e()};return y.jsxs("button",{type:"button",onClick:a,className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[y.jsxs("div",{className:"gpc-floating-content",children:[y.jsx(ie.MessageCircle,{className:"gpc-floating-icon"}),y.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",i]})]}),t>0&&y.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},Mi=({theme:e,onToggle:t})=>{const{t:n}=ue.useTranslation(),r=i=>{i.preventDefault(),i.stopPropagation(),t()};return y.jsx("button",{type:"button",onClick:r,className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":n("theme.toggle"),title:n("theme.toggle"),children:e==="light"?y.jsx(ie.Moon,{className:"gpc-icon"}):y.jsx(ie.Sun,{className:"gpc-icon"})})},Oi=()=>{const{i18n:e,t}=ue.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]=I.useState(!1),a=I.useRef(null),o=n.find(l=>l.code===e.language)||n[0],s=(l,u)=>{l.preventDefault(),l.stopPropagation(),e.changeLanguage(u),i(!1)};return I.useEffect(()=>{const l=u=>{a.current&&!a.current.contains(u.target)&&i(!1)};return r&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[r]),y.jsxs("div",{className:"gpc-language-selector",ref:a,children:[y.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:y.jsx(ie.Globe,{className:"gpc-icon"})}),r&&y.jsx("div",{className:"gpc-language-dropdown",children:n.map(l=>y.jsxs("button",{type:"button",onClick:u=>s(u,l.code),className:`gpc-language-option ${l.code===o.code?"gpc-language-option-active":""}`,children:[y.jsx("span",{className:"gpc-language-flag",children:l.flag}),y.jsx("span",{className:"gpc-language-label",children:l.label})]},l.code))})]})},Fi=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:i=null,onToggleConversations:a,showConversations:o=!1,conversationsCount:s=0,onToggleAbout:l,showAbout:u=!1,version:h=ot})=>{const{t:c}=ue.useTranslation(),f=i?.widget_customization?.branding?.company_name||c("widget.title"),p=i?.widget_customization?.branding?.custom_title,m=i?.widget_customization?.branding?.company_logo_base64,w=p||f,v=m?.startsWith("data:")?m:m?`data:image/png;base64,${m}`:null,k=i?.widget_customization?.colors?.header_background,S=i?.widget_customization?.colors?.header_text,E={};return k&&(E.backgroundColor=k),S&&(E.color=S),y.jsxs("div",{className:"gpc-chat-header",style:E,children:[y.jsxs("div",{className:"gpc-header-content",children:[v&&y.jsx("div",{className:"gpc-header-logo",children:y.jsx("img",{src:v,alt:f,className:"gpc-company-logo"})}),y.jsx("div",{className:"gpc-header-text",children:y.jsx("h2",{className:"gpc-header-title",style:S?{color:S}:{},children:w})})]}),y.jsxs("div",{className:"gpc-header-actions",children:[a&&y.jsxs("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),a()},className:`gpc-header-button gpc-focus-visible gpc-transition relative ${o?"bg-blue-500 text-white":""}`,"aria-label":c("conversations.toggle","Toggle conversations"),title:c("conversations.toggle","Toggle conversations"),children:[y.jsx(ie.MessageSquare,{className:"gpc-icon",size:20}),s>0&&y.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})]}),y.jsx(Oi,{}),y.jsx(Mi,{theme:t,onToggle:n}),l&&y.jsx("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),l()},className:`gpc-header-button gpc-focus-visible gpc-transition ${u?"bg-blue-500 text-white":""}`,"aria-label":c("about.title"),title:c("about.title"),children:y.jsx(ie.Info,{className:"gpc-icon",size:20})}),y.jsx("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":c("chat.close"),title:c("chat.close"),children:y.jsx(ie.ChevronDown,{className:"gpc-icon"})})]})]})};function Bi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Vi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi={};function Sn(e,t){return(Hi.jsx?Ui:Vi).test(e)}const $i=/[ \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($i,"")===""}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 dr(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 qt(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 U=je(),ae=je(),Wt=je(),_=je(),J=je(),He=je(),ye=je();function je(){return 2**++Wi}const Gt=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ae,commaOrSpaceSeparated:ye,commaSeparated:He,number:_,overloadedBoolean:Wt,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),It=Object.keys(Gt);class nn extends me{constructor(t,n,r,i){let a=-1;if(super(t,n),Tn(this,"space",i),typeof r=="number")for(;++a<It.length;){const o=It[a];Tn(this,It[a],(r&Gt[o])===Gt[o])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function qe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[qt(r)]=r,n[qt(a.attribute)]=r}return new at(t,n,e.space)}const mr=qe({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:J,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:_,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:J,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ae,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function gr(e,t){return t in e?e[t]:t}function yr(e,t){return gr(e,t.toLowerCase())}const Gi=qe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:He,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:J,autoFocus:U,autoPlay:U,blocking:J,capture:null,charSet:null,checked:U,cite:null,className:J,cols:_,colSpan:null,content:null,contentEditable:ae,controls:U,controlsList:J,coords:_|He,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Wt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:J,height:_,hidden:Wt,high:_,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:J,itemRef:J,itemScope:U,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:_,pattern:null,ping:J,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:J,required:U,reversed:U,rows:_,rowSpan:_,sandbox:J,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ae,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:yr}),Ki=qe({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:ye,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:J,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:He,g2:He,glyphName:He,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=qe({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=qe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),br=qe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Xi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Yi=/[A-Z]/g,In=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Qi(e,t){const n=qt(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 a=t.slice(5).replace(In,eo);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!In.test(a)){let o=a.replace(Yi,Zi);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nn}return new i(r,t)}function Zi(e){return"-"+e.toLowerCase()}function eo(e){return e.charAt(1).toUpperCase()}const to=dr([mr,Gi,xr,kr,br],"html"),rn=dr([mr,Ki,xr,kr,br],"svg");function no(e){return e.join(" ").trim()}function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={},At,An;function ro(){if(An)return At;An=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),I=require("react"),ue=require("react-i18next"),ie=require("lucide-react"),Pe=require("react-hot-toast"),Pi=require("axios"),gt=require("i18next"),Di=require("i18next-browser-languagedetector"),ot="2.0.9",Li=30,zi=Li*24*60*60*1e3,Ue={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},Ri=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const ji=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=ue.useTranslation(),i=n?.widget_customization?.branding?.company_name||r("widget.title"),a=o=>{o.preventDefault(),o.stopPropagation(),e()};return y.jsxs("button",{type:"button",onClick:a,className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[y.jsxs("div",{className:"gpc-floating-content",children:[y.jsx(ie.MessageCircle,{className:"gpc-floating-icon"}),y.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",i]})]}),t>0&&y.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},Mi=({theme:e,onToggle:t})=>{const{t:n}=ue.useTranslation(),r=i=>{i.preventDefault(),i.stopPropagation(),t()};return y.jsx("button",{type:"button",onClick:r,className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":n("theme.toggle"),title:n("theme.toggle"),children:e==="light"?y.jsx(ie.Moon,{className:"gpc-icon"}):y.jsx(ie.Sun,{className:"gpc-icon"})})},Oi=()=>{const{i18n:e,t}=ue.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]=I.useState(!1),a=I.useRef(null),o=n.find(l=>l.code===e.language)||n[0],s=(l,u)=>{l.preventDefault(),l.stopPropagation(),e.changeLanguage(u),i(!1)};return I.useEffect(()=>{const l=u=>{a.current&&!a.current.contains(u.target)&&i(!1)};return r&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[r]),y.jsxs("div",{className:"gpc-language-selector",ref:a,children:[y.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:y.jsx(ie.Globe,{className:"gpc-icon"})}),r&&y.jsx("div",{className:"gpc-language-dropdown",children:n.map(l=>y.jsxs("button",{type:"button",onClick:u=>s(u,l.code),className:`gpc-language-option ${l.code===o.code?"gpc-language-option-active":""}`,children:[y.jsx("span",{className:"gpc-language-flag",children:l.flag}),y.jsx("span",{className:"gpc-language-label",children:l.label})]},l.code))})]})},Fi=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:i=null,onToggleConversations:a,showConversations:o=!1,conversationsCount:s=0,onToggleAbout:l,showAbout:u=!1,version:h=ot})=>{const{t:c}=ue.useTranslation(),f=i?.widget_customization?.branding?.company_name||c("widget.title"),p=i?.widget_customization?.branding?.custom_title,m=i?.widget_customization?.branding?.company_logo_base64,w=p||f,v=m?.startsWith("data:")?m:m?`data:image/png;base64,${m}`:null,k=i?.widget_customization?.colors?.header_background,S=i?.widget_customization?.colors?.header_text,E={};return k&&(E.backgroundColor=k),S&&(E.color=S),y.jsxs("div",{className:"gpc-chat-header",style:E,children:[y.jsxs("div",{className:"gpc-header-content",children:[v&&y.jsx("div",{className:"gpc-header-logo",children:y.jsx("img",{src:v,alt:f,className:"gpc-company-logo"})}),y.jsx("div",{className:"gpc-header-text",children:y.jsx("h2",{className:"gpc-header-title",style:S?{color:S}:{},children:w})})]}),y.jsxs("div",{className:"gpc-header-actions",children:[a&&y.jsxs("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),a()},className:`gpc-header-button gpc-focus-visible gpc-transition relative ${o?"bg-blue-500 text-white":""}`,"aria-label":c("conversations.toggle","Toggle conversations"),title:c("conversations.toggle","Toggle conversations"),children:[y.jsx(ie.MessageSquare,{className:"gpc-icon",size:20}),s>0&&y.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})]}),y.jsx(Oi,{}),y.jsx(Mi,{theme:t,onToggle:n}),l&&y.jsx("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),l()},className:`gpc-header-button gpc-focus-visible gpc-transition ${u?"bg-blue-500 text-white":""}`,"aria-label":c("about.title"),title:c("about.title"),children:y.jsx(ie.Info,{className:"gpc-icon",size:20})}),y.jsx("button",{type:"button",onClick:N=>{N.preventDefault(),N.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":c("chat.close"),title:c("chat.close"),children:y.jsx(ie.ChevronDown,{className:"gpc-icon"})})]})]})};function Bi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Vi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi={};function Sn(e,t){return(Hi.jsx?Ui:Vi).test(e)}const $i=/[ \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($i,"")===""}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 dr(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 qt(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 U=je(),ae=je(),Wt=je(),_=je(),J=je(),He=je(),ye=je();function je(){return 2**++Wi}const Gt=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ae,commaOrSpaceSeparated:ye,commaSeparated:He,number:_,overloadedBoolean:Wt,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),It=Object.keys(Gt);class nn extends me{constructor(t,n,r,i){let a=-1;if(super(t,n),Tn(this,"space",i),typeof r=="number")for(;++a<It.length;){const o=It[a];Tn(this,It[a],(r&Gt[o])===Gt[o])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function qe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[qt(r)]=r,n[qt(a.attribute)]=r}return new at(t,n,e.space)}const mr=qe({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:J,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:_,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:J,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ae,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function gr(e,t){return t in e?e[t]:t}function yr(e,t){return gr(e,t.toLowerCase())}const Gi=qe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:He,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:J,autoFocus:U,autoPlay:U,blocking:J,capture:null,charSet:null,checked:U,cite:null,className:J,cols:_,colSpan:null,content:null,contentEditable:ae,controls:U,controlsList:J,coords:_|He,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Wt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:J,height:_,hidden:Wt,high:_,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:J,itemRef:J,itemScope:U,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:_,pattern:null,ping:J,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:J,required:U,reversed:U,rows:_,rowSpan:_,sandbox:J,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ae,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:yr}),Ki=qe({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:ye,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:J,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:He,g2:He,glyphName:He,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=qe({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=qe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),br=qe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Xi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Yi=/[A-Z]/g,In=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Qi(e,t){const n=qt(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 a=t.slice(5).replace(In,eo);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!In.test(a)){let o=a.replace(Yi,Zi);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nn}return new i(r,t)}function Zi(e){return"-"+e.toLowerCase()}function eo(e){return e.charAt(1).toUpperCase()}const to=dr([mr,Gi,xr,kr,br],"html"),rn=dr([mr,Ki,xr,kr,br],"svg");function no(e){return e.join(" ").trim()}function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={},At,An;function ro(){if(An)return At;An=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
2
2
|
`,u="/",h="*",c="",f="comment",p="declaration";At=function(w,v){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];v=v||{};var k=1,S=1;function E(R){var L=R.match(t);L&&(k+=L.length);var j=R.lastIndexOf(l);S=~j?R.length-j:S+R.length}function N(){var R={line:k,column:S};return function(L){return L.position=new A(R),O(),L}}function A(R){this.start=R,this.end={line:k,column:S},this.source=v.source}A.prototype.content=w;function b(R){var L=new Error(v.source+":"+k+":"+S+": "+R);if(L.reason=R,L.filename=v.source,L.line=k,L.column=S,L.source=w,!v.silent)throw L}function D(R){var L=R.exec(w);if(L){var j=L[0];return E(j),w=w.slice(j.length),L}}function O(){D(n)}function F(R){var L;for(R=R||[];L=x();)L!==!1&&R.push(L);return R}function x(){var R=N();if(!(u!=w.charAt(0)||h!=w.charAt(1))){for(var L=2;c!=w.charAt(L)&&(h!=w.charAt(L)||u!=w.charAt(L+1));)++L;if(L+=2,c===w.charAt(L-1))return b("End of comment missing");var j=w.slice(2,L-2);return S+=2,E(j),w=w.slice(L),S+=2,R({type:f,comment:j})}}function T(){var R=N(),L=D(r);if(L){if(x(),!D(i))return b("property missing ':'");var j=D(a),G=R({type:p,property:m(L[0].replace(e,c)),value:j?m(j[0].replace(e,c)):c});return D(o),G}}function z(){var R=[];F(R);for(var L;L=T();)L!==!1&&(R.push(L),F(R));return R}return O(),z()};function m(w){return w?w.replace(s,c):c}return At}var _n;function io(){if(_n)return Fe;_n=1;var e=Fe&&Fe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=n;const t=e(ro());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),s=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:h}=l;s?i(u,h,l):h&&(a=a||{},a[u]=h)}),a}return Fe}var Ye={},Nn;function oo(){if(Nn)return Ye;Nn=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},o=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},l=function(u,h){return h===void 0&&(h={}),a(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,o))};return Ye.camelCase=l,Ye}var Je,Pn;function ao(){if(Pn)return Je;Pn=1;var e=Je&&Je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(io()),n=oo();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,Je=r,Je}var so=ao();const lo=wr(so),vr=Cr("end"),on=Cr("start");function Cr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function uo(e){const t=on(e),n=vr(e);if(t&&n)return{start:t,end:n}}function et(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dn(e.position):"start"in e||"end"in e?Dn(e):"line"in e||"column"in e?Kt(e):""}function Kt(e){return Ln(e&&e.line)+":"+Ln(e&&e.column)}function Dn(e){return Kt(e&&e.start)+"-"+Kt(e&&e.end)}function Ln(e){return e&&typeof e=="number"?e:1}class pe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=et(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pe.prototype.file="";pe.prototype.name="";pe.prototype.reason="";pe.prototype.message="";pe.prototype.stack="";pe.prototype.column=void 0;pe.prototype.line=void 0;pe.prototype.ancestors=void 0;pe.prototype.cause=void 0;pe.prototype.fatal=void 0;pe.prototype.place=void 0;pe.prototype.ruleId=void 0;pe.prototype.source=void 0;const an={}.hasOwnProperty,co=new Map,ho=/[A-Z]/g,po=new Set(["table","tbody","thead","tfoot","tr"]),fo=new Set(["td","th"]),Sr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mo(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=Co(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=vo(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:to,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Er(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Er(e,t,n){if(t.type==="element")return go(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return yo(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ko(e,t,n);if(t.type==="mdxjsEsm")return xo(e,t);if(t.type==="root")return bo(e,t,n);if(t.type==="text")return wo(e,t)}function go(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 a=Ir(e,t.tagName,!1),o=So(e,t);let s=ln(e,t);return po.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!qi(l):!0})),Tr(e,o,a,t),sn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function yo(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 xo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rt(e,t.position)}function ko(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 a=t.name===null?e.Fragment:Ir(e,t.name,!0),o=Eo(e,t),s=ln(e,t);return Tr(e,o,a,t),sn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function bo(e,t,n){const r={};return sn(r,ln(e,t)),e.create(t,e.Fragment,r,n)}function wo(e,t){return t.value}function Tr(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 vo(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function Co(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=on(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function So(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&an.call(t.properties,i)){const a=To(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&fo.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Eo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else rt(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else rt(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ln(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:co;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const s=Er(e,a,o);s!==void 0&&n.push(s)}return n}function To(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?Bi(n):no(n)),r.property==="style"){let i=typeof n=="object"?n:Io(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ao(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Xi[r.property]||r.property:r.attribute,n]}}function Io(e,t){try{return lo(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new pe("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=Sr+"#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 a=-1,o;for(;++a<i.length;){const s=Sn(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}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 pe("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=Sr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ao(e){const t={};let n;for(n in e)an.call(e,n)&&(t[_o(n)]=e[n]);return t}function _o(e){let t=e.replace(ho,No);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function No(e){return"-"+e.toLowerCase()}const _t={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"]},Po={};function un(e,t){const n=Po,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ar(e,r,i)}function Ar(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]=Ar(e[i],t,n);return r.join("")}function Do(e){return!!(e&&typeof e=="object")}const Rn=document.createElement("i");function cn(e){const t="&"+e+";";Rn.innerHTML=t;const n=Rn.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function xe(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ke(e,t){return e.length>0?(xe(e,e.length,0,t),e):t}const jn={}.hasOwnProperty;function _r(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=(jn.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){jn.call(i,o)||(i[o]=[]);const s=a[o];zo(i[o],Array.isArray(s)?s:s?[s]:[])}}}function zo(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);xe(e,0,0,r)}function Nr(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=De(/[A-Za-z]/),he=De(/[\dA-Za-z]/),Ro=De(/[#-'*+\--9=?A-Z^-~]/);function xt(e){return e!==null&&(e<32||e===127)}const Xt=De(/\d/),jo=De(/[\dA-Fa-f]/),Mo=De(/[!-/:-@[-`{-~]/);function M(e){return e!==null&&e<-2}function Y(e){return e!==null&&(e<0||e===32)}function H(e){return e===-2||e===-1||e===32}const vt=De(new RegExp("\\p{P}|\\p{S}","u")),Re=De(/\s/);function De(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function We(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&he(e.charCodeAt(n+1))&&he(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="οΏ½"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function W(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return H(l)?(e.enter(n),s(l)):t(l)}function s(l){return H(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Oo={tokenize:Fo};function Fo(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"),W(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return M(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Bo={tokenize:Vo},Mn={tokenize:Uo};function Vo(e){const t=this,n=[];let r=0,i,a,o;return s;function s(E){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,l,u)(E)}return u(E)}function l(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const N=t.events.length;let A=N,b;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){b=t.events[A][1].end;break}k(r);let D=N;for(;D<t.events.length;)t.events[D][1].end={...b},D++;return xe(t.events,A+1,0,t.events.slice(N)),t.events.length=D,u(E)}return s(E)}function u(E){if(r===n.length){if(!i)return f(E);if(i.currentConstruct&&i.currentConstruct.concrete)return m(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mn,h,c)(E)}function h(E){return i&&S(),k(r),f(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(E)}function f(E){return t.containerState={},e.attempt(Mn,p,m)(E)}function p(E){return r++,n.push([t.currentConstruct,t.containerState]),f(E)}function m(E){if(E===null){i&&S(),k(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),w(E)}function w(E){if(E===null){v(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return M(E)?(e.consume(E),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(E),w)}function v(E,N){const A=t.sliceStream(E);if(N&&A.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(A),t.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const D=t.events.length;let O=D,F,x;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(F){x=t.events[O][1].end;break}F=!0}for(k(r),b=D;b<t.events.length;)t.events[b][1].end={...x},b++;xe(t.events,O+1,0,t.events.slice(D)),t.events.length=b}}function k(E){let N=n.length;for(;N-- >E;){const A=n[N];t.containerState=A[1],A[0].exit.call(t,e)}n.length=E}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Uo(e,t,n){return W(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $e(e){if(e===null||Y(e)||Re(e))return 1;if(vt(e))return 2}function Ct(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Yt={name:"attention",resolveAll:Ho,tokenize:$o};function Ho(e,t){let n=-1,r,i,a,o,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};On(c,-l),On(f,l),o={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},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.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",o,t],["exit",o,t],["enter",a,t]]),u=ke(u,Ct(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ke(u,[["exit",a,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,xe(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 $o(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$e(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),h=$e(l),c=!h||h===2&&i||n.includes(l),f=!i||i===2&&h||n.includes(r);return u._open=!!(a===42?c:c&&(i||!f)),u._close=!!(a===42?f:f&&(h||!c)),t(l)}}function On(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"),a}function a(p){return fe(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||he(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||he(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):Ro(p)?(e.consume(p),u):n(p)}function h(p){return he(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||he(p))&&r++<63){const m=p===45?f:c;return e.consume(p),m}return n(p)}}const st={partial:!0,tokenize:Go};function Go(e,t,n){return r;function r(a){return H(a)?W(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||M(a)?t(a):n(a)}}const Pr={continuation:{tokenize:Xo},exit:Yo,name:"blockQuote",tokenize:Ko};function Ko(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return H(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Xo(e,t,n){const r=this;return i;function i(o){return H(o)?W(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(Pr,t,n)(o)}}function Yo(e){e.exit("blockQuote")}const Dr={name:"characterEscape",tokenize:Jo};function Jo(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Mo(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Lr={name:"characterReference",tokenize:Qo};function Qo(e,t,n){const r=this;let i=0,a,o;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"),a=31,o=he,h(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=jo,h):(e.enter("characterReferenceValue"),a=7,o=Xt,h(c))}function h(c){if(c===59&&i){const f=e.exit("characterReferenceValue");return o===he&&!cn(r.sliceSerialize(f))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<a?(e.consume(c),h):n(c)}}const Fn={partial:!0,tokenize:ea},Bn={concrete:!0,name:"codeFenced",tokenize:Zo};function Zo(e,t,n){const r=this,i={partial:!0,tokenize:A};let a=0,o=0,s;return l;function l(b){return u(b)}function u(b){const D=r.events[r.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(b)}function h(b){return b===s?(o++,e.consume(b),h):o<3?n(b):(e.exit("codeFencedFenceSequence"),H(b)?W(e,c,"whitespace")(b):c(b))}function c(b){return b===null||M(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Fn,w,N)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===null||M(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):H(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,p,"whitespace")(b)):b===96&&b===s?n(b):(e.consume(b),f)}function p(b){return b===null||M(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||M(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===s?n(b):(e.consume(b),m)}function w(b){return e.attempt(i,N,v)(b)}function v(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),k}function k(b){return a>0&&H(b)?W(e,S,"linePrefix",a+1)(b):S(b)}function S(b){return b===null||M(b)?e.check(Fn,w,N)(b):(e.enter("codeFlowValue"),E(b))}function E(b){return b===null||M(b)?(e.exit("codeFlowValue"),S(b)):(e.consume(b),E)}function N(b){return e.exit("codeFenced"),t(b)}function A(b,D,O){let F=0;return x;function x(j){return b.enter("lineEnding"),b.consume(j),b.exit("lineEnding"),T}function T(j){return b.enter("codeFencedFence"),H(j)?W(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):z(j)}function z(j){return j===s?(b.enter("codeFencedFenceSequence"),R(j)):O(j)}function R(j){return j===s?(F++,b.consume(j),R):F>=o?(b.exit("codeFencedFenceSequence"),H(j)?W(b,L,"whitespace")(j):L(j)):O(j)}function L(j){return j===null||M(j)?(b.exit("codeFencedFence"),D(j)):O(j)}}}function ea(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Nt={name:"codeIndented",tokenize:na},ta={partial:!0,tokenize:ra};function na(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,a,"linePrefix",5)(u)}function a(u){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):M(u)?e.attempt(ta,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||M(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function ra(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):M(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):M(o)?i(o):n(o)}}const ia={name:"codeText",previous:aa,resolve:oa,tokenize:sa};function oa(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 aa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sa(e,t,n){let r=0,i,a;return o;function o(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?(a=e.enter("codeTextSequence"),i=0,h(c)):M(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||M(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)):(a.type="codeTextData",u(c))}}class la{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Qe(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Qe(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qe(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);Qe(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qe(this.left,n.reverse())}}}function Qe(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 zr(e){const t={};let n=-1,r,i,a,o,s,l,u;const h=new la(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,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ua(h,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},s=h.slice(i,n),s.unshift(r),h.splice(i,n-i+1,s))}}return xe(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function ua(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let h,c,f=-1,p=n,m=0,w=0;const v=[w];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),p._isInFirstContentOfListItem&&(o._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&&(w=f+1,v.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){const k=s.slice(v[f],v[f+1]),S=a.pop();l.push([S,S+k.length-1]),e.splice(S,2,k)}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 ca={resolve:pa,tokenize:fa},ha={partial:!0,tokenize:da};function pa(e){return zr(e),e}function fa(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?a(s):M(s)?e.check(ha,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function da(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,a,"linePrefix")}function a(o){if(o===null||M(o))return n(o);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(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Rr(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let h=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(k),e.exit(a),f):k===null||k===32||k===41||xt(k)?n(k):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(k))}function f(k){return k===62?(e.enter(a),e.consume(k),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||M(k)?n(k):(e.consume(k),k===92?m:p)}function m(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function w(k){return!h&&(k===null||k===41||Y(k))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(k)):h<u&&k===40?(e.consume(k),h++,w):k===41?(e.consume(k),h--,w):k===null||k===32||k===40||xt(k)?n(k):(e.consume(k),k===92?v:w)}function v(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function jr(e,t,n,r,i,a){const o=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(a),h}function h(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):M(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||M(p)||s++>999?(e.exit("chunkString"),h(p)):(e.consume(p),l||(l=!H(p)),p===92?f:c)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function Mr(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),l(o)):f===null?n(f):M(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||M(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:h)}function c(f){return f===o||f===92?(e.consume(f),h):h(f)}}function tt(e,t){let n;return r;function r(i){return M(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):H(i)?W(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ma={name:"definition",tokenize:ya},ga={partial:!0,tokenize:xa};function ya(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return jr.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 Y(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(ga,c,c)(p)}function c(p){return H(p)?W(e,f,"whitespace")(p):f(p)}function f(p){return p===null||M(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function xa(e,t,n){return r;function r(s){return Y(s)?tt(e,i)(s):n(s)}function i(s){return Mr(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return H(s)?W(e,o,"whitespace")(s):o(s)}function o(s){return s===null||M(s)?t(s):n(s)}}const ka={name:"hardBreakEscape",tokenize:ba};function ba(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return M(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const wa={name:"headingAtx",resolve:va,tokenize:Ca};function va(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},xe(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Ca(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Y(h)?(e.exit("atxHeadingSequence"),s(h)):n(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||M(h)?(e.exit("atxHeading"),t(h)):H(h)?W(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||Y(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const Sa=["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"],Vn=["pre","script","style","textarea"],Ea={concrete:!0,name:"htmlFlow",resolveTo:Aa,tokenize:_a},Ta={partial:!0,tokenize:Pa},Ia={partial:!0,tokenize:Na};function Aa(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 _a(e,t,n){const r=this;let i,a,o,s,l;return u;function u(g){return h(g)}function h(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),f):g===47?(e.consume(g),a=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:d):fe(g)?(e.consume(g),o=String.fromCharCode(g),v):n(g)}function f(g){return g===45?(e.consume(g),i=2,p):g===91?(e.consume(g),i=5,s=0,m):fe(g)?(e.consume(g),i=4,r.interrupt?t:d):n(g)}function p(g){return g===45?(e.consume(g),r.interrupt?t:d):n(g)}function m(g){const ce="CDATA[";return g===ce.charCodeAt(s++)?(e.consume(g),s===ce.length?r.interrupt?t:z:m):n(g)}function w(g){return fe(g)?(e.consume(g),o=String.fromCharCode(g),v):n(g)}function v(g){if(g===null||g===47||g===62||Y(g)){const ce=g===47,be=o.toLowerCase();return!ce&&!a&&Vn.includes(be)?(i=1,r.interrupt?t(g):z(g)):Sa.includes(o.toLowerCase())?(i=6,ce?(e.consume(g),k):r.interrupt?t(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):a?S(g):E(g))}return g===45||he(g)?(e.consume(g),o+=String.fromCharCode(g),v):n(g)}function k(g){return g===62?(e.consume(g),r.interrupt?t:z):n(g)}function S(g){return H(g)?(e.consume(g),S):x(g)}function E(g){return g===47?(e.consume(g),x):g===58||g===95||fe(g)?(e.consume(g),N):H(g)?(e.consume(g),E):x(g)}function N(g){return g===45||g===46||g===58||g===95||he(g)?(e.consume(g),N):A(g)}function A(g){return g===61?(e.consume(g),b):H(g)?(e.consume(g),A):E(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,D):H(g)?(e.consume(g),b):O(g)}function D(g){return g===l?(e.consume(g),l=null,F):g===null||M(g)?n(g):(e.consume(g),D)}function O(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Y(g)?A(g):(e.consume(g),O)}function F(g){return g===47||g===62||H(g)?E(g):n(g)}function x(g){return g===62?(e.consume(g),T):n(g)}function T(g){return g===null||M(g)?z(g):H(g)?(e.consume(g),T):n(g)}function z(g){return g===45&&i===2?(e.consume(g),G):g===60&&i===1?(e.consume(g),ne):g===62&&i===4?(e.consume(g),Z):g===63&&i===3?(e.consume(g),d):g===93&&i===5?(e.consume(g),B):M(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ta,se,R)(g)):g===null||M(g)?(e.exit("htmlFlowData"),R(g)):(e.consume(g),z)}function R(g){return e.check(Ia,L,se)(g)}function L(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),j}function j(g){return g===null||M(g)?R(g):(e.enter("htmlFlowData"),z(g))}function G(g){return g===45?(e.consume(g),d):z(g)}function ne(g){return g===47?(e.consume(g),o="",re):z(g)}function re(g){if(g===62){const ce=o.toLowerCase();return Vn.includes(ce)?(e.consume(g),Z):z(g)}return fe(g)&&o.length<8?(e.consume(g),o+=String.fromCharCode(g),re):z(g)}function B(g){return g===93?(e.consume(g),d):z(g)}function d(g){return g===62?(e.consume(g),Z):g===45&&i===2?(e.consume(g),d):z(g)}function Z(g){return g===null||M(g)?(e.exit("htmlFlowData"),se(g)):(e.consume(g),Z)}function se(g){return e.exit("htmlFlow"),t(g)}}function Na(e,t,n){const r=this;return i;function i(o){return M(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Pa(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,a,o;return s;function s(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),A):d===63?(e.consume(d),E):fe(d)?(e.consume(d),O):n(d)}function u(d){return d===45?(e.consume(d),h):d===91?(e.consume(d),a=0,m):fe(d)?(e.consume(d),S):n(d)}function h(d){return d===45?(e.consume(d),p):n(d)}function c(d){return d===null?n(d):d===45?(e.consume(d),f):M(d)?(o=c,ne(d)):(e.consume(d),c)}function f(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?G(d):d===45?f(d):c(d)}function m(d){const Z="CDATA[";return d===Z.charCodeAt(a++)?(e.consume(d),a===Z.length?w:m):n(d)}function w(d){return d===null?n(d):d===93?(e.consume(d),v):M(d)?(o=w,ne(d)):(e.consume(d),w)}function v(d){return d===93?(e.consume(d),k):w(d)}function k(d){return d===62?G(d):d===93?(e.consume(d),k):w(d)}function S(d){return d===null||d===62?G(d):M(d)?(o=S,ne(d)):(e.consume(d),S)}function E(d){return d===null?n(d):d===63?(e.consume(d),N):M(d)?(o=E,ne(d)):(e.consume(d),E)}function N(d){return d===62?G(d):E(d)}function A(d){return fe(d)?(e.consume(d),b):n(d)}function b(d){return d===45||he(d)?(e.consume(d),b):D(d)}function D(d){return M(d)?(o=D,ne(d)):H(d)?(e.consume(d),D):G(d)}function O(d){return d===45||he(d)?(e.consume(d),O):d===47||d===62||Y(d)?F(d):n(d)}function F(d){return d===47?(e.consume(d),G):d===58||d===95||fe(d)?(e.consume(d),x):M(d)?(o=F,ne(d)):H(d)?(e.consume(d),F):G(d)}function x(d){return d===45||d===46||d===58||d===95||he(d)?(e.consume(d),x):T(d)}function T(d){return d===61?(e.consume(d),z):M(d)?(o=T,ne(d)):H(d)?(e.consume(d),T):F(d)}function z(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,R):M(d)?(o=z,ne(d)):H(d)?(e.consume(d),z):(e.consume(d),L)}function R(d){return d===i?(e.consume(d),i=void 0,j):d===null?n(d):M(d)?(o=R,ne(d)):(e.consume(d),R)}function L(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||Y(d)?F(d):(e.consume(d),L)}function j(d){return d===47||d===62||Y(d)?F(d):n(d)}function G(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function ne(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),re}function re(d){return H(d)?W(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):B(d)}function B(d){return e.enter("htmlTextData"),o(d)}}const hn={name:"labelEnd",resolveAll:Ma,resolveTo:Oa,tokenize:Fa},za={tokenize:Ba},Ra={tokenize:Va},ja={tokenize:Ua};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&&xe(e,0,e.length,n),e}function Oa(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=ke(s,e.slice(a+1,a+r+3)),s=ke(s,[["enter",h,t]]),s=ke(s,Ct(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ke(s,[["exit",h,t],e[o-2],e[o-1],["exit",u,t]]),s=ke(s,e.slice(o+1)),s=ke(s,[["exit",l,t]]),xe(e,a,e.length,s),e}function Fa(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?c(f):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:a.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(za,h,o?h:c)(f):f===91?e.attempt(Ra,h,o?u:c)(f):o?h(f):c(f)}function u(f){return e.attempt(ja,h,c)(f)}function h(f){return t(f)}function c(f){return a._balanced=!0,n(f)}}function Ba(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 Y(c)?tt(e,a)(c):a(c)}function a(c){return c===41?h(c):Rr(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Y(c)?tt(e,l)(c):h(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?Mr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):h(c)}function u(c){return Y(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 Va(e,t,n){const r=this;return i;function i(s){return jr.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Ua(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Ha={name:"labelStartImage",resolveAll:hn.resolveAll,tokenize:$a};function $a(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(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(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Pt={name:"lineEnding",tokenize:Ga};function Ga(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,t,"linePrefix")}}const yt={name:"thematicBreak",tokenize:Ka};function Ka(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||M(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),H(u)?W(e,s,"whitespace")(u):s(u))}}const de={continuation:{tokenize:Qa},exit:es,name:"list",tokenize:Ja},Xa={partial:!0,tokenize:ts},Ya={partial:!0,tokenize:Za};function Ja(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return 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:Xt(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 Xt(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<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(Xa,f,c))}function h(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function c(p){return H(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+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,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!H(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ya,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(de,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Za(e,t,n){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function es(e){e.exit(this.containerState.type)}function ts(e,t,n){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!H(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Un={name:"setextUnderline",resolveTo:ns,tokenize:rs};function ns(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function rs(e,t,n){const r=this;let i;return a;function a(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,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),H(u)?W(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||M(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const is={tokenize:os};function os(e){const t=this,n=e.attempt(st,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ca,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const as={resolveAll:Fr()},ss=Or("string"),ls=Or("text");function Or(e){return{resolveAll:Fr(e==="text"?us:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(h){return u(h)?a(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"),a(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 Fr(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function us(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,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 cs={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},hs={91:ma},ps={[-2]:Nt,[-1]:Nt,32:Nt},fs={35:wa,42:yt,45:[Un,yt],60:Ea,61:Un,95:yt,96:Bn,126:Bn},ds={38:Lr,92:Dr},ms={[-5]:Pt,[-4]:Pt,[-3]:Pt,33:Ha,38:Lr,42:Yt,60:[qo,Da],91:qa,92:[ka,Dr],93:hn,95:Yt,96:ia},gs={null:[Yt,as]},ys={null:[42,95]},xs={null:[]},ks=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ys,contentInitial:hs,disable:xs,document:cs,flow:fs,flowInitial:ps,insideSpan:gs,string:ds,text:ms},Symbol.toStringTag,{value:"Module"}));function bs(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:D(A),check:D(b),consume:S,enter:E,exit:N,interrupt:D(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:c};let h=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function c(T){return o=ke(o,T),v(),o[o.length-1]!==null?[]:(O(t,0),u.events=Ct(a,u.events,u),u.events)}function f(T,z){return vs(p(T),z)}function p(T){return ws(o,T)}function m(){const{_bufferIndex:T,_index:z,line:R,column:L,offset:j}=r;return{_bufferIndex:T,_index:z,line:R,column:L,offset:j}}function w(T){i[T.line]=T.column,x()}function v(){let T;for(;r._index<o.length;){const z=o[r._index];if(typeof z=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<z.length;)k(z.charCodeAt(r._bufferIndex));else k(z)}}function k(T){h=h(T)}function S(T){M(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,x()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function E(T,z){const R=z||{};return R.type=T,R.start=m(),u.events.push(["enter",R,u]),s.push(R),R}function N(T){const z=s.pop();return z.end=m(),u.events.push(["exit",z,u]),z}function A(T,z){O(T,z.from)}function b(T,z){z.restore()}function D(T,z){return R;function R(L,j,G){let ne,re,B,d;return Array.isArray(L)?se(L):"tokenize"in L?se([L]):Z(L);function Z($){return ee;function ee(K){const le=K!==null&&$[K],te=K!==null&&$.null,Q=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(te)?te:te?[te]:[]];return se(Q)(K)}}function se($){return ne=$,re=0,$.length===0?G:g($[re])}function g($){return ee;function ee(K){return d=F(),B=$,$.partial||(u.currentConstruct=$),$.name&&u.parser.constructs.disable.null.includes($.name)?be():$.tokenize.call(z?Object.assign(Object.create(u),z):u,l,ce,be)(K)}}function ce($){return T(B,d),j}function be($){return d.restore(),++re<ne.length?g(ne[re]):G}}}function O(T,z){T.resolveAll&&!a.includes(T)&&a.push(T),T.resolve&&xe(u.events,z,u.events.length-z,T.resolve(u.events.slice(z),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function F(){const T=m(),z=u.previous,R=u.currentConstruct,L=u.events.length,j=Array.from(s);return{from:L,restore:G};function G(){r=T,u.previous=z,u.currentConstruct=R,u.events.length=L,s=j,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ws(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function vs(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function Cs(e){const r={constructs:_r([ks,...(e||{}).extensions||[]]),content:i(Oo),defined:[],document:i(Bo),flow:i(is),lazy:{},string:i(ss),text:i(ls)};return r;function i(a){return o;function o(s){return bs(r,a,s)}}}function Ss(e){for(;!zr(e););return e}const Hn=/[\0\t\n\r]/g;function Es(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let u,h,c,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),c=0,t="",n&&(a.charCodeAt(0)===65279&&c++,n=void 0);c<a.length;){if(Hn.lastIndex=c,u=Hn.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){t=a.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(a.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 Ts=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Is(e){return e.replace(Ts,As)}function As(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Nr(n.slice(a?2:1),a?16:10)}return cn(n)||e}const Br={}.hasOwnProperty;function _s(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ns(n)(Ss(Cs(n).document().write(Es()(e,t,!0))))}function Ns(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(vn),autolinkProtocol:F,autolinkEmail:F,atxHeading:a(ut),blockQuote:a(te),characterEscape:F,characterReference:F,codeFenced:a(Q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Q,o),codeText:a(oe,o),codeTextData:F,data:F,codeFlowValue:F,definition:a(Ee),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ge),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(ct,o),htmlFlowData:F,htmlText:a(ct,o),htmlTextData:F,image:a(Ei),label:o,link:a(vn),listItem:a(Ti),listItemValue:f,listOrdered:a(Cn,c),listUnordered:a(Cn),paragraph:a(Ii),reference:g,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ut),strong:a(Ai),thematicBreak:a(Ni)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:le,autolinkProtocol:K,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:$,characterReference:ee,codeFenced:l(v),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:x,codeIndented:l(k),codeText:l(j),codeTextData:x,data:x,definition:l(),definitionDestinationString:N,definitionLabelString:S,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(z),hardBreakTrailing:l(z),htmlFlow:l(R),htmlFlowData:x,htmlText:l(L),htmlTextData:x,image:l(ne),label:B,labelText:re,lineEnding:T,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ce,resourceDestinationString:d,resourceTitleString:Z,resource:se,setextHeading:l(O),setextHeadingLineSequence:D,setextHeadingText:b,strong:l(),thematicBreak:l()}};Vr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let P={type:"root",children:[]};const V={stack:[P],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:h,data:n},q=[];let X=-1;for(;++X<C.length;)if(C[X][1].type==="listOrdered"||C[X][1].type==="listUnordered")if(C[X][0]==="enter")q.push(X);else{const we=q.pop();X=i(C,we,X)}for(X=-1;++X<C.length;){const we=t[C[X][0]];Br.call(we,C[X][1].type)&&we[C[X][1].type].call(Object.assign({sliceSerialize:C[X][2].sliceSerialize},V),C[X][1])}if(V.tokenStack.length>0){const we=V.tokenStack[V.tokenStack.length-1];(we[1]||$n).call(V,void 0,we[0])}for(P.position={start:_e(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:_e(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<t.transforms.length;)P=t.transforms[X](P)||P;return P}function i(C,P,V){let q=P-1,X=-1,we=!1,Le,Te,Ke,Xe;for(;++q<=V;){const ge=C[q];switch(ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ge[0]==="enter"?X++:X--,Xe=void 0;break}case"lineEndingBlank":{ge[0]==="enter"&&(Le&&!Xe&&!X&&!Ke&&(Ke=q),Xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xe=void 0}if(!X&&ge[0]==="enter"&&ge[1].type==="listItemPrefix"||X===-1&&ge[0]==="exit"&&(ge[1].type==="listUnordered"||ge[1].type==="listOrdered")){if(Le){let Oe=q;for(Te=void 0;Oe--;){const Ie=C[Oe];if(Ie[1].type==="lineEnding"||Ie[1].type==="lineEndingBlank"){if(Ie[0]==="exit")continue;Te&&(C[Te][1].type="lineEndingBlank",we=!0),Ie[1].type="lineEnding",Te=Oe}else if(!(Ie[1].type==="linePrefix"||Ie[1].type==="blockQuotePrefix"||Ie[1].type==="blockQuotePrefixWhitespace"||Ie[1].type==="blockQuoteMarker"||Ie[1].type==="listItemIndent"))break}Ke&&(!Te||Ke<Te)&&(Le._spread=!0),Le.end=Object.assign({},Te?C[Te][1].start:ge[1].end),C.splice(Te||q,0,["exit",Le,ge[2]]),q++,V++}if(ge[1].type==="listItemPrefix"){const Oe={type:"listItem",_spread:!1,start:Object.assign({},ge[1].start),end:void 0};Le=Oe,C.splice(q,0,["enter",Oe,ge[2]]),q++,V++,Ke=void 0,Xe=!0}}}return C[P][1]._spread=we,V}function a(C,P){return V;function V(q){s.call(this,C(q),q),P&&P.call(this,q)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(C,P,V){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,V||void 0]),C.position={start:_e(P.start),end:void 0}}function l(C){return P;function P(V){C&&C.call(this,V),u.call(this,V)}}function u(C,P){const V=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==C.type&&(P?P.call(this,C,q[0]):(q[1]||$n).call(this,C,q[0]));else throw new Error("Cannot close `"+C.type+"` ("+et({start:C.start,end:C.end})+"): itβs not open");V.position.end=_e(C.end)}function h(){return un(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(C){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){const C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function m(){const C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function S(C){const P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=ve(this.sliceSerialize(C)).toLowerCase()}function E(){const C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function N(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function A(C){const P=this.stack[this.stack.length-1];if(!P.depth){const V=this.sliceSerialize(C).length;P.depth=V}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function D(C){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function F(C){const V=this.stack[this.stack.length-1].children;let q=V[V.length-1];(!q||q.type!=="text")&&(q=_i(),q.position={start:_e(C.start),end:void 0},V.push(q)),this.stack.push(q)}function x(C){const P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=_e(C.end)}function T(C){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const V=P.children[P.children.length-1];V.position.end=_e(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(F.call(this,C),x.call(this,C))}function z(){this.data.atHardBreak=!0}function R(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function L(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function j(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function G(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function ne(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function re(C){const P=this.sliceSerialize(C),V=this.stack[this.stack.length-2];V.label=Is(P),V.identifier=ve(P).toLowerCase()}function B(){const C=this.stack[this.stack.length-1],P=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){const q=C.children;V.children=q}else V.alt=P}function d(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function Z(){const C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function se(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ce(C){const P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=ve(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function be(C){this.data.characterReferenceType=C.type}function $(C){const P=this.sliceSerialize(C),V=this.data.characterReferenceType;let q;V?(q=Nr(P,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=cn(P);const X=this.stack[this.stack.length-1];X.value+=q}function ee(C){const P=this.stack.pop();P.position.end=_e(C.end)}function K(C){x.call(this,C);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function le(C){x.call(this,C);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function te(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function Ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ge(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function Me(){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(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function Ti(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function Ii(){return{type:"paragraph",children:[]}}function Ai(){return{type:"strong",children:[]}}function _i(){return{type:"text",value:""}}function Ni(){return{type:"thematicBreak"}}}function _e(e){return{line:e.line,column:e.column,offset:e.offset}}function Vr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Vr(e,r):Ps(e,r)}}function Ps(e,t){let n;for(n in t)if(Br.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function $n(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 _s(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 zs(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|