@polderlabs/bizar 7.0.1 → 7.0.4

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 (62) hide show
  1. package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js +114 -0
  2. package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js.map +1 -0
  3. package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js +1 -0
  4. package/bizar-dash/dist/assets/{MobileChat-BRFjer8p.js.map → MobileChat-DLWdv6tQ.js.map} +1 -1
  5. package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js +1 -0
  6. package/bizar-dash/dist/assets/{MobileSettings-Dw5jyJWi.js.map → MobileSettings-Bxv62uPY.js.map} +1 -1
  7. package/bizar-dash/dist/assets/Toast-ATSAmbdi.js +26 -0
  8. package/bizar-dash/dist/assets/Toast-ATSAmbdi.js.map +1 -0
  9. package/bizar-dash/dist/assets/main-CJAtrosO.css +1 -0
  10. package/bizar-dash/dist/assets/main-DKKj9dsq.js +430 -0
  11. package/bizar-dash/dist/assets/main-DKKj9dsq.js.map +1 -0
  12. package/bizar-dash/dist/assets/mobile-C_naUN91.js +1 -0
  13. package/bizar-dash/dist/assets/{mobile-DRZsK3ic.js.map → mobile-C_naUN91.js.map} +1 -1
  14. package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js +211 -0
  15. package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js.map +1 -0
  16. package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js +65 -0
  17. package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js.map +1 -0
  18. package/bizar-dash/dist/index.html +6 -12
  19. package/bizar-dash/dist/mobile.html +2 -7
  20. package/bizar-dash/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
  21. package/bizar-dash/src/web/components/SettingsNav.tsx +9 -4
  22. package/bizar-dash/src/web/components/Topbar.tsx +45 -0
  23. package/bizar-dash/src/web/styles/main.css +87 -89
  24. package/bizar-dash/src/web/styles/memory.css +30 -35
  25. package/bizar-dash/src/web/styles/settings.css +6 -26
  26. package/bizar-dash/src/web/ui/data/data.css +6 -1
  27. package/bizar-dash/src/web/ui/index.ts +1 -0
  28. package/bizar-dash/src/web/views/Memory.tsx +94 -62
  29. package/bizar-dash/src/web/views/Overview.tsx +2 -23
  30. package/bizar-dash/tests/settings-layout.test.tsx +2 -2
  31. package/bizar-dash/tests/settings-nav.test.tsx +6 -6
  32. package/cli/provision-claude.mjs +108 -5
  33. package/package.json +1 -1
  34. package/packages/sdk/.harness/agents.json +17 -0
  35. package/packages/sdk/.harness/topology.json +4 -0
  36. package/bizar-dash/dist/assets/EnvVarsSection-weVnLz3Z.js +0 -4
  37. package/bizar-dash/dist/assets/EnvVarsSection-weVnLz3Z.js.map +0 -1
  38. package/bizar-dash/dist/assets/MobileChat-BRFjer8p.js +0 -1
  39. package/bizar-dash/dist/assets/MobileSettings-Dw5jyJWi.js +0 -1
  40. package/bizar-dash/dist/assets/Toast-WTxc3m2g.js +0 -1
  41. package/bizar-dash/dist/assets/Toast-WTxc3m2g.js.map +0 -1
  42. package/bizar-dash/dist/assets/flow-BpU0-gK2.js +0 -1
  43. package/bizar-dash/dist/assets/flow-BpU0-gK2.js.map +0 -1
  44. package/bizar-dash/dist/assets/fuzzy-l0sNRNKZ.js +0 -1
  45. package/bizar-dash/dist/assets/fuzzy-l0sNRNKZ.js.map +0 -1
  46. package/bizar-dash/dist/assets/icons-B0AKnYI3.js +0 -731
  47. package/bizar-dash/dist/assets/icons-B0AKnYI3.js.map +0 -1
  48. package/bizar-dash/dist/assets/main-BE4Uh9im.css +0 -1
  49. package/bizar-dash/dist/assets/main-DqC58FEZ.js +0 -18
  50. package/bizar-dash/dist/assets/main-DqC58FEZ.js.map +0 -1
  51. package/bizar-dash/dist/assets/markdown-w2bDDkAH.js +0 -1
  52. package/bizar-dash/dist/assets/markdown-w2bDDkAH.js.map +0 -1
  53. package/bizar-dash/dist/assets/mobile-DRZsK3ic.js +0 -1
  54. package/bizar-dash/dist/assets/mobile-layout-Ckru3HKJ.js +0 -2
  55. package/bizar-dash/dist/assets/mobile-layout-Ckru3HKJ.js.map +0 -1
  56. package/bizar-dash/dist/assets/react-vendor-BnuhLJ6X.css +0 -1
  57. package/bizar-dash/dist/assets/react-vendor-D3pra6w-.js +0 -46
  58. package/bizar-dash/dist/assets/react-vendor-D3pra6w-.js.map +0 -1
  59. package/bizar-dash/dist/assets/useSlashCommands-BAxVOU_a.js +0 -2
  60. package/bizar-dash/dist/assets/useSlashCommands-BAxVOU_a.js.map +0 -1
  61. package/bizar-dash/dist/assets/vendor-Di7Cp-rw.js +0 -45
  62. package/bizar-dash/dist/assets/vendor-Di7Cp-rw.js.map +0 -1
@@ -1,45 +0,0 @@
1
- import{c as Ht,g as Qn,h as Lo,r as Bi,R as Ro}from"./react-vendor-D3pra6w-.js";function ky(){}function Mo(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const No=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Oo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bo={};function Ir(e,t){return(Bo.jsx?Oo:No).test(e)}const $o=/[ \t\n\f\r]/g;function Ho(e){return typeof e=="object"?e.type==="text"?Tr(e.value):!1:Tr(e)}function Tr(e){return e.replace($o,"")===""}class wt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}wt.prototype.normal={};wt.prototype.property={};wt.prototype.space=void 0;function $i(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new wt(n,r,t)}function zn(e){return e.toLowerCase()}class se{constructor(t,n){this.attribute=n,this.property=t}}se.prototype.attribute="";se.prototype.booleanish=!1;se.prototype.boolean=!1;se.prototype.commaOrSpaceSeparated=!1;se.prototype.commaSeparated=!1;se.prototype.defined=!1;se.prototype.mustUseProperty=!1;se.prototype.number=!1;se.prototype.overloadedBoolean=!1;se.prototype.property="";se.prototype.spaceSeparated=!1;se.prototype.space=void 0;let Vo=0;const B=je(),ee=je(),Pn=je(),I=je(),J=je(),$e=je(),fe=je();function je(){return 2**++Vo}const Dn=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:ee,commaOrSpaceSeparated:fe,commaSeparated:$e,number:I,overloadedBoolean:Pn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),fn=Object.keys(Dn);class Kn extends se{constructor(t,n,r,i){let o=-1;if(super(t,n),zr(this,"space",i),typeof r=="number")for(;++o<fn.length;){const l=fn[o];zr(this,fn[o],(r&Dn[l])===Dn[l])}}}Kn.prototype.defined=!0;function zr(e,t,n){n&&(e[t]=n)}function tt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Kn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[zn(r)]=r,n[zn(o.attribute)]=r}return new wt(t,n,e.space)}const Hi=tt({properties:{ariaActiveDescendant:null,ariaAtomic:ee,ariaAutoComplete:null,ariaBusy:ee,ariaChecked:ee,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ee,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ee,ariaFlowTo:J,ariaGrabbed:ee,ariaHasPopup:null,ariaHidden:ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:I,ariaLive:null,ariaModal:ee,ariaMultiLine:ee,ariaMultiSelectable:ee,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ee,ariaReadOnly:ee,ariaRelevant:null,ariaRequired:ee,ariaRoleDescription:J,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ee,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Vi(e,t){return t in e?e[t]:t}function qi(e,t){return Vi(e,t.toLowerCase())}const qo=tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$e,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alpha:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:J,autoFocus:B,autoPlay:B,blocking:J,capture:null,charSet:null,checked:B,cite:null,className:J,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:ee,controls:B,controlsList:J,coords:I|$e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:Pn,draggable:ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:J,height:I,hidden:Pn,high:I,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:J,itemRef:J,itemScope:B,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,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:B,optimum:I,pattern:null,ping:J,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:J,required:B,reversed:B,rows:I,rowSpan:I,sandbox:J,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootCustomElementRegistry:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shadowRootSerializable:B,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:ee,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ee,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:B,disablePictureInPicture:B,disableRemotePlayback:B,exportParts:$e,part:J,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:qi}),Uo=tt({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:fe,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:$e,g2:$e,glyphName:$e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:fe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fe,rev:fe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fe,requiredFeatures:fe,requiredFonts:fe,requiredFormats:fe,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:fe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fe,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vi}),Ui=tt({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()}}),ji=tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qi}),Wi=tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),jo=/[A-Z]/g,Pr=/-[a-z]/g,Wo=/^data[-\w.:]+$/i;function Xo(e,t){const n=zn(t);let r=t,i=se;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wo.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Pr,Go);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Pr.test(o)){let l=o.replace(jo,Yo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Kn}return new i(r,t)}function Yo(e){return"-"+e.toLowerCase()}function Go(e){return e.charAt(1).toUpperCase()}const Qo=$i([Hi,qo,Ui,ji,Wi],"html"),Jn=$i([Hi,Uo,Ui,ji,Wi],"svg");function Ko(e){return e.join(" ").trim()}var Zn={},Dr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Jo=/\n/g,Zo=/^\s*/,eu=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,tu=/^:\s*/,nu=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ru=/^[;\s]*/,iu=/^\s+|\s+$/g,lu=`
2
- `,Fr="/",Lr="*",Oe="",ou="comment",uu="declaration";function au(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var k=g.match(Jo);k&&(n+=k.length);var C=g.lastIndexOf(lu);r=~C?g.length-C:r+g.length}function o(){var g={line:n,column:r};return function(k){return k.position=new l(g),s(),k}}function l(g){this.start=g,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function u(g){var k=new Error(t.source+":"+n+":"+r+": "+g);if(k.reason=g,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function a(g){var k=g.exec(e);if(k){var C=k[0];return i(C),e=e.slice(C.length),k}}function s(){a(Zo)}function c(g){var k;for(g=g||[];k=f();)k!==!1&&g.push(k);return g}function f(){var g=o();if(!(Fr!=e.charAt(0)||Lr!=e.charAt(1))){for(var k=2;Oe!=e.charAt(k)&&(Lr!=e.charAt(k)||Fr!=e.charAt(k+1));)++k;if(k+=2,Oe===e.charAt(k-1))return u("End of comment missing");var C=e.slice(2,k-2);return r+=2,i(C),e=e.slice(k),r+=2,g({type:ou,comment:C})}}function p(){var g=o(),k=a(eu);if(k){if(f(),!a(tu))return u("property missing ':'");var C=a(nu),y=g({type:uu,property:Rr(k[0].replace(Dr,Oe)),value:C?Rr(C[0].replace(Dr,Oe)):Oe});return a(ru),y}}function h(){var g=[];c(g);for(var k;k=p();)k!==!1&&(g.push(k),c(g));return g}return s(),h()}function Rr(e){return e?e.replace(iu,Oe):Oe}var su=au,cu=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.default=hu;const fu=cu(su);function hu(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,fu.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:u}=o;i?t(l,u,o):u&&(n=n||{},n[l]=u)}),n}var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.camelCase=void 0;var pu=/^--[a-zA-Z0-9_-]+$/,mu=/-([a-z])/g,gu=/^[^-]+$/,du=/^-(webkit|moz|ms|o|khtml)-/,yu=/^-(ms)-/,xu=function(e){return!e||gu.test(e)||pu.test(e)},ku=function(e,t){return t.toUpperCase()},Mr=function(e,t){return"".concat(t,"-")},wu=function(e,t){return t===void 0&&(t={}),xu(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(yu,Mr):e=e.replace(du,Mr),e.replace(mu,ku))};Zt.camelCase=wu;var bu=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},vu=bu(Zn),_u=Zt;function Fn(e,t){var n={};return!e||typeof e!="string"||(0,vu.default)(e,function(r,i){r&&i&&(n[(0,_u.camelCase)(r,t)]=i)}),n}Fn.default=Fn;var Su=Fn;const Cu=Qn(Su),Xi=Yi("end"),er=Yi("start");function Yi(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 Eu(e){const t=er(e),n=Xi(e);if(t&&n)return{start:t,end:n}}function ft(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Nr(e.position):"start"in e||"end"in e?Nr(e):"line"in e||"column"in e?Ln(e):""}function Ln(e){return Or(e&&e.line)+":"+Or(e&&e.column)}function Nr(e){return Ln(e&&e.start)+"-"+Ln(e&&e.end)}function Or(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="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=ft(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.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 tr={}.hasOwnProperty,Au=new Map,Iu=/[A-Z]/g,Tu=new Set(["table","tbody","thead","tfoot","tr"]),zu=new Set(["td","th"]),Gi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wy(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=Ou(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=Nu(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"?Jn:Qo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Qi(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Qi(e,t,n){if(t.type==="element")return Pu(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Du(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Lu(e,t,n);if(t.type==="mdxjsEsm")return Fu(e,t);if(t.type==="root")return Ru(e,t,n);if(t.type==="text")return Mu(e,t)}function Pu(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=Ji(e,t.tagName,!1),l=Bu(e,t);let u=rr(e,t);return Tu.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!Ho(a):!0})),Ki(e,l,o,t),nr(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Du(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)}mt(e,t.position)}function Fu(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);mt(e,t.position)}function Lu(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Ji(e,t.name,!0),l=$u(e,t),u=rr(e,t);return Ki(e,l,o,t),nr(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ru(e,t,n){const r={};return nr(r,rr(e,t)),e.create(t,e.Fragment,r,n)}function Mu(e,t){return t.value}function Ki(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Nu(e,t,n){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?n:t;return u?s(o,l,u):s(o,l)}}function Ou(e,t){return n;function n(r,i,o,l){const u=Array.isArray(o.children),a=er(r);return t(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Bu(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&tr.call(t.properties,i)){const o=Hu(e,i,t.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&zu.has(t.tagName)?r=u:n[l]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function $u(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else mt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else mt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function rr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Au;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=Qi(e,o,l);u!==void 0&&n.push(u)}return n}function Hu(e,t,n){const r=Xo(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Mo(n):Ko(n)),r.property==="style"){let i=typeof n=="object"?n:Vu(e,String(n));return e.stylePropertyNameCase==="css"&&(i=qu(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Lo[r.property]||r.property:r.attribute,n]}}function Vu(e,t){try{return Cu(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=Gi+"#cannot-parse-style-attribute",i}}function Ji(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const u=Ir(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=Ir(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return tr.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);mt(e)}function mt(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=Gi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function qu(e){const t={};let n;for(n in e)tr.call(e,n)&&(t[Uu(n)]=e[n]);return t}function Uu(e){let t=e.replace(Iu,ju);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ju(e){return"-"+e.toLowerCase()}const by={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"]},Wu={};function ir(e,t){const n=Wu,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Zi(e,r,i)}function Zi(e,t,n){if(Xu(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 Br(e.children,t,n)}return Array.isArray(e)?Br(e,t,n):""}function Br(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Zi(e[i],t,n);return r.join("")}function Xu(e){return!!(e&&typeof e=="object")}const $r=document.createElement("i");function lr(e){const t="&"+e+";";$r.innerHTML=t;const n=$r.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function he(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function me(e,t){return e.length>0?(he(e,e.length,0,t),e):t}const Hr={}.hasOwnProperty;function el(e){const t={};let n=-1;for(;++n<e.length;)Yu(t,e[n]);return t}function Yu(e,t){let n;for(n in t){const i=(Hr.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Hr.call(i,l)||(i[l]=[]);const u=o[l];Gu(i[l],Array.isArray(u)?u:u?[u]:[])}}}function Gu(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);he(e,0,0,r)}function tl(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 ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const oe=Le(/[A-Za-z]/),ie=Le(/[\dA-Za-z]/),Qu=Le(/[#-'*+\--9=?A-Z^-~]/);function Vt(e){return e!==null&&(e<32||e===127)}const Rn=Le(/\d/),Ku=Le(/[\dA-Fa-f]/),Ju=Le(/[!-/:-@[-`{-~]/);function N(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const en=Le(new RegExp("\\p{P}|\\p{S}","u")),Ve=Le(/\s/);function Le(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&ie(e.charCodeAt(n+1))&&ie(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function W(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return U(a)?(e.enter(n),u(a)):t(a)}function u(a){return U(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const Zu={tokenize:ea};function ea(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),W(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return N(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const ta={tokenize:na},Vr={tokenize:ra};function na(e){const t=this,n=[];let r=0,i,o,l;return u;function u(E){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,a,s)(E)}return s(E)}function a(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const _=t.events.length;let D=_,w;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){w=t.events[D][1].end;break}y(r);let L=_;for(;L<t.events.length;)t.events[L][1].end={...w},L++;return he(t.events,D+1,0,t.events.slice(_)),t.events.length=L,s(E)}return u(E)}function s(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return g(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vr,c,f)(E)}function c(E){return i&&T(),y(r),p(E)}function f(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(E)}function p(E){return t.containerState={},e.attempt(Vr,h,g)(E)}function h(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function g(E){if(E===null){i&&T(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(E)}function k(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return N(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),k)}function C(E,_){const D=t.sliceStream(E);if(_&&D.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(D),t.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const L=t.events.length;let $=L,H,b;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(H){b=t.events[$][1].end;break}H=!0}for(y(r),w=L;w<t.events.length;)t.events[w][1].end={...b},w++;he(t.events,$+1,0,t.events.slice(L)),t.events.length=w}}function y(E){let _=n.length;for(;_-- >E;){const D=n[_];t.containerState=D[1],D[0].exit.call(t,e)}n.length=E}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ra(e,t,n){return W(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ke(e){if(e===null||Z(e)||Ve(e))return 1;if(en(e))return 2}function tn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Mn={name:"attention",resolveAll:ia,tokenize:la};function ia(e,t){let n=-1,r,i,o,l,u,a,s,c;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;a=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 f={...e[r][1].end},p={...e[n][1].start};qr(f,-a),qr(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=me(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=me(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=me(s,tn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=me(s,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,s=me(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,he(e,r-1,n-r+3,s),n=r+s.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function la(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ke(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),c=Ke(a),f=!c||c===2&&i||n.includes(a),p=!i||i===2&&c||n.includes(r);return s._open=!!(o===42?f:f&&(i||!p)),s._close=!!(o===42?p:p&&(c||!f)),t(a)}}function qr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oa={name:"autolink",tokenize:ua};function ua(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"),o}function o(h){return oe(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||ie(h)?(r=1,u(h)):s(h)}function u(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||ie(h))&&r++<32?(e.consume(h),u):(r=0,s(h))}function a(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||Vt(h)?n(h):(e.consume(h),a)}function s(h){return h===64?(e.consume(h),c):Qu(h)?(e.consume(h),s):n(h)}function c(h){return ie(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):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||ie(h))&&r++<63){const g=h===45?p:f;return e.consume(h),g}return n(h)}}const bt={partial:!0,tokenize:aa};function aa(e,t,n){return r;function r(o){return U(o)?W(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||N(o)?t(o):n(o)}}const nl={continuation:{tokenize:ca},exit:fa,name:"blockQuote",tokenize:sa};function sa(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return U(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function ca(e,t,n){const r=this;return i;function i(l){return U(l)?W(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(nl,t,n)(l)}}function fa(e){e.exit("blockQuote")}const rl={name:"characterEscape",tokenize:ha};function ha(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ju(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const il={name:"characterReference",tokenize:pa};function pa(e,t,n){const r=this;let i=0,o,l;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=ie,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Ku,c):(e.enter("characterReferenceValue"),o=7,l=Rn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return l===ie&&!lr(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(f)&&i++<o?(e.consume(f),c):n(f)}}const Ur={partial:!0,tokenize:ga},jr={concrete:!0,name:"codeFenced",tokenize:ma};function ma(e,t,n){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,u;return a;function a(w){return s(w)}function s(w){const L=r.events[r.events.length-1];return o=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(l++,e.consume(w),c):l<3?n(w):(e.exit("codeFencedFenceSequence"),U(w)?W(e,f,"whitespace")(w):f(w))}function f(w){return w===null||N(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Ur,k,_)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||N(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,h,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),p)}function h(w){return w===null||N(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||N(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===u?n(w):(e.consume(w),g)}function k(w){return e.attempt(i,_,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&U(w)?W(e,T,"linePrefix",o+1)(w):T(w)}function T(w){return w===null||N(w)?e.check(Ur,k,_)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||N(w)?(e.exit("codeFlowValue"),T(w)):(e.consume(w),E)}function _(w){return e.exit("codeFenced"),t(w)}function D(w,L,$){let H=0;return b;function b(A){return w.enter("lineEnding"),w.consume(A),w.exit("lineEnding"),F}function F(A){return w.enter("codeFencedFence"),U(A)?W(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):R(A)}function R(A){return A===u?(w.enter("codeFencedFenceSequence"),X(A)):$(A)}function X(A){return A===u?(H++,w.consume(A),X):H>=l?(w.exit("codeFencedFenceSequence"),U(A)?W(w,x,"whitespace")(A):x(A)):$(A)}function x(A){return A===null||N(A)?(w.exit("codeFencedFence"),L(A)):$(A)}}}function ga(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const hn={name:"codeIndented",tokenize:ya},da={partial:!0,tokenize:xa};function ya(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),W(e,o,"linePrefix",5)(s)}function o(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?a(s):N(s)?e.attempt(da,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||N(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function xa(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):N(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):W(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):N(l)?i(l):n(l)}}const ka={name:"codeText",previous:ba,resolve:wa,tokenize:va};function wa(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 ba(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function va(e,t,n){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):N(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||N(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),s)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",s(f))}}class _a{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 o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&lt(this.left,r),o.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),lt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),lt(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);lt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);lt(this.left,n.reverse())}}}function lt(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 ll(e){const t={};let n=-1,r,i,o,l,u,a,s;const c=new _a(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Sa(c,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return he(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function Sa(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,a=[],s={};let c,f,p=-1,h=n,g=0,k=0;const C=[k];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(k=p+1,C.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=u.slice(C[p],C[p+1]),T=o.pop();a.push([T,T+y.length-1]),e.splice(T,2,y)}for(a.reverse(),p=-1;++p<a.length;)s[g+a[p][0]]=g+a[p][1],g+=a[p][1]-a[p][0]-1;return s}const Ca={resolve:Aa,tokenize:Ia},Ea={partial:!0,tokenize:Ta};function Aa(e){return ll(e),e}function Ia(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):N(u)?e.check(Ea,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Ta(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),W(e,o,"linePrefix")}function o(l){if(l===null||N(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function ol(e,t,n,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||Vt(y)?n(y):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||N(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function k(y){return!c&&(y===null||y===41||Z(y))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(y)):c<s&&y===40?(e.consume(y),c++,k):y===41?(e.consume(y),c--,k):y===null||y===32||y===40||Vt(y)?n(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function ul(e,t,n,r,i,o){const l=this;let u=0,a;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return u>999||h===null||h===91||h===93&&!a||h===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):N(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||N(h)||u++>999?(e.exit("chunkString"),c(h)):(e.consume(h),a||(a=!U(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,f):f(h)}}function al(e,t,n,r,i,o){let l;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,a):n(p)}function a(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),a(l)):p===null?n(p):N(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),W(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===l||p===null||N(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?f:c)}function f(p){return p===l||p===92?(e.consume(p),c):c(p)}}function ht(e,t){let n;return r;function r(i){return N(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):U(i)?W(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const za={name:"definition",tokenize:Da},Pa={partial:!0,tokenize:Fa};function Da(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return ul.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Z(h)?ht(e,s)(h):s(h)}function s(h){return ol(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Pa,f,f)(h)}function f(h){return U(h)?W(e,p,"whitespace")(h):p(h)}function p(h){return h===null||N(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Fa(e,t,n){return r;function r(u){return Z(u)?ht(e,i)(u):n(u)}function i(u){return al(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return U(u)?W(e,l,"whitespace")(u):l(u)}function l(u){return u===null||N(u)?t(u):n(u)}}const La={name:"hardBreakEscape",tokenize:Ra};function Ra(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return N(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ma={name:"headingAtx",resolve:Na,tokenize:Oa};function Na(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},he(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Oa(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||Z(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||N(c)?(e.exit("atxHeading"),t(c)):U(c)?W(e,u,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function s(c){return c===null||c===35||Z(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),s)}}const Ba=["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"],Wr=["pre","script","style","textarea"],$a={concrete:!0,name:"htmlFlow",resolveTo:qa,tokenize:Ua},Ha={partial:!0,tokenize:Wa},Va={partial:!0,tokenize:ja};function qa(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 Ua(e,t,n){const r=this;let i,o,l,u,a;return s;function s(d){return c(d)}function c(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),f}function f(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,k):d===63?(e.consume(d),i=3,r.interrupt?t:m):oe(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,u=0,g):oe(d)?(e.consume(d),i=4,r.interrupt?t:m):n(d)}function h(d){return d===45?(e.consume(d),r.interrupt?t:m):n(d)}function g(d){const G="CDATA[";return d===G.charCodeAt(u++)?(e.consume(d),u===G.length?r.interrupt?t:R:g):n(d)}function k(d){return oe(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function C(d){if(d===null||d===47||d===62||Z(d)){const G=d===47,te=l.toLowerCase();return!G&&!o&&Wr.includes(te)?(i=1,r.interrupt?t(d):R(d)):Ba.includes(l.toLowerCase())?(i=6,G?(e.consume(d),y):r.interrupt?t(d):R(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):o?T(d):E(d))}return d===45||ie(d)?(e.consume(d),l+=String.fromCharCode(d),C):n(d)}function y(d){return d===62?(e.consume(d),r.interrupt?t:R):n(d)}function T(d){return U(d)?(e.consume(d),T):b(d)}function E(d){return d===47?(e.consume(d),b):d===58||d===95||oe(d)?(e.consume(d),_):U(d)?(e.consume(d),E):b(d)}function _(d){return d===45||d===46||d===58||d===95||ie(d)?(e.consume(d),_):D(d)}function D(d){return d===61?(e.consume(d),w):U(d)?(e.consume(d),D):E(d)}function w(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),a=d,L):U(d)?(e.consume(d),w):$(d)}function L(d){return d===a?(e.consume(d),a=null,H):d===null||N(d)?n(d):(e.consume(d),L)}function $(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||Z(d)?D(d):(e.consume(d),$)}function H(d){return d===47||d===62||U(d)?E(d):n(d)}function b(d){return d===62?(e.consume(d),F):n(d)}function F(d){return d===null||N(d)?R(d):U(d)?(e.consume(d),F):n(d)}function R(d){return d===45&&i===2?(e.consume(d),S):d===60&&i===1?(e.consume(d),P):d===62&&i===4?(e.consume(d),q):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),O):N(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ha,Y,X)(d)):d===null||N(d)?(e.exit("htmlFlowData"),X(d)):(e.consume(d),R)}function X(d){return e.check(Va,x,Y)(d)}function x(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),A}function A(d){return d===null||N(d)?X(d):(e.enter("htmlFlowData"),R(d))}function S(d){return d===45?(e.consume(d),m):R(d)}function P(d){return d===47?(e.consume(d),l="",M):R(d)}function M(d){if(d===62){const G=l.toLowerCase();return Wr.includes(G)?(e.consume(d),q):R(d)}return oe(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),M):R(d)}function O(d){return d===93?(e.consume(d),m):R(d)}function m(d){return d===62?(e.consume(d),q):d===45&&i===2?(e.consume(d),m):R(d)}function q(d){return d===null||N(d)?(e.exit("htmlFlowData"),Y(d)):(e.consume(d),q)}function Y(d){return e.exit("htmlFlow"),t(d)}}function ja(e,t,n){const r=this;return i;function i(l){return N(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Wa(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(bt,t,n)}}const Xa={name:"htmlText",tokenize:Ya};function Ya(e,t,n){const r=this;let i,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),D):m===63?(e.consume(m),E):oe(m)?(e.consume(m),$):n(m)}function s(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),o=0,g):oe(m)?(e.consume(m),T):n(m)}function c(m){return m===45?(e.consume(m),h):n(m)}function f(m){return m===null?n(m):m===45?(e.consume(m),p):N(m)?(l=f,P(m)):(e.consume(m),f)}function p(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?S(m):m===45?p(m):f(m)}function g(m){const q="CDATA[";return m===q.charCodeAt(o++)?(e.consume(m),o===q.length?k:g):n(m)}function k(m){return m===null?n(m):m===93?(e.consume(m),C):N(m)?(l=k,P(m)):(e.consume(m),k)}function C(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?S(m):m===93?(e.consume(m),y):k(m)}function T(m){return m===null||m===62?S(m):N(m)?(l=T,P(m)):(e.consume(m),T)}function E(m){return m===null?n(m):m===63?(e.consume(m),_):N(m)?(l=E,P(m)):(e.consume(m),E)}function _(m){return m===62?S(m):E(m)}function D(m){return oe(m)?(e.consume(m),w):n(m)}function w(m){return m===45||ie(m)?(e.consume(m),w):L(m)}function L(m){return N(m)?(l=L,P(m)):U(m)?(e.consume(m),L):S(m)}function $(m){return m===45||ie(m)?(e.consume(m),$):m===47||m===62||Z(m)?H(m):n(m)}function H(m){return m===47?(e.consume(m),S):m===58||m===95||oe(m)?(e.consume(m),b):N(m)?(l=H,P(m)):U(m)?(e.consume(m),H):S(m)}function b(m){return m===45||m===46||m===58||m===95||ie(m)?(e.consume(m),b):F(m)}function F(m){return m===61?(e.consume(m),R):N(m)?(l=F,P(m)):U(m)?(e.consume(m),F):H(m)}function R(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,X):N(m)?(l=R,P(m)):U(m)?(e.consume(m),R):(e.consume(m),x)}function X(m){return m===i?(e.consume(m),i=void 0,A):m===null?n(m):N(m)?(l=X,P(m)):(e.consume(m),X)}function x(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Z(m)?H(m):(e.consume(m),x)}function A(m){return m===47||m===62||Z(m)?H(m):n(m)}function S(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function P(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),M}function M(m){return U(m)?W(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):O(m)}function O(m){return e.enter("htmlTextData"),l(m)}}const or={name:"labelEnd",resolveAll:Ja,resolveTo:Za,tokenize:es},Ga={tokenize:ts},Qa={tokenize:ns},Ka={tokenize:rs};function Ja(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&&he(e,0,e.length,n),e}function Za(e,t){let n=e.length,r=0,i,o,l,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,t],["enter",s,t]],u=me(u,e.slice(o+1,o+r+3)),u=me(u,[["enter",c,t]]),u=me(u,tn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),u=me(u,[["exit",c,t],e[l-2],e[l-1],["exit",s,t]]),u=me(u,e.slice(l+1)),u=me(u,[["exit",a,t]]),he(e,o,e.length,u),e}function es(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(p){return o?o._inactive?f(p):(l=r.parser.defined.includes(ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(Ga,c,l?c:f)(p):p===91?e.attempt(Qa,c,l?s:f)(p):l?c(p):f(p)}function s(p){return e.attempt(Ka,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,n(p)}}function ts(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Z(f)?ht(e,o)(f):o(f)}function o(f){return f===41?c(f):ol(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return Z(f)?ht(e,a)(f):c(f)}function u(f){return n(f)}function a(f){return f===34||f===39||f===40?al(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return Z(f)?ht(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function ns(e,t,n){const r=this;return i;function i(u){return ul.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function rs(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const is={name:"labelStartImage",resolveAll:or.resolveAll,tokenize:ls};function ls(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const os={name:"labelStartLink",resolveAll:or.resolveAll,tokenize:us};function us(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const pn={name:"lineEnding",tokenize:as};function as(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,t,"linePrefix")}}const Rt={name:"thematicBreak",tokenize:ss};function ss(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||N(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),U(s)?W(e,u,"whitespace")(s):u(s))}}const ue={continuation:{tokenize:ps},exit:gs,name:"list",tokenize:hs},cs={partial:!0,tokenize:ds},fs={partial:!0,tokenize:ms};function hs(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Rn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Rt,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Rn(h)&&++l<10?(e.consume(h),a):(!r.interrupt||l<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(bt,r.interrupt?n:c,e.attempt(cs,p,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return U(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ps(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bt,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!U(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fs,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(ue,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function ms(e,t,n){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function gs(e){e.exit(this.containerState.type)}function ds(e,t,n){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!U(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Xr={name:"setextUnderline",resolveTo:ys,tokenize:xs};function ys(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function xs(e,t,n){const r=this;let i;return o;function o(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),U(s)?W(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||N(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const ks={tokenize:ws};function ws(e){const t=this,n=e.attempt(bt,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ca,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const bs={resolveAll:cl()},vs=sl("string"),_s=sl("text");function sl(e){return{resolveAll:cl(e==="text"?Ss:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,u);return l;function l(c){return s(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return s(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function s(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function cl(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Ss(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 o=i.length,l=-1,u=0,a;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const s={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},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 Cs={42:ue,43:ue,45:ue,48:ue,49:ue,50:ue,51:ue,52:ue,53:ue,54:ue,55:ue,56:ue,57:ue,62:nl},Es={91:za},As={[-2]:hn,[-1]:hn,32:hn},Is={35:Ma,42:Rt,45:[Xr,Rt],60:$a,61:Xr,95:Rt,96:jr,126:jr},Ts={38:il,92:rl},zs={[-5]:pn,[-4]:pn,[-3]:pn,33:is,38:il,42:Mn,60:[oa,Xa],91:os,92:[La,rl],93:or,95:Mn,96:ka},Ps={null:[Mn,bs]},Ds={null:[42,95]},Fs={null:[]},Ls=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ds,contentInitial:Es,disable:Fs,document:Cs,flow:Is,flowInitial:As,insideSpan:Ps,string:Ts,text:zs},Symbol.toStringTag,{value:"Module"}));function Rs(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={},o=[];let l=[],u=[];const a={attempt:L(D),check:L(w),consume:T,enter:E,exit:_,interrupt:L(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=t.tokenize.call(s,a);return t.resolveAll&&o.push(t),s;function f(F){return l=me(l,F),C(),l[l.length-1]!==null?[]:($(t,0),s.events=tn(o,s.events,s),s.events)}function p(F,R){return Ns(h(F),R)}function h(F){return Ms(l,F)}function g(){const{_bufferIndex:F,_index:R,line:X,column:x,offset:A}=r;return{_bufferIndex:F,_index:R,line:X,column:x,offset:A}}function k(F){i[F.line]=F.column,b()}function C(){let F;for(;r._index<l.length;){const R=l[r._index];if(typeof R=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<R.length;)y(R.charCodeAt(r._bufferIndex));else y(R)}}function y(F){c=c(F)}function T(F){N(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,b()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=F}function E(F,R){const X=R||{};return X.type=F,X.start=g(),s.events.push(["enter",X,s]),u.push(X),X}function _(F){const R=u.pop();return R.end=g(),s.events.push(["exit",R,s]),R}function D(F,R){$(F,R.from)}function w(F,R){R.restore()}function L(F,R){return X;function X(x,A,S){let P,M,O,m;return Array.isArray(x)?Y(x):"tokenize"in x?Y([x]):q(x);function q(Q){return re;function re(ne){const ke=ne!==null&&Q[ne],We=ne!==null&&Q.null,Ct=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(We)?We:We?[We]:[]];return Y(Ct)(ne)}}function Y(Q){return P=Q,M=0,Q.length===0?S:d(Q[M])}function d(Q){return re;function re(ne){return m=H(),O=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?te():Q.tokenize.call(R?Object.assign(Object.create(s),R):s,a,G,te)(ne)}}function G(Q){return F(O,m),A}function te(Q){return m.restore(),++M<P.length?d(P[M]):S}}}function $(F,R){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&he(s.events,R,s.events.length-R,F.resolve(s.events.slice(R),s)),F.resolveTo&&(s.events=F.resolveTo(s.events,s))}function H(){const F=g(),R=s.previous,X=s.currentConstruct,x=s.events.length,A=Array.from(u);return{from:x,restore:S};function S(){r=F,s.previous=R,s.currentConstruct=X,s.events.length=x,u=A,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ms(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ns(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
- `;break}case-3:{l=`\r
4
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Os(e){const r={constructs:el([Ls,...(e||{}).extensions||[]]),content:i(Zu),defined:[],document:i(ta),flow:i(ks),lazy:{},string:i(vs),text:i(_s)};return r;function i(o){return l;function l(u){return Rs(r,o,u)}}}function Bs(e){for(;!ll(e););return e}const Yr=/[\0\t\n\r]/g;function $s(){let e=1,t="",n=!0,r;return i;function i(o,l,u){const a=[];let s,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(Yr.lastIndex=f,s=Yr.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(f);break}if(h===10&&f===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<p&&(a.push(o.slice(f,p)),e+=p-f),h){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Hs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Vs(e){return e.replace(Hs,qs)}function qs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return tl(n.slice(o?2:1),o?16:10)}return lr(n)||e}const fl={}.hasOwnProperty;function vy(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Us(n)(Bs(Os(n).document().write($s()(e,t,!0))))}function Us(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Er),autolinkProtocol:H,autolinkEmail:H,atxHeading:o(_r),blockQuote:o(We),characterEscape:H,characterReference:H,codeFenced:o(Ct),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ct,l),codeText:o(Co,l),codeTextData:H,data:H,codeFlowValue:H,definition:o(Eo),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Ao),hardBreakEscape:o(Sr),hardBreakTrailing:o(Sr),htmlFlow:o(Cr,l),htmlFlowData:H,htmlText:o(Cr,l),htmlTextData:H,image:o(Io),label:l,link:o(Er),listItem:o(To),listItemValue:p,listOrdered:o(Ar,f),listUnordered:o(Ar),paragraph:o(zo),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(_r),strong:o(Po),thematicBreak:o(Fo)},exit:{atxHeading:a(),atxHeadingSequence:D,autolink:a(),autolinkEmail:ke,autolinkProtocol:ne,blockQuote:a(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:Q,characterReference:re,codeFenced:a(C),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:b,codeIndented:a(y),codeText:a(A),codeTextData:b,data:b,definition:a(),definitionDestinationString:_,definitionLabelString:T,definitionTitleString:E,emphasis:a(),hardBreakEscape:a(R),hardBreakTrailing:a(R),htmlFlow:a(X),htmlFlowData:b,htmlText:a(x),htmlTextData:b,image:a(P),label:O,labelText:M,lineEnding:F,link:a(S),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:G,resourceDestinationString:m,resourceTitleString:q,resource:Y,setextHeading:a($),setextHeadingLineSequence:L,setextHeadingText:w,strong:a(),thematicBreak:a()}};hl(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(v){let z={type:"root",children:[]};const V={stack:[z],tokenStack:[],config:t,enter:u,exit:s,buffer:l,resume:c,data:n},j=[];let K=-1;for(;++K<v.length;)if(v[K][1].type==="listOrdered"||v[K][1].type==="listUnordered")if(v[K][0]==="enter")j.push(K);else{const ge=j.pop();K=i(v,ge,K)}for(K=-1;++K<v.length;){const ge=t[v[K][0]];fl.call(ge,v[K][1].type)&&ge[v[K][1].type].call(Object.assign({sliceSerialize:v[K][2].sliceSerialize},V),v[K][1])}if(V.tokenStack.length>0){const ge=V.tokenStack[V.tokenStack.length-1];(ge[1]||Gr).call(V,void 0,ge[0])}for(z.position={start:Fe(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:Fe(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},K=-1;++K<t.transforms.length;)z=t.transforms[K](z)||z;return z}function i(v,z,V){let j=z-1,K=-1,ge=!1,Re,Ce,rt,it;for(;++j<=V;){const ce=v[j];switch(ce[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ce[0]==="enter"?K++:K--,it=void 0;break}case"lineEndingBlank":{ce[0]==="enter"&&(Re&&!it&&!K&&!rt&&(rt=j),it=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:it=void 0}if(!K&&ce[0]==="enter"&&ce[1].type==="listItemPrefix"||K===-1&&ce[0]==="exit"&&(ce[1].type==="listUnordered"||ce[1].type==="listOrdered")){if(Re){let Xe=j;for(Ce=void 0;Xe--;){const Ee=v[Xe];if(Ee[1].type==="lineEnding"||Ee[1].type==="lineEndingBlank"){if(Ee[0]==="exit")continue;Ce&&(v[Ce][1].type="lineEndingBlank",ge=!0),Ee[1].type="lineEnding",Ce=Xe}else if(!(Ee[1].type==="linePrefix"||Ee[1].type==="blockQuotePrefix"||Ee[1].type==="blockQuotePrefixWhitespace"||Ee[1].type==="blockQuoteMarker"||Ee[1].type==="listItemIndent"))break}rt&&(!Ce||rt<Ce)&&(Re._spread=!0),Re.end=Object.assign({},Ce?v[Ce][1].start:ce[1].end),v.splice(Ce||j,0,["exit",Re,ce[2]]),j++,V++}if(ce[1].type==="listItemPrefix"){const Xe={type:"listItem",_spread:!1,start:Object.assign({},ce[1].start),end:void 0};Re=Xe,v.splice(j,0,["enter",Xe,ce[2]]),j++,V++,rt=void 0,it=!0}}}return v[z][1]._spread=ge,V}function o(v,z){return V;function V(j){u.call(this,v(j),j),z&&z.call(this,j)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(v,z,V){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([z,V||void 0]),v.position={start:Fe(z.start),end:void 0}}function a(v){return z;function z(V){v&&v.call(this,V),s.call(this,V)}}function s(v,z){const V=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==v.type&&(z?z.call(this,v,j[0]):(j[1]||Gr).call(this,v,j[0]));else throw new Error("Cannot close `"+v.type+"` ("+ft({start:v.start,end:v.end})+"): it’s not open");V.position.end=Fe(v.end)}function c(){return ir(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(v){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function h(){const v=this.resume(),z=this.stack[this.stack.length-1];z.lang=v}function g(){const v=this.resume(),z=this.stack[this.stack.length-1];z.meta=v}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v.replace(/(\r?\n|\r)$/g,"")}function T(v){const z=this.resume(),V=this.stack[this.stack.length-1];V.label=z,V.identifier=ye(this.sliceSerialize(v)).toLowerCase()}function E(){const v=this.resume(),z=this.stack[this.stack.length-1];z.title=v}function _(){const v=this.resume(),z=this.stack[this.stack.length-1];z.url=v}function D(v){const z=this.stack[this.stack.length-1];if(!z.depth){const V=this.sliceSerialize(v).length;z.depth=V}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function L(v){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function H(v){const V=this.stack[this.stack.length-1].children;let j=V[V.length-1];(!j||j.type!=="text")&&(j=Do(),j.position={start:Fe(v.start),end:void 0},V.push(j)),this.stack.push(j)}function b(v){const z=this.stack.pop();z.value+=this.sliceSerialize(v),z.position.end=Fe(v.end)}function F(v){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const V=z.children[z.children.length-1];V.position.end=Fe(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(H.call(this,v),b.call(this,v))}function R(){this.data.atHardBreak=!0}function X(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function x(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function A(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function S(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=z,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function P(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=z,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function M(v){const z=this.sliceSerialize(v),V=this.stack[this.stack.length-2];V.label=Vs(z),V.identifier=ye(z).toLowerCase()}function O(){const v=this.stack[this.stack.length-1],z=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){const j=v.children;V.children=j}else V.alt=z}function m(){const v=this.resume(),z=this.stack[this.stack.length-1];z.url=v}function q(){const v=this.resume(),z=this.stack[this.stack.length-1];z.title=v}function Y(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function G(v){const z=this.resume(),V=this.stack[this.stack.length-1];V.label=z,V.identifier=ye(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function te(v){this.data.characterReferenceType=v.type}function Q(v){const z=this.sliceSerialize(v),V=this.data.characterReferenceType;let j;V?(j=tl(z,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=lr(z);const K=this.stack[this.stack.length-1];K.value+=j}function re(v){const z=this.stack.pop();z.position.end=Fe(v.end)}function ne(v){b.call(this,v);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(v)}function ke(v){b.call(this,v);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(v)}function We(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Co(){return{type:"inlineCode",value:""}}function Eo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ao(){return{type:"emphasis",children:[]}}function _r(){return{type:"heading",depth:0,children:[]}}function Sr(){return{type:"break"}}function Cr(){return{type:"html",value:""}}function Io(){return{type:"image",title:null,url:"",alt:null}}function Er(){return{type:"link",title:null,url:"",children:[]}}function Ar(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[]}}function To(v){return{type:"listItem",spread:v._spread,checked:null,children:[]}}function zo(){return{type:"paragraph",children:[]}}function Po(){return{type:"strong",children:[]}}function Do(){return{type:"text",value:""}}function Fo(){return{type:"thematicBreak"}}}function Fe(e){return{line:e.line,column:e.column,offset:e.offset}}function hl(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?hl(e,r):js(e,r)}}function js(e,t){let n;for(n in t)if(fl.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 Gr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ft({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ft({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ft({start:t.start,end:t.end})+") is still open")}function Ws(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 Xs(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5
- `}]}function Ys(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 o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Gs(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qs(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ks(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nt(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function Js(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 Zs(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pl(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function ec(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pl(e,t);const i={src:nt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function tc(e,t){const n={src:nt(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 nc(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 rc(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pl(e,t);const i={href:nt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ic(e,t){const n={href:nt(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 lc(e,t,n){const r=e.all(t),i=n?oc(n):ml(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
7
- `}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
8
- `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function oc(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=ml(n[r])}return t}function ml(e){const t=e.spread;return t??e.children.length>1}function uc(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 l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function ac(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sc(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cc(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fc(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=er(t.children[1]),a=Xi(t.children[t.children.length-1]);u&&a&&(l.position={start:u,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function hc(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let a=-1;const s=[];for(;++a<u;){const f=t.children[a],p={},h=l?l[a]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),s.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)}function pc(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qr=9,Kr=32;function mc(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Jr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Jr(t.slice(i),i>0,!1)),o.join("")}function Jr(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Qr||o===Kr;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Qr||o===Kr;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function gc(e,t){const n={type:"text",value:mc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dc(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const yc={blockquote:Ws,break:Xs,code:Ys,delete:Gs,emphasis:Qs,footnoteReference:Ks,heading:Js,html:Zs,imageReference:ec,image:tc,inlineCode:nc,linkReference:rc,link:ic,listItem:lc,list:uc,paragraph:ac,root:sc,strong:cc,table:fc,tableCell:pc,tableRow:hc,text:gc,thematicBreak:dc,toml:Et,yaml:Et,definition:Et,footnoteDefinition:Et};function Et(){}const gl=-1,nn=0,pt=1,qt=2,ur=3,ar=4,sr=5,cr=6,dl=7,yl=8,xl=typeof self=="object"?self:globalThis,Zr=(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 xl[e](t)},xc=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case nn:case gl:return n(l,i);case pt:{const u=n([],i);for(const a of l)u.push(r(a));return u}case qt:{const u=n({},i);for(const[a,s]of l)u[r(a)]=r(s);return u}case ur:return n(new Date(l),i);case ar:{const{source:u,flags:a}=l;return n(new RegExp(u,a),i)}case sr:{const u=n(new Map,i);for(const[a,s]of l)u.set(r(a),r(s));return u}case cr:{const u=n(new Set,i);for(const a of l)u.add(r(a));return u}case dl:{const{name:u,message:a}=l;return n(typeof xl[u]=="function"?Zr(u,a):new Error(a),i)}case yl:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(Zr(o,l),i)};return r},ei=e=>xc(new Map,e)(0),Ne="",{toString:kc}={},{keys:wc}=Object,ot=e=>{const t=typeof e;if(t!=="object"||!e)return[nn,t];const n=kc.call(e).slice(8,-1);switch(n){case"Array":return[pt,Ne];case"Object":return[qt,Ne];case"Date":return[ur,Ne];case"RegExp":return[ar,Ne];case"Map":return[sr,Ne];case"Set":return[cr,Ne];case"DataView":return[pt,n]}return n.includes("Array")?[pt,n]:e instanceof Error?[dl,e.name||"Error"]:[qt,n]},At=([e,t])=>e===nn&&(t==="function"||t==="symbol"),bc=(e,t,n,r)=>{const i=(l,u)=>{const a=r.push(l)-1;return n.set(u,a),a},o=l=>{if(n.has(l))return n.get(l);let[u,a]=ot(l);switch(u){case nn:{let c=l;switch(a){case"bigint":u=yl,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([gl],l)}return i([u,c],l)}case pt:{if(a){let p=l;return a==="DataView"?p=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(l)),i([a,[...p]],l)}const c=[],f=i([u,c],l);for(const p of l)c.push(o(p));return f}case qt:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([u,c],l);for(const p of wc(l))(e||!At(ot(l[p])))&&c.push([o(p),o(l[p])]);return f}case ur:return i([u,isNaN(l.getTime())?Ne:l.toISOString()],l);case ar:{const{source:c,flags:f}=l;return i([u,{source:c,flags:f}],l)}case sr:{const c=[],f=i([u,c],l);for(const[p,h]of l)(e||!(At(ot(p))||At(ot(h))))&&c.push([o(p),o(h)]);return f}case cr:{const c=[],f=i([u,c],l);for(const p of l)(e||!At(ot(p)))&&c.push(o(p));return f}}const{message:s}=l;return i([u,{name:a,message:s}],l)};return o},ti=(e,{json:t,lossy:n}={})=>{const r=[];return bc(!(t||n),!!t,new Map,r)(e),r},Ut=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ei(ti(e,t)):structuredClone(e):(e,t)=>ei(ti(e,t));function vc(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 _c(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Sc(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||vc,r=e.options.footnoteBackLabel||_c,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const c=e.all(s),f=String(s.identifier).toUpperCase(),p=nt(f.toLowerCase());let h=0;const g=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++h<=k;){g.length>0&&g.push({type:"text",value:" "});let T=typeof n=="string"?n:n(a,h);typeof T=="string"&&(T={type:"text",value:T}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const T=C.children[C.children.length-1];T&&T.type==="text"?T.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...g)}else c.push(...g);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(s,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ut(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
10
- `}]}}const rn=function(e){if(e==null)return Ic;if(typeof e=="function")return ln(e);if(typeof e=="object")return Array.isArray(e)?Cc(e):Ec(e);if(typeof e=="string")return Ac(e);throw new Error("Expected function, string, or object as test")};function Cc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rn(e[n]);return ln(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Ec(e){const t=e;return ln(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Ac(e){return ln(t);function t(n){return n&&n.type===e}}function ln(e){return t;function t(n,r,i){return!!(Tc(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ic(){return!0}function Tc(e){return e!==null&&typeof e=="object"&&"type"in e}const kl=[],zc=!0,Nn=!1,Pc="skip";function wl(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=rn(i),l=r?-1:1;u(e,void 0,[])();function u(a,s,c){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=kl,g,k,C;if((!t||o(a,s,c[c.length-1]||void 0))&&(h=Dc(n(a,c)),h[0]===Nn))return h;if("children"in a&&a.children){const y=a;if(y.children&&h[0]!==Pc)for(k=(r?y.children.length:-1)+l,C=c.concat(y);k>-1&&k<y.children.length;){const T=y.children[k];if(g=u(T,k,C)(),g[0]===Nn)return g;k=typeof g[1]=="number"?g[1]:k+l}}return h}}}function Dc(e){return Array.isArray(e)?e:typeof e=="number"?[zc,e]:e==null?kl:[e]}function bl(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),wl(e,o,u,i);function u(a,s){const c=s[s.length-1],f=c?c.children.indexOf(a):void 0;return l(a,f,c)}}const On={}.hasOwnProperty,Fc={};function Lc(e,t){const n=t||Fc,r=new Map,i=new Map,o=new Map,l={...yc,...n.handlers},u={all:s,applyData:Mc,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:Rc,wrap:Oc};return bl(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),u;function a(c,f){const p=c.type,h=u.handlers[p];if(On.call(u.handlers,p)&&h)return h(u,c,f);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in c){const{children:k,...C}=c,y=Ut(C);return y.children=u.all(c),y}return Ut(c)}return(u.options.unknownHandler||Nc)(u,c,f)}function s(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const g=u.one(p[h],c);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=ni(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=ni(k.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function Rc(e,t){e.position&&(t.position=Eu(e))}function Mc(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Ut(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Nc(e,t){const n=t.data||{},r="value"in t&&!(On.call(n,"hProperties")||On.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 Oc(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 ni(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _y(e,t){const n=Lc(e,t),r=n.one(e,void 0),i=Sc(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14
- `},i),o}function ri(e){if(e)throw e}var Mt=Object.prototype.hasOwnProperty,vl=Object.prototype.toString,ii=Object.defineProperty,li=Object.getOwnPropertyDescriptor,oi=function(t){return typeof Array.isArray=="function"?Array.isArray(t):vl.call(t)==="[object Array]"},ui=function(t){if(!t||vl.call(t)!=="[object Object]")return!1;var n=Mt.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Mt.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Mt.call(t,i)},ai=function(t,n){ii&&n.name==="__proto__"?ii(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},si=function(t,n){if(n==="__proto__")if(Mt.call(t,n)){if(li)return li(t,n).value}else return;return t[n]},Bc=function e(){var t,n,r,i,o,l,u=arguments[0],a=1,s=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(t=arguments[a],t!=null)for(n in t)r=si(u,n),i=si(t,n),u!==i&&(c&&i&&(ui(i)||(o=oi(i)))?(o?(o=!1,l=r&&oi(r)?r:[]):l=r&&ui(r)?r:{},ai(u,{name:n,newValue:e(c,l,i)})):typeof i<"u"&&ai(u,{name:n,newValue:i}));return u};const mn=Qn(Bc);function Bn(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 $c(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(a,...s){const c=e[++o];let f=-1;if(a){l(a);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?Hc(c,u)(...s):l(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 Hc(e,t){let n;return r;function r(...l){const u=e.length>l.length;let a;u&&l.push(i);try{a=e.apply(this,l)}catch(s){const c=s;if(u&&n)throw c;return i(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...u){n||(n=!0,t(l,...u))}function o(l){i(null,l)}}const we={basename:Vc,dirname:qc,extname:Uc,join:jc,sep:"/"};function Vc(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vt(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function qc(e){if(vt(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 Uc(e){vt(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function jc(...e){let t=-1,n;for(;++t<e.length;)vt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Wc(n)}function Wc(e){vt(e);const t=e.codePointAt(0)===47;let n=Xc(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xc(e,t){let n="",r=0,i=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return n}function vt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yc={cwd:Gc};function Gc(){return"/"}function $n(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Qc(e){if(typeof e=="string")e=new URL(e);else if(!$n(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 Kc(e)}function Kc(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 gn=["history","path","basename","stem","extname","dirname"];class Jc{constructor(t){let n;t?$n(t)?n={path:t}:typeof t=="string"||Zc(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Yc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<gn.length;){const o=gn[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)gn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?we.basename(this.path):void 0}set basename(t){yn(t,"basename"),dn(t,"basename"),this.path=we.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?we.dirname(this.path):void 0}set dirname(t){ci(this.basename,"dirname"),this.path=we.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?we.extname(this.path):void 0}set extname(t){if(dn(t,"extname"),ci(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=we.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$n(t)&&(t=Qc(t)),yn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?we.basename(this.path,this.extname):void 0}set stem(t){yn(t,"stem"),dn(t,"stem"),this.path=we.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 dn(e,t){if(e&&e.includes(we.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+we.sep+"`")}function yn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ci(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Zc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ef=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},tf={}.hasOwnProperty;class fr extends ef{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=$c()}copy(){const t=new fr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wn("data",this.frozen),this.namespace[t]=n,this):tf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wn("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=It(t),r=this.parser||this.Parser;return xn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),xn("process",this.parser||this.Parser),kn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const u=It(t),a=r.parse(u);r.run(a,u,function(c,f,p){if(c||!f||!p)return s(c);const h=f,g=r.stringify(h,p);rf(g)?p.value=g:p.result=g,s(c,p)});function s(c,f){c||!f?l(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),xn("processSync",this.parser||this.Parser),kn("processSync",this.compiler||this.Compiler),this.process(t,i),hi("processSync","process",n),r;function i(o,l){n=!0,ri(o),r=l}}run(t,n,r){fi(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const a=It(n);i.run(t,a,s);function s(c,f,p){const h=f||t;c?u(c):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),hi("runSync","run",r),i;function o(l,u){ri(l),i=u,r=!0}}stringify(t,n){this.freeze();const r=It(n),i=this.compiler||this.Compiler;return kn("stringify",i),fi(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(wn("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[c,...f]=s;a(c,f)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(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");u(s.plugins),s.settings&&(i.settings=mn(!0,i.settings,s.settings))}function u(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){const f=s[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===s){p=f;break}if(p===-1)r.push([s,...c]);else if(c.length>0){let[h,...g]=c;const k=r[p][1];Bn(k)&&Bn(h)&&(h=mn(!0,k,h)),r[p]=[s,h,...g]}}}}const Sy=new fr().freeze();function xn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wn(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 fi(e){if(!Bn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hi(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function It(e){return nf(e)?e:new Jc(e)}function nf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rf(e){return typeof e=="string"||lf(e)}function lf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function pi(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 uf(e,t,n){const i=rn((n||{}).ignore||[]),o=af(t);let l=-1;for(;++l<o.length;)wl(e,"text",u);function u(s,c){let f=-1,p;for(;++f<c.length;){const h=c[f],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return a(s,c)}function a(s,c){const f=c[c.length-1],p=o[l][0],h=o[l][1];let g=0;const C=f.children.indexOf(s);let y=!1,T=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const _=E.index,D={index:E.index,input:E.input,stack:[...c,s]};let w=h(...E,D);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=_+1:(g!==_&&T.push({type:"text",value:s.value.slice(g,_)}),Array.isArray(w)?T.push(...w):w&&T.push(w),g=_+E[0].length,y=!0),!p.global)break;E=p.exec(s.value)}return y?(g<s.value.length&&T.push({type:"text",value:s.value.slice(g)}),f.children.splice(C,1,...T)):T=[s],C+T.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]),cf(i[1])])}return t}function sf(e){return typeof e=="string"?new RegExp(of(e),"g"):e}function cf(e){return typeof e=="function"?e:function(){return e}}const bn="phrasing",vn=["autolink","link","image","label"];function ff(){return{transforms:[xf],enter:{literalAutolink:pf,literalAutolinkEmail:_n,literalAutolinkHttp:_n,literalAutolinkWww:_n},exit:{literalAutolink:yf,literalAutolinkEmail:df,literalAutolinkHttp:mf,literalAutolinkWww:gf}}}function hf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bn,notInConstruct:vn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bn,notInConstruct:vn},{character:":",before:"[ps]",after:"\\/",inConstruct:bn,notInConstruct:vn}]}}function pf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _n(e){this.config.enter.autolinkProtocol.call(this,e)}function mf(e){this.config.exit.autolinkProtocol.call(this,e)}function gf(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 df(e){this.config.exit.autolinkEmail.call(this,e)}function yf(e){this.exit(e)}function xf(e){uf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wf]],{ignore:["link","linkReference"]})}function kf(e,t,n,r,i){let o="";if(!_l(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!bf(n)))return!1;const l=vf(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function wf(e,t,n,r){return!_l(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bf(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 vf(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=pi(e,"(");let o=pi(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function _l(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ve(n)||en(n))&&(!t||n!==47)}Sl.peek=Pf;function _f(){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=ye(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=ye(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zf(e){this.exit(e)}function Pf(){return"["}function Sl(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function Df(){return{enter:{gfmFootnoteCallString:_f,gfmFootnoteCall:Sf,gfmFootnoteDefinitionLabelString:Cf,gfmFootnoteDefinition:Ef},exit:{gfmFootnoteCallString:Af,gfmFootnoteCall:If,gfmFootnoteDefinitionLabelString:Tf,gfmFootnoteDefinition:zf}}}function Ff(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Sl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const u=o.createTracker(l);let a=u.move("[^");const s=o.enter("footnoteDefinition"),c=o.enter("label");return a+=u.move(o.safe(o.associationId(r),{before:a,after:"]"})),c(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((t?`
15
- `:" ")+o.indentLines(o.containerFlow(r,u.current()),t?Cl:Lf))),s(),a}}function Lf(e,t,n){return t===0?e:Cl(e,t,n)}function Cl(e,t,n){return(n?"":" ")+e}const Rf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];El.peek=$f;function Mf(){return{canContainEols:["delete"],enter:{strikethrough:Of},exit:{strikethrough:Bf}}}function Nf(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rf}],handlers:{delete:El}}}function Of(e){this.enter({type:"delete",children:[]},e)}function Bf(e){this.exit(e)}function El(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function $f(){return"~"}function Hf(e){return e.length}function Vf(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Hf,o=[],l=[],u=[],a=[];let s=0,c=-1;for(;++c<e.length;){const k=[],C=[];let y=-1;for(e[c].length>s&&(s=e[c].length);++y<e[c].length;){const T=qf(e[c][y]);if(n.alignDelimiters!==!1){const E=i(T);C[y]=E,(a[y]===void 0||E>a[y])&&(a[y]=E)}k.push(T)}l[c]=k,u[c]=C}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<s;)o[f]=mi(r[f]);else{const k=mi(r);for(;++f<s;)o[f]=k}f=-1;const p=[],h=[];for(;++f<s;){const k=o[f];let C="",y="";k===99?(C=":",y=":"):k===108?C=":":k===114&&(y=":");let T=n.alignDelimiters===!1?1:Math.max(1,a[f]-C.length-y.length);const E=C+"-".repeat(T)+y;n.alignDelimiters!==!1&&(T=C.length+T+y.length,T>a[f]&&(a[f]=T),h[f]=T),p[f]=E}l.splice(1,0,p),u.splice(1,0,h),c=-1;const g=[];for(;++c<l.length;){const k=l[c],C=u[c];f=-1;const y=[];for(;++f<s;){const T=k[f]||"";let E="",_="";if(n.alignDelimiters!==!1){const D=a[f]-(C[f]||0),w=o[f];w===114?E=" ".repeat(D):w===99?D%2?(E=" ".repeat(D/2+.5),_=" ".repeat(D/2-.5)):(E=" ".repeat(D/2),_=E):_=" ".repeat(D)}n.delimiterStart!==!1&&!f&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||f)&&y.push(" "),n.alignDelimiters!==!1&&y.push(E),y.push(T),n.alignDelimiters!==!1&&y.push(_),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||f!==s-1)&&y.push("|")}g.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(`
16
- `)}function qf(e){return e==null?"":String(e)}function mi(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 Uf(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),jf);return i(),l}function jf(e,t,n){return">"+(n?"":" ")+e}function Wf(e,t){return gi(e,t.inConstruct,!0)&&!gi(e,t.notInConstruct,!1)}function gi(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 di(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
17
- `&&Wf(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
- `}function Xf(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Yf(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 Gf(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 Qf(e,t,n,r){const i=Gf(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Yf(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(o,Kf);return f(),p}const u=n.createTracker(r),a=i.repeat(Math.max(Xf(o,i)+1,3)),s=n.enter("codeFenced");let c=u.move(a);if(e.lang){const f=n.enter(`codeFencedLang${l}`);c+=u.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...u.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${l}`);c+=u.move(" "),c+=u.move(n.safe(e.meta,{before:c,after:`
19
- `,encode:["`"],...u.current()})),f()}return c+=u.move(`
20
- `),o&&(c+=u.move(o+`
21
- `)),c+=u.move(a),s(),c}function Kf(e,t,n){return(n?"":" ")+e}function hr(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 Jf(e,t,n,r){const i=hr(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("[");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":`
22
- `,...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),l(),s}function Zf(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 gt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function jt(e,t,n){const r=Ke(e),i=Ke(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}}Al.peek=eh;function Al(e,t,n,r){const i=Zf(n),o=n.enter("emphasis"),l=n.createTracker(r),u=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),c=jt(r.before.charCodeAt(r.before.length-1),s,i);c.inside&&(a=gt(s)+a.slice(1));const f=a.charCodeAt(a.length-1),p=jt(r.after.charCodeAt(0),f,i);p.inside&&(a=a.slice(0,-1)+gt(f));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},u+a+h}function eh(e,t,n){return n.options.emphasis||"*"}function th(e,t){let n=!1;return bl(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Nn}),!!((!e.depth||e.depth<3)&&ir(e)&&(t.options.setext||n))}function nh(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(th(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
23
- `,after:`
24
- `});return f(),c(),p+`
25
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26
- `))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
27
- `,...o.current()});return/^[\t ]/.test(s)&&(s=gt(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),a(),u(),s}Il.peek=rh;function Il(e){return e.value||""}function rh(){return"<"}Tl.peek=ih;function Tl(e,t,n,r){const i=hr(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("![");return s+=a.move(n.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function ih(){return"!"}zl.peek=lh;function zl(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("![");const s=n.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=c,o(),i==="full"||!s||s!==f?a+=u.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function lh(){return"!"}Pl.peek=oh;function Pl(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o<n.unsafe.length;){const l=n.unsafe[o],u=n.compilePattern(l);let a;if(l.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function oh(){return"`"}function Dl(e,t){const n=ir(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))}Fl.peek=uh;function Fl(e,t,n,r){const i=hr(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,a;if(Dl(e,n)){const c=n.stack;n.stack=[],u=n.enter("autolink");let f=l.move("<");return f+=l.move(n.containerPhrasing(e,{before:f,after:">",...l.current()})),f+=l.move(">"),u(),n.stack=c,f}u=n.enter("link"),a=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function uh(e,t,n){return Dl(e,n)?"<":"["}Ll.peek=ah;function Ll(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("[");const s=n.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=c,o(),i==="full"||!s||s!==f?a+=u.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function ah(){return"["}function pr(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=pr(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 ch(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 Rl(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 fh(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?ch(n):pr(n);const u=e.ordered?l==="."?")":".":sh(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.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&&(a=!0),Rl(n)===l&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function hh(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 ph(e,t,n,r){const i=hh(n);let o=n.bulletCurrent||pr(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,u.current()),c);return a(),s;function c(f,p,h){return p?(h?"":" ".repeat(l))+f:(h?o:o+" ".repeat(l-o.length))+f}}function mh(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const gh=rn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function dh(e,t,n,r){return(e.children.some(function(l){return gh(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function yh(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ml.peek=xh;function Ml(e,t,n,r){const i=yh(n),o=n.enter("strong"),l=n.createTracker(r),u=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),c=jt(r.before.charCodeAt(r.before.length-1),s,i);c.inside&&(a=gt(s)+a.slice(1));const f=a.charCodeAt(a.length-1),p=jt(r.after.charCodeAt(0),f,i);p.inside&&(a=a.slice(0,-1)+gt(f));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},u+a+h}function xh(e,t,n){return n.options.strong||"*"}function kh(e,t,n,r){return n.safe(e.value,r)}function wh(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 bh(e,t,n){const r=(Rl(n)+(n.options.ruleSpaces?" ":"")).repeat(wh(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Nl={blockquote:Uf,break:di,code:Qf,definition:Jf,emphasis:Al,hardBreak:di,heading:nh,html:Il,image:Tl,imageReference:zl,inlineCode:Pl,link:Fl,linkReference:Ll,list:fh,listItem:ph,paragraph:mh,root:dh,strong:Ml,text:kh,thematicBreak:bh};function vh(){return{enter:{table:_h,tableData:yi,tableHeader:yi,tableRow:Ch},exit:{codeText:Eh,table:Sh,tableData:Sn,tableHeader:Sn,tableRow:Sn}}}function _h(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 Sn(e){this.exit(e)}function yi(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,o=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:l,tableCell:a,tableRow:u}};function l(h,g,k,C){return s(c(h,k,C),h.align)}function u(h,g,k,C){const y=f(h,k,C),T=s([y]);return T.slice(0,T.indexOf(`
29
- `))}function a(h,g,k,C){const y=k.enter("tableCell"),T=k.enter("phrasing"),E=k.containerPhrasing(h,{...C,before:o,after:o});return T(),y(),E}function s(h,g){return Vf(h,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(h,g,k){const C=h.children;let y=-1;const T=[],E=g.enter("table");for(;++y<C.length;)T[y]=f(C[y],g,k);return E(),T}function f(h,g,k){const C=h.children;let y=-1;const T=[],E=g.enter("tableRow");for(;++y<C.length;)T[y]=a(C[y],h,g,k);return E(),T}function p(h,g,k){let C=Nl.inlineCode(h,g,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Th(){return{exit:{taskListCheckValueChecked:xi,taskListCheckValueUnchecked:xi,paragraph:Ph}}}function zh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Dh}}}function xi(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 o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===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 Dh(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let a=Nl.listItem(e,t,n,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(c){return c+l}}function Cy(){return[ff(),Df(),Mf(),vh(),Th()]}function Ey(e){return{extensions:[hf(),Ff(e),Nf(),Ih(e),zh()]}}const Fh={tokenize:Bh,partial:!0},Ol={tokenize:$h,partial:!0},Bl={tokenize:Hh,partial:!0},$l={tokenize:Vh,partial:!0},Lh={tokenize:qh,partial:!0},Hl={name:"wwwAutolink",tokenize:Nh,previous:ql},Vl={name:"protocolAutolink",tokenize:Oh,previous:Ul},De={name:"emailAutolink",tokenize:Mh,previous:jl},_e={};function Rh(){return{text:_e}}let Me=48;for(;Me<123;)_e[Me]=De,Me++,Me===58?Me=65:Me===91&&(Me=97);_e[43]=De;_e[45]=De;_e[46]=De;_e[95]=De;_e[72]=[De,Vl];_e[104]=[De,Vl];_e[87]=[De,Hl];_e[119]=[De,Hl];function Mh(e,t,n){const r=this;let i,o;return l;function l(f){return!Hn(f)||!jl.call(r,r.previous)||mr(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return Hn(f)?(e.consume(f),u):f===64?(e.consume(f),a):n(f)}function a(f){return f===46?e.check(Lh,c,s)(f):f===45||f===95||ie(f)?(o=!0,e.consume(f),a):c(f)}function s(f){return e.consume(f),i=!0,a}function c(f){return o&&i&&oe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Nh(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!ql.call(r,r.previous)||mr(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fh,e.attempt(Ol,e.attempt(Bl,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Oh(e,t,n){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&Ul.call(r,r.previous)&&!mr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),u):n(f)}function u(f){if(oe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),a}return n(f)}function a(f){return f===47?(e.consume(f),o?s:(o=!0,a)):n(f)}function s(f){return f===null||Vt(f)||Z(f)||Ve(f)||en(f)?n(f):e.attempt(Ol,e.attempt(Bl,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Bh(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function $h(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check($l,a,u)(s):s===null||Z(s)||Ve(s)||s!==45&&en(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?n(s):t(s)}}function Hh(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check($l,t,o)(l):l===null||Z(l)||Ve(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Vh(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||Z(u)||Ve(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||Z(u)||Ve(u)?t(u):r(u)}function o(u){return oe(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):oe(u)?(e.consume(u),l):n(u)}}function qh(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return ie(o)?n(o):t(o)}}function ql(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function Ul(e){return!oe(e)}function jl(e){return!(e===47||Hn(e))}function Hn(e){return e===43||e===45||e===46||e===95||ie(e)}function mr(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:Jh,partial:!0};function jh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gh,continuation:{tokenize:Qh},exit:Kh}},text:{91:{name:"gfmFootnoteCall",tokenize:Yh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wh,resolveTo:Xh}}}}function Wh(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return n(a);const s=ye(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function Xh(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function Yh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),a}function a(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(f){if(o>999||f===93&&!l||f===null||f===91||Z(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Z(f)||(l=!0),o++,e.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,s):s(f)}}function Gh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(l>999||g===93&&!u||g===null||g===91||Z(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Z(g)||(u=!0),l++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),l++,c):c(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),W(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function Qh(e,t,n){return e.check(bt,t,e.attempt(Uh,t,n))}function Kh(e){e.exit("gfmFootnoteDefinition")}function Jh(e,t,n){const r=this;return W(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Zh(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},f={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},p=[["enter",c,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",f,u]],h=u.parser.constructs.insideSpan.null;h&&he(p,p.length,0,tn(h,l.slice(s+1,a),u)),he(p,p.length,0,[["exit",f,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",c,u]]),he(l,s-1,a-s+3,p),a=s+p.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,c=this.events;let f=0;return p;function p(g){return s===126&&c[c.length-1][1].type!=="characterEscape"?a(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const k=Ke(s);if(g===126)return f>1?a(g):(l.consume(g),f++,h);if(f<2&&!n)return a(g);const C=l.exit("strikethroughSequenceTemporary"),y=Ke(g);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,u(g)}}}class ep{constructor(){this.map=[]}add(t,n,r){tp(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[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 o of i)t.push(o);i=r.pop()}this.map.length=0}}function tp(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 np(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 o=r.length-1;r[o]=r[o]==="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 rp(){return{flow:{null:{name:"table",tokenize:ip,resolveAll:lp}}}}function ip(e,t,n){const r=this;let i=0,o=0,l;return u;function u(b){let F=r.events.length-1;for(;F>-1;){const x=r.events[F][1].type;if(x==="lineEnding"||x==="linePrefix")F--;else break}const R=F>-1?r.events[F][1].type:null,X=R==="tableHead"||R==="tableRow"?w:a;return X===w&&r.parser.lazy[r.now().line]?n(b):X(b)}function a(b){return e.enter("tableHead"),e.enter("tableRow"),s(b)}function s(b){return b===124||(l=!0,o+=1),c(b)}function c(b){return b===null?n(b):N(b)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),h):n(b):U(b)?W(e,c,"whitespace")(b):(o+=1,l&&(l=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(b)))}function f(b){return b===null||b===124||Z(b)?(e.exit("data"),c(b)):(e.consume(b),b===92?p:f)}function p(b){return b===92||b===124?(e.consume(b),f):f(b)}function h(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),l=!1,U(b)?W(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):g(b))}function g(b){return b===45||b===58?C(b):b===124?(l=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):D(b)}function k(b){return U(b)?W(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):b===45?(o+=1,y(b)):b===null||N(b)?_(b):D(b)}function y(b){return b===45?(e.enter("tableDelimiterFiller"),T(b)):D(b)}function T(b){return b===45?(e.consume(b),T):b===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(b))}function E(b){return U(b)?W(e,_,"whitespace")(b):_(b)}function _(b){return b===124?g(b):b===null||N(b)?!l||i!==o?D(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):D(b)}function D(b){return n(b)}function w(b){return e.enter("tableRow"),L(b)}function L(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),L):b===null||N(b)?(e.exit("tableRow"),t(b)):U(b)?W(e,L,"whitespace")(b):(e.enter("data"),$(b))}function $(b){return b===null||b===124||Z(b)?(e.exit("data"),L(b)):(e.consume(b),b===92?H:$)}function H(b){return b===92||b===124?(e.consume(b),$):$(b)}}function lp(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,c,f;const p=new ep;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(u=!1,a!==0&&(ki(p,t,a,s,c),c=void 0,a=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",s,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=Tt(p,t,o,i,void 0,f),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=Tt(p,t,o,i,void 0,f)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(u=!0,a=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],f=Tt(p,t,o,i,n,f)):l[1]!==0&&(f=Tt(p,t,l,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&ki(p,t,a,s,c),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=np(t.events,n))}return e}function Tt(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},Ye(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Ye(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Ye(t.events,n[2]),c=Ye(t.events,n[3]),f={type:u,start:Object.assign({},s),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,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 g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},Ye(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ki(e,t,n,r,i){const o=[],l=Ye(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ye(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const op={name:"tasklistCheck",tokenize:ap};function up(){return{text:{91:op}}}function ap(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return Z(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return N(a)?t(a):U(a)?e.check({tokenize:sp},t,n)(a):n(a)}}function sp(e,t,n){return W(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Ay(e){return el([Rh(),jh(),Zh(e),rp(),up()])}function cp(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=cp(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var fp={value:()=>{}};function on(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Nt(n)}function Nt(e){this._=e}function hp(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Nt.prototype=on.prototype={constructor:Nt,on:function(e,t){var n=this._,r=hp(e+"",n),i,o=-1,l=r.length;if(arguments.length<2){for(;++o<l;)if((i=(e=r[o]).type)&&(i=pp(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<l;)if(i=(e=r[o]).type)n[i]=wi(n[i],e.name,t);else if(t==null)for(i in n)n[i]=wi(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Nt(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function pp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function wi(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=fp,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Vn="http://www.w3.org/1999/xhtml";const bi={svg:"http://www.w3.org/2000/svg",xhtml:Vn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function un(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),bi.hasOwnProperty(t)?{space:bi[t],local:e}:e}function mp(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Vn&&t.documentElement.namespaceURI===Vn?t.createElement(e):t.createElementNS(n,e)}}function gp(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wl(e){var t=un(e);return(t.local?gp:mp)(t)}function dp(){}function gr(e){return e==null?dp:function(){return this.querySelector(e)}}function yp(e){typeof e!="function"&&(e=gr(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],l=o.length,u=r[i]=new Array(l),a,s,c=0;c<l;++c)(a=o[c])&&(s=e.call(a,a.__data__,c,o))&&("__data__"in a&&(s.__data__=a.__data__),u[c]=s);return new pe(r,this._parents)}function xp(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kp(){return[]}function Xl(e){return e==null?kp:function(){return this.querySelectorAll(e)}}function wp(e){return function(){return xp(e.apply(this,arguments))}}function bp(e){typeof e=="function"?e=wp(e):e=Xl(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var l=t[o],u=l.length,a,s=0;s<u;++s)(a=l[s])&&(r.push(e.call(a,a.__data__,s,l)),i.push(a));return new pe(r,i)}function Yl(e){return function(){return this.matches(e)}}function Gl(e){return function(t){return t.matches(e)}}var vp=Array.prototype.find;function _p(e){return function(){return vp.call(this.children,e)}}function Sp(){return this.firstElementChild}function Cp(e){return this.select(e==null?Sp:_p(typeof e=="function"?e:Gl(e)))}var Ep=Array.prototype.filter;function Ap(){return Array.from(this.children)}function Ip(e){return function(){return Ep.call(this.children,e)}}function Tp(e){return this.selectAll(e==null?Ap:Ip(typeof e=="function"?e:Gl(e)))}function zp(e){typeof e!="function"&&(e=Yl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],l=o.length,u=r[i]=[],a,s=0;s<l;++s)(a=o[s])&&e.call(a,a.__data__,s,o)&&u.push(a);return new pe(r,this._parents)}function Ql(e){return new Array(e.length)}function Pp(){return new pe(this._enter||this._groups.map(Ql),this._parents)}function Wt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Wt.prototype={constructor:Wt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Dp(e){return function(){return e}}function Fp(e,t,n,r,i,o){for(var l=0,u,a=t.length,s=o.length;l<s;++l)(u=t[l])?(u.__data__=o[l],r[l]=u):n[l]=new Wt(e,o[l]);for(;l<a;++l)(u=t[l])&&(i[l]=u)}function Lp(e,t,n,r,i,o,l){var u,a,s=new Map,c=t.length,f=o.length,p=new Array(c),h;for(u=0;u<c;++u)(a=t[u])&&(p[u]=h=l.call(a,a.__data__,u,t)+"",s.has(h)?i[u]=a:s.set(h,a));for(u=0;u<f;++u)h=l.call(e,o[u],u,o)+"",(a=s.get(h))?(r[u]=a,a.__data__=o[u],s.delete(h)):n[u]=new Wt(e,o[u]);for(u=0;u<c;++u)(a=t[u])&&s.get(p[u])===a&&(i[u]=a)}function Rp(e){return e.__data__}function Mp(e,t){if(!arguments.length)return Array.from(this,Rp);var n=t?Lp:Fp,r=this._parents,i=this._groups;typeof e!="function"&&(e=Dp(e));for(var o=i.length,l=new Array(o),u=new Array(o),a=new Array(o),s=0;s<o;++s){var c=r[s],f=i[s],p=f.length,h=Np(e.call(c,c&&c.__data__,s,r)),g=h.length,k=u[s]=new Array(g),C=l[s]=new Array(g),y=a[s]=new Array(p);n(c,f,k,C,y,h,t);for(var T=0,E=0,_,D;T<g;++T)if(_=k[T]){for(T>=E&&(E=T+1);!(D=C[E])&&++E<g;);_._next=D||null}}return l=new pe(l,r),l._enter=u,l._exit=a,l}function Np(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Op(){return new pe(this._exit||this._groups.map(Ql),this._parents)}function Bp(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function $p(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,l=Math.min(i,o),u=new Array(i),a=0;a<l;++a)for(var s=n[a],c=r[a],f=s.length,p=u[a]=new Array(f),h,g=0;g<f;++g)(h=s[g]||c[g])&&(p[g]=h);for(;a<i;++a)u[a]=n[a];return new pe(u,this._parents)}function Hp(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],l;--i>=0;)(l=r[i])&&(o&&l.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(l,o),o=l);return this}function Vp(e){e||(e=qp);function t(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var l=n[o],u=l.length,a=i[o]=new Array(u),s,c=0;c<u;++c)(s=l[c])&&(a[c]=s);a.sort(t)}return new pe(i,this._parents).order()}function qp(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Up(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function jp(){return Array.from(this)}function Wp(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var l=r[i];if(l)return l}return null}function Xp(){let e=0;for(const t of this)++e;return e}function Yp(){return!this.node()}function Gp(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,l=i.length,u;o<l;++o)(u=i[o])&&e.call(u,u.__data__,o,i);return this}function Qp(e){return function(){this.removeAttribute(e)}}function Kp(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jp(e,t){return function(){this.setAttribute(e,t)}}function Zp(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function em(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tm(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nm(e,t){var n=un(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Kp:Qp:typeof t=="function"?n.local?tm:em:n.local?Zp:Jp)(n,t))}function Kl(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rm(e){return function(){this.style.removeProperty(e)}}function im(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lm(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function om(e,t,n){return arguments.length>1?this.each((t==null?rm:typeof t=="function"?lm:im)(e,t,n??"")):Je(this.node(),e)}function Je(e,t){return e.style.getPropertyValue(t)||Kl(e).getComputedStyle(e,null).getPropertyValue(t)}function um(e){return function(){delete this[e]}}function am(e,t){return function(){this[e]=t}}function sm(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function cm(e,t){return arguments.length>1?this.each((t==null?um:typeof t=="function"?sm:am)(e,t)):this.node()[e]}function Jl(e){return e.trim().split(/^|\s+/)}function dr(e){return e.classList||new Zl(e)}function Zl(e){this._node=e,this._names=Jl(e.getAttribute("class")||"")}Zl.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function eo(e,t){for(var n=dr(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function to(e,t){for(var n=dr(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function fm(e){return function(){eo(this,e)}}function hm(e){return function(){to(this,e)}}function pm(e,t){return function(){(t.apply(this,arguments)?eo:to)(this,e)}}function mm(e,t){var n=Jl(e+"");if(arguments.length<2){for(var r=dr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?pm:t?fm:hm)(n,t))}function gm(){this.textContent=""}function dm(e){return function(){this.textContent=e}}function ym(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function xm(e){return arguments.length?this.each(e==null?gm:(typeof e=="function"?ym:dm)(e)):this.node().textContent}function km(){this.innerHTML=""}function wm(e){return function(){this.innerHTML=e}}function bm(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function vm(e){return arguments.length?this.each(e==null?km:(typeof e=="function"?bm:wm)(e)):this.node().innerHTML}function _m(){this.nextSibling&&this.parentNode.appendChild(this)}function Sm(){return this.each(_m)}function Cm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Em(){return this.each(Cm)}function Am(e){var t=typeof e=="function"?e:Wl(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Im(){return null}function Tm(e,t){var n=typeof e=="function"?e:Wl(e),r=t==null?Im:typeof t=="function"?t:gr(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zm(){var e=this.parentNode;e&&e.removeChild(this)}function Pm(){return this.each(zm)}function Dm(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Fm(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lm(e){return this.select(e?Fm:Dm)}function Rm(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Mm(e){return function(t){e.call(this,t,this.__data__)}}function Nm(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Om(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function Bm(e,t,n){return function(){var r=this.__on,i,o=Mm(t);if(r){for(var l=0,u=r.length;l<u;++l)if((i=r[l]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function $m(e,t,n){var r=Nm(e+""),i,o=r.length,l;if(arguments.length<2){var u=this.node().__on;if(u){for(var a=0,s=u.length,c;a<s;++a)for(i=0,c=u[a];i<o;++i)if((l=r[i]).type===c.type&&l.name===c.name)return c.value}return}for(u=t?Bm:Om,i=0;i<o;++i)this.each(u(r[i],t,n));return this}function no(e,t,n){var r=Kl(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Hm(e,t){return function(){return no(this,e,t)}}function Vm(e,t){return function(){return no(this,e,t.apply(this,arguments))}}function qm(e,t){return this.each((typeof t=="function"?Vm:Hm)(e,t))}function*Um(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,l;i<o;++i)(l=r[i])&&(yield l)}var ro=[null];function pe(e,t){this._groups=e,this._parents=t}function _t(){return new pe([[document.documentElement]],ro)}function jm(){return this}pe.prototype=_t.prototype={constructor:pe,select:yp,selectAll:bp,selectChild:Cp,selectChildren:Tp,filter:zp,data:Mp,enter:Pp,exit:Op,join:Bp,merge:$p,selection:jm,order:Hp,sort:Vp,call:Up,nodes:jp,node:Wp,size:Xp,empty:Yp,each:Gp,attr:nm,style:om,property:cm,classed:mm,text:xm,html:vm,raise:Sm,lower:Em,append:Am,insert:Tm,remove:Pm,clone:Lm,datum:Rm,on:$m,dispatch:qm,[Symbol.iterator]:Um};function Te(e){return typeof e=="string"?new pe([[document.querySelector(e)]],[document.documentElement]):new pe([[e]],ro)}function Wm(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ie(e,t){if(e=Wm(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Xm={passive:!1},dt={capture:!0,passive:!1};function Cn(e){e.stopImmediatePropagation()}function Ge(e){e.preventDefault(),e.stopImmediatePropagation()}function io(e){var t=e.document.documentElement,n=Te(e).on("dragstart.drag",Ge,dt);"onselectstart"in t?n.on("selectstart.drag",Ge,dt):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function lo(e,t){var n=e.document.documentElement,r=Te(e).on("dragstart.drag",null);t&&(r.on("click.drag",Ge,dt),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const zt=e=>()=>e;function qn(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:l,y:u,dx:a,dy:s,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:a,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:c}})}qn.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Ym(e){return!e.ctrlKey&&!e.button}function Gm(){return this.parentNode}function Qm(e,t){return t??{x:e.x,y:e.y}}function Km(){return navigator.maxTouchPoints||"ontouchstart"in this}function Iy(){var e=Ym,t=Gm,n=Qm,r=Km,i={},o=on("start","drag","end"),l=0,u,a,s,c,f=0;function p(_){_.on("mousedown.drag",h).filter(r).on("touchstart.drag",C).on("touchmove.drag",y,Xm).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(_,D){if(!(c||!e.call(this,_,D))){var w=E(this,t.call(this,_,D),_,D,"mouse");w&&(Te(_.view).on("mousemove.drag",g,dt).on("mouseup.drag",k,dt),io(_.view),Cn(_),s=!1,u=_.clientX,a=_.clientY,w("start",_))}}function g(_){if(Ge(_),!s){var D=_.clientX-u,w=_.clientY-a;s=D*D+w*w>f}i.mouse("drag",_)}function k(_){Te(_.view).on("mousemove.drag mouseup.drag",null),lo(_.view,s),Ge(_),i.mouse("end",_)}function C(_,D){if(e.call(this,_,D)){var w=_.changedTouches,L=t.call(this,_,D),$=w.length,H,b;for(H=0;H<$;++H)(b=E(this,L,_,D,w[H].identifier,w[H]))&&(Cn(_),b("start",_,w[H]))}}function y(_){var D=_.changedTouches,w=D.length,L,$;for(L=0;L<w;++L)($=i[D[L].identifier])&&(Ge(_),$("drag",_,D[L]))}function T(_){var D=_.changedTouches,w=D.length,L,$;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),L=0;L<w;++L)($=i[D[L].identifier])&&(Cn(_),$("end",_,D[L]))}function E(_,D,w,L,$,H){var b=o.copy(),F=Ie(H||w,D),R,X,x;if((x=n.call(_,new qn("beforestart",{sourceEvent:w,target:p,identifier:$,active:l,x:F[0],y:F[1],dx:0,dy:0,dispatch:b}),L))!=null)return R=x.x-F[0]||0,X=x.y-F[1]||0,function A(S,P,M){var O=F,m;switch(S){case"start":i[$]=A,m=l++;break;case"end":delete i[$],--l;case"drag":F=Ie(M||P,D),m=l;break}b.call(S,_,new qn(S,{sourceEvent:P,subject:x,target:p,identifier:$,active:m,x:F[0]+R,y:F[1]+X,dx:F[0]-O[0],dy:F[1]-O[1],dispatch:b}),L)}}return p.filter=function(_){return arguments.length?(e=typeof _=="function"?_:zt(!!_),p):e},p.container=function(_){return arguments.length?(t=typeof _=="function"?_:zt(_),p):t},p.subject=function(_){return arguments.length?(n=typeof _=="function"?_:zt(_),p):n},p.touchable=function(_){return arguments.length?(r=typeof _=="function"?_:zt(!!_),p):r},p.on=function(){var _=o.on.apply(o,arguments);return _===o?p:_},p.clickDistance=function(_){return arguments.length?(f=(_=+_)*_,p):Math.sqrt(f)},p}function yr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function St(){}var yt=.7,Xt=1/yt,Qe="\\s*([+-]?\\d+)\\s*",xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jm=/^#([0-9a-f]{3,8})$/,Zm=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),eg=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),tg=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${xt}\\)$`),ng=new RegExp(`^rgba\\(${ve},${ve},${ve},${xt}\\)$`),rg=new RegExp(`^hsl\\(${xt},${ve},${ve}\\)$`),ig=new RegExp(`^hsla\\(${xt},${ve},${ve},${xt}\\)$`),vi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yr(St,qe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_i,formatHex:_i,formatHex8:lg,formatHsl:og,formatRgb:Si,toString:Si});function _i(){return this.rgb().formatHex()}function lg(){return this.rgb().formatHex8()}function og(){return uo(this).formatHsl()}function Si(){return this.rgb().formatRgb()}function qe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Jm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ci(t):n===3?new ae(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pt(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zm.exec(e))?new ae(t[1],t[2],t[3],1):(t=eg.exec(e))?new ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tg.exec(e))?Pt(t[1],t[2],t[3],t[4]):(t=ng.exec(e))?Pt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rg.exec(e))?Ii(t[1],t[2]/100,t[3]/100,1):(t=ig.exec(e))?Ii(t[1],t[2]/100,t[3]/100,t[4]):vi.hasOwnProperty(e)?Ci(vi[e]):e==="transparent"?new ae(NaN,NaN,NaN,0):null}function Ci(e){return new ae(e>>16&255,e>>8&255,e&255,1)}function Pt(e,t,n,r){return r<=0&&(e=t=n=NaN),new ae(e,t,n,r)}function ug(e){return e instanceof St||(e=qe(e)),e?(e=e.rgb(),new ae(e.r,e.g,e.b,e.opacity)):new ae}function Un(e,t,n,r){return arguments.length===1?ug(e):new ae(e,t,n,r??1)}function ae(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}yr(ae,Un,oo(St,{brighter(e){return e=e==null?Xt:Math.pow(Xt,e),new ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yt:Math.pow(yt,e),new ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ae(He(this.r),He(this.g),He(this.b),Yt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ei,formatHex:Ei,formatHex8:ag,formatRgb:Ai,toString:Ai}));function Ei(){return`#${Be(this.r)}${Be(this.g)}${Be(this.b)}`}function ag(){return`#${Be(this.r)}${Be(this.g)}${Be(this.b)}${Be((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ai(){const e=Yt(this.opacity);return`${e===1?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${e===1?")":`, ${e})`}`}function Yt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Be(e){return e=He(e),(e<16?"0":"")+e.toString(16)}function Ii(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new de(e,t,n,r)}function uo(e){if(e instanceof de)return new de(e.h,e.s,e.l,e.opacity);if(e instanceof St||(e=qe(e)),!e)return new de;if(e instanceof de)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,u=o-i,a=(o+i)/2;return u?(t===o?l=(n-r)/u+(n<r)*6:n===o?l=(r-t)/u+2:l=(t-n)/u+4,u/=a<.5?o+i:2-o-i,l*=60):u=a>0&&a<1?0:l,new de(l,u,a,e.opacity)}function sg(e,t,n,r){return arguments.length===1?uo(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yr(de,sg,oo(St,{brighter(e){return e=e==null?Xt:Math.pow(Xt,e),new de(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yt:Math.pow(yt,e),new de(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ae(En(e>=240?e-240:e+120,i,r),En(e,i,r),En(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new de(Ti(this.h),Dt(this.s),Dt(this.l),Yt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yt(this.opacity);return`${e===1?"hsl(":"hsla("}${Ti(this.h)}, ${Dt(this.s)*100}%, ${Dt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ti(e){return e=(e||0)%360,e<0?e+360:e}function Dt(e){return Math.max(0,Math.min(1,e||0))}function En(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const xr=e=>()=>e;function cg(e,t){return function(n){return e+n*t}}function fg(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function hg(e){return(e=+e)==1?ao:function(t,n){return n-t?fg(t,n,e):xr(isNaN(t)?n:t)}}function ao(e,t){var n=t-e;return n?cg(e,n):xr(isNaN(e)?t:e)}const Gt=function e(t){var n=hg(t);function r(i,o){var l=n((i=Un(i)).r,(o=Un(o)).r),u=n(i.g,o.g),a=n(i.b,o.b),s=ao(i.opacity,o.opacity);return function(c){return i.r=l(c),i.g=u(c),i.b=a(c),i.opacity=s(c),i+""}}return r.gamma=e,r}(1);function pg(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function mg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gg(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)i[l]=co(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(u){for(l=0;l<r;++l)o[l]=i[l](u);return o}}function dg(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function be(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yg(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=co(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var jn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,An=new RegExp(jn.source,"g");function xg(e){return function(){return e}}function kg(e){return function(t){return e(t)+""}}function so(e,t){var n=jn.lastIndex=An.lastIndex=0,r,i,o,l=-1,u=[],a=[];for(e=e+"",t=t+"";(r=jn.exec(e))&&(i=An.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),u[l]?u[l]+=o:u[++l]=o),(r=r[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,a.push({i:l,x:be(r,i)})),n=An.lastIndex;return n<t.length&&(o=t.slice(n),u[l]?u[l]+=o:u[++l]=o),u.length<2?a[0]?kg(a[0].x):xg(t):(t=a.length,function(s){for(var c=0,f;c<t;++c)u[(f=a[c]).i]=f.x(s);return u.join("")})}function co(e,t){var n=typeof t,r;return t==null||n==="boolean"?xr(t):(n==="number"?be:n==="string"?(r=qe(t))?(t=r,Gt):so:t instanceof qe?Gt:t instanceof Date?dg:mg(t)?pg:Array.isArray(t)?gg:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?yg:be)(e,t)}var zi=180/Math.PI,Wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fo(e,t,n,r,i,o){var l,u,a;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(a=e*n+t*r)&&(n-=e*a,r-=t*a),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,a/=u),e*r<t*n&&(e=-e,t=-t,a=-a,l=-l),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*zi,skewX:Math.atan(a)*zi,scaleX:l,scaleY:u}}var Ft;function wg(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Wn:fo(t.a,t.b,t.c,t.d,t.e,t.f)}function bg(e){return e==null||(Ft||(Ft=document.createElementNS("http://www.w3.org/2000/svg","g")),Ft.setAttribute("transform",e),!(e=Ft.transform.baseVal.consolidate()))?Wn:(e=e.matrix,fo(e.a,e.b,e.c,e.d,e.e,e.f))}function ho(e,t,n,r){function i(s){return s.length?s.pop()+" ":""}function o(s,c,f,p,h,g){if(s!==f||c!==p){var k=h.push("translate(",null,t,null,n);g.push({i:k-4,x:be(s,f)},{i:k-2,x:be(c,p)})}else(f||p)&&h.push("translate("+f+t+p+n)}function l(s,c,f,p){s!==c?(s-c>180?c+=360:c-s>180&&(s+=360),p.push({i:f.push(i(f)+"rotate(",null,r)-2,x:be(s,c)})):c&&f.push(i(f)+"rotate("+c+r)}function u(s,c,f,p){s!==c?p.push({i:f.push(i(f)+"skewX(",null,r)-2,x:be(s,c)}):c&&f.push(i(f)+"skewX("+c+r)}function a(s,c,f,p,h,g){if(s!==f||c!==p){var k=h.push(i(h)+"scale(",null,",",null,")");g.push({i:k-4,x:be(s,f)},{i:k-2,x:be(c,p)})}else(f!==1||p!==1)&&h.push(i(h)+"scale("+f+","+p+")")}return function(s,c){var f=[],p=[];return s=e(s),c=e(c),o(s.translateX,s.translateY,c.translateX,c.translateY,f,p),l(s.rotate,c.rotate,f,p),u(s.skewX,c.skewX,f,p),a(s.scaleX,s.scaleY,c.scaleX,c.scaleY,f,p),s=c=null,function(h){for(var g=-1,k=p.length,C;++g<k;)f[(C=p[g]).i]=C.x(h);return f.join("")}}}var vg=ho(wg,"px, ","px)","deg)"),_g=ho(bg,", ",")",")"),Sg=1e-12;function Pi(e){return((e=Math.exp(e))+1/e)/2}function Cg(e){return((e=Math.exp(e))-1/e)/2}function Eg(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ag=function e(t,n,r){function i(o,l){var u=o[0],a=o[1],s=o[2],c=l[0],f=l[1],p=l[2],h=c-u,g=f-a,k=h*h+g*g,C,y;if(k<Sg)y=Math.log(p/s)/t,C=function(L){return[u+L*h,a+L*g,s*Math.exp(t*L*y)]};else{var T=Math.sqrt(k),E=(p*p-s*s+r*k)/(2*s*n*T),_=(p*p-s*s-r*k)/(2*p*n*T),D=Math.log(Math.sqrt(E*E+1)-E),w=Math.log(Math.sqrt(_*_+1)-_);y=(w-D)/t,C=function(L){var $=L*y,H=Pi(D),b=s/(n*T)*(H*Eg(t*$+D)-Cg(D));return[u+b*h,a+b*g,s*H/Pi(t*$+D)]}}return C.duration=y*1e3*t/Math.SQRT2,C}return i.rho=function(o){var l=Math.max(.001,+o),u=l*l,a=u*u;return e(l,u,a)},i}(Math.SQRT2,2,4);var Ze=0,st=0,ut=0,po=1e3,Qt,ct,Kt=0,Ue=0,an=0,kt=typeof performance=="object"&&performance.now?performance:Date,mo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function kr(){return Ue||(mo(Ig),Ue=kt.now()+an)}function Ig(){Ue=0}function Jt(){this._call=this._time=this._next=null}Jt.prototype=go.prototype={constructor:Jt,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?kr():+n)+(t==null?0:+t),!this._next&&ct!==this&&(ct?ct._next=this:Qt=this,ct=this),this._call=e,this._time=n,Xn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xn())}};function go(e,t,n){var r=new Jt;return r.restart(e,t,n),r}function Tg(){kr(),++Ze;for(var e=Qt,t;e;)(t=Ue-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ze}function Di(){Ue=(Kt=kt.now())+an,Ze=st=0;try{Tg()}finally{Ze=0,Pg(),Ue=0}}function zg(){var e=kt.now(),t=e-Kt;t>po&&(an-=t,Kt=e)}function Pg(){for(var e,t=Qt,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Qt=n);ct=e,Xn(r)}function Xn(e){if(!Ze){st&&(st=clearTimeout(st));var t=e-Ue;t>24?(e<1/0&&(st=setTimeout(Di,e-kt.now()-an)),ut&&(ut=clearInterval(ut))):(ut||(Kt=kt.now(),ut=setInterval(zg,po)),Ze=1,mo(Di))}}function Fi(e,t,n){var r=new Jt;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Dg=on("start","end","cancel","interrupt"),Fg=[],yo=0,Li=1,Yn=2,Ot=3,Ri=4,Gn=5,Bt=6;function sn(e,t,n,r,i,o){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;Lg(e,n,{name:t,index:r,group:i,on:Dg,tween:Fg,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yo})}function wr(e,t){var n=xe(e,t);if(n.state>yo)throw new Error("too late; already scheduled");return n}function Se(e,t){var n=xe(e,t);if(n.state>Ot)throw new Error("too late; already running");return n}function xe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Lg(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=go(o,0,n.time);function o(s){n.state=Li,n.timer.restart(l,n.delay,n.time),n.delay<=s&&l(s-n.delay)}function l(s){var c,f,p,h;if(n.state!==Li)return a();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Ot)return Fi(l);h.state===Ri?(h.state=Bt,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Bt,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Fi(function(){n.state===Ot&&(n.state=Ri,n.timer.restart(u,n.delay,n.time),u(s))}),n.state=Yn,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Yn){for(n.state=Ot,i=new Array(p=n.tween.length),c=0,f=-1;c<p;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=h);i.length=f+1}}function u(s){for(var c=s<n.duration?n.ease.call(null,s/n.duration):(n.timer.restart(a),n.state=Gn,1),f=-1,p=i.length;++f<p;)i[f].call(e,c);n.state===Gn&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){n.state=Bt,n.timer.stop(),delete r[t];for(var s in r)return;delete e.__transition}}function $t(e,t){var n=e.__transition,r,i,o=!0,l;if(n){t=t==null?null:t+"";for(l in n){if((r=n[l]).name!==t){o=!1;continue}i=r.state>Yn&&r.state<Gn,r.state=Bt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[l]}o&&delete e.__transition}}function Rg(e){return this.each(function(){$t(this,e)})}function Mg(e,t){var n,r;return function(){var i=Se(this,e),o=i.tween;if(o!==n){r=n=o;for(var l=0,u=r.length;l<u;++l)if(r[l].name===t){r=r.slice(),r.splice(l,1);break}}i.tween=r}}function Ng(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Se(this,e),l=o.tween;if(l!==r){i=(r=l).slice();for(var u={name:t,value:n},a=0,s=i.length;a<s;++a)if(i[a].name===t){i[a]=u;break}a===s&&i.push(u)}o.tween=i}}function Og(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=xe(this.node(),n).tween,i=0,o=r.length,l;i<o;++i)if((l=r[i]).name===e)return l.value;return null}return this.each((t==null?Mg:Ng)(n,e,t))}function br(e,t,n){var r=e._id;return e.each(function(){var i=Se(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return xe(i,r).value[t]}}function xo(e,t){var n;return(typeof t=="number"?be:t instanceof qe?Gt:(n=qe(t))?(t=n,Gt):so)(e,t)}function Bg(e){return function(){this.removeAttribute(e)}}function $g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hg(e,t,n){var r,i=n+"",o;return function(){var l=this.getAttribute(e);return l===i?null:l===r?o:o=t(r=l,n)}}function Vg(e,t,n){var r,i=n+"",o;return function(){var l=this.getAttributeNS(e.space,e.local);return l===i?null:l===r?o:o=t(r=l,n)}}function qg(e,t,n){var r,i,o;return function(){var l,u=n(this),a;return u==null?void this.removeAttribute(e):(l=this.getAttribute(e),a=u+"",l===a?null:l===r&&a===i?o:(i=a,o=t(r=l,u)))}}function Ug(e,t,n){var r,i,o;return function(){var l,u=n(this),a;return u==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),a=u+"",l===a?null:l===r&&a===i?o:(i=a,o=t(r=l,u)))}}function jg(e,t){var n=un(e),r=n==="transform"?_g:xo;return this.attrTween(e,typeof t=="function"?(n.local?Ug:qg)(n,r,br(this,"attr."+e,t)):t==null?(n.local?$g:Bg)(n):(n.local?Vg:Hg)(n,r,t))}function Wg(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Xg(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Yg(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Xg(e,o)),n}return i._value=t,i}function Gg(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Wg(e,o)),n}return i._value=t,i}function Qg(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=un(e);return this.tween(n,(r.local?Yg:Gg)(r,t))}function Kg(e,t){return function(){wr(this,e).delay=+t.apply(this,arguments)}}function Jg(e,t){return t=+t,function(){wr(this,e).delay=t}}function Zg(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kg:Jg)(t,e)):xe(this.node(),t).delay}function ed(e,t){return function(){Se(this,e).duration=+t.apply(this,arguments)}}function td(e,t){return t=+t,function(){Se(this,e).duration=t}}function nd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ed:td)(t,e)):xe(this.node(),t).duration}function rd(e,t){if(typeof t!="function")throw new Error;return function(){Se(this,e).ease=t}}function id(e){var t=this._id;return arguments.length?this.each(rd(t,e)):xe(this.node(),t).ease}function ld(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Se(this,e).ease=n}}function od(e){if(typeof e!="function")throw new Error;return this.each(ld(this._id,e))}function ud(e){typeof e!="function"&&(e=Yl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],l=o.length,u=r[i]=[],a,s=0;s<l;++s)(a=o[s])&&e.call(a,a.__data__,s,o)&&u.push(a);return new Pe(r,this._parents,this._name,this._id)}function ad(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),l=new Array(r),u=0;u<o;++u)for(var a=t[u],s=n[u],c=a.length,f=l[u]=new Array(c),p,h=0;h<c;++h)(p=a[h]||s[h])&&(f[h]=p);for(;u<r;++u)l[u]=t[u];return new Pe(l,this._parents,this._name,this._id)}function sd(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function cd(e,t,n){var r,i,o=sd(t)?wr:Se;return function(){var l=o(this,e),u=l.on;u!==r&&(i=(r=u).copy()).on(t,n),l.on=i}}function fd(e,t){var n=this._id;return arguments.length<2?xe(this.node(),n).on.on(e):this.each(cd(n,e,t))}function hd(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function pd(){return this.on("end.remove",hd(this._id))}function md(e){var t=this._name,n=this._id;typeof e!="function"&&(e=gr(e));for(var r=this._groups,i=r.length,o=new Array(i),l=0;l<i;++l)for(var u=r[l],a=u.length,s=o[l]=new Array(a),c,f,p=0;p<a;++p)(c=u[p])&&(f=e.call(c,c.__data__,p,u))&&("__data__"in c&&(f.__data__=c.__data__),s[p]=f,sn(s[p],t,n,p,s,xe(c,n)));return new Pe(o,this._parents,t,n)}function gd(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Xl(e));for(var r=this._groups,i=r.length,o=[],l=[],u=0;u<i;++u)for(var a=r[u],s=a.length,c,f=0;f<s;++f)if(c=a[f]){for(var p=e.call(c,c.__data__,f,a),h,g=xe(c,n),k=0,C=p.length;k<C;++k)(h=p[k])&&sn(h,t,n,k,p,g);o.push(p),l.push(c)}return new Pe(o,l,t,n)}var dd=_t.prototype.constructor;function yd(){return new dd(this._groups,this._parents)}function xd(e,t){var n,r,i;return function(){var o=Je(this,e),l=(this.style.removeProperty(e),Je(this,e));return o===l?null:o===n&&l===r?i:i=t(n=o,r=l)}}function ko(e){return function(){this.style.removeProperty(e)}}function kd(e,t,n){var r,i=n+"",o;return function(){var l=Je(this,e);return l===i?null:l===r?o:o=t(r=l,n)}}function wd(e,t,n){var r,i,o;return function(){var l=Je(this,e),u=n(this),a=u+"";return u==null&&(a=u=(this.style.removeProperty(e),Je(this,e))),l===a?null:l===r&&a===i?o:(i=a,o=t(r=l,u))}}function bd(e,t){var n,r,i,o="style."+t,l="end."+o,u;return function(){var a=Se(this,e),s=a.on,c=a.value[o]==null?u||(u=ko(t)):void 0;(s!==n||i!==c)&&(r=(n=s).copy()).on(l,i=c),a.on=r}}function vd(e,t,n){var r=(e+="")=="transform"?vg:xo;return t==null?this.styleTween(e,xd(e,r)).on("end.style."+e,ko(e)):typeof t=="function"?this.styleTween(e,wd(e,r,br(this,"style."+e,t))).each(bd(this._id,e)):this.styleTween(e,kd(e,r,t),n).on("end.style."+e,null)}function _d(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Sd(e,t,n){var r,i;function o(){var l=t.apply(this,arguments);return l!==i&&(r=(i=l)&&_d(e,l,n)),r}return o._value=t,o}function Cd(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Sd(e,t,n??""))}function Ed(e){return function(){this.textContent=e}}function Ad(e){return function(){var t=e(this);this.textContent=t??""}}function Id(e){return this.tween("text",typeof e=="function"?Ad(br(this,"text",e)):Ed(e==null?"":e+""))}function Td(e){return function(t){this.textContent=e.call(this,t)}}function zd(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Td(i)),t}return r._value=e,r}function Pd(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,zd(e))}function Dd(){for(var e=this._name,t=this._id,n=wo(),r=this._groups,i=r.length,o=0;o<i;++o)for(var l=r[o],u=l.length,a,s=0;s<u;++s)if(a=l[s]){var c=xe(a,t);sn(a,e,n,s,l,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Pe(r,this._parents,e,n)}function Fd(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,l){var u={value:l},a={value:function(){--i===0&&o()}};n.each(function(){var s=Se(this,r),c=s.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(a)),s.on=t}),i===0&&o()})}var Ld=0;function Pe(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function wo(){return++Ld}var Ae=_t.prototype;Pe.prototype={constructor:Pe,select:md,selectAll:gd,selectChild:Ae.selectChild,selectChildren:Ae.selectChildren,filter:ud,merge:ad,selection:yd,transition:Dd,call:Ae.call,nodes:Ae.nodes,node:Ae.node,size:Ae.size,empty:Ae.empty,each:Ae.each,on:fd,attr:jg,attrTween:Qg,style:vd,styleTween:Cd,text:Id,textTween:Pd,remove:pd,tween:Og,delay:Zg,duration:nd,ease:id,easeVarying:od,end:Fd,[Symbol.iterator]:Ae[Symbol.iterator]};function Rd(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Md={time:null,delay:0,duration:250,ease:Rd};function Nd(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Od(e){var t,n;e instanceof Pe?(t=e._id,e=e._name):(t=wo(),(n=Md).time=kr(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var l=r[o],u=l.length,a,s=0;s<u;++s)(a=l[s])&&sn(a,e,t,s,l,n||Nd(a,t));return new Pe(r,this._parents,e,t)}_t.prototype.interrupt=Rg;_t.prototype.transition=Od;const Lt=e=>()=>e;function Bd(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ze(e,t,n){this.k=e,this.x=t,this.y=n}ze.prototype={constructor:ze,scale:function(e){return e===1?this:new ze(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ze(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vr=new ze(1,0,0);$d.prototype=ze.prototype;function $d(e){for(;!e.__zoom;)if(!(e=e.parentNode))return vr;return e.__zoom}function In(e){e.stopImmediatePropagation()}function at(e){e.preventDefault(),e.stopImmediatePropagation()}function Hd(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Vd(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Mi(){return this.__zoom||vr}function qd(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ud(){return navigator.maxTouchPoints||"ontouchstart"in this}function jd(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],l=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),l>o?(o+l)/2:Math.min(0,o)||Math.max(0,l))}function Ty(){var e=Hd,t=Vd,n=jd,r=qd,i=Ud,o=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,a=Ag,s=on("start","zoom","end"),c,f,p,h=500,g=150,k=0,C=10;function y(x){x.property("__zoom",Mi).on("wheel.zoom",$,{passive:!1}).on("mousedown.zoom",H).on("dblclick.zoom",b).filter(i).on("touchstart.zoom",F).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",X).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(x,A,S,P){var M=x.selection?x.selection():x;M.property("__zoom",Mi),x!==M?D(x,A,S,P):M.interrupt().each(function(){w(this,arguments).event(P).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},y.scaleBy=function(x,A,S,P){y.scaleTo(x,function(){var M=this.__zoom.k,O=typeof A=="function"?A.apply(this,arguments):A;return M*O},S,P)},y.scaleTo=function(x,A,S,P){y.transform(x,function(){var M=t.apply(this,arguments),O=this.__zoom,m=S==null?_(M):typeof S=="function"?S.apply(this,arguments):S,q=O.invert(m),Y=typeof A=="function"?A.apply(this,arguments):A;return n(E(T(O,Y),m,q),M,l)},S,P)},y.translateBy=function(x,A,S,P){y.transform(x,function(){return n(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof S=="function"?S.apply(this,arguments):S),t.apply(this,arguments),l)},null,P)},y.translateTo=function(x,A,S,P,M){y.transform(x,function(){var O=t.apply(this,arguments),m=this.__zoom,q=P==null?_(O):typeof P=="function"?P.apply(this,arguments):P;return n(vr.translate(q[0],q[1]).scale(m.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof S=="function"?-S.apply(this,arguments):-S),O,l)},P,M)};function T(x,A){return A=Math.max(o[0],Math.min(o[1],A)),A===x.k?x:new ze(A,x.x,x.y)}function E(x,A,S){var P=A[0]-S[0]*x.k,M=A[1]-S[1]*x.k;return P===x.x&&M===x.y?x:new ze(x.k,P,M)}function _(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function D(x,A,S,P){x.on("start.zoom",function(){w(this,arguments).event(P).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(P).end()}).tween("zoom",function(){var M=this,O=arguments,m=w(M,O).event(P),q=t.apply(M,O),Y=S==null?_(q):typeof S=="function"?S.apply(M,O):S,d=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),G=M.__zoom,te=typeof A=="function"?A.apply(M,O):A,Q=a(G.invert(Y).concat(d/G.k),te.invert(Y).concat(d/te.k));return function(re){if(re===1)re=te;else{var ne=Q(re),ke=d/ne[2];re=new ze(ke,Y[0]-ne[0]*ke,Y[1]-ne[1]*ke)}m.zoom(null,re)}})}function w(x,A,S){return!S&&x.__zooming||new L(x,A)}function L(x,A){this.that=x,this.args=A,this.active=0,this.sourceEvent=null,this.extent=t.apply(x,A),this.taps=0}L.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,A){return this.mouse&&x!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var A=Te(this.that).datum();s.call(x,this.that,new Bd(x,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:s}),A)}};function $(x,...A){if(!e.apply(this,arguments))return;var S=w(this,A).event(x),P=this.__zoom,M=Math.max(o[0],Math.min(o[1],P.k*Math.pow(2,r.apply(this,arguments)))),O=Ie(x);if(S.wheel)(S.mouse[0][0]!==O[0]||S.mouse[0][1]!==O[1])&&(S.mouse[1]=P.invert(S.mouse[0]=O)),clearTimeout(S.wheel);else{if(P.k===M)return;S.mouse=[O,P.invert(O)],$t(this),S.start()}at(x),S.wheel=setTimeout(m,g),S.zoom("mouse",n(E(T(P,M),S.mouse[0],S.mouse[1]),S.extent,l));function m(){S.wheel=null,S.end()}}function H(x,...A){if(p||!e.apply(this,arguments))return;var S=x.currentTarget,P=w(this,A,!0).event(x),M=Te(x.view).on("mousemove.zoom",Y,!0).on("mouseup.zoom",d,!0),O=Ie(x,S),m=x.clientX,q=x.clientY;io(x.view),In(x),P.mouse=[O,this.__zoom.invert(O)],$t(this),P.start();function Y(G){if(at(G),!P.moved){var te=G.clientX-m,Q=G.clientY-q;P.moved=te*te+Q*Q>k}P.event(G).zoom("mouse",n(E(P.that.__zoom,P.mouse[0]=Ie(G,S),P.mouse[1]),P.extent,l))}function d(G){M.on("mousemove.zoom mouseup.zoom",null),lo(G.view,P.moved),at(G),P.event(G).end()}}function b(x,...A){if(e.apply(this,arguments)){var S=this.__zoom,P=Ie(x.changedTouches?x.changedTouches[0]:x,this),M=S.invert(P),O=S.k*(x.shiftKey?.5:2),m=n(E(T(S,O),P,M),t.apply(this,A),l);at(x),u>0?Te(this).transition().duration(u).call(D,m,P,x):Te(this).call(y.transform,m,P,x)}}function F(x,...A){if(e.apply(this,arguments)){var S=x.touches,P=S.length,M=w(this,A,x.changedTouches.length===P).event(x),O,m,q,Y;for(In(x),m=0;m<P;++m)q=S[m],Y=Ie(q,this),Y=[Y,this.__zoom.invert(Y),q.identifier],M.touch0?!M.touch1&&M.touch0[2]!==Y[2]&&(M.touch1=Y,M.taps=0):(M.touch0=Y,O=!0,M.taps=1+!!c);c&&(c=clearTimeout(c)),O&&(M.taps<2&&(f=Y[0],c=setTimeout(function(){c=null},h)),$t(this),M.start())}}function R(x,...A){if(this.__zooming){var S=w(this,A).event(x),P=x.changedTouches,M=P.length,O,m,q,Y;for(at(x),O=0;O<M;++O)m=P[O],q=Ie(m,this),S.touch0&&S.touch0[2]===m.identifier?S.touch0[0]=q:S.touch1&&S.touch1[2]===m.identifier&&(S.touch1[0]=q);if(m=S.that.__zoom,S.touch1){var d=S.touch0[0],G=S.touch0[1],te=S.touch1[0],Q=S.touch1[1],re=(re=te[0]-d[0])*re+(re=te[1]-d[1])*re,ne=(ne=Q[0]-G[0])*ne+(ne=Q[1]-G[1])*ne;m=T(m,Math.sqrt(re/ne)),q=[(d[0]+te[0])/2,(d[1]+te[1])/2],Y=[(G[0]+Q[0])/2,(G[1]+Q[1])/2]}else if(S.touch0)q=S.touch0[0],Y=S.touch0[1];else return;S.zoom("touch",n(E(m,q,Y),S.extent,l))}}function X(x,...A){if(this.__zooming){var S=w(this,A).event(x),P=x.changedTouches,M=P.length,O,m;for(In(x),p&&clearTimeout(p),p=setTimeout(function(){p=null},h),O=0;O<M;++O)m=P[O],S.touch0&&S.touch0[2]===m.identifier?delete S.touch0:S.touch1&&S.touch1[2]===m.identifier&&delete S.touch1;if(S.touch1&&!S.touch0&&(S.touch0=S.touch1,delete S.touch1),S.touch0)S.touch0[1]=this.__zoom.invert(S.touch0[0]);else if(S.end(),S.taps===2&&(m=Ie(m,this),Math.hypot(f[0]-m[0],f[1]-m[1])<C)){var q=Te(this).on("dblclick.zoom");q&&q.apply(this,arguments)}}}return y.wheelDelta=function(x){return arguments.length?(r=typeof x=="function"?x:Lt(+x),y):r},y.filter=function(x){return arguments.length?(e=typeof x=="function"?x:Lt(!!x),y):e},y.touchable=function(x){return arguments.length?(i=typeof x=="function"?x:Lt(!!x),y):i},y.extent=function(x){return arguments.length?(t=typeof x=="function"?x:Lt([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),y):t},y.scaleExtent=function(x){return arguments.length?(o[0]=+x[0],o[1]=+x[1],y):[o[0],o[1]]},y.translateExtent=function(x){return arguments.length?(l[0][0]=+x[0][0],l[1][0]=+x[1][0],l[0][1]=+x[0][1],l[1][1]=+x[1][1],y):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},y.constrain=function(x){return arguments.length?(n=x,y):n},y.duration=function(x){return arguments.length?(u=+x,y):u},y.interpolate=function(x){return arguments.length?(a=x,y):a},y.on=function(){var x=s.on.apply(s,arguments);return x===s?y:x},y.clickDistance=function(x){return arguments.length?(k=(x=+x)*x,y):Math.sqrt(k)},y.tapDistance=function(x){return arguments.length?(C=+x,y):C},y}var bo={exports:{}},vo={},_o={exports:{}},So={};/**
30
- * @license React
31
- * use-sync-external-store-shim.production.js
32
- *
33
- * Copyright (c) Meta Platforms, Inc. and affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */var et=Bi;function Wd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xd=typeof Object.is=="function"?Object.is:Wd,Yd=et.useState,Gd=et.useEffect,Qd=et.useLayoutEffect,Kd=et.useDebugValue;function Jd(e,t){var n=t(),r=Yd({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Qd(function(){i.value=n,i.getSnapshot=t,Tn(i)&&o({inst:i})},[e,n,t]),Gd(function(){return Tn(i)&&o({inst:i}),e(function(){Tn(i)&&o({inst:i})})},[e]),Kd(n),n}function Tn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xd(e,n)}catch{return!0}}function Zd(e,t){return t()}var ey=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zd:Jd;So.useSyncExternalStore=et.useSyncExternalStore!==void 0?et.useSyncExternalStore:ey;_o.exports=So;var ty=_o.exports;/**
38
- * @license React
39
- * use-sync-external-store-shim/with-selector.production.js
40
- *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */var cn=Bi,ny=ty;function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iy=typeof Object.is=="function"?Object.is:ry,ly=ny.useSyncExternalStore,oy=cn.useRef,uy=cn.useEffect,ay=cn.useMemo,sy=cn.useDebugValue;vo.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=oy(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=ay(function(){function a(h){if(!s){if(s=!0,c=h,h=r(h),i!==void 0&&l.hasValue){var g=l.value;if(i(g,h))return f=g}return f=h}if(g=f,iy(c,h))return g;var k=r(h);return i!==void 0&&i(g,k)?(c=h,g):(c=h,f=k)}var s=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,i]);var u=ly(e,o[0],o[1]);return uy(function(){l.hasValue=!0,l.value=u},[u]),sy(u),u};bo.exports=vo;var cy=bo.exports;const fy=Qn(cy),hy={},Ni=e=>{let t;const n=new Set,r=(c,f)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,h))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>s,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(hy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,i,a);return a},py=e=>e?Ni(e):Ni,{useDebugValue:my}=Ro,{useSyncExternalStoreWithSelector:gy}=fy,dy=e=>e;function yy(e,t=dy,n){const r=gy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return my(r),r}const Oi=(e,t)=>{const n=py(e),r=(i,o=t)=>yy(n,i,o);return Object.assign(r,n),r},zy=(e,t)=>e?Oi(e,t):Oi;function Py(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}export{Jc as V,zy as a,Sy as b,cp as c,ky as d,wy as e,vy as f,by as g,Ay as h,Cy as i,Ey as j,Te as k,Iy as l,vr as m,Ag as n,co as o,Ie as p,$d as q,Py as s,_y as t,yy as u,bl as v,Ty as z};