tia-gpc-widget 2.1.2 β 3.0.0
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.js +5 -39
- package/dist/tia-gpc-widget.standalone.js.map +1 -1
- package/dist/tia-gpc.cjs.js +2 -2
- package/dist/tia-gpc.cjs.js.map +1 -1
- package/dist/tia-gpc.es.js +58 -15
- 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,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),ue=require("react-i18next"),oe=require("lucide-react"),Pe=require("react-hot-toast"),Pi=require("axios"),gt=require("i18next"),Li=require("i18next-browser-languagedetector"),ot="2.1.2",zi=30,ji=zi*24*60*60*1e3,qe={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},Ri=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const Mi=({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(oe.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})]})},Oi=({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(oe.Moon,{className:"gpc-icon"}):y.jsx(oe.Sun,{className:"gpc-icon"})})},Fi=()=>{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]=A.useState(!1),a=A.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 A.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(oe.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))})]})},_i=({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(),p=i?.widget_customization?.branding?.company_name||c("widget.title"),f=i?.widget_customization?.branding?.custom_title,m=i?.widget_customization?.branding?.company_logo_base64,w=f||p,v=m?.startsWith("data:")?m:m?`data:image/png;base64,${m}`:null,b=i?.widget_customization?.colors?.header_background,S=i?.widget_customization?.colors?.header_text,E={};return b&&(E.backgroundColor=b),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:p,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:D=>{D.preventDefault(),D.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(oe.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(Fi,{}),y.jsx(Oi,{theme:t,onToggle:n}),l&&y.jsx("button",{type:"button",onClick:D=>{D.preventDefault(),D.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(oe.Info,{className:"gpc-icon",size:20})}),y.jsx("button",{type:"button",onClick:D=>{D.preventDefault(),D.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":c("chat.close"),title:c("chat.close"),children:y.jsx(oe.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 Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qi={};function Sn(e,t){return(qi.jsx?Ui:Hi).test(e)}const Wi=/[ \t\n\f\r]/g;function Vi(e){return typeof e=="object"?e.type==="text"?En(e.value):!1:En(e)}function En(e){return e.replace(Wi,"")===""}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 Vt(e){return e.toLowerCase()}class me{constructor(t,n){this.attribute=n,this.property=t}}me.prototype.attribute="";me.prototype.booleanish=!1;me.prototype.boolean=!1;me.prototype.commaOrSpaceSeparated=!1;me.prototype.commaSeparated=!1;me.prototype.defined=!1;me.prototype.mustUseProperty=!1;me.prototype.number=!1;me.prototype.overloadedBoolean=!1;me.prototype.property="";me.prototype.spaceSeparated=!1;me.prototype.space=void 0;let Gi=0;const U=Oe(),ae=Oe(),Gt=Oe(),N=Oe(),K=Oe(),We=Oe(),ye=Oe();function Oe(){return 2**++Gi}const Yt=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ae,commaOrSpaceSeparated:ye,commaSeparated:We,number:N,overloadedBoolean:Gt,spaceSeparated:K},Symbol.toStringTag,{value:"Module"})),At=Object.keys(Yt);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<At.length;){const o=At[a];Tn(this,At[a],(r&Yt[o])===Yt[o])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function Ge(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const 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[Vt(r)]=r,n[Vt(a.attribute)]=r}return new at(t,n,e.space)}const mr=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:K,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:N,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:K,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ae,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,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 Yi=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:We,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:K,autoFocus:U,autoPlay:U,blocking:K,capture:null,charSet:null,checked:U,cite:null,className:K,cols:N,colSpan:null,content:null,contentEditable:ae,controls:U,controlsList:K,coords:N|We,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Gt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:K,height:N,hidden:Gt,high:N,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:K,itemRef:K,itemScope:U,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,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:N,pattern:null,ping:K,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:K,required:U,reversed:U,rows:N,rowSpan:N,sandbox:K,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ae,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,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:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:yr}),Zi=Ge({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ye,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:K,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:We,g2:We,glyphName:We,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,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:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),br=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),kr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qi={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"},Ji=/[A-Z]/g,An=/-[a-z]/g,Xi=/^data[-\w.:]+$/i;function Ki(e,t){const n=Vt(t);let r=t,i=me;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xi.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(An,eo);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!An.test(a)){let o=a.replace(Ji,$i);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nn}return new i(r,t)}function $i(e){return"-"+e.toLowerCase()}function eo(e){return e.charAt(1).toUpperCase()}const to=dr([mr,Yi,xr,br,kr],"html"),rn=dr([mr,Zi,xr,br,kr],"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 Be={},It,In;function ro(){if(In)return It;In=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"),A=require("react"),ue=require("react-i18next"),oe=require("lucide-react"),Pe=require("react-hot-toast"),Pi=require("axios"),gt=require("i18next"),Li=require("i18next-browser-languagedetector"),ot="3.0.0",zi=30,ji=zi*24*60*60*1e3,qe={VERIFIED:"gpc_captcha_verified",TIMESTAMP:"gpc_captcha_timestamp"},Ri=["honeypot_field_1","honeypot_field_2","hp_field"];process.env.NODE_ENV;const Mi=({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(oe.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})]})},Oi=({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(oe.Moon,{className:"gpc-icon"}):y.jsx(oe.Sun,{className:"gpc-icon"})})},Fi=()=>{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]=A.useState(!1),a=A.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 A.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(oe.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))})]})},_i=({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(),p=i?.widget_customization?.branding?.company_name||c("widget.title"),f=i?.widget_customization?.branding?.custom_title,m=i?.widget_customization?.branding?.company_logo_base64,w=f||p,v=m?.startsWith("data:")?m:m?`data:image/png;base64,${m}`:null,b=i?.widget_customization?.colors?.header_background,S=i?.widget_customization?.colors?.header_text,E={};return b&&(E.backgroundColor=b),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:p,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:D=>{D.preventDefault(),D.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(oe.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(Fi,{}),y.jsx(Oi,{theme:t,onToggle:n}),l&&y.jsx("button",{type:"button",onClick:D=>{D.preventDefault(),D.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(oe.Info,{className:"gpc-icon",size:20})}),y.jsx("button",{type:"button",onClick:D=>{D.preventDefault(),D.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":c("chat.close"),title:c("chat.close"),children:y.jsx(oe.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 Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qi={};function Sn(e,t){return(qi.jsx?Ui:Hi).test(e)}const Wi=/[ \t\n\f\r]/g;function Vi(e){return typeof e=="object"?e.type==="text"?En(e.value):!1:En(e)}function En(e){return e.replace(Wi,"")===""}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 Vt(e){return e.toLowerCase()}class me{constructor(t,n){this.attribute=n,this.property=t}}me.prototype.attribute="";me.prototype.booleanish=!1;me.prototype.boolean=!1;me.prototype.commaOrSpaceSeparated=!1;me.prototype.commaSeparated=!1;me.prototype.defined=!1;me.prototype.mustUseProperty=!1;me.prototype.number=!1;me.prototype.overloadedBoolean=!1;me.prototype.property="";me.prototype.spaceSeparated=!1;me.prototype.space=void 0;let Gi=0;const U=Oe(),ae=Oe(),Gt=Oe(),N=Oe(),K=Oe(),We=Oe(),ye=Oe();function Oe(){return 2**++Gi}const Yt=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ae,commaOrSpaceSeparated:ye,commaSeparated:We,number:N,overloadedBoolean:Gt,spaceSeparated:K},Symbol.toStringTag,{value:"Module"})),At=Object.keys(Yt);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<At.length;){const o=At[a];Tn(this,At[a],(r&Yt[o])===Yt[o])}}}nn.prototype.defined=!0;function Tn(e,t,n){n&&(e[t]=n)}function Ge(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const 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[Vt(r)]=r,n[Vt(a.attribute)]=r}return new at(t,n,e.space)}const mr=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:K,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:N,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:K,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ae,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,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 Yi=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:We,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:K,autoFocus:U,autoPlay:U,blocking:K,capture:null,charSet:null,checked:U,cite:null,className:K,cols:N,colSpan:null,content:null,contentEditable:ae,controls:U,controlsList:K,coords:N|We,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Gt,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:K,height:N,hidden:Gt,high:N,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:K,itemRef:K,itemScope:U,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,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:N,pattern:null,ping:K,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:K,required:U,reversed:U,rows:N,rowSpan:N,sandbox:K,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ae,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,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:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:yr}),Zi=Ge({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ye,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:K,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:We,g2:We,glyphName:We,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,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:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),br=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),kr=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qi={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"},Ji=/[A-Z]/g,An=/-[a-z]/g,Xi=/^data[-\w.:]+$/i;function Ki(e,t){const n=Vt(t);let r=t,i=me;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xi.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(An,eo);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!An.test(a)){let o=a.replace(Ji,$i);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nn}return new i(r,t)}function $i(e){return"-"+e.toLowerCase()}function eo(e){return e.charAt(1).toUpperCase()}const to=dr([mr,Yi,xr,br,kr],"html"),rn=dr([mr,Zi,xr,br,kr],"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 Be={},It,In;function ro(){if(In)return It;In=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="",p="comment",f="declaration";It=function(w,v){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];v=v||{};var b=1,S=1;function E(R){var z=R.match(t);z&&(b+=z.length);var M=R.lastIndexOf(l);S=~M?R.length-M:S+R.length}function D(){var R={line:b,column:S};return function(z){return z.position=new I(R),F(),z}}function I(R){this.start=R,this.end={line:b,column:S},this.source=v.source}I.prototype.content=w;function k(R){var z=new Error(v.source+":"+b+":"+S+": "+R);if(z.reason=R,z.filename=v.source,z.line=b,z.column=S,z.source=w,!v.silent)throw z}function L(R){var z=R.exec(w);if(z){var M=z[0];return E(M),w=w.slice(M.length),z}}function F(){L(n)}function _(R){var z;for(R=R||[];z=x();)z!==!1&&R.push(z);return R}function x(){var R=D();if(!(u!=w.charAt(0)||h!=w.charAt(1))){for(var z=2;c!=w.charAt(z)&&(h!=w.charAt(z)||u!=w.charAt(z+1));)++z;if(z+=2,c===w.charAt(z-1))return k("End of comment missing");var M=w.slice(2,z-2);return S+=2,E(M),w=w.slice(z),S+=2,R({type:p,comment:M})}}function T(){var R=D(),z=L(r);if(z){if(x(),!L(i))return k("property missing ':'");var M=L(a),Y=R({type:f,property:m(z[0].replace(e,c)),value:M?m(M[0].replace(e,c)):c});return L(o),Y}}function j(){var R=[];_(R);for(var z;z=T();)z!==!1&&(R.push(z),_(R));return R}return F(),j()};function m(w){return w?w.replace(s,c):c}return It}var Nn;function io(){if(Nn)return Be;Nn=1;var e=Be&&Be.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Be,"__esModule",{value:!0}),Be.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 Be}var Je={},Dn;function oo(){if(Dn)return Je;Dn=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.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 Je.camelCase=l,Je}var Xe,Pn;function ao(){if(Pn)return Xe;Pn=1;var e=Xe&&Xe.__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,Xe=r,Xe}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?Ln(e.position):"start"in e||"end"in e?Ln(e):"line"in e||"column"in e?Zt(e):""}function Zt(e){return zn(e&&e.line)+":"+zn(e&&e.column)}function Ln(e){return Zt(e&&e.start)+"-"+Zt(e&&e.end)}function zn(e){return e&&typeof e=="number"?e:1}class fe 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}}fe.prototype.file="";fe.prototype.name="";fe.prototype.reason="";fe.prototype.message="";fe.prototype.stack="";fe.prototype.column=void 0;fe.prototype.line=void 0;fe.prototype.ancestors=void 0;fe.prototype.cause=void 0;fe.prototype.fatal=void 0;fe.prototype.place=void 0;fe.prototype.ruleId=void 0;fe.prototype.source=void 0;const an={}.hasOwnProperty,co=new Map,ho=/[A-Z]/g,fo=new Set(["table","tbody","thead","tfoot","tr"]),po=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 bo(e,t,n);if(t.type==="mdxjsEsm")return xo(e,t);if(t.type==="root")return ko(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=Ar(e,t.tagName,!1),o=So(e,t);let s=ln(e,t);return fo.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Vi(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 bo(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:Ar(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 ko(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"&&po.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=Ki(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:Ao(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Io(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Qi[r.property]||r.property:r.attribute,n]}}function Ao(e,t){try{return lo(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new fe("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 Ar(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 fe("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 Io(e){const t={};let n;for(n in e)an.call(e,n)&&(t[No(n)]=e[n]);return t}function No(e){let t=e.replace(ho,Do);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Do(e){return"-"+e.toLowerCase()}const Nt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},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 Ir(e,r,i)}function Ir(e,t,n){if(Lo(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 jn(e.children,t,n)}return Array.isArray(e)?jn(e,t,n):""}function jn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ir(e[i],t,n);return r.join("")}function Lo(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 be(e,t){return e.length>0?(xe(e,e.length,0,t),e):t}const Mn={}.hasOwnProperty;function Nr(e){const t={};let n=-1;for(;++n<e.length;)zo(t,e[n]);return t}function zo(e,t){let n;for(n in t){const i=(Mn.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Mn.call(i,o)||(i[o]=[]);const s=a[o];jo(i[o],Array.isArray(s)?s:s?[s]:[])}}}function jo(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 Dr(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 pe=Le(/[A-Za-z]/),he=Le(/[\dA-Za-z]/),Ro=Le(/[#-'*+\--9=?A-Z^-~]/);function xt(e){return e!==null&&(e<32||e===127)}const Qt=Le(/\d/),Mo=Le(/[\dA-Fa-f]/),Oo=Le(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const vt=Le(new RegExp("\\p{P}|\\p{S}","u")),Me=Le(/\s/);function Le(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ye(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const 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 G(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return q(l)?(e.enter(n),s(l)):t(l)}function s(l){return q(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Fo={tokenize:_o};function _o(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"),G(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 O(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Bo={tokenize:Ho},On={tokenize:Uo};function Ho(e){const t=this,n=[];let r=0,i,a,o;return s;function s(E){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,l,u)(E)}return u(E)}function l(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const D=t.events.length;let I=D,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){k=t.events[I][1].end;break}b(r);let L=D;for(;L<t.events.length;)t.events[L][1].end={...k},L++;return xe(t.events,I+1,0,t.events.slice(D)),t.events.length=L,u(E)}return s(E)}function u(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return m(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(On,h,c)(E)}function h(E){return i&&S(),b(r),p(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(E)}function p(E){return t.containerState={},e.attempt(On,f,m)(E)}function f(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function m(E){if(E===null){i&&S(),b(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),b(0),e.consume(E);return}return O(E)?(e.consume(E),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(E),w)}function v(E,D){const I=t.sliceStream(E);if(D&&I.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(I),t.parser.lazy[E.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const L=t.events.length;let F=L,_,x;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(_){x=t.events[F][1].end;break}_=!0}for(b(r),k=L;k<t.events.length;)t.events[k][1].end={...x},k++;xe(t.events,F+1,0,t.events.slice(L)),t.events.length=k}}function b(E){let D=n.length;for(;D-- >E;){const I=n[D];t.containerState=I[1],I[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 G(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ve(e){if(e===null||X(e)||Me(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 Jt={name:"attention",resolveAll:qo,tokenize:Wo};function qo(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},p={...e[n][1].start};Fn(c,-l),Fn(p,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:p},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=be(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=be(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=be(u,Ct(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=be(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=be(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 Wo(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ve(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=Ve(l),c=!h||h===2&&i||n.includes(l),p=!i||i===2&&h||n.includes(r);return u._open=!!(a===42?c:c&&(i||!p)),u._close=!!(a===42?p:p&&(h||!c)),t(l)}}function Fn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vo={name:"autolink",tokenize:Go};function Go(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return pe(f)?(e.consume(f),o):f===64?n(f):u(f)}function o(f){return f===43||f===45||f===46||he(f)?(r=1,s(f)):u(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||he(f))&&r++<32?(e.consume(f),s):(r=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||xt(f)?n(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),h):Ro(f)?(e.consume(f),u):n(f)}function h(f){return he(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),r=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||he(f))&&r++<63){const m=f===45?p:c;return e.consume(f),m}return n(f)}}const st={partial:!0,tokenize:Yo};function Yo(e,t,n){return r;function r(a){return q(a)?G(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||O(a)?t(a):n(a)}}const Pr={continuation:{tokenize:Qo},exit:Jo,name:"blockQuote",tokenize:Zo};function Zo(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 q(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Qo(e,t,n){const r=this;return i;function i(o){return q(o)?G(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 Jo(e){e.exit("blockQuote")}const Lr={name:"characterEscape",tokenize:Xo};function Xo(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 Oo(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const zr={name:"characterReference",tokenize:Ko};function Ko(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=Mo,h):(e.enter("characterReferenceValue"),a=7,o=Qt,h(c))}function h(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===he&&!cn(r.sliceSerialize(p))?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 _n={partial:!0,tokenize:ea},Bn={concrete:!0,name:"codeFenced",tokenize:$o};function $o(e,t,n){const r=this,i={partial:!0,tokenize:I};let a=0,o=0,s;return l;function l(k){return u(k)}function u(k){const L=r.events[r.events.length-1];return a=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===s?(o++,e.consume(k),h):o<3?n(k):(e.exit("codeFencedFenceSequence"),q(k)?G(e,c,"whitespace")(k):c(k))}function c(k){return k===null||O(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(_n,w,D)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||O(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):q(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),G(e,f,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),p)}function f(k){return k===null||O(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||O(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===s?n(k):(e.consume(k),m)}function w(k){return e.attempt(i,D,v)(k)}function v(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b}function b(k){return a>0&&q(k)?G(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||O(k)?e.check(_n,w,D)(k):(e.enter("codeFlowValue"),E(k))}function E(k){return k===null||O(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),E)}function D(k){return e.exit("codeFenced"),t(k)}function I(k,L,F){let _=0;return x;function x(M){return k.enter("lineEnding"),k.consume(M),k.exit("lineEnding"),T}function T(M){return k.enter("codeFencedFence"),q(M)?G(k,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):j(M)}function j(M){return M===s?(k.enter("codeFencedFenceSequence"),R(M)):F(M)}function R(M){return M===s?(_++,k.consume(M),R):_>=o?(k.exit("codeFencedFenceSequence"),q(M)?G(k,z,"whitespace")(M):z(M)):F(M)}function z(M){return M===null||O(M)?(k.exit("codeFencedFence"),L(M)):F(M)}}}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 Dt={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"),G(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):O(u)?e.attempt(ta,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||O(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):O(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):G(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):O(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)):O(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||O(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&&Ke(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),Ke(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ke(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ke(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ke(this.left,n.reverse())}}}function Ke(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jr(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,p=-1,f=n,m=0,w=0;const v=[w];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),c&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(w=p+1,v.push(w),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),p=v.length;p--;){const b=s.slice(v[p],v[p+1]),S=a.pop();l.push([S,S+b.length-1]),e.splice(S,2,b)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}const ca={resolve:fa,tokenize:pa},ha={partial:!0,tokenize:da};function fa(e){return jr(e),e}function pa(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):O(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"),G(e,a,"linePrefix")}function a(o){if(o===null||O(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(b){return b===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(b),e.exit(a),p):b===null||b===32||b===41||xt(b)?n(b):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(b))}function p(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(s),p(b)):b===null||b===60||O(b)?n(b):(e.consume(b),b===92?m:f)}function m(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function w(b){return!h&&(b===null||b===41||X(b))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(b)):h<u&&b===40?(e.consume(b),h++,w):b===41?(e.consume(b),h--,w):b===null||b===32||b===40||xt(b)?n(b):(e.consume(b),b===92?v:w)}function v(b){return b===40||b===41||b===92?(e.consume(b),w):w(b)}}function Mr(e,t,n,r,i,a){const o=this;let s=0,l;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),h}function h(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):O(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||O(f)||s++>999?(e.exit("chunkString"),h(f)):(e.consume(f),l||(l=!q(f)),f===92?p:c)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,c):c(f)}}function Or(e,t,n,r,i,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===o?(e.exit(a),l(o)):p===null?n(p):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),G(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||O(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:h)}function c(p){return p===o||p===92?(e.consume(p),h):h(p)}}function tt(e,t){let n;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?G(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(f){return e.enter("definition"),o(f)}function o(f){return Mr.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return X(f)?tt(e,u)(f):u(f)}function u(f){return Rr(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(ga,c,c)(f)}function c(f){return q(f)?G(e,p,"whitespace")(f):p(f)}function p(f){return f===null||O(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function xa(e,t,n){return r;function r(s){return X(s)?tt(e,i)(s):n(s)}function i(s){return Or(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return q(s)?G(e,o,"whitespace")(s):o(s)}function o(s){return s===null||O(s)?t(s):n(s)}}const ba={name:"hardBreakEscape",tokenize:ka};function ka(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return O(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||X(h)?(e.exit("atxHeadingSequence"),s(h)):n(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||O(h)?(e.exit("atxHeading"),t(h)):q(h)?G(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||X(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"],Hn=["pre","script","style","textarea"],Ea={concrete:!0,name:"htmlFlow",resolveTo:Ia,tokenize:Na},Ta={partial:!0,tokenize:Pa},Aa={partial:!0,tokenize:Da};function Ia(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 Na(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),p):g===47?(e.consume(g),a=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:d):pe(g)?(e.consume(g),o=String.fromCharCode(g),v):n(g)}function p(g){return g===45?(e.consume(g),i=2,f):g===91?(e.consume(g),i=5,s=0,m):pe(g)?(e.consume(g),i=4,r.interrupt?t:d):n(g)}function f(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:j:m):n(g)}function w(g){return pe(g)?(e.consume(g),o=String.fromCharCode(g),v):n(g)}function v(g){if(g===null||g===47||g===62||X(g)){const ce=g===47,ke=o.toLowerCase();return!ce&&!a&&Hn.includes(ke)?(i=1,r.interrupt?t(g):j(g)):Sa.includes(o.toLowerCase())?(i=6,ce?(e.consume(g),b):r.interrupt?t(g):j(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 b(g){return g===62?(e.consume(g),r.interrupt?t:j):n(g)}function S(g){return q(g)?(e.consume(g),S):x(g)}function E(g){return g===47?(e.consume(g),x):g===58||g===95||pe(g)?(e.consume(g),D):q(g)?(e.consume(g),E):x(g)}function D(g){return g===45||g===46||g===58||g===95||he(g)?(e.consume(g),D):I(g)}function I(g){return g===61?(e.consume(g),k):q(g)?(e.consume(g),I):E(g)}function k(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,L):q(g)?(e.consume(g),k):F(g)}function L(g){return g===l?(e.consume(g),l=null,_):g===null||O(g)?n(g):(e.consume(g),L)}function F(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||X(g)?I(g):(e.consume(g),F)}function _(g){return g===47||g===62||q(g)?E(g):n(g)}function x(g){return g===62?(e.consume(g),T):n(g)}function T(g){return g===null||O(g)?j(g):q(g)?(e.consume(g),T):n(g)}function j(g){return g===45&&i===2?(e.consume(g),Y):g===60&&i===1?(e.consume(g),ne):g===62&&i===4?(e.consume(g),$):g===63&&i===3?(e.consume(g),d):g===93&&i===5?(e.consume(g),B):O(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ta,se,R)(g)):g===null||O(g)?(e.exit("htmlFlowData"),R(g)):(e.consume(g),j)}function R(g){return e.check(Aa,z,se)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||O(g)?R(g):(e.enter("htmlFlowData"),j(g))}function Y(g){return g===45?(e.consume(g),d):j(g)}function ne(g){return g===47?(e.consume(g),o="",re):j(g)}function re(g){if(g===62){const ce=o.toLowerCase();return Hn.includes(ce)?(e.consume(g),$):j(g)}return pe(g)&&o.length<8?(e.consume(g),o+=String.fromCharCode(g),re):j(g)}function B(g){return g===93?(e.consume(g),d):j(g)}function d(g){return g===62?(e.consume(g),$):g===45&&i===2?(e.consume(g),d):j(g)}function $(g){return g===null||O(g)?(e.exit("htmlFlowData"),se(g)):(e.consume(g),$)}function se(g){return e.exit("htmlFlow"),t(g)}}function Da(e,t,n){const r=this;return i;function i(o){return O(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 La={name:"htmlText",tokenize:za};function za(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),I):d===63?(e.consume(d),E):pe(d)?(e.consume(d),F):n(d)}function u(d){return d===45?(e.consume(d),h):d===91?(e.consume(d),a=0,m):pe(d)?(e.consume(d),S):n(d)}function h(d){return d===45?(e.consume(d),f):n(d)}function c(d){return d===null?n(d):d===45?(e.consume(d),p):O(d)?(o=c,ne(d)):(e.consume(d),c)}function p(d){return d===45?(e.consume(d),f):c(d)}function f(d){return d===62?Y(d):d===45?p(d):c(d)}function m(d){const $="CDATA[";return d===$.charCodeAt(a++)?(e.consume(d),a===$.length?w:m):n(d)}function w(d){return d===null?n(d):d===93?(e.consume(d),v):O(d)?(o=w,ne(d)):(e.consume(d),w)}function v(d){return d===93?(e.consume(d),b):w(d)}function b(d){return d===62?Y(d):d===93?(e.consume(d),b):w(d)}function S(d){return d===null||d===62?Y(d):O(d)?(o=S,ne(d)):(e.consume(d),S)}function E(d){return d===null?n(d):d===63?(e.consume(d),D):O(d)?(o=E,ne(d)):(e.consume(d),E)}function D(d){return d===62?Y(d):E(d)}function I(d){return pe(d)?(e.consume(d),k):n(d)}function k(d){return d===45||he(d)?(e.consume(d),k):L(d)}function L(d){return O(d)?(o=L,ne(d)):q(d)?(e.consume(d),L):Y(d)}function F(d){return d===45||he(d)?(e.consume(d),F):d===47||d===62||X(d)?_(d):n(d)}function _(d){return d===47?(e.consume(d),Y):d===58||d===95||pe(d)?(e.consume(d),x):O(d)?(o=_,ne(d)):q(d)?(e.consume(d),_):Y(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),j):O(d)?(o=T,ne(d)):q(d)?(e.consume(d),T):_(d)}function j(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,R):O(d)?(o=j,ne(d)):q(d)?(e.consume(d),j):(e.consume(d),z)}function R(d){return d===i?(e.consume(d),i=void 0,M):d===null?n(d):O(d)?(o=R,ne(d)):(e.consume(d),R)}function z(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||X(d)?_(d):(e.consume(d),z)}function M(d){return d===47||d===62||X(d)?_(d):n(d)}function Y(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 q(d)?G(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:Oa,resolveTo:Fa,tokenize:_a},ja={tokenize:Ba},Ra={tokenize:Ha},Ma={tokenize:Ua};function Oa(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 Fa(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=be(s,e.slice(a+1,a+r+3)),s=be(s,[["enter",h,t]]),s=be(s,Ct(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=be(s,[["exit",h,t],e[o-2],e[o-1],["exit",u,t]]),s=be(s,e.slice(o+1)),s=be(s,[["exit",l,t]]),xe(e,a,e.length,s),e}function _a(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(p){return a?a._inactive?c(p):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(ja,h,o?h:c)(p):p===91?e.attempt(Ra,h,o?u:c)(p):o?h(p):c(p)}function u(p){return e.attempt(Ma,h,c)(p)}function h(p){return t(p)}function c(p){return a._balanced=!0,n(p)}}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 X(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 X(c)?tt(e,l)(c):h(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?Or(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):h(c)}function u(c){return X(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 Ha(e,t,n){const r=this;return i;function i(s){return Mr.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 qa={name:"labelStartImage",resolveAll:hn.resolveAll,tokenize:Wa};function Wa(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 Va={name:"labelStartLink",resolveAll:hn.resolveAll,tokenize:Ga};function Ga(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:Ya};function Ya(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),G(e,t,"linePrefix")}}const yt={name:"thematicBreak",tokenize:Za};function Za(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||O(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),q(u)?G(e,s,"whitespace")(u):s(u))}}const de={continuation:{tokenize:Ka},exit:es,name:"list",tokenize:Xa},Qa={partial:!0,tokenize:ts},Ja={partial:!0,tokenize:$a};function Xa(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(f){const m=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Qt(f)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(yt,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Qt(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(st,r.interrupt?n:h,e.attempt(Qa,p,c))}function h(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function c(f){return q(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Ka(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,G(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!q(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(Ja,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(de,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function $a(e,t,n){const r=this;return G(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 G(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!q(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"),q(u)?G(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||O(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,G(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:_r()},ss=Fr("string"),ls=Fr("text");function Fr(e){return{resolveAll:_r(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 p=-1;if(c)for(;++p<c.length;){const f=c[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function _r(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},fs={[-2]:Dt,[-1]:Dt,32:Dt},ps={35:wa,42:yt,45:[Un,yt],60:Ea,61:Un,95:yt,96:Bn,126:Bn},ds={38:zr,92:Lr},ms={[-5]:Pt,[-4]:Pt,[-3]:Pt,33:qa,38:zr,42:Jt,60:[Vo,La],91:Va,92:[ba,Lr],93:hn,95:Jt,96:ia},gs={null:[Jt,as]},ys={null:[42,95]},xs={null:[]},bs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ys,contentInitial:hs,disable:xs,document:cs,flow:ps,flowInitial:fs,insideSpan:gs,string:ds,text:ms},Symbol.toStringTag,{value:"Module"}));function ks(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:L(I),check:L(k),consume:S,enter:E,exit:D,interrupt:L(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:c};let h=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function c(T){return o=be(o,T),v(),o[o.length-1]!==null?[]:(F(t,0),u.events=Ct(a,u.events,u),u.events)}function p(T,j){return vs(f(T),j)}function f(T){return ws(o,T)}function m(){const{_bufferIndex:T,_index:j,line:R,column:z,offset:M}=r;return{_bufferIndex:T,_index:j,line:R,column:z,offset:M}}function w(T){i[T.line]=T.column,x()}function v(){let T;for(;r._index<o.length;){const j=o[r._index];if(typeof j=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<j.length;)b(j.charCodeAt(r._bufferIndex));else b(j)}}function b(T){h=h(T)}function S(T){O(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,j){const R=j||{};return R.type=T,R.start=m(),u.events.push(["enter",R,u]),s.push(R),R}function D(T){const j=s.pop();return j.end=m(),u.events.push(["exit",j,u]),j}function I(T,j){F(T,j.from)}function k(T,j){j.restore()}function L(T,j){return R;function R(z,M,Y){let ne,re,B,d;return Array.isArray(z)?se(z):"tokenize"in z?se([z]):$(z);function $(W){return ee;function ee(Z){const le=Z!==null&&W[Z],te=Z!==null&&W.null,Q=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(te)?te:te?[te]:[]];return se(Q)(Z)}}function se(W){return ne=W,re=0,W.length===0?Y:g(W[re])}function g(W){return ee;function ee(Z){return d=_(),B=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?ke():W.tokenize.call(j?Object.assign(Object.create(u),j):u,l,ce,ke)(Z)}}function ce(W){return T(B,d),M}function ke(W){return d.restore(),++re<ne.length?g(ne[re]):Y}}}function F(T,j){T.resolveAll&&!a.includes(T)&&a.push(T),T.resolve&&xe(u.events,j,u.events.length-j,T.resolve(u.events.slice(j),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function _(){const T=m(),j=u.previous,R=u.currentConstruct,z=u.events.length,M=Array.from(s);return{from:z,restore:Y};function Y(){r=T,u.previous=j,u.currentConstruct=R,u.events.length=z,s=M,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:Nr([bs,...(e||{}).extensions||[]]),content:i(Fo),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 ks(r,a,s)}}}function Ss(e){for(;!jr(e););return e}const qn=/[\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,p,f;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(qn.lastIndex=c,u=qn.exec(a),p=u&&u.index!==void 0?u.index:a.length,f=a.charCodeAt(p),!u){t=a.slice(c);break}if(f===10&&c===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<p&&(l.push(a.slice(c,p)),e+=p-c),f){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=p+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 As(e){return e.replace(Ts,Is)}function Is(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Dr(n.slice(a?2:1),a?16:10)}return cn(n)||e}const Br={}.hasOwnProperty;function Ns(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ds(n)(Ss(Cs(n).document().write(Es()(e,t,!0))))}function Ds(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(vn),autolinkProtocol:_,autolinkEmail:_,atxHeading:a(ut),blockQuote:a(te),characterEscape:_,characterReference:_,codeFenced:a(Q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Q,o),codeText:a(ie,o),codeTextData:_,data:_,codeFlowValue:_,definition:a(Ee),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ze),hardBreakEscape:a(Fe),hardBreakTrailing:a(Fe),htmlFlow:a(ct,o),htmlFlowData:_,htmlText:a(ct,o),htmlTextData:_,image:a(Ei),label:o,link:a(vn),listItem:a(Ti),listItemValue:p,listOrdered:a(Cn,c),listUnordered:a(Cn),paragraph:a(Ai),reference:g,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ut),strong:a(Ii),thematicBreak:a(Di)},exit:{atxHeading:l(),atxHeadingSequence:I,autolink:l(),autolinkEmail:le,autolinkProtocol:Z,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:W,characterReference:ee,codeFenced:l(v),codeFencedFence:w,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:x,codeIndented:l(b),codeText:l(M),codeTextData:x,data:x,definition:l(),definitionDestinationString:D,definitionLabelString:S,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(R),htmlFlowData:x,htmlText:l(z),htmlTextData:x,image:l(ne),label:B,labelText:re,lineEnding:T,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ce,resourceDestinationString:d,resourceTitleString:$,resource:se,setextHeading:l(F),setextHeadingLineSequence:L,setextHeadingText:k,strong:l(),thematicBreak:l()}};Hr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let P={type:"root",children:[]};const H={stack:[P],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:h,data:n},V=[];let J=-1;for(;++J<C.length;)if(C[J][1].type==="listOrdered"||C[J][1].type==="listUnordered")if(C[J][0]==="enter")V.push(J);else{const we=V.pop();J=i(C,we,J)}for(J=-1;++J<C.length;){const we=t[C[J][0]];Br.call(we,C[J][1].type)&&we[C[J][1].type].call(Object.assign({sliceSerialize:C[J][2].sliceSerialize},H),C[J][1])}if(H.tokenStack.length>0){const we=H.tokenStack[H.tokenStack.length-1];(we[1]||Wn).call(H,void 0,we[0])}for(P.position={start:Ne(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Ne(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)P=t.transforms[J](P)||P;return P}function i(C,P,H){let V=P-1,J=-1,we=!1,je,Te,Ze,Qe;for(;++V<=H;){const ge=C[V];switch(ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ge[0]==="enter"?J++:J--,Qe=void 0;break}case"lineEndingBlank":{ge[0]==="enter"&&(je&&!Qe&&!J&&!Ze&&(Ze=V),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!J&&ge[0]==="enter"&&ge[1].type==="listItemPrefix"||J===-1&&ge[0]==="exit"&&(ge[1].type==="listUnordered"||ge[1].type==="listOrdered")){if(je){let _e=V;for(Te=void 0;_e--;){const Ae=C[_e];if(Ae[1].type==="lineEnding"||Ae[1].type==="lineEndingBlank"){if(Ae[0]==="exit")continue;Te&&(C[Te][1].type="lineEndingBlank",we=!0),Ae[1].type="lineEnding",Te=_e}else if(!(Ae[1].type==="linePrefix"||Ae[1].type==="blockQuotePrefix"||Ae[1].type==="blockQuotePrefixWhitespace"||Ae[1].type==="blockQuoteMarker"||Ae[1].type==="listItemIndent"))break}Ze&&(!Te||Ze<Te)&&(je._spread=!0),je.end=Object.assign({},Te?C[Te][1].start:ge[1].end),C.splice(Te||V,0,["exit",je,ge[2]]),V++,H++}if(ge[1].type==="listItemPrefix"){const _e={type:"listItem",_spread:!1,start:Object.assign({},ge[1].start),end:void 0};je=_e,C.splice(V,0,["enter",_e,ge[2]]),V++,H++,Ze=void 0,Qe=!0}}}return C[P][1]._spread=we,H}function a(C,P){return H;function H(V){s.call(this,C(V),V),P&&P.call(this,V)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(C,P,H){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,H||void 0]),C.position={start:Ne(P.start),end:void 0}}function l(C){return P;function P(H){C&&C.call(this,H),u.call(this,H)}}function u(C,P){const H=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==C.type&&(P?P.call(this,C,V[0]):(V[1]||Wn).call(this,C,V[0]));else throw new Error("Cannot close `"+C.type+"` ("+et({start:C.start,end:C.end})+"): itβs not open");H.position.end=Ne(C.end)}function h(){return un(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(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 f(){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 b(){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(),H=this.stack[this.stack.length-1];H.label=P,H.identifier=ve(this.sliceSerialize(C)).toLowerCase()}function E(){const C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function D(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function I(C){const P=this.stack[this.stack.length-1];if(!P.depth){const H=this.sliceSerialize(C).length;P.depth=H}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function L(C){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function _(C){const H=this.stack[this.stack.length-1].children;let V=H[H.length-1];(!V||V.type!=="text")&&(V=Ni(),V.position={start:Ne(C.start),end:void 0},H.push(V)),this.stack.push(V)}function x(C){const P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=Ne(C.end)}function T(C){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=P.children[P.children.length-1];H.position.end=Ne(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(_.call(this,C),x.call(this,C))}function j(){this.data.atHardBreak=!0}function R(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function z(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function M(){const C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function Y(){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),H=this.stack[this.stack.length-2];H.label=As(P),H.identifier=ve(P).toLowerCase()}function B(){const C=this.stack[this.stack.length-1],P=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const V=C.children;H.children=V}else H.alt=P}function d(){const C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function $(){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(),H=this.stack[this.stack.length-1];H.label=P,H.identifier=ve(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function ke(C){this.data.characterReferenceType=C.type}function W(C){const P=this.sliceSerialize(C),H=this.data.characterReferenceType;let V;H?(V=Dr(P,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=cn(P);const J=this.stack[this.stack.length-1];J.value+=V}function ee(C){const P=this.stack.pop();P.position.end=Ne(C.end)}function Z(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 ie(){return{type:"inlineCode",value:""}}function Ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function Fe(){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 Ai(){return{type:"paragraph",children:[]}}function Ii(){return{type:"strong",children:[]}}function Ni(){return{type:"text",value:""}}function Di(){return{type:"thematicBreak"}}}function Ne(e){return{line:e.line,column:e.column,offset:e.offset}}function Hr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hr(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 Wn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+et({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+et({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+et({start:t.start,end:t.end})+") is still open")}function Ls(e){const t=this;t.parser=n;function n(r){return Ns(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zs(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 js(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
5
5
|
`}]}function Rs(e,t){const n=t.value?t.value+`
|
|
6
|
-
`:"",r={}
|
|
6
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ms(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Os(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fs(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ye(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _s(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bs(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ur(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Hs(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ur(e,t);const i={src:Ye(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Us(e,t){const n={src:Ye(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function qs(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ws(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ur(e,t);const i={href:Ye(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Vs(e,t){const n={href:Ye(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gs(e,t,n){const r=e.all(t),i=n?Ys(n):qr(t),a={},o=[];if(typeof t.checked=="boolean"){const h=r[0];let c;h&&h.type==="element"&&h.tagName==="p"?c=h:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const h=r[s];(i||s!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
|
|
7
7
|
`}),h.type==="element"&&h.tagName==="p"&&!i?o.push(...h.children):o.push(h)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
8
8
|
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Ys(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=qr(n[r])}return t}function qr(e){const t=e.spread;return t??e.children.length>1}function Zs(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Qs(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Js(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Xs(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ks(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=on(t.children[1]),l=vr(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $s(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],p={},f=o?o[l]:void 0;f&&(p.align=f);let m={type:"element",tagName:a,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,h),e.applyData(t,h)}function el(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Vn=9,Gn=32;function tl(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Yn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Yn(t.slice(i),i>0,!1)),a.join("")}function Yn(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Vn||a===Gn;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Vn||a===Gn;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function nl(e,t){const n={type:"text",value:tl(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function rl(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const il={blockquote:zs,break:js,code:Rs,delete:Ms,emphasis:Os,footnoteReference:Fs,heading:_s,html:Bs,imageReference:Hs,image:Us,inlineCode:qs,linkReference:Ws,link:Vs,listItem:Gs,list:Zs,paragraph:Qs,root:Js,strong:Xs,table:Ks,tableCell:el,tableRow:$s,text:nl,thematicBreak:rl,toml:ht,yaml:ht,definition:ht,footnoteDefinition:ht};function ht(){}const Wr=-1,St=0,nt=1,bt=2,fn=3,pn=4,dn=5,mn=6,Vr=7,Gr=8,Zn=typeof self=="object"?self:globalThis,ol=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case St:case Wr:return n(o,i);case nt:{const s=n([],i);for(const l of o)s.push(r(l));return s}case bt:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case fn:return n(new Date(o),i);case pn:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case dn:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case mn:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Vr:{const{name:s,message:l}=o;return n(new Zn[s](l),i)}case Gr:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Zn[a](o),i)};return r},Qn=e=>ol(new Map,e)(0),He="",{toString:al}={},{keys:sl}=Object,$e=e=>{const t=typeof e;if(t!=="object"||!e)return[St,t];const n=al.call(e).slice(8,-1);switch(n){case"Array":return[nt,He];case"Object":return[bt,He];case"Date":return[fn,He];case"RegExp":return[pn,He];case"Map":return[dn,He];case"Set":return[mn,He];case"DataView":return[nt,n]}return n.includes("Array")?[nt,n]:n.includes("Error")?[Vr,n]:[bt,n]},ft=([e,t])=>e===St&&(t==="function"||t==="symbol"),ll=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=$e(o);switch(s){case St:{let h=o;switch(l){case"bigint":s=Gr,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return i([Wr],o)}return i([s,h],o)}case nt:{if(l){let p=o;return l==="DataView"?p=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(o)),i([l,[...p]],o)}const h=[],c=i([s,h],o);for(const p of o)h.push(a(p));return c}case bt:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const h=[],c=i([s,h],o);for(const p of sl(o))(e||!ft($e(o[p])))&&h.push([a(p),a(o[p])]);return c}case fn:return i([s,o.toISOString()],o);case pn:{const{source:h,flags:c}=o;return i([s,{source:h,flags:c}],o)}case dn:{const h=[],c=i([s,h],o);for(const[p,f]of o)(e||!(ft($e(p))||ft($e(f))))&&h.push([a(p),a(f)]);return c}case mn:{const h=[],c=i([s,h],o);for(const p of o)(e||!ft($e(p)))&&h.push(a(p));return c}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},Jn=(e,{json:t,lossy:n}={})=>{const r=[];return ll(!(t||n),!!t,new Map,r)(e),r},kt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Qn(Jn(e,t)):structuredClone(e):(e,t)=>Qn(Jn(e,t));function ul(e,t){const n=[{type:"text",value:"β©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cl(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function hl(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ul,r=e.options.footnoteBackLabel||cl,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const h=e.all(u),c=String(u.identifier).toUpperCase(),p=Ye(c.toLowerCase());let f=0;const m=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++f<=w;){m.length>0&&m.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,f);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const v=h[h.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const S=v.children[v.children.length-1];S&&S.type==="text"?S.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else h.push(...m);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...kt(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
9
9
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|