cindy-ai-chatbot 1.0.99 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -36,5 +36,5 @@ var Mn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const Gn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Jn(e,t){return(Xn.jsx?Zn:Gn).test(e)}const Kn=/[ \t\n\f\r]/g;function Qn(e){return""===e.replace(Kn,"")}class er{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new er(n,r,t)}function nr(e){return e.toLowerCase()}er.prototype.normal={},er.prototype.property={},er.prototype.space=void 0;class rr{constructor(e,t){this.attribute=t,this.property=e}}rr.prototype.attribute="",rr.prototype.booleanish=!1,rr.prototype.boolean=!1,rr.prototype.commaOrSpaceSeparated=!1,rr.prototype.commaSeparated=!1,rr.prototype.defined=!1,rr.prototype.mustUseProperty=!1,rr.prototype.number=!1,rr.prototype.overloadedBoolean=!1,rr.prototype.property="",rr.prototype.spaceSeparated=!1,rr.prototype.space=void 0;let or=0;const ir=fr(),ar=fr(),lr=fr(),sr=fr(),cr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.freeze({__proto__:null,boolean:ir,booleanish:ar,commaOrSpaceSeparated:dr,commaSeparated:ur,number:sr,overloadedBoolean:lr,spaceSeparated:cr});const hr=Object.keys(pr);class mr extends rr{constructor(e,t,n,r){let o=-1;if(super(e,t),gr(this,"space",r),"number"==typeof n)for(;++o<hr.length;){const e=hr[o];gr(this,hr[o],(n&pr[e])===pr[e])}}}function gr(e,t,n){n&&(e[t]=n)}function yr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new mr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nr(r)]=r,n[nr(i.attribute)]=r}return new er(t,n,e.space)}mr.prototype.defined=!0;const vr=yr({properties:{ariaActiveDescendant:null,ariaAtomic:ar,ariaAutoComplete:null,ariaBusy:ar,ariaChecked:ar,ariaColCount:sr,ariaColIndex:sr,ariaColSpan:sr,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:ar,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:ar,ariaFlowTo:cr,ariaGrabbed:ar,ariaHasPopup:null,ariaHidden:ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:sr,ariaLive:null,ariaModal:ar,ariaMultiLine:ar,ariaMultiSelectable:ar,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:sr,ariaPressed:ar,ariaReadOnly:ar,ariaRelevant:null,ariaRequired:ar,ariaRoleDescription:cr,ariaRowCount:sr,ariaRowIndex:sr,ariaRowSpan:sr,ariaSelected:ar,ariaSetSize:sr,ariaSort:null,ariaValueMax:sr,ariaValueMin:sr,ariaValueNow:sr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function xr(e,t){return br(e,t.toLowerCase())}const wr=yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:ir,allowPaymentRequest:ir,allowUserMedia:ir,alt:null,as:null,async:ir,autoCapitalize:null,autoComplete:cr,autoFocus:ir,autoPlay:ir,blocking:cr,capture:null,charSet:null,checked:ir,cite:null,className:cr,cols:sr,colSpan:null,content:null,contentEditable:ar,controls:ir,controlsList:cr,coords:sr|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ir,defer:ir,dir:null,dirName:null,disabled:ir,download:lr,draggable:ar,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ir,formTarget:null,headers:cr,height:sr,hidden:lr,high:sr,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:ir,inputMode:null,integrity:null,is:null,isMap:ir,itemId:null,itemProp:cr,itemRef:cr,itemScope:ir,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ir,low:sr,manifest:null,max:null,maxLength:sr,media:null,method:null,min:null,minLength:sr,multiple:ir,muted:ir,name:null,nonce:null,noModule:ir,noValidate:ir,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:ir,optimum:sr,pattern:null,ping:cr,placeholder:null,playsInline:ir,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ir,referrerPolicy:null,rel:cr,required:ir,reversed:ir,rows:sr,rowSpan:sr,sandbox:cr,scope:null,scoped:ir,seamless:ir,selected:ir,shadowRootClonable:ir,shadowRootDelegatesFocus:ir,shadowRootMode:null,shape:null,size:sr,sizes:null,slot:null,span:sr,spellCheck:ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:sr,step:null,style:null,tabIndex:sr,target:null,title:null,translate:null,type:null,typeMustMatch:ir,useMap:null,value:ar,width:sr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cr,axis:null,background:null,bgColor:null,border:sr,borderColor:null,bottomMargin:sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ir,declare:ir,event:null,face:null,frame:null,frameBorder:null,hSpace:sr,leftMargin:sr,link:null,longDesc:null,lowSrc:null,marginHeight:sr,marginWidth:sr,noResize:ir,noHref:ir,noShade:ir,noWrap:ir,object:null,profile:null,prompt:null,rev:null,rightMargin:sr,rules:null,scheme:null,scrolling:ar,standby:null,summary:null,text:null,topMargin:sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ir,disableRemotePlayback:ir,prefix:null,property:null,results:sr,security:null,unselectable:null},space:"html",transform:xr}),kr=yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dr,accentHeight:sr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:sr,amplitude:sr,arabicForm:null,ascent:sr,attributeName:null,attributeType:null,azimuth:sr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:sr,by:null,calcMode:null,capHeight:sr,className:cr,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:sr,diffuseConstant:sr,direction:null,display:null,dur:null,divisor:sr,dominantBaseline:null,download:ir,dx:null,dy:null,edgeMode:null,editable:null,elevation:sr,enableBackground:null,end:null,event:null,exponent:sr,externalResourcesRequired:null,fill:null,fillOpacity:sr,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:sr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:sr,horizOriginX:sr,horizOriginY:sr,id:null,ideographic:sr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:sr,k:sr,k1:sr,k2:sr,k3:sr,k4:sr,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:sr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:sr,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:sr,overlineThickness:sr,paintOrder:null,panose1:null,path:null,pathLength:sr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:sr,pointsAtY:sr,pointsAtZ:sr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:sr,specularExponent:sr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:sr,strikethroughThickness:sr,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:sr,strokeOpacity:sr,strokeWidth:null,style:null,surfaceScale:sr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:sr,tableValues:null,target:null,targetX:sr,targetY:sr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:sr,underlineThickness:sr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:sr,values:null,vAlphabetic:sr,vMathematical:sr,vectorEffect:null,vHanging:sr,vIdeographic:sr,version:null,vertAdvY:sr,vertOriginX:sr,vertOriginY:sr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Cr=yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Sr=yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),Er=yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Tr={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"},Ar=/[A-Z]/g,Or=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Pr(e){return"-"+e.toLowerCase()}function Ir(e){return e.charAt(1).toUpperCase()}const Dr=tr([vr,wr,Cr,Sr,Er],"html"),Lr=tr([vr,kr,Cr,Sr,Er],"svg");var _r={},Rr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jr=/\n/g,Mr=/^\s*/,Fr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qr=/^:\s*/,zr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Hr=/^\s+|\s+$/g,Ur="";function Vr(e){return e?e.replace(Hr,Ur):Ur}var Wr=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,$r.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var $r=Wr((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(jr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(Mr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Ur!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Ur===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=i(),t=s(Fr);if(t){if(d(),!s(qr))return l("property missing ':'");var n=s(zr),r=e({type:"declaration",property:Vr(t[0].replace(Rr,Ur)),value:n?Vr(n[0].replace(Rr,Ur)):Ur});return s(Br),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}));var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var Gr=/^--[a-zA-Z0-9_-]+$/,Zr=/-([a-z])/g,Xr=/^[^-]+$/,Jr=/^-(webkit|moz|ms|o|khtml)-/,Kr=/^-(ms)-/,Qr=function(e,t){return t.toUpperCase()},eo=function(e,t){return"".concat(t,"-")};Yr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Xr.test(e)||Gr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Kr,eo):e.replace(Jr,eo)).replace(Zr,Qr))};var to=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_r),no=Yr;function ro(e,t){var n={};return e&&"string"==typeof e?((0,to.default)(e,(function(e,r){e&&r&&(n[(0,no.camelCase)(e,t)]=r)})),n):n}ro.default=ro;var oo=fe(ro);const io=lo("end"),ao=lo("start");function lo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function so(e){return e&&"object"==typeof e?"position"in e||"type"in e?uo(e.position):"start"in e||"end"in e?uo(e):"line"in e||"column"in e?co(e):"":""}function co(e){return fo(e&&e.line)+":"+fo(e&&e.column)}function uo(e){return co(e&&e.start)+"-"+co(e&&e.end)}function fo(e){return e&&"number"==typeof e?e:1}class po extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=so(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}po.prototype.file="",po.prototype.name="",po.prototype.reason="",po.prototype.message="",po.prototype.stack="",po.prototype.column=void 0,po.prototype.line=void 0,po.prototype.ancestors=void 0,po.prototype.cause=void 0,po.prototype.fatal=void 0,po.prototype.place=void 0,po.prototype.ruleId=void 0,po.prototype.source=void 0;const ho={}.hasOwnProperty,mo=new Map,go=/[A-Z]/g,yo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),bo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ao(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Lr:Dr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=wo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function wo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=To(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ho.call(t.properties,o)){const i=Eo(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&vo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=So(e,t);yo.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qn(t.value):Qn(t));var t})));return ko(e,a,i,t),Co(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(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)}Ao(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:To(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ao(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Ao(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=So(e,t);return ko(e,a,i,t),Co(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ao(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Co(r,So(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ko(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Co(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function So(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:mo;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=wo(e,i,a);void 0!==l&&n.push(l)}return n}function Eo(e,t,n){const r=function(e,t){const n=nr(t);let r=t,o=rr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Nr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Or,Ir);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Or.test(e)){let n=e.replace(Ar,Pr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=mr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return oo(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new po("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bo+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ho.call(e,n)&&(t[Oo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tr[r.property]||r.property:r.attribute,n]}}function To(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Jn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Jn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ho.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ao(e)}function Ao(e,t){const n=new po("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=bo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Oo(e){let t=e.replace(go,No);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function No(e){return"-"+e.toLowerCase()}const Po={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"]},Io={};function Do(e,t){return Lo(e,"boolean"!=typeof Io.includeImageAlt||Io.includeImageAlt,"boolean"!=typeof Io.includeHtml||Io.includeHtml)}function Lo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _o(e.children,t,n)}return Array.isArray(e)?_o(e,t,n):""}function _o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Lo(e[o],t,n);return r.join("")}const Ro={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jo={}.hasOwnProperty;function Mo(e){return!!jo.call(Ro,e)&&Ro[e]}function Fo(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function qo(e,t){return e.length>0?(Fo(e,e.length,0,t),e):t}const zo={}.hasOwnProperty;function Bo(e){const t={};let n=-1;for(;++n<e.length;)Ho(t,e[n]);return t}function Ho(e,t){let n;for(n in t){const r=(zo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){zo.call(r,i)||(r[i]=[]);const e=o[i];Uo(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Uo(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Fo(e,0,0,r)}function Vo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $o=oi(/[A-Za-z]/),Yo=oi(/[\dA-Za-z]/),Go=oi(/[#-'*+\--9=?A-Z^-~]/);function Zo(e){return null!==e&&(e<32||127===e)}const Xo=oi(/\d/),Jo=oi(/[\dA-Fa-f]/),Ko=oi(/[!-/:-@[-`{-~]/);function Qo(e){return null!==e&&e<-2}function ei(e){return null!==e&&(e<0||32===e)}function ti(e){return-2===e||-1===e||32===e}const ni=oi(/\p{P}|\p{S}/u),ri=oi(/\s/);function oi(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ii(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Yo(e.charCodeAt(n+1))&&Yo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ai(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ti(r))return e.enter(n),a(r);return t(r)};function a(r){return ti(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const si={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Fo(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ci,u,d)(o)}function u(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(ci,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Fo(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ci={tokenize:function(e,t,n){return ai(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ui(e){return null===e||ei(e)||ri(e)?1:ni(e)?2:void 0}function di(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 fi={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};pi(d,-l),pi(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=qo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=qo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=qo(s,di(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=qo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=qo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fo(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ui(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=ui(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function pi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hi={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return $o(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Yo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Yo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zo(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Go(t)?(e.consume(t),s):n(t)}function c(e){return Yo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Yo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const mi={partial:!0,tokenize:function(e,t,n){return function(t){return ti(t)?ai(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qo(e)?t(e):n(e)}}};const gi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ti(t))return ai(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(gi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ti(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const yi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Ko(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const vi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Yo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Jo,c):(e.enter("characterReferenceValue"),o=7,i=Xo,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Yo||Mo(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const bi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},xi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),ti(t)?ai(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Qo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(bi,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ai(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Qo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ti(t)?ai(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qo(t)?e.check(bi,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const wi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ai(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Qo(t)?e.attempt(ki,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},ki={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ai(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qo(e)?o(e):n(e)}}};const Ci={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Qo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class Si{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ei(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ei(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ei(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ei(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ei(this.left,t.reverse())}}}function Ei(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 Ti(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Si(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ai(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Fo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Ai(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=l.slice(g[f],g[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Oi={resolve:function(e){return Ti(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qo(t)?e.check(Ni,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ni={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,o,"linePrefix")};function o(o){if(null===o||Qo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Pi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Qo(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ei(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Zo(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ii(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Qo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!ti(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Di(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Qo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Li(e,t){let n;return function r(o){if(Qo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ti(o))return ai(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const _i={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ii.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ei(t)?Li(e,l)(t):l(t)}function l(t){return Pi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Ri,c,c)(t)}function c(t){return ti(t)?ai(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Qo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Ri={partial:!0,tokenize:function(e,t,n){return function(t){return ei(t)?Li(e,r)(t):n(t)};function r(t){return Di(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ti(t)?ai(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qo(e)?t(e):n(e)}}};const ji={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Mi={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Fo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ei(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qo(n)?(e.exit("atxHeading"),t(n)):ti(n)?ai(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ei(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Fi=["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"],qi=["pre","script","style","textarea"],zi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:_):$o(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):$o(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:f):n(o)}function p(t){return $o(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ei(l)){const s=47===l,c=a.toLowerCase();return s||i||!qi.includes(c)?Fi.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Yo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return ti(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||$o(t)?(e.consume(t),v):ti(t)?(e.consume(t),y):S(t)}function v(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):ti(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ti(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,C):null===t||Qo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ei(t)?b(t):(e.consume(t),k)}function C(e){return 47===e||62===e||ti(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qo(t)?T(t):ti(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Qo(t)||6!==o&&7!==o?null===t||Qo(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Bi,j,A)(t))}function A(t){return e.check(Hi,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Qo(t)?A(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return qi.includes(n)?(e.consume(t),R):T(t)}return $o(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Qo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Bi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(mi,t,n)}}},Hi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Ui={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):$o(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):$o(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Qo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Qo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Qo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return $o(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Yo(t)?(e.consume(t),w):k(t)}function k(t){return Qo(t)?(a=k,D(t)):ti(t)?(e.consume(t),k):I(t)}function C(t){return 45===t||Yo(t)?(e.consume(t),C):47===t||62===t||ei(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||$o(t)?(e.consume(t),E):Qo(t)?(a=S,D(t)):ti(t)?(e.consume(t),S):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),A):Qo(t)?(a=T,D(t)):ti(t)?(e.consume(t),T):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):Qo(t)?(a=A,D(t)):ti(t)?(e.consume(t),A):(e.consume(t),N)}function O(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Qo(t)?(a=O,D(t)):(e.consume(t),O)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ei(t)?S(t):(e.consume(t),N)}function P(e){return 47===e||62===e||ei(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return ti(t)?ai(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Vi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Fo(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=qo(i,e.slice(r+1,r+l+3)),i=qo(i,[["enter",u,t]]),i=qo(i,di(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=qo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=qo(i,e.slice(o+1)),i=qo(i,[["exit",s,t]]),Fo(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Wo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Wi,c,i?c:u)(t):91===t?e.attempt($i,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Yi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Wi={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ei(t)?Li(e,o)(t):o(t)}function o(t){return 41===t?c(t):Pi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ei(t)?Li(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Di(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ei(t)?Li(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},$i={tokenize:function(e,t,n){const r=this;return function(t){return Ii.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Yi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Gi={name:"labelStartImage",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Zi={name:"labelStartLink",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Xi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}}};const Ji={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ti(t)?ai(e,i,"whitespace")(t):i(t))}}};const Ki={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ai(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ti(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ea,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ai(e,e.attempt(Ki,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Xo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ji,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Xo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(mi,r.interrupt?n:c,e.attempt(Qi,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return ti(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Qi={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return!ti(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ea={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const ta={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ti(t)?ai(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const na={tokenize:function(e){const t=this,n=e.attempt(mi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ai(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Oi,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ra={resolveAll:la()},oa=aa("string"),ia=aa("text");function aa(e){return{resolveAll:la("text"===e?sa:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function la(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function sa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const ca={42:Ki,43:Ki,45:Ki,48:Ki,49:Ki,50:Ki,51:Ki,52:Ki,53:Ki,54:Ki,55:Ki,56:Ki,57:Ki,62:gi},ua={91:_i},da={[-2]:wi,[-1]:wi,32:wi},fa={35:Mi,42:Ji,45:[ta,Ji],60:zi,61:ta,95:Ji,96:xi,126:xi},pa={38:vi,92:yi},ha={[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Gi,38:vi,42:fi,60:[hi,Ui],91:Zi,92:[ji,yi],93:Vi,95:fi,96:Ci},ma={null:[fi,ra]};var ga=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ua,disable:{null:[]},document:ca,flow:fa,flowInitial:da,insideSpan:ma,string:pa,text:ha});function ya(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 a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Qo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=qo(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=di(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Fo(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const va=/[\0\t\n\r]/g;const ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xa(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vo(n.slice(t?2:1),t?16:10)}return Mo(n)||e}const wa={}.hasOwnProperty;function ka(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(J),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(X),hardBreakEscape:i(K),hardBreakTrailing:i(K),htmlFlow:i(Q,a),htmlFlowData:E,htmlText:i(Q,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:q,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(J),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:H,characterReference:U,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:A,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:z,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(S),setextHeadingLineSequence:C,setextHeadingText:k,strong:s(),thematicBreak:s()}};Sa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];wa.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ta).call(i,void 0,e[0])}for(r.position={start:Ca(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ca(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ca(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ta).call(this,e,r[0])}n.position.end=Ca(e.end)}function u(){return Do(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Ca(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ca(e.end)}function A(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Ca(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function O(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ba,xa)}(t),n.identifier=Wo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Mo(t)}this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=Ca(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ti(e););return e}(function(e){const t={constructs:Bo([ga,...(e||{}).extensions||[]]),content:n(li),defined:[],document:n(si),flow:n(na),lazy:{},string:n(oa),text:n(ia)};return t;function n(e){return function(n){return ya(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(va.lastIndex=u,s=va.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Ca(e){return{line:e.line,column:e.column,offset:e.offset}}function Sa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Sa(e,r):Ea(e,r)}}function Ea(e,t){let n;for(n in t)if(wa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ta(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is still open")}function Aa(e){const t=this;t.parser=function(n){return ka(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Oa(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Na(e){const t=e.spread;return null==t?e.children.length>1:t}function Pa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Ia(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Ia(t.slice(o),o>0,!1)),i.join("")}function Ia(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Da={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ii(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={src:ii(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ii(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={href:ii(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ii(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Na(n[r])}return t}(n):Na(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ao(t.children[1]),a=io(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Pa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:La,yaml:La,definition:La,footnoteDefinition:La};function La(){}const _a="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new _a[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new _a[i](a),o)};return r})(new Map,e)(0),ja="",{toString:Ma}={},{keys:Fa}=Object,qa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ma.call(e).slice(8,-1);switch(n){case"Array":return[1,ja];case"Object":return[2,ja];case"Date":return[3,ja];case"RegExp":return[4,ja];case"Map":return[5,ja];case"Set":return[6,ja];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},za=([e,t])=>0===e&&("function"===t||"symbol"===t),Ba=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=qa(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Fa(r))!e&&za(qa(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!za(qa(n))&&!za(qa(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&za(qa(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Ha="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(Ba(e,t)):structuredClone(e):(e,t)=>Ra(Ba(e,t));function Ua(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Va(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Wa=function(e){if(null==e)return Ya;if("function"==typeof e)return $a(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wa(e[n]);return $a(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return $a(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return $a(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function $a(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ya(){return!0}const Ga=[],Za=!0,Xa=!1;function Ja(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Wa(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Ga;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Za,e];return null==e?Ga:[e]}(n(o,s)),f[0]===Xa))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function Ka(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ja(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Qa={}.hasOwnProperty,el={};function tl(e,t){e.position&&(t.position=function(e){const t=ao(e),n=io(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Ha(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rl(e,t){const n=t.data||{},r=!("value"in t)||Qa.call(n,"hProperties")||Qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function ol(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function il(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function al(e,t){const n=function(e,t){const n=t||el,r=new Map,o=new Map,i=new Map,a={...Da,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=il(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=il(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:nl,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Qa.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ha(n);return r.children=l.all(e),r}return Ha(e)}return(l.options.unknownHandler||rl)(l,e,t)},options:n,patch:tl,wrap:ol};return Ka(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ua,r=e.options.footnoteBackLabel||Va,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ii(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ha(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ll(e,t){return e&&"run"in e?async function(n,r){const o=al(n,{file:r,...t});await e.run(o,r)}:function(n,r){return al(n,{file:r,...e||t})}}function sl(e){if(e)throw e}var cl=Object.prototype.hasOwnProperty,ul=Object.prototype.toString,dl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,pl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ul.call(e)},hl=function(e){if(!e||"[object Object]"!==ul.call(e))return!1;var t,n=cl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cl.call(e,t)},ml=function(e,t){dl&&"__proto__"===t.name?dl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gl=function(e,t){if("__proto__"===t){if(!cl.call(e,t))return;if(fl)return fl(e,t).value}return e[t]},yl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=gl(l,n),l!==(o=gl(t,n))&&(u&&o&&(hl(o)||(i=pl(o)))?(i?(i=!1,a=r&&pl(r)?r:[]):a=r&&hl(r)?r:{},ml(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&ml(l,{name:n,newValue:o}));return l},vl=fe(yl);function bl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const wl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');kl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(kl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){kl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)kl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){kl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function kl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cl={cwd:function(){return"/"}};function Sl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function El(e){if("string"==typeof e)e=new URL(e);else if(!Sl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Tl=["history","path","basename","stem","extname","dirname"];class Al{constructor(e){let t;t=e?Sl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Cl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Tl.length;){const e=Tl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Tl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?wl.basename(this.path):void 0}set basename(e){Nl(e,"basename"),Ol(e,"basename"),this.path=wl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?wl.dirname(this.path):void 0}set dirname(e){Pl(this.basename,"dirname"),this.path=wl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?wl.extname(this.path):void 0}set extname(e){if(Ol(e,"extname"),Pl(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Sl(e)&&(e=El(e)),Nl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?wl.basename(this.path,this.extname):void 0}set stem(e){Nl(e,"stem"),Ol(e,"stem"),this.path=wl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new po(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Ol(e,t){if(e&&e.includes(wl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wl.sep+"`")}function Nl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Il=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Dl={}.hasOwnProperty;class Ll extends Il{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xl()}copy(){const e=new Ll;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(vl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ml("data",this.frozen),this.namespace[e]=t,this):Dl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zl(e),n=this.parser||this.Parser;return Rl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Rl("process",this.parser||this.Parser),jl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=zl(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Rl("processSync",this.parser||this.Parser),jl("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,sl(e),t=r})),ql("processSync","process",n),t}run(e,t,n){Fl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=zl(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){sl(e),n=t,r=!0})),ql("runSync","run",r),n}stringify(e,t){this.freeze();const n=zl(t),r=this.compiler||this.Compiler;return jl("stringify",r),Fl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ml("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=vl(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];bl(a)&&bl(r)&&(r=vl(!0,a,r)),n[o]=[e,r,...i]}}}}const _l=(new Ll).freeze();function Rl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fl(e){if(!bl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ql(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Al(e)}const Bl=[],Hl={allowDangerousHtml:!0},Ul=/^(https?|ircs?|mailto|xmpp)$/i,Vl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Wl(r){const o=function(e){const t=e.rehypePlugins||Bl,n=e.remarkPlugins||Bl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hl}:Hl,o=_l().use(Aa).use(n).use(ll,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Al;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||$l;for(const e of Vl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Ka(r,f),xo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function f(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Po)if(Object.hasOwn(Po,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Po[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function $l(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Ul.test(e.slice(0,t))?e:""}var Yl="access",Gl="refresh",Zl="/token/refresh/",Xl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Jl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Yl=t,Gl=n,Zl=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Xl.get(Gl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat(Zl),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Xl.set(Yl,t,{expires:i(r.iat,r.exp)}),Xl.set(Gl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Xl.get(Yl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Xl.get(Gl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Xl.get(Yl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Kl=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Ql(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var es=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var f={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},p=kn(kn({},f),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},f),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t($n,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:p,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function ts(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var f={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},p={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(Hn,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:f,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"green"}),children:t(Wn,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:f,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"red"}),children:t($n,{size:12})}),t("span",{children:"Delete"})]})]})]})}var ns=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),f=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Wn,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:f,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function rs(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function os(e,t,n){const r=Wa((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([is(e[0]),as(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ja(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function is(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function as(e){return"function"==typeof e?e:function(){return e}}const ls="phrasing",ss=["autolink","link","image","label"];function cs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function us(e){this.config.enter.autolinkProtocol.call(this,e)}function ds(e){this.config.exit.autolinkProtocol.call(this,e)}function fs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ps(e){this.config.exit.autolinkEmail.call(this,e)}function hs(e){this.exit(e)}function ms(e){os(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ys]],{ignore:["link","linkReference"]})}function gs(e,t,n,r,o){let i="";if(!vs(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=rs(e,"(");let i=rs(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function ys(e,t,n,r){return!(!vs(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vs(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ri(n)||ni(n))&&(!t||47!==n)}function bs(){this.buffer()}function xs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ws(){this.buffer()}function ks(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ss(e){this.exit(e)}function Es(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ts(e){this.exit(e)}function As(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function Os(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ps:Ns)));return l(),a},footnoteReference:As},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ns(e,t,n){return 0===t?e:Ps(e,t,n)}function Ps(e,t,n){return(n?"":" ")+e}As.peek=function(){return"["};const Is=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ds(e){this.enter({type:"delete",children:[]},e)}function Ls(e){this.exit(e)}function _s(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Rs(e){return e.length}function js(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ms(e,t,n){return">"+(n?"":" ")+e}function Fs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function qs(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Fs(i,a.inConstruct,!0)&&!Fs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function zs(e,t,n){return(n?"":" ")+e}function Bs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Us(e,t,n){const r=ui(e),o=ui(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Vs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}function Ws(e){return e.value||""}function $s(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Gs(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Zs(e,t){const n=Do(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Xs(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if(Zs(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Js(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Ks(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qs(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}_s.peek=function(){return"~"},Vs.peek=function(e,t,n){return n.options.emphasis||"*"},Ws.peek=function(){return"<"},$s.peek=function(){return"!"},Ys.peek=function(){return"!"},Gs.peek=function(){return"`"},Xs.peek=function(e,t,n){return Zs(e,n)?"<":"["},Js.peek=function(){return"["};const ec=Wa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tc(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}tc.peek=function(e,t,n){return n.options.strong||"*"};const nc={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Ms);return o(),a},break:qs,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,zs);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Vs,hardBreak:qs,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Ka(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Xa})),Boolean((!e.depth||e.depth<3)&&Do(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=Hs(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Ws,image:$s,imageReference:Ys,inlineCode:Gs,link:Xs,linkReference:Js,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ks(n);const l=e.ordered?"."===a?")":".":function(e){const t=Ks(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Qs(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Ks(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return ec(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:tc,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Qs(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function rc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function oc(e){this.exit(e),this.data.inTable=void 0}function ic(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function lc(e){this.enter({type:"tableCell",children:[]},e)}function sc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function uc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=nc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Rs,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=js(r[f]);else{const e=js(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function fc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=nc.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const hc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},mc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(yc,s,l)(t):null===t||ei(t)||ri(t)||45!==t&&ni(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},gc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(yc,t,i)(a):null===a||ei(a)||ri(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||ei(a)||ri(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ei(e)||ri(e)?t(e):r(e)}function i(e){return $o(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):$o(t)?(e.consume(t),a):n(t)}},partial:!0},vc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Yo(e)?n(e):t(e)}},partial:!0},bc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Sc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hc,e.attempt(mc,e.attempt(gc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Sc},xc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ec.call(r,r.previous)&&!Oc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if($o(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||Zo(t)||ei(t)||ri(t)||ni(t)?n(t):e.attempt(mc,e.attempt(gc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ec},wc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Ac(t)||!Tc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ac(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(vc,c,s)(t):45===t||95===t||Yo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&$o(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Tc},kc={};let Cc=48;for(;Cc<123;)kc[Cc]=wc,Cc++,58===Cc?Cc=65:91===Cc&&(Cc=97);function Sc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ei(e)}function Ec(e){return!$o(e)}function Tc(e){return!(47===e||Ac(e))}function Ac(e){return 43===e||45===e||46===e||95===e||Yo(e)}function Oc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}kc[43]=wc,kc[45]=wc,kc[46]=wc,kc[95]=wc,kc[72]=[wc,xc],kc[104]=[wc,xc],kc[87]=[wc,bc],kc[119]=[wc,bc];const Nc={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Pc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Wo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ic(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Dc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||ei(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Wo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return ei(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Lc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||ei(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ei(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ai(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function _c(e,t,n){return e.check(mi,t,e.attempt(Nc,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function jc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=ui(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=ui(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Fo(a,a.length,0,di(l,e.slice(r+1,n),t)),Fo(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Fo(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Mc{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)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 t of r)e.push(t);r=n.pop()}this.map.length=0}}function Fc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function qc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Qo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ti(t)?ai(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ei(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,ti(t)?ai(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return ti(t)?ai(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return ti(t)?ai(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||Qo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Qo(n)?(e.exit("tableRow"),t(n)):ti(n)?ai(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||ei(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function zc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Mc;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(Hc(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Bc(f,t,s,l,i,o)):0!==c[1]&&(o=Bc(f,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&Hc(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Fc(t.events,i))}return e}function Bc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Uc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Uc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Uc(t.events,n[2]),i=Uc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Uc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Hc(e,t,n,r,o){const i=[],a=Uc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Uc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Vc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return ei(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qo(r)?t(r):ti(r)?e.check({tokenize:Wc},t,n)(r):n(r)}}};function Wc(e,t,n){return ai(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const $c={};function Yc(e){const t=e||$c,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Bo([{text:kc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:_c},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:Ic}}},jc(e),{flow:{null:{name:"table",tokenize:qc,resolveAll:zc}}},{text:{91:Vc}}])}(t)),o.push([{transforms:[ms],enter:{literalAutolink:cs,literalAutolinkEmail:us,literalAutolinkHttp:us,literalAutolinkWww:us},exit:{literalAutolink:hs,literalAutolinkEmail:ps,literalAutolinkHttp:ds,literalAutolinkWww:fs}},{enter:{gfmFootnoteCallString:bs,gfmFootnoteCall:xs,gfmFootnoteDefinitionLabelString:ws,gfmFootnoteDefinition:ks},exit:{gfmFootnoteCallString:Cs,gfmFootnoteCall:Ss,gfmFootnoteDefinitionLabelString:Es,gfmFootnoteDefinition:Ts}},{canContainEols:["delete"],enter:{strikethrough:Ds},exit:{strikethrough:Ls}},{enter:{table:rc,tableData:lc,tableHeader:lc,tableRow:ic},exit:{codeText:sc,table:oc,tableData:ac,tableHeader:ac,tableRow:ac}},{exit:{taskListCheckValueChecked:dc,taskListCheckValueUnchecked:dc,paragraph:fc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:ss}]},Os(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Is}],handlers:{delete:_s}},uc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pc}}]}}(t))}var Gc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function Zc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Xc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Jc(i,...n)]}function Jc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Kc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Kc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Kc(e[t],null)}}}}function eu(...e){return r.useCallback(Qc(...e),e)}function tu(e){const n=nu(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(ou);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function nu(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Qc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var ru=Symbol("radix.slottable");function ou(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ru}var iu=globalThis?.document?r.useLayoutEffect:()=>{},au=r[" useId ".trim().toString()]||(()=>{}),lu=0;function su(e){const[t,n]=r.useState(au());return iu((()=>{n((e=>e??String(lu++)))}),[e]),e||(t?`radix-${t}`:"")}var cu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=tu(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var uu=r[" useInsertionEffect ".trim().toString()]||iu;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return uu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var fu=r.createContext(void 0);function pu(e){const t=r.useContext(fu);return e||t||"ltr"}var hu="rovingFocusGroup.onEntryFocus",mu={bubbles:!1,cancelable:!0},gu="RovingFocusGroup",[yu,vu,bu]=function(e){const n=e+"CollectionProvider",[r,i]=Xc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=tu(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=eu(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=tu(f),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=eu(n,s),u=l(f,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(gu),[xu,wu]=Xc(gu,[bu]),[ku,Cu]=xu(gu),Su=r.forwardRef(((e,n)=>t(yu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(yu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(Eu,{...e,ref:n})})})));Su.displayName=gu;var Eu=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=r.useRef(null),m=eu(n,h),g=pu(l),[y,v]=du({prop:s,defaultProp:c??null,onChange:u,caller:gu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=vu(o),C=r.useRef(!1),[S,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(hu,w),()=>e.removeEventListener(hu,w)}),[w]),t(ku,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(cu.div,{tabIndex:b||0===S?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:Zc(e.onMouseDown,(()=>{C.current=!0})),onFocus:Zc(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(hu,mu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Nu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}C.current=!1})),onBlur:Zc(e.onBlur,(()=>x(!1)))})})})),Tu="RovingFocusGroupItem",Au=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=su(),d=l||u,f=Cu(Tu,o),p=f.currentTabStopId===d,h=vu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=f;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(yu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(cu.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i?f.onItemFocus(d):e.preventDefault()})),onFocus:Zc(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:Zc(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ou[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=f.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Nu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})}));Au.displayName=Tu;var Ou={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Pu=Su,Iu=Au;var Du=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Lu(o.current);a.current="mounted"===s?e:"none"}),[s]),iu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Lu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),iu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Lu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Lu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=eu(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Lu(e){return e?.animationName||"none"}Du.displayName="Presence";var _u="Tabs",[Ru,ju]=Xc(_u,[wu]),Mu=wu(),[Fu,qu]=Ru(_u),zu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=pu(s),[f,p]=du({prop:o,onChange:i,defaultProp:a??"",caller:_u});return t(Fu,{scope:r,baseId:su(),value:f,onValueChange:p,orientation:l,dir:d,activationMode:c,children:t(cu.div,{dir:d,"data-orientation":l,...u,ref:n})})}));zu.displayName=_u;var Bu="TabsList",Hu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=qu(Bu,r),l=Mu(r);return t(Pu,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(cu.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));Hu.displayName=Bu;var Uu="TabsTrigger",Vu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=qu(Uu,r),s=Mu(r),c=$u(l.baseId,o),u=Yu(l.baseId,o),d=o===l.value;return t(Iu,{asChild:!0,...s,focusable:!i,active:d,children:t(cu.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:Zc(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:Zc(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Vu.displayName=Uu;var Wu="TabsContent";function $u(e,t){return`${e}-trigger-${t}`}function Yu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=qu(Wu,o),u=$u(c.baseId,i),d=Yu(c.baseId,i),f=i===c.value,p=r.useRef(f);return r.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Du,{present:a||f,children:({present:r})=>t(cu.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&l})})})).displayName=Wu;var Gu=zu,Zu=Hu,Xu=Vu;function Ju(e){var n=e.className,r=Cn(e,["className"]);return t(Gu,kn({"data-slot":"tabs",style:kn({display:"flex",flexDirection:"column",gap:"8px"},n?{className:n}:{})},r))}function Ku(e){var n=e.className,r=Cn(e,["className"]);return t(Zu,kn({"data-slot":"tabs-list",style:kn({display:"flex",gap:"4px",backgroundColor:"#e8e8e8",padding:"4px",borderRadius:"8px"},n?{className:n}:{})},r))}function Qu(r){r.className;var o=Cn(r,["className"]);return e(n,{children:[t(Xu,kn({"data-slot":"tabs-trigger",style:{flex:1,userSelect:"none",borderRadius:"6px",padding:"8px 8px",fontSize:"12px",fontWeight:"600",color:"#666",transition:"all 0.15s",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",cursor:"pointer",border:"none",outline:"none"}},o)),t("style",{children:'\n [data-slot="tabs-trigger"][data-state="active"] {\n background-color: #ffffff;\n color: #1a1a1a;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n }\n [data-slot="tabs-trigger"]:not([data-state="active"]):hover {\n background-color: rgba(255, 255, 255, 0.5);\n }\n '})]})}var ed={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities for the selected context",query:"Show me all critical vulnerabilities for the selected context",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Catalog list",description:"Show me the catalogs",query:"Show me the catalogs",category:"compliance",icon:"📋"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"}]}},td=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.setSend,a=n.quickActions,l=n.className,s=void 0===l?"":l,c=ed[o],u=a||c.quickActions;return e("div",{className:"security-assistant ".concat(s),style:{"--primary-color":c.theme.primary,"--background-color":c.theme.background,"--border-color":c.theme.border,"--card-hover-color":c.theme.cardHover,maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:c.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a"},children:c.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:c.subtitle})]}),t("div",{className:"quick-actions-grid",children:u.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query),i(!0)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 12px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n margin-bottom: 12px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},nd=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},rd=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],f=s[1],h=o.useState({}),m=h[0],g=h[1],y=/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\b/g,v=o.useState("devops"),w=v[0],k=v[1],C=o.useState(!1),S=C[0],E=C[1],T=i(!0),A=T[0],O=T[1],N=i(!1),P=N[0],I=N[1],D=i([]),L=D[0],_=D[1],R=i(!1),j=R[0],M=R[1],F=i(!1),q=F[0],z=F[1],B=i(null);B[0];var H=B[1],U=i([]),V=U[0],W=U[1],$=i([]);$[0];var Y=$[1],G=i({}),Z=G[0];G[1];var X=i("");X[0];var J=X[1],K=i([]),Q=K[0],ee=K[1],te=i(!1),ne=te[0],re=te[1],oe=i((new Date).toISOString().split("T")[0]),ie=oe[0],ae=oe[1],le=u(null),se=i(""),ce=se[0],ue=se[1],de=i(null),fe=de[0],pe=de[1],he=i(!1),me=he[0],ge=he[1],ye=u(null),ve=i([]),be=ve[0],xe=ve[1],we=i([]),ke=we[0],Ce=we[1],Se=i(null),Ee=Se[0],Te=Se[1],Ae=i(!1),Oe=Ae[0],Ne=Ae[1],Pe=i(!1),Ie=Pe[0],De=Pe[1],Le=Dn(),_e=Le.getTaskID,Re=Le.setIsAgent,je=Le.setConverse,Me=Le.isAgent,Fe=Le.getTaskAgent,qe=Le.converse,ze=Le.prompts,Be=Le.setPrompts,He=Le.isLoading,Ue=Le.isResize;Le.setIsResize;var Ve=i(""),We=Ve[0],$e=Ve[1],Ye=i(!0),Ge=Ye[0],Ze=Ye[1],Xe=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===w?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Name",options:[],disabled:!1}]),Je=Xe[0],Ke=Xe[1];function Qe(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var et=Ql("(max-width: 640px)"),tt=Ql("(max-width: 1024px)");Ql("(min-width: 1024px)");var nt=Ql("(max-width: 640px)"),rt=p((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),ee(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]);d((function(){P&&at()}),[P]);var ot=p((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),_((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),Nn({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),_([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Xl.get(Yl)&&(rt(),ot())}),[rt,ot]),d((function(){var e=b.get("access");if(e){var t=Qe(e);if(null==t?void 0:t.oidc_acs){var n=Qe(t.oidc_acs);(null==n?void 0:n.name)&&J(n.name)}}}),[]),d((function(){Ke((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:A?[{label:"Loading...",value:""}]:Array.isArray(L)?L.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[L,A]);var it="security"===w?Je.filter((function(e){return"Project"===e.label||"Application"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Name"===e.label})):Je.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),at=function(){var e,t,n,r,o,i,a,l,s,u,d,p,h,g,y,v;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var b=x();z(!0),Be((function(e){return Tn(Tn([],e,!0),[{id:b,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==L?void 0:L.filter((function(e){return(null==e?void 0:e.uuid)===m.Project})))||void 0===t?void 0:t[0],C={};if("devops"===w||"sre"===w){var S=null===(n=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=Je.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===m.Environment})))||void 0===i?void 0:i[0];C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==m?void 0:m.Application)||"",env_uuid:(null==m?void 0:m.Environment)||"",action_type:(null==m?void 0:m["Action Type"])||"",context:"devops"===w?"devops":"sreops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",application_action_type:(null===(l=null===(a=null==m?void 0:m["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==m?void 0:m["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===m.Category})))||void 0===u?void 0:u[0],A=null===(g=null===(h=null===(p=null===(d=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Category)})))||void 0===d?void 0:d[0])||void 0===p?void 0:p.tools)||void 0===h?void 0:h.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Tool)})))||void 0===g?void 0:g[0],O=(S=null===(y=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===y?void 0:y[0],null===(v=null==ke?void 0:ke.filter((function(e){return(null==e?void 0:e.uuid)===m["Scan Name"]})))||void 0===v?void 0:v[0]);C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==m?void 0:m["Scan Name"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==m?void 0:m.Application)||"",category:(null==m?void 0:m.Category)||"",tool:(null==m?void 0:m.Tool)||"",context:"secops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==A?void 0:A.name)||"",scan_name:(null==O?void 0:O.scan_name)||""}}}f(""),I(!1),Me?(console.log(qe),Fe(b,kn(kn({},C),{agent_mode:Me,agent_trans_uuid:qe}),f,ee,ue,pe,ce)):_e(b,C,f,ee,ue,pe,ce)}else Nn({severity:"error",summary:"Error",detail:"Please enter a message"})},lt=function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=i.sent(),console.log("Applications:",null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.data),W((null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.data)||[]),Ke((function(e){return e.map((function(e){var n,r;return"Application"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return n=i.sent(),console.error("Error fetching applications:",n),Nn({severity:"error",summary:"Error Fetching Applications",detail:n.message||"Failed to load applications. Please try again.",life:5e3}),W([]),Ke((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},st=function(e,t,n){return Sn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),Y((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Ke((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),Nn({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),Y([]),Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},ct=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Ke((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===w||"sre"===w||"security"===w)||"Category"===e.label&&"security"===w||"Metric Type"===e.label&&"sre"===w||"Time Range"===e.label&&"sre"===w||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Name":null,Category:null,Tool:null})})),"devops"===w||"sre"===w?lt(t):(lt(t),n=t,Sn(void 0,void 0,void 0,(function(){var e,t,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=o.sent(),xe((null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.categories)||[]),Ke((function(t){return t.map((function(t){var n,r;return"Category"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):t}))})),[3,4];case 2:return t=o.sent(),console.error("Error fetching category:",t),Nn({severity:"error",summary:"Error Fetching Category",detail:t.message||"Failed to load category. Please try again.",life:5e3}),W([]),Ke((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))),H(null)),"Application"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===w?"sre":null})})),"sre"===w&&(Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),st(t,m.Project,"sre"))),"Category"===e&&null!==t){var o=be.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Ke((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Name"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Name":null})}))}"Tool"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Sn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:m.Category,tool:r,page:1,"count per page":200,project_id:m.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),Ce(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Ke((function(e){return e.map((function(e){var t,r;return"Scan Name"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching Scan Name:",o),Nn({severity:"error",summary:"Error Fetching Scan Name",detail:o.message||"Failed to load Scan Name. Please try again.",life:5e3}),Ke((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),H(null)),"Action Type"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),st(m.Application,m.Project,t)),"Environment"===e&&null!==t&&H(null==m?void 0:m["Action Type"]),"Scan Name"===e&&null!==t&&H(null)}};"devops"!==w&&"sre"!==w||m.Project&&m.Application&&m.Environment&&m["Action Type"];var ut=function(e,t,n,r){return Sn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=f.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),ae(null==c?void 0:c.toISOString())),n?Be(i):0==(null==i?void 0:i.length)?console.log("skip"):Be((function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])})),i.length>0?re(!0):re(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),ge(!1),[3,4];case 2:return u=f.sent(),ge(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},dt=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},ft=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(On,{}),A&&t(nd,{}),e("div",{style:{display:"flex",flex:1,flexDirection:et?"column":"row",overflow:"hidden",height:"calc(100vh - 180px)"},children:[Ue&&e("aside",{style:{height:"calc(100vh - 40px)",width:tt?"100%":Ge?"300px":"0px",backgroundColor:Ge?"#f5f5f5":"transparent",color:"black",padding:Ge?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:nt?"flex":"none"},onClick:function(){return E((function(e){return!e}))},children:[t(S?Bn:zn,{style:{width:"16px",height:"16px"}}),S?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:tt?S?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 120px)",maxWidth:Ge?"300px":"10px"},children:e(Gc,{isExpanded:Ge,setIsExpanded:Ze,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(Ju,{value:w,onValueChange:function(e){ue(""),pe(null),ae(dt()),Be([]),z(!1),je(""),Re(!1),k(e),g({}),H(null),Ke((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Name"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(Ku,{children:[e(Qu,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(Qu,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(Qu,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{style:{paddingBottom:"0.5rem",borderBottom:"1px solid rgb(229, 231, 235)"},children:e("button",{onClick:function(){z(!1),ue(""),pe(null),je(""),Re(!1),ae(dt()),Be([])},title:"New Chat",className:"new-chat-btn",style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",gap:"6px",backgroundColor:"#7761F3",color:"white",border:"none",borderRadius:"0.375rem",fontWeight:"500",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease-in-out",padding:"10px 16px",margin:"16px 0 12px 0"},children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px",paddingTop:"0.5rem",color:"#666"},children:[t("div",{className:"filters-title",style:{fontSize:"11px",fontWeight:"600",color:"#666",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Contextual Filters"}),it.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label",style:{fontSize:"0.75rem",fontWeight:"600",color:"rgb(55, 65, 81)",marginBottom:"0.25rem"},children:n.label}),o?e("select",{disabled:n.disabled,value:m[n.label]||"",onChange:function(e){return ct(n.label,e.target.value)},className:"filter-select",style:{width:"100%",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.875rem",padding:"0.5rem",outline:"none"},onFocus:function(e){var t=e.target;t.style.boxShadow="0 0 0 2px #7761F3",t.style.borderColor="#7761F3"},onBlur:function(e){var t=e.target;t.style.boxShadow="none",t.style.borderColor="rgb(209, 213, 219)"},onMouseEnter:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="#7761F3")},onMouseLeave:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="rgb(209, 213, 219)")},children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",maxHeight:"5rem",overflowY:"auto"},children:"Environment"===n.label&&"buildd"===String((null==m?void 0:m["Action Type"])||"").toLowerCase()?t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==m?void 0:m[n.label])===e.value;return t("div",{onClick:function(){ct(n.label,o?null:e.value)},className:"filter-tag",style:{cursor:"pointer",borderRadius:"9999px",padding:"0.25rem 0.75rem",maxHeight:"2.5rem",fontSize:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"500",border:"1px solid ".concat(o?"#7761F3":"rgb(209, 213, 219)"),transition:"all 0.15s ease-in-out",backgroundColor:o?"#7761F3":"rgb(243, 244, 246)",color:o?"white":"rgb(55, 65, 81)"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="rgb(229, 231, 235)")},onMouseLeave:function(e){o||(e.currentTarget.style.backgroundColor="rgb(243, 244, 246)")},children:e.label},r)})):t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),H(null)},style:{width:"100%",padding:"0.375rem",backgroundColor:"transparent",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.75rem",color:"rgb(75, 85, 99)",cursor:"pointer",marginTop:"0.5rem",transition:"all 0.15s ease-in-out"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="rgb(249, 250, 251)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},children:"Clear All Filters"})]}),(null==Q?void 0:Q.length)>0&&t("div",{style:{marginTop:"10px",borderTop:"1px solid rgb(229, 231, 235)"},children:(null==Q?void 0:Q.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),Q.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){z(!0),Be([]),ge(!0),ue(null==n?void 0:n.title),pe(null==n?void 0:n.conversation_uuid),je(""),Re(!1),ae((null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt()),ut(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(ts,{onEdit:function(){De(!0),$e(null==n?void 0:n.title),Te(n),ee(Q.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Ne(!0),Te(n),ee(Q.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[Ue?e(n,{children:[t("button",{title:Ge?"Hide Sidebar":"Show Sidebar",onClick:function(){return Ze(!Ge)},"aria-label":Ge?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(Ge?Yn:Vn,{style:{width:"0.75rem",height:"0.75rem",color:"rgb(75, 85, 99)",fontWeight:"bold"}})}),e("div",{style:{display:"flex",flexDirection:tt?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666",minWidth:"110px"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:nt?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===w&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===w&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===w&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(m).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===w&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;if("security"===w&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=Je.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=L.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Yn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return ct(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:Ue?t("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto",background:"#f8fafc",borderRadius:"8px",fontFamily:"'Inter', -apple-system, system-ui, sans-serif"},children:("security"==w||"devops"==w)&&e(n,{children:[t("span",{style:{fontSize:"12px",fontWeight:600,color:"#64748b",minWidth:"75px"},children:"Agent Mode:"}),t("div",{style:{width:"12px",height:"12px",borderRadius:"50%",position:"relative",cursor:"pointer",background:qe?"#10b981":Me?"#f59e0b":"#e40101ff",boxShadow:qe?"0 0 0 3px #25ffb6ff":Me?"0 0 0 3px #f6d499ff":"0 0 0 3px #fda094ff"},onMouseEnter:function(){},onMouseLeave:function(){},children:t("div",{style:{position:"absolute",top:"-80px",left:"50%",transform:"translateX(-50%)",background:"#1e293b",color:"white",padding:"12px 16px",borderRadius:"8px",fontSize:"12px",whiteSpace:"nowrap",opacity:0,pointerEvents:"none",transition:"opacity 200ms ease",zIndex:1e3},children:"All AI agents enabled and operational"})})]})}):t("button",{title:"New Chat",onClick:function(){ue(""),pe(null),ae(dt()),Be([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==m?void 0:m["Scan Name"])&&"security"===w&&Ue||Ue)&&t(n,{children:!q&&t(td,{setMessage:f,onSendMessage:at,type:w,setSend:I})}),q&&e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},ref:le,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&ne&&(ge(!0),ut(ce,ie,!1,fe))}(e)},children:[me&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),ze.map((function(n,r){var o;return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-end"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ebd8ff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"center",maxWidth:"100%",backgroundColor:"#ebd8ff"},children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question.replace(y,"")})," "]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),n.isLoading||(null===(o=n.answer)||void 0===o?void 0:o.trim())?t("div",{style:{display:"flex",justifyContent:"flex-start",marginTop:"1rem"},children:t("div",{style:{padding:"20px",paddingTop:"15px",marginTop:"5px",minWidth:"60%",maxWidth:"90%",borderRadius:"20px",borderTopRightRadius:"0px",backgroundColor:"#efefef",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(Un,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]);return((null==n?void 0:n.toString())||"").toUpperCase().includes("HIDE")?null:t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},r,{children:n}))},td:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=function(e){var t;return"string"==typeof e?e:(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)?o(e.props.children):Array.isArray(e)?e.map((function(e){return o(e)})).join(""):""},i=o(n);if(function(e){if(!e)return!1;var t=e.replace(/^HIDE:/i,"").trim();return e.startsWith("HIDE:")&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}(i))return t("td",kn({style:{display:"none",padding:0,margin:0,width:0,height:0,overflow:"hidden",border:"none"},"data-uuid":i.replace(/^HIDE:/i,"").trim()},r));var a=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},a,{children:n}))},tr:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=Array.from(t.querySelectorAll("td")),r="",o=[];n.forEach((function(e){var t=e.getAttribute("data-uuid");t?o.push(t):"none"!==e.style.display&&(r+=(e.textContent||"").trim()+" ")})),console.log("Row data:",r.trim()),console.log("UUIDs in row:",o);var i=r.trim();o.length>0&&(i+=" ",i+="".concat(o)),f(i),I(!0)}},r);return t("tr",kn({},o,{children:n}))},code:function(e){e.node;var n=e.className,r=e.children,o=Cn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},o,{children:n}))},tr:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=t.closest("table");if(n){var r=n.querySelector("tr:first-child");if(r){var o=Array.from(r.children).map((function(e){return e.textContent||""})),i=Array.from(t.children),a="";i.forEach((function(e,t){o[t]||"Column ".concat(t+1),a+=e.textContent||""})),f(a),I(!0),console.log("Row clicked:",a)}}}},r);return t("tr",kn({},o,{children:n}))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),t("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})})]})})}):null]},r)})),ze.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container",style:{display:"flex",flexDirection:"column",width:Ue?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box",id:"messageInput",rows:1,value:c,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){f(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),at())},style:{marginTop:"0.25rem",marginBottom:"0.25rem",flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:ye,type:"file",style:{display:"none"},onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:He?"not-allowed":"pointer",marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return at()},disabled:He||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),j&&t(Kl,{title:"Authorization",visible:j,setVisible:M,onSubmit:function(e){!function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==Z?void 0:Z.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(M(!1),Nn({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):Nn({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),Nn({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Oe&&t(es,{title:"Are you sure?",visible:Oe,setVisible:Ne,onSubmit:function(){var e;Ne(!1),e=null==Ee?void 0:Ee.conversation_uuid,Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(ee(Q.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),Nn({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",fe),console.log("prompts---",ze),Ne(!1),Te(null),e===fe&&(pe(null),ae(dt()),Be([]),ue(""))):Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Ne(!1),[7];case 4:return[2]}}))}))},selectedConversation:Ee}),Ie&&t(ns,{title:"Rename chat",visible:Ie,setVisible:De,onSubmit:function(){var e,t,n;De(!1),We&&(null===(e=null==We?void 0:We.trim())||void 0===e?void 0:e.length)>0?(t=null==Ee?void 0:Ee.conversation_uuid,n=We,Sn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(ee((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),De(!1),Te(null),Nn({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),Nn({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):Nn({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:Ee,tempTitle:We,setTempTitle:$e})]})},od=function(n){var r=n.app_type,o=n.title,i=n.placeholder;n.base_url,n.access_token_key,n.refresh_token_key,n.token_refresh_route;var a=n.aiIconSrc,l=void 0===a?"/images/ai-icon.svg":a;n.expandedStyle,n.dialogStyle,n.position;var s=n.HTTP,c=Dn(),u=c.opneChatModal,d=c.setOpenChatModal;c.isResize;return e("div",{style:{position:"relative"},children:[u&&t("div",{style:{},children:t(rd,{app_type:r,title:o,placeholder:i,HTTP:s,closeChat:function(){d(!1)}})}),!u&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:l,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){d(!u)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},id=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Jl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(In,{HTTP:c,children:t(od,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{id as CindyChatBot};
|
|
39
|
+
*/const Gn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Jn(e,t){return(Xn.jsx?Zn:Gn).test(e)}const Kn=/[ \t\n\f\r]/g;function Qn(e){return""===e.replace(Kn,"")}class er{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new er(n,r,t)}function nr(e){return e.toLowerCase()}er.prototype.normal={},er.prototype.property={},er.prototype.space=void 0;class rr{constructor(e,t){this.attribute=t,this.property=e}}rr.prototype.attribute="",rr.prototype.booleanish=!1,rr.prototype.boolean=!1,rr.prototype.commaOrSpaceSeparated=!1,rr.prototype.commaSeparated=!1,rr.prototype.defined=!1,rr.prototype.mustUseProperty=!1,rr.prototype.number=!1,rr.prototype.overloadedBoolean=!1,rr.prototype.property="",rr.prototype.spaceSeparated=!1,rr.prototype.space=void 0;let or=0;const ir=fr(),ar=fr(),lr=fr(),sr=fr(),cr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.freeze({__proto__:null,boolean:ir,booleanish:ar,commaOrSpaceSeparated:dr,commaSeparated:ur,number:sr,overloadedBoolean:lr,spaceSeparated:cr});const hr=Object.keys(pr);class mr extends rr{constructor(e,t,n,r){let o=-1;if(super(e,t),gr(this,"space",r),"number"==typeof n)for(;++o<hr.length;){const e=hr[o];gr(this,hr[o],(n&pr[e])===pr[e])}}}function gr(e,t,n){n&&(e[t]=n)}function yr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new mr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nr(r)]=r,n[nr(i.attribute)]=r}return new er(t,n,e.space)}mr.prototype.defined=!0;const vr=yr({properties:{ariaActiveDescendant:null,ariaAtomic:ar,ariaAutoComplete:null,ariaBusy:ar,ariaChecked:ar,ariaColCount:sr,ariaColIndex:sr,ariaColSpan:sr,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:ar,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:ar,ariaFlowTo:cr,ariaGrabbed:ar,ariaHasPopup:null,ariaHidden:ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:sr,ariaLive:null,ariaModal:ar,ariaMultiLine:ar,ariaMultiSelectable:ar,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:sr,ariaPressed:ar,ariaReadOnly:ar,ariaRelevant:null,ariaRequired:ar,ariaRoleDescription:cr,ariaRowCount:sr,ariaRowIndex:sr,ariaRowSpan:sr,ariaSelected:ar,ariaSetSize:sr,ariaSort:null,ariaValueMax:sr,ariaValueMin:sr,ariaValueNow:sr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function xr(e,t){return br(e,t.toLowerCase())}const wr=yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:ir,allowPaymentRequest:ir,allowUserMedia:ir,alt:null,as:null,async:ir,autoCapitalize:null,autoComplete:cr,autoFocus:ir,autoPlay:ir,blocking:cr,capture:null,charSet:null,checked:ir,cite:null,className:cr,cols:sr,colSpan:null,content:null,contentEditable:ar,controls:ir,controlsList:cr,coords:sr|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ir,defer:ir,dir:null,dirName:null,disabled:ir,download:lr,draggable:ar,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ir,formTarget:null,headers:cr,height:sr,hidden:lr,high:sr,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:ir,inputMode:null,integrity:null,is:null,isMap:ir,itemId:null,itemProp:cr,itemRef:cr,itemScope:ir,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ir,low:sr,manifest:null,max:null,maxLength:sr,media:null,method:null,min:null,minLength:sr,multiple:ir,muted:ir,name:null,nonce:null,noModule:ir,noValidate:ir,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:ir,optimum:sr,pattern:null,ping:cr,placeholder:null,playsInline:ir,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ir,referrerPolicy:null,rel:cr,required:ir,reversed:ir,rows:sr,rowSpan:sr,sandbox:cr,scope:null,scoped:ir,seamless:ir,selected:ir,shadowRootClonable:ir,shadowRootDelegatesFocus:ir,shadowRootMode:null,shape:null,size:sr,sizes:null,slot:null,span:sr,spellCheck:ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:sr,step:null,style:null,tabIndex:sr,target:null,title:null,translate:null,type:null,typeMustMatch:ir,useMap:null,value:ar,width:sr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cr,axis:null,background:null,bgColor:null,border:sr,borderColor:null,bottomMargin:sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ir,declare:ir,event:null,face:null,frame:null,frameBorder:null,hSpace:sr,leftMargin:sr,link:null,longDesc:null,lowSrc:null,marginHeight:sr,marginWidth:sr,noResize:ir,noHref:ir,noShade:ir,noWrap:ir,object:null,profile:null,prompt:null,rev:null,rightMargin:sr,rules:null,scheme:null,scrolling:ar,standby:null,summary:null,text:null,topMargin:sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ir,disableRemotePlayback:ir,prefix:null,property:null,results:sr,security:null,unselectable:null},space:"html",transform:xr}),kr=yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dr,accentHeight:sr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:sr,amplitude:sr,arabicForm:null,ascent:sr,attributeName:null,attributeType:null,azimuth:sr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:sr,by:null,calcMode:null,capHeight:sr,className:cr,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:sr,diffuseConstant:sr,direction:null,display:null,dur:null,divisor:sr,dominantBaseline:null,download:ir,dx:null,dy:null,edgeMode:null,editable:null,elevation:sr,enableBackground:null,end:null,event:null,exponent:sr,externalResourcesRequired:null,fill:null,fillOpacity:sr,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:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:sr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:sr,horizOriginX:sr,horizOriginY:sr,id:null,ideographic:sr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:sr,k:sr,k1:sr,k2:sr,k3:sr,k4:sr,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:sr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:sr,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:sr,overlineThickness:sr,paintOrder:null,panose1:null,path:null,pathLength:sr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:sr,pointsAtY:sr,pointsAtZ:sr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:sr,specularExponent:sr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:sr,strikethroughThickness:sr,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:sr,strokeOpacity:sr,strokeWidth:null,style:null,surfaceScale:sr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:sr,tableValues:null,target:null,targetX:sr,targetY:sr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:sr,underlineThickness:sr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:sr,values:null,vAlphabetic:sr,vMathematical:sr,vectorEffect:null,vHanging:sr,vIdeographic:sr,version:null,vertAdvY:sr,vertOriginX:sr,vertOriginY:sr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Cr=yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Sr=yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),Er=yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Tr={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"},Ar=/[A-Z]/g,Or=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Pr(e){return"-"+e.toLowerCase()}function Ir(e){return e.charAt(1).toUpperCase()}const Dr=tr([vr,wr,Cr,Sr,Er],"html"),Lr=tr([vr,kr,Cr,Sr,Er],"svg");var _r={},Rr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jr=/\n/g,Mr=/^\s*/,Fr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qr=/^:\s*/,zr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Hr=/^\s+|\s+$/g,Ur="";function Vr(e){return e?e.replace(Hr,Ur):Ur}var Wr=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,$r.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var $r=Wr((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(jr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(Mr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Ur!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Ur===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=i(),t=s(Fr);if(t){if(d(),!s(qr))return l("property missing ':'");var n=s(zr),r=e({type:"declaration",property:Vr(t[0].replace(Rr,Ur)),value:n?Vr(n[0].replace(Rr,Ur)):Ur});return s(Br),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}));var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var Gr=/^--[a-zA-Z0-9_-]+$/,Zr=/-([a-z])/g,Xr=/^[^-]+$/,Jr=/^-(webkit|moz|ms|o|khtml)-/,Kr=/^-(ms)-/,Qr=function(e,t){return t.toUpperCase()},eo=function(e,t){return"".concat(t,"-")};Yr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Xr.test(e)||Gr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Kr,eo):e.replace(Jr,eo)).replace(Zr,Qr))};var to=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_r),no=Yr;function ro(e,t){var n={};return e&&"string"==typeof e?((0,to.default)(e,(function(e,r){e&&r&&(n[(0,no.camelCase)(e,t)]=r)})),n):n}ro.default=ro;var oo=fe(ro);const io=lo("end"),ao=lo("start");function lo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function so(e){return e&&"object"==typeof e?"position"in e||"type"in e?uo(e.position):"start"in e||"end"in e?uo(e):"line"in e||"column"in e?co(e):"":""}function co(e){return fo(e&&e.line)+":"+fo(e&&e.column)}function uo(e){return co(e&&e.start)+"-"+co(e&&e.end)}function fo(e){return e&&"number"==typeof e?e:1}class po extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=so(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}po.prototype.file="",po.prototype.name="",po.prototype.reason="",po.prototype.message="",po.prototype.stack="",po.prototype.column=void 0,po.prototype.line=void 0,po.prototype.ancestors=void 0,po.prototype.cause=void 0,po.prototype.fatal=void 0,po.prototype.place=void 0,po.prototype.ruleId=void 0,po.prototype.source=void 0;const ho={}.hasOwnProperty,mo=new Map,go=/[A-Z]/g,yo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),bo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ao(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Lr:Dr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=wo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function wo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=To(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ho.call(t.properties,o)){const i=Eo(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&vo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=So(e,t);yo.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qn(t.value):Qn(t));var t})));return ko(e,a,i,t),Co(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(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)}Ao(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:To(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ao(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Ao(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=So(e,t);return ko(e,a,i,t),Co(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ao(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Co(r,So(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ko(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Co(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function So(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:mo;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=wo(e,i,a);void 0!==l&&n.push(l)}return n}function Eo(e,t,n){const r=function(e,t){const n=nr(t);let r=t,o=rr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Nr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Or,Ir);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Or.test(e)){let n=e.replace(Ar,Pr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=mr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return oo(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new po("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bo+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ho.call(e,n)&&(t[Oo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tr[r.property]||r.property:r.attribute,n]}}function To(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Jn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Jn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ho.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ao(e)}function Ao(e,t){const n=new po("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=bo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Oo(e){let t=e.replace(go,No);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function No(e){return"-"+e.toLowerCase()}const Po={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"]},Io={};function Do(e,t){return Lo(e,"boolean"!=typeof Io.includeImageAlt||Io.includeImageAlt,"boolean"!=typeof Io.includeHtml||Io.includeHtml)}function Lo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _o(e.children,t,n)}return Array.isArray(e)?_o(e,t,n):""}function _o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Lo(e[o],t,n);return r.join("")}const Ro={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jo={}.hasOwnProperty;function Mo(e){return!!jo.call(Ro,e)&&Ro[e]}function Fo(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function qo(e,t){return e.length>0?(Fo(e,e.length,0,t),e):t}const zo={}.hasOwnProperty;function Bo(e){const t={};let n=-1;for(;++n<e.length;)Ho(t,e[n]);return t}function Ho(e,t){let n;for(n in t){const r=(zo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){zo.call(r,i)||(r[i]=[]);const e=o[i];Uo(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Uo(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Fo(e,0,0,r)}function Vo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $o=oi(/[A-Za-z]/),Yo=oi(/[\dA-Za-z]/),Go=oi(/[#-'*+\--9=?A-Z^-~]/);function Zo(e){return null!==e&&(e<32||127===e)}const Xo=oi(/\d/),Jo=oi(/[\dA-Fa-f]/),Ko=oi(/[!-/:-@[-`{-~]/);function Qo(e){return null!==e&&e<-2}function ei(e){return null!==e&&(e<0||32===e)}function ti(e){return-2===e||-1===e||32===e}const ni=oi(/\p{P}|\p{S}/u),ri=oi(/\s/);function oi(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ii(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Yo(e.charCodeAt(n+1))&&Yo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ai(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ti(r))return e.enter(n),a(r);return t(r)};function a(r){return ti(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const si={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Fo(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ci,u,d)(o)}function u(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(ci,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Fo(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ci={tokenize:function(e,t,n){return ai(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ui(e){return null===e||ei(e)||ri(e)?1:ni(e)?2:void 0}function di(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 fi={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};pi(d,-l),pi(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=qo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=qo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=qo(s,di(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=qo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=qo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fo(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ui(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=ui(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function pi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hi={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return $o(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Yo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Yo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zo(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Go(t)?(e.consume(t),s):n(t)}function c(e){return Yo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Yo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const mi={partial:!0,tokenize:function(e,t,n){return function(t){return ti(t)?ai(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qo(e)?t(e):n(e)}}};const gi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ti(t))return ai(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(gi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ti(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const yi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Ko(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const vi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Yo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Jo,c):(e.enter("characterReferenceValue"),o=7,i=Xo,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Yo||Mo(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const bi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},xi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),ti(t)?ai(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Qo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(bi,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ai(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Qo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ti(t)?ai(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qo(t)?e.check(bi,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const wi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ai(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Qo(t)?e.attempt(ki,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},ki={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ai(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qo(e)?o(e):n(e)}}};const Ci={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Qo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class Si{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ei(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ei(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ei(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ei(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ei(this.left,t.reverse())}}}function Ei(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 Ti(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Si(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ai(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Fo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Ai(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=l.slice(g[f],g[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Oi={resolve:function(e){return Ti(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qo(t)?e.check(Ni,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ni={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,o,"linePrefix")};function o(o){if(null===o||Qo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Pi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Qo(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ei(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Zo(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ii(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Qo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!ti(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Di(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Qo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Li(e,t){let n;return function r(o){if(Qo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ti(o))return ai(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const _i={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ii.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ei(t)?Li(e,l)(t):l(t)}function l(t){return Pi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Ri,c,c)(t)}function c(t){return ti(t)?ai(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Qo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Ri={partial:!0,tokenize:function(e,t,n){return function(t){return ei(t)?Li(e,r)(t):n(t)};function r(t){return Di(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ti(t)?ai(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qo(e)?t(e):n(e)}}};const ji={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Mi={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Fo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ei(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qo(n)?(e.exit("atxHeading"),t(n)):ti(n)?ai(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ei(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Fi=["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"],qi=["pre","script","style","textarea"],zi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:_):$o(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):$o(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:f):n(o)}function p(t){return $o(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ei(l)){const s=47===l,c=a.toLowerCase();return s||i||!qi.includes(c)?Fi.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Yo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return ti(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||$o(t)?(e.consume(t),v):ti(t)?(e.consume(t),y):S(t)}function v(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):ti(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ti(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,C):null===t||Qo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ei(t)?b(t):(e.consume(t),k)}function C(e){return 47===e||62===e||ti(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qo(t)?T(t):ti(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Qo(t)||6!==o&&7!==o?null===t||Qo(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Bi,j,A)(t))}function A(t){return e.check(Hi,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Qo(t)?A(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return qi.includes(n)?(e.consume(t),R):T(t)}return $o(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Qo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Bi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(mi,t,n)}}},Hi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Ui={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):$o(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):$o(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Qo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Qo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Qo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return $o(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Yo(t)?(e.consume(t),w):k(t)}function k(t){return Qo(t)?(a=k,D(t)):ti(t)?(e.consume(t),k):I(t)}function C(t){return 45===t||Yo(t)?(e.consume(t),C):47===t||62===t||ei(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||$o(t)?(e.consume(t),E):Qo(t)?(a=S,D(t)):ti(t)?(e.consume(t),S):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),A):Qo(t)?(a=T,D(t)):ti(t)?(e.consume(t),T):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):Qo(t)?(a=A,D(t)):ti(t)?(e.consume(t),A):(e.consume(t),N)}function O(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Qo(t)?(a=O,D(t)):(e.consume(t),O)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ei(t)?S(t):(e.consume(t),N)}function P(e){return 47===e||62===e||ei(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return ti(t)?ai(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Vi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Fo(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=qo(i,e.slice(r+1,r+l+3)),i=qo(i,[["enter",u,t]]),i=qo(i,di(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=qo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=qo(i,e.slice(o+1)),i=qo(i,[["exit",s,t]]),Fo(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Wo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Wi,c,i?c:u)(t):91===t?e.attempt($i,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Yi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Wi={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ei(t)?Li(e,o)(t):o(t)}function o(t){return 41===t?c(t):Pi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ei(t)?Li(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Di(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ei(t)?Li(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},$i={tokenize:function(e,t,n){const r=this;return function(t){return Ii.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Yi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Gi={name:"labelStartImage",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Zi={name:"labelStartLink",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Xi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}}};const Ji={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ti(t)?ai(e,i,"whitespace")(t):i(t))}}};const Ki={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ai(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ti(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ea,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ai(e,e.attempt(Ki,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Xo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ji,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Xo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(mi,r.interrupt?n:c,e.attempt(Qi,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return ti(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Qi={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return!ti(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ea={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const ta={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ti(t)?ai(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const na={tokenize:function(e){const t=this,n=e.attempt(mi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ai(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Oi,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ra={resolveAll:la()},oa=aa("string"),ia=aa("text");function aa(e){return{resolveAll:la("text"===e?sa:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function la(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function sa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const ca={42:Ki,43:Ki,45:Ki,48:Ki,49:Ki,50:Ki,51:Ki,52:Ki,53:Ki,54:Ki,55:Ki,56:Ki,57:Ki,62:gi},ua={91:_i},da={[-2]:wi,[-1]:wi,32:wi},fa={35:Mi,42:Ji,45:[ta,Ji],60:zi,61:ta,95:Ji,96:xi,126:xi},pa={38:vi,92:yi},ha={[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Gi,38:vi,42:fi,60:[hi,Ui],91:Zi,92:[ji,yi],93:Vi,95:fi,96:Ci},ma={null:[fi,ra]};var ga=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ua,disable:{null:[]},document:ca,flow:fa,flowInitial:da,insideSpan:ma,string:pa,text:ha});function ya(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 a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Qo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=qo(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=di(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Fo(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const va=/[\0\t\n\r]/g;const ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xa(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vo(n.slice(t?2:1),t?16:10)}return Mo(n)||e}const wa={}.hasOwnProperty;function ka(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(J),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(X),hardBreakEscape:i(K),hardBreakTrailing:i(K),htmlFlow:i(Q,a),htmlFlowData:E,htmlText:i(Q,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:q,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(J),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:H,characterReference:U,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:A,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:z,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(S),setextHeadingLineSequence:C,setextHeadingText:k,strong:s(),thematicBreak:s()}};Sa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];wa.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ta).call(i,void 0,e[0])}for(r.position={start:Ca(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ca(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ca(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ta).call(this,e,r[0])}n.position.end=Ca(e.end)}function u(){return Do(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Ca(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ca(e.end)}function A(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Ca(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function O(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ba,xa)}(t),n.identifier=Wo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Mo(t)}this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=Ca(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ti(e););return e}(function(e){const t={constructs:Bo([ga,...(e||{}).extensions||[]]),content:n(li),defined:[],document:n(si),flow:n(na),lazy:{},string:n(oa),text:n(ia)};return t;function n(e){return function(n){return ya(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(va.lastIndex=u,s=va.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Ca(e){return{line:e.line,column:e.column,offset:e.offset}}function Sa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Sa(e,r):Ea(e,r)}}function Ea(e,t){let n;for(n in t)if(wa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ta(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is still open")}function Aa(e){const t=this;t.parser=function(n){return ka(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Oa(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Na(e){const t=e.spread;return null==t?e.children.length>1:t}function Pa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Ia(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Ia(t.slice(o),o>0,!1)),i.join("")}function Ia(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Da={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ii(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={src:ii(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ii(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={href:ii(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ii(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Na(n[r])}return t}(n):Na(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ao(t.children[1]),a=io(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Pa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:La,yaml:La,definition:La,footnoteDefinition:La};function La(){}const _a="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new _a[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new _a[i](a),o)};return r})(new Map,e)(0),ja="",{toString:Ma}={},{keys:Fa}=Object,qa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ma.call(e).slice(8,-1);switch(n){case"Array":return[1,ja];case"Object":return[2,ja];case"Date":return[3,ja];case"RegExp":return[4,ja];case"Map":return[5,ja];case"Set":return[6,ja];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},za=([e,t])=>0===e&&("function"===t||"symbol"===t),Ba=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=qa(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Fa(r))!e&&za(qa(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!za(qa(n))&&!za(qa(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&za(qa(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Ha="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(Ba(e,t)):structuredClone(e):(e,t)=>Ra(Ba(e,t));function Ua(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Va(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Wa=function(e){if(null==e)return Ya;if("function"==typeof e)return $a(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wa(e[n]);return $a(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return $a(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return $a(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function $a(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ya(){return!0}const Ga=[],Za=!0,Xa=!1;function Ja(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Wa(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Ga;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Za,e];return null==e?Ga:[e]}(n(o,s)),f[0]===Xa))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function Ka(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ja(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Qa={}.hasOwnProperty,el={};function tl(e,t){e.position&&(t.position=function(e){const t=ao(e),n=io(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Ha(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rl(e,t){const n=t.data||{},r=!("value"in t)||Qa.call(n,"hProperties")||Qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function ol(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function il(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function al(e,t){const n=function(e,t){const n=t||el,r=new Map,o=new Map,i=new Map,a={...Da,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=il(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=il(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:nl,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Qa.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ha(n);return r.children=l.all(e),r}return Ha(e)}return(l.options.unknownHandler||rl)(l,e,t)},options:n,patch:tl,wrap:ol};return Ka(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ua,r=e.options.footnoteBackLabel||Va,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ii(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ha(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ll(e,t){return e&&"run"in e?async function(n,r){const o=al(n,{file:r,...t});await e.run(o,r)}:function(n,r){return al(n,{file:r,...e||t})}}function sl(e){if(e)throw e}var cl=Object.prototype.hasOwnProperty,ul=Object.prototype.toString,dl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,pl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ul.call(e)},hl=function(e){if(!e||"[object Object]"!==ul.call(e))return!1;var t,n=cl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cl.call(e,t)},ml=function(e,t){dl&&"__proto__"===t.name?dl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gl=function(e,t){if("__proto__"===t){if(!cl.call(e,t))return;if(fl)return fl(e,t).value}return e[t]},yl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=gl(l,n),l!==(o=gl(t,n))&&(u&&o&&(hl(o)||(i=pl(o)))?(i?(i=!1,a=r&&pl(r)?r:[]):a=r&&hl(r)?r:{},ml(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&ml(l,{name:n,newValue:o}));return l},vl=fe(yl);function bl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const wl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');kl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(kl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){kl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)kl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){kl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function kl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cl={cwd:function(){return"/"}};function Sl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function El(e){if("string"==typeof e)e=new URL(e);else if(!Sl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Tl=["history","path","basename","stem","extname","dirname"];class Al{constructor(e){let t;t=e?Sl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Cl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Tl.length;){const e=Tl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Tl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?wl.basename(this.path):void 0}set basename(e){Nl(e,"basename"),Ol(e,"basename"),this.path=wl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?wl.dirname(this.path):void 0}set dirname(e){Pl(this.basename,"dirname"),this.path=wl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?wl.extname(this.path):void 0}set extname(e){if(Ol(e,"extname"),Pl(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Sl(e)&&(e=El(e)),Nl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?wl.basename(this.path,this.extname):void 0}set stem(e){Nl(e,"stem"),Ol(e,"stem"),this.path=wl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new po(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Ol(e,t){if(e&&e.includes(wl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wl.sep+"`")}function Nl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Il=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Dl={}.hasOwnProperty;class Ll extends Il{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xl()}copy(){const e=new Ll;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(vl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ml("data",this.frozen),this.namespace[e]=t,this):Dl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zl(e),n=this.parser||this.Parser;return Rl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Rl("process",this.parser||this.Parser),jl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=zl(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Rl("processSync",this.parser||this.Parser),jl("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,sl(e),t=r})),ql("processSync","process",n),t}run(e,t,n){Fl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=zl(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){sl(e),n=t,r=!0})),ql("runSync","run",r),n}stringify(e,t){this.freeze();const n=zl(t),r=this.compiler||this.Compiler;return jl("stringify",r),Fl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ml("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=vl(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];bl(a)&&bl(r)&&(r=vl(!0,a,r)),n[o]=[e,r,...i]}}}}const _l=(new Ll).freeze();function Rl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fl(e){if(!bl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ql(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Al(e)}const Bl=[],Hl={allowDangerousHtml:!0},Ul=/^(https?|ircs?|mailto|xmpp)$/i,Vl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Wl(r){const o=function(e){const t=e.rehypePlugins||Bl,n=e.remarkPlugins||Bl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hl}:Hl,o=_l().use(Aa).use(n).use(ll,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Al;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||$l;for(const e of Vl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Ka(r,f),xo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function f(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Po)if(Object.hasOwn(Po,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Po[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function $l(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Ul.test(e.slice(0,t))?e:""}var Yl="access",Gl="refresh",Zl="/token/refresh/",Xl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Jl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Yl=t,Gl=n,Zl=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Xl.get(Gl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat(Zl),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Xl.set(Yl,t,{expires:i(r.iat,r.exp)}),Xl.set(Gl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Xl.get(Yl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Xl.get(Gl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Xl.get(Yl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Kl=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Ql(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var es=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var f={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},p=kn(kn({},f),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},f),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t($n,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:p,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function ts(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var f={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},p={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(Hn,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:f,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"green"}),children:t(Wn,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:f,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"red"}),children:t($n,{size:12})}),t("span",{children:"Delete"})]})]})]})}var ns=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),f=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Wn,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:f,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function rs(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function os(e,t,n){const r=Wa((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([is(e[0]),as(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ja(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function is(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function as(e){return"function"==typeof e?e:function(){return e}}const ls="phrasing",ss=["autolink","link","image","label"];function cs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function us(e){this.config.enter.autolinkProtocol.call(this,e)}function ds(e){this.config.exit.autolinkProtocol.call(this,e)}function fs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ps(e){this.config.exit.autolinkEmail.call(this,e)}function hs(e){this.exit(e)}function ms(e){os(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ys]],{ignore:["link","linkReference"]})}function gs(e,t,n,r,o){let i="";if(!vs(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=rs(e,"(");let i=rs(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function ys(e,t,n,r){return!(!vs(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vs(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ri(n)||ni(n))&&(!t||47!==n)}function bs(){this.buffer()}function xs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ws(){this.buffer()}function ks(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ss(e){this.exit(e)}function Es(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ts(e){this.exit(e)}function As(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function Os(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ps:Ns)));return l(),a},footnoteReference:As},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ns(e,t,n){return 0===t?e:Ps(e,t,n)}function Ps(e,t,n){return(n?"":" ")+e}As.peek=function(){return"["};const Is=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ds(e){this.enter({type:"delete",children:[]},e)}function Ls(e){this.exit(e)}function _s(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Rs(e){return e.length}function js(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ms(e,t,n){return">"+(n?"":" ")+e}function Fs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function qs(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Fs(i,a.inConstruct,!0)&&!Fs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function zs(e,t,n){return(n?"":" ")+e}function Bs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Us(e,t,n){const r=ui(e),o=ui(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Vs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}function Ws(e){return e.value||""}function $s(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Gs(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Zs(e,t){const n=Do(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Xs(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if(Zs(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Js(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Ks(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qs(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}_s.peek=function(){return"~"},Vs.peek=function(e,t,n){return n.options.emphasis||"*"},Ws.peek=function(){return"<"},$s.peek=function(){return"!"},Ys.peek=function(){return"!"},Gs.peek=function(){return"`"},Xs.peek=function(e,t,n){return Zs(e,n)?"<":"["},Js.peek=function(){return"["};const ec=Wa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tc(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}tc.peek=function(e,t,n){return n.options.strong||"*"};const nc={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Ms);return o(),a},break:qs,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,zs);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Vs,hardBreak:qs,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Ka(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Xa})),Boolean((!e.depth||e.depth<3)&&Do(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=Hs(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Ws,image:$s,imageReference:Ys,inlineCode:Gs,link:Xs,linkReference:Js,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ks(n);const l=e.ordered?"."===a?")":".":function(e){const t=Ks(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Qs(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Ks(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return ec(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:tc,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Qs(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function rc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function oc(e){this.exit(e),this.data.inTable=void 0}function ic(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function lc(e){this.enter({type:"tableCell",children:[]},e)}function sc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function uc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=nc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Rs,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=js(r[f]);else{const e=js(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function fc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=nc.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const hc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},mc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(yc,s,l)(t):null===t||ei(t)||ri(t)||45!==t&&ni(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},gc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(yc,t,i)(a):null===a||ei(a)||ri(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||ei(a)||ri(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ei(e)||ri(e)?t(e):r(e)}function i(e){return $o(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):$o(t)?(e.consume(t),a):n(t)}},partial:!0},vc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Yo(e)?n(e):t(e)}},partial:!0},bc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Sc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hc,e.attempt(mc,e.attempt(gc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Sc},xc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ec.call(r,r.previous)&&!Oc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if($o(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||Zo(t)||ei(t)||ri(t)||ni(t)?n(t):e.attempt(mc,e.attempt(gc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ec},wc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Ac(t)||!Tc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ac(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(vc,c,s)(t):45===t||95===t||Yo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&$o(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Tc},kc={};let Cc=48;for(;Cc<123;)kc[Cc]=wc,Cc++,58===Cc?Cc=65:91===Cc&&(Cc=97);function Sc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ei(e)}function Ec(e){return!$o(e)}function Tc(e){return!(47===e||Ac(e))}function Ac(e){return 43===e||45===e||46===e||95===e||Yo(e)}function Oc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}kc[43]=wc,kc[45]=wc,kc[46]=wc,kc[95]=wc,kc[72]=[wc,xc],kc[104]=[wc,xc],kc[87]=[wc,bc],kc[119]=[wc,bc];const Nc={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Pc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Wo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ic(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Dc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||ei(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Wo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return ei(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Lc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||ei(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ei(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ai(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function _c(e,t,n){return e.check(mi,t,e.attempt(Nc,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function jc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=ui(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=ui(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Fo(a,a.length,0,di(l,e.slice(r+1,n),t)),Fo(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Fo(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Mc{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)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 t of r)e.push(t);r=n.pop()}this.map.length=0}}function Fc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function qc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Qo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ti(t)?ai(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ei(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,ti(t)?ai(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return ti(t)?ai(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return ti(t)?ai(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||Qo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Qo(n)?(e.exit("tableRow"),t(n)):ti(n)?ai(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||ei(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function zc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Mc;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(Hc(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Bc(f,t,s,l,i,o)):0!==c[1]&&(o=Bc(f,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&Hc(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Fc(t.events,i))}return e}function Bc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Uc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Uc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Uc(t.events,n[2]),i=Uc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Uc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Hc(e,t,n,r,o){const i=[],a=Uc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Uc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Vc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return ei(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qo(r)?t(r):ti(r)?e.check({tokenize:Wc},t,n)(r):n(r)}}};function Wc(e,t,n){return ai(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const $c={};function Yc(e){const t=e||$c,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Bo([{text:kc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:_c},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:Ic}}},jc(e),{flow:{null:{name:"table",tokenize:qc,resolveAll:zc}}},{text:{91:Vc}}])}(t)),o.push([{transforms:[ms],enter:{literalAutolink:cs,literalAutolinkEmail:us,literalAutolinkHttp:us,literalAutolinkWww:us},exit:{literalAutolink:hs,literalAutolinkEmail:ps,literalAutolinkHttp:ds,literalAutolinkWww:fs}},{enter:{gfmFootnoteCallString:bs,gfmFootnoteCall:xs,gfmFootnoteDefinitionLabelString:ws,gfmFootnoteDefinition:ks},exit:{gfmFootnoteCallString:Cs,gfmFootnoteCall:Ss,gfmFootnoteDefinitionLabelString:Es,gfmFootnoteDefinition:Ts}},{canContainEols:["delete"],enter:{strikethrough:Ds},exit:{strikethrough:Ls}},{enter:{table:rc,tableData:lc,tableHeader:lc,tableRow:ic},exit:{codeText:sc,table:oc,tableData:ac,tableHeader:ac,tableRow:ac}},{exit:{taskListCheckValueChecked:dc,taskListCheckValueUnchecked:dc,paragraph:fc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:ss}]},Os(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Is}],handlers:{delete:_s}},uc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pc}}]}}(t))}var Gc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function Zc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Xc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Jc(i,...n)]}function Jc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Kc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Kc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Kc(e[t],null)}}}}function eu(...e){return r.useCallback(Qc(...e),e)}function tu(e){const n=nu(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(ou);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function nu(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Qc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var ru=Symbol("radix.slottable");function ou(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ru}var iu=globalThis?.document?r.useLayoutEffect:()=>{},au=r[" useId ".trim().toString()]||(()=>{}),lu=0;function su(e){const[t,n]=r.useState(au());return iu((()=>{n((e=>e??String(lu++)))}),[e]),e||(t?`radix-${t}`:"")}var cu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=tu(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var uu=r[" useInsertionEffect ".trim().toString()]||iu;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return uu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var fu=r.createContext(void 0);function pu(e){const t=r.useContext(fu);return e||t||"ltr"}var hu="rovingFocusGroup.onEntryFocus",mu={bubbles:!1,cancelable:!0},gu="RovingFocusGroup",[yu,vu,bu]=function(e){const n=e+"CollectionProvider",[r,i]=Xc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=tu(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=eu(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=tu(f),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=eu(n,s),u=l(f,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(gu),[xu,wu]=Xc(gu,[bu]),[ku,Cu]=xu(gu),Su=r.forwardRef(((e,n)=>t(yu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(yu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(Eu,{...e,ref:n})})})));Su.displayName=gu;var Eu=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=r.useRef(null),m=eu(n,h),g=pu(l),[y,v]=du({prop:s,defaultProp:c??null,onChange:u,caller:gu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=vu(o),C=r.useRef(!1),[S,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(hu,w),()=>e.removeEventListener(hu,w)}),[w]),t(ku,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(cu.div,{tabIndex:b||0===S?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:Zc(e.onMouseDown,(()=>{C.current=!0})),onFocus:Zc(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(hu,mu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Nu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}C.current=!1})),onBlur:Zc(e.onBlur,(()=>x(!1)))})})})),Tu="RovingFocusGroupItem",Au=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=su(),d=l||u,f=Cu(Tu,o),p=f.currentTabStopId===d,h=vu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=f;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(yu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(cu.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i?f.onItemFocus(d):e.preventDefault()})),onFocus:Zc(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:Zc(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ou[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=f.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Nu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})}));Au.displayName=Tu;var Ou={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Pu=Su,Iu=Au;var Du=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Lu(o.current);a.current="mounted"===s?e:"none"}),[s]),iu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Lu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),iu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Lu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Lu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=eu(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Lu(e){return e?.animationName||"none"}Du.displayName="Presence";var _u="Tabs",[Ru,ju]=Xc(_u,[wu]),Mu=wu(),[Fu,qu]=Ru(_u),zu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=pu(s),[f,p]=du({prop:o,onChange:i,defaultProp:a??"",caller:_u});return t(Fu,{scope:r,baseId:su(),value:f,onValueChange:p,orientation:l,dir:d,activationMode:c,children:t(cu.div,{dir:d,"data-orientation":l,...u,ref:n})})}));zu.displayName=_u;var Bu="TabsList",Hu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=qu(Bu,r),l=Mu(r);return t(Pu,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(cu.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));Hu.displayName=Bu;var Uu="TabsTrigger",Vu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=qu(Uu,r),s=Mu(r),c=$u(l.baseId,o),u=Yu(l.baseId,o),d=o===l.value;return t(Iu,{asChild:!0,...s,focusable:!i,active:d,children:t(cu.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:Zc(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:Zc(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Vu.displayName=Uu;var Wu="TabsContent";function $u(e,t){return`${e}-trigger-${t}`}function Yu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=qu(Wu,o),u=$u(c.baseId,i),d=Yu(c.baseId,i),f=i===c.value,p=r.useRef(f);return r.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Du,{present:a||f,children:({present:r})=>t(cu.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&l})})})).displayName=Wu;var Gu=zu,Zu=Hu,Xu=Vu;function Ju(e){var n=e.className,r=Cn(e,["className"]);return t(Gu,kn({"data-slot":"tabs",style:kn({display:"flex",flexDirection:"column",gap:"8px"},n?{className:n}:{})},r))}function Ku(e){var n=e.className,r=Cn(e,["className"]);return t(Zu,kn({"data-slot":"tabs-list",style:kn({display:"flex",gap:"4px",backgroundColor:"#e8e8e8",padding:"4px",borderRadius:"8px"},n?{className:n}:{})},r))}function Qu(r){r.className;var o=Cn(r,["className"]);return e(n,{children:[t(Xu,kn({"data-slot":"tabs-trigger",style:{flex:1,userSelect:"none",borderRadius:"6px",padding:"8px 8px",fontSize:"12px",fontWeight:"600",color:"#666",transition:"all 0.15s",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",cursor:"pointer",border:"none",outline:"none"}},o)),t("style",{children:'\n [data-slot="tabs-trigger"][data-state="active"] {\n background-color: #ffffff;\n color: #1a1a1a;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n }\n [data-slot="tabs-trigger"]:not([data-state="active"]):hover {\n background-color: rgba(255, 255, 255, 0.5);\n }\n '})]})}var ed={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities for the selected context",query:"Show me all critical vulnerabilities for the selected context",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Catalog list",description:"Show me the catalogs",query:"Show me the catalogs",category:"compliance",icon:"📋"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"}]}},td=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.setSend,a=n.quickActions,l=n.className,s=void 0===l?"":l,c=ed[o],u=a||c.quickActions;return e("div",{className:"security-assistant ".concat(s),style:{"--primary-color":c.theme.primary,"--background-color":c.theme.background,"--border-color":c.theme.border,"--card-hover-color":c.theme.cardHover,maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:c.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a"},children:c.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:c.subtitle})]}),t("div",{className:"quick-actions-grid",children:u.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query),i(!0)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 12px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n margin-bottom: 12px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},nd=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},rd=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],f=s[1],h=o.useState({}),m=h[0],g=h[1],y=/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\b/g,v=o.useState("devops"),w=v[0],k=v[1],C=o.useState(!1),S=C[0],E=C[1],T=i(!0),A=T[0],O=T[1],N=i(!1),P=N[0],I=N[1],D=i([]),L=D[0],_=D[1],R=i(!1),j=R[0],M=R[1],F=i(!1),q=F[0],z=F[1],B=i(null);B[0];var H=B[1],U=i([]),V=U[0],W=U[1],$=i([]);$[0];var Y=$[1],G=i({}),Z=G[0];G[1];var X=i("");X[0];var J=X[1],K=i([]),Q=K[0],ee=K[1],te=i(!1),ne=te[0],re=te[1],oe=i((new Date).toISOString().split("T")[0]),ie=oe[0],ae=oe[1],le=u(null),se=i(""),ce=se[0],ue=se[1],de=i(null),fe=de[0],pe=de[1],he=i(!1),me=he[0],ge=he[1],ye=u(null),ve=i([]),be=ve[0],xe=ve[1],we=i([]),ke=we[0],Ce=we[1],Se=i(null),Ee=Se[0],Te=Se[1],Ae=i(!1),Oe=Ae[0],Ne=Ae[1],Pe=i(!1),Ie=Pe[0],De=Pe[1],Le=Dn(),_e=Le.getTaskID,Re=Le.setIsAgent,je=Le.setConverse,Me=Le.isAgent,Fe=Le.getTaskAgent,qe=Le.converse,ze=Le.prompts,Be=Le.setPrompts,He=Le.isLoading,Ue=Le.isResize;Le.setIsResize;var Ve=i(""),We=Ve[0],$e=Ve[1],Ye=i(!0),Ge=Ye[0],Ze=Ye[1],Xe=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===w?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Name",options:[],disabled:!1}]),Je=Xe[0],Ke=Xe[1];function Qe(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var et=Ql("(max-width: 640px)"),tt=Ql("(max-width: 1024px)");Ql("(min-width: 1024px)");var nt=Ql("(max-width: 640px)"),rt=p((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),ee(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]);d((function(){P&&at()}),[P]);var ot=p((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),_((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),Nn({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),_([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Xl.get(Yl)&&(rt(),ot())}),[rt,ot]),d((function(){var e=b.get("access");if(e){var t=Qe(e);if(null==t?void 0:t.oidc_acs){var n=Qe(t.oidc_acs);(null==n?void 0:n.name)&&J(n.name)}}}),[]),d((function(){Ke((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:A?[{label:"Loading...",value:""}]:Array.isArray(L)?L.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[L]);var it="security"===w?Je.filter((function(e){return"Project"===e.label||"Application"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Name"===e.label})):Je.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),at=function(){var e,t,n,r,o,i,a,l,s,u,d,p,h,g,y,v;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var b=x();z(!0),Be((function(e){return Tn(Tn([],e,!0),[{id:b,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==L?void 0:L.filter((function(e){return(null==e?void 0:e.uuid)===m.Project})))||void 0===t?void 0:t[0],C={};if("devops"===w||"sre"===w){var S=null===(n=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=Je.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===m.Environment})))||void 0===i?void 0:i[0];C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==m?void 0:m.Application)||"",env_uuid:(null==m?void 0:m.Environment)||"",action_type:(null==m?void 0:m["Action Type"])||"",context:"devops"===w?"devops":"sreops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",application_action_type:(null===(l=null===(a=null==m?void 0:m["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==m?void 0:m["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===m.Category})))||void 0===u?void 0:u[0],A=null===(g=null===(h=null===(p=null===(d=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Category)})))||void 0===d?void 0:d[0])||void 0===p?void 0:p.tools)||void 0===h?void 0:h.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Tool)})))||void 0===g?void 0:g[0],O=(S=null===(y=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===y?void 0:y[0],null===(v=null==ke?void 0:ke.filter((function(e){return(null==e?void 0:e.uuid)===m["Scan Name"]})))||void 0===v?void 0:v[0]);C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==m?void 0:m["Scan Name"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==m?void 0:m.Application)||"",category:(null==m?void 0:m.Category)||"",tool:(null==m?void 0:m.Tool)||"",context:"secops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==A?void 0:A.name)||"",scan_name:(null==O?void 0:O.scan_name)||""}}}f(""),I(!1),Me?(console.log(qe),Fe(b,kn(kn({},C),{agent_mode:Me,agent_trans_uuid:qe}),f,ee,ue,pe,ce)):_e(b,C,f,ee,ue,pe,ce)}else Nn({severity:"error",summary:"Error",detail:"Please enter a message"})},lt=function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=i.sent(),console.log("Applications:",null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.data),W((null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.data)||[]),Ke((function(e){return e.map((function(e){var n,r;return"Application"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return n=i.sent(),console.error("Error fetching applications:",n),Nn({severity:"error",summary:"Error Fetching Applications",detail:n.message||"Failed to load applications. Please try again.",life:5e3}),W([]),Ke((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},st=function(e,t,n){return Sn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),Y((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Ke((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),Nn({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),Y([]),Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},ct=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Ke((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===w||"sre"===w||"security"===w)||"Category"===e.label&&"security"===w||"Metric Type"===e.label&&"sre"===w||"Time Range"===e.label&&"sre"===w||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Name":null,Category:null,Tool:null})})),"devops"===w||"sre"===w?lt(t):(lt(t),n=t,Sn(void 0,void 0,void 0,(function(){var e,t,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=o.sent(),xe((null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.categories)||[]),Ke((function(t){return t.map((function(t){var n,r;return"Category"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):t}))})),[3,4];case 2:return t=o.sent(),console.error("Error fetching category:",t),Nn({severity:"error",summary:"Error Fetching Category",detail:t.message||"Failed to load category. Please try again.",life:5e3}),W([]),Ke((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))),H(null)),"Application"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===w?"sre":null})})),"sre"===w&&(Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),st(t,m.Project,"sre"))),"Category"===e&&null!==t){var o=be.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Ke((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Name"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Name":null})}))}"Tool"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Sn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:m.Category,tool:r,page:1,"count per page":200,project_id:m.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),Ce(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Ke((function(e){return e.map((function(e){var t,r;return"Scan Name"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching Scan Name:",o),Nn({severity:"error",summary:"Error Fetching Scan Name",detail:o.message||"Failed to load Scan Name. Please try again.",life:5e3}),Ke((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),H(null)),"Action Type"===e&&null!==t&&(Ke((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),st(m.Application,m.Project,t)),"Environment"===e&&null!==t&&H(null==m?void 0:m["Action Type"]),"Scan Name"===e&&null!==t&&H(null)}};"devops"!==w&&"sre"!==w||m.Project&&m.Application&&m.Environment&&m["Action Type"];var ut=function(e,t,n,r){return Sn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=f.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),ae(null==c?void 0:c.toISOString())),n?Be(i):0==(null==i?void 0:i.length)?console.log("skip"):Be((function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])})),i.length>0?re(!0):re(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),ge(!1),[3,4];case 2:return u=f.sent(),ge(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},dt=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},ft=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(On,{}),A&&t(nd,{}),e("div",{style:{display:"flex",flex:1,flexDirection:et?"column":"row",overflow:"hidden",height:"calc(100vh - 180px)"},children:[Ue&&e("aside",{style:{height:"calc(100vh - 40px)",width:tt?"100%":Ge?"300px":"0px",backgroundColor:Ge?"#f5f5f5":"transparent",color:"black",padding:Ge?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:nt?"flex":"none"},onClick:function(){return E((function(e){return!e}))},children:[t(S?Bn:zn,{style:{width:"16px",height:"16px"}}),S?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:tt?S?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 120px)",maxWidth:Ge?"300px":"10px"},children:e(Gc,{isExpanded:Ge,setIsExpanded:Ze,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(Ju,{value:w,onValueChange:function(e){ue(""),pe(null),ae(dt()),Be([]),z(!1),je(""),Re(!1),k(e),g({}),H(null),Ke((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Name"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(Ku,{children:[e(Qu,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(Qu,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(Qu,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{style:{paddingBottom:"0.5rem",borderBottom:"1px solid rgb(229, 231, 235)"},children:e("button",{onClick:function(){z(!1),ue(""),pe(null),je(""),Re(!1),ae(dt()),Be([])},title:"New Chat",className:"new-chat-btn",style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",gap:"6px",backgroundColor:"#7761F3",color:"white",border:"none",borderRadius:"0.375rem",fontWeight:"500",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease-in-out",padding:"10px 16px",margin:"16px 0 12px 0"},children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px",paddingTop:"0.5rem",color:"#666"},children:[t("div",{className:"filters-title",style:{fontSize:"11px",fontWeight:"600",color:"#666",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Contextual Filters"}),it.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label",style:{fontSize:"0.75rem",fontWeight:"600",color:"rgb(55, 65, 81)",marginBottom:"0.25rem"},children:n.label}),o?e("select",{disabled:n.disabled,value:m[n.label]||"",onChange:function(e){return ct(n.label,e.target.value)},className:"filter-select",style:{width:"100%",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.875rem",padding:"0.5rem",outline:"none"},onFocus:function(e){var t=e.target;t.style.boxShadow="0 0 0 2px #7761F3",t.style.borderColor="#7761F3"},onBlur:function(e){var t=e.target;t.style.boxShadow="none",t.style.borderColor="rgb(209, 213, 219)"},onMouseEnter:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="#7761F3")},onMouseLeave:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="rgb(209, 213, 219)")},children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",maxHeight:"5rem",overflowY:"auto"},children:"Environment"===n.label&&"buildd"===String((null==m?void 0:m["Action Type"])||"").toLowerCase()?t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==m?void 0:m[n.label])===e.value;return t("div",{onClick:function(){ct(n.label,o?null:e.value)},className:"filter-tag",style:{cursor:"pointer",borderRadius:"9999px",padding:"0.25rem 0.75rem",maxHeight:"2.5rem",fontSize:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"500",border:"1px solid ".concat(o?"#7761F3":"rgb(209, 213, 219)"),transition:"all 0.15s ease-in-out",backgroundColor:o?"#7761F3":"rgb(243, 244, 246)",color:o?"white":"rgb(55, 65, 81)"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="rgb(229, 231, 235)")},onMouseLeave:function(e){o||(e.currentTarget.style.backgroundColor="rgb(243, 244, 246)")},children:e.label},r)})):t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),H(null)},style:{width:"100%",padding:"0.375rem",backgroundColor:"transparent",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.75rem",color:"rgb(75, 85, 99)",cursor:"pointer",marginTop:"0.5rem",transition:"all 0.15s ease-in-out"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="rgb(249, 250, 251)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},children:"Clear All Filters"})]}),(null==Q?void 0:Q.length)>0&&t("div",{style:{marginTop:"10px",borderTop:"1px solid rgb(229, 231, 235)"},children:(null==Q?void 0:Q.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),Q.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){z(!0),Be([]),ge(!0),ue(null==n?void 0:n.title),pe(null==n?void 0:n.conversation_uuid),je(""),Re(!1),ae((null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt()),ut(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(ts,{onEdit:function(){De(!0),$e(null==n?void 0:n.title),Te(n),ee(Q.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Ne(!0),Te(n),ee(Q.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[Ue?e(n,{children:[t("button",{title:Ge?"Hide Sidebar":"Show Sidebar",onClick:function(){return Ze(!Ge)},"aria-label":Ge?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(Ge?Yn:Vn,{style:{width:"0.75rem",height:"0.75rem",color:"rgb(75, 85, 99)",fontWeight:"bold"}})}),e("div",{style:{display:"flex",flexDirection:tt?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666",minWidth:"110px"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:nt?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===w&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===w&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===w&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(m).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===w&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;if("security"===w&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=Je.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=L.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Yn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return ct(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:Ue?t("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto",background:"#f8fafc",borderRadius:"8px",fontFamily:"'Inter', -apple-system, system-ui, sans-serif"},children:("security"==w||"devops"==w)&&e(n,{children:[t("span",{style:{fontSize:"12px",fontWeight:600,color:"#64748b",minWidth:"75px"},children:"Agent Mode:"}),t("div",{style:{width:"12px",height:"12px",borderRadius:"50%",position:"relative",cursor:"pointer",background:qe?"#10b981":Me?"#f59e0b":"#e40101ff",boxShadow:qe?"0 0 0 3px #25ffb6ff":Me?"0 0 0 3px #f6d499ff":"0 0 0 3px #fda094ff"},onMouseEnter:function(){},onMouseLeave:function(){},children:t("div",{style:{position:"absolute",top:"-80px",left:"50%",transform:"translateX(-50%)",background:"#1e293b",color:"white",padding:"12px 16px",borderRadius:"8px",fontSize:"12px",whiteSpace:"nowrap",opacity:0,pointerEvents:"none",transition:"opacity 200ms ease",zIndex:1e3},children:"All AI agents enabled and operational"})})]})}):t("button",{title:"New Chat",onClick:function(){ue(""),pe(null),ae(dt()),Be([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==m?void 0:m["Scan Name"])&&"security"===w&&Ue||Ue)&&t(n,{children:!q&&t(td,{setMessage:f,onSendMessage:at,type:w,setSend:I})}),q&&e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},ref:le,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&ne&&(ge(!0),ut(ce,ie,!1,fe))}(e)},children:[me&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),ze.map((function(n,r){var o;return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-end"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ebd8ff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"center",maxWidth:"100%",backgroundColor:"#ebd8ff"},children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question.replace(y,"")})," "]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),n.isLoading||(null===(o=n.answer)||void 0===o?void 0:o.trim())?t("div",{style:{display:"flex",justifyContent:"flex-start",marginTop:"1rem"},children:t("div",{style:{padding:"20px",paddingTop:"15px",marginTop:"5px",minWidth:"60%",maxWidth:"90%",borderRadius:"20px",borderTopRightRadius:"0px",backgroundColor:"#efefef",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(Un,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]);return((null==n?void 0:n.toString())||"").toUpperCase().includes("HIDE")?null:t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},r,{children:n}))},td:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=function(e){var t;return"string"==typeof e?e:(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)?o(e.props.children):Array.isArray(e)?e.map((function(e){return o(e)})).join(""):""},i=o(n);if(function(e){if(!e)return!1;var t=e.replace(/^HIDE:/i,"").trim();return e.startsWith("HIDE:")&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}(i))return t("td",kn({style:{display:"none",padding:0,margin:0,width:0,height:0,overflow:"hidden",border:"none"},"data-uuid":i.replace(/^HIDE:/i,"").trim()},r));var a=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},a,{children:n}))},tr:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=Array.from(t.querySelectorAll("td")),r="",o=[];n.forEach((function(e){var t=e.getAttribute("data-uuid");t?o.push(t):"none"!==e.style.display&&(r+=(e.textContent||"").trim()+" ")})),console.log("Row data:",r.trim()),console.log("UUIDs in row:",o);var i=r.trim();o.length>0&&(i+=" ",i+="".concat(o)),f(i),I(!0)}},r);return t("tr",kn({},o,{children:n}))},code:function(e){e.node;var n=e.className,r=e.children,o=Cn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},o,{children:n}))},tr:function(e){e.node;var n=e.children,r=Cn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=t.closest("table");if(n){var r=n.querySelector("tr:first-child");if(r){var o=Array.from(r.children).map((function(e){return e.textContent||""})),i=Array.from(t.children),a="";i.forEach((function(e,t){o[t]||"Column ".concat(t+1),a+=e.textContent||""})),f(a),I(!0),console.log("Row clicked:",a)}}}},r);return t("tr",kn({},o,{children:n}))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),t("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})})]})})}):null]},r)})),ze.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container",style:{display:"flex",flexDirection:"column",width:Ue?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box",id:"messageInput",rows:1,value:c,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){f(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),at())},style:{marginTop:"0.25rem",marginBottom:"0.25rem",flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:ye,type:"file",style:{display:"none"},onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:He?"not-allowed":"pointer",marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return at()},disabled:He||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),j&&t(Kl,{title:"Authorization",visible:j,setVisible:M,onSubmit:function(e){!function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==Z?void 0:Z.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(M(!1),Nn({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):Nn({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),Nn({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Oe&&t(es,{title:"Are you sure?",visible:Oe,setVisible:Ne,onSubmit:function(){var e;Ne(!1),e=null==Ee?void 0:Ee.conversation_uuid,Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(ee(Q.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),Nn({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",fe),console.log("prompts---",ze),Ne(!1),Te(null),e===fe&&(pe(null),ae(dt()),Be([]),ue(""))):Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Ne(!1),[7];case 4:return[2]}}))}))},selectedConversation:Ee}),Ie&&t(ns,{title:"Rename chat",visible:Ie,setVisible:De,onSubmit:function(){var e,t,n;De(!1),We&&(null===(e=null==We?void 0:We.trim())||void 0===e?void 0:e.length)>0?(t=null==Ee?void 0:Ee.conversation_uuid,n=We,Sn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(ee((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),De(!1),Te(null),Nn({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),Nn({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):Nn({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:Ee,tempTitle:We,setTempTitle:$e})]})},od=function(n){var r=n.app_type,o=n.title,i=n.placeholder;n.base_url,n.access_token_key,n.refresh_token_key,n.token_refresh_route;var a=n.aiIconSrc,l=void 0===a?"/images/ai-icon.svg":a;n.expandedStyle,n.dialogStyle,n.position;var s=n.HTTP,c=Dn(),u=c.opneChatModal,d=c.setOpenChatModal;c.isResize;return e("div",{style:{position:"relative"},children:[u&&t("div",{style:{},children:t(rd,{app_type:r,title:o,placeholder:i,HTTP:s,closeChat:function(){d(!1)}})}),!u&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:l,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){d(!u)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},id=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Jl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(In,{HTTP:c,children:t(od,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{id as CindyChatBot};
|
|
40
40
|
//# sourceMappingURL=index.esm.js.map
|