@acpus/web 0.1.0-alpha.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.
Files changed (141) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/client/api.d.ts +398 -0
  4. package/dist/client/api.d.ts.map +1 -0
  5. package/dist/client/api.js +73 -0
  6. package/dist/client/api.js.map +1 -0
  7. package/dist/client/assets/index-Cn1qpJ2F.css +1 -0
  8. package/dist/client/assets/index-DVV3hISu.js +2 -0
  9. package/dist/client/assets/vendor-B7fc3-WT.js +69 -0
  10. package/dist/client/assets/vendor-icons-BQrCRas_.js +241 -0
  11. package/dist/client/assets/vendor-json-view-B9Z7D9kT.css +1 -0
  12. package/dist/client/assets/vendor-json-view-uYZpLE5K.js +1 -0
  13. package/dist/client/assets/vendor-query-Co8PPx4J.js +1 -0
  14. package/dist/client/assets/vendor-radix-C9JUg2bE.js +1 -0
  15. package/dist/client/assets/vendor-react-BRGuIgbw.js +49 -0
  16. package/dist/client/index.html +26 -0
  17. package/dist/client/lib/utils.d.ts +3 -0
  18. package/dist/client/lib/utils.d.ts.map +1 -0
  19. package/dist/client/lib/utils.js +6 -0
  20. package/dist/client/lib/utils.js.map +1 -0
  21. package/dist/client/main.d.ts +2 -0
  22. package/dist/client/main.d.ts.map +1 -0
  23. package/dist/client/main.js +18 -0
  24. package/dist/client/main.js.map +1 -0
  25. package/dist/client/static-viz.d.ts +8 -0
  26. package/dist/client/static-viz.d.ts.map +1 -0
  27. package/dist/client/static-viz.js +10 -0
  28. package/dist/client/static-viz.js.map +1 -0
  29. package/dist/client/ui/App.d.ts +40 -0
  30. package/dist/client/ui/App.d.ts.map +1 -0
  31. package/dist/client/ui/App.js +742 -0
  32. package/dist/client/ui/App.js.map +1 -0
  33. package/dist/client/ui/RunGraph.d.ts +9 -0
  34. package/dist/client/ui/RunGraph.d.ts.map +1 -0
  35. package/dist/client/ui/RunGraph.js +294 -0
  36. package/dist/client/ui/RunGraph.js.map +1 -0
  37. package/dist/client/ui/StaticGraphApp.d.ts +22 -0
  38. package/dist/client/ui/StaticGraphApp.d.ts.map +1 -0
  39. package/dist/client/ui/StaticGraphApp.js +102 -0
  40. package/dist/client/ui/StaticGraphApp.js.map +1 -0
  41. package/dist/client/ui/Toast.d.ts +16 -0
  42. package/dist/client/ui/Toast.d.ts.map +1 -0
  43. package/dist/client/ui/Toast.js +41 -0
  44. package/dist/client/ui/Toast.js.map +1 -0
  45. package/dist/client/ui/shadcn/alert.d.ts +3 -0
  46. package/dist/client/ui/shadcn/alert.d.ts.map +1 -0
  47. package/dist/client/ui/shadcn/alert.js +6 -0
  48. package/dist/client/ui/shadcn/alert.js.map +1 -0
  49. package/dist/client/ui/shadcn/badge.d.ts +10 -0
  50. package/dist/client/ui/shadcn/badge.d.ts.map +1 -0
  51. package/dist/client/ui/shadcn/badge.js +19 -0
  52. package/dist/client/ui/shadcn/badge.js.map +1 -0
  53. package/dist/client/ui/shadcn/breadcrumb.d.ts +9 -0
  54. package/dist/client/ui/shadcn/breadcrumb.d.ts.map +1 -0
  55. package/dist/client/ui/shadcn/breadcrumb.js +15 -0
  56. package/dist/client/ui/shadcn/breadcrumb.js.map +1 -0
  57. package/dist/client/ui/shadcn/button.d.ts +12 -0
  58. package/dist/client/ui/shadcn/button.d.ts.map +1 -0
  59. package/dist/client/ui/shadcn/button.js +37 -0
  60. package/dist/client/ui/shadcn/button.js.map +1 -0
  61. package/dist/client/ui/shadcn/card.d.ts +6 -0
  62. package/dist/client/ui/shadcn/card.d.ts.map +1 -0
  63. package/dist/client/ui/shadcn/card.js +10 -0
  64. package/dist/client/ui/shadcn/card.js.map +1 -0
  65. package/dist/client/ui/shadcn/dialog.d.ts +11 -0
  66. package/dist/client/ui/shadcn/dialog.d.ts.map +1 -0
  67. package/dist/client/ui/shadcn/dialog.js +15 -0
  68. package/dist/client/ui/shadcn/dialog.js.map +1 -0
  69. package/dist/client/ui/shadcn/input.d.ts +5 -0
  70. package/dist/client/ui/shadcn/input.d.ts.map +1 -0
  71. package/dist/client/ui/shadcn/input.js +6 -0
  72. package/dist/client/ui/shadcn/input.js.map +1 -0
  73. package/dist/client/ui/shadcn/list.d.ts +8 -0
  74. package/dist/client/ui/shadcn/list.d.ts.map +1 -0
  75. package/dist/client/ui/shadcn/list.js +8 -0
  76. package/dist/client/ui/shadcn/list.js.map +1 -0
  77. package/dist/client/ui/shadcn/popover.d.ts +8 -0
  78. package/dist/client/ui/shadcn/popover.d.ts.map +1 -0
  79. package/dist/client/ui/shadcn/popover.js +11 -0
  80. package/dist/client/ui/shadcn/popover.js.map +1 -0
  81. package/dist/client/ui/shadcn/select.d.ts +9 -0
  82. package/dist/client/ui/shadcn/select.d.ts.map +1 -0
  83. package/dist/client/ui/shadcn/select.js +17 -0
  84. package/dist/client/ui/shadcn/select.js.map +1 -0
  85. package/dist/client/ui/shadcn/tabs.d.ts +7 -0
  86. package/dist/client/ui/shadcn/tabs.d.ts.map +1 -0
  87. package/dist/client/ui/shadcn/tabs.js +12 -0
  88. package/dist/client/ui/shadcn/tabs.js.map +1 -0
  89. package/dist/client/ui/shadcn/textarea.d.ts +3 -0
  90. package/dist/client/ui/shadcn/textarea.d.ts.map +1 -0
  91. package/dist/client/ui/shadcn/textarea.js +6 -0
  92. package/dist/client/ui/shadcn/textarea.js.map +1 -0
  93. package/dist/graph-renderer.d.ts +114 -0
  94. package/dist/graph-renderer.d.ts.map +1 -0
  95. package/dist/graph-renderer.js +673 -0
  96. package/dist/graph-renderer.js.map +1 -0
  97. package/dist/index.d.ts +5 -0
  98. package/dist/index.d.ts.map +1 -0
  99. package/dist/index.js +5 -0
  100. package/dist/index.js.map +1 -0
  101. package/dist/runtime-status.d.ts +10 -0
  102. package/dist/runtime-status.d.ts.map +1 -0
  103. package/dist/runtime-status.js +45 -0
  104. package/dist/runtime-status.js.map +1 -0
  105. package/dist/server/app.d.ts +11 -0
  106. package/dist/server/app.d.ts.map +1 -0
  107. package/dist/server/app.js +244 -0
  108. package/dist/server/app.js.map +1 -0
  109. package/dist/server/assets.d.ts +3 -0
  110. package/dist/server/assets.d.ts.map +1 -0
  111. package/dist/server/assets.js +45 -0
  112. package/dist/server/assets.js.map +1 -0
  113. package/dist/server/errors.d.ts +14 -0
  114. package/dist/server/errors.d.ts.map +1 -0
  115. package/dist/server/errors.js +13 -0
  116. package/dist/server/errors.js.map +1 -0
  117. package/dist/server/graph.d.ts +137 -0
  118. package/dist/server/graph.d.ts.map +1 -0
  119. package/dist/server/graph.js +592 -0
  120. package/dist/server/graph.js.map +1 -0
  121. package/dist/server/launcher.d.ts +15 -0
  122. package/dist/server/launcher.d.ts.map +1 -0
  123. package/dist/server/launcher.js +30 -0
  124. package/dist/server/launcher.js.map +1 -0
  125. package/dist/server/node-inspection.d.ts +108 -0
  126. package/dist/server/node-inspection.d.ts.map +1 -0
  127. package/dist/server/node-inspection.js +435 -0
  128. package/dist/server/node-inspection.js.map +1 -0
  129. package/dist/server/security.d.ts +12 -0
  130. package/dist/server/security.d.ts.map +1 -0
  131. package/dist/server/security.js +43 -0
  132. package/dist/server/security.js.map +1 -0
  133. package/dist/server/static-viz-assets.generated.d.ts +3 -0
  134. package/dist/server/static-viz-assets.generated.d.ts.map +1 -0
  135. package/dist/server/static-viz-assets.generated.js +4 -0
  136. package/dist/server/static-viz-assets.generated.js.map +1 -0
  137. package/dist/server/workflows.d.ts +75 -0
  138. package/dist/server/workflows.d.ts.map +1 -0
  139. package/dist/server/workflows.js +205 -0
  140. package/dist/server/workflows.js.map +1 -0
  141. package/package.json +65 -0
@@ -0,0 +1,69 @@
1
+ import{g as Qi,j as bn,r as B,a as Hl}from"./vendor-react-BRGuIgbw.js";function $l(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Wl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ul=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ql={};function _r(e,t){return(ql.jsx?Ul:Wl).test(e)}const Gl=/[ \t\n\f\r]/g;function Yl(e){return typeof e=="object"?e.type==="text"?Nr(e.value):!1:Nr(e)}function Nr(e){return e.replace(Gl,"")===""}class Ot{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ot.prototype.normal={};Ot.prototype.property={};Ot.prototype.space=void 0;function Ki(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ot(n,r,t)}function Wn(e){return e.toLowerCase()}class fe{constructor(t,n){this.attribute=n,this.property=t}}fe.prototype.attribute="";fe.prototype.booleanish=!1;fe.prototype.boolean=!1;fe.prototype.commaOrSpaceSeparated=!1;fe.prototype.commaSeparated=!1;fe.prototype.defined=!1;fe.prototype.mustUseProperty=!1;fe.prototype.number=!1;fe.prototype.overloadedBoolean=!1;fe.prototype.property="";fe.prototype.spaceSeparated=!1;fe.prototype.space=void 0;let Xl=0;const H=tt(),re=tt(),Un=tt(),T=tt(),Z=tt(),Je=tt(),pe=tt();function tt(){return 2**++Xl}const qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:re,commaOrSpaceSeparated:pe,commaSeparated:Je,number:T,overloadedBoolean:Un,spaceSeparated:Z},Symbol.toStringTag,{value:"Module"})),xn=Object.keys(qn);class lr extends fe{constructor(t,n,r,i){let l=-1;if(super(t,n),Br(this,"space",i),typeof r=="number")for(;++l<xn.length;){const o=xn[l];Br(this,xn[l],(r&qn[o])===qn[o])}}}lr.prototype.defined=!0;function Br(e,t,n){n&&(e[t]=n)}function mt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new lr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Wn(r)]=r,n[Wn(l.attribute)]=r}return new Ot(t,n,e.space)}const Ji=mt({properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:Z,ariaCurrent:null,ariaDescribedBy:Z,ariaDetails:null,ariaDisabled:re,ariaDropEffect:Z,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:Z,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Z,ariaLevel:T,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:Z,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:Z,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:re,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Zi(e,t){return t in e?e[t]:t}function eo(e,t){return Zi(e,t.toLowerCase())}const Ql=mt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Je,acceptCharset:Z,accessKey:Z,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alpha:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:Z,autoFocus:H,autoPlay:H,blocking:Z,capture:null,charSet:null,checked:H,cite:null,className:Z,closedBy:null,colorSpace:null,cols:T,colSpan:T,command:null,commandFor:null,content:null,contentEditable:re,controls:H,controlsList:Z,coords:T|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Un,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:Z,height:T,hidden:Un,high:T,href:null,hrefLang:null,htmlFor:Z,httpEquiv:Z,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:Z,itemRef:Z,itemScope:H,itemType:Z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,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:H,optimum:T,pattern:null,ping:Z,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:Z,required:H,reversed:H,rows:T,rowSpan:T,sandbox:Z,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootCustomElementRegistry:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shadowRootSerializable:H,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:re,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Z,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:H,disablePictureInPicture:H,disableRemotePlayback:H,exportParts:Je,part:Z,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:eo}),Kl=mt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pe,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:Z,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:Je,g2:Je,glyphName:Je,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:pe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pe,rev:pe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pe,requiredFeatures:pe,requiredFonts:pe,requiredFormats:pe,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:pe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pe,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zi}),to=mt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),no=mt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eo}),ro=mt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Jl={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"},Zl=/[A-Z]/g,jr=/-[a-z]/g,ea=/^data[-\w.:]+$/i;function ta(e,t){const n=Wn(t);let r=t,i=fe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ea.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(jr,ra);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!jr.test(l)){let o=l.replace(Zl,na);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=lr}return new i(r,t)}function na(e){return"-"+e.toLowerCase()}function ra(e){return e.charAt(1).toUpperCase()}const ia=Ki([Ji,Ql,to,no,ro],"html"),ar=Ki([Ji,Kl,to,no,ro],"svg");function oa(e){return e.join(" ").trim()}var lt={},kn,Vr;function la(){if(Vr)return kn;Vr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
2
+ `,s="/",f="*",c="",p="comment",h="declaration";function m(x,y){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];y=y||{};var S=1,v=1;function A(D){var R=D.match(t);R&&(S+=R.length);var N=D.lastIndexOf(u);v=~N?D.length-N:v+D.length}function I(){var D={line:S,column:v};return function(R){return R.position=new k(D),_(),R}}function k(D){this.start=D,this.end={line:S,column:v},this.source=y.source}k.prototype.content=x;function P(D){var R=new Error(y.source+":"+S+":"+v+": "+D);if(R.reason=D,R.filename=y.source,R.line=S,R.column=v,R.source=x,!y.silent)throw R}function E(D){var R=D.exec(x);if(R){var N=R[0];return A(N),x=x.slice(N.length),R}}function _(){E(n)}function w(D){var R;for(D=D||[];R=z();)R!==!1&&D.push(R);return D}function z(){var D=I();if(!(s!=x.charAt(0)||f!=x.charAt(1))){for(var R=2;c!=x.charAt(R)&&(f!=x.charAt(R)||s!=x.charAt(R+1));)++R;if(R+=2,c===x.charAt(R-1))return P("End of comment missing");var N=x.slice(2,R-2);return v+=2,A(N),x=x.slice(R),v+=2,D({type:p,comment:N})}}function O(){var D=I(),R=E(r);if(R){if(z(),!E(i))return P("property missing ':'");var N=E(l),U=D({type:h,property:g(R[0].replace(e,c)),value:N?g(N[0].replace(e,c)):c});return E(o),U}}function V(){var D=[];w(D);for(var R;R=O();)R!==!1&&(D.push(R),w(D));return D}return _(),V()}function g(x){return x?x.replace(a,c):c}return kn=m,kn}var Hr;function aa(){if(Hr)return lt;Hr=1;var e=lt&&lt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=n;const t=e(la());function n(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,t.default)(r),a=typeof i=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(l=l||{},l[s]=f)}),l}return lt}var vt={},$r;function sa(){if($r)return vt;$r=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(s){return!s||n.test(s)||e.test(s)},o=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),l(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(t,o))};return vt.camelCase=u,vt}var St,Wr;function ua(){if(Wr)return St;Wr=1;var e=St&&St.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(aa()),n=sa();function r(i,l){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(a,u){a&&u&&(o[(0,n.camelCase)(a,l)]=u)}),o}return r.default=r,St=r,St}var ca=ua();const fa=Qi(ca),io=oo("end"),sr=oo("start");function oo(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ha(e){const t=sr(e),n=io(e);if(t&&n)return{start:t,end:n}}function It(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ur(e.position):"start"in e||"end"in e?Ur(e):"line"in e||"column"in e?Gn(e):""}function Gn(e){return qr(e&&e.line)+":"+qr(e&&e.column)}function Ur(e){return Gn(e&&e.start)+"-"+Gn(e&&e.end)}function qr(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=It(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const ur={}.hasOwnProperty,pa=new Map,da=/[A-Z]/g,ma=new Set(["table","tbody","thead","tfoot","tr"]),ga=new Set(["td","th"]),lo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ya(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ea(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ca(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ar:ia,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=ao(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function ao(e,t,n){if(t.type==="element")return ba(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xa(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wa(e,t,n);if(t.type==="mdxjsEsm")return ka(e,t);if(t.type==="root")return va(e,t,n);if(t.type==="text")return Sa(e,t)}function ba(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ar,e.schema=i),e.ancestors.push(t);const l=uo(e,t.tagName,!1),o=Aa(e,t);let a=fr(e,t);return ma.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Yl(u):!0})),so(e,o,l,t),cr(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function xa(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Pt(e,t.position)}function ka(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pt(e,t.position)}function wa(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ar,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:uo(e,t.name,!0),o=Ia(e,t),a=fr(e,t);return so(e,o,l,t),cr(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function va(e,t,n){const r={};return cr(r,fr(e,t)),e.create(t,e.Fragment,r,n)}function Sa(e,t){return t.value}function so(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function cr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ca(e,t,n){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?n:t;return a?s(l,o,a):s(l,o)}}function Ea(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),u=sr(r);return t(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Aa(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ur.call(t.properties,i)){const l=Ta(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&ga.has(t.tagName)?r=a:n[o]=a}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ia(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Pt(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Pt(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function fr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:pa;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const s=i.get(u)||0;o=u+"-"+s,i.set(u,s+1)}}const a=ao(e,l,o);a!==void 0&&n.push(a)}return n}function Ta(e,t,n){const r=ta(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$l(n):oa(n)),r.property==="style"){let i=typeof n=="object"?n:Ra(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Pa(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Jl[r.property]||r.property:r.attribute,n]}}function Ra(e,t){try{return fa(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=lo+"#cannot-parse-style-attribute",i}}function uo(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const a=_r(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=_r(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ur.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Pt(e)}function Pt(e,t){const n=new le("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=lo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pa(e){const t={};let n;for(n in e)ur.call(e,n)&&(t[za(n)]=e[n]);return t}function za(e){let t=e.replace(da,La);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function La(e){return"-"+e.toLowerCase()}const wn={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"]},Oa={};function hr(e,t){const n=Oa,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return co(e,r,i)}function co(e,t,n){if(Da(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gr(e.children,t,n)}return Array.isArray(e)?Gr(e,t,n):""}function Gr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=co(e[i],t,n);return r.join("")}function Da(e){return!!(e&&typeof e=="object")}const Yr=document.createElement("i");function pr(e){const t="&"+e+";";Yr.innerHTML=t;const n=Yr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function me(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function be(e,t){return e.length>0?(me(e,e.length,0,t),e):t}const Xr={}.hasOwnProperty;function fo(e){const t={};let n=-1;for(;++n<e.length;)Ma(t,e[n]);return t}function Ma(e,t){let n;for(n in t){const i=(Xr.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Xr.call(i,o)||(i[o]=[]);const a=l[o];Fa(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Fa(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);me(e,0,0,r)}function ho(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function we(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se=Ue(/[A-Za-z]/),oe=Ue(/[\dA-Za-z]/),_a=Ue(/[#-'*+\--9=?A-Z^-~]/);function Jt(e){return e!==null&&(e<32||e===127)}const Yn=Ue(/\d/),Na=Ue(/[\dA-Fa-f]/),Ba=Ue(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function G(e){return e===-2||e===-1||e===32}const sn=Ue(new RegExp("\\p{P}|\\p{S}","u")),Ze=Ue(/\s/);function Ue(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&oe(e.charCodeAt(n+1))&&oe(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return G(u)?(e.enter(n),a(u)):t(u)}function a(u){return G(u)&&l++<i?(e.consume(u),a):(e.exit(n),t(u))}}const ja={tokenize:Va};function Va(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),X(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return j(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Ha={tokenize:$a},Qr={tokenize:Wa};function $a(e){const t=this,n=[];let r=0,i,l,o;return a;function a(v){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,u,s)(v)}return s(v)}function u(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const A=t.events.length;let I=A,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){k=t.events[I][1].end;break}y(r);let P=A;for(;P<t.events.length;)t.events[P][1].end={...k},P++;return me(t.events,I+1,0,t.events.slice(A)),t.events.length=P,s(v)}return a(v)}function s(v){if(r===n.length){if(!i)return p(v);if(i.currentConstruct&&i.currentConstruct.concrete)return m(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qr,f,c)(v)}function f(v){return i&&S(),y(r),p(v)}function c(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(v)}function p(v){return t.containerState={},e.attempt(Qr,h,m)(v)}function h(v){return r++,n.push([t.currentConstruct,t.containerState]),p(v)}function m(v){if(v===null){i&&S(),y(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),g(v)}function g(v){if(v===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return j(v)?(e.consume(v),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),g)}function x(v,A){const I=t.sliceStream(v);if(A&&I.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(I),t.parser.lazy[v.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const P=t.events.length;let E=P,_,w;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if(_){w=t.events[E][1].end;break}_=!0}for(y(r),k=P;k<t.events.length;)t.events[k][1].end={...w},k++;me(t.events,E+1,0,t.events.slice(P)),t.events.length=k}}function y(v){let A=n.length;for(;A-- >v;){const I=n[A];t.containerState=I[1],I[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Wa(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pt(e){if(e===null||ee(e)||Ze(e))return 1;if(sn(e))return 2}function un(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Xn={name:"attention",resolveAll:Ua,tokenize:qa};function Ua(e,t){let n=-1,r,i,l,o,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Kr(c,-u),Kr(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=be(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=be(s,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),s=be(s,un(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=be(s,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=be(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,me(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function qa(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=pt(r);let l;return o;function o(u){return l=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===l)return e.consume(u),a;const s=e.exit("attentionSequence"),f=pt(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(l===42?c:c&&(i||!p)),s._close=!!(l===42?p:p&&(f||!c)),t(u)}}function Kr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ga={name:"autolink",tokenize:Ya};function Ya(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return se(h)?(e.consume(h),o):h===64?n(h):s(h)}function o(h){return h===43||h===45||h===46||oe(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||oe(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Jt(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):_a(h)?(e.consume(h),s):n(h)}function f(h){return oe(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||oe(h))&&r++<63){const m=h===45?p:c;return e.consume(h),m}return n(h)}}const Dt={partial:!0,tokenize:Xa};function Xa(e,t,n){return r;function r(l){return G(l)?X(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||j(l)?t(l):n(l)}}const po={continuation:{tokenize:Ka},exit:Ja,name:"blockQuote",tokenize:Qa};function Qa(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return G(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Ka(e,t,n){const r=this;return i;function i(o){return G(o)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(po,t,n)(o)}}function Ja(e){e.exit("blockQuote")}const mo={name:"characterEscape",tokenize:Za};function Za(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Ba(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const go={name:"characterReference",tokenize:es};function es(e,t,n){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=oe,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Na,f):(e.enter("characterReferenceValue"),l=7,o=Yn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===oe&&!pr(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Jr={partial:!0,tokenize:ns},Zr={concrete:!0,name:"codeFenced",tokenize:ts};function ts(e,t,n){const r=this,i={partial:!0,tokenize:I};let l=0,o=0,a;return u;function u(k){return s(k)}function s(k){const P=r.events[r.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(k)}function f(k){return k===a?(o++,e.consume(k),f):o<3?n(k):(e.exit("codeFencedFenceSequence"),G(k)?X(e,c,"whitespace")(k):c(k))}function c(k){return k===null||j(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(Jr,g,A)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):G(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),p)}function h(k){return k===null||j(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===a?n(k):(e.consume(k),m)}function g(k){return e.attempt(i,A,x)(k)}function x(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y}function y(k){return l>0&&G(k)?X(e,S,"linePrefix",l+1)(k):S(k)}function S(k){return k===null||j(k)?e.check(Jr,g,A)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||j(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function A(k){return e.exit("codeFenced"),t(k)}function I(k,P,E){let _=0;return w;function w(R){return k.enter("lineEnding"),k.consume(R),k.exit("lineEnding"),z}function z(R){return k.enter("codeFencedFence"),G(R)?X(k,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):O(R)}function O(R){return R===a?(k.enter("codeFencedFenceSequence"),V(R)):E(R)}function V(R){return R===a?(_++,k.consume(R),V):_>=o?(k.exit("codeFencedFenceSequence"),G(R)?X(k,D,"whitespace")(R):D(R)):E(R)}function D(R){return R===null||j(R)?(k.exit("codeFencedFence"),P(R)):E(R)}}}function ns(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const vn={name:"codeIndented",tokenize:is},rs={partial:!0,tokenize:os};function is(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),X(e,l,"linePrefix",5)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):n(s)}function o(s){return s===null?u(s):j(s)?e.attempt(rs,o,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||j(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function os(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):X(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):j(o)?i(o):n(o)}}const ls={name:"codeText",previous:ss,resolve:as,tokenize:us};function as(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ss(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function us(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):j(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||j(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",s(c))}}class cs{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ct(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ct(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ct(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ct(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ct(this.left,n.reverse())}}}function Ct(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 yo(e){const t={};let n=-1,r,i,l,o,a,u,s;const f=new cs(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,fs(f,n)),n=t[n],s=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return me(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function fs(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,u=[],s={};let f,c,p=-1,h=n,m=0,g=0;const x=[g];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(g=p+1,x.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),p=x.length;p--;){const y=a.slice(x[p],x[p+1]),S=l.pop();u.push([S,S+y.length-1]),e.splice(S,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return s}const hs={resolve:ds,tokenize:ms},ps={partial:!0,tokenize:gs};function ds(e){return yo(e),e}function ms(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):j(a)?e.check(ps,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function gs(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),X(e,l,"linePrefix")}function l(o){if(o===null||j(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function bo(e,t,n,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(y),e.exit(l),p):y===null||y===32||y===41||Jt(y)?n(y):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||j(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!f&&(y===null||y===41||ee(y))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(y)):f<s&&y===40?(e.consume(y),f++,g):y===41?(e.consume(y),f--,g):y===null||y===32||y===40||Jt(y)?n(y):(e.consume(y),y===92?x:g)}function x(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function xo(e,t,n,r,i,l){const o=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||j(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!G(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function ko(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,u):n(p)}function u(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),s(p))}function s(p){return p===o?(e.exit(l),u(o)):p===null?n(p):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),X(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||j(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Tt(e,t){let n;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):G(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ys={name:"definition",tokenize:xs},bs={partial:!0,tokenize:ks};function xs(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return xo.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return ee(h)?Tt(e,s)(h):s(h)}function s(h){return bo(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(bs,c,c)(h)}function c(h){return G(h)?X(e,p,"whitespace")(h):p(h)}function p(h){return h===null||j(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function ks(e,t,n){return r;function r(a){return ee(a)?Tt(e,i)(a):n(a)}function i(a){return ko(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return G(a)?X(e,o,"whitespace")(a):o(a)}function o(a){return a===null||j(a)?t(a):n(a)}}const ws={name:"hardBreakEscape",tokenize:vs};function vs(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return j(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Ss={name:"headingAtx",resolve:Cs,tokenize:Es};function Cs(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},me(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function Es(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ee(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||j(f)?(e.exit("atxHeading"),t(f)):G(f)?X(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||ee(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const As=["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"],ei=["pre","script","style","textarea"],Is={concrete:!0,name:"htmlFlow",resolveTo:Ps,tokenize:zs},Ts={partial:!0,tokenize:Os},Rs={partial:!0,tokenize:Ls};function Ps(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zs(e,t,n){const r=this;let i,l,o,a,u;return s;function s(b){return f(b)}function f(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),c}function c(b){return b===33?(e.consume(b),p):b===47?(e.consume(b),l=!0,g):b===63?(e.consume(b),i=3,r.interrupt?t:d):se(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function p(b){return b===45?(e.consume(b),i=2,h):b===91?(e.consume(b),i=5,a=0,m):se(b)?(e.consume(b),i=4,r.interrupt?t:d):n(b)}function h(b){return b===45?(e.consume(b),r.interrupt?t:d):n(b)}function m(b){const ae="CDATA[";return b===ae.charCodeAt(a++)?(e.consume(b),a===ae.length?r.interrupt?t:O:m):n(b)}function g(b){return se(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function x(b){if(b===null||b===47||b===62||ee(b)){const ae=b===47,ne=o.toLowerCase();return!ae&&!l&&ei.includes(ne)?(i=1,r.interrupt?t(b):O(b)):As.includes(o.toLowerCase())?(i=6,ae?(e.consume(b),y):r.interrupt?t(b):O(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):l?S(b):v(b))}return b===45||oe(b)?(e.consume(b),o+=String.fromCharCode(b),x):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:O):n(b)}function S(b){return G(b)?(e.consume(b),S):w(b)}function v(b){return b===47?(e.consume(b),w):b===58||b===95||se(b)?(e.consume(b),A):G(b)?(e.consume(b),v):w(b)}function A(b){return b===45||b===46||b===58||b===95||oe(b)?(e.consume(b),A):I(b)}function I(b){return b===61?(e.consume(b),k):G(b)?(e.consume(b),I):v(b)}function k(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),u=b,P):G(b)?(e.consume(b),k):E(b)}function P(b){return b===u?(e.consume(b),u=null,_):b===null||j(b)?n(b):(e.consume(b),P)}function E(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ee(b)?I(b):(e.consume(b),E)}function _(b){return b===47||b===62||G(b)?v(b):n(b)}function w(b){return b===62?(e.consume(b),z):n(b)}function z(b){return b===null||j(b)?O(b):G(b)?(e.consume(b),z):n(b)}function O(b){return b===45&&i===2?(e.consume(b),N):b===60&&i===1?(e.consume(b),U):b===62&&i===4?(e.consume(b),ue):b===63&&i===3?(e.consume(b),d):b===93&&i===5?(e.consume(b),K):j(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ts,ye,V)(b)):b===null||j(b)?(e.exit("htmlFlowData"),V(b)):(e.consume(b),O)}function V(b){return e.check(Rs,D,ye)(b)}function D(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),R}function R(b){return b===null||j(b)?V(b):(e.enter("htmlFlowData"),O(b))}function N(b){return b===45?(e.consume(b),d):O(b)}function U(b){return b===47?(e.consume(b),o="",$):O(b)}function $(b){if(b===62){const ae=o.toLowerCase();return ei.includes(ae)?(e.consume(b),ue):O(b)}return se(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),$):O(b)}function K(b){return b===93?(e.consume(b),d):O(b)}function d(b){return b===62?(e.consume(b),ue):b===45&&i===2?(e.consume(b),d):O(b)}function ue(b){return b===null||j(b)?(e.exit("htmlFlowData"),ye(b)):(e.consume(b),ue)}function ye(b){return e.exit("htmlFlow"),t(b)}}function Ls(e,t,n){const r=this;return i;function i(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Os(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Dt,t,n)}}const Ds={name:"htmlText",tokenize:Ms};function Ms(e,t,n){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),u}function u(d){return d===33?(e.consume(d),s):d===47?(e.consume(d),I):d===63?(e.consume(d),v):se(d)?(e.consume(d),E):n(d)}function s(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,m):se(d)?(e.consume(d),S):n(d)}function f(d){return d===45?(e.consume(d),h):n(d)}function c(d){return d===null?n(d):d===45?(e.consume(d),p):j(d)?(o=c,U(d)):(e.consume(d),c)}function p(d){return d===45?(e.consume(d),h):c(d)}function h(d){return d===62?N(d):d===45?p(d):c(d)}function m(d){const ue="CDATA[";return d===ue.charCodeAt(l++)?(e.consume(d),l===ue.length?g:m):n(d)}function g(d){return d===null?n(d):d===93?(e.consume(d),x):j(d)?(o=g,U(d)):(e.consume(d),g)}function x(d){return d===93?(e.consume(d),y):g(d)}function y(d){return d===62?N(d):d===93?(e.consume(d),y):g(d)}function S(d){return d===null||d===62?N(d):j(d)?(o=S,U(d)):(e.consume(d),S)}function v(d){return d===null?n(d):d===63?(e.consume(d),A):j(d)?(o=v,U(d)):(e.consume(d),v)}function A(d){return d===62?N(d):v(d)}function I(d){return se(d)?(e.consume(d),k):n(d)}function k(d){return d===45||oe(d)?(e.consume(d),k):P(d)}function P(d){return j(d)?(o=P,U(d)):G(d)?(e.consume(d),P):N(d)}function E(d){return d===45||oe(d)?(e.consume(d),E):d===47||d===62||ee(d)?_(d):n(d)}function _(d){return d===47?(e.consume(d),N):d===58||d===95||se(d)?(e.consume(d),w):j(d)?(o=_,U(d)):G(d)?(e.consume(d),_):N(d)}function w(d){return d===45||d===46||d===58||d===95||oe(d)?(e.consume(d),w):z(d)}function z(d){return d===61?(e.consume(d),O):j(d)?(o=z,U(d)):G(d)?(e.consume(d),z):_(d)}function O(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,V):j(d)?(o=O,U(d)):G(d)?(e.consume(d),O):(e.consume(d),D)}function V(d){return d===i?(e.consume(d),i=void 0,R):d===null?n(d):j(d)?(o=V,U(d)):(e.consume(d),V)}function D(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||ee(d)?_(d):(e.consume(d),D)}function R(d){return d===47||d===62||ee(d)?_(d):n(d)}function N(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function U(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$}function $(d){return G(d)?X(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):K(d)}function K(d){return e.enter("htmlTextData"),o(d)}}const dr={name:"labelEnd",resolveAll:Bs,resolveTo:js,tokenize:Vs},Fs={tokenize:Hs},_s={tokenize:$s},Ns={tokenize:Ws};function Bs(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&me(e,0,e.length,n),e}function js(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=be(a,e.slice(l+1,l+r+3)),a=be(a,[["enter",f,t]]),a=be(a,un(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=be(a,[["exit",f,t],e[o-2],e[o-1],["exit",s,t]]),a=be(a,e.slice(o+1)),a=be(a,[["exit",u,t]]),me(e,l,e.length,a),e}function Vs(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(we(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(Fs,f,o?f:c)(p):p===91?e.attempt(_s,f,o?s:c)(p):o?f(p):c(p)}function s(p){return e.attempt(Ns,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function Hs(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ee(c)?Tt(e,l)(c):l(c)}function l(c){return c===41?f(c):bo(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ee(c)?Tt(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?ko(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return ee(c)?Tt(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function $s(e,t,n){const r=this;return i;function i(a){return xo.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Ws(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Us={name:"labelStartImage",resolveAll:dr.resolveAll,tokenize:qs};function qs(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Gs={name:"labelStartLink",resolveAll:dr.resolveAll,tokenize:Ys};function Ys(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Sn={name:"lineEnding",tokenize:Xs};function Xs(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,t,"linePrefix")}}const Yt={name:"thematicBreak",tokenize:Qs};function Qs(e,t,n){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||j(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),G(s)?X(e,a,"whitespace")(s):a(s))}}const ce={continuation:{tokenize:eu},exit:nu,name:"list",tokenize:Zs},Ks={partial:!0,tokenize:ru},Js={partial:!0,tokenize:tu};function Zs(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Yn(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Yt,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return Yn(h)&&++o<10?(e.consume(h),u):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Dt,r.interrupt?n:f,e.attempt(Ks,p,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function c(h){return G(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function eu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Dt,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!G(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Js,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(ce,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tu(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function nu(e){e.exit(this.containerState.type)}function ru(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!G(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const ti={name:"setextUnderline",resolveTo:iu,tokenize:ou};function iu(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function ou(e,t,n){const r=this;let i;return l;function l(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,o(s)):n(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),G(s)?X(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||j(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const lu={tokenize:au};function au(e){const t=this,n=e.attempt(Dt,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hs,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const su={resolveAll:vo()},uu=wo("string"),cu=wo("text");function wo(e){return{resolveAll:vo(e==="text"?fu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(f){return s(f)?l(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),l(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function vo(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function fu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,u;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)u=!0,a++;else if(s!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const hu={42:ce,43:ce,45:ce,48:ce,49:ce,50:ce,51:ce,52:ce,53:ce,54:ce,55:ce,56:ce,57:ce,62:po},pu={91:ys},du={[-2]:vn,[-1]:vn,32:vn},mu={35:Ss,42:Yt,45:[ti,Yt],60:Is,61:ti,95:Yt,96:Zr,126:Zr},gu={38:go,92:mo},yu={[-5]:Sn,[-4]:Sn,[-3]:Sn,33:Us,38:go,42:Xn,60:[Ga,Ds],91:Gs,92:[ws,mo],93:dr,95:Xn,96:ls},bu={null:[Xn,su]},xu={null:[42,95]},ku={null:[]},wu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xu,contentInitial:pu,disable:ku,document:hu,flow:mu,flowInitial:du,insideSpan:bu,string:gu,text:yu},Symbol.toStringTag,{value:"Module"}));function vu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],a=[];const u={attempt:P(I),check:P(k),consume:S,enter:v,exit:A,interrupt:P(k,{interrupt:!0})},s={code:null,containerState:{},defineSkip:g,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&l.push(t),s;function c(z){return o=be(o,z),x(),o[o.length-1]!==null?[]:(E(t,0),s.events=un(l,s.events,s),s.events)}function p(z,O){return Cu(h(z),O)}function h(z){return Su(o,z)}function m(){const{_bufferIndex:z,_index:O,line:V,column:D,offset:R}=r;return{_bufferIndex:z,_index:O,line:V,column:D,offset:R}}function g(z){i[z.line]=z.column,w()}function x(){let z;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<O.length;)y(O.charCodeAt(r._bufferIndex));else y(O)}}function y(z){f=f(z)}function S(z){j(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,w()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=z}function v(z,O){const V=O||{};return V.type=z,V.start=m(),s.events.push(["enter",V,s]),a.push(V),V}function A(z){const O=a.pop();return O.end=m(),s.events.push(["exit",O,s]),O}function I(z,O){E(z,O.from)}function k(z,O){O.restore()}function P(z,O){return V;function V(D,R,N){let U,$,K,d;return Array.isArray(D)?ye(D):"tokenize"in D?ye([D]):ue(D);function ue(Q){return Ce;function Ce(xe){const te=xe!==null&&Q[xe],Le=xe!==null&&Q.null,Oe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return ye(Oe)(xe)}}function ye(Q){return U=Q,$=0,Q.length===0?N:b(Q[$])}function b(Q){return Ce;function Ce(xe){return d=_(),K=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?ne():Q.tokenize.call(O?Object.assign(Object.create(s),O):s,u,ae,ne)(xe)}}function ae(Q){return z(K,d),R}function ne(Q){return d.restore(),++$<U.length?b(U[$]):N}}}function E(z,O){z.resolveAll&&!l.includes(z)&&l.push(z),z.resolve&&me(s.events,O,s.events.length-O,z.resolve(s.events.slice(O),s)),z.resolveTo&&(s.events=z.resolveTo(s.events,s))}function _(){const z=m(),O=s.previous,V=s.currentConstruct,D=s.events.length,R=Array.from(a);return{from:D,restore:N};function N(){r=z,s.previous=O,s.currentConstruct=V,s.events.length=D,a=R,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Su(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Cu(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
+ `;break}case-3:{o=`\r
4
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Eu(e){const r={constructs:fo([wu,...(e||{}).extensions||[]]),content:i(ja),defined:[],document:i(Ha),flow:i(lu),lazy:{},string:i(uu),text:i(cu)};return r;function i(l){return o;function o(a){return vu(r,l,a)}}}function Au(e){for(;!yo(e););return e}const ni=/[\0\t\n\r]/g;function Iu(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const u=[];let s,f,c,p,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(ni.lastIndex=c,s=ni.exec(l),p=s&&s.index!==void 0?s.index:l.length,h=l.charCodeAt(p),!s){t=l.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(l.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Tu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ru(e){return e.replace(Tu,Pu)}function Pu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return ho(n.slice(l?2:1),l?16:10)}return pr(n)||e}const So={}.hasOwnProperty;function zu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Lu(n)(Au(Eu(n).document().write(Iu()(e,t,!0))))}function Lu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Mr),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(Lr),blockQuote:l(Le),characterEscape:_,characterReference:_,codeFenced:l(Oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Oe,o),codeText:l(rt,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(xt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(it),hardBreakEscape:l(Or),hardBreakTrailing:l(Or),htmlFlow:l(Dr,o),htmlFlowData:_,htmlText:l(Dr,o),htmlTextData:_,image:l(Fl),label:o,link:l(Mr),listItem:l(_l),listItemValue:p,listOrdered:l(Fr,c),listUnordered:l(Fr),paragraph:l(Nl),reference:b,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Lr),strong:l(Bl),thematicBreak:l(Vl)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:te,autolinkProtocol:xe,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Q,characterReference:Ce,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:w,codeIndented:u(y),codeText:u(R),codeTextData:w,data:w,definition:u(),definitionDestinationString:A,definitionLabelString:S,definitionTitleString:v,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(V),htmlFlowData:w,htmlText:u(D),htmlTextData:w,image:u(U),label:K,labelText:$,lineEnding:z,link:u(N),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:d,resourceTitleString:ue,resource:ye,setextHeading:u(E),setextHeadingLineSequence:P,setextHeadingText:k,strong:u(),thematicBreak:u()}};Co(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let L={type:"root",children:[]};const W={stack:[L],tokenStack:[],config:t,enter:a,exit:s,buffer:o,resume:f,data:n},Y=[];let J=-1;for(;++J<C.length;)if(C[J][1].type==="listOrdered"||C[J][1].type==="listUnordered")if(C[J][0]==="enter")Y.push(J);else{const ke=Y.pop();J=i(C,ke,J)}for(J=-1;++J<C.length;){const ke=t[C[J][0]];So.call(ke,C[J][1].type)&&ke[C[J][1].type].call(Object.assign({sliceSerialize:C[J][2].sliceSerialize},W),C[J][1])}if(W.tokenStack.length>0){const ke=W.tokenStack[W.tokenStack.length-1];(ke[1]||ri).call(W,void 0,ke[0])}for(L.position={start:Ve(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Ve(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)L=t.transforms[J](L)||L;return L}function i(C,L,W){let Y=L-1,J=-1,ke=!1,Ge,De,kt,wt;for(;++Y<=W;){const he=C[Y];switch(he[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{he[0]==="enter"?J++:J--,wt=void 0;break}case"lineEndingBlank":{he[0]==="enter"&&(Ge&&!wt&&!J&&!kt&&(kt=Y),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!J&&he[0]==="enter"&&he[1].type==="listItemPrefix"||J===-1&&he[0]==="exit"&&(he[1].type==="listUnordered"||he[1].type==="listOrdered")){if(Ge){let ot=Y;for(De=void 0;ot--;){const Me=C[ot];if(Me[1].type==="lineEnding"||Me[1].type==="lineEndingBlank"){if(Me[0]==="exit")continue;De&&(C[De][1].type="lineEndingBlank",ke=!0),Me[1].type="lineEnding",De=ot}else if(!(Me[1].type==="linePrefix"||Me[1].type==="blockQuotePrefix"||Me[1].type==="blockQuotePrefixWhitespace"||Me[1].type==="blockQuoteMarker"||Me[1].type==="listItemIndent"))break}kt&&(!De||kt<De)&&(Ge._spread=!0),Ge.end=Object.assign({},De?C[De][1].start:he[1].end),C.splice(De||Y,0,["exit",Ge,he[2]]),Y++,W++}if(he[1].type==="listItemPrefix"){const ot={type:"listItem",_spread:!1,start:Object.assign({},he[1].start),end:void 0};Ge=ot,C.splice(Y,0,["enter",ot,he[2]]),Y++,W++,kt=void 0,wt=!0}}}return C[L][1]._spread=ke,W}function l(C,L){return W;function W(Y){a.call(this,C(Y),Y),L&&L.call(this,Y)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(C,L,W){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([L,W||void 0]),C.position={start:Ve(L.start),end:void 0}}function u(C){return L;function L(W){C&&C.call(this,W),s.call(this,W)}}function s(C,L){const W=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==C.type&&(L?L.call(this,C,Y[0]):(Y[1]||ri).call(this,C,Y[0]));else throw new Error("Cannot close `"+C.type+"` ("+It({start:C.start,end:C.end})+"): it’s not open");W.position.end=Ve(C.end)}function f(){return hr(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(C){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function h(){const C=this.resume(),L=this.stack[this.stack.length-1];L.lang=C}function m(){const C=this.resume(),L=this.stack[this.stack.length-1];L.meta=C}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const C=this.resume(),L=this.stack[this.stack.length-1];L.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const C=this.resume(),L=this.stack[this.stack.length-1];L.value=C.replace(/(\r?\n|\r)$/g,"")}function S(C){const L=this.resume(),W=this.stack[this.stack.length-1];W.label=L,W.identifier=we(this.sliceSerialize(C)).toLowerCase()}function v(){const C=this.resume(),L=this.stack[this.stack.length-1];L.title=C}function A(){const C=this.resume(),L=this.stack[this.stack.length-1];L.url=C}function I(C){const L=this.stack[this.stack.length-1];if(!L.depth){const W=this.sliceSerialize(C).length;L.depth=W}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function P(C){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function _(C){const W=this.stack[this.stack.length-1].children;let Y=W[W.length-1];(!Y||Y.type!=="text")&&(Y=jl(),Y.position={start:Ve(C.start),end:void 0},W.push(Y)),this.stack.push(Y)}function w(C){const L=this.stack.pop();L.value+=this.sliceSerialize(C),L.position.end=Ve(C.end)}function z(C){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=L.children[L.children.length-1];W.position.end=Ve(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(_.call(this,C),w.call(this,C))}function O(){this.data.atHardBreak=!0}function V(){const C=this.resume(),L=this.stack[this.stack.length-1];L.value=C}function D(){const C=this.resume(),L=this.stack[this.stack.length-1];L.value=C}function R(){const C=this.resume(),L=this.stack[this.stack.length-1];L.value=C}function N(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=L,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function U(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=L,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function $(C){const L=this.sliceSerialize(C),W=this.stack[this.stack.length-2];W.label=Ru(L),W.identifier=we(L).toLowerCase()}function K(){const C=this.stack[this.stack.length-1],L=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const Y=C.children;W.children=Y}else W.alt=L}function d(){const C=this.resume(),L=this.stack[this.stack.length-1];L.url=C}function ue(){const C=this.resume(),L=this.stack[this.stack.length-1];L.title=C}function ye(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function ae(C){const L=this.resume(),W=this.stack[this.stack.length-1];W.label=L,W.identifier=we(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function ne(C){this.data.characterReferenceType=C.type}function Q(C){const L=this.sliceSerialize(C),W=this.data.characterReferenceType;let Y;W?(Y=ho(L,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=pr(L);const J=this.stack[this.stack.length-1];J.value+=Y}function Ce(C){const L=this.stack.pop();L.position.end=Ve(C.end)}function xe(C){w.call(this,C);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(C)}function te(C){w.call(this,C);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(C)}function Le(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function rt(){return{type:"inlineCode",value:""}}function xt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function it(){return{type:"emphasis",children:[]}}function Lr(){return{type:"heading",depth:0,children:[]}}function Or(){return{type:"break"}}function Dr(){return{type:"html",value:""}}function Fl(){return{type:"image",title:null,url:"",alt:null}}function Mr(){return{type:"link",title:null,url:"",children:[]}}function Fr(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function _l(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function Nl(){return{type:"paragraph",children:[]}}function Bl(){return{type:"strong",children:[]}}function jl(){return{type:"text",value:""}}function Vl(){return{type:"thematicBreak"}}}function Ve(e){return{line:e.line,column:e.column,offset:e.offset}}function Co(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Co(e,r):Ou(e,r)}}function Ou(e,t){let n;for(n in t)if(So.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 ri(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+It({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+It({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+It({start:t.start,end:t.end})+") is still open")}function Du(e){const t=this;t.parser=n;function n(r){return zu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Fu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5
+ `}]}function _u(e,t){const n=t.value?t.value+`
6
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function Nu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ju(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=gt(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Vu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Eo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function $u(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Eo(e,t);const i={src:gt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Wu(e,t){const n={src:gt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Uu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Eo(e,t);const i={href:gt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Gu(e,t){const n={href:gt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Yu(e,t,n){const r=e.all(t),i=n?Xu(n):Ao(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
7
+ `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
8
+ `});const s={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,s),e.applyData(t,s)}function Xu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ao(n[r])}return t}function Ao(e){const t=e.spread;return t??e.children.length>1}function Qu(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Ku(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ju(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Zu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ec(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=sr(t.children[1]),u=io(t.children[t.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function tc(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let u=-1;const s=[];for(;++u<a;){const c=t.children[u],p={},h=o?o[u]:void 0;h&&(p.align=h);let m={type:"element",tagName:l,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),s.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function nc(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ii=9,oi=32;function rc(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(li(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(li(t.slice(i),i>0,!1)),l.join("")}function li(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===ii||l===oi;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===ii||l===oi;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ic(e,t){const n={type:"text",value:rc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oc(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lc={blockquote:Mu,break:Fu,code:_u,delete:Nu,emphasis:Bu,footnoteReference:ju,heading:Vu,html:Hu,imageReference:$u,image:Wu,inlineCode:Uu,linkReference:qu,link:Gu,listItem:Yu,list:Qu,paragraph:Ku,root:Ju,strong:Zu,table:ec,tableCell:nc,tableRow:tc,text:ic,thematicBreak:oc,toml:_t,yaml:_t,definition:_t,footnoteDefinition:_t};function _t(){}const Io=-1,cn=0,Rt=1,Zt=2,mr=3,gr=4,yr=5,br=6,To=7,Ro=8,ac=typeof self=="object"?self:globalThis,ai=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new ac[e](t)},sc=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case cn:case Io:return n(o,i);case Rt:{const a=n([],i);for(const u of o)a.push(r(u));return a}case Zt:{const a=n({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case mr:return n(new Date(o),i);case gr:{const{source:a,flags:u}=o;return n(new RegExp(a,u),i)}case yr:{const a=n(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case br:{const a=n(new Set,i);for(const u of o)a.add(r(u));return a}case To:{const{name:a,message:u}=o;return n(ai(a,u),i)}case Ro:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(ai(l,o),i)};return r},si=e=>sc(new Map,e)(0),Ke="",{toString:uc}={},{keys:cc}=Object,Et=e=>{const t=typeof e;if(t!=="object"||!e)return[cn,t];const n=uc.call(e).slice(8,-1);switch(n){case"Array":return[Rt,Ke];case"Object":return[Zt,Ke];case"Date":return[mr,Ke];case"RegExp":return[gr,Ke];case"Map":return[yr,Ke];case"Set":return[br,Ke];case"DataView":return[Rt,n]}return n.includes("Array")?[Rt,n]:n.includes("Error")?[To,n]:[Zt,n]},Nt=([e,t])=>e===cn&&(t==="function"||t==="symbol"),fc=(e,t,n,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return n.set(a,u),u},l=o=>{if(n.has(o))return n.get(o);let[a,u]=Et(o);switch(a){case cn:{let f=o;switch(u){case"bigint":a=Ro,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Io],o)}return i([a,f],o)}case Rt:{if(u){let p=o;return u==="DataView"?p=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(o)),i([u,[...p]],o)}const f=[],c=i([a,f],o);for(const p of o)f.push(l(p));return c}case Zt:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const p of cc(o))(e||!Nt(Et(o[p])))&&f.push([l(p),l(o[p])]);return c}case mr:return i([a,isNaN(o.getTime())?Ke:o.toISOString()],o);case gr:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case yr:{const f=[],c=i([a,f],o);for(const[p,h]of o)(e||!(Nt(Et(p))||Nt(Et(h))))&&f.push([l(p),l(h)]);return c}case br:{const f=[],c=i([a,f],o);for(const p of o)(e||!Nt(Et(p)))&&f.push(l(p));return c}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},ui=(e,{json:t,lossy:n}={})=>{const r=[];return fc(!(t||n),!!t,new Map,r)(e),r},en=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?si(ui(e,t)):structuredClone(e):(e,t)=>si(ui(e,t));function hc(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 pc(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dc(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hc,r=e.options.footnoteBackLabel||pc,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=gt(c.toLowerCase());let h=0;const m=[],g=e.footnoteCounts.get(c);for(;g!==void 0&&++h<=g;){m.length>0&&m.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,h);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const x=f[f.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const S=x.children[x.children.length-1];S&&S.type==="text"?S.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...m)}else f.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...en(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
+ `}]}}const fn=(function(e){if(e==null)return bc;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?mc(e):gc(e);if(typeof e=="string")return yc(e);throw new Error("Expected function, string, or object as test")});function mc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fn(e[n]);return hn(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function gc(e){const t=e;return hn(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function yc(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,r,i){return!!(xc(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function bc(){return!0}function xc(e){return e!==null&&typeof e=="object"&&"type"in e}const Po=[],kc=!0,Qn=!1,wc="skip";function zo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=fn(i),o=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Po,m,g,x;if((!t||l(u,s,f[f.length-1]||void 0))&&(h=vc(n(u,f)),h[0]===Qn))return h;if("children"in u&&u.children){const y=u;if(y.children&&h[0]!==wc)for(g=(r?y.children.length:-1)+o,x=f.concat(y);g>-1&&g<y.children.length;){const S=y.children[g];if(m=a(S,g,x)(),m[0]===Qn)return m;g=typeof m[1]=="number"?m[1]:g+o}}return h}}}function vc(e){return Array.isArray(e)?e:typeof e=="number"?[kc,e]:e==null?Po:[e]}function xr(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),zo(e,l,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return o(u,c,f)}}const Kn={}.hasOwnProperty,Sc={};function Cc(e,t){const n=t||Sc,r=new Map,i=new Map,l=new Map,o={...lc,...n.handlers},a={all:s,applyData:Ac,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:u,options:n,patch:Ec,wrap:Tc};return xr(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(Kn.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:g,...x}=f,y=en(x);return y.children=a.all(f),y}return en(f)}return(a.options.unknownHandler||Ic)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],f);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=ci(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=ci(g.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function Ec(e,t){e.position&&(t.position=ha(e))}function Ac(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,en(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ic(e,t){const n=t.data||{},r="value"in t&&!(Kn.call(n,"hProperties")||Kn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Tc(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
11
+ `});++r<e.length;)r&&n.push({type:"text",value:`
12
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
13
+ `}),n}function ci(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function fi(e,t){const n=Cc(e,t),r=n.one(e,void 0),i=dc(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
+ `},i),l}function Rc(e,t){return e&&"run"in e?async function(n,r){const i=fi(n,{file:r,...t});await e.run(i,r)}:function(n,r){return fi(n,{file:r,...e||t})}}function hi(e){if(e)throw e}var Cn,pi;function Pc(){if(pi)return Cn;pi=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},l=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},o=function(s,f){n&&f.name==="__proto__"?n(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return Cn=function u(){var s,f,c,p,h,m,g=arguments[0],x=1,y=arguments.length,S=!1;for(typeof g=="boolean"&&(S=g,g=arguments[1]||{},x=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});x<y;++x)if(s=arguments[x],s!=null)for(f in s)c=a(g,f),p=a(s,f),g!==p&&(S&&p&&(l(p)||(h=i(p)))?(h?(h=!1,m=c&&i(c)?c:[]):m=c&&l(c)?c:{},o(g,{name:f,newValue:u(S,m,p)})):typeof p<"u"&&o(g,{name:f,newValue:p}));return g},Cn}var zc=Pc();const En=Qi(zc);function Jn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lc(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(u,...s){const f=e[++l];let c=-1;if(u){o(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Oc(f,a)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Oc(e,t){let n;return r;function r(...o){const a=e.length>o.length;let u;a&&o.push(i);try{u=e.apply(this,o)}catch(s){const f=s;if(a&&n)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const Ae={basename:Dc,dirname:Mc,extname:Fc,join:_c,sep:"/"};function Dc(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mt(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Mc(e){if(Mt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Fc(e){Mt(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function _c(...e){let t=-1,n;for(;++t<e.length;)Mt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Nc(n)}function Nc(e){Mt(e);const t=e.codePointAt(0)===47;let n=Bc(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Bc(e,t){let n="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function Mt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jc={cwd:Vc};function Vc(){return"/"}function Zn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hc(e){if(typeof e=="string")e=new URL(e);else if(!Zn(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return $c(e)}function $c(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const An=["history","path","basename","stem","extname","dirname"];class Lo{constructor(t){let n;t?Zn(t)?n={path:t}:typeof t=="string"||Wc(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<An.length;){const l=An[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)An.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ae.basename(this.path):void 0}set basename(t){Tn(t,"basename"),In(t,"basename"),this.path=Ae.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ae.dirname(this.path):void 0}set dirname(t){di(this.basename,"dirname"),this.path=Ae.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ae.extname(this.path):void 0}set extname(t){if(In(t,"extname"),di(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ae.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Zn(t)&&(t=Hc(t)),Tn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ae.basename(this.path,this.extname):void 0}set stem(t){Tn(t,"stem"),In(t,"stem"),this.path=Ae.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function In(e,t){if(e&&e.includes(Ae.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ae.sep+"`")}function Tn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function di(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Wc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Uc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),qc={}.hasOwnProperty;class kr extends Uc{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=Lc()}copy(){const t=new kr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(En(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(zn("data",this.frozen),this.namespace[t]=n,this):qc.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Bt(t),r=this.parser||this.Parser;return Rn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Rn("process",this.parser||this.Parser),Pn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=Bt(t),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,m=r.stringify(h,p);Xc(m)?p.value=m:p.result=m,s(f,p)});function s(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Rn("processSync",this.parser||this.Parser),Pn("processSync",this.compiler||this.Compiler),this.process(t,i),gi("processSync","process",n),r;function i(l,o){n=!0,hi(l),r=o}}run(t,n,r){mi(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const u=Bt(n);i.run(t,u,s);function s(f,c,p){const h=c||t;f?a(f):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),gi("runSync","run",r),i;function l(o,a){hi(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Bt(n),i=this.compiler||this.Compiler;return Pn("stringify",i),mi(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(zn("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else o(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function o(s){if(!("plugins"in s)&&!("settings"in s))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(s.plugins),s.settings&&(i.settings=En(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...m]=f;const g=r[p][1];Jn(g)&&Jn(h)&&(h=En(!0,g,h)),r[p]=[s,h,...m]}}}}const Gc=new kr().freeze();function Rn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Pn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zn(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 mi(e){if(!Jn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gi(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Bt(e){return Yc(e)?e:new Lo(e)}function Yc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xc(e){return typeof e=="string"||Qc(e)}function Qc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yi=[],bi={allowDangerousHtml:!0},Jc=/^(https?|ircs?|mailto|xmpp)$/i,Zc=[{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 jm(e){const t=ef(e),n=tf(e);return nf(t.runSync(t.parse(n),n),e)}function ef(e){const t=e.rehypePlugins||yi,n=e.remarkPlugins||yi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bi}:bi;return Gc().use(Du).use(n).use(Rc,r).use(t)}function tf(e){const t=e.children||"",n=new Lo;return typeof t=="string"&&(n.value=t),n}function nf(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||rf;for(const f of Zc)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Kc+f.id,void 0);return xr(e,s),ya(e,{Fragment:bn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:bn.jsx,jsxs:bn.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in wn)if(Object.hasOwn(wn,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],g=wn[h];(g===null||g.includes(f.tagName))&&(f.properties[h]=u(String(m||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function rf(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Jc.test(e.slice(0,t))?e:""}function xi(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function of(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lf(e,t,n){const i=fn((n||{}).ignore||[]),l=af(t);let o=-1;for(;++o<l.length;)zo(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=l[o][0],h=l[o][1];let m=0;const x=c.children.indexOf(s);let y=!1,S=[];p.lastIndex=0;let v=p.exec(s.value);for(;v;){const A=v.index,I={index:v.index,input:v.input,stack:[...f,s]};let k=h(...v,I);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=A+1:(m!==A&&S.push({type:"text",value:s.value.slice(m,A)}),Array.isArray(k)?S.push(...k):k&&S.push(k),m=A+v[0].length,y=!0),!p.global)break;v=p.exec(s.value)}return y?(m<s.value.length&&S.push({type:"text",value:s.value.slice(m)}),c.children.splice(x,1,...S)):S=[s],x+S.length}}function af(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 i=n[r];t.push([sf(i[0]),uf(i[1])])}return t}function sf(e){return typeof e=="string"?new RegExp(of(e),"g"):e}function uf(e){return typeof e=="function"?e:function(){return e}}const Ln="phrasing",On=["autolink","link","image","label"];function cf(){return{transforms:[yf],enter:{literalAutolink:hf,literalAutolinkEmail:Dn,literalAutolinkHttp:Dn,literalAutolinkWww:Dn},exit:{literalAutolink:gf,literalAutolinkEmail:mf,literalAutolinkHttp:pf,literalAutolinkWww:df}}}function ff(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:On},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:On},{character:":",before:"[ps]",after:"\\/",inConstruct:Ln,notInConstruct:On}]}}function hf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Dn(e){this.config.enter.autolinkProtocol.call(this,e)}function pf(e){this.config.exit.autolinkProtocol.call(this,e)}function df(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 mf(e){this.config.exit.autolinkEmail.call(this,e)}function gf(e){this.exit(e)}function yf(e){lf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xf]],{ignore:["link","linkReference"]})}function bf(e,t,n,r,i){let l="";if(!Oo(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!kf(n)))return!1;const o=wf(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function xf(e,t,n,r){return!Oo(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kf(e){const t=e.split(".");return!(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])))}function wf(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 i=xi(e,"(");let l=xi(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Oo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ze(n)||sn(n))&&(!t||n!==47)}Do.peek=Pf;function vf(){this.buffer()}function Sf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cf(){this.buffer()}function Ef(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Af(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=we(this.sliceSerialize(e)).toLowerCase(),n.label=t}function If(e){this.exit(e)}function Tf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=we(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Rf(e){this.exit(e)}function Pf(){return"["}function Do(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function zf(){return{enter:{gfmFootnoteCallString:vf,gfmFootnoteCall:Sf,gfmFootnoteDefinitionLabelString:Cf,gfmFootnoteDefinition:Ef},exit:{gfmFootnoteCallString:Af,gfmFootnoteCall:If,gfmFootnoteDefinitionLabelString:Tf,gfmFootnoteDefinition:Rf}}}function Lf(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Do},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const a=l.createTracker(o);let u=a.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return u+=a.move(l.safe(l.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((t?`
15
+ `:" ")+l.indentLines(l.containerFlow(r,a.current()),t?Mo:Of))),s(),u}}function Of(e,t,n){return t===0?e:Mo(e,t,n)}function Mo(e,t,n){return(n?"":" ")+e}const Df=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Fo.peek=Bf;function Mf(){return{canContainEols:["delete"],enter:{strikethrough:_f},exit:{strikethrough:Nf}}}function Ff(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Df}],handlers:{delete:Fo}}}function _f(e){this.enter({type:"delete",children:[]},e)}function Nf(e){this.exit(e)}function Fo(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Bf(){return"~"}function jf(e){return e.length}function Vf(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||jf,l=[],o=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const g=[],x=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const S=Hf(e[f][y]);if(n.alignDelimiters!==!1){const v=i(S);x[y]=v,(u[y]===void 0||v>u[y])&&(u[y]=v)}g.push(S)}o[f]=g,a[f]=x}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)l[c]=ki(r[c]);else{const g=ki(r);for(;++c<s;)l[c]=g}c=-1;const p=[],h=[];for(;++c<s;){const g=l[c];let x="",y="";g===99?(x=":",y=":"):g===108?x=":":g===114&&(y=":");let S=n.alignDelimiters===!1?1:Math.max(1,u[c]-x.length-y.length);const v=x+"-".repeat(S)+y;n.alignDelimiters!==!1&&(S=x.length+S+y.length,S>u[c]&&(u[c]=S),h[c]=S),p[c]=v}o.splice(1,0,p),a.splice(1,0,h),f=-1;const m=[];for(;++f<o.length;){const g=o[f],x=a[f];c=-1;const y=[];for(;++c<s;){const S=g[c]||"";let v="",A="";if(n.alignDelimiters!==!1){const I=u[c]-(x[c]||0),k=l[c];k===114?v=" ".repeat(I):k===99?I%2?(v=" ".repeat(I/2+.5),A=" ".repeat(I/2-.5)):(v=" ".repeat(I/2),A=v):A=" ".repeat(I)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(v),y.push(S),n.alignDelimiters!==!1&&y.push(A),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
16
+ `)}function Hf(e){return e==null?"":String(e)}function ki(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function $f(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),Wf);return i(),o}function Wf(e,t,n){return">"+(n?"":" ")+e}function Uf(e,t){return wi(e,t.inConstruct,!0)&&!wi(e,t.notInConstruct,!1)}function wi(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function vi(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
17
+ `&&Uf(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
+ `}function qf(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function Gf(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Yf(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Xf(e,t,n,r){const i=Yf(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Gf(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,Qf);return c(),p}const a=n.createTracker(r),u=i.repeat(Math.max(qf(l,i)+1,3)),s=n.enter("codeFenced");let f=a.move(u);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
19
+ `,encode:["`"],...a.current()})),c()}return f+=a.move(`
20
+ `),l&&(f+=a.move(l+`
21
+ `)),f+=a.move(u),s(),f}function Qf(e,t,n){return(n?"":" ")+e}function wr(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 Kf(e,t,n,r){const i=wr(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":`
22
+ `,...u.current()}))),a(),e.title&&(a=n.enter(`title${l}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),o(),s}function Jf(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function zt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tn(e,t,n){const r=pt(e),i=pt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}_o.peek=Zf;function _o(e,t,n,r){const i=Jf(n),l=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const s=u.charCodeAt(0),f=tn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=zt(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=tn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+zt(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function Zf(e,t,n){return n.options.emphasis||"*"}function eh(e,t){let n=!1;return xr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Qn}),!!((!e.depth||e.depth<3)&&hr(e)&&(t.options.setext||n))}function th(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(eh(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
23
+ `,after:`
24
+ `});return c(),f(),p+`
25
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26
+ `))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");l.move(o+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
27
+ `,...l.current()});return/^[\t ]/.test(s)&&(s=zt(s.charCodeAt(0))+s.slice(1)),s=s?o+" "+s:o,n.options.closeAtx&&(s+=" "+o),u(),a(),s}No.peek=nh;function No(e){return e.value||""}function nh(){return"<"}Bo.peek=rh;function Bo(e,t,n,r){const i=wr(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${l}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),o(),s}function rh(){return"!"}jo.peek=ih;function jo(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function ih(){return"!"}Vo.peek=oh;function Vo(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],a=n.compilePattern(o);let u;if(o.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function oh(){return"`"}function Ho(e,t){const n=hr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}$o.peek=lh;function $o(e,t,n,r){const i=wr(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,u;if(Ho(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),n.stack=f,c}a=n.enter("link"),u=n.enter("label");let s=o.move("[");return s+=o.move(n.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(n.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=n.enter("destinationRaw"),s+=o.move(n.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(n.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),u()),s+=o.move(")"),a(),s}function lh(e,t,n){return Ho(e,n)?"<":"["}Wo.peek=ah;function Wo(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function ah(){return"["}function vr(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 sh(e){const t=vr(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}function uh(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Uo(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}function ch(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?uh(n):vr(n);const a=e.ordered?o==="."?")":".":sh(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Uo(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=a),n.bulletCurrent=o;const s=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),s}function fh(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function hh(e,t,n,r){const i=fh(n);let l=n.bulletCurrent||vr(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function ph(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const dh=fn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mh(e,t,n,r){return(e.children.some(function(o){return dh(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function gh(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}qo.peek=yh;function qo(e,t,n,r){const i=gh(n),l=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const s=u.charCodeAt(0),f=tn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=zt(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=tn(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+zt(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function yh(e,t,n){return n.options.strong||"*"}function bh(e,t,n,r){return n.safe(e.value,r)}function xh(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}function kh(e,t,n){const r=(Uo(n)+(n.options.ruleSpaces?" ":"")).repeat(xh(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Go={blockquote:$f,break:vi,code:Xf,definition:Kf,emphasis:_o,hardBreak:vi,heading:th,html:No,image:Bo,imageReference:jo,inlineCode:Vo,link:$o,linkReference:Wo,list:ch,listItem:hh,paragraph:ph,root:mh,strong:qo,text:bh,thematicBreak:kh};function wh(){return{enter:{table:vh,tableData:Si,tableHeader:Si,tableRow:Ch},exit:{codeText:Eh,table:Sh,tableData:Mn,tableHeader:Mn,tableRow:Mn}}}function vh(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Sh(e){this.exit(e),this.data.inTable=void 0}function Ch(e){this.enter({type:"tableRow",children:[]},e)}function Mn(e){this.exit(e)}function Si(e){this.enter({type:"tableCell",children:[]},e)}function Eh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ah));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ah(e,t){return t==="|"?t:e}function Ih(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:u,tableRow:a}};function o(h,m,g,x){return s(f(h,g,x),h.align)}function a(h,m,g,x){const y=c(h,g,x),S=s([y]);return S.slice(0,S.indexOf(`
29
+ `))}function u(h,m,g,x){const y=g.enter("tableCell"),S=g.enter("phrasing"),v=g.containerPhrasing(h,{...x,before:l,after:l});return S(),y(),v}function s(h,m){return Vf(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,g){const x=h.children;let y=-1;const S=[],v=m.enter("table");for(;++y<x.length;)S[y]=c(x[y],m,g);return v(),S}function c(h,m,g){const x=h.children;let y=-1;const S=[],v=m.enter("tableRow");for(;++y<x.length;)S[y]=u(x[y],h,m,g);return v(),S}function p(h,m,g){let x=Go.inlineCode(h,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function Th(){return{exit:{taskListCheckValueChecked:Ci,taskListCheckValueUnchecked:Ci,paragraph:Ph}}}function Rh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zh}}}function Ci(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ph(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function zh(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let u=Go.listItem(e,t,n,{...r,...a.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+o}}function Lh(){return[cf(),zf(),Mf(),wh(),Th()]}function Oh(e){return{extensions:[ff(),Lf(e),Ff(),Ih(e),Rh()]}}const Dh={tokenize:jh,partial:!0},Yo={tokenize:Vh,partial:!0},Xo={tokenize:Hh,partial:!0},Qo={tokenize:$h,partial:!0},Mh={tokenize:Wh,partial:!0},Ko={name:"wwwAutolink",tokenize:Nh,previous:Zo},Jo={name:"protocolAutolink",tokenize:Bh,previous:el},Be={name:"emailAutolink",tokenize:_h,previous:tl},Pe={};function Fh(){return{text:Pe}}let Ye=48;for(;Ye<123;)Pe[Ye]=Be,Ye++,Ye===58?Ye=65:Ye===91&&(Ye=97);Pe[43]=Be;Pe[45]=Be;Pe[46]=Be;Pe[95]=Be;Pe[72]=[Be,Jo];Pe[104]=[Be,Jo];Pe[87]=[Be,Ko];Pe[119]=[Be,Ko];function _h(e,t,n){const r=this;let i,l;return o;function o(c){return!er(c)||!tl.call(r,r.previous)||Sr(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return er(c)?(e.consume(c),a):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Mh,f,s)(c):c===45||c===95||oe(c)?(l=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return l&&i&&se(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Nh(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Zo.call(r,r.previous)||Sr(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dh,e.attempt(Yo,e.attempt(Xo,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Bh(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&el.call(r,r.previous)&&!Sr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(se(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),l?s:(l=!0,u)):n(c)}function s(c){return c===null||Jt(c)||ee(c)||Ze(c)||sn(c)?n(c):e.attempt(Yo,e.attempt(Xo,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function jh(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function Vh(e,t,n){let r,i,l;return o;function o(s){return s===46||s===95?e.check(Qo,u,a)(s):s===null||ee(s)||Ze(s)||s!==45&&sn(s)?u(s):(l=!0,e.consume(s),o)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function u(s){return i||r||!l?n(s):t(s)}}function Hh(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Qo,t,l)(o):o===null||ee(o)||Ze(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function $h(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||ee(a)||Ze(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ee(a)||Ze(a)?t(a):r(a)}function l(a){return se(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):se(a)?(e.consume(a),o):n(a)}}function Wh(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return oe(l)?n(l):t(l)}}function Zo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function el(e){return!se(e)}function tl(e){return!(e===47||er(e))}function er(e){return e===43||e===45||e===46||e===95||oe(e)}function Sr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Uh={tokenize:Zh,partial:!0};function qh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Qh,continuation:{tokenize:Kh},exit:Jh}},text:{91:{name:"gfmFootnoteCall",tokenize:Xh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gh,resolveTo:Yh}}}}function Gh(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!o||!o._balanced)return n(u);const s=we(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Yh(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){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)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Xh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||ee(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(we(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ee(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function Qh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return u;function u(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(o>999||m===93&&!a||m===null||m===91||ee(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return l=we(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ee(m)||(a=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),X(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function Kh(e,t,n){return e.check(Dt,t,e.attempt(Uh,t,n))}function Jh(e){e.exit("gfmFootnoteDefinition")}function Zh(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function ep(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let s=u;for(;s--;)if(o[s][0]==="exit"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[s][1].end.offset-o[s][1].start.offset){o[u][1].type="strikethroughSequence",o[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[s][1].start),end:Object.assign({},o[u][1].end)},c={type:"strikethroughText",start:Object.assign({},o[s][1].end),end:Object.assign({},o[u][1].start)},p=[["enter",f,a],["enter",o[s][1],a],["exit",o[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&me(p,p.length,0,un(h,o.slice(s+1,u),a)),me(p,p.length,0,[["exit",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",f,a]]),me(o,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function l(o,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(m){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const g=pt(s);if(m===126)return c>1?u(m):(o.consume(m),c++,h);if(c<2&&!n)return u(m);const x=o.exit("strikethroughSequenceTemporary"),y=pt(m);return x._open=!y||y===2&&!!g,x._close=!g||g===2&&!!y,a(m)}}}class tp{constructor(){this.map=[]}add(t,n,r){np(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function np(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function rp(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ip(){return{flow:{null:{name:"table",tokenize:op,resolveAll:lp}}}}function op(e,t,n){const r=this;let i=0,l=0,o;return a;function a(w){let z=r.events.length-1;for(;z>-1;){const D=r.events[z][1].type;if(D==="lineEnding"||D==="linePrefix")z--;else break}const O=z>-1?r.events[z][1].type:null,V=O==="tableHead"||O==="tableRow"?k:u;return V===k&&r.parser.lazy[r.now().line]?n(w):V(w)}function u(w){return e.enter("tableHead"),e.enter("tableRow"),s(w)}function s(w){return w===124||(o=!0,l+=1),f(w)}function f(w){return w===null?n(w):j(w)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h):n(w):G(w)?X(e,f,"whitespace")(w):(l+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(w)))}function c(w){return w===null||w===124||ee(w)?(e.exit("data"),f(w)):(e.consume(w),w===92?p:c)}function p(w){return w===92||w===124?(e.consume(w),c):c(w)}function h(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),o=!1,G(w)?X(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):m(w))}function m(w){return w===45||w===58?x(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),g):I(w)}function g(w){return G(w)?X(e,x,"whitespace")(w):x(w)}function x(w){return w===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(l+=1,y(w)):w===null||j(w)?A(w):I(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),S(w)):I(w)}function S(w){return w===45?(e.consume(w),S):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(w))}function v(w){return G(w)?X(e,A,"whitespace")(w):A(w)}function A(w){return w===124?m(w):w===null||j(w)?!o||i!==l?I(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):I(w)}function I(w){return n(w)}function k(w){return e.enter("tableRow"),P(w)}function P(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),P):w===null||j(w)?(e.exit("tableRow"),t(w)):G(w)?X(e,P,"whitespace")(w):(e.enter("data"),E(w))}function E(w){return w===null||w===124||ee(w)?(e.exit("data"),P(w)):(e.consume(w),w===92?_:E)}function _(w){return w===92||w===124?(e.consume(w),E):E(w)}}function lp(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,u=0,s,f,c;const p=new tp;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,u!==0&&(Ei(p,t,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",s,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=jt(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=jt(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):m.type==="tableHead"?(a=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,l[1]!==0?(o[0]=o[1],c=jt(p,t,l,i,n,c)):o[1]!==0&&(c=jt(p,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Ei(p,t,u,s,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=rp(t.events,n))}return e}function jt(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},ct(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const u=ct(t.events,n[1]);if(l={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const s=ct(t.events,n[2]),f=ct(t.events,n[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},ct(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Ei(e,t,n,r,i){const l=[],o=ct(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function ct(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ap={name:"tasklistCheck",tokenize:up};function sp(){return{text:{91:ap}}}function up(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return ee(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return j(u)?t(u):G(u)?e.check({tokenize:cp},t,n)(u):n(u)}}function cp(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function fp(e){return fo([Fh(),qh(),ep(e),ip(),sp()])}const hp={};function Vm(e){const t=this,n=e||hp,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(fp(n)),l.push(Lh()),o.push(Oh(n))}function nl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=nl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pp(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=nl(e))&&(r&&(r+=" "),r+=t);return r}const Ai=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ii=pp,Hm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ii(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,o=Object.keys(i).map(s=>{const f=n==null?void 0:n[s],c=l==null?void 0:l[s];if(f===null)return null;const p=Ai(f)||Ai(c);return i[s][p]}),a=n&&Object.entries(n).reduce((s,f)=>{let[c,p]=f;return p===void 0||(s[c]=p),s},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((s,f)=>{let{class:c,className:p,...h}=f;return Object.entries(h).every(m=>{let[g,x]=m;return Array.isArray(x)?x.includes({...l,...a}[g]):{...l,...a}[g]===x})?[...s,c,p]:s},[]);return Ii(e,o,u,n==null?void 0:n.class,n==null?void 0:n.className)},dp=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},mp=(e,t)=>({classGroupId:e,validator:t}),rl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nn="-",Ti=[],gp="arbitrary..",yp=e=>{const t=xp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return bp(o);const a=o.split(nn),u=a[0]===""&&a.length>1?1:0;return il(a,u,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const u=r[o],s=n[o];return u?s?dp(s,u):u:s||Ti}return n[o]||Ti}}},il=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],l=n.nextPart.get(i);if(l){const s=il(e,t+1,l);if(s)return s}const o=n.validators;if(o===null)return;const a=t===0?e.join(nn):e.slice(t).join(nn),u=o.length;for(let s=0;s<u;s++){const f=o[s];if(f.validator(a))return f.classGroupId}},bp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?gp+r:void 0})(),xp=e=>{const{theme:t,classGroups:n}=e;return kp(n,t)},kp=(e,t)=>{const n=rl();for(const r in e){const i=e[r];Cr(i,n,r,t)}return n},Cr=(e,t,n,r)=>{const i=e.length;for(let l=0;l<i;l++){const o=e[l];wp(o,t,n,r)}},wp=(e,t,n,r)=>{if(typeof e=="string"){vp(e,t,n);return}if(typeof e=="function"){Sp(e,t,n,r);return}Cp(e,t,n,r)},vp=(e,t,n)=>{const r=e===""?t:ol(t,e);r.classGroupId=n},Sp=(e,t,n,r)=>{if(Ep(e)){Cr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(mp(n,e))},Cp=(e,t,n,r)=>{const i=Object.entries(e),l=i.length;for(let o=0;o<l;o++){const[a,u]=i[o];Cr(u,ol(t,a),n,r)}},ol=(e,t)=>{let n=e;const r=t.split(nn),i=r.length;for(let l=0;l<i;l++){const o=r[l];let a=n.nextPart.get(o);a||(a=rl(),n.nextPart.set(o,a)),n=a}return n},Ep=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ap=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(l,o)=>{n[l]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(l){let o=n[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in n?n[l]=o:i(l,o)}}},tr="!",Ri=":",Ip=[],Pi=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Tp=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const l=[];let o=0,a=0,u=0,s;const f=i.length;for(let g=0;g<f;g++){const x=i[g];if(o===0&&a===0){if(x===Ri){l.push(i.slice(u,g)),u=g+1;continue}if(x==="/"){s=g;continue}}x==="["?o++:x==="]"?o--:x==="("?a++:x===")"&&a--}const c=l.length===0?i:i.slice(u);let p=c,h=!1;c.endsWith(tr)?(p=c.slice(0,-1),h=!0):c.startsWith(tr)&&(p=c.slice(1),h=!0);const m=s&&s>u?s-u:void 0;return Pi(l,h,p,m)};if(t){const i=t+Ri,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):Pi(Ip,!1,o,void 0,!0)}if(n){const i=r;r=l=>n({className:l,parseClassName:i})}return r},Rp=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let l=0;l<n.length;l++){const o=n[l],a=o[0]==="[",u=t.has(o);a||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Pp=e=>({cache:Ap(e.cacheSize),parseClassName:Tp(e),sortModifiers:Rp(e),postfixLookupClassGroupIds:zp(e),...yp(e)}),zp=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Lp=/\s+/,Op=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l,postfixLookupClassGroupIds:o}=t,a=[],u=e.trim().split(Lp);let s="";for(let f=u.length-1;f>=0;f-=1){const c=u[f],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}=n(c);if(p){s=c+(s.length>0?" "+s:s);continue}let y=!!x,S;if(y){const P=g.substring(0,x);S=r(P);const E=S&&o[S]?r(g):void 0;E&&E!==S&&(S=E,y=!1)}else S=r(g);if(!S){if(!y){s=c+(s.length>0?" "+s:s);continue}if(S=r(g),!S){s=c+(s.length>0?" "+s:s);continue}y=!1}const v=h.length===0?"":h.length===1?h[0]:l(h).join(":"),A=m?v+tr:v,I=A+S;if(a.indexOf(I)>-1)continue;a.push(I);const k=i(S,y);for(let P=0;P<k.length;++P){const E=k[P];a.push(A+E)}s=c+(s.length>0?" "+s:s)}return s},Dp=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=ll(n))&&(i&&(i+=" "),i+=r);return i},ll=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ll(e[r]))&&(n&&(n+=" "),n+=t);return n},Mp=(e,...t)=>{let n,r,i,l;const o=u=>{const s=t.reduce((f,c)=>c(f),e());return n=Pp(s),r=n.cache.get,i=n.cache.set,l=a,a(u)},a=u=>{const s=r(u);if(s)return s;const f=Op(u,n);return i(u,f),f};return l=o,(...u)=>l(Dp(...u))},Fp=[],ie=e=>{const t=n=>n[e]||Fp;return t.isThemeGetter=!0,t},al=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_p=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Np=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>_p.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),Fn=e=>e.endsWith("%")&&q(e.slice(0,-1)),Fe=e=>Np.test(e),ul=()=>!0,$p=e=>Bp.test(e)&&!jp.test(e),Er=()=>!1,Wp=e=>Vp.test(e),Up=e=>Hp.test(e),qp=e=>!M(e)&&!F(e),Gp=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Yp=e=>qe(e,hl,Er),M=e=>al.test(e),Xe=e=>qe(e,pl,$p),zi=e=>qe(e,nd,q),Xp=e=>qe(e,ml,ul),Qp=e=>qe(e,dl,Er),Li=e=>qe(e,cl,Er),Kp=e=>qe(e,fl,Up),Vt=e=>qe(e,gl,Wp),F=e=>sl.test(e),At=e=>nt(e,pl),Jp=e=>nt(e,dl),Oi=e=>nt(e,cl),Zp=e=>nt(e,hl),ed=e=>nt(e,fl),Ht=e=>nt(e,gl,!0),td=e=>nt(e,ml,!0),qe=(e,t,n)=>{const r=al.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nt=(e,t,n=!1)=>{const r=sl.exec(e);return r?r[1]?t(r[1]):n:!1},cl=e=>e==="position"||e==="percentage",fl=e=>e==="image"||e==="url",hl=e=>e==="length"||e==="size"||e==="bg-size",pl=e=>e==="length",nd=e=>e==="number",dl=e=>e==="family-name",ml=e=>e==="number"||e==="weight",gl=e=>e==="shadow",rd=()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),i=ie("tracking"),l=ie("leading"),o=ie("breakpoint"),a=ie("container"),u=ie("spacing"),s=ie("radius"),f=ie("shadow"),c=ie("inset-shadow"),p=ie("text-shadow"),h=ie("drop-shadow"),m=ie("blur"),g=ie("perspective"),x=ie("aspect"),y=ie("ease"),S=ie("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...A(),F,M],k=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],E=()=>[F,M,u],_=()=>[He,"full","auto",...E()],w=()=>[Ee,"none","subgrid",F,M],z=()=>["auto",{span:["full",Ee,F,M]},Ee,F,M],O=()=>[Ee,"auto",F,M],V=()=>["auto","min","max","fr",F,M],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...E()],U=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],$=()=>[He,"screen","full","dvw","lvw","svw","min","max","fit",...E()],K=()=>[He,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],d=()=>[e,F,M],ue=()=>[...A(),Oi,Li,{position:[F,M]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],b=()=>["auto","cover","contain",Zp,Yp,{size:[F,M]}],ae=()=>[Fn,At,Xe],ne=()=>["","none","full",s,F,M],Q=()=>["",q,At,Xe],Ce=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[q,Fn,Oi,Li],Le=()=>["","none",m,F,M],Oe=()=>["none",q,F,M],rt=()=>["none",q,F,M],xt=()=>[q,F,M],it=()=>[He,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fe],breakpoint:[Fe],color:[ul],container:[Fe],"drop-shadow":[Fe],ease:["in","out","in-out"],font:[qp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fe],shadow:[Fe],spacing:["px",q],text:[Fe],"text-shadow":[Fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,M,F,x]}],container:["container"],"container-type":[{"@container":["","normal","size",F,M]}],"container-named":[Gp],columns:[{columns:[q,M,F,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{"inset-s":_(),start:_()}],end:[{"inset-e":_(),end:_()}],"inset-bs":[{"inset-bs":_()}],"inset-be":[{"inset-be":_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[Ee,"auto",F,M]}],basis:[{basis:[He,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,He,"auto","initial","none",M]}],grow:[{grow:["",q,F,M]}],shrink:[{shrink:["",q,F,M]}],order:[{order:[Ee,"first","last","none",F,M]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,At,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,td,Xp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fn,M]}],"font-family":[{font:[Jp,Qp,t]}],"font-features":[{"font-features":[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,F,M]}],"line-clamp":[{"line-clamp":[q,"none",F,zi]}],leading:[{leading:[l,...E()]}],"list-image":[{"list-image":["none",F,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",F,Xe]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[q,"auto",F,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[Ee,F,M]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:b()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,F,M],radial:["",F,M],conic:[Ee,F,M]},ed,Kp]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,F,M]}],"outline-w":[{outline:["",q,At,Xe]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,Ht,Vt]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",c,Ht,Vt]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[q,Xe]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",p,Ht,Vt]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[q,F,M]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[F,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:b()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,M]}],filter:[{filter:["","none",F,M]}],blur:[{blur:Le()}],brightness:[{brightness:[q,F,M]}],contrast:[{contrast:[q,F,M]}],"drop-shadow":[{"drop-shadow":["","none",h,Ht,Vt]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",q,F,M]}],"hue-rotate":[{"hue-rotate":[q,F,M]}],invert:[{invert:["",q,F,M]}],saturate:[{saturate:[q,F,M]}],sepia:[{sepia:["",q,F,M]}],"backdrop-filter":[{"backdrop-filter":["","none",F,M]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[q,F,M]}],"backdrop-contrast":[{"backdrop-contrast":[q,F,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,F,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,F,M]}],"backdrop-invert":[{"backdrop-invert":["",q,F,M]}],"backdrop-opacity":[{"backdrop-opacity":[q,F,M]}],"backdrop-saturate":[{"backdrop-saturate":[q,F,M]}],"backdrop-sepia":[{"backdrop-sepia":["",q,F,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",F,M]}],ease:[{ease:["linear","initial",y,F,M]}],delay:[{delay:[q,F,M]}],animate:[{animate:["none",S,F,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,F,M]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:xt()}],"skew-x":[{"skew-x":xt()}],"skew-y":[{"skew-y":xt()}],transform:[{transform:[F,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:it()}],"translate-x":[{"translate-x":it()}],"translate-y":[{"translate-y":it()}],"translate-z":[{"translate-z":it()}],"translate-none":["translate-none"],zoom:[{zoom:[Ee,F,M]}],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":d()}],"scrollbar-track-color":[{"scrollbar-track":d()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,M]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[q,At,Xe,zi]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$m=Mp(rd),id=["top","right","bottom","left"],$e=Math.min,de=Math.max,rn=Math.round,$t=Math.floor,Re=e=>({x:e,y:e}),od={left:"right",right:"left",bottom:"top",top:"bottom"};function nr(e,t,n){return de(e,$e(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function yt(e){return e.split("-")[1]}function Ar(e){return e==="x"?"y":"x"}function Ir(e){return e==="y"?"height":"width"}function Te(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Tr(e){return Ar(Te(e))}function ld(e,t,n){n===void 0&&(n=!1);const r=yt(e),i=Tr(e),l=Ir(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=on(o)),[o,on(o)]}function ad(e){const t=on(e);return[rr(e),t,rr(t)]}function rr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Di=["left","right"],Mi=["right","left"],sd=["top","bottom"],ud=["bottom","top"];function cd(e,t,n){switch(e){case"top":case"bottom":return n?t?Mi:Di:t?Di:Mi;case"left":case"right":return t?sd:ud;default:return[]}}function fd(e,t,n,r){const i=yt(e);let l=cd(Ne(e),n==="start",r);return i&&(l=l.map(o=>o+"-"+i),t&&(l=l.concat(l.map(rr)))),l}function on(e){const t=Ne(e);return od[t]+e.slice(t.length)}function hd(e){return{top:0,right:0,bottom:0,left:0,...e}}function yl(e){return typeof e!="number"?hd(e):{top:e,right:e,bottom:e,left:e}}function ln(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fi(e,t,n){let{reference:r,floating:i}=e;const l=Te(t),o=Tr(t),a=Ir(o),u=Ne(t),s=l==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(u){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-i.width,y:c};break;default:h={x:r.x,y:r.y}}switch(yt(t)){case"start":h[o]-=p*(n&&s?-1:1);break;case"end":h[o]+=p*(n&&s?-1:1);break}return h}async function pd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:o,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=_e(t,e),m=yl(h),x=a[p?c==="floating"?"reference":"floating":c],y=ln(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(x)))==null||n?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:u})),S=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),A=await(l.isElement==null?void 0:l.isElement(v))?await(l.getScale==null?void 0:l.getScale(v))||{x:1,y:1}:{x:1,y:1},I=ln(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:v,strategy:u}):S);return{top:(y.top-I.top+m.top)/A.y,bottom:(I.bottom-y.bottom+m.bottom)/A.y,left:(y.left-I.left+m.left)/A.x,right:(I.right-y.right+m.right)/A.x}}const dd=50,md=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:pd},u=await(o.isRTL==null?void 0:o.isRTL(t));let s=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=Fi(s,r,u),p=r,h=0;const m={};for(let g=0;g<l.length;g++){const x=l[g];if(!x)continue;const{name:y,fn:S}=x,{x:v,y:A,data:I,reset:k}=await S({x:f,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:s,platform:a,elements:{reference:e,floating:t}});f=v??f,c=A??c,m[y]={...m[y],...I},k&&h<dd&&(h++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(s=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:f,y:c}=Fi(s,p,u)),g=-1)}return{x:f,y:c,placement:p,strategy:i,middlewareData:m}},gd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:o,elements:a,middlewareData:u}=t,{element:s,padding:f=0}=_e(e,t)||{};if(s==null)return{};const c=yl(f),p={x:n,y:r},h=Tr(i),m=Ir(h),g=await o.getDimensions(s),x=h==="y",y=x?"top":"left",S=x?"bottom":"right",v=x?"clientHeight":"clientWidth",A=l.reference[m]+l.reference[h]-p[h]-l.floating[m],I=p[h]-l.reference[h],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s));let P=k?k[v]:0;(!P||!await(o.isElement==null?void 0:o.isElement(k)))&&(P=a.floating[v]||l.floating[m]);const E=A/2-I/2,_=P/2-g[m]/2-1,w=$e(c[y],_),z=$e(c[S],_),O=w,V=P-g[m]-z,D=P/2-g[m]/2+E,R=nr(O,D,V),N=!u.arrow&&yt(i)!=null&&D!==R&&l.reference[m]/2-(D<O?w:z)-g[m]/2<0,U=N?D<O?D-O:D-V:0;return{[h]:p[h]+U,data:{[h]:R,centerOffset:D-R-U,...N&&{alignmentOffset:U}},reset:N}}}),yd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:o,initialPlacement:a,platform:u,elements:s}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=_e(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(i),S=Te(a),v=Ne(a)===a,A=await(u.isRTL==null?void 0:u.isRTL(s.floating)),I=p||(v||!g?[on(a)]:ad(a)),k=m!=="none";!p&&k&&I.push(...fd(a,g,m,A));const P=[a,...I],E=await u.detectOverflow(t,x),_=[];let w=((r=l.flip)==null?void 0:r.overflows)||[];if(f&&_.push(E[y]),c){const D=ld(i,o,A);_.push(E[D[0]],E[D[1]])}if(w=[...w,{placement:i,overflows:_}],!_.every(D=>D<=0)){var z,O;const D=(((z=l.flip)==null?void 0:z.index)||0)+1,R=P[D];if(R&&(!(c==="alignment"?S!==Te(R):!1)||w.every($=>Te($.placement)===S?$.overflows[0]>0:!0)))return{data:{index:D,overflows:w},reset:{placement:R}};let N=(O=w.filter(U=>U.overflows[0]<=0).sort((U,$)=>U.overflows[1]-$.overflows[1])[0])==null?void 0:O.placement;if(!N)switch(h){case"bestFit":{var V;const U=(V=w.filter($=>{if(k){const K=Te($.placement);return K===S||K==="y"}return!0}).map($=>[$.placement,$.overflows.filter(K=>K>0).reduce((K,d)=>K+d,0)]).sort(($,K)=>$[1]-K[1])[0])==null?void 0:V[0];U&&(N=U);break}case"initialPlacement":N=a;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function _i(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ni(e){return id.some(t=>e[t]>=0)}const bd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...l}=_e(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...l,elementContext:"reference"}),a=_i(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ni(a)}}}case"escaped":{const o=await r.detectOverflow(t,{...l,altBoundary:!0}),a=_i(o,n.floating);return{data:{escapedOffsets:a,escaped:Ni(a)}}}default:return{}}}}},bl=new Set(["left","top"]);async function xd(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ne(n),a=yt(n),u=Te(n)==="y",s=bl.has(o)?-1:1,f=l&&u?-1:1,c=_e(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),u?{x:h*f,y:p*s}:{x:p*s,y:h*f}}const kd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:o,middlewareData:a}=t,u=await xd(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:l+u.y,data:{...u,placement:o}}}}},wd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:l}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:y=>{let{x:S,y:v}=y;return{x:S,y:v}}},...s}=_e(e,t),f={x:n,y:r},c=await l.detectOverflow(t,s),p=Te(Ne(i)),h=Ar(p);let m=f[h],g=f[p];if(o){const y=h==="y"?"top":"left",S=h==="y"?"bottom":"right",v=m+c[y],A=m-c[S];m=nr(v,m,A)}if(a){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",v=g+c[y],A=g-c[S];g=nr(v,g,A)}const x=u.fn({...t,[h]:m,[p]:g});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:o,[p]:a}}}}}},vd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:o}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=_e(e,t),f={x:n,y:r},c=Te(i),p=Ar(c);let h=f[p],m=f[c];const g=_e(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const v=p==="y"?"height":"width",A=l.reference[p]-l.floating[v]+x.mainAxis,I=l.reference[p]+l.reference[v]-x.mainAxis;h<A?h=A:h>I&&(h=I)}if(s){var y,S;const v=p==="y"?"width":"height",A=bl.has(Ne(i)),I=l.reference[c]-l.floating[v]+(A&&((y=o.offset)==null?void 0:y[c])||0)+(A?0:x.crossAxis),k=l.reference[c]+l.reference[v]+(A?0:((S=o.offset)==null?void 0:S[c])||0)-(A?x.crossAxis:0);m<I?m=I:m>k&&(m=k)}return{[p]:h,[c]:m}}}},Sd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:o,elements:a}=t,{apply:u=()=>{},...s}=_e(e,t),f=await o.detectOverflow(t,s),c=Ne(i),p=yt(i),h=Te(i)==="y",{width:m,height:g}=l.floating;let x,y;c==="top"||c==="bottom"?(x=c,y=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,x=p==="end"?"top":"bottom");const S=g-f.top-f.bottom,v=m-f.left-f.right,A=$e(g-f[x],S),I=$e(m-f[y],v),k=!t.middlewareData.shift;let P=A,E=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=S),k&&!p){const w=de(f.left,0),z=de(f.right,0),O=de(f.top,0),V=de(f.bottom,0);h?E=m-2*(w!==0||z!==0?w+z:de(f.left,f.right)):P=g-2*(O!==0||V!==0?O+V:de(f.top,f.bottom))}await u({...t,availableWidth:E,availableHeight:P});const _=await o.getDimensions(a.floating);return m!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function pn(){return typeof window<"u"}function bt(e){return xl(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(xl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xl(e){return pn()?e instanceof Node||e instanceof ge(e).Node:!1}function ve(e){return pn()?e instanceof Element||e instanceof ge(e).Element:!1}function je(e){return pn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function Bi(e){return!pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Ft(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Cd(e){return/^(table|td|th)$/.test(bt(e))}function dn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ed=/transform|translate|scale|rotate|perspective|filter/,Ad=/paint|layout|strict|content/,Qe=e=>!!e&&e!=="none";let _n;function Rr(e){const t=ve(e)?Se(e):e;return Qe(t.transform)||Qe(t.translate)||Qe(t.scale)||Qe(t.rotate)||Qe(t.perspective)||!Pr()&&(Qe(t.backdropFilter)||Qe(t.filter))||Ed.test(t.willChange||"")||Ad.test(t.contain||"")}function Id(e){let t=We(e);for(;je(t)&&!dt(t);){if(Rr(t))return t;if(dn(t))return null;t=We(t)}return null}function Pr(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function dt(e){return/^(html|body|#document)$/.test(bt(e))}function Se(e){return ge(e).getComputedStyle(e)}function mn(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bi(e)&&e.host||ze(e);return Bi(t)?t.host:t}function kl(e){const t=We(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:je(t)&&Ft(t)?t:kl(t)}function Lt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=kl(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),o=ge(i);if(l){const a=ir(o);return t.concat(o,o.visualViewport||[],Ft(i)?i:[],a&&n?Lt(a):[])}else return t.concat(i,Lt(i,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wl(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=je(e),l=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=rn(n)!==l||rn(r)!==o;return a&&(n=l,r=o),{width:n,height:r,$:a}}function zr(e){return ve(e)?e:e.contextElement}function ft(e){const t=zr(e);if(!je(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=wl(t);let o=(l?rn(n.width):n.width)/r,a=(l?rn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Td=Re(0);function vl(e){const t=ge(e);return!Pr()||!t.visualViewport?Td:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function et(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=zr(e);let o=Re(1);t&&(r?ve(r)&&(o=ft(r)):o=ft(e));const a=Rd(l,n,r)?vl(l):Re(0);let u=(i.left+a.x)/o.x,s=(i.top+a.y)/o.y,f=i.width/o.x,c=i.height/o.y;if(l){const p=ge(l),h=r&&ve(r)?ge(r):r;let m=p,g=ir(m);for(;g&&r&&h!==m;){const x=ft(g),y=g.getBoundingClientRect(),S=Se(g),v=y.left+(g.clientLeft+parseFloat(S.paddingLeft))*x.x,A=y.top+(g.clientTop+parseFloat(S.paddingTop))*x.y;u*=x.x,s*=x.y,f*=x.x,c*=x.y,u+=v,s+=A,m=ge(g),g=ir(m)}}return ln({width:f,height:c,x:u,y:s})}function gn(e,t){const n=mn(e).scrollLeft;return t?t.left+n:et(ze(e)).left+n}function Sl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-gn(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Pd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",o=ze(r),a=t?dn(t.floating):!1;if(r===o||a&&l)return n;let u={scrollLeft:0,scrollTop:0},s=Re(1);const f=Re(0),c=je(r);if((c||!c&&!l)&&((bt(r)!=="body"||Ft(o))&&(u=mn(r)),c)){const h=et(r);s=ft(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=o&&!c&&!l?Sl(o,u):Re(0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-u.scrollTop*s.y+f.y+p.y}}function zd(e){return Array.from(e.getClientRects())}function Ld(e){const t=ze(e),n=mn(e),r=e.ownerDocument.body,i=de(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=de(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+gn(e);const a=-n.scrollTop;return Se(r).direction==="rtl"&&(o+=de(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:o,y:a}}const ji=25;function Od(e,t){const n=ge(e),r=ze(e),i=n.visualViewport;let l=r.clientWidth,o=r.clientHeight,a=0,u=0;if(i){l=i.width,o=i.height;const f=Pr();(!f||f&&t==="fixed")&&(a=i.offsetLeft,u=i.offsetTop)}const s=gn(r);if(s<=0){const f=r.ownerDocument,c=f.body,p=getComputedStyle(c),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-h);m<=ji&&(l-=m)}else s<=ji&&(l+=s);return{width:l,height:o,x:a,y:u}}function Dd(e,t){const n=et(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=je(e)?ft(e):Re(1),o=e.clientWidth*l.x,a=e.clientHeight*l.y,u=i*l.x,s=r*l.y;return{width:o,height:a,x:u,y:s}}function Vi(e,t,n){let r;if(t==="viewport")r=Od(e,n);else if(t==="document")r=Ld(ze(e));else if(ve(t))r=Dd(t,n);else{const i=vl(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ln(r)}function Cl(e,t){const n=We(e);return n===t||!ve(n)||dt(n)?!1:Se(n).position==="fixed"||Cl(n,t)}function Md(e,t){const n=t.get(e);if(n)return n;let r=Lt(e,[],!1).filter(a=>ve(a)&&bt(a)!=="body"),i=null;const l=Se(e).position==="fixed";let o=l?We(e):e;for(;ve(o)&&!dt(o);){const a=Se(o),u=Rr(o);!u&&a.position==="fixed"&&(i=null),(l?!u&&!i:!u&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ft(o)&&!u&&Cl(e,o))?r=r.filter(f=>f!==o):i=a,o=We(o)}return t.set(e,r),r}function Fd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?dn(t)?[]:Md(t,this._c):[].concat(n),r],a=Vi(t,o[0],i);let u=a.top,s=a.right,f=a.bottom,c=a.left;for(let p=1;p<o.length;p++){const h=Vi(t,o[p],i);u=de(h.top,u),s=$e(h.right,s),f=$e(h.bottom,f),c=de(h.left,c)}return{width:s-c,height:f-u,x:c,y:u}}function _d(e){const{width:t,height:n}=wl(e);return{width:t,height:n}}function Nd(e,t,n){const r=je(t),i=ze(t),l=n==="fixed",o=et(e,!0,l,t);let a={scrollLeft:0,scrollTop:0};const u=Re(0);function s(){u.x=gn(i)}if(r||!r&&!l)if((bt(t)!=="body"||Ft(i))&&(a=mn(t)),r){const h=et(t,!0,l,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else i&&s();l&&!r&&i&&s();const f=i&&!r&&!l?Sl(i,a):Re(0),c=o.left+a.scrollLeft-u.x-f.x,p=o.top+a.scrollTop-u.y-f.y;return{x:c,y:p,width:o.width,height:o.height}}function Nn(e){return Se(e).position==="static"}function Hi(e,t){if(!je(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ze(e)===n&&(n=n.ownerDocument.body),n}function El(e,t){const n=ge(e);if(dn(e))return n;if(!je(e)){let i=We(e);for(;i&&!dt(i);){if(ve(i)&&!Nn(i))return i;i=We(i)}return n}let r=Hi(e,t);for(;r&&Cd(r)&&Nn(r);)r=Hi(r,t);return r&&dt(r)&&Nn(r)&&!Rr(r)?n:r||Id(e)||n}const Bd=async function(e){const t=this.getOffsetParent||El,n=this.getDimensions,r=await n(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jd(e){return Se(e).direction==="rtl"}const Vd={convertOffsetParentRelativeRectToViewportRelativeRect:Pd,getDocumentElement:ze,getClippingRect:Fd,getOffsetParent:El,getElementRects:Bd,getClientRects:zd,getDimensions:_d,getScale:ft,isElement:ve,isRTL:jd};function Al(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hd(e,t){let n=null,r;const i=ze(e);function l(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),l();const s=e.getBoundingClientRect(),{left:f,top:c,width:p,height:h}=s;if(a||t(),!p||!h)return;const m=$t(c),g=$t(i.clientWidth-(f+p)),x=$t(i.clientHeight-(c+h)),y=$t(f),v={rootMargin:-m+"px "+-g+"px "+-x+"px "+-y+"px",threshold:de(0,$e(1,u))||1};let A=!0;function I(k){const P=k[0].intersectionRatio;if(P!==u){if(!A)return o();P?o(!1,P):r=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!Al(s,e.getBoundingClientRect())&&o(),A=!1}try{n=new IntersectionObserver(I,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,v)}n.observe(e)}return o(!0),l}function Wm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=zr(e),f=i||l?[...s?Lt(s):[],...t?Lt(t):[]]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const c=s&&a?Hd(s,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(y=>{let[S]=y;S&&S.target===s&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),s&&!u&&h.observe(s),t&&h.observe(t));let m,g=u?et(e):null;u&&x();function x(){const y=et(e);g&&!Al(g,y)&&n(),g=y,m=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(S=>{i&&S.removeEventListener("scroll",n),l&&S.removeEventListener("resize",n)}),c==null||c(),(y=h)==null||y.disconnect(),h=null,u&&cancelAnimationFrame(m)}}const $d=kd,Wd=wd,Ud=yd,qd=Sd,Gd=bd,$i=gd,Yd=vd,Xd=(e,t,n)=>{const r=new Map,i={platform:Vd,...n},l={...i.platform,_c:r};return md(e,t,{...i,platform:l})};var Qd=typeof document<"u",Kd=function(){},Xt=Qd?B.useLayoutEffect:Kd;function an(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!an(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!an(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Il(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wi(e,t){const n=Il(e);return Math.round(t*n)/n}function Bn(e){const t=B.useRef(e);return Xt(()=>{t.current=e}),t}function Um(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:o}={},transform:a=!0,whileElementsMounted:u,open:s}=e,[f,c]=B.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=B.useState(r);an(p,r)||h(r);const[m,g]=B.useState(null),[x,y]=B.useState(null),S=B.useCallback($=>{$!==k.current&&(k.current=$,g($))},[]),v=B.useCallback($=>{$!==P.current&&(P.current=$,y($))},[]),A=l||m,I=o||x,k=B.useRef(null),P=B.useRef(null),E=B.useRef(f),_=u!=null,w=Bn(u),z=Bn(i),O=Bn(s),V=B.useCallback(()=>{if(!k.current||!P.current)return;const $={placement:t,strategy:n,middleware:p};z.current&&($.platform=z.current),Xd(k.current,P.current,$).then(K=>{const d={...K,isPositioned:O.current!==!1};D.current&&!an(E.current,d)&&(E.current=d,Hl.flushSync(()=>{c(d)}))})},[p,t,n,z,O]);Xt(()=>{s===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,c($=>({...$,isPositioned:!1})))},[s]);const D=B.useRef(!1);Xt(()=>(D.current=!0,()=>{D.current=!1}),[]),Xt(()=>{if(A&&(k.current=A),I&&(P.current=I),A&&I){if(w.current)return w.current(A,I,V);V()}},[A,I,V,w,_]);const R=B.useMemo(()=>({reference:k,floating:P,setReference:S,setFloating:v}),[S,v]),N=B.useMemo(()=>({reference:A,floating:I}),[A,I]),U=B.useMemo(()=>{const $={position:n,left:0,top:0};if(!N.floating)return $;const K=Wi(N.floating,f.x),d=Wi(N.floating,f.y);return a?{...$,transform:"translate("+K+"px, "+d+"px)",...Il(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:d}},[n,a,N.floating,f.x,f.y]);return B.useMemo(()=>({...f,update:V,refs:R,elements:N,floatingStyles:U}),[f,V,R,N,U])}const Jd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?$i({element:r.current,padding:i}).fn(n):{}:r?$i({element:r,padding:i}).fn(n):{}}}},qm=(e,t)=>{const n=$d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gm=(e,t)=>{const n=Wd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ym=(e,t)=>({fn:Yd(e).fn,options:[e,t]}),Xm=(e,t)=>{const n=Ud(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qm=(e,t)=>{const n=qd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=(e,t)=>{const n=Gd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jm=(e,t)=>{const n=Jd(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Zd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Wt=new WeakMap,Ut={},jn=0,Tl=function(e){return e&&(e.host||Tl(e.parentNode))},em=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tm=function(e,t,n,r){var i=em(t,Array.isArray(e)?e:[e]);Ut[n]||(Ut[n]=new WeakMap);var l=Ut[n],o=[],a=new Set,u=new Set(i),s=function(c){!c||a.has(c)||(a.add(c),s(c.parentNode))};i.forEach(s);var f=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(p){if(a.has(p))f(p);else try{var h=p.getAttribute(r),m=h!==null&&h!=="false",g=(at.get(p)||0)+1,x=(l.get(p)||0)+1;at.set(p,g),l.set(p,x),o.push(p),g===1&&m&&Wt.set(p,!0),x===1&&p.setAttribute(n,"true"),m||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return f(t),a.clear(),jn++,function(){o.forEach(function(c){var p=at.get(c)-1,h=l.get(c)-1;at.set(c,p),l.set(c,h),p||(Wt.has(c)||c.removeAttribute(r),Wt.delete(c)),h||c.removeAttribute(n)}),jn--,jn||(at=new WeakMap,at=new WeakMap,Wt=new WeakMap,Ut={})}},Zm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Zd(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tm(r,i,n,"aria-hidden")):function(){return null}},Ie=function(){return Ie=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Ie.apply(this,arguments)};function Rl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nm(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Qt="right-scroll-bar-position",Kt="width-before-scroll-bar",rm="with-scroll-bars-hidden",im="--removed-body-scroll-bar-size";function Vn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function om(e,t){var n=B.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var lm=typeof window<"u"?B.useLayoutEffect:B.useEffect,Ui=new WeakMap;function am(e,t){var n=om(null,function(r){return e.forEach(function(i){return Vn(i,r)})});return lm(function(){var r=Ui.get(n);if(r){var i=new Set(r),l=new Set(e),o=n.current;i.forEach(function(a){l.has(a)||Vn(a,null)}),l.forEach(function(a){i.has(a)||Vn(a,o)})}Ui.set(n,e)},[e]),n}function sm(e){return e}function um(e,t){t===void 0&&(t=sm);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var o=t(l,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(l){for(r=!0;n.length;){var o=n;n=[],o.forEach(l)}n={push:function(a){return l(a)},filter:function(){return n}}},assignMedium:function(l){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(l),o=n}var u=function(){var f=o;o=[],f.forEach(l)},s=function(){return Promise.resolve().then(u)};s(),n={push:function(f){o.push(f),s()},filter:function(f){return o=o.filter(f),n}}}};return i}function cm(e){e===void 0&&(e={});var t=um(null);return t.options=Ie({async:!0,ssr:!1},e),t}var Pl=function(e){var t=e.sideCar,n=Rl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return B.createElement(r,Ie({},n))};Pl.isSideCarExport=!0;function fm(e,t){return e.useMedium(t),Pl}var zl=cm(),Hn=function(){},yn=B.forwardRef(function(e,t){var n=B.useRef(null),r=B.useState({onScrollCapture:Hn,onWheelCapture:Hn,onTouchMoveCapture:Hn}),i=r[0],l=r[1],o=e.forwardProps,a=e.children,u=e.className,s=e.removeScrollBar,f=e.enabled,c=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,x=e.allowPinchZoom,y=e.as,S=y===void 0?"div":y,v=e.gapMode,A=Rl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=p,k=am([n,t]),P=Ie(Ie({},A),i);return B.createElement(B.Fragment,null,f&&B.createElement(I,{sideCar:zl,removeScrollBar:s,shards:c,noRelative:h,noIsolation:m,inert:g,setCallbacks:l,allowPinchZoom:!!x,lockRef:n,gapMode:v}),o?B.cloneElement(B.Children.only(a),Ie(Ie({},P),{ref:k})):B.createElement(S,Ie({},P,{className:u,ref:k}),a))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yn.classNames={fullWidth:Kt,zeroRight:Qt};var hm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hm();return t&&e.setAttribute("nonce",t),e}function dm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pm())&&(dm(t,n),mm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ym=function(){var e=gm();return function(t,n){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ll=function(){var e=ym(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},bm={left:0,top:0,right:0,gap:0},$n=function(e){return parseInt(e||"",10)||0},xm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[$n(n),$n(r),$n(i)]},km=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bm;var t=xm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wm=Ll(),ht="data-scroll-locked",vm=function(e,t,n,r){var i=e.left,l=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
30
+ .`.concat(rm,` {
31
+ overflow: hidden `).concat(r,`;
32
+ padding-right: `).concat(a,"px ").concat(r,`;
33
+ }
34
+ body[`).concat(ht,`] {
35
+ overflow: hidden `).concat(r,`;
36
+ overscroll-behavior: contain;
37
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
38
+ padding-left: `.concat(i,`px;
39
+ padding-top: `).concat(l,`px;
40
+ padding-right: `).concat(o,`px;
41
+ margin-left:0;
42
+ margin-top:0;
43
+ margin-right: `).concat(a,"px ").concat(r,`;
44
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
45
+ }
46
+
47
+ .`).concat(Qt,` {
48
+ right: `).concat(a,"px ").concat(r,`;
49
+ }
50
+
51
+ .`).concat(Kt,` {
52
+ margin-right: `).concat(a,"px ").concat(r,`;
53
+ }
54
+
55
+ .`).concat(Qt," .").concat(Qt,` {
56
+ right: 0 `).concat(r,`;
57
+ }
58
+
59
+ .`).concat(Kt," .").concat(Kt,` {
60
+ margin-right: 0 `).concat(r,`;
61
+ }
62
+
63
+ body[`).concat(ht,`] {
64
+ `).concat(im,": ").concat(a,`px;
65
+ }
66
+ `)},qi=function(){var e=parseInt(document.body.getAttribute(ht)||"0",10);return isFinite(e)?e:0},Sm=function(){B.useEffect(function(){return document.body.setAttribute(ht,(qi()+1).toString()),function(){var e=qi()-1;e<=0?document.body.removeAttribute(ht):document.body.setAttribute(ht,e.toString())}},[])},Cm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Sm();var l=B.useMemo(function(){return km(i)},[i]);return B.createElement(wm,{styles:vm(l,!t,i,n?"":"!important")})},or=!1;if(typeof window<"u")try{var qt=Object.defineProperty({},"passive",{get:function(){return or=!0,!0}});window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch{or=!1}var st=or?{passive:!1}:!1,Em=function(e){return e.tagName==="TEXTAREA"},Ol=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Em(e)&&n[t]==="visible")},Am=function(e){return Ol(e,"overflowY")},Im=function(e){return Ol(e,"overflowX")},Gi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Dl(e,r);if(i){var l=Ml(e,r),o=l[1],a=l[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Dl=function(e,t){return e==="v"?Am(t):Im(t)},Ml=function(e,t){return e==="v"?Tm(t):Rm(t)},Pm=function(e,t){return e==="h"&&t==="rtl"?-1:1},zm=function(e,t,n,r,i){var l=Pm(e,window.getComputedStyle(t).direction),o=l*r,a=n.target,u=t.contains(a),s=!1,f=o>0,c=0,p=0;do{if(!a)break;var h=Ml(e,a),m=h[0],g=h[1],x=h[2],y=g-x-l*m;(m||y)&&Dl(e,a)&&(c+=y,p+=m);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&Math.abs(c)<1||!f&&Math.abs(p)<1)&&(s=!0),s},Gt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yi=function(e){return[e.deltaX,e.deltaY]},Xi=function(e){return e&&"current"in e?e.current:e},Lm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Om=function(e){return`
67
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
68
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
69
+ `)},Dm=0,ut=[];function Mm(e){var t=B.useRef([]),n=B.useRef([0,0]),r=B.useRef(),i=B.useState(Dm++)[0],l=B.useState(Ll)[0],o=B.useRef(e);B.useEffect(function(){o.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=nm([e.lockRef.current],(e.shards||[]).map(Xi),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=B.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var y=Gt(g),S=n.current,v="deltaX"in g?g.deltaX:S[0]-y[0],A="deltaY"in g?g.deltaY:S[1]-y[1],I,k=g.target,P=Math.abs(v)>Math.abs(A)?"h":"v";if("touches"in g&&P==="h"&&k.type==="range")return!1;var E=window.getSelection(),_=E&&E.anchorNode,w=_?_===k||_.contains(k):!1;if(w)return!1;var z=Gi(P,k);if(!z)return!0;if(z?I=P:(I=P==="v"?"h":"v",z=Gi(P,k)),!z)return!1;if(!r.current&&"changedTouches"in g&&(v||A)&&(r.current=I),!I)return!0;var O=r.current||I;return zm(O,x,g,O==="h"?v:A)},[]),u=B.useCallback(function(g){var x=g;if(!(!ut.length||ut[ut.length-1]!==l)){var y="deltaY"in x?Yi(x):Gt(x),S=t.current.filter(function(I){return I.name===x.type&&(I.target===x.target||x.target===I.shadowParent)&&Lm(I.delta,y)})[0];if(S&&S.should){x.cancelable&&x.preventDefault();return}if(!S){var v=(o.current.shards||[]).map(Xi).filter(Boolean).filter(function(I){return I.contains(x.target)}),A=v.length>0?a(x,v[0]):!o.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),s=B.useCallback(function(g,x,y,S){var v={name:g,delta:x,target:y,should:S,shadowParent:Fm(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(A){return A!==v})},1)},[]),f=B.useCallback(function(g){n.current=Gt(g),r.current=void 0},[]),c=B.useCallback(function(g){s(g.type,Yi(g),g.target,a(g,e.lockRef.current))},[]),p=B.useCallback(function(g){s(g.type,Gt(g),g.target,a(g,e.lockRef.current))},[]);B.useEffect(function(){return ut.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",u,st),document.addEventListener("touchmove",u,st),document.addEventListener("touchstart",f,st),function(){ut=ut.filter(function(g){return g!==l}),document.removeEventListener("wheel",u,st),document.removeEventListener("touchmove",u,st),document.removeEventListener("touchstart",f,st)}},[]);var h=e.removeScrollBar,m=e.inert;return B.createElement(B.Fragment,null,m?B.createElement(l,{styles:Om(i)}):null,h?B.createElement(Cm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Fm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _m=fm(zl,Mm);var Nm=B.forwardRef(function(e,t){return B.createElement(yn,Ie({},e,{ref:t,sideCar:_m}))});Nm.classNames=yn.classNames;export{jm as M,Nm as R,Qm as a,Jm as b,Wm as c,Zm as d,pp as e,Xm as f,Hm as g,Km as h,Ym as l,qm as o,Vm as r,Gm as s,$m as t,Um as u};