@dsrcjs/ai-widget 1.0.11 → 1.0.13

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/index.js CHANGED
@@ -1 +1 @@
1
- import{k as a,D as s,m as t,l as m}from"./index-2rcu8aIP.js";export{a as AiDanaChatElement,s as DEFAULT_API_URL,t as mount,m as mountLauncher};
1
+ import{k as a,D as s,m as t,l as m}from"./index-CzUSbOrl.js";export{a as AiDanaChatElement,s as DEFAULT_API_URL,t as mount,m as mountLauncher};
@@ -1,4 +1,4 @@
1
- import{g as Uo,j as T,d as Se,v as Ce,u as vt,w as Dn,A as Ho,e as Ln,f as Vo,C as Fn,h as qo,i as Wo}from"./index-2rcu8aIP.js";function $o(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ko=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jo={};function zn(e,t){return(Jo.jsx?Qo:Ko).test(e)}const Xo=/[ \t\n\f\r]/g;function Yo(e){return typeof e=="object"?e.type==="text"?Mn(e.value):!1:Mn(e)}function Mn(e){return e.replace(Xo,"")===""}class Ve{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ve.prototype.normal={},Ve.prototype.property={},Ve.prototype.space=void 0;function On(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ve(n,r,t)}function bt(e){return e.toLowerCase()}class te{constructor(t,n){this.attribute=n,this.property=t}}te.prototype.attribute="",te.prototype.booleanish=!1,te.prototype.boolean=!1,te.prototype.commaOrSpaceSeparated=!1,te.prototype.commaSeparated=!1,te.prototype.defined=!1,te.prototype.mustUseProperty=!1,te.prototype.number=!1,te.prototype.overloadedBoolean=!1,te.prototype.property="",te.prototype.spaceSeparated=!1,te.prototype.space=void 0;let Zo=0;const M=Ee(),K=Ee(),wt=Ee(),C=Ee(),H=Ee(),Ie=Ee(),oe=Ee();function Ee(){return 2**++Zo}const St=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:K,commaOrSpaceSeparated:oe,commaSeparated:Ie,number:C,overloadedBoolean:wt,spaceSeparated:H},Symbol.toStringTag,{value:"Module"})),Ct=Object.keys(St);class It extends te{constructor(t,n,r,o){let i=-1;if(super(t,n),jn(this,"space",o),typeof r=="number")for(;++i<Ct.length;){const l=Ct[i];jn(this,Ct[i],(r&St[l])===St[l])}}}It.prototype.defined=!0;function jn(e,t,n){n&&(e[t]=n)}function Me(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new It(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[bt(r)]=r,n[bt(i.attribute)]=r}return new Ve(t,n,e.space)}const Nn=Me({properties:{ariaActiveDescendant:null,ariaAtomic:K,ariaAutoComplete:null,ariaBusy:K,ariaChecked:K,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:H,ariaCurrent:null,ariaDescribedBy:H,ariaDetails:null,ariaDisabled:K,ariaDropEffect:H,ariaErrorMessage:null,ariaExpanded:K,ariaFlowTo:H,ariaGrabbed:K,ariaHasPopup:null,ariaHidden:K,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:H,ariaLevel:C,ariaLive:null,ariaModal:K,ariaMultiLine:K,ariaMultiSelectable:K,ariaOrientation:null,ariaOwns:H,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:K,ariaReadOnly:K,ariaRelevant:null,ariaRequired:K,ariaRoleDescription:H,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:K,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Rn(e,t){return t in e?e[t]:t}function _n(e,t){return Rn(e,t.toLowerCase())}const Go=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:H,accessKey:H,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alpha:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:H,autoFocus:M,autoPlay:M,blocking:H,capture:null,charSet:null,checked:M,cite:null,className:H,closedBy:null,colorSpace:null,cols:C,colSpan:C,command:null,commandFor:null,content:null,contentEditable:K,controls:M,controlsList:H,coords:C|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:wt,draggable:K,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:H,height:C,hidden:wt,high:C,href:null,hrefLang:null,htmlFor:H,httpEquiv:H,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:H,itemRef:H,itemScope:M,itemType:H,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:C,pattern:null,ping:H,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:H,required:M,reversed:M,rows:C,rowSpan:C,sandbox:H,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootCustomElementRegistry:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shadowRootSerializable:M,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:K,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:H,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:M,disablePictureInPicture:M,disableRemotePlayback:M,exportParts:Ie,part:H,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:_n}),ei=Me({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",maskType:"mask-type",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:oe,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:H,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:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:oe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C,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:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:H,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oe,rev:oe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oe,requiredFeatures:oe,requiredFonts:oe,requiredFormats:oe,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:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:oe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oe,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rn}),Bn=Me({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()}}),Un=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_n}),Hn=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ti={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"},ni=/[A-Z]/g,Vn=/-[a-z]/g,ri=/^data[-\w.:]+$/i;function oi(e,t){const n=bt(t);let r=t,o=te;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ri.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Vn,li);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Vn.test(i)){let l=i.replace(ni,ii);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=It}return new o(r,t)}function ii(e){return"-"+e.toLowerCase()}function li(e){return e.charAt(1).toUpperCase()}const si=On([Nn,Go,Bn,Un,Hn],"html"),Et=On([Nn,ei,Bn,Un,Hn],"svg");function ai(e){return e.join(" ").trim()}var qn=/\/\*(?:[^*]|\*(?!\/))*\*\//g,ci=/\n/g,ui=/^\s*/,fi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pi=/^:\s*/,hi=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,di=/^[;\s]*/,mi=`
1
+ import{g as Uo,j as T,d as Se,v as Ce,u as vt,w as Dn,A as Ho,e as Ln,f as Vo,C as Fn,h as qo,i as Wo}from"./index-CzUSbOrl.js";function $o(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ko=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jo={};function zn(e,t){return(Jo.jsx?Qo:Ko).test(e)}const Xo=/[ \t\n\f\r]/g;function Yo(e){return typeof e=="object"?e.type==="text"?Mn(e.value):!1:Mn(e)}function Mn(e){return e.replace(Xo,"")===""}class Ve{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ve.prototype.normal={},Ve.prototype.property={},Ve.prototype.space=void 0;function On(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ve(n,r,t)}function bt(e){return e.toLowerCase()}class te{constructor(t,n){this.attribute=n,this.property=t}}te.prototype.attribute="",te.prototype.booleanish=!1,te.prototype.boolean=!1,te.prototype.commaOrSpaceSeparated=!1,te.prototype.commaSeparated=!1,te.prototype.defined=!1,te.prototype.mustUseProperty=!1,te.prototype.number=!1,te.prototype.overloadedBoolean=!1,te.prototype.property="",te.prototype.spaceSeparated=!1,te.prototype.space=void 0;let Zo=0;const M=Ee(),K=Ee(),wt=Ee(),C=Ee(),H=Ee(),Ie=Ee(),oe=Ee();function Ee(){return 2**++Zo}const St=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:K,commaOrSpaceSeparated:oe,commaSeparated:Ie,number:C,overloadedBoolean:wt,spaceSeparated:H},Symbol.toStringTag,{value:"Module"})),Ct=Object.keys(St);class It extends te{constructor(t,n,r,o){let i=-1;if(super(t,n),jn(this,"space",o),typeof r=="number")for(;++i<Ct.length;){const l=Ct[i];jn(this,Ct[i],(r&St[l])===St[l])}}}It.prototype.defined=!0;function jn(e,t,n){n&&(e[t]=n)}function Me(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new It(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[bt(r)]=r,n[bt(i.attribute)]=r}return new Ve(t,n,e.space)}const Nn=Me({properties:{ariaActiveDescendant:null,ariaAtomic:K,ariaAutoComplete:null,ariaBusy:K,ariaChecked:K,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:H,ariaCurrent:null,ariaDescribedBy:H,ariaDetails:null,ariaDisabled:K,ariaDropEffect:H,ariaErrorMessage:null,ariaExpanded:K,ariaFlowTo:H,ariaGrabbed:K,ariaHasPopup:null,ariaHidden:K,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:H,ariaLevel:C,ariaLive:null,ariaModal:K,ariaMultiLine:K,ariaMultiSelectable:K,ariaOrientation:null,ariaOwns:H,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:K,ariaReadOnly:K,ariaRelevant:null,ariaRequired:K,ariaRoleDescription:H,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:K,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Rn(e,t){return t in e?e[t]:t}function _n(e,t){return Rn(e,t.toLowerCase())}const Go=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:H,accessKey:H,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alpha:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:H,autoFocus:M,autoPlay:M,blocking:H,capture:null,charSet:null,checked:M,cite:null,className:H,closedBy:null,colorSpace:null,cols:C,colSpan:C,command:null,commandFor:null,content:null,contentEditable:K,controls:M,controlsList:H,coords:C|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:wt,draggable:K,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:H,height:C,hidden:wt,high:C,href:null,hrefLang:null,htmlFor:H,httpEquiv:H,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:H,itemRef:H,itemScope:M,itemType:H,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:C,pattern:null,ping:H,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:H,required:M,reversed:M,rows:C,rowSpan:C,sandbox:H,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootCustomElementRegistry:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shadowRootSerializable:M,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:K,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:H,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:M,disablePictureInPicture:M,disableRemotePlayback:M,exportParts:Ie,part:H,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:_n}),ei=Me({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",maskType:"mask-type",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:oe,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:H,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:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:oe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C,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:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:H,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oe,rev:oe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oe,requiredFeatures:oe,requiredFonts:oe,requiredFormats:oe,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:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:oe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oe,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rn}),Bn=Me({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()}}),Un=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_n}),Hn=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ti={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"},ni=/[A-Z]/g,Vn=/-[a-z]/g,ri=/^data[-\w.:]+$/i;function oi(e,t){const n=bt(t);let r=t,o=te;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ri.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Vn,li);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Vn.test(i)){let l=i.replace(ni,ii);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=It}return new o(r,t)}function ii(e){return"-"+e.toLowerCase()}function li(e){return e.charAt(1).toUpperCase()}const si=On([Nn,Go,Bn,Un,Hn],"html"),Et=On([Nn,ei,Bn,Un,Hn],"svg");function ai(e){return e.join(" ").trim()}var qn=/\/\*(?:[^*]|\*(?!\/))*\*\//g,ci=/\n/g,ui=/^\s*/,fi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pi=/^:\s*/,hi=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,di=/^[;\s]*/,mi=`
2
2
  `,Wn="/",$n="*",qe="",gi="comment",yi="declaration";function xi(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(m){var y=m.match(ci);y&&(n+=y.length);var b=m.lastIndexOf(mi);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(y){return y.position=new l(m),c(),y}}function l(m){this.start=m,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function s(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function a(m){var y=m.exec(e);if(y){var b=y[0];return o(b),e=e.slice(b.length),y}}function c(){a(ui)}function u(m){for(var y;y=f();)m.push(y);return m}function f(){var m=i();if(!(Wn!=e.charAt(0)||$n!=e.charAt(1))){for(var y=2;qe!=e.charAt(y)&&($n!=e.charAt(y)||Wn!=e.charAt(y+1));)++y;if(y+=2,qe===e.charAt(y-1))return s("End of comment missing");var b=e.slice(2,y-2);return r+=2,o(b),e=e.slice(y),r+=2,m({type:gi,comment:b})}}function h(){var m=i(),y=a(fi);if(y){if(f(),!a(pi))return s("property missing ':'");var b=a(hi),x=m({type:yi,property:y[0].replace(qn,qe).trim(),value:b?b[0].replace(qn,qe).trim():qe});return a(di),x}}function p(){var m=[];u(m);for(var y;y=h();)m.push(y),u(m);return m}return c(),p()}function ki(e,t){let n=null;if(!e||typeof e!="string")return n;const r=xi(e),o=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:l,value:s}=i;o?t(l,s,i):s&&(n=n??{},n[l]=s)}),n}const Kn=Qn("end"),At=Qn("start");function Qn(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 vi(e){const t=At(e),n=Kn(e);if(t&&n)return{start:t,end:n}}function We(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jn(e.position):"start"in e||"end"in e?Jn(e):"line"in e||"column"in e?Tt(e):""}function Tt(e){return Xn(e&&e.line)+":"+Xn(e&&e.column)}function Jn(e){return Tt(e&&e.start)+"-"+Tt(e&&e.end)}function Xn(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(l=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=s?s.line:void 0,this.name=We(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}G.prototype.file="",G.prototype.name="",G.prototype.reason="",G.prototype.message="",G.prototype.stack="",G.prototype.column=void 0,G.prototype.line=void 0,G.prototype.ancestors=void 0,G.prototype.cause=void 0,G.prototype.fatal=void 0,G.prototype.place=void 0,G.prototype.ruleId=void 0,G.prototype.source=void 0;const Pt={}.hasOwnProperty,bi=new Map,wi=/[A-Z]/g,Si=/-([a-z])/g,Ci=new Set(["table","tbody","thead","tfoot","tr"]),Ii=new Set(["td","th"]),Yn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(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=Mi(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=zi(n,t.jsx,t.jsxs)}const o={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"?Et:si,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Zn(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Zn(e,t,n){if(t.type==="element")return Ai(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ti(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Di(e,t,n);if(t.type==="mdxjsEsm")return Pi(e,t);if(t.type==="root")return Li(e,t,n);if(t.type==="text")return Fi(e,t)}function Ai(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Et,e.schema=o),e.ancestors.push(t);const i=er(e,t.tagName,!1),l=Oi(e,t);let s=Lt(e,t);return Ci.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!Yo(a):!0})),Gn(e,l,i,t),Dt(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function Ti(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$e(e,t.position)}function Pi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$e(e,t.position)}function Di(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Et,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:er(e,t.name,!0),l=ji(e,t),s=Lt(e,t);return Gn(e,l,i,t),Dt(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function Li(e,t,n){const r={};return Dt(r,Lt(e,t)),e.create(t,e.Fragment,r,n)}function Fi(e,t){return t.value}function Gn(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Dt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zi(e,t,n){return r;function r(o,i,l,s){const a=Array.isArray(l.children)?n:t;return s?a(i,l,s):a(i,l)}}function Mi(e,t){return n;function n(r,o,i,l){const s=Array.isArray(i.children),a=At(r);return t(o,i,l,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Oi(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Pt.call(t.properties,o)){const i=Ni(e,o,t.properties[o]);if(i){const[l,s]=i;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&Ii.has(t.tagName)?r=s:n[l]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ji(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const i=o.expression;i.type;const l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else $e(e,t.position);else{const{name:o}=r;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else $e(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Lt(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:bi;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const c=o.get(a)||0;l=a+"-"+c,o.set(a,c+1)}}const s=Zn(e,i,l);s!==void 0&&n.push(s)}return n}function Ni(e,t,n){if(n==null||typeof n=="number"&&Number.isNaN(n))return;const r=oi(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?$o(n):ai(n)),r.property==="style"?["style",typeof n=="object"?e.stylePropertyNameCase==="dom"?n:_i(n):Ri(e,String(n))]:[e.elementAttributeNameCase==="react"&&r.space?ti[r.property]||r.property:r.attribute,n]}function Ri(e,t){const n={};try{ki(t,function(r,o){if(r&&o){let i=r;i.slice(0,2)!=="--"&&(i=i.toLowerCase(),e.stylePropertyNameCase==="dom"&&(i.slice(0,4)==="-ms-"&&(i=i.slice(1)),i=i.replace(Si,Hi))),n[i]=o}})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,i=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Yn+"#cannot-parse-style-attribute",i}return n}function er(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,l;for(;++i<o.length;){const s=zn(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=l}else r=zn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Pt.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);$e(e)}function $e(e,t){const n=new G("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=Yn+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _i(e){const t={};let n;for(n in e)Pt.call(e,n)&&(t[Bi(n)]=e[n]);return t}function Bi(e){if(e.slice(0,2)==="--")return e;let t=e.replace(wi,Ui);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ui(e){return"-"+e.toLowerCase()}function Hi(e,t){return t.toUpperCase()}const Ft={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"]},Vi={};function zt(e,t){const n=Vi,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tr(e,r,o)}function tr(e,t,n){if(qi(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 nr(e.children,t,n)}return Array.isArray(e)?nr(e,t,n):""}function nr(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=tr(e[o],t,n);return r.join("")}function qi(e){return!!(e&&typeof e=="object")}const rr=document.createElement("i");function Mt(e){const t="&"+e+";";rr.innerHTML=t;const n=rr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ue(e,t,n,r){const o=e.length;let i=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function le(e,t){return e.length>0?(ue(e,e.length,0,t),e):t}const or={}.hasOwnProperty;function ir(e){const t={};let n=-1;for(;++n<e.length;)Wi(t,e[n]);return t}function Wi(e,t){let n;for(n in t){const r=(or.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){or.call(r,i)||(r[i]=[]);const l=o[i];$i(r[i],Array.isArray(l)?l:l?[l]:[])}}}function $i(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ue(e,0,0,r)}function lr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const X=ve(/[A-Za-z]/),Y=ve(/[\dA-Za-z]/),Ki=ve(/[#-'*+\--9=?A-Z^-~]/);function Ge(e){return e!==null&&(e<32||e===127)}const Ot=ve(/\d/),Qi=ve(/[\dA-Fa-f]/),sr=ve(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const et=ve(/\p{P}|\p{S}/u),Ae=ve(/\s/);function ve(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Y(e.charCodeAt(n+1))&&Y(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(l=String.fromCharCode(i,s),o=1):l="\uFFFD"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function _(e,t,n,r){const o=r?r-1:1/0;let i=0;return l;function l(a){return j(a)?(e.enter(n),s(a)):t(a)}function s(a){return j(a)&&i++<o?(e.consume(a),s):(e.exit(n),t(a))}}function ar(e,t,n,r,o,i){let l=0;return s;function s(u){return j(u)?(e.enter(r),a(u)):c(u)}function a(u){return j(u)&&l<i?(e.consume(u),l++,a):(e.exit(r),c(u))}function c(u){return l>=o?t(u):n(u)}}const Ji={tokenize:Xi};function Xi(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),i(s)}function i(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return P(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}let tt=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){cr(this,e,t,n,!1)}addBefore(e,t,n){cr(this,e,t,n,!0)}consume(e){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const o of r)e.push(o);r=n.pop()}this.map.length=0,this.index.clear()}};function cr(e,t,n,r,o){if(n===0&&r.length===0)return;const i=e.index.get(t);if(i){i[1]+=n,o?(r.push(...i[2]),i[2]=r):i[2].push(...r);return}const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const Yi={tokenize:Zi},ur={tokenize:Gi};function Zi(e){const t=this,n=[];let r=0,o,i,l;return s;function s(S){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,a,c)(S)}return c(S)}function a(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&E();const L=t.events.length;let F=L,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){w=t.events[F][1].end;break}x(r);let O=L;for(;O<t.events.length;)t.events[O][1].end={...w},O++;const B=new tt;return B.add(F+1,0,t.events.slice(L)),B.add(L,O-L,[]),B.consume(t.events),c(S)}return s(S)}function c(S){if(r===n.length){if(!o)return h(S);if(o.currentConstruct&&o.currentConstruct.concrete)return m(S);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ur,u,f)(S)}function u(S){return o&&E(),x(r),h(S)}function f(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,m(S)}function h(S){return t.containerState={},e.attempt(ur,p,m)(S)}function p(S){return r++,n.push([t.currentConstruct,t.containerState]),h(S)}function m(S){if(S===null){o&&E(),x(0),e.consume(S);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),y(S)}function y(S){if(S===null){b(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return P(S)?(e.consume(S),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),y)}function b(S,L){const F=t.sliceStream(S);if(L&&F.push(null),S.previous=i,i&&(i.next=S),i=S,o.defineSkip(S.start),o.write(F),t.parser.lazy[S.start.line]){let w=o.events.length;for(;w--;)if(o.events[w][1].start.offset<l&&(!o.events[w][1].end||o.events[w][1].end.offset>l))return;const O=t.events.length;let B=O,$,k;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if($){k=t.events[B][1].end;break}$=!0}for(x(r),w=O;w<t.events.length;)t.events[w][1].end={...k},w++;const A=new tt;A.add(B+1,0,t.events.slice(O)),A.add(O,w-O,[]),A.consume(t.events)}}function x(S){let L=n.length;for(;L-- >S;){const F=n[L];t.containerState=F[1],F[0].exit.call(t,e)}n.length=S}function E(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Gi(e,t,n){return _(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function be(e){if(e===null||V(e)||Ae(e))return 1;if(et(e))return 2}function nt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const jt={name:"attention",resolveAll:el,tokenize:tl};function el(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let o=n;for(;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[o][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const i=e[o][1].end.offset-e[o][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,l={...e[o][1].end},s={...e[n][1].start};fr(l,-i),fr(s,i);const a={type:i>1?"strongSequence":"emphasisSequence",start:l,end:{...e[o][1].end}},c={type:i>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:s},u={type:i>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},f={type:i>1?"strong":"emphasis",start:{...a.start},end:{...c.end}};e[o][1].end={...a.start},e[n][1].start={...c.end},r=[],e[o][1].end.offset-e[o][1].start.offset&&(r=le(r,[["enter",e[o][1],t],["exit",e[o][1],t]])),r=le(r,[["enter",f,t],["enter",a,t],["exit",a,t],["enter",u,t]]),r=le(r,nt(t.parser.constructs.insideSpan.null,e.slice(o+1,n),t)),r=le(r,[["exit",u,t],["enter",c,t],["exit",c,t],["exit",f,t]]);let h=0;e[n][1].end.offset-e[n][1].start.offset&&(h=2,r=le(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),ue(e,o-1,n-o+3,r),n=o+r.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function tl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=be(r);let i;return l;function l(a){return i=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===i)return e.consume(a),s;const c=e.exit("attentionSequence"),u=be(a),f=!u||u===2&&o||n.includes(a)&&a!==42&&a!==95,h=!o||o===2&&u||n.includes(r)&&r!==42&&r!==95;return c._open=!!(i===42?f:f&&(o||!h)),c._close=!!(i===42?h:h&&(u||!f)),t(a)}}function fr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nl={name:"autolink",tokenize:rl};function rl(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return X(p)?(e.consume(p),l):p===64?n(p):c(p)}function l(p){return p===43||p===45||p===46||Y(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Y(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ge(p)?n(p):(e.consume(p),a)}function c(p){return p===64?(e.consume(p),u):Ki(p)?(e.consume(p),c):n(p)}function u(p){return Y(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Y(p))&&r++<63){const m=p===45?h:f;return e.consume(p),m}return n(p)}}const Ke={partial:!0,tokenize:ol};function ol(e,t,n){return r;function r(i){return j(i)?_(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||P(i)?t(i):n(i)}}const pr={continuation:{tokenize:ll},exit:sl,name:"blockQuote",tokenize:il};function il(e,t,n){const r=this;return o;function o(l){if(l===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return j(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function ll(e,t,n){const r=this;return o;function o(l){return j(l)?_(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(pr,t,n)(l)}}function sl(e){e.exit("blockQuote")}const hr={name:"characterEscape",tokenize:al};function al(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return sr(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const dr={name:"characterReference",tokenize:cl};function cl(e,t,n){const r=this;let o=0,i,l;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,l=Y,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=Qi,u):(e.enter("characterReferenceValue"),i=7,l=Ot,u(f))}function u(f){if(f===59&&o){const h=e.exit("characterReferenceValue");return l===Y&&!Mt(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(f)&&o++<i?(e.consume(f),u):n(f)}}const Nt={partial:!0,tokenize:ul};function ul(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const mr={concrete:!0,name:"codeFenced",tokenize:fl};function fl(e,t,n){const r=this,o={partial:!0,tokenize:F};let i=0,l=0,s;return a;function a(w){return c(w)}function c(w){const O=r.events[r.events.length-1];return i=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===s?(l++,e.consume(w),u):l<3?n(w):(e.exit("codeFencedFenceSequence"),j(w)?_(e,f,"whitespace")(w):f(w))}function f(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Nt,y,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):j(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),h)}function p(w){return w===null||P(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===s?n(w):(e.consume(w),m)}function y(w){return e.attempt(o,L,b)(w)}function b(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return i>0&&j(w)?_(e,E,"linePrefix",i+1)(w):E(w)}function E(w){return w===null||P(w)?e.check(Nt,y,L)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||P(w)?(e.exit("codeFlowValue"),E(w)):(e.consume(w),S)}function L(w){return e.exit("codeFenced"),t(w)}function F(w,O,B){let $=0;return k;function k(N){return w.enter("lineEnding"),w.consume(N),w.exit("lineEnding"),A}function A(N){return w.enter("codeFencedFence"),j(N)?_(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):D(N)}function D(N){return N===s?(w.enter("codeFencedFenceSequence"),U(N)):B(N)}function U(N){return N===s?($++,w.consume(N),U):$>=l?(w.exit("codeFencedFenceSequence"),j(N)?_(w,W,"whitespace")(N):W(N)):B(N)}function W(N){return N===null||P(N)?(w.exit("codeFencedFence"),O(N)):B(N)}}}const Rt={name:"codeIndented",tokenize:hl},pl={partial:!0,tokenize:dl};function hl(e,t,n){return r;function r(s){return e.enter("codeIndented"),ar(e,o,n,"linePrefix",4,4)(s)}function o(s){return s===null?l(s):P(s)?e.attempt(pl,o,l)(s):(e.enter("codeFlowValue"),i(s))}function i(s){return s===null||P(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),i)}function l(s){return e.exit("codeIndented"),t(s)}}function dl(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):ar(e,t,i,"linePrefix",4,4)(l)}function i(l){return P(l)?o(l):n(l)}}const ml={name:"codeText",previous:yl,resolve:gl,tokenize:xl};function gl(e){let t=e.length-4,n=3,r,o;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;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function yl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xl(e,t,n){let r=0,o,i;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(i=e.enter("codeTextSequence"),o=0,u(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),o++,u):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class kl{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 o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Qe(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Qe(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qe(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Qe(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qe(this.left,n.reverse())}}}function Qe(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function gr(e){const t={};let n=-1,r,o,i,l,s,a,c;const u=new kl(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,vl(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(l=u.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end={...u.get(o)[1].start},s=u.slice(o,n),s.unshift(r),u.splice(o,n-o+1,s))}}return ue(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function vl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,a=[],c={};let u,f,h=-1,p=n,m=0,y=0;const b=[y];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),f&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(y=h+1,b.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),h=b.length;h--;){const x=s.slice(b[h],b[h+1]),E=i.pop();a.push([E,E+x.length-1]),e.splice(E,2,x)}for(a.reverse(),h=-1;++h<a.length;)c[m+a[h][0]]=m+a[h][1],m+=a[h][1]-a[h][0]-1;return c}const bl={resolve:Sl,tokenize:Cl},wl={partial:!0,tokenize:Il};function Sl(e){return gr(e),e}function Cl(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?i(s):P(s)?e.check(wl,l,i)(s):(e.consume(s),o)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Il(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),_(e,i,"linePrefix")}function i(l){if(l===null||P(l))return n(l);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(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function yr(e,t,n,r,o,i,l,s,a){const c=a||Number.POSITIVE_INFINITY;let u=0;return f;function f(x){return x===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(x),e.exit(i),h):x===null||x===32||x===41||Ge(x)?n(x):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(x))}function h(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(s),h(x)):x===null||x===60||P(x)?n(x):(e.consume(x),x===92?m:p)}function m(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function y(x){return!u&&(x===null||x===41||V(x))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(x)):u<c&&x===40?(e.consume(x),u++,y):x===41?(e.consume(x),u--,y):x===null||x===32||x===40||Ge(x)?n(x):(e.consume(x),x===92?b:y)}function b(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function xr(e,t,n,r,o,i){const l=this;let s=0,a;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),u}function u(p){return s>999||p===null||p===91||p===93&&!a||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||P(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),a||(a=!j(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function kr(e,t,n,r,o,i){let l;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(o),e.consume(h),e.exit(o),l=h===40?41:h,a):n(h)}function a(h){return h===l?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(i),c(h))}function c(h){return h===l?(e.exit(i),a(l)):h===null?n(h):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),_(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===l||h===null||P(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:u)}function f(h){return h===l||h===92?(e.consume(h),u):u(h)}}function Je(e,t){let n;return r;function r(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):j(o)?_(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const El={name:"definition",tokenize:Tl},Al={partial:!0,tokenize:Pl};function Tl(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),l(p)}function l(p){return xr.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return o=fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return V(p)?Je(e,c)(p):c(p)}function c(p){return yr(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(Al,f,f)(p)}function f(p){return j(p)?_(e,h,"whitespace")(p):h(p)}function h(p){return p===null||P(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function Pl(e,t,n){return r;function r(s){return V(s)?Je(e,o)(s):n(s)}function o(s){return kr(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return j(s)?_(e,l,"whitespace")(s):l(s)}function l(s){return s===null||P(s)?t(s):n(s)}}const Dl={name:"hardBreakEscape",tokenize:Ll};function Ll(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return P(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Fl={name:"headingAtx",resolve:zl,tokenize:Ml};function zl(e,t){let n=e.length-2,r=3;if(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){const o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};ue(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])}return e}function Ml(e,t,n){let r=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),l(u)}function l(u){return u===35&&r++<6?(e.consume(u),l):u===null||V(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),a(u)):u===null||P(u)?(e.exit("atxHeading"),t(u)):j(u)?_(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function a(u){return u===35?(e.consume(u),a):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||V(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const vr=["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"],_t=["pre","script","style","textarea"],Ol={concrete:!0,name:"htmlFlow",resolveTo:Nl,tokenize:Rl},jl={partial:!0,tokenize:_l};function Nl(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 Rl(e,t,n){const r=this;let o,i,l,s,a;return c;function c(g){return u(g)}function u(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),i=!0,y):g===63?(e.consume(g),o=3,r.interrupt?t:d):X(g)?(e.consume(g),l=String.fromCharCode(g),b):n(g)}function h(g){return g===45?(e.consume(g),o=2,p):g===91?(e.consume(g),o=5,s=0,m):X(g)?(e.consume(g),o=4,r.interrupt?t:d):n(g)}function p(g){return g===45?(e.consume(g),r.interrupt?t:d):n(g)}function m(g){const ce="CDATA[";return g===ce.charCodeAt(s++)?(e.consume(g),s===ce.length?r.interrupt?t:D:m):n(g)}function y(g){return X(g)?(e.consume(g),l=String.fromCharCode(g),b):n(g)}function b(g){if(g===null||g===47||g===62||V(g)){const ce=g===47,De=l.toLowerCase();return!ce&&!i&&_t.includes(De)?(o=1,r.interrupt?t(g):D(g)):vr.includes(l.toLowerCase())?(o=6,ce?(e.consume(g),x):r.interrupt?t(g):D(g)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):i?E(g):S(g))}return g===45||Y(g)?(e.consume(g),l+=String.fromCharCode(g),b):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:D):n(g)}function E(g){return j(g)?(e.consume(g),E):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||X(g)?(e.consume(g),L):j(g)?(e.consume(g),S):k(g)}function L(g){return g===45||g===46||g===58||g===95||Y(g)?(e.consume(g),L):F(g)}function F(g){return g===61?(e.consume(g),w):j(g)?(e.consume(g),F):S(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),a=g,O):j(g)?(e.consume(g),w):B(g)}function O(g){return g===a?(e.consume(g),a=null,$):g===null||P(g)?n(g):(e.consume(g),O)}function B(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||V(g)?F(g):(e.consume(g),B)}function $(g){return g===47||g===62||j(g)?S(g):n(g)}function k(g){return g===62?(e.consume(g),A):n(g)}function A(g){return g===null||P(g)?D(g):j(g)?(e.consume(g),A):n(g)}function D(g){return g===45&&o===2?(e.consume(g),Z):g===60&&o===1?(e.consume(g),J):g===62&&o===4?(e.consume(g),ae):g===63&&o===3?(e.consume(g),d):g===93&&o===5?(e.consume(g),de):P(g)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(jl,me,U)(g)):g===null||P(g)?(e.exit("htmlFlowData"),U(g)):(e.consume(g),D)}function U(g){return e.check(Nt,W,me)(g)}function W(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),N}function N(g){return g===null||P(g)?U(g):(e.enter("htmlFlowData"),D(g))}function Z(g){return g===45?(e.consume(g),d):D(g)}function J(g){return g===47?(e.consume(g),l="",se):D(g)}function se(g){if(g===62){const ce=l.toLowerCase();return _t.includes(ce)?(e.consume(g),ae):D(g)}return X(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),se):D(g)}function de(g){return g===93?(e.consume(g),d):D(g)}function d(g){return g===62?(e.consume(g),ae):g===45&&o===2?(e.consume(g),d):D(g)}function ae(g){return g===null||P(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ae)}function me(g){return e.exit("htmlFlow"),t(g)}}function _l(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Ke,t,n)}}const Bl={name:"htmlText",tokenize:Ul};function Ul(e,t,n){const r=this;let o,i,l;return s;function s(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),a}function a(d){return d===33?(e.consume(d),c):d===47?(e.consume(d),F):d===63?(e.consume(d),S):X(d)?(e.consume(d),B):n(d)}function c(d){return d===45?(e.consume(d),u):d===91?(e.consume(d),i=0,m):X(d)?(e.consume(d),E):n(d)}function u(d){return d===45?(e.consume(d),p):n(d)}function f(d){return d===null?n(d):d===45?(e.consume(d),h):P(d)?(l=f,J(d)):(e.consume(d),f)}function h(d){return d===45?(e.consume(d),p):f(d)}function p(d){return d===62?Z(d):d===45?h(d):f(d)}function m(d){const ae="CDATA[";return d===ae.charCodeAt(i++)?(e.consume(d),i===ae.length?y:m):n(d)}function y(d){return d===null?n(d):d===93?(e.consume(d),b):P(d)?(l=y,J(d)):(e.consume(d),y)}function b(d){return d===93?(e.consume(d),x):y(d)}function x(d){return d===62?Z(d):d===93?(e.consume(d),x):y(d)}function E(d){return d===null||d===62?Z(d):P(d)?(l=E,J(d)):(e.consume(d),E)}function S(d){return d===null?n(d):d===63?(e.consume(d),L):P(d)?(l=S,J(d)):(e.consume(d),S)}function L(d){return d===62?Z(d):S(d)}function F(d){return X(d)?(e.consume(d),w):n(d)}function w(d){return d===45||Y(d)?(e.consume(d),w):O(d)}function O(d){return P(d)?(l=O,J(d)):j(d)?(e.consume(d),O):Z(d)}function B(d){return d===45||Y(d)?(e.consume(d),B):d===47||d===62||V(d)?$(d):n(d)}function $(d){return d===47?(e.consume(d),Z):d===58||d===95||X(d)?(e.consume(d),k):P(d)?(l=$,J(d)):j(d)?(e.consume(d),$):Z(d)}function k(d){return d===45||d===46||d===58||d===95||Y(d)?(e.consume(d),k):A(d)}function A(d){return d===61?(e.consume(d),D):P(d)?(l=A,J(d)):j(d)?(e.consume(d),A):$(d)}function D(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),o=d,U):P(d)?(l=D,J(d)):j(d)?(e.consume(d),D):(e.consume(d),W)}function U(d){return d===o?(e.consume(d),o=void 0,N):d===null?n(d):P(d)?(l=U,J(d)):(e.consume(d),U)}function W(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||V(d)?$(d):(e.consume(d),W)}function N(d){return d===47||d===62||V(d)?$(d):n(d)}function Z(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function J(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),se}function se(d){return j(d)?_(e,de,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):de(d)}function de(d){return e.enter("htmlTextData"),l(d)}}const Bt={name:"labelEnd",resolveAll:Wl,resolveTo:$l,tokenize:Kl},Hl={tokenize:Ql},Vl={tokenize:Jl},ql={tokenize:Xl};function Wl(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 o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&ue(e,0,e.length,n),e}function $l(e,t){let n=e.length,r=0,o,i,l;for(;n--;){const u=e[n][1];if(o){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[n][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(o=n,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(i=n)}const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",s,t],["enter",a,t]],l=le(l,e.slice(o+1,o+r+3)),l=le(l,[["enter",c,t]]),l=le(l,nt(t.parser.constructs.insideSpan.null,e.slice(o+r+4,i-3),t)),l=le(l,[["exit",c,t],e[i-2],e[i-1],["exit",a,t]]),l=le(l,e.slice(i+1)),l=le(l,[["exit",s,t]]),ue(e,o,e.length,l),e}function Kl(e,t,n){const r=this,o=r._labelStarts;let i,l;if(o){for(;o.length>0&&o[o.length-1]._balanced;)o.pop();i=o[o.length-1]}return s;function s(h){return i?i._inactive?f(h):(l=r.parser.defined.includes(fe(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)}function a(h){return h===40?e.attempt(Hl,u,l?u:f)(h):h===91?e.attempt(Vl,u,l?c:f)(h):l?u(h):f(h)}function c(h){return e.attempt(ql,u,f)(h)}function u(h){return o.pop(),t(h)}function f(h){return i._balanced=!0,n(h)}}function Ql(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return V(f)?Je(e,i)(f):i(f)}function i(f){return f===41?u(f):yr(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return V(f)?Je(e,a)(f):u(f)}function s(f){return n(f)}function a(f){return f===34||f===39||f===40?kr(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return V(f)?Je(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Jl(e,t,n){const r=this;return o;function o(s){return xr.call(r,e,i,l,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function l(s){return n(s)}}function Xl(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Yl={name:"labelStartImage",resolveAll:Bt.resolveAll,tokenize:Zl};function Zl(e,t,n){const r=this;let o;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),o=e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(a))}}const Gl={name:"labelStartLink",resolveAll:Bt.resolveAll,tokenize:es};function es(e,t,n){const r=this;let o;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),o=e.exit("labelLink"),l}function l(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(s))}}const Ut={name:"lineEnding",tokenize:ts};function ts(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_(e,t,"linePrefix")}}const rt={name:"thematicBreak",tokenize:ns};function ns(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),l(c)}function l(c){return o=c,s(c)}function s(c){return c===o?(e.enter("thematicBreakSequence"),a(c)):r>=3&&(c===null||P(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===o?(e.consume(c),r++,a):(e.exit("thematicBreakSequence"),j(c)?_(e,s,"whitespace")(c):s(c))}}const ne={continuation:{tokenize:ls},exit:as,name:"list",tokenize:is},rs={partial:!0,tokenize:cs},os={partial:!0,tokenize:ss};function is(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ot(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(rt,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Ot(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ke,r.interrupt?n:u,e.attempt(rs,h,f))}function u(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function f(p){return j(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function ls(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,o,i);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!j(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(os,t,l)(s))}function l(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,_(e,e.attempt(ne,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ss(e,t,n){const r=this;return _(e,o,"listItemIndent",r.containerState.size+1);function o(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function as(e){e.exit(this.containerState.type)}function cs(e,t,n){const r=this;return _(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const l=r.events[r.events.length-1];return!j(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const br={name:"setextUnderline",resolveTo:us,tokenize:fs};function us(e,t){const n=new tt;let r=e.length,o,i,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(n.add(i,0,[["enter",s,t]]),n.add(l+1,0,[["exit",e[o][1],t]]),e[o][1].end={...e[l][1].end}):e[o][1]=s,n.add(e.length,0,[["exit",s,t]]),n.consume(e),e}function fs(e,t,n){const r=this;let o;return i;function i(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=c,l(c)):n(c)}function l(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),j(c)?_(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||P(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const ps={tokenize:hs};function hs(e){const t=this,n=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,o,_(e,e.attempt(this.parser.constructs.flow,o,e.attempt(bl,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ds={resolveAll:Sr()},ms=wr("string"),gs=wr("text");function wr(e){return{resolveAll:Sr(e==="text"?ys:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,l,s);return l;function l(u){return c(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),a}function a(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),a)}function c(u){if(u===null)return!0;const f=o[u];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Sr(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function ys(e,t){const n=new tt;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],i=t.sliceStream(o);let l=i.length,s=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){const u={type:r===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?s:o.start._bufferIndex+s,_index:o.start._index+l,line:o.end.line,column:o.end.column-a,offset:o.end.offset-a},end:{...o.end}};o.end={...u.start},o.start.offset===o.end.offset?Object.assign(o,u):n.add(r,0,[["enter",u,t],["exit",u,t]])}r++}return n.consume(e),e}const xs={42:ne,43:ne,45:ne,48:ne,49:ne,50:ne,51:ne,52:ne,53:ne,54:ne,55:ne,56:ne,57:ne,62:pr},ks={91:El},vs={[-2]:Rt,[-1]:Rt,32:Rt},bs={35:Fl,42:rt,45:[br,rt],60:Ol,61:br,95:rt,96:mr,126:mr},ws={38:dr,92:hr},Ss={[-5]:Ut,[-4]:Ut,[-3]:Ut,33:Yl,38:dr,42:jt,60:[nl,Bl],91:Gl,92:[Dl,hr],93:Bt,95:jt,96:ml},Cs={null:[jt,ds]},Is={null:[42,95]},Es={null:[]},As=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Is,contentInitial:ks,disable:Es,document:xs,flow:bs,flowInitial:vs,insideSpan:Cs,string:ws,text:Ss},Symbol.toStringTag,{value:"Module"}));function Ts(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 o={},i=[];let l=[],s=[];const a={attempt:O(F),check:O(w),consume:E,enter:S,exit:L,interrupt:O(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:m,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let u=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(A){return l=le(l,A),b(),l[l.length-1]!==null?[]:(B(t,0),c.events=nt(i,c.events,c),c.events)}function h(A,D){return Ds(p(A),D)}function p(A){return Ps(l,A)}function m(){const{_bufferIndex:A,_index:D,line:U,column:W,offset:N}=r;return{_bufferIndex:A,_index:D,line:U,column:W,offset:N}}function y(A){o[A.line]=A.column,k()}function b(){for(;r._index<l.length;){const A=l[r._index];if(typeof A=="string"){const D=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<A.length;)x(A.charCodeAt(r._bufferIndex))}else x(A)}}function x(A){u=u(A)}function E(A){P(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,k()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=A}function S(A,D){const U=D||{};return U.type=A,U.start=m(),c.events.push(["enter",U,c]),s.push(U),U}function L(A){const D=s.pop();return D.end=m(),c.events.push(["exit",D,c]),D}function F(A,D){B(A,D.from)}function w(A,D){D.restore()}function O(A,D){return U;function U(W,N,Z){let J,se,de,d;return Array.isArray(W)?me(W):"tokenize"in W?me([W]):ae(W);function ae(Q){return _e;function _e(ke){const Le=ke!==null&&Q[ke],Fe=ke!==null&&Q.null,xt=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return me(xt)(ke)}}function me(Q){return J=Q,se=0,Q.length===0?Z:g(Q[se])}function g(Q){return _e;function _e(ke){return d=$(),de=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?De():Q.tokenize.call(D?Object.assign(Object.create(c),D):c,a,ce,De)(ke)}}function ce(Q){return A(de,d),N}function De(Q){return d.restore(),++se<J.length?g(J[se]):Z}}}function B(A,D){A.resolveAll&&!i.includes(A)&&i.push(A),A.resolve&&ue(c.events,D,c.events.length-D,A.resolve(c.events.slice(D),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function $(){const A=m(),D=c.previous,U=c.currentConstruct,W=c.events.length,N=Array.from(s);return{from:W,restore:Z};function Z(){r=A,c.previous=D,c.currentConstruct=U,c.events.length=W,s=N,k()}}function k(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Ps(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}function Ds(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
4
  `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(i)}o=i===-2,r.push(l)}return r.join("")}function Ls(e){const t={constructs:ir([As,...(e||{}).extensions||[]]),content:n(Ji),defined:[],document:n(Yi),flow:n(ps),lazy:{},string:n(ms),text:n(gs)};return t;function n(r){return o;function o(i){return Ts(t,r,i)}}}function Fs(e){for(;!gr(e););return e}const Cr=/[\0\t\n\r]/g;function zs(){let e=1,t="",n=!0,r;return o;function o(i,l,s){i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i));const a=[];let c=0;for(t="",n&&(i.charCodeAt(0)===65279&&c++,n=void 0);c<i.length;){Cr.lastIndex=c;const u=Cr.exec(i),f=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(f);if(!u){t=i.slice(c);break}if(h===10&&c===f&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<f&&(a.push(i.slice(c,f)),e+=f-c),h){case 0:{a.push(65533),e++;break}case 9:{const p=Math.ceil(e/4)*4;for(a.push(-2);e++<p;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Ms=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Os(e){return e.replace(Ms,js)}function js(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return lr(n.slice(o?2:1),o?16:10)}return Mt(n)||e}const Ir={}.hasOwnProperty;function Ns(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Rs(n)(Fs(Ls(n).document().write(zs()(e,t,!0))))}function Rs(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(An),autolinkProtocol:k,autolinkEmail:k,atxHeading:l(Cn),blockQuote:l(xt),characterEscape:k,characterReference:k,codeFenced:l(Sn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:l(Sn,s),codeText:l(Fo,s),codeTextData:k,data:k,codeFlowValue:k,definition:l(zo),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:l(Mo),hardBreakEscape:l(In),hardBreakTrailing:l(In),htmlFlow:l(En,s),htmlFlowData:k,htmlText:l(En,s),htmlTextData:k,image:l(Oo),label:s,link:l(An),listItem:l(jo),listItemValue:p,listOrdered:l(Tn,h),listUnordered:l(Tn),paragraph:l(No),reference:ce,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:l(Cn),strong:l(Ro),thematicBreak:l(Bo)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:Fe,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:_e,characterReference:ke,codeFenced:c(x),codeFencedFence:b,codeFencedFenceInfo:m,codeFencedFenceMeta:y,codeFlowValue:A,codeIndented:c(E),codeText:c(Z),codeTextData:A,data:A,definition:c(),definitionDestinationString:F,definitionLabelString:S,definitionTitleString:L,emphasis:c(),hardBreakEscape:c(U),hardBreakTrailing:c(U),htmlFlow:c(W),htmlFlowData:A,htmlText:c(N),htmlTextData:A,image:c(se),label:d,labelText:de,lineEnding:D,link:c(J),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:De,resourceDestinationString:ae,resourceTitleString:me,resource:g,setextHeading:c($),setextHeadingLineSequence:B,setextHeadingText:O,strong:c(),thematicBreak:c()}};Er(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(v){let I={type:"root",children:[],position:void 0};const z={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:f,data:n},R=[],ie=[];let q=-1;for(;++q<v.length;)if(ie.push(v[q]),v[q][1].type==="listOrdered"||v[q][1].type==="listUnordered")if(v[q][0]==="enter")R.push(ie.length-1);else{const ee=R.pop();i(ie,ee)}for(v=ie,q=-1;++q<v.length;){const ee=t[v[q][0]];v[q][0]==="enter"&&t.beforeEnter.length>0&&o(t.beforeEnter,{...z,sliceSerialize:v[q][2].sliceSerialize},v[q][1]),Ir.call(ee,v[q][1].type)&&ee[v[q][1].type].call({...z,sliceSerialize:v[q][2].sliceSerialize},v[q][1]),v[q][0]==="exit"&&t.afterExit.length>0&&o(t.afterExit,{...z,sliceSerialize:v[q][2].sliceSerialize},v[q][1])}if(z.tokenStack.length>0){const ee=z.tokenStack[z.tokenStack.length-1];(ee[1]||Ar).call(z,void 0,ee[0])}for(I.position={start:we(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:we(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<t.transforms.length;)I=t.transforms[q](I)||I;return I}function o(v,I,z){let R=-1;for(;++R<v.length;)v[R].call(I,z)}function i(v,I){const z=v.length-1;let R=I-1,ie=-1,q=!1,ee,ge,Be,Ue;const He=[];for(;++R<=z;){const re=v[R];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?ie++:ie--,Ue=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(ee&&!Ue&&!ie&&!Be&&(Be=R),Ue=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ue=void 0}if(!ie&&re[0]==="enter"&&re[1].type==="listItemPrefix"||ie===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(ee){let ze=R;for(ge=void 0;ze--;){const ye=v[ze];if(ye[1].type==="lineEnding"||ye[1].type==="lineEndingBlank"){if(ye[0]==="exit")continue;ge&&(v[ge][1].type="lineEndingBlank",q=!0),ye[1].type="lineEnding",ge=ze}else if(!(ye[1].type==="linePrefix"||ye[1].type==="blockQuotePrefix"||ye[1].type==="blockQuotePrefixWhitespace"||ye[1].type==="blockQuoteMarker"||ye[1].type==="listItemIndent"))break}Be&&(!ge||Be<ge)&&(ee._spread=!0),ee.end=Object.assign({},ge?v[ge][1].start:re[1].end),He.push({at:ge||R,event:["exit",ee,re[2]]})}if(re[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};ee=ze,He.push({at:R,event:["enter",ze,re[2]]}),Be=void 0,Ue=!0}}}const Pn=v.splice(I);let kt=0;for(R=-1;++R<Pn.length;){for(;kt<He.length&&He[kt].at===I+R;)v.push(He[kt++].event);v.push(Pn[R])}v[I][1]._spread=q}function l(v,I){return z;function z(R){a.call(this,v(R),R),I&&I.call(this,R)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(v,I,z){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([I,z||void 0]),v.position={start:we(I.start),end:void 0}}function c(v){return I;function I(z){v&&v.call(this,z),u.call(this,z)}}function u(v,I){const z=this.stack.pop(),R=this.tokenStack.pop();if(!R)throw new Error("Cannot close `"+v.type+"` ("+We({start:v.start,end:v.end})+"): it\u2019s not open");R[0].type!==v.type&&(I?I.call(this,v,R[0]):(R[1]||Ar).call(this,v,R[0])),z.position.end=we(v.end)}function f(){return zt(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(v){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function m(){const v=this.resume(),I=this.stack[this.stack.length-1];I.lang=v}function y(){const v=this.resume(),I=this.stack[this.stack.length-1];I.meta=v}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const v=this.resume(),I=this.stack[this.stack.length-1];I.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const v=this.resume(),I=this.stack[this.stack.length-1];I.value=v.replace(/(\r?\n|\r)$/g,"")}function S(v){const I=this.resume(),z=this.stack[this.stack.length-1];z.label=I,z.identifier=fe(this.sliceSerialize(v)).toLowerCase()}function L(){const v=this.resume(),I=this.stack[this.stack.length-1];I.title=v}function F(){const v=this.resume(),I=this.stack[this.stack.length-1];I.url=v}function w(v){const I=this.stack[this.stack.length-1];if(!I.depth){const z=this.sliceSerialize(v).length;I.depth=z}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function B(v){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function k(v){const I=this.stack[this.stack.length-1].children;let z=I[I.length-1];(!z||z.type!=="text")&&(z=_o(),z.position={start:we(v.start),end:void 0},I.push(z)),this.stack.push(z)}function A(v){const I=this.stack.pop();I.value+=this.sliceSerialize(v),I.position.end=we(v.end)}function D(v){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=I.children[I.children.length-1];z.position.end=we(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(k.call(this,v),A.call(this,v))}function U(){this.data.atHardBreak=!0}function W(){const v=this.resume(),I=this.stack[this.stack.length-1];I.value=v}function N(){const v=this.resume(),I=this.stack[this.stack.length-1];I.value=v}function Z(){const v=this.resume(),I=this.stack[this.stack.length-1];I.value=v}function J(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=I,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function se(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=I,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function de(v){const I=this.sliceSerialize(v),z=this.stack[this.stack.length-2];z.label=Os(I),z.identifier=fe(I).toLowerCase()}function d(){const v=this.stack[this.stack.length-1],I=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const R=v.children;z.children=R}else z.alt=I}function ae(){const v=this.resume(),I=this.stack[this.stack.length-1];I.url=v}function me(){const v=this.resume(),I=this.stack[this.stack.length-1];I.title=v}function g(){this.data.inReference=void 0}function ce(){this.data.referenceType="collapsed"}function De(v){const I=this.resume(),z=this.stack[this.stack.length-1];z.label=I,z.identifier=fe(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function Q(v){this.data.characterReferenceType=v.type}function _e(v){const I=this.sliceSerialize(v),z=this.data.characterReferenceType;let R;z?(R=lr(I,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=Mt(I);const ie=this.stack[this.stack.length-1];ie.value+=R}function ke(v){const I=this.stack.pop();I.position.end=we(v.end)}function Le(v){A.call(this,v);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(v)}function Fe(v){A.call(this,v);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(v)}function xt(){return{type:"blockquote",children:[],position:void 0}}function Sn(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function Fo(){return{type:"inlineCode",value:"",position:void 0}}function zo(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function Mo(){return{type:"emphasis",children:[],position:void 0}}function Cn(){return{type:"heading",depth:0,children:[],position:void 0}}function In(){return{type:"break",position:void 0}}function En(){return{type:"html",value:"",position:void 0}}function Oo(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function An(){return{type:"link",title:null,url:"",children:[],position:void 0}}function Tn(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[],position:void 0}}function jo(v){return{type:"listItem",spread:v._spread,checked:null,children:[],position:void 0}}function No(){return{type:"paragraph",children:[],position:void 0}}function Ro(){return{type:"strong",children:[],position:void 0}}function _o(){return{type:"text",value:"",position:void 0}}function Bo(){return{type:"thematicBreak",position:void 0}}}function we(e){return{line:e.line,column:e.column,offset:e.offset}}function Er(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Er(e,r):_s(e,r)}}function _s(e,t){let n;for(n in t)if(Ir.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"afterExit":case"beforeEnter":{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 Ar(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+We({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is still open")}function Bs(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 Us(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 Hs(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -1,4 +1,4 @@
1
- import{S as f,b as I,a as A,r as E,o as M,c as T,t as O,s as w}from"./index-2rcu8aIP.js";const S=()=>({parts:[]}),b=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),l=e=>typeof e=="string";function N(e,t){b(t)&&(e.metadata={...e.metadata,...t})}function g(e,t){for(const r of e.parts)if(r.type==="text"&&r.id===t)return r;const n={type:"text",id:t,text:""};return e.parts.push(n),n}function D(e,t,n){if(n.transient===!0)return;const r=l(n.id)?n.id:void 0,s=r==null?void 0:e.parts.find(a=>a.type===t&&a.id===r);s!=null&&s.type!=="text"?s.data=n.data:e.parts.push({type:t,...r!=null?{id:r}:{},data:n.data})}function _(e,t){if(!b(t)||!l(t.type))throw new f("stream_error");switch(t.type){case"start":case"finish":case"message-metadata":N(e,t.messageMetadata);return;case"text-start":l(t.id)&&g(e,t.id);return;case"text-delta":l(t.id)&&l(t.delta)&&(g(e,t.id).text+=t.delta);return;case"data-step":case"data-attachment":case"data-block":D(e,t.type,t);return;case"error":throw new f(l(t.errorText)&&t.errorText!==""?t.errorText:"stream_error");default:return}}const j="[DONE]";function x(){const e=new Error("The operation was aborted.");return e.name="AbortError",e}function k(e){let t;for(const n of e.split(`
1
+ import{S as f,b as I,a as A,r as E,o as M,c as T,t as O,s as w}from"./index-CzUSbOrl.js";const S=()=>({parts:[]}),b=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),l=e=>typeof e=="string";function N(e,t){b(t)&&(e.metadata={...e.metadata,...t})}function g(e,t){for(const r of e.parts)if(r.type==="text"&&r.id===t)return r;const n={type:"text",id:t,text:""};return e.parts.push(n),n}function D(e,t,n){if(n.transient===!0)return;const r=l(n.id)?n.id:void 0,s=r==null?void 0:e.parts.find(a=>a.type===t&&a.id===r);s!=null&&s.type!=="text"?s.data=n.data:e.parts.push({type:t,...r!=null?{id:r}:{},data:n.data})}function _(e,t){if(!b(t)||!l(t.type))throw new f("stream_error");switch(t.type){case"start":case"finish":case"message-metadata":N(e,t.messageMetadata);return;case"text-start":l(t.id)&&g(e,t.id);return;case"text-delta":l(t.id)&&l(t.delta)&&(g(e,t.id).text+=t.delta);return;case"data-step":case"data-attachment":case"data-block":D(e,t.type,t);return;case"error":throw new f(l(t.errorText)&&t.errorText!==""?t.errorText:"stream_error");default:return}}const j="[DONE]";function x(){const e=new Error("The operation was aborted.");return e.name="AbortError",e}function k(e){let t;for(const n of e.split(`
2
2
  `)){if(n.startsWith(":"))continue;const r=n.indexOf(":");if((r===-1?n:n.slice(0,r))!=="data")continue;let s=r===-1?"":n.slice(r+1);s.startsWith(" ")&&(s=s.slice(1)),(t??(t=[])).push(s)}return t?.join(`
3
3
  `)}async function*C(e,t){const n=e.getReader(),r=()=>{n.cancel().catch(()=>{})};t?.addEventListener("abort",r,{once:!0});const s=new TextDecoder;let a="";try{if(t?.aborted)throw x();for(;;){const{done:c,value:i}=await n.read();if(t?.aborted)throw x();if(c)return;a+=s.decode(i,{stream:!0});const u=a.endsWith("\r")?"\r":"";a=a.slice(0,a.length-u.length).replace(/\r\n?/g,`
4
4
  `);for(let o=a.indexOf(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsrcjs/ai-widget",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "AI-Dana chat widget: one script tag or mount(), Shadow DOM, React inside",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",