ghost-api-cli 0.2.0__py3-none-any.whl
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.
- ghost_api/__init__.py +3 -0
- ghost_api/__main__.py +5 -0
- ghost_api/adopt.py +173 -0
- ghost_api/agent/__init__.py +0 -0
- ghost_api/agent/orchestrator.py +413 -0
- ghost_api/agent/prompts.py +149 -0
- ghost_api/agent/tools.py +84 -0
- ghost_api/analysis/__init__.py +0 -0
- ghost_api/analysis/analyzer.py +130 -0
- ghost_api/analysis/detectors.py +188 -0
- ghost_api/analysis/exposure.py +80 -0
- ghost_api/analysis/graphql.py +67 -0
- ghost_api/analysis/models.py +64 -0
- ghost_api/analysis/schema.py +109 -0
- ghost_api/analysis/url_grouping.py +217 -0
- ghost_api/api.py +264 -0
- ghost_api/audit.py +78 -0
- ghost_api/browser/__init__.py +0 -0
- ghost_api/browser/auth_state.py +172 -0
- ghost_api/browser/driver.py +273 -0
- ghost_api/browser/egress.py +183 -0
- ghost_api/browser/gate.py +127 -0
- ghost_api/browser/install.py +28 -0
- ghost_api/browser/snapshot.py +221 -0
- ghost_api/capture/__init__.py +0 -0
- ghost_api/capture/filters.py +255 -0
- ghost_api/capture/har.py +148 -0
- ghost_api/capture/models.py +41 -0
- ghost_api/capture/personal.py +188 -0
- ghost_api/capture/recorder.py +181 -0
- ghost_api/cli/__init__.py +44 -0
- ghost_api/cli/_common.py +219 -0
- ghost_api/cli/client.py +487 -0
- ghost_api/cli/data.py +492 -0
- ghost_api/cli/explore.py +379 -0
- ghost_api/cli/manage.py +437 -0
- ghost_api/config.py +132 -0
- ghost_api/drift.py +344 -0
- ghost_api/drive.py +211 -0
- ghost_api/errors.py +106 -0
- ghost_api/events.py +213 -0
- ghost_api/exitcodes.py +21 -0
- ghost_api/export/__init__.py +71 -0
- ghost_api/export/confidence.py +45 -0
- ghost_api/export/html.py +41 -0
- ghost_api/export/openapi.py +201 -0
- ghost_api/export/report.py +227 -0
- ghost_api/export/site_data.py +196 -0
- ghost_api/export/tabular.py +88 -0
- ghost_api/export/viewer/report.html +286 -0
- ghost_api/generator/__init__.py +221 -0
- ghost_api/generator/cassettes.py +80 -0
- ghost_api/generator/models_gen.py +144 -0
- ghost_api/generator/naming.py +174 -0
- ghost_api/generator/package.py +197 -0
- ghost_api/generator/python_gen.py +172 -0
- ghost_api/generator/spec.py +486 -0
- ghost_api/generator/templates/client.py.j2 +518 -0
- ghost_api/generator/templates/client.test.ts.j2 +106 -0
- ghost_api/generator/templates/client.ts.j2 +339 -0
- ghost_api/generator/templates/models.py.j2 +45 -0
- ghost_api/generator/templates/package_readme.md.j2 +111 -0
- ghost_api/generator/templates/pyproject.toml.j2 +22 -0
- ghost_api/generator/templates/test_client.py.j2 +105 -0
- ghost_api/generator/ts_gen.py +232 -0
- ghost_api/integrations/__init__.py +0 -0
- ghost_api/integrations/claude_code/commands/ghost-data.md +10 -0
- ghost_api/integrations/claude_code/commands/ghost-diff.md +10 -0
- ghost_api/integrations/claude_code/commands/ghost-explore.md +10 -0
- ghost_api/integrations/claude_code/skills/ghost-api/SKILL.md +46 -0
- ghost_api/integrations/setup.py +84 -0
- ghost_api/llm/__init__.py +0 -0
- ghost_api/llm/doctor.py +60 -0
- ghost_api/llm/gateway.py +476 -0
- ghost_api/llm/providers.py +124 -0
- ghost_api/memory/__init__.py +0 -0
- ghost_api/memory/knowledge.py +157 -0
- ghost_api/memory/store.py +883 -0
- ghost_api/net.py +235 -0
- ghost_api/netguard.py +203 -0
- ghost_api/pipeline.py +745 -0
- ghost_api/probe/__init__.py +0 -0
- ghost_api/probe/prober.py +311 -0
- ghost_api/probe/replay.py +313 -0
- ghost_api/project.py +186 -0
- ghost_api/py.typed +0 -0
- ghost_api/runtime.py +397 -0
- ghost_api/serve/__init__.py +101 -0
- ghost_api/serve/explorer_mcp.py +305 -0
- ghost_api/serve/mcp.py +121 -0
- ghost_api/serve/mock.py +130 -0
- ghost_api/serve/rest.py +132 -0
- ghost_api/site.py +84 -0
- ghost_api/specdiff.py +122 -0
- ghost_api/ui/__init__.py +0 -0
- ghost_api/ui/keys.py +134 -0
- ghost_api/ui/repl.py +453 -0
- ghost_api/ui/terminal.py +573 -0
- ghost_api/verify/__init__.py +0 -0
- ghost_api/verify/classify.py +84 -0
- ghost_api/verify/repair.py +40 -0
- ghost_api/verify/runner.py +110 -0
- ghost_api/verify/verifier.py +291 -0
- ghost_api/watch.py +313 -0
- ghost_api/web/__init__.py +1 -0
- ghost_api/web/server.py +690 -0
- ghost_api/web/static/assets/Endpoints-zPnjlcM8.js +46 -0
- ghost_api/web/static/assets/Run-D85zWHey.js +91 -0
- ghost_api/web/static/assets/Settings-D0aWHFAt.js +11 -0
- ghost_api/web/static/assets/Site-a88shEmP.js +71 -0
- ghost_api/web/static/assets/Watches-CqZWIa9G.js +16 -0
- ghost_api/web/static/assets/circle-x-BcTE_1tr.js +11 -0
- ghost_api/web/static/assets/index-Ds2e5B9f.js +141 -0
- ghost_api/web/static/assets/index-xQpyIBbG.css +1 -0
- ghost_api/web/static/assets/minus-C2xqP1eQ.js +6 -0
- ghost_api/web/static/assets/refresh-cw-CxdR_8Oi.js +6 -0
- ghost_api/web/static/favicon.svg +1 -0
- ghost_api/web/static/index.html +26 -0
- ghost_api/workflows.py +203 -0
- ghost_api_cli-0.2.0.dist-info/METADATA +1019 -0
- ghost_api_cli-0.2.0.dist-info/RECORD +125 -0
- ghost_api_cli-0.2.0.dist-info/WHEEL +5 -0
- ghost_api_cli-0.2.0.dist-info/entry_points.txt +2 -0
- ghost_api_cli-0.2.0.dist-info/licenses/LICENSE +21 -0
- ghost_api_cli-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import{c as sn,j as y,r as je,b as pt,E as bn,i as So,k as tr,C as Rn,e as In,a as Xe,B as an,f as Ue,P as Hi,d as mr,L as xr,l as Co,u as Ao,m as _o,n as To,o as rr,g as Nn,p as Vn,t as qi,T as No,q as Io}from"./index-Ds2e5B9f.js";import{C as vo,S as Ro,A as Mo,b as Oo,E as Lo,c as Po}from"./Endpoints-zPnjlcM8.js";import{R as Vi}from"./refresh-cw-CxdR_8Oi.js";function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/**
|
|
2
|
+
* @license lucide-react v0.468.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Do=sn("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
7
|
+
* @license lucide-react v0.468.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const jo=sn("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
12
|
+
* @license lucide-react v0.468.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const br=sn("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
17
|
+
* @license lucide-react v0.468.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const jt=sn("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
|
|
22
|
+
* @license lucide-react v0.468.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const zo=sn("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
27
|
+
* @license lucide-react v0.468.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const Qr=sn("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
32
|
+
* @license lucide-react v0.468.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const Wi=sn("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
37
|
+
* @license lucide-react v0.468.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const Fo=sn("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);function Bo(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const $o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ho={};function Zr(e,n){return(Ho.jsx?Uo:$o).test(e)}const qo=/[ \t\n\f\r]/g;function Vo(e){return typeof e=="object"?e.type==="text"?Jr(e.value):!1:Jr(e)}function Jr(e){return e.replace(qo,"")===""}class Gn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Gn.prototype.normal={};Gn.prototype.property={};Gn.prototype.space=void 0;function Gi(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Gn(t,r,n)}function ir(e){return e.toLowerCase()}class Me{constructor(n,t){this.attribute=t,this.property=n}}Me.prototype.attribute="";Me.prototype.booleanish=!1;Me.prototype.boolean=!1;Me.prototype.commaOrSpaceSeparated=!1;Me.prototype.commaSeparated=!1;Me.prototype.defined=!1;Me.prototype.mustUseProperty=!1;Me.prototype.number=!1;Me.prototype.overloadedBoolean=!1;Me.prototype.property="";Me.prototype.spaceSeparated=!1;Me.prototype.space=void 0;let Wo=0;const G=wn(),xe=wn(),lr=wn(),T=wn(),se=wn(),yn=wn(),De=wn();function wn(){return 2**++Wo}const or=Object.freeze(Object.defineProperty({__proto__:null,boolean:G,booleanish:xe,commaOrSpaceSeparated:De,commaSeparated:yn,number:T,overloadedBoolean:lr,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),zt=Object.keys(or);class kr extends Me{constructor(n,t,r,i){let o=-1;if(super(n,t),ei(this,"space",i),typeof r=="number")for(;++o<zt.length;){const l=zt[o];ei(this,zt[o],(r&or[l])===or[l])}}}kr.prototype.defined=!0;function ei(e,n,t){t&&(e[n]=t)}function Mn(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new kr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[ir(r)]=r,t[ir(o.attribute)]=r}return new Gn(n,t,e.space)}const Ki=Mn({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:se,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:T,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:se,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:xe,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Xi(e,n){return n in e?e[n]:n}function Yi(e,n){return Xi(e,n.toLowerCase())}const Go=Mn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yn,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alpha:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:se,autoFocus:G,autoPlay:G,blocking:se,capture:null,charSet:null,checked:G,cite:null,className:se,closedBy:null,colorSpace:null,cols:T,colSpan:T,command:null,commandFor:null,content:null,contentEditable:xe,controls:G,controlsList:se,coords:T|yn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:lr,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:se,height:T,hidden:lr,high:T,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:se,itemRef:se,itemScope:G,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,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:G,optimum:T,pattern:null,ping:se,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:se,required:G,reversed:G,rows:T,rowSpan:T,sandbox:se,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootCustomElementRegistry:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shadowRootSerializable:G,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:xe,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:G,disablePictureInPicture:G,disableRemotePlayback:G,exportParts:yn,part:se,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:Yi}),Ko=Mn({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:De,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yn,g2:yn,glyphName:yn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:De,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:De,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:De,rev:De,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:De,requiredFeatures:De,requiredFonts:De,requiredFormats:De,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:De,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:De,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:De,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xi}),Qi=Mn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Zi=Mn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Yi}),Ji=Mn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Xo={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Yo=/[A-Z]/g,ni=/-[a-z]/g,Qo=/^data[-\w.:]+$/i;function Zo(e,n){const t=ir(n);let r=n,i=Me;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Qo.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(ni,ea);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!ni.test(o)){let l=o.replace(Yo,Jo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=kr}return new i(r,n)}function Jo(e){return"-"+e.toLowerCase()}function ea(e){return e.charAt(1).toUpperCase()}const na=Gi([Ki,Go,Qi,Zi,Ji],"html"),wr=Gi([Ki,Ko,Qi,Zi,Ji],"svg");function ta(e){return e.join(" ").trim()}var An={},Ft,ti;function ra(){if(ti)return Ft;ti=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
42
|
+
`,u="/",c="*",f="",p="comment",h="declaration";function m(A,b){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];b=b||{};var N=1,_=1;function q(j){var O=j.match(n);O&&(N+=O.length);var te=j.lastIndexOf(s);_=~te?j.length-te:_+j.length}function F(){var j={line:N,column:_};return function(O){return O.position=new S(j),oe(),O}}function S(j){this.start=j,this.end={line:N,column:_},this.source=b.source}S.prototype.content=A;function U(j){var O=new Error(b.source+":"+N+":"+_+": "+j);if(O.reason=j,O.filename=b.source,O.line=N,O.column=_,O.source=A,!b.silent)throw O}function K(j){var O=j.exec(A);if(O){var te=O[0];return q(te),A=A.slice(te.length),O}}function oe(){K(t)}function w(j){var O;for(j=j||[];O=R();)O!==!1&&j.push(O);return j}function R(){var j=F();if(!(u!=A.charAt(0)||c!=A.charAt(1))){for(var O=2;f!=A.charAt(O)&&(c!=A.charAt(O)||u!=A.charAt(O+1));)++O;if(O+=2,f===A.charAt(O-1))return U("End of comment missing");var te=A.slice(2,O-2);return _+=2,q(te),A=A.slice(O),_+=2,j({type:p,comment:te})}}function B(){var j=F(),O=K(r);if(O){if(R(),!K(i))return U("property missing ':'");var te=K(o),he=j({type:h,property:k(O[0].replace(e,f)),value:te?k(te[0].replace(e,f)):f});return K(l),he}}function ne(){var j=[];w(j);for(var O;O=B();)O!==!1&&(j.push(O),w(j));return j}return oe(),ne()}function k(A){return A?A.replace(a,f):f}return Ft=m,Ft}var ri;function ia(){if(ri)return An;ri=1;var e=An&&An.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(An,"__esModule",{value:!0}),An.default=t;const n=e(ra());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:c}=s;a?i(u,c,s):c&&(o=o||{},o[u]=c)}),o}return An}var jn={},ii;function la(){if(ii)return jn;ii=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},s=function(u,c){return c===void 0&&(c={}),o(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return jn.camelCase=s,jn}var zn,li;function oa(){if(li)return zn;li=1;var e=zn&&zn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ia()),t=la();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,zn=r,zn}var aa=oa();const sa=yr(aa),el=nl("end"),Er=nl("start");function nl(e){return n;function n(t){const r=t&&t.position&&t.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 ua(e){const n=Er(e),t=el(e);if(n&&t)return{start:n,end:t}}function Un(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?oi(e.position):"start"in e||"end"in e?oi(e):"line"in e||"column"in e?ar(e):""}function ar(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function oi(e){return ar(e&&e.start)+"-"+ar(e&&e.end)}function ai(e){return e&&typeof e=="number"?e:1}class Ne extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Un(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}}Ne.prototype.file="";Ne.prototype.name="";Ne.prototype.reason="";Ne.prototype.message="";Ne.prototype.stack="";Ne.prototype.column=void 0;Ne.prototype.line=void 0;Ne.prototype.ancestors=void 0;Ne.prototype.cause=void 0;Ne.prototype.fatal=void 0;Ne.prototype.place=void 0;Ne.prototype.ruleId=void 0;Ne.prototype.source=void 0;const Sr={}.hasOwnProperty,ca=new Map,fa=/[A-Z]/g,ha=new Set(["table","tbody","thead","tfoot","tr"]),pa=new Set(["td","th"]),tl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function da(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ea(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=wa(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?wr:na,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=rl(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function rl(e,n,t){if(n.type==="element")return ga(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ma(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ya(e,n,t);if(n.type==="mdxjsEsm")return xa(e,n);if(n.type==="root")return ba(e,n,t);if(n.type==="text")return ka(e,n)}function ga(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=wr,e.schema=i),e.ancestors.push(n);const o=ll(e,n.tagName,!1),l=Sa(e,n);let a=Ar(e,n);return ha.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Vo(s):!0})),il(e,l,o,n),Cr(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ma(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Wn(e,n.position)}function xa(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Wn(e,n.position)}function ya(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=wr,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:ll(e,n.name,!0),l=Ca(e,n),a=Ar(e,n);return il(e,l,o,n),Cr(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ba(e,n,t){const r={};return Cr(r,Ar(e,n)),e.create(n,e.Fragment,r,t)}function ka(e,n){return n.value}function il(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Cr(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function wa(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Ea(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=Er(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Sa(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Sr.call(n.properties,i)){const o=Aa(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&pa.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ca(e,n){const t={};for(const r of n.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 a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Wn(e,n.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 a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Wn(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Ar(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ca;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=rl(e,o,l);a!==void 0&&t.push(a)}return t}function Aa(e,n,t){const r=Zo(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Bo(t):ta(t)),r.property==="style"){let i=typeof t=="object"?t:_a(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ta(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Xo[r.property]||r.property:r.attribute,t]}}function _a(e,n){try{return sa(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Ne("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=tl+"#cannot-parse-style-attribute",i}}function ll(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Zr(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Zr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Sr.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Wn(e)}function Wn(e,n){const t=new Ne("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=tl+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ta(e){const n={};let t;for(t in e)Sr.call(e,t)&&(n[Na(t)]=e[t]);return n}function Na(e){let n=e.replace(fa,Ia);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ia(e){return"-"+e.toLowerCase()}const Bt={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"]},va={};function _r(e,n){const t=va,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ol(e,r,i)}function ol(e,n,t){if(Ra(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return si(e.children,n,t)}return Array.isArray(e)?si(e,n,t):""}function si(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=ol(e[i],n,t);return r.join("")}function Ra(e){return!!(e&&typeof e=="object")}const ui=document.createElement("i");function Tr(e){const n="&"+e+";";ui.innerHTML=n;const t=ui.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function He(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function Fe(e,n){return e.length>0?(He(e,e.length,0,n),e):n}const ci={}.hasOwnProperty;function al(e){const n={};let t=-1;for(;++t<e.length;)Ma(n,e[t]);return n}function Ma(e,n){let t;for(t in n){const i=(ci.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){ci.call(i,l)||(i[l]=[]);const a=o[l];Oa(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Oa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);He(e,0,0,r)}function sl(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function qe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ve=un(/[A-Za-z]/),Te=un(/[\dA-Za-z]/),La=un(/[#-'*+\--9=?A-Z^-~]/);function gt(e){return e!==null&&(e<32||e===127)}const sr=un(/\d/),Pa=un(/[\dA-Fa-f]/),Da=un(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const wt=un(new RegExp("\\p{P}|\\p{S}","u")),kn=un(/\s/);function un(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function On(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Te(e.charCodeAt(t+1))&&Te(e.charCodeAt(t+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 a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function re(e,n,t,r){const i=r?r-1:1/0;let o=0;return l;function l(s){return J(s)?(e.enter(t),a(s)):n(s)}function a(s){return J(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}function ul(e,n,t,r,i,o){let l=0;return a;function a(c){return J(c)?(e.enter(r),s(c)):u(c)}function s(c){return J(c)&&l<o?(e.consume(c),l++,s):(e.exit(r),u(c))}function u(c){return l>=i?n(c):t(c)}}const ja={tokenize:za};function za(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),re(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return H(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}let mt=class{constructor(){this.index=new Map,this.map=[]}add(n,t,r){fi(this,n,t,r,!1)}addBefore(n,t,r){fi(this,n,t,r,!0)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function fi(e,n,t,r,i){if(t===0&&r.length===0)return;const o=e.index.get(n);if(o){o[1]+=t,i?(r.push(...o[2]),o[2]=r):o[2].push(...r);return}const l=[n,t,r];e.map.push(l),e.index.set(n,l)}const Fa={tokenize:Ba},hi={tokenize:$a};function Ba(e){const n=this,t=[];let r=0,i,o,l;return a;function a(_){if(r<t.length){const q=t[r];return n.containerState=q[1],e.attempt(q[0].continuation,s,u)(_)}return u(_)}function s(_){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&N();const q=n.events.length;let F=q,S;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){S=n.events[F][1].end;break}b(r);let U=q;for(;U<n.events.length;)n.events[U][1].end={...S},U++;const K=new mt;return K.add(F+1,0,n.events.slice(q)),K.add(q,U-q,[]),K.consume(n.events),u(_)}return a(_)}function u(_){if(r===t.length){if(!i)return p(_);if(i.currentConstruct&&i.currentConstruct.concrete)return m(_);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(hi,c,f)(_)}function c(_){return i&&N(),b(r),p(_)}function f(_){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,m(_)}function p(_){return n.containerState={},e.attempt(hi,h,m)(_)}function h(_){return r++,t.push([n.currentConstruct,n.containerState]),p(_)}function m(_){if(_===null){i&&N(),b(0),e.consume(_);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(_)}function k(_){if(_===null){A(e.exit("chunkFlow"),!0),b(0),e.consume(_);return}return H(_)?(e.consume(_),A(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(_),k)}function A(_,q){const F=n.sliceStream(_);if(q&&F.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(F),n.parser.lazy[_.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const U=n.events.length;let K=U,oe,w;for(;K--;)if(n.events[K][0]==="exit"&&n.events[K][1].type==="chunkFlow"){if(oe){w=n.events[K][1].end;break}oe=!0}for(b(r),S=U;S<n.events.length;)n.events[S][1].end={...w},S++;const R=new mt;R.add(K+1,0,n.events.slice(U)),R.add(U,S-U,[]),R.consume(n.events)}}function b(_){let q=t.length;for(;q-- >_;){const F=t[q];n.containerState=F[1],F[0].exit.call(n,e)}t.length=_}function N(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function $a(e,n,t){return re(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xt(e){if(e===null||ue(e)||kn(e))return 1;if(wt(e))return 2}function Et(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const ur={name:"attention",resolveAll:Ua,tokenize:Ha};function Ua(e,n){let t=-1,r;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){let i=t;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;const o=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1,l={...e[i][1].end},a={...e[t][1].start};pi(l,-o),pi(a,o);const s={type:o>1?"strongSequence":"emphasisSequence",start:l,end:{...e[i][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:a},c={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},f={type:o>1?"strong":"emphasis",start:{...s.start},end:{...u.end}};e[i][1].end={...s.start},e[t][1].start={...u.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Fe(r,[["enter",e[i][1],n],["exit",e[i][1],n]])),r=Fe(r,[["enter",f,n],["enter",s,n],["exit",s,n],["enter",c,n]]),r=Fe(r,Et(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),r=Fe(r,[["exit",c,n],["enter",u,n],["exit",u,n],["exit",f,n]]);let p=0;e[t][1].end.offset-e[t][1].start.offset&&(p=2,r=Fe(r,[["enter",e[t][1],n],["exit",e[t][1],n]])),He(e,i-1,t-i+3,r),t=i+r.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ha(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xt(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=xt(s),f=!c||c===2&&i||t.includes(s)&&s!==42&&s!==95,p=!i||i===2&&c||t.includes(r)&&r!==42&&r!==95;return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),n(s)}}function pi(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const qa={name:"autolink",tokenize:Va};function Va(e,n,t){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 ve(h)?(e.consume(h),l):h===64?t(h):u(h)}function l(h){return h===43||h===45||h===46||Te(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||Te(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||gt(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),c):La(h)?(e.consume(h),u):t(h)}function c(h){return Te(h)?f(h):t(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"),n):p(h)}function p(h){if((h===45||Te(h))&&r++<63){const m=h===45?p:f;return e.consume(h),m}return t(h)}}const Kn={partial:!0,tokenize:Wa};function Wa(e,n,t){return r;function r(o){return J(o)?re(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?n(o):t(o)}}const cl={continuation:{tokenize:Ka},exit:Xa,name:"blockQuote",tokenize:Ga};function Ga(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return J(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Ka(e,n,t){const r=this;return i;function i(l){return J(l)?re(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(cl,n,t)(l)}}function Xa(e){e.exit("blockQuote")}const fl={name:"characterEscape",tokenize:Ya};function Ya(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Da(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const hl={name:"characterReference",tokenize:Qa};function Qa(e,n,t){const r=this;let i=0,o,l;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Te,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Pa,c):(e.enter("characterReferenceValue"),o=7,l=sr,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return l===Te&&!Tr(r.sliceSerialize(p))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(f)&&i++<o?(e.consume(f),c):t(f)}}const cr={partial:!0,tokenize:Za};function Za(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const di={concrete:!0,name:"codeFenced",tokenize:Ja};function Ja(e,n,t){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return s;function s(S){return u(S)}function u(S){const U=r.events[r.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(l++,e.consume(S),c):l<3?t(S):(e.exit("codeFencedFenceSequence"),J(S)?re(e,f,"whitespace")(S):f(S))}function f(S){return S===null||H(S)?(e.exit("codeFencedFence"),r.interrupt?n(S):e.check(cr,k,q)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||H(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):J(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),re(e,h,"whitespace")(S)):S===96&&S===a?t(S):(e.consume(S),p)}function h(S){return S===null||H(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||H(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===a?t(S):(e.consume(S),m)}function k(S){return e.attempt(i,q,A)(S)}function A(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b}function b(S){return o>0&&J(S)?re(e,N,"linePrefix",o+1)(S):N(S)}function N(S){return S===null||H(S)?e.check(cr,k,q)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||H(S)?(e.exit("codeFlowValue"),N(S)):(e.consume(S),_)}function q(S){return e.exit("codeFenced"),n(S)}function F(S,U,K){let oe=0;return w;function w(O){return S.enter("lineEnding"),S.consume(O),S.exit("lineEnding"),R}function R(O){return S.enter("codeFencedFence"),J(O)?re(S,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):B(O)}function B(O){return O===a?(S.enter("codeFencedFenceSequence"),ne(O)):K(O)}function ne(O){return O===a?(oe++,S.consume(O),ne):oe>=l?(S.exit("codeFencedFenceSequence"),J(O)?re(S,j,"whitespace")(O):j(O)):K(O)}function j(O){return O===null||H(O)?(S.exit("codeFencedFence"),U(O)):K(O)}}}const $t={name:"codeIndented",tokenize:ns},es={partial:!0,tokenize:ts};function ns(e,n,t){return r;function r(a){return e.enter("codeIndented"),ul(e,i,t,"linePrefix",4,4)(a)}function i(a){return a===null?l(a):H(a)?e.attempt(es,i,l)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||H(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),o)}function l(a){return e.exit("codeIndented"),n(a)}}function ts(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):H(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ul(e,n,o,"linePrefix",4,4)(l)}function o(l){return H(l)?i(l):t(l)}}const rs={name:"codeText",previous:ls,resolve:is,tokenize:os};function is(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function ls(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function os(e,n,t){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):H(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||H(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(o.type="codeTextData",u(f))}}class as{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Fn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Fn(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Fn(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Fn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Fn(this.left,t.reverse())}}}function Fn(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function pl(e){const n={};let t=-1,r,i,o,l,a,s,u;const c=new as(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ss(c,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,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},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return He(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ss(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let c,f,p=-1,h=t,m=0,k=0;const A=[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=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,A.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):A.pop(),p=A.length;p--;){const b=a.slice(A[p],A[p+1]),N=o.pop();s.push([N,N+b.length-1]),e.splice(N,2,b)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}const us={resolve:fs,tokenize:hs},cs={partial:!0,tokenize:ps};function fs(e){return pl(e),e}function hs(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):H(a)?e.check(cs,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ps(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),re(e,o,"linePrefix")}function o(l){if(l===null||H(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function dl(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),p):b===null||b===32||b===41||gt(b)?t(b):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(b))}function p(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(a),p(b)):b===null||b===60||H(b)?t(b):(e.consume(b),b===92?m:h)}function m(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function k(b){return!c&&(b===null||b===41||ue(b))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(b)):c<u&&b===40?(e.consume(b),c++,k):b===41?(e.consume(b),c--,k):b===null||b===32||b===40||gt(b)?t(b):(e.consume(b),b===92?A:k)}function A(b){return b===40||b===41||b===92?(e.consume(b),k):k(b)}}function gl(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):H(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||H(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!J(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function ml(e,n,t,r,i,o){let l;return a;function a(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,s):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?t(p):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),re(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===l||p===null||H(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===l||p===92?(e.consume(p),c):c(p)}}function Hn(e,n){let t;return r;function r(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):J(i)?re(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ds={name:"definition",tokenize:ms},gs={partial:!0,tokenize:xs};function ms(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return gl.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=qe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return ue(h)?Hn(e,u)(h):u(h)}function u(h){return dl(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(gs,f,f)(h)}function f(h){return J(h)?re(e,p,"whitespace")(h):p(h)}function p(h){return h===null||H(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function xs(e,n,t){return r;function r(a){return ue(a)?Hn(e,i)(a):t(a)}function i(a){return ml(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return J(a)?re(e,l,"whitespace")(a):l(a)}function l(a){return a===null||H(a)?n(a):t(a)}}const ys={name:"hardBreakEscape",tokenize:bs};function bs(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return H(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const ks={name:"headingAtx",resolve:ws,tokenize:Es};function ws(e,n){let t=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"};He(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])}return e}function Es(e,n,t){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||ue(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||H(c)?(e.exit("atxHeading"),n(c)):J(c)?re(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ue(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ss=["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"],gi=["pre","script","style","textarea"],Cs={concrete:!0,name:"htmlFlow",resolveTo:_s,tokenize:Ts},As={partial:!0,tokenize:Ns};function _s(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ts(e,n,t){const r=this;let i,o,l,a,s;return u;function u(x){return c(x)}function c(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),p):x===47?(e.consume(x),o=!0,k):x===63?(e.consume(x),i=3,r.interrupt?n:g):ve(x)?(e.consume(x),l=String.fromCharCode(x),A):t(x)}function p(x){return x===45?(e.consume(x),i=2,h):x===91?(e.consume(x),i=5,a=0,m):ve(x)?(e.consume(x),i=4,r.interrupt?n:g):t(x)}function h(x){return x===45?(e.consume(x),r.interrupt?n:g):t(x)}function m(x){const Oe="CDATA[";return x===Oe.charCodeAt(a++)?(e.consume(x),a===Oe.length?r.interrupt?n:B:m):t(x)}function k(x){return ve(x)?(e.consume(x),l=String.fromCharCode(x),A):t(x)}function A(x){if(x===null||x===47||x===62||ue(x)){const Oe=x===47,en=l.toLowerCase();return!Oe&&!o&&gi.includes(en)?(i=1,r.interrupt?n(x):B(x)):Ss.includes(l.toLowerCase())?(i=6,Oe?(e.consume(x),b):r.interrupt?n(x):B(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(x):o?N(x):_(x))}return x===45||Te(x)?(e.consume(x),l+=String.fromCharCode(x),A):t(x)}function b(x){return x===62?(e.consume(x),r.interrupt?n:B):t(x)}function N(x){return J(x)?(e.consume(x),N):w(x)}function _(x){return x===47?(e.consume(x),w):x===58||x===95||ve(x)?(e.consume(x),q):J(x)?(e.consume(x),_):w(x)}function q(x){return x===45||x===46||x===58||x===95||Te(x)?(e.consume(x),q):F(x)}function F(x){return x===61?(e.consume(x),S):J(x)?(e.consume(x),F):_(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?t(x):x===34||x===39?(e.consume(x),s=x,U):J(x)?(e.consume(x),S):K(x)}function U(x){return x===s?(e.consume(x),s=null,oe):x===null||H(x)?t(x):(e.consume(x),U)}function K(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||ue(x)?F(x):(e.consume(x),K)}function oe(x){return x===47||x===62||J(x)?_(x):t(x)}function w(x){return x===62?(e.consume(x),R):t(x)}function R(x){return x===null||H(x)?B(x):J(x)?(e.consume(x),R):t(x)}function B(x){return x===45&&i===2?(e.consume(x),te):x===60&&i===1?(e.consume(x),he):x===62&&i===4?(e.consume(x),ke):x===63&&i===3?(e.consume(x),g):x===93&&i===5?(e.consume(x),be):H(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(As,Ie,ne)(x)):x===null||H(x)?(e.exit("htmlFlowData"),ne(x)):(e.consume(x),B)}function ne(x){return e.check(cr,j,Ie)(x)}function j(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),O}function O(x){return x===null||H(x)?ne(x):(e.enter("htmlFlowData"),B(x))}function te(x){return x===45?(e.consume(x),g):B(x)}function he(x){return x===47?(e.consume(x),l="",ie):B(x)}function ie(x){if(x===62){const Oe=l.toLowerCase();return gi.includes(Oe)?(e.consume(x),ke):B(x)}return ve(x)&&l.length<8?(e.consume(x),l+=String.fromCharCode(x),ie):B(x)}function be(x){return x===93?(e.consume(x),g):B(x)}function g(x){return x===62?(e.consume(x),ke):x===45&&i===2?(e.consume(x),g):B(x)}function ke(x){return x===null||H(x)?(e.exit("htmlFlowData"),Ie(x)):(e.consume(x),ke)}function Ie(x){return e.exit("htmlFlow"),n(x)}}function Ns(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kn,n,t)}}const Is={name:"htmlText",tokenize:vs};function vs(e,n,t){const r=this;let i,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),F):g===63?(e.consume(g),_):ve(g)?(e.consume(g),K):t(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,m):ve(g)?(e.consume(g),N):t(g)}function c(g){return g===45?(e.consume(g),h):t(g)}function f(g){return g===null?t(g):g===45?(e.consume(g),p):H(g)?(l=f,he(g)):(e.consume(g),f)}function p(g){return g===45?(e.consume(g),h):f(g)}function h(g){return g===62?te(g):g===45?p(g):f(g)}function m(g){const ke="CDATA[";return g===ke.charCodeAt(o++)?(e.consume(g),o===ke.length?k:m):t(g)}function k(g){return g===null?t(g):g===93?(e.consume(g),A):H(g)?(l=k,he(g)):(e.consume(g),k)}function A(g){return g===93?(e.consume(g),b):k(g)}function b(g){return g===62?te(g):g===93?(e.consume(g),b):k(g)}function N(g){return g===null||g===62?te(g):H(g)?(l=N,he(g)):(e.consume(g),N)}function _(g){return g===null?t(g):g===63?(e.consume(g),q):H(g)?(l=_,he(g)):(e.consume(g),_)}function q(g){return g===62?te(g):_(g)}function F(g){return ve(g)?(e.consume(g),S):t(g)}function S(g){return g===45||Te(g)?(e.consume(g),S):U(g)}function U(g){return H(g)?(l=U,he(g)):J(g)?(e.consume(g),U):te(g)}function K(g){return g===45||Te(g)?(e.consume(g),K):g===47||g===62||ue(g)?oe(g):t(g)}function oe(g){return g===47?(e.consume(g),te):g===58||g===95||ve(g)?(e.consume(g),w):H(g)?(l=oe,he(g)):J(g)?(e.consume(g),oe):te(g)}function w(g){return g===45||g===46||g===58||g===95||Te(g)?(e.consume(g),w):R(g)}function R(g){return g===61?(e.consume(g),B):H(g)?(l=R,he(g)):J(g)?(e.consume(g),R):oe(g)}function B(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),i=g,ne):H(g)?(l=B,he(g)):J(g)?(e.consume(g),B):(e.consume(g),j)}function ne(g){return g===i?(e.consume(g),i=void 0,O):g===null?t(g):H(g)?(l=ne,he(g)):(e.consume(g),ne)}function j(g){return g===null||g===34||g===39||g===60||g===61||g===96?t(g):g===47||g===62||ue(g)?oe(g):(e.consume(g),j)}function O(g){return g===47||g===62||ue(g)?oe(g):t(g)}function te(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),n):t(g)}function he(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ie}function ie(g){return J(g)?re(e,be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):be(g)}function be(g){return e.enter("htmlTextData"),l(g)}}const Nr={name:"labelEnd",resolveAll:Ls,resolveTo:Ps,tokenize:Ds},Rs={tokenize:js},Ms={tokenize:zs},Os={tokenize:Fs};function Ls(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&He(e,0,e.length,t),e}function Ps(e,n){let t=e.length,r=0,i,o,l;for(;t--;){const c=e[t][1];if(i){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;e[t][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(i=t,c.type!=="labelLink")){r=2;break}}else c.type==="labelEnd"&&(o=t)}const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",a,n],["enter",s,n]],l=Fe(l,e.slice(i+1,i+r+3)),l=Fe(l,[["enter",u,n]]),l=Fe(l,Et(n.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),n)),l=Fe(l,[["exit",u,n],e[o-2],e[o-1],["exit",s,n]]),l=Fe(l,e.slice(o+1)),l=Fe(l,[["exit",a,n]]),He(e,i,e.length,l),e}function Ds(e,n,t){const r=this,i=r._labelStarts;let o,l;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();o=i[i.length-1]}return a;function a(p){return o?o._inactive?f(p):(l=r.parser.defined.includes(qe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(Rs,c,l?c:f)(p):p===91?e.attempt(Ms,c,l?u:f)(p):l?c(p):f(p)}function u(p){return e.attempt(Os,c,f)(p)}function c(p){return i.pop(),n(p)}function f(p){return o._balanced=!0,t(p)}}function js(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ue(f)?Hn(e,o)(f):o(f)}function o(f){return f===41?c(f):dl(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return ue(f)?Hn(e,s)(f):c(f)}function a(f){return t(f)}function s(f){return f===34||f===39||f===40?ml(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return ue(f)?Hn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function zs(e,n,t){const r=this;return i;function i(a){return gl.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(qe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Fs(e,n,t){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"),n):t(o)}}const Bs={name:"labelStartImage",resolveAll:Nr.resolveAll,tokenize:$s};function $s(e,n,t){const r=this;let i;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),i=e.exit("labelImage"),a):t(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),n(s))}}const Us={name:"labelStartLink",resolveAll:Nr.resolveAll,tokenize:Hs};function Hs(e,n,t){const r=this;let i;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),i=e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),n(a))}}const Ut={name:"lineEnding",tokenize:qs};function qs(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),re(e,n,"linePrefix")}}const dt={name:"thematicBreak",tokenize:Vs};function Vs(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||H(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?re(e,a,"whitespace")(u):a(u))}}const Re={continuation:{tokenize:Xs},exit:Qs,name:"list",tokenize:Ks},Ws={partial:!0,tokenize:Zs},Gs={partial:!0,tokenize:Ys};function Ks(e,n,t){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 a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:sr(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(dt,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return sr(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Kn,r.interrupt?t:c,e.attempt(Ws,p,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Xs(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Kn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!J(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Gs,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(Re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ys(e,n,t){const r=this;return re(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?n(o):t(o)}}function Qs(e){e.exit(this.containerState.type)}function Zs(e,n,t){const r=this;return re(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!J(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const mi={name:"setextUnderline",resolveTo:Js,tokenize:eu};function Js(e,n){const t=new mt;let r=e.length,i,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&t.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(t.add(o,0,[["enter",a,n]]),t.add(l+1,0,[["exit",e[i][1],n]]),e[i][1].end={...e[l][1].end}):e[i][1]=a,t.add(e.length,0,[["exit",a,n]]),t.consume(e),e}function eu(e,n,t){const r=this;let i;return o;function o(u){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=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?re(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||H(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const nu={tokenize:tu};function tu(e){const n=this,t=e.attempt(Kn,r,e.attempt(this.parser.constructs.flowInitial,i,re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(us,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ru={resolveAll:yl()},iu=xl("string"),lu=xl("text");function xl(e){return{resolveAll:yl(e==="text"?ou:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(c){return u(c)?o(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),s}function s(c){return u(c)?(t.exit("data"),o(c)):(t.consume(c),s)}function u(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 yl(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function ou(e,n){const t=new mt;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=n.sliceStream(i);let l=o.length,a=-1,s=0,u;for(;l--;){const c=o[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)u=!0,s++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(s=0),s){const c={type:r===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):t.add(r,0,[["enter",c,n],["exit",c,n]])}r++}return t.consume(e),e}const au={42:Re,43:Re,45:Re,48:Re,49:Re,50:Re,51:Re,52:Re,53:Re,54:Re,55:Re,56:Re,57:Re,62:cl},su={91:ds},uu={[-2]:$t,[-1]:$t,32:$t},cu={35:ks,42:dt,45:[mi,dt],60:Cs,61:mi,95:dt,96:di,126:di},fu={38:hl,92:fl},hu={[-5]:Ut,[-4]:Ut,[-3]:Ut,33:Bs,38:hl,42:ur,60:[qa,Is],91:Us,92:[ys,fl],93:Nr,95:ur,96:rs},pu={null:[ur,ru]},du={null:[42,95]},gu={null:[]},mu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:du,contentInitial:su,disable:gu,document:au,flow:cu,flowInitial:uu,insideSpan:pu,string:fu,text:hu},Symbol.toStringTag,{value:"Module"}));function xu(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:U(F),check:U(S),consume:N,enter:_,exit:q,interrupt:U(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function f(R){return l=Fe(l,R),A(),l[l.length-1]!==null?[]:(K(n,0),u.events=Et(o,u.events,u),u.events)}function p(R,B){return bu(h(R),B)}function h(R){return yu(l,R)}function m(){const{_bufferIndex:R,_index:B,line:ne,column:j,offset:O}=r;return{_bufferIndex:R,_index:B,line:ne,column:j,offset:O}}function k(R){i[R.line]=R.column,w()}function A(){for(;r._index<l.length;){const R=l[r._index];if(typeof R=="string"){const B=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<R.length;)b(R.charCodeAt(r._bufferIndex))}else b(R)}}function b(R){c=c(R)}function N(R){H(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,w()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function _(R,B){const ne=B||{};return ne.type=R,ne.start=m(),u.events.push(["enter",ne,u]),a.push(ne),ne}function q(R){const B=a.pop();return B.end=m(),u.events.push(["exit",B,u]),B}function F(R,B){K(R,B.from)}function S(R,B){B.restore()}function U(R,B){return ne;function ne(j,O,te){let he,ie,be,g;return Array.isArray(j)?Ie(j):"tokenize"in j?Ie([j]):ke(j);function ke(ge){return cn;function cn(Ve){const fn=Ve!==null&&ge[Ve],Be=Ve!==null&&ge.null,Ln=[...Array.isArray(fn)?fn:fn?[fn]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return Ie(Ln)(Ve)}}function Ie(ge){return he=ge,ie=0,ge.length===0?te:x(ge[ie])}function x(ge){return cn;function cn(Ve){return g=oe(),be=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?en():ge.tokenize.call(B?Object.assign(Object.create(u),B):u,s,Oe,en)(Ve)}}function Oe(ge){return R(be,g),O}function en(ge){return g.restore(),++ie<he.length?x(he[ie]):te}}}function K(R,B){R.resolveAll&&!o.includes(R)&&o.push(R),R.resolve&&He(u.events,B,u.events.length-B,R.resolve(u.events.slice(B),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function oe(){const R=m(),B=u.previous,ne=u.currentConstruct,j=u.events.length,O=Array.from(a);return{from:j,restore:te};function te(){r=R,u.previous=B,u.currentConstruct=ne,u.events.length=j,a=O,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function yu(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function bu(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
43
|
+
`;break}case-3:{l=`\r
|
|
44
|
+
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function ku(e){const r={constructs:al([mu,...(e||{}).extensions||[]]),content:i(ja),defined:[],document:i(Fa),flow:i(nu),lazy:{},string:i(iu),text:i(lu)};return r;function i(o){return l;function l(a){return xu(r,o,a)}}}function wu(e){for(;!pl(e););return e}const xi=/[\0\t\n\r]/g;function Eu(){let e=1,n="",t=!0,r;return i;function i(o,l,a){o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o));const s=[];let u=0;for(n="",t&&(o.charCodeAt(0)===65279&&u++,t=void 0);u<o.length;){xi.lastIndex=u;const c=xi.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f);if(!c){n=o.slice(u);break}if(p===10&&u===f&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<f&&(s.push(o.slice(u,f)),e+=f-u),p){case 0:{s.push(65533),e++;break}case 9:{const h=Math.ceil(e/4)*4;for(s.push(-2);e++<h;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Su=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cu(e){return e.replace(Su,Au)}function Au(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return sl(t.slice(o?2:1),o?16:10)}return Tr(t)||e}const bl={}.hasOwnProperty;function _u(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Tu(t)(wu(ku(t).document().write(Eu()(e,n,!0))))}function Tu(e){const n={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Pn),autolinkProtocol:w,autolinkEmail:w,atxHeading:l(Qn),blockQuote:l(Ln),characterEscape:w,characterReference:w,codeFenced:l(Yn),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Yn,a),codeText:l(_t,a),codeTextData:w,data:w,codeFlowValue:w,definition:l(Tt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Nt),hardBreakEscape:l(Zn),hardBreakTrailing:l(Zn),htmlFlow:l(Jn,a),htmlFlowData:w,htmlText:l(Jn,a),htmlTextData:w,image:l(It),label:a,link:l(Pn),listItem:l(vt),listItemValue:h,listOrdered:l(et,p),listUnordered:l(et),paragraph:l(nt),reference:Oe,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Qn),strong:l(Qe),thematicBreak:l(nn)},exit:{atxHeading:u(),atxHeadingSequence:S,autolink:u(),autolinkEmail:Be,autolinkProtocol:fn,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:cn,characterReference:Ve,codeFenced:u(b),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:k,codeFlowValue:R,codeIndented:u(N),codeText:u(te),codeTextData:R,data:R,definition:u(),definitionDestinationString:F,definitionLabelString:_,definitionTitleString:q,emphasis:u(),hardBreakEscape:u(ne),hardBreakTrailing:u(ne),htmlFlow:u(j),htmlFlowData:R,htmlText:u(O),htmlTextData:R,image:u(ie),label:g,labelText:be,lineEnding:B,link:u(he),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:en,resourceDestinationString:ke,resourceTitleString:Ie,resource:x,setextHeading:u(oe),setextHeadingLineSequence:K,setextHeadingText:U,strong:u(),thematicBreak:u()}};kl(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(E){let v={type:"root",children:[],position:void 0};const V={stack:[v],tokenStack:[],config:n,enter:s,exit:c,buffer:a,resume:f,data:t},Q=[],Se=[];let ae=-1;for(;++ae<E.length;)if(Se.push(E[ae]),E[ae][1].type==="listOrdered"||E[ae][1].type==="listUnordered")if(E[ae][0]==="enter")Q.push(Se.length-1);else{const Ce=Q.pop();o(Se,Ce)}for(E=Se,ae=-1;++ae<E.length;){const Ce=n[E[ae][0]];E[ae][0]==="enter"&&n.beforeEnter.length>0&&i(n.beforeEnter,{...V,sliceSerialize:E[ae][2].sliceSerialize},E[ae][1]),bl.call(Ce,E[ae][1].type)&&Ce[E[ae][1].type].call({...V,sliceSerialize:E[ae][2].sliceSerialize},E[ae][1]),E[ae][0]==="exit"&&n.afterExit.length>0&&i(n.afterExit,{...V,sliceSerialize:E[ae][2].sliceSerialize},E[ae][1])}if(V.tokenStack.length>0){const Ce=V.tokenStack[V.tokenStack.length-1];(Ce[1]||yi).call(V,void 0,Ce[0])}for(v.position={start:on(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:on(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<n.transforms.length;)v=n.transforms[ae](v)||v;return v}function i(E,v,V){let Q=-1;for(;++Q<E.length;)E[Q].call(v,V)}function o(E,v){const V=E.length-1;let Q=v-1,Se=-1,ae=!1,Ce,Le,hn,pn;const dn=[];for(;++Q<=V;){const Ae=E[Q];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?Se++:Se--,pn=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(Ce&&!pn&&!Se&&!hn&&(hn=Q),pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:pn=void 0}if(!Se&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||Se===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(Ce){let tn=Q;for(Le=void 0;tn--;){const ze=E[tn];if(ze[1].type==="lineEnding"||ze[1].type==="lineEndingBlank"){if(ze[0]==="exit")continue;Le&&(E[Le][1].type="lineEndingBlank",ae=!0),ze[1].type="lineEnding",Le=tn}else if(!(ze[1].type==="linePrefix"||ze[1].type==="blockQuotePrefix"||ze[1].type==="blockQuotePrefixWhitespace"||ze[1].type==="blockQuoteMarker"||ze[1].type==="listItemIndent"))break}hn&&(!Le||hn<Le)&&(Ce._spread=!0),Ce.end=Object.assign({},Le?E[Le][1].start:Ae[1].end),dn.push({at:Le||Q,event:["exit",Ce,Ae[2]]})}if(Ae[1].type==="listItemPrefix"){const tn={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};Ce=tn,dn.push({at:Q,event:["enter",tn,Ae[2]]}),hn=void 0,pn=!0}}}const En=E.splice(v);let Sn=0;for(Q=-1;++Q<En.length;){for(;Sn<dn.length&&dn[Sn].at===v+Q;)E.push(dn[Sn++].event);E.push(En[Q])}E[v][1]._spread=ae}function l(E,v){return V;function V(Q){s.call(this,E(Q),Q),v&&v.call(this,Q)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(E,v,V){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([v,V||void 0]),E.position={start:on(v.start),end:void 0}}function u(E){return v;function v(V){E&&E.call(this,V),c.call(this,V)}}function c(E,v){const V=this.stack.pop(),Q=this.tokenStack.pop();if(!Q)throw new Error("Cannot close `"+E.type+"` ("+Un({start:E.start,end:E.end})+"): it’s not open");Q[0].type!==E.type&&(v?v.call(this,E,Q[0]):(Q[1]||yi).call(this,E,Q[0])),V.position.end=on(E.end)}function f(){return _r(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(E){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];v.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function m(){const E=this.resume(),v=this.stack[this.stack.length-1];v.lang=E}function k(){const E=this.resume(),v=this.stack[this.stack.length-1];v.meta=E}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const E=this.resume(),v=this.stack[this.stack.length-1];v.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const E=this.resume(),v=this.stack[this.stack.length-1];v.value=E.replace(/(\r?\n|\r)$/g,"")}function _(E){const v=this.resume(),V=this.stack[this.stack.length-1];V.label=v,V.identifier=qe(this.sliceSerialize(E)).toLowerCase()}function q(){const E=this.resume(),v=this.stack[this.stack.length-1];v.title=E}function F(){const E=this.resume(),v=this.stack[this.stack.length-1];v.url=E}function S(E){const v=this.stack[this.stack.length-1];if(!v.depth){const V=this.sliceSerialize(E).length;v.depth=V}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function K(E){const v=this.stack[this.stack.length-1];v.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function w(E){const V=this.stack[this.stack.length-1].children;let Q=V[V.length-1];(!Q||Q.type!=="text")&&(Q=tt(),Q.position={start:on(E.start),end:void 0},V.push(Q)),this.stack.push(Q)}function R(E){const v=this.stack.pop();v.value+=this.sliceSerialize(E),v.position.end=on(E.end)}function B(E){const v=this.stack[this.stack.length-1];if(this.data.atHardBreak){const V=v.children[v.children.length-1];V.position.end=on(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(v.type)&&(w.call(this,E),R.call(this,E))}function ne(){this.data.atHardBreak=!0}function j(){const E=this.resume(),v=this.stack[this.stack.length-1];v.value=E}function O(){const E=this.resume(),v=this.stack[this.stack.length-1];v.value=E}function te(){const E=this.resume(),v=this.stack[this.stack.length-1];v.value=E}function he(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=v,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function ie(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=v,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function be(E){const v=this.sliceSerialize(E),V=this.stack[this.stack.length-2];V.label=Cu(v),V.identifier=qe(v).toLowerCase()}function g(){const E=this.stack[this.stack.length-1],v=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){const Q=E.children;V.children=Q}else V.alt=v}function ke(){const E=this.resume(),v=this.stack[this.stack.length-1];v.url=E}function Ie(){const E=this.resume(),v=this.stack[this.stack.length-1];v.title=E}function x(){this.data.inReference=void 0}function Oe(){this.data.referenceType="collapsed"}function en(E){const v=this.resume(),V=this.stack[this.stack.length-1];V.label=v,V.identifier=qe(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function ge(E){this.data.characterReferenceType=E.type}function cn(E){const v=this.sliceSerialize(E),V=this.data.characterReferenceType;let Q;V?(Q=sl(v,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=Tr(v);const Se=this.stack[this.stack.length-1];Se.value+=Q}function Ve(E){const v=this.stack.pop();v.position.end=on(E.end)}function fn(E){R.call(this,E);const v=this.stack[this.stack.length-1];v.url=this.sliceSerialize(E)}function Be(E){R.call(this,E);const v=this.stack[this.stack.length-1];v.url="mailto:"+this.sliceSerialize(E)}function Ln(){return{type:"blockquote",children:[],position:void 0}}function Yn(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function _t(){return{type:"inlineCode",value:"",position:void 0}}function Tt(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function Nt(){return{type:"emphasis",children:[],position:void 0}}function Qn(){return{type:"heading",depth:0,children:[],position:void 0}}function Zn(){return{type:"break",position:void 0}}function Jn(){return{type:"html",value:"",position:void 0}}function It(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function Pn(){return{type:"link",title:null,url:"",children:[],position:void 0}}function et(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[],position:void 0}}function vt(E){return{type:"listItem",spread:E._spread,checked:null,children:[],position:void 0}}function nt(){return{type:"paragraph",children:[],position:void 0}}function Qe(){return{type:"strong",children:[],position:void 0}}function tt(){return{type:"text",value:"",position:void 0}}function nn(){return{type:"thematicBreak",position:void 0}}}function on(e){return{line:e.line,column:e.column,offset:e.offset}}function kl(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?kl(e,r):Nu(e,r)}}function Nu(e,n){let t;for(t in n)if(bl.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"afterExit":case"beforeEnter":{const r=n[t];r&&e[t].push(r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function yi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Un({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Un({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Un({start:n.start,end:n.end})+") is still open")}function Iu(e){const n=this;n.parser=t;function t(r){return _u(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function vu(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Ru(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
45
|
+
`}]}function Mu(e,n){const t=n.value?n.value+`
|
|
46
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Ou(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Lu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Pu(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=On(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function Du(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ju(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function wl(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),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 zu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return wl(e,n);const i={src:On(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Fu(e,n){const t={src:On(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Bu(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function $u(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return wl(e,n);const i={href:On(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Uu(e,n){const t={href:On(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Hu(e,n,t){const r=e.all(n),i=t?qu(t):El(n),o={},l=[];if(typeof n.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:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
47
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
48
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,u),e.applyData(n,u)}function qu(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=El(t[r])}return n}function El(e){const n=e.spread;return n??e.children.length>1}function Vu(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.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")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Wu(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Gu(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ku(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Xu(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Er(n.children[1]),s=el(n.children[n.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Yu(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let s=-1;const u=[];for(;++s<a;){const f=n.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,c),e.applyData(n,c)}function Qu(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const bi=9,ki=32;function Zu(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(wi(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(wi(n.slice(i),i>0,!1)),o.join("")}function wi(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===bi||o===ki;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===bi||o===ki;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ju(e,n){const t={type:"text",value:Zu(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ec(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const nc={blockquote:vu,break:Ru,code:Mu,delete:Ou,emphasis:Lu,footnoteReference:Pu,heading:Du,html:ju,imageReference:zu,image:Fu,inlineCode:Bu,linkReference:$u,link:Uu,listItem:Hu,list:Vu,paragraph:Wu,root:Gu,strong:Ku,table:Xu,tableCell:Qu,tableRow:Yu,text:Ju,thematicBreak:ec,toml:st,yaml:st,definition:st,footnoteDefinition:st};function st(){}const Sl=-1,St=0,qn=1,yt=2,Ir=3,vr=4,Rr=5,Mr=6,Cl=7,Al=8,{defineProperty:tc}=Object,_l=typeof self=="object"?self:globalThis,Ei=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new _l[e](n)},rc=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case St:case Sl:return t(l,i);case qn:{const a=t([],i);for(const s of l)a.push(r(s));return a}case yt:{const a=t({},i);for(const[s,u]of l){const c=r(s),f=r(u);c==="__proto__"?tc(a,c,{value:f,configurable:!0,enumerable:!0,writable:!0}):a[c]=f}return a}case Ir:return t(new Date(l),i);case vr:{const{source:a,flags:s}=l;return t(new RegExp(a,s),i)}case Rr:{const a=t(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case Mr:{const a=t(new Set,i);for(const s of l)a.add(r(s));return a}case Cl:{const{name:a,message:s}=l;return t(typeof _l[a]=="function"?Ei(a,s):new Error(s),i)}case Al:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}case"-0":return-0}return t(Ei(o,l),i)};return r},Si=e=>rc(new Map,e)(0),xn="",{toString:ic}={},{keys:lc,is:oc}=Object,Bn=e=>{const n=typeof e;if(n!=="object"||!e)return[St,n];const t=ic.call(e).slice(8,-1);switch(t){case"Array":return[qn,xn];case"Object":return[yt,xn];case"Date":return[Ir,xn];case"RegExp":return[vr,xn];case"Map":return[Rr,xn];case"Set":return[Mr,xn];case"DataView":return[qn,t]}return t.includes("Array")?[qn,t]:e instanceof Error?[Cl,e.name||"Error"]:[yt,t]},ut=([e,n])=>e===St&&(n==="function"||n==="symbol"),ac=(e,n,t,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return t.set(a,s),s},o=l=>{if(t.has(l))return t.get(l);let[a,s]=Bn(l);switch(a){case St:{let c=l;switch(s){case"bigint":a=Al,c=l.toString();break;case"number":if(!l&&oc(l,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([Sl],l)}return i([a,c],l)}case qn:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const c=[],f=i([a,c],l);for(const p of l)c.push(o(p));return f}case yt:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([a,c],l);for(const p of lc(l))(e||!ut(Bn(l[p])))&&c.push([o(p),o(l[p])]);return f}case Ir:return i([a,isNaN(l.getTime())?xn:l.toISOString()],l);case vr:{const{source:c,flags:f}=l;return i([a,{source:c,flags:f}],l)}case Rr:{const c=[],f=i([a,c],l);for(const[p,h]of l)(e||!(ut(Bn(p))||ut(Bn(h))))&&c.push([o(p),o(h)]);return f}case Mr:{const c=[],f=i([a,c],l);for(const p of l)(e||!ut(Bn(p)))&&c.push(o(p));return f}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},Ci=(e,{json:n,lossy:t}={})=>{const r=[];return ac(!(n||t),!!n,new Map,r)(e),r},bt=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Si(Ci(e,n)):structuredClone(e):(e,n)=>Si(Ci(e,n));function sc(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function uc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function cc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||sc,r=e.options.footnoteBackLabel||uc,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),p=On(f.toLowerCase());let h=0;const m=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++h<=k;){m.length>0&&m.push({type:"text",value:" "});let N=typeof t=="string"?t:t(s,h);typeof N=="string"&&(N={type:"text",value:N}),m.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=c[c.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...m)}else c.push(...m);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,b),a.push(b)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...bt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
49
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
50
|
+
`}]}}const Ct=(function(e){if(e==null)return dc;if(typeof e=="function")return At(e);if(typeof e=="object")return Array.isArray(e)?fc(e):hc(e);if(typeof e=="string")return pc(e);throw new Error("Expected function, string, or object as test")});function fc(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Ct(e[t]);return At(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function hc(e){const n=e;return At(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function pc(e){return At(n);function n(t){return t&&t.type===e}}function At(e){return n;function n(t,r,i){return!!(gc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function dc(){return!0}function gc(e){return e!==null&&typeof e=="object"&&"type"in e}const Tl=[],mc=!0,fr=!1,xc="skip";function Nl(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=Ct(i),l=r?-1:1;a(e,void 0,[])();function a(s,u,c){const f=s&&typeof s=="object"?s:{};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 ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Tl,m,k,A;if((!n||o(s,u,c[c.length-1]||void 0))&&(h=yc(t(s,c)),h[0]===fr))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!==xc)for(k=(r?b.children.length:-1)+l,A=c.concat(b);k>-1&&k<b.children.length;){const N=b.children[k];if(m=a(N,k,A)(),m[0]===fr)return m;k=typeof m[1]=="number"?m[1]:k+l}}return h}}}function yc(e){return Array.isArray(e)?e:typeof e=="number"?[mc,e]:e==null?Tl:[e]}function Or(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Nl(e,o,a,i);function a(s,u){const c=u[u.length-1],f=c?c.children.indexOf(s):void 0;return l(s,f,c)}}const hr={}.hasOwnProperty,bc={};function kc(e,n){const t=n||bc,r=new Map,i=new Map,o=new Map,l={...nc,...t.handlers},a={all:u,applyData:Ec,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:t,patch:wc,wrap:Cc};return Or(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)}}),a;function s(c,f){const p=c.type,h=a.handlers[p];if(hr.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){const{children:k,...A}=c,b=bt(A);return b.children=a.all(c),b}return bt(c)}return(a.options.unknownHandler||Sc)(a,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ai(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=Ai(k.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function wc(e,n){e.position&&(n.position=ua(e))}function Ec(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,bt(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Sc(e,n){const t=n.data||{},r="value"in n&&!(hr.call(t,"hProperties")||hr.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Cc(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
51
|
+
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
52
|
+
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
53
|
+
`}),t}function Ai(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function _i(e,n){const t=kc(e,n),r=t.one(e,void 0),i=cc(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
54
|
+
`},i),o}function Ac(e,n){return e&&"run"in e?async function(t,r){const i=_i(t,{file:r,...n});await e.run(i,r)}:function(t,r){return _i(t,{file:r,...e||n})}}function Ti(e){if(e)throw e}var Ht,Ni;function _c(){if(Ni)return Ht;Ni=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},o=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,c){t&&c.name==="__proto__"?t(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Ht=function s(){var u,c,f,p,h,m,k=arguments[0],A=1,b=arguments.length,N=!1;for(typeof k=="boolean"&&(N=k,k=arguments[1]||{},A=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});A<b;++A)if(u=arguments[A],u!=null)for(c in u)f=a(k,c),p=a(u,c),k!==p&&(N&&p&&(o(p)||(h=i(p)))?(h?(h=!1,m=f&&i(f)?f:[]):m=f&&o(f)?f:{},l(k,{name:c,newValue:s(N,m,p)})):typeof p<"u"&&l(k,{name:c,newValue:p}));return k},Ht}var Tc=_c();const qt=yr(Tc);function pr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nc(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const c=e[++o];let f=-1;if(s){l(s);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Ic(c,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ic(e,n){let t;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const c=u;if(a&&t)throw c;return i(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const Ke={basename:vc,dirname:Rc,extname:Mc,join:Oc,sep:"/"};function vc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Xn(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Rc(e){if(Xn(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Mc(e){Xn(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Oc(...e){let n=-1,t;for(;++n<e.length;)Xn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Lc(t)}function Lc(e){Xn(e);const n=e.codePointAt(0)===47;let t=Pc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Pc(e,n){let t="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function Xn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Dc={cwd:jc};function jc(){return"/"}function dr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zc(e){if(typeof e=="string")e=new URL(e);else if(!dr(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Fc(e)}function Fc(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 n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+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(n)}const Vt=["history","path","basename","stem","extname","dirname"];class Il{constructor(n){let t;n?dr(n)?t={path:n}:typeof n=="string"||Bc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Dc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Vt.length;){const o=Vt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Vt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Ke.basename(this.path):void 0}set basename(n){Gt(n,"basename"),Wt(n,"basename"),this.path=Ke.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ke.dirname(this.path):void 0}set dirname(n){Ii(this.basename,"dirname"),this.path=Ke.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ke.extname(this.path):void 0}set extname(n){if(Wt(n,"extname"),Ii(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ke.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){dr(n)&&(n=zc(n)),Gt(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ke.basename(this.path,this.extname):void 0}set stem(n){Gt(n,"stem"),Wt(n,"stem"),this.path=Ke.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Ne(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Wt(e,n){if(e&&e.includes(Ke.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ke.sep+"`")}function Gt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ii(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Bc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $c=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Uc={}.hasOwnProperty;class Lr extends $c{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=Nc()}copy(){const n=new Lr;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(qt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Yt("data",this.frozen),this.namespace[n]=t,this):Uc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Yt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=ct(n),r=this.parser||this.Parser;return Kt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Kt("process",this.parser||this.Parser),Xt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=ct(n),s=r.parse(a);r.run(s,a,function(c,f,p){if(c||!f||!p)return u(c);const h=f,m=r.stringify(h,p);Vc(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?l(c):o?o(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),Kt("processSync",this.parser||this.Parser),Xt("processSync",this.compiler||this.Compiler),this.process(n,i),Ri("processSync","process",t),r;function i(o,l){t=!0,Ti(o),r=l}}run(n,t,r){vi(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=ct(t);i.run(n,s,u);function u(c,f,p){const h=f||n;c?a(c):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),Ri("runSync","run",r),i;function o(l,a){Ti(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=ct(t),i=this.compiler||this.Compiler;return Xt("stringify",i),vi(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Yt("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;s(c,f)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=qt(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[h,...m]=c;const k=r[p][1];pr(k)&&pr(h)&&(h=qt(!0,k,h)),r[p]=[u,h,...m]}}}}const Hc=new Lr().freeze();function Kt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Xt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vi(e){if(!pr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ri(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function ct(e){return qc(e)?e:new Il(e)}function qc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Vc(e){return typeof e=="string"||Wc(e)}function Wc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mi=[],Oi={allowDangerousHtml:!0},Kc=/^(https?|ircs?|mailto|xmpp)$/i,Xc=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yc(e){const n=Qc(e),t=Zc(e);return Jc(n.runSync(n.parse(t),t),e)}function Qc(e){const n=e.rehypePlugins||Mi,t=e.remarkPlugins||Mi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Oi}:Oi;return Hc().use(Iu).use(t).use(Ac,r).use(n)}function Zc(e){const n=e.children||"",t=new Il;return typeof n=="string"&&(t.value=n),t}function Jc(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||ef;for(const c of Xc)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Gc+c.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Or(e,u),da(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return l?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in Bt)if(Object.hasOwn(Bt,h)&&Object.hasOwn(c.properties,h)){const m=c.properties[h],k=Bt[h];(k===null||k.includes(c.tagName))&&(c.properties[h]=s(String(m||""),h,c))}}if(c.type==="element"){let h=t?!t.includes(c.tagName):o?o.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,p)),h&&p&&typeof f=="number")return a&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function ef(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Kc.test(e.slice(0,n))?e:""}function Li(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function nf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function tf(e,n,t){const i=Ct((t||{}).ignore||[]),o=rf(n);let l=-1;for(;++l<o.length;)Nl(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){const h=c[f],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return s(u,c)}function s(u,c){const f=c[c.length-1],p=o[l][0],h=o[l][1];let m=0;const A=f.children.indexOf(u);let b=!1,N=[];p.lastIndex=0;let _=p.exec(u.value);for(;_;){const F=_.index,S={index:_.index,input:_.input,stack:[...c,u]};let U=h(..._,S);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1)p.lastIndex=F+1;else{if(m!==F&&q({type:"text",value:u.value.slice(m,F)}),Array.isArray(U))for(const K of U)q(K);else U&&q(U);m=F+_[0].length,b=!0}if(!p.global)break;_=p.exec(u.value)}return b?(m<u.value.length&&q({type:"text",value:u.value.slice(m)}),f.children.splice(A,1,...N)):N=[u],A+N.length;function q(F){const S=N[N.length-1];S&&S.type==="text"&&F.type==="text"?S.value+=F.value:N.push(F)}}}function rf(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=[],t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([lf(i[0]),of(i[1])])}return n}function lf(e){return typeof e=="string"?new RegExp(nf(e),"g"):e}function of(e){return typeof e=="function"?e:function(){return e}}const Qt="phrasing",Zt=["autolink","link","image","label"];function af(){return{transforms:[df],enter:{literalAutolink:uf,literalAutolinkEmail:Jt,literalAutolinkHttp:Jt,literalAutolinkWww:Jt},exit:{literalAutolink:pf,literalAutolinkEmail:hf,literalAutolinkHttp:cf,literalAutolinkWww:ff}}}function sf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qt,notInConstruct:Zt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qt,notInConstruct:Zt},{character:":",before:"[ps]",after:"\\/",inConstruct:Qt,notInConstruct:Zt}]}}function uf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Jt(e){this.config.enter.autolinkProtocol.call(this,e)}function cf(e){this.config.exit.autolinkProtocol.call(this,e)}function ff(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function hf(e){this.config.exit.autolinkEmail.call(this,e)}function pf(e){this.exit(e)}function df(e){tf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),mf]],{ignore:["link","linkReference"]})}function gf(e,n,t,r,i){let o="";if(!vl(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!xf(t)))return!1;const l=yf(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function mf(e,n,t,r){return!vl(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function xf(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function yf(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Li(e,"(");let o=Li(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function vl(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||kn(t)||wt(t))&&(!n||t!==47)}Rl.peek=Tf;function bf(){this.buffer()}function kf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wf(){this.buffer()}function Ef(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Sf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Cf(e){this.exit(e)}function Af(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function _f(e){this.exit(e)}function Tf(){return"["}function Rl(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Nf(){return{enter:{gfmFootnoteCallString:bf,gfmFootnoteCall:kf,gfmFootnoteDefinitionLabelString:wf,gfmFootnoteDefinition:Ef},exit:{gfmFootnoteCallString:Sf,gfmFootnoteCall:Cf,gfmFootnoteDefinitionLabelString:Af,gfmFootnoteDefinition:_f}}}function If(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Rl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),c=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),c(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
55
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?Ml:vf))),u(),s}}function vf(e,n,t){return n===0?e:Ml(e,n,t)}function Ml(e,n,t){return(t?"":" ")+e}const Rf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Pr.attention=Df;Pr.peek=jf;function Mf(){return{canContainEols:["delete"],enter:{strikethrough:Lf},exit:{strikethrough:Pf}}}function Of(){return{handlers:{delete:Pr},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rf}]}}function Lf(e){this.enter({type:"delete",children:[],position:void 0},e)}function Pf(e){this.exit(e)}function Pr(e,n,t,r){const i=t.createTracker(r),o=t.stack.includes("strikethrough")?"~":"~~",l=t.enter("strikethrough");let a=i.move(o);return a+=t.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move(o),l(),a}function Df(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function jf(){return"~"}function zf(e){return e.length}function Ff(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||zf,o=[],l=[],a=[],s=[];let u=0,c=-1;for(;++c<e.length;){const k=[],A=[];let b=-1;for(e[c].length>u&&(u=e[c].length);++b<e[c].length;){const N=Bf(e[c][b]);if(t.alignDelimiters!==!1){const _=i(N);A[b]=_,(s[b]===void 0||_>s[b])&&(s[b]=_)}k.push(N)}l[c]=k,a[c]=A}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)o[f]=Pi(r[f]);else{const k=Pi(r);for(;++f<u;)o[f]=k}f=-1;const p=[],h=[];for(;++f<u;){const k=o[f];let A="",b="";k===99?(A=":",b=":"):k===108?A=":":k===114&&(b=":");let N=t.alignDelimiters===!1?1:Math.max(1,s[f]-A.length-b.length);const _=A+"-".repeat(N)+b;t.alignDelimiters!==!1&&(N=A.length+N+b.length,N>s[f]&&(s[f]=N),h[f]=N),p[f]=_}l.splice(1,0,p),a.splice(1,0,h),c=-1;const m=[];for(;++c<l.length;){const k=l[c],A=a[c];f=-1;const b=[];for(;++f<u;){const N=k[f]||"";let _="",q="";if(t.alignDelimiters!==!1){const F=s[f]-(A[f]||0),S=o[f];S===114?_=" ".repeat(F):S===99?F%2?(_=" ".repeat(F/2+.5),q=" ".repeat(F/2-.5)):(_=" ".repeat(F/2),q=_):q=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&N==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(_),b.push(N),t.alignDelimiters!==!1&&b.push(q),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==u-1)&&b.push("|")}m.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return m.join(`
|
|
56
|
+
`)}function Bf(e){return e==null?"":String(e)}function Pi(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const $f=Ct(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Uf(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Hf);return i(),l}function Hf(e,n,t){return">"+(t?"":" ")+e}function qf(e,n){return Di(e,n.inConstruct,!0)&&!Di(e,n.notInConstruct,!1)}function Di(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ji(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;){const o=t.unsafe[i];if(o.character===`
|
|
57
|
+
`&&!o.before&&!o.after&&qf(t.stack,o))return/[\t ]/.test(r.before)?"":" "}return`\\
|
|
58
|
+
`}function Vf(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Wf(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Gf(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Kf(e,n,t,r){const i=Gf(t),o=e.value||"";if(Wf(e,t)){const f=t.enter("codeIndented"),p=t.indentLines(o,Xf);return f(),p}const l=t.createTracker(r),a=i.repeat(Math.max(Vf(o,i)+1,3)),s=t.enter("codeFenced"),u=i==="`"?"GraveAccent":"Tilde";let c=l.move(a);if(e.lang){const f=t.enter(`codeFencedLang${u}`);c+=l.move(t.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${u}`);c+=l.move(" "),c+=l.move(t.safe(e.meta,{before:c,after:`
|
|
59
|
+
`,encode:["`"],...l.current()})),f()}return c+=l.move(`
|
|
60
|
+
`),o&&(c+=l.move(o+`
|
|
61
|
+
`)),c+=l.move(a),s(),c}function Xf(e,n,t){return(t?"":" ")+e}function Dr(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Yf(e,n,t,r){const i=Dr(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
|
|
62
|
+
`,...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function Qf(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}jr.attention=Zf;jr.peek=Jf;function jr(e,n,t,r){const i=t.enter("phrasing"),o=t.containerPhrasing({type:"root",children:[e]},r);return i(),o}function Zf(e,n){return{construct:"emphasis",markers:Qf(n)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Jf(e,n,t){return t.options.emphasis||"*"}function eh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function nh(e,n){let t=!1;return Or(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,fr}),!!((!e.depth||e.depth<3)&&_r(e)&&(n.options.setext||t))}function th(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(nh(e,t)){const f=t.enter("headingSetext"),p=t.enter("phrasing"),h=t.containerPhrasing(e,{...o.current(),before:`
|
|
63
|
+
`,after:`
|
|
64
|
+
`});return p(),f(),h+`
|
|
65
|
+
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
66
|
+
`))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),s=t.enter("phrasing");o.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
|
|
67
|
+
`,...o.current()});const c=u.charCodeAt(0);return(c===9||c===32)&&(u=eh(c)+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),s(),a(),u}Ol.peek=rh;function Ol(e){return e.value||""}function rh(){return"<"}Ll.peek=ih;function Ll(e,n,t,r){const i=Dr(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function ih(){return"!"}Pl.peek=lh;function Pl(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const c=t.stack;t.stack=c.filter(function(p){return p!=="phrasing"}),l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=c,o(),i==="full"||!u||u!==f?s+=a.move(f+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function lh(){return"!"}Dl.peek=oh;function Dl(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);if(!l.atBreak)continue;let s;for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function oh(){return"`"}function jl(e,n){const t=_r(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zl.peek=ah;function zl(e,n,t,r){const i=Dr(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);if(jl(e,t)){const c=t.stack;t.stack=c.filter(function(h){return h!=="phrasing"});const f=t.enter("autolink");let p=l.move("<");return p+=l.move(t.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),f(),t.stack=c,p}const a=t.enter("link");let s=t.enter("label"),u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function ah(e,n,t){return jl(e,t)?"<":"["}Fl.peek=sh;function Fl(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const c=t.stack;t.stack=c.filter(function(p){return p!=="phrasing"}),l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=c,o(),i==="full"||!u||u!==f?s+=a.move(f+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function sh(){return"["}function zr(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function uh(e){const n=zr(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function ch(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Bl(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function fh(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?ch(t):zr(t);const a=e.ordered?l==="."?")":".":uh(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Bl(t)===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"){s=!0;break}}}}s&&(l=a),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),u}function hh(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function ph(e,n,t,r){const i=hh(t);let o=t.bulletCurrent||zr(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),c);return s(),u;function c(f,p,h){return p?(h?"":" ".repeat(l))+f:(h?o:o+" ".repeat(l-o.length))+f}}function dh(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}function gh(e,n,t,r){if(!e.children.some(function(a){return $f(a)}))return t.containerFlow(e,r);const o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),l}function mh(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Fr.attention=xh;Fr.peek=yh;function Fr(e,n,t,r){const i=t.enter("phrasing"),o=t.containerPhrasing({type:"root",children:[e]},r);return i(),o}function xh(e,n){return{construct:"strong",markers:mh(n)==="*"?["*","_"]:["_","*"],sizes:[2]}}function yh(e,n,t){return t.options.strong||"*"}function bh(e,n,t,r){const i=n?n.children:[],o=i.indexOf(e);return t.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})}function kh(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function wh(e,n,t){const r=(Bl(t)+(t.options.ruleSpaces?" ":"")).repeat(kh(t));return t.options.ruleSpaces?r.slice(0,-1):r}const $l={blockquote:Uf,break:ji,code:Kf,definition:Yf,emphasis:jr,hardBreak:ji,heading:th,html:Ol,image:Ll,imageReference:Pl,inlineCode:Dl,link:zl,linkReference:Fl,list:fh,listItem:ph,paragraph:dh,root:gh,strong:Fr,text:bh,thematicBreak:wh};function Eh(){return{enter:{table:Sh,tableData:zi,tableHeader:zi,tableRow:Ah},exit:{codeText:_h,table:Ch,tableData:er,tableHeader:er,tableRow:er}}}function Sh(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Ch(e){this.exit(e),this.data.inTable=void 0}function Ah(e){this.enter({type:"tableRow",children:[]},e)}function er(e){this.exit(e)}function zi(e){this.enter({type:"tableCell",children:[]},e)}function _h(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Th));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Th(e,n){return n==="|"?n:e}function Nh(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
68
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(h,m,k,A){return u(c(h,k,A),h.align)}function a(h,m,k,A){const b=f(h,k,A),N=u([b]);return N.slice(0,N.indexOf(`
|
|
69
|
+
`))}function s(h,m,k,A){const b=k.enter("tableCell"),N=k.enter("phrasing"),_=k.containerPhrasing(h,{...A,before:o,after:o});return N(),b(),_}function u(h,m){return Ff(h,{align:m,alignDelimiters:r,padding:t,stringLength:i})}function c(h,m,k){const A=h.children;let b=-1;const N=[],_=m.enter("table");for(;++b<A.length;)N[b]=f(A[b],m,k);return _(),N}function f(h,m,k){const A=h.children;let b=-1;const N=[],_=m.enter("tableRow");for(;++b<A.length;)N[b]=s(A[b],h,m,k);return _(),N}function p(h,m,k){let A=$l.inlineCode(h,m,k);return k.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Ih(){return{exit:{taskListCheckValueChecked:Fi,taskListCheckValueUnchecked:Fi,paragraph:Rh}}}function vh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mh}}}function Fi(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Rh(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Mh(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let s=$l.listItem(e,n,t,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+l}}function Oh(){return[af(),Nf(),Mf(),Eh(),Ih()]}function Lh(e){return{extensions:[sf(),If(e),Of(),Nh(e),vh()]}}const Ph={tokenize:$h,partial:!0},Ul={tokenize:Uh,partial:!0},Hl={tokenize:Hh,partial:!0},ql={tokenize:qh,partial:!0},Dh={tokenize:Vh,partial:!0},Vl={name:"wwwAutolink",tokenize:Fh,previous:Gl},Wl={name:"protocolAutolink",tokenize:Bh,previous:Kl},Je={name:"emailAutolink",tokenize:zh,previous:Xl},Ye={};function jh(){return{text:Ye}}let mn=48;for(;mn<123;)Ye[mn]=Je,mn++,mn===58?mn=65:mn===91&&(mn=97);Ye[43]=Je;Ye[45]=Je;Ye[46]=Je;Ye[95]=Je;Ye[72]=[Je,Wl];Ye[104]=[Je,Wl];Ye[87]=[Je,Vl];Ye[119]=[Je,Vl];function zh(e,n,t){const r=this;let i,o;return l;function l(f){return!gr(f)||!Xl.call(r,r.previous)||Br(r.events)?t(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return gr(f)?(e.consume(f),a):f===64?(e.consume(f),s):t(f)}function s(f){return f===46?e.check(Dh,c,u)(f):f===45||f===95||Te(f)?(o=!0,e.consume(f),s):c(f)}function u(f){return e.consume(f),i=!0,s}function c(f){return o&&i&&ve(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(f)):t(f)}}function Fh(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Gl.call(r,r.previous)||Br(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ph,e.attempt(Ul,e.attempt(Hl,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Bh(e,n,t){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&Kl.call(r,r.previous)&&!Br(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):t(f)}function a(f){if(ve(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),s}return t(f)}function s(f){return f===47?(e.consume(f),o?u:(o=!0,s)):t(f)}function u(f){return f===null||gt(f)||ue(f)||kn(f)||wt(f)?t(f):e.attempt(Ul,e.attempt(Hl,c),t)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(f)}}function $h(e,n,t){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):t(l)}function o(l){return l===null?t(l):n(l)}}function Uh(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(ql,s,a)(u):u===null||ue(u)||kn(u)||u!==45&&wt(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?t(u):n(u)}}function Hh(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?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(ql,n,o)(l):l===null||ue(l)||kn(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function qh(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ue(a)||kn(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||ue(a)||kn(a)?n(a):r(a)}function o(a){return ve(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ve(a)?(e.consume(a),l):t(a)}}function Vh(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return Te(o)?t(o):n(o)}}function Gl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function Kl(e){return!ve(e)}function Xl(e){return!(e===47||gr(e))}function gr(e){return e===43||e===45||e===46||e===95||Te(e)}function Br(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Wh={tokenize:ep,partial:!0};function Gh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Qh,continuation:{tokenize:Zh},exit:Jh}},text:{91:{name:"gfmFootnoteCall",tokenize:Yh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Kh,resolveTo:Xh}}}}function Kh(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return t(s);const u=qe(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Xh(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+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)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Yh(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),s}function s(f){return f!==94?t(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!l||f===null||f===91||ue(f))return t(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(qe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(f)}return ue(f)||(l=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function Qh(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):t(m)}function c(m){if(l>999||m===93&&!a||m===null||m===91||ue(m))return t(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=qe(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ue(m)||(a=!0),l++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),l++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),re(e,h,"gfmFootnoteDefinitionWhitespace")):t(m)}function h(m){return n(m)}}function Zh(e,n,t){return e.check(Kn,n,e.attempt(Wh,n,t))}function Jh(e){e.exit("gfmFootnoteDefinition")}function ep(e,n,t){const r=this;return re(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?n(o):t(o)}}function np(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},f={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&He(p,p.length,0,Et(h,l.slice(u+1,s),a)),He(p,p.length,0,[["exit",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",c,a]]),He(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,c=this.events;let f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(m):(l.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const k=xt(u);if(m===126)return f>1?s(m):(l.consume(m),f++,h);if(f<2&&!t)return s(m);const A=l.exit("strikethroughSequenceTemporary"),b=xt(m);return A._open=!b||b===2&&!!k,A._close=!k||k===2&&!!b,a(m)}}}class tp{constructor(){this.map=[],this.index=new Map}add(n,t,r){rp(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0,this.index.clear()}}function rp(e,n,t,r){if(t===0&&r.length===0)return;const i=e.index.get(n);if(i){i[1]+=t,i[2].push(...r);return}const o=[n,t,r];e.map.push(o),e.index.set(n,o)}function ip(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-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"&&(t=!0);n+=1}return r}function lp(){return{flow:{null:{name:"table",tokenize:op,resolveAll:ap}}}}function op(e,n,t){const r=this;let i=0,o=0,l;return a;function a(w){let R=r.events.length-1;for(;R>-1;){const{type:j}=r.events[R][1];if(j==="lineEnding"||j==="linePrefix")R--;else break}const B=R>-1?r.events[R][1].type:null,ne=B==="tableHead"||B==="tableRow"?S:s;return ne===S&&r.parser.lazy[r.now().line]?t(w):ne(w)}function s(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(l=!0,o+=1),c(w)}function c(w){return w===null?t(w):H(w)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h):t(w):J(w)?re(e,c,"whitespace")(w):(o+=1,l&&(l=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||ue(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?p:f)}function p(w){return w===92||w===124?(e.consume(w),f):f(w)}function h(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(w):(e.enter("tableDelimiterRow"),l=!1,J(w)?re(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):m(w))}function m(w){return w===45||w===58?A(w):w===124?(l=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),k):F(w)}function k(w){return J(w)?re(e,A,"whitespace")(w):A(w)}function A(w){return w===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),b):w===45?(o+=1,b(w)):w===null||H(w)?q(w):F(w)}function b(w){return w===45?(e.enter("tableDelimiterFiller"),N(w)):F(w)}function N(w){return w===45?(e.consume(w),N):w===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(w))}function _(w){return J(w)?re(e,q,"whitespace")(w):q(w)}function q(w){return w===124?m(w):w===null||H(w)?!l||i!==o?F(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(w)):F(w)}function F(w){return t(w)}function S(w){return e.enter("tableRow"),U(w)}function U(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),U):w===null||H(w)?(e.exit("tableRow"),n(w)):J(w)?re(e,U,"whitespace")(w):(e.enter("data"),K(w))}function K(w){return w===null||w===124||ue(w)?(e.exit("data"),U(w)):(e.consume(w),w===92?oe:K)}function oe(w){return w===92||w===124?(e.consume(w),K):K(w)}}function ap(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,c,f;const p=new tp;for(;++t<e.length;){const h=e[t],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,s!==0&&(Bi(p,n,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",u,n]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",c,n]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=ft(p,n,o,i,void 0,f),o=[0,0,0,0]),l[2]=t)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=ft(p,n,o,i,void 0,f)),o=l,l=[o[1],t,0,0])):m.type==="tableHead"?(a=!0,s=t):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],f=ft(p,n,o,i,t,f)):l[1]!==0&&(f=ft(p,n,l,i,t,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&Bi(p,n,s,u,c),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=ip(n.events,t))}return e}function ft(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Tn(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=Tn(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=Tn(n.events,t[2]),c=Tn(n.events,t[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(t[2],0,[["enter",f,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const m=t[2]+1,k=t[3]-t[2]-1;e.add(m,k,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return i!==void 0&&(o.end=Object.assign({},Tn(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Bi(e,n,t,r,i){const o=[],l=Tn(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Tn(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const sp={name:"tasklistCheck",tokenize:cp};function up(){return{text:{91:sp}}}function cp(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return ue(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return H(s)?n(s):J(s)?e.check({tokenize:fp},n,t)(s):t(s)}}function fp(e,n,t){return re(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function hp(e){return al([jh(),Gh(),np(e),lp(),up()])}const pp={};function dp(e){const n=this,t=e||pp,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(hp(t)),o.push(Oh()),l.push(Lh(t))}var nr,$i;function gp(){if($i)return nr;$i=1;function e(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(C=>{const M=d[C],X=typeof M;(X==="object"||X==="function")&&!Object.isFrozen(M)&&e(M)}),d}class n{constructor(C){C.data===void 0&&(C.data={}),this.data=C.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(d,...C){const M=Object.create(null);for(const X in d)M[X]=d[X];return C.forEach(function(X){for(const pe in X)M[pe]=X[pe]}),M}const i="</span>",o=d=>!!d.scope,l=(d,{prefix:C})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const M=d.split(".");return[`${C}${M.shift()}`,...M.map((X,pe)=>`${X}${"_".repeat(pe+1)}`)].join(" ")}return`${C}${d}`};class a{constructor(C,M){this.buffer="",this.classPrefix=M.classPrefix,C.walk(this)}addText(C){this.buffer+=t(C)}openNode(C){if(!o(C))return;const M=l(C.scope,{prefix:this.classPrefix});this.span(M)}closeNode(C){o(C)&&(this.buffer+=i)}value(){return this.buffer}span(C){this.buffer+=`<span class="${C}">`}}const s=(d={})=>{const C={children:[]};return Object.assign(C,d),C};class u{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(C){this.top.children.push(C)}openNode(C){const M=s({scope:C});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(C){return this.constructor._walk(C,this.rootNode)}static _walk(C,M){return typeof M=="string"?C.addText(M):M.children&&(C.openNode(M),M.children.forEach(X=>this._walk(C,X)),C.closeNode(M)),C}static _collapse(C){typeof C!="string"&&C.children&&(C.children.every(M=>typeof M=="string")?C.children=[C.children.join("")]:C.children.forEach(M=>{u._collapse(M)}))}}class c extends u{constructor(C){super(),this.options=C}addText(C){C!==""&&this.add(C)}startScope(C){this.openNode(C)}endScope(){this.closeNode()}__addSublanguage(C,M){const X=C.root;M&&(X.scope=`language:${M}`),this.add(X)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function f(d){return d?typeof d=="string"?d:d.source:null}function p(d){return k("(?=",d,")")}function h(d){return k("(?:",d,")*")}function m(d){return k("(?:",d,")?")}function k(...d){return d.map(M=>f(M)).join("")}function A(d){const C=d[d.length-1];return typeof C=="object"&&C.constructor===Object?(d.splice(d.length-1,1),C):{}}function b(...d){return"("+(A(d).capture?"":"?:")+d.map(X=>f(X)).join("|")+")"}function N(d){return new RegExp(d.toString()+"|").exec("").length-1}function _(d,C){const M=d&&d.exec(C);return M&&M.index===0}const q=new RegExp(b(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function F(d,{joinWith:C}){let M=0;return d.map(X=>{M+=1;const pe=M;let de=f(X),D="";for(;de.length>0;){const P=q.exec(de);if(!P){D+=de;break}D+=de.substring(0,P.index),de=de.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?D+="\\"+String(Number(P[1])+pe):(D+=P[0],(P[0]==="("||/^\(\?[<']/.test(P[0]))&&M++)}return D}).map(X=>`(${X})`).join(C)}const S=/\b\B/,U="[a-zA-Z]\\w*",K="[a-zA-Z_]\\w*",oe="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",R="\\b(0b[01]+)",B="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ne=(d={})=>{const C=/^#![ ]*\//;return d.binary&&(d.begin=k(C,/.*\b/,d.binary,/\b.*/)),r({scope:"meta",begin:C,end:/$/,relevance:0,"on:begin":(M,X)=>{M.index!==0&&X.ignoreMatch()}},d)},j={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[j]},te={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[j]},he={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ie=function(d,C,M={}){const X=r({scope:"comment",begin:d,end:C,contains:[]},M);X.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const pe=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return X.contains.push({begin:k(/[ ]+/,"(",pe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),X},be=ie("//","$"),g=ie("/\\*","\\*/"),ke=ie("#","$"),Ie={scope:"number",begin:oe,relevance:0},x={scope:"number",begin:w,relevance:0},Oe={scope:"number",begin:R,relevance:0},en={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[j,{begin:/\[/,end:/\]/,relevance:0,contains:[j]}]},ge={scope:"title",begin:U,relevance:0},cn={scope:"title",begin:K,relevance:0},Ve={begin:"\\.\\s*"+K,relevance:0};var Be=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:j,BINARY_NUMBER_MODE:Oe,BINARY_NUMBER_RE:R,COMMENT:ie,C_BLOCK_COMMENT_MODE:g,C_LINE_COMMENT_MODE:be,C_NUMBER_MODE:x,C_NUMBER_RE:w,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(C,M)=>{M.data._beginMatch=C[1]},"on:end":(C,M)=>{M.data._beginMatch!==C[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:ke,IDENT_RE:U,MATCH_NOTHING_RE:S,METHOD_GUARD:Ve,NUMBER_MODE:Ie,NUMBER_RE:oe,PHRASAL_WORDS_MODE:he,QUOTE_STRING_MODE:te,REGEXP_MODE:en,RE_STARTERS_RE:B,SHEBANG:ne,TITLE_MODE:ge,UNDERSCORE_IDENT_RE:K,UNDERSCORE_TITLE_MODE:cn});function Ln(d,C){d.input[d.index-1]==="."&&C.ignoreMatch()}function Yn(d,C){d.className!==void 0&&(d.scope=d.className,delete d.className)}function _t(d,C){C&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Ln,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function Tt(d,C){Array.isArray(d.illegal)&&(d.illegal=b(...d.illegal))}function Nt(d,C){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function Qn(d,C){d.relevance===void 0&&(d.relevance=1)}const Zn=(d,C)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},d);Object.keys(d).forEach(X=>{delete d[X]}),d.keywords=M.keywords,d.begin=k(M.beforeMatch,p(M.begin)),d.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},d.relevance=0,delete M.beforeMatch},Jn=["of","and","for","in","not","or","if","then","parent","list","value"],It="keyword";function Pn(d,C,M=It){const X=Object.create(null);return typeof d=="string"?pe(M,d.split(" ")):Array.isArray(d)?pe(M,d):Object.keys(d).forEach(function(de){Object.assign(X,Pn(d[de],C,de))}),X;function pe(de,D){C&&(D=D.map(P=>P.toLowerCase())),D.forEach(function(P){const W=P.split("|");X[W[0]]=[de,et(W[0],W[1])]})}}function et(d,C){return C?Number(C):vt(d)?0:1}function vt(d){return Jn.includes(d.toLowerCase())}const nt={},Qe=d=>{console.error(d)},tt=(d,...C)=>{console.log(`WARN: ${d}`,...C)},nn=(d,C)=>{nt[`${d}/${C}`]||(console.log(`Deprecated as of ${d}. ${C}`),nt[`${d}/${C}`]=!0)},E=new Error;function v(d,C,{key:M}){let X=0;const pe=d[M],de={},D={};for(let P=1;P<=C.length;P++)D[P+X]=pe[P],de[P+X]=!0,X+=N(C[P-1]);d[M]=D,d[M]._emit=de,d[M]._multi=!0}function V(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Qe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),E;if(typeof d.beginScope!="object"||d.beginScope===null)throw Qe("beginScope must be object"),E;v(d,d.begin,{key:"beginScope"}),d.begin=F(d.begin,{joinWith:""})}}function Q(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Qe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),E;if(typeof d.endScope!="object"||d.endScope===null)throw Qe("endScope must be object"),E;v(d,d.end,{key:"endScope"}),d.end=F(d.end,{joinWith:""})}}function Se(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function ae(d){Se(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),V(d),Q(d)}function Ce(d){function C(D,P){return new RegExp(f(D),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(P?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,W){W.position=this.position++,this.matchIndexes[this.matchAt]=W,this.regexes.push([W,P]),this.matchAt+=N(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(W=>W[1]);this.matcherRe=C(F(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const W=this.matcherRe.exec(P);if(!W)return null;const we=W.findIndex((Dn,Rt)=>Rt>0&&Dn!==void 0),me=this.matchIndexes[we];return W.splice(0,we),Object.assign(W,me)}}class X{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const W=new M;return this.rules.slice(P).forEach(([we,me])=>W.addRule(we,me)),W.compile(),this.multiRegexes[P]=W,W}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,W){this.rules.push([P,W]),W.type==="begin"&&this.count++}exec(P){const W=this.getMatcher(this.regexIndex);W.lastIndex=this.lastIndex;let we=W.exec(P);if(this.resumingScanAtSamePosition()&&!(we&&we.index===this.lastIndex)){const me=this.getMatcher(0);me.lastIndex=this.lastIndex+1,we=me.exec(P)}return we&&(this.regexIndex+=we.position+1,this.regexIndex===this.count&&this.considerAll()),we}}function pe(D){const P=new X;return D.contains.forEach(W=>P.addRule(W.begin,{rule:W,type:"begin"})),D.terminatorEnd&&P.addRule(D.terminatorEnd,{type:"end"}),D.illegal&&P.addRule(D.illegal,{type:"illegal"}),P}function de(D,P){const W=D;if(D.isCompiled)return W;[Yn,Nt,ae,Zn].forEach(me=>me(D,P)),d.compilerExtensions.forEach(me=>me(D,P)),D.__beforeBegin=null,[_t,Tt,Qn].forEach(me=>me(D,P)),D.isCompiled=!0;let we=null;return typeof D.keywords=="object"&&D.keywords.$pattern&&(D.keywords=Object.assign({},D.keywords),we=D.keywords.$pattern,delete D.keywords.$pattern),we=we||/\w+/,D.keywords&&(D.keywords=Pn(D.keywords,d.case_insensitive)),W.keywordPatternRe=C(we,!0),P&&(D.begin||(D.begin=/\B|\b/),W.beginRe=C(W.begin),!D.end&&!D.endsWithParent&&(D.end=/\B|\b/),D.end&&(W.endRe=C(W.end)),W.terminatorEnd=f(W.end)||"",D.endsWithParent&&P.terminatorEnd&&(W.terminatorEnd+=(D.end?"|":"")+P.terminatorEnd)),D.illegal&&(W.illegalRe=C(D.illegal)),D.contains||(D.contains=[]),D.contains=[].concat(...D.contains.map(function(me){return hn(me==="self"?D:me)})),D.contains.forEach(function(me){de(me,W)}),D.starts&&de(D.starts,P),W.matcher=pe(W),W}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=r(d.classNameAliases||{}),de(d)}function Le(d){return d?d.endsWithParent||Le(d.starts):!1}function hn(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(C){return r(d,{variants:null},C)})),d.cachedVariants?d.cachedVariants:Le(d)?r(d,{starts:d.starts?r(d.starts):null}):Object.isFrozen(d)?r(d):d}var pn="11.12.0";class dn extends Error{constructor(C,M){super(C),this.name="HTMLInjectionError",this.html=M}}const En=t,Sn=r,Ae=Symbol("nomatch"),tn=7,ze=function(d){const C=Object.create(null),M=Object.create(null),X=[];let pe=!0;const de="Could not find the language '{}', did you forget to load/include a language module?",D={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function W(I){return P.noHighlightRe.test(I)}function we(I){let $=I.className+" ";$+=I.parentNode?I.parentNode.className:"";const ee=P.languageDetectRe.exec($);if(ee){const ce=rn(ee[1]);return ce||(tt(de.replace("{}",ee[1])),tt("Falling back to no-highlight mode for this block.",I)),ce?ee[1]:"no-highlight"}return $.split(/\s+/).find(ce=>W(ce)||rn(ce))}function me(I,$,ee){let ce="",ye="";typeof $=="object"?(ce=I,ee=$.ignoreIllegals,ye=$.language):(nn("10.7.0","highlight(lang, code, ...args) has been deprecated."),nn("10.7.0",`Please use highlight(code, options) instead.
|
|
70
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ye=I,ce=$),ee===void 0&&(ee=!0);const $e={code:ce,language:ye};it("before:highlight",$e);const ln=$e.result?$e.result:Dn($e.language,$e.code,ee);return ln.code=$e.code,it("after:highlight",ln),ln}function Dn(I,$,ee,ce){const ye=Object.create(null);function $e(L,z){return L.keywords[z]}function ln(){if(!Y.keywords){Ee.addText(fe);return}let L=0;Y.keywordPatternRe.lastIndex=0;let z=Y.keywordPatternRe.exec(fe),Z="";for(;z;){Z+=fe.substring(L,z.index);const le=Ge.case_insensitive?z[0].toLowerCase():z[0],_e=$e(Y,le);if(_e){const[Ze,wo]=_e;if(Ee.addText(Z),Z="",ye[le]=(ye[le]||0)+1,ye[le]<=tn&&(at+=wo),Ze.startsWith("_"))Z+=z[0];else{const Eo=Ge.classNameAliases[Ze]||Ze;We(z[0],Eo)}}else Z+=z[0];L=Y.keywordPatternRe.lastIndex,z=Y.keywordPatternRe.exec(fe)}Z+=fe.substring(L),Ee.addText(Z)}function lt(){if(fe==="")return;let L=null;if(typeof Y.subLanguage=="string"){if(!C[Y.subLanguage]){Ee.addText(fe);return}L=Dn(Y.subLanguage,fe,!0,Yr[Y.subLanguage]),Yr[Y.subLanguage]=L._top}else L=Mt(fe,Y.subLanguage.length?Y.subLanguage:null);Y.relevance>0&&(at+=L.relevance),Ee.__addSublanguage(L._emitter,L.language)}function Pe(){Y.subLanguage!=null?lt():ln(),fe=""}function We(L,z){L!==""&&(Ee.startScope(z),Ee.addText(L),Ee.endScope())}function Wr(L,z){let Z=1;const le=z.length-1;for(;Z<=le;){if(!L._emit[Z]){Z++;continue}const _e=Ge.classNameAliases[L[Z]]||L[Z],Ze=z[Z];_e?We(Ze,_e):(fe=Ze,ln(),fe=""),Z++}}function Gr(L,z){return L.scope&&typeof L.scope=="string"&&Ee.openNode(Ge.classNameAliases[L.scope]||L.scope),L.beginScope&&(L.beginScope._wrap?(We(fe,Ge.classNameAliases[L.beginScope._wrap]||L.beginScope._wrap),fe=""):L.beginScope._multi&&(Wr(L.beginScope,z),fe="")),Y=Object.create(L,{parent:{value:Y}}),Y}function Kr(L,z,Z){let le=_(L.endRe,Z);if(le){if(L["on:end"]){const _e=new n(L);L["on:end"](z,_e),_e.isMatchIgnored&&(le=!1)}if(le){for(;L.endsParent&&L.parent;)L=L.parent;return L}}if(L.endsWithParent)return Kr(L.parent,z,Z)}function mo(L){return Y.matcher.regexIndex===0?(fe+=L[0],1):(Dt=!0,0)}function xo(L){const z=L[0],Z=L.rule,le=new n(Z),_e=[Z.__beforeBegin,Z["on:begin"]];for(const Ze of _e)if(Ze&&(Ze(L,le),le.isMatchIgnored))return mo(z);return Z.skip?fe+=z:(Z.excludeBegin&&(fe+=z),Pe(),!Z.returnBegin&&!Z.excludeBegin&&(fe=z)),Gr(Z,L),Z.returnBegin?0:z.length}function yo(L){const z=L[0],Z=$.substring(L.index),le=Kr(Y,L,Z);if(!le)return Ae;const _e=Y;Y.endScope&&Y.endScope._wrap?(Pe(),We(z,Y.endScope._wrap)):Y.endScope&&Y.endScope._multi?(Pe(),Wr(Y.endScope,L)):_e.skip?fe+=z:(_e.returnEnd||_e.excludeEnd||(fe+=z),Pe(),_e.excludeEnd&&(fe=z));do Y.scope&&Ee.closeNode(),!Y.skip&&!Y.subLanguage&&(at+=Y.relevance),Y=Y.parent;while(Y!==le.parent);return le.starts&&Gr(le.starts,L),_e.returnEnd?0:z.length}function bo(){const L=[];for(let z=Y;z!==Ge;z=z.parent)z.scope&&L.unshift(z.scope);L.forEach(z=>Ee.openNode(z))}let ot={};function Xr(L,z){const Z=z&&z[0];if(fe+=L,Z==null)return Pe(),0;if(ot.type==="begin"&&z.type==="end"&&ot.index===z.index&&Z===""){if(fe+=$.slice(z.index,z.index+1),!pe){const le=new Error(`0 width match regex (${I})`);throw le.languageName=I,le.badRule=ot.rule,le}return 1}if(ot=z,z.type==="begin")return xo(z);if(z.type==="illegal"&&!ee){const le=new Error('Illegal lexeme "'+Z+'" for mode "'+(Y.scope||"<unnamed>")+'"');throw le.mode=Y,le}else if(z.type==="end"){const le=yo(z);if(le!==Ae)return le}if(z.type==="illegal"&&Z==="")return z.index===$.length||(fe+=`
|
|
71
|
+
`),1;if(Pt>1e5&&Pt>z.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fe+=Z,Z.length}const Ge=rn(I);if(!Ge)throw Qe(de.replace("{}",I)),new Error('Unknown language: "'+I+'"');const ko=Ce(Ge);let Lt="",Y=ce||ko;const Yr={},Ee=new P.__emitter(P);bo();let fe="",at=0,gn=0,Pt=0,Dt=!1;try{if(Ge.__emitTokens)Ge.__emitTokens($,Ee);else{for(Y.matcher.considerAll();;){Pt++,Dt?Dt=!1:Y.matcher.considerAll(),Y.matcher.lastIndex=gn;const L=Y.matcher.exec($);if(!L)break;const z=$.substring(gn,L.index),Z=Xr(z,L);gn=L.index+Z}Xr($.substring(gn))}return Ee.finalize(),Lt=Ee.toHTML(),{language:I,value:Lt,relevance:at,illegal:!1,_emitter:Ee,_top:Y}}catch(L){if(L.message&&L.message.includes("Illegal"))return{language:I,value:En($),illegal:!0,relevance:0,_illegalBy:{message:L.message,index:gn,context:$.slice(gn-100,gn+100),mode:L.mode,resultSoFar:Lt},_emitter:Ee};if(pe)return{language:I,value:En($),illegal:!1,relevance:0,errorRaised:L,_emitter:Ee,_top:Y};throw L}}function Rt(I){const $={value:En(I),illegal:!1,relevance:0,_top:D,_emitter:new P.__emitter(P)};return $._emitter.addText(I),$}function Mt(I,$){$=$||P.languages||Object.keys(C);const ee=Rt(I),ce=$.filter(rn).filter(Vr).map(Pe=>Dn(Pe,I,!1));ce.unshift(ee);const ye=ce.sort((Pe,We)=>{if(Pe.relevance!==We.relevance)return We.relevance-Pe.relevance;if(Pe.language&&We.language){if(rn(Pe.language).supersetOf===We.language)return 1;if(rn(We.language).supersetOf===Pe.language)return-1}return 0}),[$e,ln]=ye,lt=$e;return lt.secondBest=ln,lt}function io(I,$,ee){const ce=$&&M[$]||ee;I.classList.add("hljs"),I.classList.add(`language-${ce}`)}function Ot(I){let $=null;const ee=we(I);if(W(ee))return;if(it("before:highlightElement",{el:I,language:ee}),I.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",I);return}if(I.children.length>0&&(P.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(I)),P.throwUnescapedHTML))throw new dn("One of your code blocks includes unescaped HTML.",I.innerHTML);$=I;const ce=$.textContent,ye=ee?me(ce,{language:ee,ignoreIllegals:!0}):Mt(ce);I.innerHTML=ye.value,I.dataset.highlighted="yes",io(I,ee,ye.language),I.result={language:ye.language,re:ye.relevance,relevance:ye.relevance},ye.secondBest&&(I.secondBest={language:ye.secondBest.language,relevance:ye.secondBest.relevance}),it("after:highlightElement",{el:I,result:ye,text:ce})}function lo(I){P=Sn(P,I)}const oo=()=>{rt(),nn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ao(){rt(),nn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Hr=!1;function rt(){function I(){rt()}if(document.readyState==="loading"){Hr||window.addEventListener("DOMContentLoaded",I,!1),Hr=!0;return}document.querySelectorAll(P.cssSelector).forEach(Ot)}function so(I,$){let ee=null;try{ee=$(d)}catch(ce){if(Qe("Language definition for '{}' could not be registered.".replace("{}",I)),pe)Qe(ce);else throw ce;ee=D}ee.name||(ee.name=I),C[I]=ee,ee.rawDefinition=$.bind(null,d),ee.aliases&&qr(ee.aliases,{languageName:I})}function uo(I){delete C[I];for(const $ of Object.keys(M))M[$]===I&&delete M[$]}function co(){return Object.keys(C)}function rn(I){return I=(I||"").toLowerCase(),C[I]||C[M[I]]}function qr(I,{languageName:$}){typeof I=="string"&&(I=[I]),I.forEach(ee=>{M[ee.toLowerCase()]=$})}function Vr(I){const $=rn(I);return $&&!$.disableAutodetect}function fo(I){I["before:highlightBlock"]&&!I["before:highlightElement"]&&(I["before:highlightElement"]=$=>{I["before:highlightBlock"](Object.assign({block:$.el},$))}),I["after:highlightBlock"]&&!I["after:highlightElement"]&&(I["after:highlightElement"]=$=>{I["after:highlightBlock"](Object.assign({block:$.el},$))})}function ho(I){fo(I),X.push(I)}function po(I){const $=X.indexOf(I);$!==-1&&X.splice($,1)}function it(I,$){const ee=I;X.forEach(function(ce){ce[ee]&&ce[ee]($)})}function go(I){return nn("10.7.0","highlightBlock will be removed entirely in v12.0"),nn("10.7.0","Please use highlightElement now."),Ot(I)}Object.assign(d,{highlight:me,highlightAuto:Mt,highlightAll:rt,highlightElement:Ot,highlightBlock:go,configure:lo,initHighlighting:oo,initHighlightingOnLoad:ao,registerLanguage:so,unregisterLanguage:uo,listLanguages:co,getLanguage:rn,registerAliases:qr,autoDetection:Vr,inherit:Sn,addPlugin:ho,removePlugin:po}),d.debugMode=function(){pe=!1},d.safeMode=function(){pe=!0},d.versionString=pn,d.regex={concat:k,lookahead:p,either:b,optional:m,anyNumberOfTimes:h};for(const I in Be)typeof Be[I]=="object"&&e(Be[I]);return Object.assign(d,Be),d},Cn=ze({});return Cn.newInstance=()=>ze({}),nr=Cn,Cn.HighlightJS=Cn,Cn.default=Cn,nr}var mp=gp();const vn=yr(mp),xp="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",yp={scope:"number",match:xp,relevance:0};function bp(e){const n={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:r},contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,yp,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function kp(e){const n=e.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},c={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",h=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${r.join("|")}`,k={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${h}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},A={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",s,k,f,e.HASH_COMMENT_MODE]}]};return u.contains=[f,k,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[s,k,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[k,b,f]}]}}const kt="[A-Za-z$_][0-9A-Za-z$_]*",Yl=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ql=["true","false","null","undefined","NaN","Infinity"],Zl=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Jl=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],eo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],no=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],to=[].concat(eo,Zl,Jl);function wp(e){const n=e.regex,t=(ie,{after:be})=>{const g="</"+ie[0].slice(1);return ie.input.indexOf(g,be)!==-1},r=kt,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,be)=>{const g=ie[0].length+ie.index,ke=ie.input[g];if(ke==="<"||ke===","){be.ignoreMatch();return}ke===">"&&(t(ie,{after:g})||be.ignoreMatch());let Ie;const x=ie.input.substring(g);if(Ie=x.match(/^\s*=/)){be.ignoreMatch();return}if((Ie=x.match(/^\s+extends\s+/))&&Ie.index===0){be.ignoreMatch();return}}},a={$pattern:kt,keyword:Yl,literal:Ql,built_in:to,"variable.language":no},s="[0-9](_?[0-9])*",u=`\\.(${s})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${s})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},N={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},_=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,k,A,{match:/\$\d+/},f];p.contains=_.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(_)});const q=[].concat(N,p.contains),F=q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(q)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:F},U={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,n.concat(r,"(",n.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Zl,...Jl]}},oe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(ie){return n.concat("(?!",ie.join("|"),")")}const ne={match:n.concat(/\b/,B([...eo,"super","import","await"].map(ie=>`${ie}\\s*\\(`)),r,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},j={begin:n.concat(/\./,n.lookahead(n.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},O={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:F,CLASS_REFERENCE:K},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),oe,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,k,A,N,{match:/\$\d+/},f,K,{scope:"attr",match:r+n.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,e.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:F}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},j,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},ne,R,U,O,{match:/\$[(.]/}]}}function Ep(e){const n=e.regex,t=wp(e),r=kt,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[t.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:kt,keyword:Yl.concat(s),literal:Ql,built_in:to.concat(i),"variable.language":no},c={className:"meta",begin:"@"+r},f=(k,A,b)=>{const N=k.contains.findIndex(_=>_.label===A);if(N===-1)throw new Error("can not find mode to replace");k.contains.splice(N,1,b)};Object.assign(t.keywords,u),t.exports.PARAMS_CONTAINS.push(c);const p=t.contains.find(k=>k.scope==="attr"),h=Object.assign({},p,{match:n.concat(r,n.lookahead(/\s*\?:/))});t.exports.PARAMS_CONTAINS.push([t.exports.CLASS_REFERENCE,p,h]),t.contains=t.contains.concat([c,o,l,h]),f(t,"shebang",e.SHEBANG()),f(t,"use_strict",a);const m=t.contains.find(k=>k.label==="func.def");return m.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function Sp(e){const n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},m={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},k={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},A=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type",begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,k,o,l],b=[...A];return b.pop(),b.push(a),h.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}vn.registerLanguage("python",kp);vn.registerLanguage("typescript",Ep);vn.registerLanguage("json",bp);vn.registerLanguage("yaml",Sp);function Cp(e){return e.endsWith(".py")?"python":e.endsWith(".ts")?"typescript":e.endsWith(".json")?"json":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":"plaintext"}function ro({text:e,label:n="Copy"}){const[t,r]=je.useState(!1),i=async()=>{try{await navigator.clipboard.writeText(e),r(!0),window.setTimeout(()=>r(!1),1500)}catch{}};return y.jsxs("button",{type:"button",onClick:()=>void i(),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-muted transition hover:bg-surface-2 hover:text-fg","aria-label":t?"Copied":n,children:[t?y.jsx(vo,{className:"size-3.5 text-ok"}):y.jsx(jo,{className:"size-3.5"}),y.jsx("span",{"aria-live":"polite",children:t?"Copied":n})]})}function $r({code:e,language:n,title:t,className:r,maxHeight:i="32rem"}){const o=je.useMemo(()=>{if(n==="plaintext"||!vn.getLanguage(n))return null;try{return vn.highlight(e,{language:n}).value}catch{return null}},[e,n]);return y.jsxs("div",{className:pt("overflow-hidden rounded-xl border border-line bg-surface-2/50",r),children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-line px-3 py-1.5",children:[y.jsx("span",{className:"truncate font-mono text-xs text-muted",children:t??n}),y.jsx(ro,{text:e})]}),y.jsx("pre",{className:"overflow-auto p-3 font-mono text-[12.5px] leading-relaxed",style:{maxHeight:i},children:o!==null?y.jsx("code",{className:"hljs",dangerouslySetInnerHTML:{__html:o}}):y.jsx("code",{children:e})})]})}function _n({text:e}){return y.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-line bg-surface-2/50 px-3 py-2",children:[y.jsx("code",{className:"min-w-0 flex-1 font-mono text-xs leading-relaxed break-all",children:e}),y.jsx(ro,{text:e})]})}function ht({icon:e,title:n,children:t}){return y.jsxs(Rn,{className:"space-y-2 p-4",children:[y.jsxs("h3",{className:"flex items-center gap-2 font-semibold",children:[y.jsx("span",{className:"text-accent",children:e}),n]}),t]})}const $n=e=>/[\s"[\]{}]/.test(e)?`"${e.replace(/"/g,'\\"')}"`:e;function Ap({site:e,endpoints:n}){const t=n.filter(s=>s.callable&&s.operation&&!s.third_party),r=t[0]??n.find(s=>s.callable&&s.operation);if(!r||!r.operation)return y.jsx(bn,{title:"Nothing here can be called outside the browser",children:"Endpoints Ghost API can call (read-only) show up here with ready-to-copy commands."});const i=(r.inputs??[]).filter(s=>s.example&&s.location!=="query").slice(0,3).map(s=>$n(`${s.name}=${s.example}`)).join(" "),o=[$n(e),r.operation,i].filter(Boolean).join(" "),l=`${e.replace("/","~")}/${r.operation}`,a=e.split("/")[0].replace(/^www\./,"").split(".")[0];return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("p",{className:"text-sm text-muted",children:["Run these in Command Prompt or PowerShell (type them anywhere once"," ",y.jsx("code",{className:"font-mono",children:"scripts\\install-command.cmd"})," has run). Examples use"," ",y.jsx("span",{className:"font-mono",children:r.operation}),"; ",t.length>1?`${t.length} operations are available.`:"it's the one available."]}),y.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[y.jsxs(ht,{icon:y.jsx(br,{className:"size-4"}),title:"Download the data (CSV, Excel, JSON)",children:[y.jsx(_n,{text:`ghost-api fetch ${$n(e)}`}),y.jsx(_n,{text:`ghost-api fetch ${o} --format xlsx`})]}),y.jsxs(ht,{icon:y.jsx(Fo,{className:"size-4"}),title:"As a web API (Excel, scripts, any language)",children:[y.jsx(_n,{text:`ghost-api serve ${$n(e)}`}),y.jsx("p",{className:"text-xs text-muted",children:"Then open (docs at /docs):"}),y.jsx(_n,{text:`http://127.0.0.1:8900/${l}?format=csv`})]}),y.jsxs(ht,{icon:y.jsx(So,{className:"size-4"}),title:"As tools for an AI assistant (MCP)",children:[y.jsx(_n,{text:`claude mcp add ghost-${a} -- ghost-api mcp ${$n(e)}`}),y.jsxs("p",{className:"text-xs text-muted",children:['Then ask Claude things like "use ghost-',a,' to …". Needs ',y.jsx("code",{className:"font-mono",children:"pip install mcp"}),"."]})]}),y.jsxs(ht,{icon:y.jsx(tr,{className:"size-4"}),title:"Get alerts when something changes",children:[y.jsx(_n,{text:`ghost-api watch add ${o} --every 6h --notify ntfy:your-long-private-topic`}),y.jsx("p",{className:"text-xs text-muted",children:'Or use "Watch this for changes" on an endpoint.'})]})]})]})}function _p(e){return e.inputs?e.inputs:e.params.filter(n=>!n.sensitive).map(n=>({name:n.name,location:n.location,type:n.type,example:n.examples[0]??"",required:n.location==="path"}))}function Tp({domain:e,endpoint:n}){const t=mr(),r=In({mutationFn:()=>Xe.allow(e,n.key,!0),onSuccess:()=>void t.invalidateQueries({queryKey:["site",e]})}),i=n.method==="POST"&&n.replayable!==!1;return y.jsxs("div",{className:"space-y-2 rounded-lg bg-surface-2 px-3 py-2.5 text-sm",children:[y.jsx("p",{className:"text-muted",children:i?"Ghost API doesn't call this endpoint by itself: it's a POST, the kind sites use to change things (book, pay, post). If you checked that it only searches or reads, you can allow it.":"Ghost API doesn't call this endpoint: it looks like it changes data, or it only works inside the browser."}),i&&y.jsxs(an,{onClick:()=>r.mutate(),disabled:r.isPending,children:[y.jsx(Ro,{className:"size-4"}),r.isPending?"Allowing…":"I checked: it only reads, allow it"]}),r.error&&y.jsx(Ue,{error:r.error})]})}function Np({domain:e,endpoint:n,params:t}){const[r,i]=je.useState(!1),[o,l]=je.useState("6h"),[a,s]=je.useState(""),u=mr(),c=In({mutationFn:()=>Xe.addWatch({site:e,endpoint:n.key,params:t(),every:o,notify:a.trim()?[a.trim()]:[],pages:5}),onSuccess:()=>void u.invalidateQueries({queryKey:["watches"]})});return r?y.jsxs("div",{className:"space-y-2 rounded-lg border border-line p-3",children:[y.jsxs("div",{className:"flex flex-wrap items-end gap-2",children:[y.jsxs("label",{className:"text-xs text-muted",children:["Check every",y.jsxs("select",{value:o,onChange:f=>l(f.target.value),className:"ml-1.5 rounded-lg border border-line bg-surface px-2 py-1.5 text-sm text-fg",children:[y.jsx("option",{value:"1h",children:"hour"}),y.jsx("option",{value:"6h",children:"6 hours"}),y.jsx("option",{value:"1d",children:"day"})]})]}),y.jsxs("label",{className:"min-w-[14rem] flex-1 text-xs text-muted",children:["Alert me (optional)",y.jsx("input",{value:a,onChange:f=>s(f.target.value),placeholder:"ntfy:a-long-private-topic, webhook:https://..., desktop",className:"mt-1 block w-full rounded-lg border border-line bg-surface px-2.5 py-1.5 font-mono text-sm text-fg"})]}),y.jsxs(an,{variant:"primary",onClick:()=>c.mutate(),disabled:c.isPending,children:[y.jsx(tr,{className:"size-4"})," ",c.isPending?"Taking the first snapshot…":"Start watching"]})]}),c.error&&y.jsx(Ue,{error:c.error}),c.data&&y.jsxs("p",{className:"text-sm text-ok","aria-live":"polite",children:[c.data.check.headline,"."," ",y.jsx(xr,{to:"/watches",className:"underline",children:"See your watches"})]})]}):y.jsxs(an,{variant:"ghost",onClick:()=>i(!0),className:"px-0 text-accent hover:bg-transparent",children:[y.jsx(tr,{className:"size-4"})," Watch this for changes"]})}function Ip({domain:e,endpoint:n}){const t=_p(n),[r,i]=je.useState(()=>Object.fromEntries(t.map(m=>[m.name,m.example]))),[o,l]=je.useState(5),[a,s]=je.useState("csv"),u=()=>Object.fromEntries(Object.entries(r).filter(([,m])=>m!=="")),c=In({mutationFn:()=>Xe.tryEndpoint(e,n.key,u())}),f=In({mutationFn:()=>Xe.fetchData(e,n.key,u(),o,a)});if(n.callable===!1||n.callable===void 0&&n.replayable===!1)return y.jsx(Tp,{domain:e,endpoint:n});const p=(()=>{if(!c.data)return"";try{return JSON.stringify(JSON.parse(c.data.body),null,2)}catch{return c.data.body}})(),h="w-full rounded-lg border border-line bg-surface px-2.5 py-1.5 font-mono text-sm outline-none focus:border-accent";return y.jsxs("div",{className:"space-y-3",children:[t.length>0&&y.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:t.map(m=>y.jsxs("label",{className:"text-sm",children:[y.jsxs("span",{className:"mb-1 flex items-center gap-1.5",children:[y.jsx("span",{className:"font-mono",children:m.name}),y.jsxs("span",{className:"text-xs text-muted",children:[m.location," · ",m.type]})]}),y.jsx("input",{value:r[m.name]??"",onChange:k=>i({...r,[m.name]:k.target.value}),placeholder:m.example,className:h})]},m.name))}),t.some(m=>m.type==="list")&&y.jsx("p",{className:"text-xs text-muted",children:"For list inputs, write one value or several separated by commas."}),y.jsxs("div",{className:"flex flex-wrap items-end gap-2",children:[y.jsxs(an,{variant:"primary",onClick:()=>c.mutate(),disabled:c.isPending,children:[y.jsx(Wi,{className:"size-4"}),c.isPending?"Calling…":"Send request"]}),y.jsx("span",{className:"mx-1 hidden h-6 w-px bg-line sm:block","aria-hidden":!0}),y.jsxs("label",{className:"text-xs text-muted",children:["Pages",y.jsx("input",{type:"number",min:1,max:50,value:o,onChange:m=>l(Math.max(1,Math.min(50,Number(m.target.value)||1))),className:"ml-1.5 w-16 rounded-lg border border-line bg-surface px-2 py-1.5 text-sm text-fg"})]}),y.jsxs("select",{value:a,onChange:m=>s(m.target.value),"aria-label":"File format",className:"rounded-lg border border-line bg-surface px-2 py-1.5 text-sm",children:[y.jsx("option",{value:"csv",children:"CSV"}),y.jsx("option",{value:"xlsx",children:"Excel"}),y.jsx("option",{value:"json",children:"JSON"})]}),y.jsxs(an,{onClick:()=>f.mutate(),disabled:f.isPending,children:[y.jsx(br,{className:"size-4"}),f.isPending?"Downloading…":"Download data"]})]}),y.jsx(Np,{domain:e,endpoint:n,params:u}),f.error&&y.jsx(Ue,{error:f.error}),f.data&&y.jsxs("p",{className:"text-sm text-ok","aria-live":"polite",children:["Downloaded ",f.data.rows," rows as ",f.data.filename,"."]}),c.error&&y.jsx(Ue,{error:c.error}),c.data&&y.jsxs("div",{className:"space-y-2","aria-live":"polite",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[y.jsx(Hi,{className:c.data.ok?"bg-ok/15 text-ok":"bg-bad/15 text-bad",children:c.data.status||"no response"}),y.jsxs("span",{className:"text-muted",children:[c.data.ms," ms"]}),y.jsx("span",{className:"min-w-0 truncate font-mono text-xs text-muted",children:c.data.url})]}),c.data.error&&y.jsx(Ue,{error:c.data.error}),p&&y.jsx($r,{code:p,language:"json",title:c.data.truncated?"response (cut short)":"response",maxHeight:"24rem"})]})]})}function Ur(e,n){return rr({queryKey:["file",e,n],queryFn:()=>Xe.file(e,n??""),enabled:!!n})}function vp({site:e}){var l,a;const n=e.endpoints.filter(s=>!s.third_party),[t,r]=je.useState(((l=n[0])==null?void 0:l.key)??((a=e.endpoints[0])==null?void 0:a.key)??null),i=e.endpoints.find(s=>s.key===t),o=je.useRef(null);return e.endpoints.length?y.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 lg:grid-cols-[minmax(0,22rem)_minmax(0,1fr)]",children:[y.jsx("div",{className:"lg:sticky lg:top-20 lg:max-h-[calc(100vh-7rem)] lg:overflow-y-auto lg:pr-1",children:y.jsx(Lo,{endpoints:e.endpoints,selected:t,onSelect:s=>{var u;r(s),window.innerWidth<1024&&((u=o.current)==null||u.scrollIntoView({behavior:"smooth"}))}})}),y.jsx("div",{ref:o,className:"scroll-mt-20",children:y.jsx(Rn,{className:"p-4 sm:p-5",children:i?y.jsx(Po,{endpoint:i,tryIt:y.jsx(Ip,{domain:e.domain,endpoint:i},i.key)}):y.jsx(bn,{title:"Pick an endpoint"})})})]}):y.jsx(bn,{title:"No endpoints found for this site",children:"The site may render everything on the server, so there was no hidden API to capture. The report tab explains what was seen."})}const Rp=["client","models","tests","other"],Ui={client:0,models:1,tests:2,other:3,openapi:4,report:5};function Mp({site:e,languages:n}){var p;const t=mr(),r=e.files.filter(h=>Rp.includes(h.kind)&&/\.(py|ts)$/.test(h.name)).sort((h,m)=>Ui[h.kind]-Ui[m.kind]||h.name.localeCompare(m.name)),i={python:r.filter(h=>h.name.endsWith(".py")),typescript:r.filter(h=>h.name.endsWith(".ts"))},[o,l]=je.useState(i.python.length||!i.typescript.length?"python":"typescript"),a=i[o],[s,u]=je.useState((p=a[0])==null?void 0:p.name);je.useEffect(()=>{var h;a.some(m=>m.name===s)||u((h=a[0])==null?void 0:h.name)},[a,s]);const c=Ur(e.domain,s),f=In({mutationFn:()=>Xe.regenerate(e.domain,o),onSuccess:()=>{t.invalidateQueries({queryKey:["site",e.domain]}),t.invalidateQueries({queryKey:["file",e.domain]})}});return y.jsxs("div",{className:"space-y-3",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("div",{className:"inline-flex rounded-lg border border-line p-0.5",role:"group","aria-label":"Language",children:["python","typescript"].filter(h=>n.includes(h)).map(h=>y.jsx("button",{type:"button","aria-pressed":o===h,onClick:()=>l(h),className:pt("rounded-md px-3 py-1 text-sm font-medium transition",o===h?"bg-accent-soft text-accent":"text-muted hover:text-fg"),children:h==="python"?"Python":"TypeScript"},h))}),y.jsxs(an,{onClick:()=>f.mutate(),disabled:f.isPending||!e.endpoints.length,children:[a.length?y.jsx(Vi,{className:pt("size-4",f.isPending&&"animate-spin")}):y.jsx(jt,{className:"size-4","aria-hidden":!0}),f.isPending?"Generating…":a.length?"Regenerate":`Generate ${o==="python"?"Python":"TypeScript"} client`]}),y.jsx("a",{href:Xe.zipUrl(e.domain),download:!0,className:"ml-auto",children:y.jsxs(an,{children:[y.jsx(br,{className:"size-4"})," Download all (.zip)"]})})]}),f.error&&y.jsx(Ue,{error:f.error}),f.data&&y.jsxs("p",{className:"text-sm text-ok","aria-live":"polite",children:["Generated ",f.data.class_name," with ",Vn(f.data.methods.length,"method"),"."]}),a.length===0?y.jsx(Rn,{children:y.jsx(bn,{icon:y.jsx(jt,{className:"size-8"}),title:`No ${o==="python"?"Python":"TypeScript"} client yet`,children:e.endpoints.length?"Generate one with the button above. It takes a second and needs no LLM call.":"There are no endpoints to build a client from."})}):y.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-3 lg:grid-cols-[14rem_minmax(0,1fr)]",children:[y.jsx("ul",{className:"flex gap-1 overflow-x-auto lg:flex-col","aria-label":"Files",children:a.map(h=>y.jsx("li",{className:"shrink-0",children:y.jsxs("button",{type:"button",onClick:()=>u(h.name),"aria-current":h.name===s,className:pt("flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm transition",h.name===s?"bg-surface-2 text-fg":"text-muted hover:text-fg"),children:[y.jsx(jt,{className:"size-4 shrink-0"}),y.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:h.name}),y.jsx("span",{className:"hidden text-[11px] text-muted lg:inline",children:h.kind})]})},h.name))}),y.jsxs("div",{className:"min-w-0",children:[c.isPending&&y.jsx(Nn,{className:"h-96"}),c.error&&y.jsx(Ue,{error:c.error}),c.data!==void 0&&s&&y.jsx($r,{code:c.data,language:Cp(s),title:s,maxHeight:"70vh"})]})]})]})}function Op({site:e}){const n=e.files.find(r=>r.kind==="openapi"),t=Ur(e.domain,n==null?void 0:n.name);return n?y.jsxs("div",{className:"space-y-3",children:[y.jsx("p",{className:"text-sm text-muted",children:"An OpenAPI 3.1 description of the endpoints. Import it into Postman, Insomnia or Swagger UI, or use it to generate clients in other languages."}),t.isPending&&y.jsx(Nn,{className:"h-96"}),t.error&&y.jsx(Ue,{error:t.error}),t.data!==void 0&&y.jsx($r,{code:t.data,language:"yaml",title:n.name,maxHeight:"70vh"})]}):y.jsx(bn,{icon:y.jsx(Do,{className:"size-8"}),title:"No OpenAPI spec yet"})}function Lp({site:e}){const n=e.files.find(r=>r.name==="report.md"),t=Ur(e.domain,n==null?void 0:n.name);return n?y.jsxs(Rn,{className:"p-4 sm:p-6",children:[t.isPending&&y.jsx(Nn,{className:"h-96"}),t.error&&y.jsx(Ue,{error:t.error}),t.data!==void 0&&y.jsx("div",{className:"prose-ghost max-w-none",children:y.jsx(Yc,{remarkPlugins:[dp],children:t.data})})]}):y.jsx(bn,{title:"No report yet"})}function Pp({site:e}){return y.jsx(Rn,{children:y.jsx("ul",{className:"divide-y divide-line",children:e.runs.map(n=>y.jsx("li",{children:y.jsxs(xr,{to:`/runs/${n.id}`,className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-3 transition hover:bg-surface-2/60",children:[y.jsxs("span",{className:"font-mono text-sm text-muted",children:["#",n.id]}),y.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:n.goal}),y.jsx(Hi,{className:n.status==="failed"?"bg-bad/15 text-bad":n.status==="interrupted"?"bg-warn/15 text-warn":void 0,children:n.status}),y.jsxs("span",{className:"text-xs text-muted",children:[Vn(n.requests,"request")," · ",Vn(n.llm_calls,"LLM call")]}),y.jsx("span",{className:"w-20 text-right text-xs text-muted",children:qi(n.started_at)}),y.jsx(Wi,{className:"size-4 text-muted","aria-label":"Replay"})]})},n.id))})})}function Dp({site:e}){return e.lessons.length?y.jsx(Rn,{children:y.jsx("ul",{className:"divide-y divide-line",children:e.lessons.map(n=>y.jsxs("li",{className:"flex gap-3 px-4 py-3 text-sm",children:[y.jsx(Qr,{className:"mt-0.5 size-4 shrink-0 text-warn","aria-hidden":!0}),n]},n))})}):y.jsx(bn,{icon:y.jsx(Qr,{className:"size-8"}),title:"No lessons yet",children:"After a run, Ghost API saves what worked on this site (useful pages, endpoints, dead ends) so the next refresh needs fewer LLM calls."})}const jp=["endpoints","tools","code","docs","report","runs","lessons"];function Up(){var h,m;const e=Co(Ao().domain??""),n=_o(),[t,r]=To(),i=t.get("tab"),o=i&&jp.includes(i)?i:"endpoints",l=rr({queryKey:["site",e],queryFn:()=>Xe.site(e)}),a=rr({queryKey:["state"],queryFn:Xe.state}),s=In({mutationFn:()=>{var A,b;const k=(A=l.data)==null?void 0:A.runs[0];return Xe.startRun({url:(k==null?void 0:k.start_url)??`https://${e}/`,goal:(k==null?void 0:k.goal)??"",lang:"python",agent:((b=a.data)==null?void 0:b.has_llm)??!1,max_steps:20,max_llm_calls:30,ignore_robots:!1})},onSuccess:({run_id:k})=>n(`/runs/${k}`)});if(l.isPending)return y.jsxs("div",{className:"space-y-4",children:[y.jsx(Nn,{className:"h-10 w-72"}),y.jsx(Nn,{className:"h-10"}),y.jsx(Nn,{className:"h-96"})]});if(l.error)return y.jsx(Ue,{error:l.error});const u=l.data,c=u.endpoints.filter(k=>!k.third_party),f=c.filter(k=>k.status==="verified").length,p=u.runs[0];return y.jsxs("div",{className:"space-y-5",children:[y.jsxs(xr,{to:"/",className:"inline-flex items-center gap-1 text-sm text-muted hover:text-fg",children:[y.jsx(Mo,{className:"size-4"})," All sites"]}),y.jsxs("header",{className:"flex flex-wrap items-start gap-3",children:[y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("h1",{className:"text-xl font-bold break-all sm:text-2xl",children:u.domain}),y.jsxs("p",{className:"mt-1 text-sm text-muted",children:[Vn(c.length,"endpoint")," · ",f," verified · ",Vn(u.runs.length,"run"),p?` · last ${qi(p.finished_at??p.started_at)}`:""]})]}),y.jsxs(an,{onClick:()=>s.mutate(),disabled:s.isPending||((h=a.data)==null?void 0:h.running)!=null||!p,children:[y.jsx(Vi,{className:"size-4"})," Run again"]})]}),s.error&&y.jsx(Ue,{error:s.error}),y.jsx(Oo,{endpoints:u.endpoints}),y.jsx(No,{value:o,onChange:k=>r(k==="endpoints"?{}:{tab:k},{replace:!0}),tabs:[{id:"endpoints",label:"Endpoints",count:c.length},{id:"tools",label:"Use it elsewhere"},{id:"code",label:"Client code"},{id:"docs",label:"API docs"},{id:"report",label:"Report"},{id:"runs",label:y.jsxs("span",{className:"inline-flex items-center gap-1",children:[y.jsx(zo,{className:"size-3.5"}),"Runs"]}),count:u.runs.length},{id:"lessons",label:"Lessons",count:u.lessons.length}]}),o==="endpoints"&&y.jsx(vp,{site:u}),o==="code"&&y.jsx(Mp,{site:u,languages:((m=a.data)==null?void 0:m.languages)??["python","typescript"]}),o==="docs"&&y.jsx(Op,{site:u}),o==="report"&&y.jsx(Lp,{site:u}),o==="runs"&&y.jsx(Pp,{site:u}),o==="lessons"&&y.jsx(Dp,{site:u}),o==="tools"&&y.jsx(Ap,{site:u.domain,endpoints:u.endpoints}),y.jsxs("p",{className:"text-xs text-muted",children:["Files: ",u.files.map(k=>`${k.name} (${Io(k.size)})`).join(" · ")||"none"]})]})}export{Up as Site};
|