@mcpjam/inspector 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/client/assets/OAuthDesktopReturnNotice-BeDakGgb.css +2 -0
  2. package/dist/client/assets/OAuthDesktopReturnNotice-iYC9JwKS.js +11 -0
  3. package/dist/client/assets/{mermaid-GHXKKRXX-DooOqFNN.js → app-bootstrap-CFIJ9N6G.js} +1909 -649
  4. package/dist/client/assets/app-bootstrap-CbO9HC35.css +1 -0
  5. package/dist/client/assets/button-BPKzBERq.js +3 -0
  6. package/dist/client/assets/chunk-YOKDWASO-BBgLTb-C.js +145 -0
  7. package/dist/client/assets/dead-clicks-autocapture-vzk4B4ag.js +3 -0
  8. package/dist/client/assets/error-reporting-B2Nfbu05.js +102 -0
  9. package/dist/client/assets/error-reporting-DiPgrWbD.js +1 -0
  10. package/dist/client/assets/exception-autocapture-CbirCY_N.js +5 -0
  11. package/dist/client/assets/failed-request-tracker-mpVBJT24.js +3 -0
  12. package/dist/client/assets/highlighted-body-KPVGNVTW-D71DU577.js +3 -0
  13. package/dist/client/assets/index-foMfZA46.js +4 -0
  14. package/dist/client/assets/jszip.min-DP15U89q.js +4 -0
  15. package/dist/client/assets/mermaid-HWGCJPDP-GcLzqiVf.js +1 -0
  16. package/dist/client/assets/posthog-recorder-ChO49lxL.js +110 -0
  17. package/dist/client/assets/preload-helper-CzPH2rtr.js +3 -0
  18. package/dist/client/assets/rolldown-runtime-C3dIJScy.js +1 -0
  19. package/dist/client/assets/surveys-Cr5c_q1f.js +3 -0
  20. package/dist/client/assets/trace-timeline-CLFYdXi8.js +1 -0
  21. package/dist/client/assets/trace-timeline-D2HsPXC-.js +137 -0
  22. package/dist/client/assets/web-vitals-CdUasvTy.js +3 -0
  23. package/dist/client/index.html +7 -2
  24. package/dist/client/robots.txt +14 -0
  25. package/dist/server/{chunk-3I6NEQHV.js → chunk-RGDNQUHE.js} +2 -2
  26. package/dist/server/harness-install-cli.js +1 -1
  27. package/dist/server/index.js +9216 -6652
  28. package/package.json +50 -50
  29. package/dist/client/assets/dead-clicks-autocapture-ApmbuFvM.js +0 -2
  30. package/dist/client/assets/error-reporting-C8so6E8C.js +0 -92
  31. package/dist/client/assets/exception-autocapture-BqHgtpgn.js +0 -3
  32. package/dist/client/assets/highlighted-body-OFNGDK62-Lg-8-zC8.js +0 -2
  33. package/dist/client/assets/index-BYEarR7W.css +0 -1
  34. package/dist/client/assets/index-BireMI1y.js +0 -11
  35. package/dist/client/assets/jszip.min-DkflbHVD.js +0 -3
  36. package/dist/client/assets/mermaid-GHXKKRXX-zqdNpMJm.css +0 -1
  37. package/dist/client/assets/posthog-recorder-Cqdsd7mu.js +0 -109
  38. package/dist/client/assets/surveys-Bn96AwyI.js +0 -2
  39. package/dist/client/assets/web-vitals-D6VtlfDg.js +0 -2
@@ -0,0 +1,145 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KPVGNVTW-D71DU577.js","assets/rolldown-runtime-C3dIJScy.js","assets/preload-helper-CzPH2rtr.js"])))=>i.map(i=>d[i]);
2
+ import{o as nr,r as Ps,t as _n}from"./rolldown-runtime-C3dIJScy.js";import{a as Wc,i as Qc,n as Ms,o as Gc,r as Bs,t as Fs}from"./preload-helper-CzPH2rtr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.12.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a195a4c5-82d2-4644-80b2-9bdb8697ce6d",e._sentryDebugIdIdentifier="sentry-dbid-a195a4c5-82d2-4644-80b2-9bdb8697ce6d")}catch{}})();var rr=(function(e){if(e==null)return Jc;if(typeof e=="function")return ir(e);if(typeof e=="object")return Array.isArray(e)?Kc(e):Xc(e);if(typeof e=="string")return Zc(e);throw new Error("Expected function, string, or object as test")});function Kc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rr(e[n]);return ir(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Xc(e){const t=e;return ir(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Zc(e){return ir(t);function t(n){return n&&n.type===e}}function ir(e){return t;function t(n,r,i){return!!(eu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Jc(){return!0}function eu(e){return e!==null&&typeof e=="object"&&"type"in e}var Hs=[];var Mt="skip";function ar(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=rr(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Hs,E,C,w;if((!t||a(l,u,h[h.length-1]||void 0))&&(f=tu(n(l,h)),f[0]===!1))return f;if("children"in l&&l.children){const k=l;if(k.children&&f[0]!=="skip")for(C=(r?k.children.length:-1)+s,w=h.concat(k);C>-1&&C<k.children.length;){const I=k.children[C];if(E=o(I,C,w)(),E[0]===!1)return E;C=typeof E[1]=="number"?E[1]:C+s}}return f}}}function tu(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Hs:[e]}function Ye(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),ar(e,a,o,i);function o(l,u){const h=u[u.length-1],d=h?h.children.indexOf(l):void 0;return s(l,d,h)}}var y=nr(Gc(),1),Ut={indicator:"indicator",textOnly:"text-only",remove:"remove"};function nu({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=Ut.indicator,imageBlockPolicy:l=Ut.indicator}){const u=t.length&&!t.every(d=>d==="*"),h=n.length&&!n.every(d=>d==="*");if(!e&&(u||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const p=ou(e,t,n,r,i,a,s,o,l);Us(d),Ye(d,p)}}function Xi(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function ru(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}var iu=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),au=new Set(["javascript:","data:","file:","vbscript:"]);function Zi(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const l=e.substring(5);if(l&&l.length>0&&l!=="invalid")return e}}catch{return null}return null}const s=Xi(e,n);if(!s||au.has(s.protocol)||!(iu.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=ru(e);return s&&t.some(l=>{const u=Xi(l,n);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}function Us(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Us(t)}}var _r=Symbol("node-seen");function su(e,t,n){return t===Ut.remove?{type:"remove"}:t===Ut.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function lu(e,t,n){if(t===Ut.remove)return{type:"remove"};if(t===Ut.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var ou=(e,t,n,r,i,a,s,o,l)=>{const u=(h,d,p)=>{if(h.type!=="element"||h[_r])return!0;if(h.tagName==="a"){const f=Zi(h.properties.href,t,e,!1,!1,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=su(h,o,s);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.href=f,h.properties.target="_blank",h.properties.rel="noopener noreferrer",!0}if(h.tagName==="img"){const f=Zi(h.properties.src,n,e,r,!0,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=lu(h,l,a);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.src=f,!0}return!0};return u},Ji=typeof self=="object"?self:globalThis,cu=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case 0:case-1:return n(s,i);case 1:{const o=n([],i);for(const l of s)o.push(r(l));return o}case 2:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case 3:return n(new Date(s),i);case 4:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case 5:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case 6:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case 7:{const{name:o,message:l}=s;return n(new Ji[o](l),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Ji[a](s),i)};return r},ea=e=>cu(new Map,e)(0),Dt="",{toString:uu}={},{keys:hu}=Object,Jt=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=uu.call(e).slice(8,-1);switch(n){case"Array":return[1,Dt];case"Object":return[2,Dt];case"Date":return[3,Dt];case"RegExp":return[4,Dt];case"Map":return[5,Dt];case"Set":return[6,Dt];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Dn=([e,t])=>e===0&&(t==="function"||t==="symbol"),du=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Jt(s);switch(o){case 0:{let h=s;switch(l){case"bigint":o=8,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return i([-1],s)}return i([o,h],s)}case 1:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const h=[],d=i([o,h],s);for(const p of s)h.push(a(p));return d}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([o,h],s);for(const p of hu(s))(e||!Dn(Jt(s[p])))&&h.push([a(p),a(s[p])]);return d}case 3:return i([o,s.toISOString()],s);case 4:{const{source:h,flags:d}=s;return i([o,{source:h,flags:d}],s)}case 5:{const h=[],d=i([o,h],s);for(const[p,f]of s)(e||!(Dn(Jt(p))||Dn(Jt(f))))&&h.push([a(p),a(f)]);return d}case 6:{const h=[],d=i([o,h],s);for(const p of s)(e||!Dn(Jt(p)))&&h.push(a(p));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},ta=(e,{json:t,lossy:n}={})=>{const r=[];return du(!(t||n),!!t,new Map,r)(e),r},Ct=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ea(ta(e,t)):structuredClone(e):(e,t)=>ea(ta(e,t));var An=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};An.prototype.normal={};An.prototype.property={};An.prototype.space=void 0;function js(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new An(n,r,t)}function En(e){return e.toLowerCase()}var Re=class{constructor(e,t){this.attribute=t,this.property=e}};Re.prototype.attribute="";Re.prototype.booleanish=!1;Re.prototype.boolean=!1;Re.prototype.commaOrSpaceSeparated=!1;Re.prototype.commaSeparated=!1;Re.prototype.defined=!1;Re.prototype.mustUseProperty=!1;Re.prototype.number=!1;Re.prototype.overloadedBoolean=!1;Re.prototype.property="";Re.prototype.spaceSeparated=!1;Re.prototype.space=void 0;var $r=Ps({boolean:()=>Z,booleanish:()=>me,commaOrSpaceSeparated:()=>De,commaSeparated:()=>Ft,number:()=>M,overloadedBoolean:()=>Yr,spaceSeparated:()=>ce}),fu=0,Z=Nt(),me=Nt(),Yr=Nt(),M=Nt(),ce=Nt(),Ft=Nt(),De=Nt();function Nt(){return 2**++fu}var Ar=Object.keys($r),mi=class extends Re{constructor(e,t,n,r){let i=-1;if(super(e,t),na(this,"space",r),typeof n=="number")for(;++i<Ar.length;){const a=Ar[i];na(this,Ar[i],(n&$r[a])===$r[a])}}};mi.prototype.defined=!0;function na(e,t,n){n&&(e[t]=n)}function $t(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new mi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[En(r)]=r,n[En(a.attribute)]=r}return new An(t,n,e.space)}var zs=$t({properties:{ariaActiveDescendant:null,ariaAtomic:me,ariaAutoComplete:null,ariaBusy:me,ariaChecked:me,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:me,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:me,ariaFlowTo:ce,ariaGrabbed:me,ariaHasPopup:null,ariaHidden:me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:M,ariaLive:null,ariaModal:me,ariaMultiLine:me,ariaMultiSelectable:me,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:me,ariaReadOnly:me,ariaRelevant:null,ariaRequired:me,ariaRoleDescription:ce,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:me,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $s(e,t){return t in e?e[t]:t}function Ys(e,t){return $s(e,t.toLowerCase())}var pu=$t({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ft,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:ce,autoFocus:Z,autoPlay:Z,blocking:ce,capture:null,charSet:null,checked:Z,cite:null,className:ce,cols:M,colSpan:null,content:null,contentEditable:me,controls:Z,controlsList:ce,coords:M|Ft,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Yr,draggable:me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:ce,height:M,hidden:Yr,high:M,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:ce,itemRef:ce,itemScope:Z,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:M,pattern:null,ping:ce,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:ce,required:Z,reversed:Z,rows:M,rowSpan:M,sandbox:ce,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:me,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:me,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:Ys}),mu=$t({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:De,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ce,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Ft,g2:Ft,glyphName:Ft,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:De,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:De,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:De,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,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:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$s}),qs=$t({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Vs=$t({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ys}),Ws=$t({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),gu={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"},Eu=/[A-Z]/g,ra=/-[a-z]/g,Tu=/^data[-\w.:]+$/i;function sr(e,t){const n=En(t);let r=t,i=Re;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tu.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ra,ku);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ra.test(a)){let s=a.replace(Eu,bu);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=mi}return new i(r,t)}function bu(e){return"-"+e.toLowerCase()}function ku(e){return e.charAt(1).toUpperCase()}var yn=js([zs,pu,qs,Vs,Ws],"html"),gt=js([zs,mu,qs,Vs,Ws],"svg");function ia(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Qs(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var aa=/[#.]/g;function _u(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){aa.lastIndex=i;const o=aa.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function sa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gs(e){return e.join(" ").trim()}function Ks(e,t,n){const r=n?xu(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=_u(a,t);const u=l.tagName.toLowerCase(),h=r?r.get(u):void 0;if(l.tagName=h||u,Au(s))o.unshift(s);else for(const[d,p]of Object.entries(s))yu(e,l.properties,d,p)}for(const u of o)qr(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function Au(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function yu(e,t,n,r){const i=sr(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=sa(r):i.commaSeparated?a=ia(r):i.commaOrSpaceSeparated?a=sa(ia(r).join(" ")):a=la(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Cu(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(la(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qr(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qr(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function la(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||En(n)===En(t)))return!0}return n}function Cu(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function xu(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}var Iu=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Nu=Ks(yn,"div"),Su=Ks(gt,"g",Iu);function vu(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=oa(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=oa(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function oa(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
3
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var At={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xs={}.hasOwnProperty,wu=Object.prototype;function Lu(e,t){const n=t||{};return gi({file:n.file||void 0,location:!1,schema:n.space==="svg"?gt:yn,verbose:n.verbose||!1},e)}function gi(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},zn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Zs(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=vu(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},zn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},zn(e,r,n),n}default:return n=Ru(e,t),n}}function Zs(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=gi(e,t[n]);r.push(i)}return r}function Ru(e,t){const n=e.schema;e.schema=t.namespaceURI===At.svg?gt:yn;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],o=(s.prefix?s.prefix+":":"")+s.name;Xs.call(wu,o)||(i[o]=s.value)}const a=(e.schema.space==="svg"?Su:Nu)(t.tagName,i,Zs(e,t.childNodes));if(zn(e,t,a),a.tagName==="template"){const s=t,o=s.sourceCodeLocation,l=o&&o.startTag&&Bt(o.startTag),u=o&&o.endTag&&Bt(o.endTag),h=gi(e,s.content);l&&u&&e.file&&(h.position={start:l.end,end:u.start}),a.content=h}return e.schema=n,a}function zn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Ou(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ou(e,t,n){const r=Bt(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)Xs.call(n.attrs,s)&&(a[sr(e.schema,s).property]=Bt(n.attrs[s]));n.startTag;const o=Bt(n.startTag),l=n.endTag?Bt(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function Bt(e){const t=ca({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ca({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ca(e){return e.line&&e.column?e:void 0}var ua={}.hasOwnProperty;function Js(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&ua.call(i,e)){const l=String(i[e]);s=ua.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Du={},Pu={}.hasOwnProperty,el=Js("type",{handlers:{root:Bu,element:zu,text:Uu,comment:ju,doctype:Hu}});function Mu(e,t){const n=(t||Du).space;return el(e,n==="svg"?gt:yn)}function Bu(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ei(e.children,n,t),Yt(e,n),n}function Fu(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ei(e.children,n,t),Yt(e,n),n}function Hu(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Yt(e,t),t}function Uu(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Yt(e,t),t}function ju(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Yt(e,t),t}function zu(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Pu.call(e.properties,a)){const l=$u(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:At[s],childNodes:[],parentNode:null};return o.childNodes=Ei(e.children,o,r),Yt(e,o),e.tagName==="template"&&e.content&&(o.content=Fu(e.content,r)),o}function $u(e,t,n){const r=sr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Qs(n):Gs(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=At[r.space]}return i}function Ei(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=el(e[r],n);a.parentNode=t,i.push(a)}return i}function Yt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var Yu=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],qu=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var m;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(m||(m={}));var we={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function tl(e){return e>=55296&&e<=57343}function Vu(e){return e>=56320&&e<=57343}function Wu(e,t){return(e-55296)*1024+9216+t}function nl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function rl(e){return e>=64976&&e<=65007||qu.has(e)}var L;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(L||(L={}));var Qu=65536,Gu=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Qu,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(Vu(t))return this.pos++,this._addGap(),Wu(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(L.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;const n=this.html.charCodeAt(t);return n===m.CARRIAGE_RETURN?m.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let e=this.html.charCodeAt(this.pos);return e===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):e===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,tl(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===m.LINE_FEED||e===m.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){nl(e)?this._err(L.controlCharacterInInputStream):rl(e)&&this._err(L.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},J;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(J||(J={}));function il(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Ku=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),yr,Xu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),By=(yr=String.fromCodePoint)!==null&&yr!==void 0?yr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Zu(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Xu.get(e))!==null&&t!==void 0?t:e}var Ee;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ee||(Ee={}));var Ju=32,pt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(pt||(pt={}));function Vr(e){return e>=Ee.ZERO&&e<=Ee.NINE}function eh(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_F||e>=Ee.LOWER_A&&e<=Ee.LOWER_F}function th(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_Z||e>=Ee.LOWER_A&&e<=Ee.LOWER_Z||Vr(e)}function nh(e){return e===Ee.EQUALS||th(e)}var ge;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ge||(ge={}));var at;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(at||(at={}));var rh=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=at.Strict}startEntity(e){this.decodeMode=e,this.state=ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ge.EntityStart:return e.charCodeAt(t)===Ee.NUM?(this.state=ge.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ge.NamedEntity,this.stateNamedEntity(e,t));case ge.NumericStart:return this.stateNumericStart(e,t);case ge.NumericDecimal:return this.stateNumericDecimal(e,t);case ge.NumericHex:return this.stateNumericHex(e,t);case ge.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Ju)===Ee.LOWER_X?(this.state=ge.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ge.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(Vr(r)||eh(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(Vr(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ee.SEMI)this.consumed+=1;else if(this.decodeMode===at.Strict)return 0;return this.emitCodePoint(Zu(this.result),this.consumed),this.errors&&(e!==Ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&pt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=ih(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===at.Attribute&&(i===0||nh(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&pt.VALUE_LENGTH)>>14,i!==0){if(a===Ee.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==at.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&pt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~pt.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ge.NamedEntity:return this.result!==0&&(this.decodeMode!==at.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ge.NumericDecimal:return this.emitNumericEntity(0,2);case ge.NumericHex:return this.emitNumericEntity(0,3);case ge.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ge.EntityStart:return 0}}};function ih(e,t,n,r){const i=(t&pt.BRANCH_LENGTH)>>7,a=t&pt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var O;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(O||(O={}));var yt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(yt||(yt={}));var Be;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Be||(Be={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));var ah=new Map([[N.A,c.A],[N.ADDRESS,c.ADDRESS],[N.ANNOTATION_XML,c.ANNOTATION_XML],[N.APPLET,c.APPLET],[N.AREA,c.AREA],[N.ARTICLE,c.ARTICLE],[N.ASIDE,c.ASIDE],[N.B,c.B],[N.BASE,c.BASE],[N.BASEFONT,c.BASEFONT],[N.BGSOUND,c.BGSOUND],[N.BIG,c.BIG],[N.BLOCKQUOTE,c.BLOCKQUOTE],[N.BODY,c.BODY],[N.BR,c.BR],[N.BUTTON,c.BUTTON],[N.CAPTION,c.CAPTION],[N.CENTER,c.CENTER],[N.CODE,c.CODE],[N.COL,c.COL],[N.COLGROUP,c.COLGROUP],[N.DD,c.DD],[N.DESC,c.DESC],[N.DETAILS,c.DETAILS],[N.DIALOG,c.DIALOG],[N.DIR,c.DIR],[N.DIV,c.DIV],[N.DL,c.DL],[N.DT,c.DT],[N.EM,c.EM],[N.EMBED,c.EMBED],[N.FIELDSET,c.FIELDSET],[N.FIGCAPTION,c.FIGCAPTION],[N.FIGURE,c.FIGURE],[N.FONT,c.FONT],[N.FOOTER,c.FOOTER],[N.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[N.FORM,c.FORM],[N.FRAME,c.FRAME],[N.FRAMESET,c.FRAMESET],[N.H1,c.H1],[N.H2,c.H2],[N.H3,c.H3],[N.H4,c.H4],[N.H5,c.H5],[N.H6,c.H6],[N.HEAD,c.HEAD],[N.HEADER,c.HEADER],[N.HGROUP,c.HGROUP],[N.HR,c.HR],[N.HTML,c.HTML],[N.I,c.I],[N.IMG,c.IMG],[N.IMAGE,c.IMAGE],[N.INPUT,c.INPUT],[N.IFRAME,c.IFRAME],[N.KEYGEN,c.KEYGEN],[N.LABEL,c.LABEL],[N.LI,c.LI],[N.LINK,c.LINK],[N.LISTING,c.LISTING],[N.MAIN,c.MAIN],[N.MALIGNMARK,c.MALIGNMARK],[N.MARQUEE,c.MARQUEE],[N.MATH,c.MATH],[N.MENU,c.MENU],[N.META,c.META],[N.MGLYPH,c.MGLYPH],[N.MI,c.MI],[N.MO,c.MO],[N.MN,c.MN],[N.MS,c.MS],[N.MTEXT,c.MTEXT],[N.NAV,c.NAV],[N.NOBR,c.NOBR],[N.NOFRAMES,c.NOFRAMES],[N.NOEMBED,c.NOEMBED],[N.NOSCRIPT,c.NOSCRIPT],[N.OBJECT,c.OBJECT],[N.OL,c.OL],[N.OPTGROUP,c.OPTGROUP],[N.OPTION,c.OPTION],[N.P,c.P],[N.PARAM,c.PARAM],[N.PLAINTEXT,c.PLAINTEXT],[N.PRE,c.PRE],[N.RB,c.RB],[N.RP,c.RP],[N.RT,c.RT],[N.RTC,c.RTC],[N.RUBY,c.RUBY],[N.S,c.S],[N.SCRIPT,c.SCRIPT],[N.SEARCH,c.SEARCH],[N.SECTION,c.SECTION],[N.SELECT,c.SELECT],[N.SOURCE,c.SOURCE],[N.SMALL,c.SMALL],[N.SPAN,c.SPAN],[N.STRIKE,c.STRIKE],[N.STRONG,c.STRONG],[N.STYLE,c.STYLE],[N.SUB,c.SUB],[N.SUMMARY,c.SUMMARY],[N.SUP,c.SUP],[N.TABLE,c.TABLE],[N.TBODY,c.TBODY],[N.TEMPLATE,c.TEMPLATE],[N.TEXTAREA,c.TEXTAREA],[N.TFOOT,c.TFOOT],[N.TD,c.TD],[N.TH,c.TH],[N.THEAD,c.THEAD],[N.TITLE,c.TITLE],[N.TR,c.TR],[N.TRACK,c.TRACK],[N.TT,c.TT],[N.U,c.U],[N.UL,c.UL],[N.SVG,c.SVG],[N.VAR,c.VAR],[N.WBR,c.WBR],[N.XMP,c.XMP]]);function qt(e){var t;return(t=ah.get(e))!==null&&t!==void 0?t:c.UNKNOWN}var P=c,sh={[O.HTML]:new Set([P.ADDRESS,P.APPLET,P.AREA,P.ARTICLE,P.ASIDE,P.BASE,P.BASEFONT,P.BGSOUND,P.BLOCKQUOTE,P.BODY,P.BR,P.BUTTON,P.CAPTION,P.CENTER,P.COL,P.COLGROUP,P.DD,P.DETAILS,P.DIR,P.DIV,P.DL,P.DT,P.EMBED,P.FIELDSET,P.FIGCAPTION,P.FIGURE,P.FOOTER,P.FORM,P.FRAME,P.FRAMESET,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HEADER,P.HGROUP,P.HR,P.HTML,P.IFRAME,P.IMG,P.INPUT,P.LI,P.LINK,P.LISTING,P.MAIN,P.MARQUEE,P.MENU,P.META,P.NAV,P.NOEMBED,P.NOFRAMES,P.NOSCRIPT,P.OBJECT,P.OL,P.P,P.PARAM,P.PLAINTEXT,P.PRE,P.SCRIPT,P.SECTION,P.SELECT,P.SOURCE,P.STYLE,P.SUMMARY,P.TABLE,P.TBODY,P.TD,P.TEMPLATE,P.TEXTAREA,P.TFOOT,P.TH,P.THEAD,P.TITLE,P.TR,P.TRACK,P.UL,P.WBR,P.XMP]),[O.MATHML]:new Set([P.MI,P.MO,P.MN,P.MS,P.MTEXT,P.ANNOTATION_XML]),[O.SVG]:new Set([P.TITLE,P.FOREIGN_OBJECT,P.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},Wr=new Set([P.H1,P.H2,P.H3,P.H4,P.H5,P.H6]),Fy=new Set([N.STYLE,N.SCRIPT,N.XMP,N.IFRAME,N.NOEMBED,N.NOFRAMES,N.PLAINTEXT]),g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));var fe={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function lh(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function sn(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function oh(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function ht(e){return oh(e)||sn(e)}function ha(e){return ht(e)||lh(e)}function Pn(e){return e+32}function al(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function da(e){return al(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}function ch(e){return e===m.NULL?L.nullCharacterReference:e>1114111?L.characterReferenceOutsideUnicodeRange:tl(e)?L.surrogateCharacterReference:rl(e)?L.noncharacterCharacterReference:nl(e)||e===m.CARRIAGE_RETURN?L.controlCharacterReference:null}var uh=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Gu(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rh(Ku,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(L.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(L.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const r=ch(n);r&&this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:J.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:J.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:J.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:J.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(il(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const r=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=qt(e.tagName),e.type===J.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(L.endTagWithAttributes),e.selfClosing&&this._err(L.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case J.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case J.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case J.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:J.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=al(e)?J.WHITESPACE_CHARACTER:e===m.NULL?J.NULL_CHARACTER:J.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(J.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?at.Attribute:at.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case g.DATA:this._stateData(e);break;case g.RCDATA:this._stateRcdata(e);break;case g.RAWTEXT:this._stateRawtext(e);break;case g.SCRIPT_DATA:this._stateScriptData(e);break;case g.PLAINTEXT:this._statePlaintext(e);break;case g.TAG_OPEN:this._stateTagOpen(e);break;case g.END_TAG_OPEN:this._stateEndTagOpen(e);break;case g.TAG_NAME:this._stateTagName(e);break;case g.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case g.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case g.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case g.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case g.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case g.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case g.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case g.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case g.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case g.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case g.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case g.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case g.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case g.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case g.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case g.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case g.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case g.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case g.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case g.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case g.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case g.BOGUS_COMMENT:this._stateBogusComment(e);break;case g.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case g.COMMENT_START:this._stateCommentStart(e);break;case g.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case g.COMMENT:this._stateComment(e);break;case g.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case g.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case g.COMMENT_END:this._stateCommentEnd(e);break;case g.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case g.DOCTYPE:this._stateDoctype(e);break;case g.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case g.DOCTYPE_NAME:this._stateDoctypeName(e);break;case g.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case g.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case g.CDATA_SECTION:this._stateCdataSection(e);break;case g.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case g.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case g.CHARACTER_REFERENCE:this._stateCharacterReference();break;case g.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.TAG_OPEN;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitCodePoint(e);break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m.AMPERSAND:this._startCharacterReference();break;case m.LESS_THAN_SIGN:this.state=g.RCDATA_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.RAWTEXT_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ht(e))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.EXCLAMATION_MARK:this.state=g.MARKUP_DECLARATION_OPEN;break;case m.SOLIDUS:this.state=g.END_TAG_OPEN;break;case m.QUESTION_MARK:this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e);break;case m.EOF:this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ht(e))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.GREATER_THAN_SIGN:this._err(L.missingEndTagName),this.state=g.DATA;break;case m.EOF:this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.SOLIDUS:this.state=g.SELF_CLOSING_START_TAG;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentTagToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),t.tagName+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateRcdataLessThanSign(e){e===m.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ht(e)?(this.state=g.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case m.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case m.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=g.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===m.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ht(e)?(this.state=g.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case m.SOLIDUS:this.state=g.SCRIPT_DATA_END_TAG_OPEN;break;case m.EXCLAMATION_MARK:this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ht(e)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case m.HYPHEN_MINUS:this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.GREATER_THAN_SIGN:this.state=g.SCRIPT_DATA,this._emitChars(">");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ht(e)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ht(e)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(we.SCRIPT,!1)&&da(this.preprocessor.peek(we.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<we.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case m.HYPHEN_MINUS:this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.GREATER_THAN_SIGN:this.state=g.SCRIPT_DATA,this._emitChars(">");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(we.SCRIPT,!1)&&da(this.preprocessor.peek(we.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<we.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m.EQUALS_SIGN:this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=g.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m.EQUALS_SIGN:this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break;case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:this._err(L.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateAfterAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:this.state=g.SELF_CLOSING_START_TAG;break;case m.EQUALS_SIGN:this.state=g.BEFORE_ATTRIBUTE_VALUE;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentTagToken();break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case m.APOSTROPHE:this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break;default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case m.APOSTROPHE:this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.AMPERSAND:this._startCharacterReference();break;case m.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:case m.EQUALS_SIGN:case m.GRAVE_ACCENT:this._err(L.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.SOLIDUS:this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break;case m.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._err(L.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case m.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._err(L.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(we.DASH_DASH,!0)?(this._createCommentToken(we.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(we.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(we.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(we.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(we.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_START_DASH;break;case m.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=g.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END;break;case m.GREATER_THAN_SIGN:this._err(L.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END_DASH;break;case m.LESS_THAN_SIGN:t.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.data+="�";break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case m.EXCLAMATION_MARK:t.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break;case m.LESS_THAN_SIGN:t.data+="<";break;default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==m.GREATER_THAN_SIGN&&e!==m.EOF&&this._err(L.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END;break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentComment(t);break;case m.EXCLAMATION_MARK:this.state=g.COMMENT_END_BANG;break;case m.HYPHEN_MINUS:t.data+="-";break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:t.data+="--!",this.state=g.COMMENT_END_DASH;break;case m.GREATER_THAN_SIGN:this._err(L.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=g.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(sn(e))this._createDoctypeToken(String.fromCharCode(Pn(e))),this.state=g.DOCTYPE_NAME;else switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.NULL:this._err(L.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=g.DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=g.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.AFTER_DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.NULL:this._err(L.unexpectedNullCharacter),t.name+="�";break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(we.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(we.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.publicId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m.APOSTROPHE:this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.publicId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.QUOTATION_MARK:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.systemId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m.APOSTROPHE:this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.systemId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.NULL:this._err(L.unexpectedNullCharacter);break;case m.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case m.RIGHT_SQUARE_BRACKET:this.state=g.CDATA_SECTION_BRACKET;break;case m.EOF:this._err(L.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===m.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA;break;case m.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ha(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ha(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===m.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},sl=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),fa=new Set([...sl,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),Vn=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),hh=new Set([...Vn,c.OL,c.UL]),dh=new Set([...Vn,c.BUTTON]),pa=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),ma=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),fh=new Set([c.TR,c.TEMPLATE,c.HTML]),ph=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),mh=new Set([c.TABLE,c.TEMPLATE,c.HTML]),gh=new Set([c.TD,c.TH]),Eh=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===O.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==O.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Wr,O.HTML)}popUntilTableCellPopped(){this.popUntilPopped(gh,O.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(mh,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ph,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(fh,O.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case O.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case O.SVG:if(ma.has(r))return!1;break;case O.MATHML:if(pa.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Vn)}hasInListItemScope(e){return this.hasInDynamicScope(e,hh)}hasInButtonScope(e){return this.hasInDynamicScope(e,dh)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case O.HTML:if(Wr.has(t))return!0;if(Vn.has(t))return!1;break;case O.SVG:if(ma.has(t))return!1;break;case O.MATHML:if(pa.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===O.HTML)switch(this.tagIDs[e]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&sl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&fa.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&fa.has(this.currentTagId);)this.pop()}},Cr=3,Xe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xe||(Xe={}));var ga={type:Xe.Marker},Th=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const o=this.entries[s];if(o.type===Xe.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a){const u=this.treeAdapter.getAttrList(l);u.length===r&&n.push({idx:s,attrs:u})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<Cr)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<Cr)return;const r=new Map(t.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<n.length;a++){const s=n[a];s.attrs.every(o=>r.get(o.name)===o.value)&&(i+=1,i>=Cr&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(ga)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Xe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Xe.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(ga);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(n=>n.type===Xe.Marker||this.treeAdapter.getTagName(n.element)===e);return t&&t.type===Xe.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Xe.Element&&t.element===e)}},dt={createDocument(){return{nodeName:"#document",mode:Be.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};dt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(dt.isTextNode(n)){n.value+=t;return}}dt.appendChild(e,dt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&dt.isTextNode(r)?r.value+=t:dt.insertBefore(e,dt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ll="html",bh="about:legacy-compat",kh="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ol=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],_h=[...ol,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ah=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),cl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],yh=[...cl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ea(e,t){return t.some(n=>e.startsWith(n))}function Ch(e){return e.name===ll&&e.publicId===null&&(e.systemId===null||e.systemId===bh)}function xh(e){if(e.name!==ll)return Be.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===kh)return Be.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Ah.has(n))return Be.QUIRKS;let r=t===null?_h:ol;if(Ea(n,r))return Be.QUIRKS;if(r=t===null?cl:yh,Ea(n,r))return Be.LIMITED_QUIRKS}return Be.NO_QUIRKS}var Ta={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ih="definitionurl",Nh="definitionURL",Sh=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),vh=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),wh=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Lh=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Rh(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:n})=>n===yt.COLOR||n===yt.SIZE||n===yt.FACE)||Lh.has(t)}function ul(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ih){e.attrs[t].name=Nh;break}}function hl(e){for(let t=0;t<e.attrs.length;t++){const n=Sh.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ti(e){for(let t=0;t<e.attrs.length;t++){const n=vh.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Oh(e){const t=wh.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=qt(e.tagName))}function Dh(e,t){return t===O.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Ph(e,t,n){if(t===O.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===yt.ENCODING){const i=n[r].value.toLowerCase();return i===Ta.TEXT_HTML||i===Ta.APPLICATION_XML}}return t===O.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Mh(e,t,n,r){return(!r||r===O.HTML)&&Ph(e,t,n)||(!r||r===O.MATHML)&&Dh(e,t)}var Bh="hidden",Fh=8,Hh=3,b;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(b||(b={}));var Uh={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},dl=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),ba={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:dt,onParseError:null},ka=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=b.INITIAL,this.originalInsertionMode=b.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ba,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new uh(this.options,this),this.activeFormattingElements=new Th(this.treeAdapter),this.fragmentContextID=n?qt(this.treeAdapter.getTagName(n)):c.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Eh(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...ba,...t};e!=null||(e=n.treeAdapter.createElement(N.TEMPLATE,O.HTML,[]));const r=n.treeAdapter.createElement("documentmock",O.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===c.TEMPLATE&&i.tmplInsertionModeStack.unshift(b.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=(r=e.location)!==null&&r!==void 0?r:Uh,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)===null||i===void 0||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),t){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===O.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=b.TEXT}switchToPlaintextParsing(){this.insertionMode=b.TEXT,this.originalInsertionMode=b.IN_BODY,this.tokenizer.state=fe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===N.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==O.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:this.tokenizer.state=fe.RCDATA;break;case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:this.tokenizer.state=fe.RAWTEXT;break;case c.SCRIPT:this.tokenizer.state=fe.SCRIPT_DATA;break;case c.PLAINTEXT:this.tokenizer.state=fe.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const i=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));i&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(N.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,c.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:a,endCol:s,endOffset:o}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:a,endCol:s,endOffset:o})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===J.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===c.SVG&&this.treeAdapter.getTagName(t)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===O.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===c.MGLYPH||e.tagID===c.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,O.HTML)}_processToken(e){switch(e.type){case J.CHARACTER:this.onCharacter(e);break;case J.NULL_CHARACTER:this.onNullCharacter(e);break;case J.COMMENT:this.onComment(e);break;case J.DOCTYPE:this.onDoctype(e);break;case J.START_TAG:this._processStartTag(e);break;case J.END_TAG:this.onEndTag(e);break;case J.EOF:this.onEof(e);break;case J.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){const r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return Mh(e,r,i,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(r=>r.type===Xe.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){const i=this.activeFormattingElements.entries[r];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=b.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case c.TR:this.insertionMode=b.IN_ROW;return;case c.TBODY:case c.THEAD:case c.TFOOT:this.insertionMode=b.IN_TABLE_BODY;return;case c.CAPTION:this.insertionMode=b.IN_CAPTION;return;case c.COLGROUP:this.insertionMode=b.IN_COLUMN_GROUP;return;case c.TABLE:this.insertionMode=b.IN_TABLE;return;case c.BODY:this.insertionMode=b.IN_BODY;return;case c.FRAMESET:this.insertionMode=b.IN_FRAMESET;return;case c.SELECT:this._resetInsertionModeForSelect(e);return;case c.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case c.HTML:this.insertionMode=this.headElement?b.AFTER_HEAD:b.BEFORE_HEAD;return;case c.TD:case c.TH:if(e>0){this.insertionMode=b.IN_CELL;return}break;case c.HEAD:if(e>0){this.insertionMode=b.IN_HEAD;return}}this.insertionMode=b.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const n=this.openElements.tagIDs[t];if(n===c.TEMPLATE)break;if(n===c.TABLE){this.insertionMode=b.IN_SELECT_IN_TABLE;return}}this.insertionMode=b.IN_SELECT}_isElementCausesFosterParenting(e){return dl.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case c.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case c.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return sh[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ef(this,e);return}switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.IN_BODY:case b.IN_CAPTION:case b.IN_CELL:case b.IN_TEMPLATE:pl(this,e);break;case b.TEXT:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_TABLE_TEXT:kl(this,e);break;case b.IN_COLUMN_GROUP:Wn(this,e);break;case b.AFTER_BODY:Qn(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gf(this,e);return}switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.TEXT:this._insertCharacters(e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_COLUMN_GROUP:Wn(this,e);break;case b.AFTER_BODY:Qn(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Qr(this,e);return}switch(this.insertionMode){case b.INITIAL:case b.BEFORE_HTML:case b.BEFORE_HEAD:case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:case b.IN_BODY:case b.IN_TABLE:case b.IN_CAPTION:case b.IN_COLUMN_GROUP:case b.IN_TABLE_BODY:case b.IN_ROW:case b.IN_CELL:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:case b.IN_TEMPLATE:case b.IN_FRAMESET:case b.AFTER_FRAMESET:Qr(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.AFTER_BODY:Wh(this,e);break;case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:Qh(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case b.INITIAL:Gh(this,e);break;case b.BEFORE_HEAD:case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:this._err(e,L.misplacedDoctype);break;case b.IN_TABLE_TEXT:tn(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?Tf(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:Kh(this,e);break;case b.BEFORE_HEAD:Zh(this,e);break;case b.IN_HEAD:qe(this,e);break;case b.IN_HEAD_NO_SCRIPT:td(this,e);break;case b.AFTER_HEAD:rd(this,e);break;case b.IN_BODY:Ae(this,e);break;case b.IN_TABLE:jt(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_CAPTION:Jd(this,e);break;case b.IN_COLUMN_GROUP:_i(this,e);break;case b.IN_TABLE_BODY:cr(this,e);break;case b.IN_ROW:ur(this,e);break;case b.IN_CELL:nf(this,e);break;case b.IN_SELECT:yl(this,e);break;case b.IN_SELECT_IN_TABLE:af(this,e);break;case b.IN_TEMPLATE:lf(this,e);break;case b.AFTER_BODY:cf(this,e);break;case b.IN_FRAMESET:uf(this,e);break;case b.AFTER_FRAMESET:df(this,e);break;case b.AFTER_AFTER_BODY:pf(this,e);break;case b.AFTER_AFTER_FRAMESET:mf(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?bf(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:Xh(this,e);break;case b.BEFORE_HEAD:Jh(this,e);break;case b.IN_HEAD:ed(this,e);break;case b.IN_HEAD_NO_SCRIPT:nd(this,e);break;case b.AFTER_HEAD:id(this,e);break;case b.IN_BODY:or(this,e);break;case b.TEXT:$d(this,e);break;case b.IN_TABLE:Tn(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_CAPTION:ef(this,e);break;case b.IN_COLUMN_GROUP:tf(this,e);break;case b.IN_TABLE_BODY:Gr(this,e);break;case b.IN_ROW:Al(this,e);break;case b.IN_CELL:rf(this,e);break;case b.IN_SELECT:Cl(this,e);break;case b.IN_SELECT_IN_TABLE:sf(this,e);break;case b.IN_TEMPLATE:of(this,e);break;case b.AFTER_BODY:Il(this,e);break;case b.IN_FRAMESET:hf(this,e);break;case b.AFTER_FRAMESET:ff(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onEof(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.IN_BODY:case b.IN_TABLE:case b.IN_CAPTION:case b.IN_COLUMN_GROUP:case b.IN_TABLE_BODY:case b.IN_ROW:case b.IN_CELL:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:Tl(this,e);break;case b.TEXT:Yd(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_TEMPLATE:xl(this,e);break;case b.AFTER_BODY:case b.IN_FRAMESET:case b.AFTER_FRAMESET:case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:ki(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:case b.TEXT:case b.IN_COLUMN_GROUP:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:case b.IN_FRAMESET:case b.AFTER_FRAMESET:this._insertCharacters(e);break;case b.IN_BODY:case b.IN_CAPTION:case b.IN_CELL:case b.IN_TEMPLATE:case b.AFTER_BODY:case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:fl(this,e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_TABLE_TEXT:bl(this,e)}}};function jh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):El(e,t),n}function zh(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function $h(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Hh;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Yh(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Yh(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function qh(e,t,n){const r=e.treeAdapter.getTagName(t),i=qt(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Vh(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function bi(e,t){for(let n=0;n<Fh;n++){const r=jh(e,t);if(!r)break;const i=zh(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=$h(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&qh(e,s,a),Vh(e,i,r)}}function Qr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Wh(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Qh(e,t){e._appendCommentNode(t,e.document)}function ki(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Gh(e,t){e._setDocumentType(t);const n=t.forceQuirks?Be.QUIRKS:xh(t);Ch(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=b.BEFORE_HTML}function en(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Be.QUIRKS),e.insertionMode=b.BEFORE_HTML,e._processToken(t)}function Kh(e,t){t.tagID===c.HTML?(e._insertElement(t,O.HTML),e.insertionMode=b.BEFORE_HEAD):cn(e,t)}function Xh(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&cn(e,t)}function cn(e,t){e._insertFakeRootElement(),e.insertionMode=b.BEFORE_HEAD,e._processToken(t)}function Zh(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.HEAD:e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=b.IN_HEAD;break;default:un(e,t)}}function Jh(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?un(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function un(e,t){e._insertFakeElement(N.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=b.IN_HEAD,e._processToken(t)}function qe(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.TITLE:e._switchToTextParsing(t,fe.RCDATA);break;case c.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,fe.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=b.IN_HEAD_NO_SCRIPT);break;case c.NOFRAMES:case c.STYLE:e._switchToTextParsing(t,fe.RAWTEXT);break;case c.SCRIPT:e._switchToTextParsing(t,fe.SCRIPT_DATA);break;case c.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=b.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(b.IN_TEMPLATE);break;case c.HEAD:e._err(t,L.misplacedStartTagForHeadElement);break;default:hn(e,t)}}function ed(e,t){switch(t.tagID){case c.HEAD:e.openElements.pop(),e.insertionMode=b.AFTER_HEAD;break;case c.BODY:case c.BR:case c.HTML:hn(e,t);break;case c.TEMPLATE:St(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function St(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function hn(e,t){e.openElements.pop(),e.insertionMode=b.AFTER_HEAD,e._processToken(t)}function td(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:qe(e,t);break;case c.NOSCRIPT:e._err(t,L.nestedNoscriptInHead);break;default:dn(e,t)}}function nd(e,t){switch(t.tagID){case c.NOSCRIPT:e.openElements.pop(),e.insertionMode=b.IN_HEAD;break;case c.BR:dn(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function dn(e,t){const n=t.type===J.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=b.IN_HEAD,e._processToken(t)}function rd(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BODY:e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=b.IN_BODY;break;case c.FRAMESET:e._insertElement(t,O.HTML),e.insertionMode=b.IN_FRAMESET;break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),qe(e,t),e.openElements.remove(e.headElement);break;case c.HEAD:e._err(t,L.misplacedStartTagForHeadElement);break;default:fn(e,t)}}function id(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:fn(e,t);break;case c.TEMPLATE:St(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function fn(e,t){e._insertFakeElement(N.BODY,c.BODY),e.insertionMode=b.IN_BODY,lr(e,t)}function lr(e,t){switch(t.type){case J.CHARACTER:pl(e,t);break;case J.WHITESPACE_CHARACTER:fl(e,t);break;case J.COMMENT:Qr(e,t);break;case J.START_TAG:Ae(e,t);break;case J.END_TAG:or(e,t);break;case J.EOF:Tl(e,t)}}function fl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function pl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ad(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function sd(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function ld(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_FRAMESET)}function od(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function cd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Wr.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML)}function ud(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function hd(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}function dd(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function fd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=fe.PLAINTEXT}function pd(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1}function md(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(bi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ed(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(bi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Td(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function bd(e,t){e.treeAdapter.getDocumentMode(e.document)!==Be.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=b.IN_TABLE}function ml(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gl(e){const t=il(e,yt.TYPE);return t!=null&&t.toLowerCase()===Bh}function kd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),gl(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _d(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function Ad(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yd(e,t){t.tagName=N.IMG,t.tagID=c.IMG,ml(e,t)}function Cd(e,t){e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=fe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=b.TEXT}function xd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function Id(e,t){e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function _a(e,t){e._switchToTextParsing(t,fe.RAWTEXT)}function Nd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===b.IN_TABLE||e.insertionMode===b.IN_CAPTION||e.insertionMode===b.IN_TABLE_BODY||e.insertionMode===b.IN_ROW||e.insertionMode===b.IN_CELL?b.IN_SELECT_IN_TABLE:b.IN_SELECT}function Sd(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function vd(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function wd(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,O.HTML)}function Ld(e,t){e._reconstructActiveFormattingElements(),ul(t),Ti(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0}function Rd(e,t){e._reconstructActiveFormattingElements(),hl(t),Ti(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0}function Aa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function Ae(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:gd(e,t);break;case c.A:md(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:cd(e,t);break;case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:od(e,t);break;case c.LI:case c.DD:case c.DT:dd(e,t);break;case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:ml(e,t);break;case c.HR:Ad(e,t);break;case c.RB:case c.RTC:vd(e,t);break;case c.RT:case c.RP:wd(e,t);break;case c.PRE:case c.LISTING:ud(e,t);break;case c.XMP:xd(e,t);break;case c.SVG:Rd(e,t);break;case c.HTML:ad(e,t);break;case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:qe(e,t);break;case c.BODY:sd(e,t);break;case c.FORM:hd(e,t);break;case c.NOBR:Ed(e,t);break;case c.MATH:Ld(e,t);break;case c.TABLE:bd(e,t);break;case c.INPUT:kd(e,t);break;case c.PARAM:case c.TRACK:case c.SOURCE:_d(e,t);break;case c.IMAGE:yd(e,t);break;case c.BUTTON:pd(e,t);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:Td(e,t);break;case c.IFRAME:Id(e,t);break;case c.SELECT:Nd(e,t);break;case c.OPTION:case c.OPTGROUP:Sd(e,t);break;case c.NOEMBED:case c.NOFRAMES:_a(e,t);break;case c.FRAMESET:ld(e,t);break;case c.TEXTAREA:Cd(e,t);break;case c.NOSCRIPT:e.options.scriptingEnabled?_a(e,t):Aa(e,t);break;case c.PLAINTEXT:fd(e,t);break;case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:Aa(e,t)}}function Od(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=b.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Dd(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=b.AFTER_BODY,Il(e,t))}function Pd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Md(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function Bd(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(N.P,c.P),e._closePElement()}function Fd(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function Hd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Ud(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function zd(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function El(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function or(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:bi(e,t);break;case c.P:Bd(e);break;case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:Pd(e,t);break;case c.LI:Fd(e);break;case c.DD:case c.DT:Hd(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:Ud(e);break;case c.BR:zd(e);break;case c.BODY:Od(e,t);break;case c.HTML:Dd(e,t);break;case c.FORM:Md(e);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:jd(e,t);break;case c.TEMPLATE:St(e,t);break;default:El(e,t)}}function Tl(e,t){e.tmplInsertionModeStack.length>0?xl(e,t):ki(e,t)}function $d(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yd(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function xr(e,t){if(e.openElements.currentTagId!==void 0&&dl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=b.IN_TABLE_TEXT,t.type){case J.CHARACTER:kl(e,t);break;case J.WHITESPACE_CHARACTER:bl(e,t)}else Cn(e,t)}function qd(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_CAPTION}function Vd(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_COLUMN_GROUP}function Wd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,c.COLGROUP),e.insertionMode=b.IN_COLUMN_GROUP,_i(e,t)}function Qd(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_TABLE_BODY}function Gd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,c.TBODY),e.insertionMode=b.IN_TABLE_BODY,cr(e,t)}function Kd(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Xd(e,t){gl(t)?e._appendElement(t,O.HTML):Cn(e,t),t.ackSelfClosing=!0}function Zd(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function jt(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:Gd(e,t);break;case c.STYLE:case c.SCRIPT:case c.TEMPLATE:qe(e,t);break;case c.COL:Wd(e,t);break;case c.FORM:Zd(e,t);break;case c.TABLE:Kd(e,t);break;case c.TBODY:case c.TFOOT:case c.THEAD:Qd(e,t);break;case c.INPUT:Xd(e,t);break;case c.CAPTION:qd(e,t);break;case c.COLGROUP:Vd(e,t);break;default:Cn(e,t)}}function Tn(e,t){switch(t.tagID){case c.TABLE:e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break;case c.TEMPLATE:St(e,t);break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Cn(e,t)}}function Cn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,lr(e,t),e.fosterParentingEnabled=n}function bl(e,t){e.pendingCharacterTokens.push(t)}function kl(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Cn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var _l=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function Jd(e,t){const n=t.tagID;_l.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_TABLE,jt(e,t)):Ae(e,t)}function ef(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_TABLE,n===c.TABLE&&Tn(e,t));break;case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:or(e,t)}}function _i(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.COL:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.TEMPLATE:qe(e,t);break;default:Wn(e,t)}}function tf(e,t){switch(t.tagID){case c.COLGROUP:e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=b.IN_TABLE);break;case c.TEMPLATE:St(e,t);break;case c.COL:break;default:Wn(e,t)}}function Wn(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=b.IN_TABLE,e._processToken(t))}function cr(e,t){switch(t.tagID){case c.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_ROW;break;case c.TH:case c.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,c.TR),e.insertionMode=b.IN_ROW,ur(e,t);break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE,jt(e,t));break;default:jt(e,t)}}function Gr(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE);break;case c.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE,Tn(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Tn(e,t)}}function ur(e,t){switch(t.tagID){case c.TH:case c.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_CELL,e.activeFormattingElements.insertMarker();break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,cr(e,t));break;default:jt(e,t)}}function Al(e,t){switch(t.tagID){case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY);break;case c.TABLE:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,Gr(e,t));break;case c.TBODY:case c.TFOOT:case c.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,Gr(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Tn(e,t)}}function nf(e,t){const n=t.tagID;_l.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),ur(e,t)):Ae(e,t)}function rf(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_ROW);break;case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Al(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:or(e,t)}}function yl(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case c.OPTGROUP:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case c.HR:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break;case c.SCRIPT:case c.TEMPLATE:qe(e,t)}}function Cl(e,t){switch(t.tagID){case c.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break;case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break;case c.TEMPLATE:St(e,t)}}function af(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):yl(e,t)}function sf(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Cl(e,t)}function lf(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:qe(e,t);break;case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.tmplInsertionModeStack[0]=b.IN_TABLE,e.insertionMode=b.IN_TABLE,jt(e,t);break;case c.COL:e.tmplInsertionModeStack[0]=b.IN_COLUMN_GROUP,e.insertionMode=b.IN_COLUMN_GROUP,_i(e,t);break;case c.TR:e.tmplInsertionModeStack[0]=b.IN_TABLE_BODY,e.insertionMode=b.IN_TABLE_BODY,cr(e,t);break;case c.TD:case c.TH:e.tmplInsertionModeStack[0]=b.IN_ROW,e.insertionMode=b.IN_ROW,ur(e,t);break;default:e.tmplInsertionModeStack[0]=b.IN_BODY,e.insertionMode=b.IN_BODY,Ae(e,t)}}function of(e,t){t.tagID===c.TEMPLATE&&St(e,t)}function xl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ki(e,t)}function cf(e,t){t.tagID===c.HTML?Ae(e,t):Qn(e,t)}function Il(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=b.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Qn(e,t)}function Qn(e,t){e.insertionMode=b.IN_BODY,lr(e,t)}function uf(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.FRAMESET:e._insertElement(t,O.HTML);break;case c.FRAME:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.NOFRAMES:qe(e,t)}}function hf(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=b.AFTER_FRAMESET))}function df(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.NOFRAMES:qe(e,t)}}function ff(e,t){t.tagID===c.HTML&&(e.insertionMode=b.AFTER_AFTER_FRAMESET)}function pf(e,t){t.tagID===c.HTML?Ae(e,t):$n(e,t)}function $n(e,t){e.insertionMode=b.IN_BODY,lr(e,t)}function mf(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.NOFRAMES:qe(e,t)}}function gf(e,t){t.chars="�",e._insertCharacters(t)}function Ef(e,t){e._insertCharacters(t),e.framesetOk=!1}function Nl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Tf(e,t){if(Rh(t))Nl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?ul(t):r===O.SVG&&(Oh(t),hl(t)),Ti(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function bf(e,t){if(t.tagID===c.P||t.tagID===c.BR){Nl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}var Hy=new Set([N.AREA,N.BASE,N.BASEFONT,N.BGSOUND,N.BR,N.COL,N.EMBED,N.FRAME,N.HR,N.IMG,N.INPUT,N.KEYGEN,N.LINK,N.META,N.PARAM,N.SOURCE,N.TRACK,N.WBR]),hr=Sl("end"),Ze=Sl("start");function Sl(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function vl(e){const t=Ze(e),n=hr(e);if(t&&n)return{start:t,end:n}}var kf=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_f=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ya={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wl(e,t){const n=Lf(e),r=Js("type",{handlers:{root:Af,element:yf,text:Cf,comment:Rl,doctype:xf,raw:Nf},unknown:Sf}),i={parser:n?new ka(ya):ka.getFragmentParser(void 0,ya),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),Vt(i,Ze());const a=n?i.parser.document:i.parser.getFragment(),s=Lu(a,{file:i.options.file});return i.stitches&&Ye(s,"comment",function(o,l,u){const h=o;if(h.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=h.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Ll(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Af(e,t){Ll(e.children,t)}function yf(e,t){vf(e,t),Ll(e.children,t),wf(e,t)}function Cf(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:J.CHARACTER,chars:e.value,location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xf(e,t){const n={type:J.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function If(e,t){t.stitches=!0;const n=Rf(e);"children"in e&&"children"in n&&(n.children=wl({type:"root",children:e.children},t.options).children),Rl({type:"comment",value:{stitch:n}},t)}function Rl(e,t){const n=e.value,r={type:J.COMMENT,data:n,location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Nf(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ol(t,Ze(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(kf,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Sf(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))If(n,t);else{let r="";throw _f.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Vt(e,t){Ol(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=fe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ol(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function vf(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===fe.PLAINTEXT)return;Vt(t,Ze(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:At.html;i===At.html&&n==="svg"&&(i=At.svg);const a=Mu({...e,children:[]},{space:i===At.svg?"svg":"html"}),s={type:J.START_TAG,tagName:n,tagID:qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:xn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function wf(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Yu.includes(n)||t.parser.tokenizer.state===fe.PLAINTEXT)return;Vt(t,hr(e));const r={type:J.END_TAG,tagName:n,tagID:qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===fe.RCDATA||t.parser.tokenizer.state===fe.RAWTEXT||t.parser.tokenizer.state===fe.SCRIPT_DATA)&&(t.parser.tokenizer.state=fe.DATA)}function Lf(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xn(e){const t=Ze(e)||{line:void 0,column:void 0,offset:void 0},n=hr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Rf(e){return"children"in e?Ct({...e,children:[]}):Ct(e)}function Kr(e){return function(t,n){return wl(t,{...e,file:n})}}var Tt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],kt={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Tt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Tt],h2:[["className","sr-only"]],img:[...Tt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Tt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Tt],table:[...Tt],ul:[...Tt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ft={}.hasOwnProperty;function Of(e,t){let n={type:"root",children:[]};const r=Dl({schema:t?{...kt,...t}:kt,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function Dl(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Df(e,n);case"doctype":return Pf(e,n);case"element":return Mf(e,n);case"root":return Bf(e,n);case"text":return Ff(e,n)}}}function Df(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return In(i,t),i}}function Pf(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return In(n,t),n}}function Mf(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=Pl(e,t.children),i=Hf(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&ft.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l<o.length;)e.stack.includes(o[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return In(s,t),s}function Bf(e,t){const n={type:"root",children:Pl(e,t.children)};return In(n,t),n}function Ff(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return In(n,t),n}function Pl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=Dl(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Hf(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&ft.call(r,n)?r[n]:void 0,s=r&&ft.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(ft.call(o,u)){const h=o[u];let d=Ca(e,xa(a,u),u,h);d==null&&(d=Ca(e,xa(s,u),u,h)),d!=null&&(l[u]=d)}if(i&&ft.call(i,n)){const h=i[n];for(u in h)ft.call(h,u)&&!ft.call(l,u)&&(l[u]=h[u])}return l}function Ca(e,t,n,r){return t?Array.isArray(r)?Uf(e,t,n,r):Ml(e,t,n,r):void 0}function Uf(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=Ml(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Ml(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&jf(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function jf(e,t,n){const r=e.schema.protocols&&ft.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u<r.length;){const h=r[u];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function In(e,t){const n=vl(t);t.data&&(e.data=Ct(t.data)),n&&(e.position=n)}function xa(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Bl(e){return function(t){return Of(t,e)}}function Ia(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Ie=Et(/[A-Za-z]/),_e=Et(/[\dA-Za-z]/),zf=Et(/[#-'*+\--9=?A-Z^-~]/);function Gn(e){return e!==null&&(e<32||e===127)}var Xr=Et(/\d/),$f=Et(/[\dA-Fa-f]/),Yf=Et(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}var dr=Et(new RegExp("\\p{P}|\\p{S}","u")),xt=Et(/\s/);function Et(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function qf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vf(e,t,n){const r=rr((n||{}).ignore||[]),i=Wf(t);let a=-1;for(;++a<i.length;)ar(e,"text",s);function s(l,u){let h=-1,d;for(;++h<u.length;){const p=u[h],f=d?d.children:void 0;if(r(p,f?f.indexOf(p):void 0,d))return;d=p}if(d)return o(l,u)}function o(l,u){const h=u[u.length-1],d=i[a][0],p=i[a][1];let f=0;const E=h.children.indexOf(l);let C=!1,w=[];d.lastIndex=0;let k=d.exec(l.value);for(;k;){const I=k.index,x={index:k.index,input:k.input,stack:[...u,l]};let D=p(...k,x);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?d.lastIndex=I+1:(f!==I&&w.push({type:"text",value:l.value.slice(f,I)}),Array.isArray(D)?w.push(...D):D&&w.push(D),f=I+k[0].length,C=!0),!d.global)break;k=d.exec(l.value)}return C?(f<l.value.length&&w.push({type:"text",value:l.value.slice(f)}),h.children.splice(E,1,...w)):w=[l],E+w.length}}function Wf(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Qf(i[0]),Gf(i[1])])}return t}function Qf(e){return typeof e=="string"?new RegExp(qf(e),"g"):e}function Gf(e){return typeof e=="function"?e:function(){return e}}var Ir="phrasing",Nr=["autolink","link","image","label"];function Kf(){return{transforms:[rp],enter:{literalAutolink:Zf,literalAutolinkEmail:Sr,literalAutolinkHttp:Sr,literalAutolinkWww:Sr},exit:{literalAutolink:np,literalAutolinkEmail:tp,literalAutolinkHttp:Jf,literalAutolinkWww:ep}}}function Xf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ir,notInConstruct:Nr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ir,notInConstruct:Nr},{character:":",before:"[ps]",after:"\\/",inConstruct:Ir,notInConstruct:Nr}]}}function Zf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sr(e){this.config.enter.autolinkProtocol.call(this,e)}function Jf(e){this.config.exit.autolinkProtocol.call(this,e)}function ep(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function tp(e){this.config.exit.autolinkEmail.call(this,e)}function np(e){this.exit(e)}function rp(e){Vf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ip],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ap]],{ignore:["link","linkReference"]})}function ip(e,t,n,r,i){let a="";if(!Fl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!sp(n)))return!1;const s=lp(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function ap(e,t,n,r){return!Fl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function sp(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function lp(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ia(e,"(");let a=Ia(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Fl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||xt(n)||dr(n))&&(!t||n!==47)}function $e(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Hl.peek=gp;function op(){this.buffer()}function cp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function up(){this.buffer()}function hp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function dp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fp(e){this.exit(e)}function pp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mp(e){this.exit(e)}function gp(){return"["}function Hl(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Ep(){return{enter:{gfmFootnoteCallString:op,gfmFootnoteCall:cp,gfmFootnoteDefinitionLabelString:up,gfmFootnoteDefinition:hp},exit:{gfmFootnoteCallString:dp,gfmFootnoteCall:fp,gfmFootnoteDefinitionLabelString:pp,gfmFootnoteDefinition:mp}}}function Tp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Hl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),h(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
4
+ `:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Ul:bp))),u(),l}}function bp(e,t,n){return t===0?e:Ul(e,t,n)}function Ul(e,t,n){return(n?"":" ")+e}var kp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jl.peek=xp;function _p(){return{canContainEols:["delete"],enter:{strikethrough:yp},exit:{strikethrough:Cp}}}function Ap(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kp}],handlers:{delete:jl}}}function yp(e){this.enter({type:"delete",children:[]},e)}function Cp(e){this.exit(e)}function jl(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function xp(){return"~"}function Ip(e){return e.length}function Np(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ip,a=[],s=[],o=[],l=[];let u=0,h=-1;for(;++h<e.length;){const C=[],w=[];let k=-1;for(e[h].length>u&&(u=e[h].length);++k<e[h].length;){const I=Sp(e[h][k]);if(n.alignDelimiters!==!1){const x=i(I);w[k]=x,(l[k]===void 0||x>l[k])&&(l[k]=x)}C.push(I)}s[h]=C,o[h]=w}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)a[d]=Na(r[d]);else{const C=Na(r);for(;++d<u;)a[d]=C}d=-1;const p=[],f=[];for(;++d<u;){const C=a[d];let w="",k="";C===99?(w=":",k=":"):C===108?w=":":C===114&&(k=":");let I=n.alignDelimiters===!1?1:Math.max(1,l[d]-w.length-k.length);const x=w+"-".repeat(I)+k;n.alignDelimiters!==!1&&(I=w.length+I+k.length,I>l[d]&&(l[d]=I),f[d]=I),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),h=-1;const E=[];for(;++h<s.length;){const C=s[h],w=o[h];d=-1;const k=[];for(;++d<u;){const I=C[d]||"";let x="",D="";if(n.alignDelimiters!==!1){const B=l[d]-(w[d]||0),v=a[d];v===114?x=" ".repeat(B):v===99?B%2?(x=" ".repeat(B/2+.5),D=" ".repeat(B/2-.5)):(x=" ".repeat(B/2),D=x):D=" ".repeat(B)}n.delimiterStart!==!1&&!d&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&k.push(" "),n.alignDelimiters!==!1&&k.push(x),k.push(I),n.alignDelimiters!==!1&&k.push(D),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&k.push("|")}E.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return E.join(`
5
+ `)}function Sp(e){return e==null?"":String(e)}function Na(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function vp(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),wp);return i(),s}function wp(e,t,n){return">"+(n?"":" ")+e}function Lp(e,t){return Sa(e,t.inConstruct,!0)&&!Sa(e,t.notInConstruct,!1)}function Sa(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function va(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
6
+ `&&Lp(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
7
+ `}function Rp(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function Op(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Dp(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Pp(e,t,n,r){const i=Dp(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Op(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(a,Mp);return d(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Rp(a,i)+1,3)),u=n.enter("codeFenced");let h=o.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=o.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(n.safe(e.meta,{before:h,after:`
8
+ `,encode:["`"],...o.current()})),d()}return h+=o.move(`
9
+ `),a&&(h+=o.move(a+`
10
+ `)),h+=o.move(l),u(),h}function Mp(e,t,n){return(n?"":" ")+e}function Ai(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Bp(e,t,n,r){const i=Ai(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
11
+ `,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function Fp(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function bn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function zt(e){if(e===null||oe(e)||xt(e))return 1;if(dr(e))return 2}function Kn(e,t,n){const r=zt(e),i=zt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}zl.peek=Hp;function zl(e,t,n,r){const i=Fp(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),h=Kn(r.before.charCodeAt(r.before.length-1),u,i);h.inside&&(l=bn(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Kn(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+bn(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},o+l+f}function Hp(e,t,n){return n.options.emphasis||"*"}var Up={};function yi(e,t){const n=t||Up;return $l(e,typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,typeof n.includeHtml=="boolean"?n.includeHtml:!0)}function $l(e,t,n){if(jp(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wa(e.children,t,n)}return Array.isArray(e)?wa(e,t,n):""}function wa(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=$l(e[i],t,n);return r.join("")}function jp(e){return!!(e&&typeof e=="object")}function zp(e,t){let n=!1;return Ye(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,!1}),!!((!e.depth||e.depth<3)&&yi(e)&&(t.options.setext||n))}function $p(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(zp(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:`
12
+ `,after:`
13
+ `});return d(),h(),p+`
14
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
15
+ `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
16
+ `,...a.current()});return/^[\t ]/.test(u)&&(u=bn(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Yl.peek=Yp;function Yl(e){return e.value||""}function Yp(){return"<"}ql.peek=qp;function ql(e,t,n,r){const i=Ai(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function qp(){return"!"}Vl.peek=Vp;function Vl(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Vp(){return"!"}Wl.peek=Wp;function Wl(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function Wp(){return"`"}function Ql(e,t){const n=yi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Gl.peek=Qp;function Gl(e,t,n,r){const i=Ai(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Ql(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=h,d}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function Qp(e,t,n){return Ql(e,n)?"<":"["}Kl.peek=Gp;function Kl(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Gp(){return"["}function Ci(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Kp(e){const t=Ci(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Xp(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Xl(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Zp(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Xp(n):Ci(n);const o=e.ordered?s==="."?")":".":Kp(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Xl(n)===s&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),u}function Jp(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function em(e,t,n,r){const i=Jp(n);let a=n.bulletCurrent||Ci(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),h);return l(),u;function h(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function tm(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}var nm=rr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rm(e,t,n,r){return(e.children.some(function(i){return nm(i)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function im(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Zl.peek=am;function Zl(e,t,n,r){const i=im(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),h=Kn(r.before.charCodeAt(r.before.length-1),u,i);h.inside&&(l=bn(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Kn(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+bn(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},o+l+f}function am(e,t,n){return n.options.strong||"*"}function sm(e,t,n,r){return n.safe(e.value,r)}function lm(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function om(e,t,n){const r=(Xl(n)+(n.options.ruleSpaces?" ":"")).repeat(lm(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Jl={blockquote:vp,break:va,code:Pp,definition:Bp,emphasis:zl,hardBreak:va,heading:$p,html:Yl,image:ql,imageReference:Vl,inlineCode:Wl,link:Gl,linkReference:Kl,list:Zp,listItem:em,paragraph:tm,root:rm,strong:Zl,text:sm,thematicBreak:om},La=document.createElement("i");function xi(e){const t="&"+e+";";La.innerHTML=t;const n=La.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function eo(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}var cm=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function um(e){return e.replace(cm,hm)}function hm(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return eo(n.slice(i?2:1),i?16:10)}return xi(n)||e}function dm(){return{enter:{table:fm,tableData:Ra,tableHeader:Ra,tableRow:mm},exit:{codeText:gm,table:pm,tableData:vr,tableHeader:vr,tableRow:vr}}}function fm(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pm(e){this.exit(e),this.data.inTable=void 0}function mm(e){this.enter({type:"tableRow",children:[]},e)}function vr(e){this.exit(e)}function Ra(e){this.enter({type:"tableCell",children:[]},e)}function gm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Em));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Em(e,t){return t==="|"?t:e}function Tm(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(f,E,C,w){return u(h(f,C,w),f.align)}function o(f,E,C,w){const k=u([d(f,C,w)]);return k.slice(0,k.indexOf(`
18
+ `))}function l(f,E,C,w){const k=C.enter("tableCell"),I=C.enter("phrasing"),x=C.containerPhrasing(f,{...w,before:a,after:a});return I(),k(),x}function u(f,E){return Np(f,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function h(f,E,C){const w=f.children;let k=-1;const I=[],x=E.enter("table");for(;++k<w.length;)I[k]=d(w[k],E,C);return x(),I}function d(f,E,C){const w=f.children;let k=-1;const I=[],x=E.enter("tableRow");for(;++k<w.length;)I[k]=l(w[k],f,E,C);return x(),I}function p(f,E,C){let w=Jl.inlineCode(f,E,C);return C.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function bm(){return{exit:{taskListCheckValueChecked:Oa,taskListCheckValueUnchecked:Oa,paragraph:_m}}}function km(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Am}}}function Oa(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _m(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Am(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=Jl.listItem(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(h){return h+s}}function ym(){return[Kf(),Ep(),_p(),dm(),bm()]}function Cm(e){return{extensions:[Xf(),Tp(e),Ap(),Tm(e),km()]}}function Pe(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Fe(e,t){return e.length>0?(Pe(e,e.length,0,t),e):t}var Da={}.hasOwnProperty;function to(e){const t={};let n=-1;for(;++n<e.length;)xm(t,e[n]);return t}function xm(e,t){let n;for(n in t){const r=(Da.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){Da.call(r,a)||(r[a]=[]);const s=i[a];Im(r[a],Array.isArray(s)?s:s?[s]:[])}}}function Im(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pe(e,0,0,r)}var Nm={tokenize:Om,partial:!0},no={tokenize:Dm,partial:!0},ro={tokenize:Pm,partial:!0},io={tokenize:Mm,partial:!0},Sm={tokenize:Bm,partial:!0},ao={name:"wwwAutolink",tokenize:Lm,previous:lo},so={name:"protocolAutolink",tokenize:Rm,previous:oo},lt={name:"emailAutolink",tokenize:wm,previous:co},Je={};function vm(){return{text:Je}}var bt=48;for(;bt<123;)Je[bt]=lt,bt++,bt===58?bt=65:bt===91&&(bt=97);Je[43]=lt;Je[45]=lt;Je[46]=lt;Je[95]=lt;Je[72]=[lt,so];Je[104]=[lt,so];Je[87]=[lt,ao];Je[119]=[lt,ao];function wm(e,t,n){const r=this;let i,a;return s;function s(d){return!Zr(d)||!co.call(r,r.previous)||Ii(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Zr(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Sm,h,u)(d):d===45||d===95||_e(d)?(a=!0,e.consume(d),l):h(d)}function u(d){return e.consume(d),i=!0,l}function h(d){return a&&i&&Ie(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Lm(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!lo.call(r,r.previous)||Ii(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Nm,e.attempt(no,e.attempt(ro,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Rm(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&oo.call(r,r.previous)&&!Ii(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(Ie(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?u:(a=!0,l)):n(d)}function u(d){return d===null||Gn(d)||oe(d)||xt(d)||dr(d)?n(d):e.attempt(no,e.attempt(ro,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Om(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Dm(e,t,n){let r,i,a;return s;function s(u){return u===46||u===95?e.check(io,l,o)(u):u===null||oe(u)||xt(u)||u!==45&&dr(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!a?n(u):t(u)}}function Pm(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(io,t,a)(s):s===null||oe(s)||xt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Mm(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||oe(o)||xt(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||oe(o)||xt(o)?t(o):r(o)}function a(o){return Ie(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):Ie(o)?(e.consume(o),s):n(o)}}function Bm(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return _e(a)?n(a):t(a)}}function lo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||oe(e)}function oo(e){return!Ie(e)}function co(e){return!(e===47||Zr(e))}function Zr(e){return e===43||e===45||e===46||e===95||_e(e)}function Ii(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Wt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&_e(e.charCodeAt(n+1))&&_e(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function fr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Jr={name:"attention",resolveAll:Fm,tokenize:Hm};function Fm(e,t){let n=-1,r,i,a,s,o,l,u,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Pa(d,-l),Pa(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Fe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Fe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=Fe(u,fr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Fe(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,u=Fe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Pe(e,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Hm(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=zt(r);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),h=zt(l),d=!h||h===2&&i||n.includes(l),p=!i||i===2&&h||n.includes(r);return u._open=!!(a===42?d:d&&(i||!p)),u._close=!!(a===42?p:p&&(h||!d)),t(l)}}function Pa(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Um={name:"autolink",tokenize:jm};function jm(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ie(f)?(e.consume(f),s):f===64?n(f):u(f)}function s(f){return f===43||f===45||f===46||_e(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||_e(f))&&r++<32?(e.consume(f),o):(r=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Gn(f)?n(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),h):zf(f)?(e.consume(f),u):n(f)}function h(f){return _e(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||_e(f))&&r++<63){const E=f===45?p:d;return e.consume(f),E}return n(f)}}function ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return te(l)?(e.enter(n),o(l)):t(l)}function o(l){return te(l)&&a++<i?(e.consume(l),o):(e.exit(n),t(l))}}var Nn={partial:!0,tokenize:zm};function zm(e,t,n){return r;function r(a){return te(a)?ne(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}var uo={continuation:{tokenize:Ym},exit:qm,name:"blockQuote",tokenize:$m};function $m(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return te(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Ym(e,t,n){const r=this;return i;function i(s){return te(s)?ne(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(uo,t,n)(s)}}function qm(e){e.exit("blockQuote")}var ho={name:"characterEscape",tokenize:Vm};function Vm(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Yf(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}var fo={name:"characterReference",tokenize:Wm};function Wm(e,t,n){const r=this;let i=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=_e,h(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=$f,h):(e.enter("characterReferenceValue"),a=7,s=Xr,h(d))}function h(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return s===_e&&!xi(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),h):n(d)}}var Ma={partial:!0,tokenize:Gm},Ba={concrete:!0,name:"codeFenced",tokenize:Qm};function Qm(e,t,n){const r=this,i={partial:!0,tokenize:B};let a=0,s=0,o;return l;function l(v){return u(v)}function u(v){const U=r.events[r.events.length-1];return a=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,o=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(v)}function h(v){return v===o?(s++,e.consume(v),h):s<3?n(v):(e.exit("codeFencedFenceSequence"),te(v)?ne(e,d,"whitespace")(v):d(v))}function d(v){return v===null||V(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(Ma,C,D)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||V(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(v)):te(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,f,"whitespace")(v)):v===96&&v===o?n(v):(e.consume(v),p)}function f(v){return v===null||V(v)?d(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(v))}function E(v){return v===null||V(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(v)):v===96&&v===o?n(v):(e.consume(v),E)}function C(v){return e.attempt(i,D,w)(v)}function w(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),k}function k(v){return a>0&&te(v)?ne(e,I,"linePrefix",a+1)(v):I(v)}function I(v){return v===null||V(v)?e.check(Ma,C,D)(v):(e.enter("codeFlowValue"),x(v))}function x(v){return v===null||V(v)?(e.exit("codeFlowValue"),I(v)):(e.consume(v),x)}function D(v){return e.exit("codeFenced"),t(v)}function B(v,U,$){let q=0;return S;function S(G){return v.enter("lineEnding"),v.consume(G),v.exit("lineEnding"),j}function j(G){return v.enter("codeFencedFence"),te(G)?ne(v,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):z(G)}function z(G){return G===o?(v.enter("codeFencedFenceSequence"),Q(G)):$(G)}function Q(G){return G===o?(q++,v.consume(G),Q):q>=s?(v.exit("codeFencedFenceSequence"),te(G)?ne(v,ie,"whitespace")(G):ie(G)):$(G)}function ie(G){return G===null||V(G)?(v.exit("codeFencedFence"),U(G)):$(G)}}}function Gm(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}var wr={name:"codeIndented",tokenize:Xm},Km={partial:!0,tokenize:Zm};function Xm(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(e,a,"linePrefix",5)(u)}function a(u){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):V(u)?e.attempt(Km,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||V(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Zm(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):V(s)?i(s):n(s)}}var Jm={name:"codeText",previous:tg,resolve:eg,tokenize:ng};function eg(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function tg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ng(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,h(d)):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||V(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function h(d){return d===96?(e.consume(d),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",u(d))}}var rg=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&nn(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),nn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);nn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);nn(this.left,t.reverse())}}};function nn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function po(e){const t={};let n=-1,r,i,a,s,o,l,u;const h=new rg(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ig(h,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},o=h.slice(i,n),o.unshift(r),h.splice(i,n-i+1,o))}}return Pe(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function ig(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let h,d,p=-1,f=n,E=0,C=0;const w=[C];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(C=p+1,w.push(C),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),p=w.length;p--;){const k=o.slice(w[p],w[p+1]),I=a.pop();l.push([I,I+k.length-1]),e.splice(I,2,k)}for(l.reverse(),p=-1;++p<l.length;)u[E+l[p][0]]=E+l[p][1],E+=l[p][1]-l[p][0]-1;return u}var ag={resolve:lg,tokenize:og},sg={partial:!0,tokenize:cg};function lg(e){return po(e),e}function og(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):V(o)?e.check(sg,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function cg(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ne(e,a,"linePrefix")}function a(s){if(s===null||V(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function mo(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let h=0;return d;function d(k){return k===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(k),e.exit(a),p):k===null||k===32||k===41||Gn(k)?n(k):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(k))}function p(k){return k===62?(e.enter(a),e.consume(k),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===62?(e.exit("chunkString"),e.exit(o),p(k)):k===null||k===60||V(k)?n(k):(e.consume(k),k===92?E:f)}function E(k){return k===60||k===62||k===92?(e.consume(k),f):f(k)}function C(k){return!h&&(k===null||k===41||oe(k))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(k)):h<u&&k===40?(e.consume(k),h++,C):k===41?(e.consume(k),h--,C):k===null||k===32||k===40||Gn(k)?n(k):(e.consume(k),k===92?w:C)}function w(k){return k===40||k===41||k===92?(e.consume(k),C):C(k)}}function go(e,t,n,r,i,a){const s=this;let o=0,l;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),h}function h(f){return o>999||f===null||f===91||f===93&&!l||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||V(f)||o++>999?(e.exit("chunkString"),h(f)):(e.consume(f),l||(l=!te(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function Eo(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===s||p===null||V(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:h)}function d(p){return p===s||p===92?(e.consume(p),h):h(p)}}function pn(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):te(i)?ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var ug={name:"definition",tokenize:dg},hg={partial:!0,tokenize:fg};function dg(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return go.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=$e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return oe(f)?pn(e,u)(f):u(f)}function u(f){return mo(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(hg,d,d)(f)}function d(f){return te(f)?ne(e,p,"whitespace")(f):p(f)}function p(f){return f===null||V(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function fg(e,t,n){return r;function r(o){return oe(o)?pn(e,i)(o):n(o)}function i(o){return Eo(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return te(o)?ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||V(o)?t(o):n(o)}}var pg={name:"hardBreakEscape",tokenize:mg};function mg(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return V(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}var gg={name:"headingAtx",resolve:Eg,tokenize:Tg};function Eg(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pe(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Tg(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||oe(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||V(h)?(e.exit("atxHeading"),t(h)):te(h)?ne(e,o,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),o(h))}function u(h){return h===null||h===35||oe(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),u)}}var bg=["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"],Fa=["pre","script","style","textarea"],kg={concrete:!0,name:"htmlFlow",resolveTo:yg,tokenize:Cg},_g={partial:!0,tokenize:Ig},Ag={partial:!0,tokenize:xg};function yg(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Cg(e,t,n){const r=this;let i,a,s,o,l;return u;function u(A){return h(A)}function h(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),p):A===47?(e.consume(A),a=!0,C):A===63?(e.consume(A),i=3,r.interrupt?t:_):Ie(A)?(e.consume(A),s=String.fromCharCode(A),w):n(A)}function p(A){return A===45?(e.consume(A),i=2,f):A===91?(e.consume(A),i=5,o=0,E):Ie(A)?(e.consume(A),i=4,r.interrupt?t:_):n(A)}function f(A){return A===45?(e.consume(A),r.interrupt?t:_):n(A)}function E(A){return A==="CDATA[".charCodeAt(o++)?(e.consume(A),o===6?r.interrupt?t:z:E):n(A)}function C(A){return Ie(A)?(e.consume(A),s=String.fromCharCode(A),w):n(A)}function w(A){if(A===null||A===47||A===62||oe(A)){const We=A===47,ve=s.toLowerCase();return!We&&!a&&Fa.includes(ve)?(i=1,r.interrupt?t(A):z(A)):bg.includes(s.toLowerCase())?(i=6,We?(e.consume(A),k):r.interrupt?t(A):z(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):a?I(A):x(A))}return A===45||_e(A)?(e.consume(A),s+=String.fromCharCode(A),w):n(A)}function k(A){return A===62?(e.consume(A),r.interrupt?t:z):n(A)}function I(A){return te(A)?(e.consume(A),I):S(A)}function x(A){return A===47?(e.consume(A),S):A===58||A===95||Ie(A)?(e.consume(A),D):te(A)?(e.consume(A),x):S(A)}function D(A){return A===45||A===46||A===58||A===95||_e(A)?(e.consume(A),D):B(A)}function B(A){return A===61?(e.consume(A),v):te(A)?(e.consume(A),B):x(A)}function v(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),l=A,U):te(A)?(e.consume(A),v):$(A)}function U(A){return A===l?(e.consume(A),l=null,q):A===null||V(A)?n(A):(e.consume(A),U)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||oe(A)?B(A):(e.consume(A),$)}function q(A){return A===47||A===62||te(A)?x(A):n(A)}function S(A){return A===62?(e.consume(A),j):n(A)}function j(A){return A===null||V(A)?z(A):te(A)?(e.consume(A),j):n(A)}function z(A){return A===45&&i===2?(e.consume(A),Y):A===60&&i===1?(e.consume(A),F):A===62&&i===4?(e.consume(A),Me):A===63&&i===3?(e.consume(A),_):A===93&&i===5?(e.consume(A),Te):V(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_g,pe,Q)(A)):A===null||V(A)?(e.exit("htmlFlowData"),Q(A)):(e.consume(A),z)}function Q(A){return e.check(Ag,ie,pe)(A)}function ie(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),G}function G(A){return A===null||V(A)?Q(A):(e.enter("htmlFlowData"),z(A))}function Y(A){return A===45?(e.consume(A),_):z(A)}function F(A){return A===47?(e.consume(A),s="",X):z(A)}function X(A){if(A===62){const We=s.toLowerCase();return Fa.includes(We)?(e.consume(A),Me):z(A)}return Ie(A)&&s.length<8?(e.consume(A),s+=String.fromCharCode(A),X):z(A)}function Te(A){return A===93?(e.consume(A),_):z(A)}function _(A){return A===62?(e.consume(A),Me):A===45&&i===2?(e.consume(A),_):z(A)}function Me(A){return A===null||V(A)?(e.exit("htmlFlowData"),pe(A)):(e.consume(A),Me)}function pe(A){return e.exit("htmlFlow"),t(A)}}function xg(e,t,n){const r=this;return i;function i(s){return V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Ig(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Nn,t,n)}}var Ng={name:"htmlText",tokenize:Sg};function Sg(e,t,n){const r=this;let i,a,s;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),B):_===63?(e.consume(_),x):Ie(_)?(e.consume(_),$):n(_)}function u(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),a=0,E):Ie(_)?(e.consume(_),I):n(_)}function h(_){return _===45?(e.consume(_),f):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),p):V(_)?(s=d,F(_)):(e.consume(_),d)}function p(_){return _===45?(e.consume(_),f):d(_)}function f(_){return _===62?Y(_):_===45?p(_):d(_)}function E(_){return _==="CDATA[".charCodeAt(a++)?(e.consume(_),a===6?C:E):n(_)}function C(_){return _===null?n(_):_===93?(e.consume(_),w):V(_)?(s=C,F(_)):(e.consume(_),C)}function w(_){return _===93?(e.consume(_),k):C(_)}function k(_){return _===62?Y(_):_===93?(e.consume(_),k):C(_)}function I(_){return _===null||_===62?Y(_):V(_)?(s=I,F(_)):(e.consume(_),I)}function x(_){return _===null?n(_):_===63?(e.consume(_),D):V(_)?(s=x,F(_)):(e.consume(_),x)}function D(_){return _===62?Y(_):x(_)}function B(_){return Ie(_)?(e.consume(_),v):n(_)}function v(_){return _===45||_e(_)?(e.consume(_),v):U(_)}function U(_){return V(_)?(s=U,F(_)):te(_)?(e.consume(_),U):Y(_)}function $(_){return _===45||_e(_)?(e.consume(_),$):_===47||_===62||oe(_)?q(_):n(_)}function q(_){return _===47?(e.consume(_),Y):_===58||_===95||Ie(_)?(e.consume(_),S):V(_)?(s=q,F(_)):te(_)?(e.consume(_),q):Y(_)}function S(_){return _===45||_===46||_===58||_===95||_e(_)?(e.consume(_),S):j(_)}function j(_){return _===61?(e.consume(_),z):V(_)?(s=j,F(_)):te(_)?(e.consume(_),j):q(_)}function z(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,Q):V(_)?(s=z,F(_)):te(_)?(e.consume(_),z):(e.consume(_),ie)}function Q(_){return _===i?(e.consume(_),i=void 0,G):_===null?n(_):V(_)?(s=Q,F(_)):(e.consume(_),Q)}function ie(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||oe(_)?q(_):(e.consume(_),ie)}function G(_){return _===47||_===62||oe(_)?q(_):n(_)}function Y(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function F(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),X}function X(_){return te(_)?ne(e,Te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Te(_)}function Te(_){return e.enter("htmlTextData"),s(_)}}var Ni={name:"labelEnd",resolveAll:Rg,resolveTo:Og,tokenize:Dg},vg={tokenize:Pg},wg={tokenize:Mg},Lg={tokenize:Bg};function Rg(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Pe(e,0,e.length,n),e}function Og(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=Fe(o,e.slice(a+1,a+r+3)),o=Fe(o,[["enter",h,t]]),o=Fe(o,fr(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=Fe(o,[["exit",h,t],e[s-2],e[s-1],["exit",u,t]]),o=Fe(o,e.slice(s+1)),o=Fe(o,[["exit",l,t]]),Pe(e,a,e.length,o),e}function Dg(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?d(p):(s=r.parser.defined.includes($e(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(vg,h,s?h:d)(p):p===91?e.attempt(wg,h,s?u:d)(p):s?h(p):d(p)}function u(p){return e.attempt(Lg,h,d)(p)}function h(p){return t(p)}function d(p){return a._balanced=!0,n(p)}}function Pg(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return oe(d)?pn(e,a)(d):a(d)}function a(d){return d===41?h(d):mo(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return oe(d)?pn(e,l)(d):h(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?Eo(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function u(d){return oe(d)?pn(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Mg(e,t,n){const r=this;return i;function i(o){return go.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes($e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Bg(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}var Fg={name:"labelStartImage",resolveAll:Ni.resolveAll,tokenize:Hg};function Hg(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}var Ug={name:"labelStartLink",resolveAll:Ni.resolveAll,tokenize:jg};function jg(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var Lr={name:"lineEnding",tokenize:zg};function zg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,t,"linePrefix")}}var Yn={name:"thematicBreak",tokenize:$g};function $g(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||V(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),te(u)?ne(e,o,"whitespace")(u):o(u))}}var Le={continuation:{tokenize:Wg},exit:Gg,name:"list",tokenize:Vg},Yg={partial:!0,tokenize:Kg},qg={partial:!0,tokenize:Qg};function Vg(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const E=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Xr(f)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Yn,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Xr(f)&&++s<10?(e.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Nn,r.interrupt?n:h,e.attempt(Yg,p,d))}function h(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return te(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Wg(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Nn,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!te(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qg,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Le,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Qg(e,t,n){const r=this;return ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Gg(e){e.exit(this.containerState.type)}function Kg(e,t,n){const r=this;return ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!te(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}var Ha={name:"setextUnderline",resolveTo:Xg,tokenize:Zg};function Xg(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Zg(e,t,n){const r=this;let i;return a;function a(u){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),te(u)?ne(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||V(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}var Jg={tokenize:lE,partial:!0};function eE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iE,continuation:{tokenize:aE},exit:sE}},text:{91:{name:"gfmFootnoteCall",tokenize:rE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tE,resolveTo:nE}}}}function tE(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=$e(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function nE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(a>999||d===93&&!s||d===null||d===91||oe(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes($e(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return oe(d)||(s=!0),a++,e.consume(d),d===92?h:u}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,u):u(d)}}function iE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(E)}function h(E){if(s>999||E===93&&!o||E===null||E===91||oe(E))return n(E);if(E===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return a=$e(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return oe(E)||(o=!0),s++,e.consume(E),E===92?d:h}function d(E){return E===91||E===92||E===93?(e.consume(E),s++,h):h(E)}function p(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),ne(e,f,"gfmFootnoteDefinitionWhitespace")):n(E)}function f(E){return t(E)}}function aE(e,t,n){return e.check(Nn,t,e.attempt(Jg,t,n))}function sE(e){e.exit("gfmFootnoteDefinition")}function lE(e,t,n){const r=this;return ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function oE(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,s){let o=-1;for(;++o<a.length;)if(a[o][0]==="enter"&&a[o][1].type==="strikethroughSequenceTemporary"&&a[o][1]._close){let l=o;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[o][1].end.offset-a[o][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[o][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[o][1].end)},h={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[o][1].start)},d=[["enter",u,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",h,s]],p=s.parser.constructs.insideSpan.null;p&&Pe(d,d.length,0,fr(p,a.slice(l+1,o),s)),Pe(d,d.length,0,[["exit",h,s],["enter",a[o][1],s],["exit",a[o][1],s],["exit",u,s]]),Pe(a,l-1,o-l+3,d),o=l+d.length-2;break}}for(o=-1;++o<a.length;)a[o][1].type==="strikethroughSequenceTemporary"&&(a[o][1].type="data");return a}function i(a,s,o){const l=this.previous,u=this.events;let h=0;return d;function d(f){return l===126&&u[u.length-1][1].type!=="characterEscape"?o(f):(a.enter("strikethroughSequenceTemporary"),p(f))}function p(f){const E=zt(l);if(f===126)return h>1?o(f):(a.consume(f),h++,p);if(h<2&&!t)return o(f);const C=a.exit("strikethroughSequenceTemporary"),w=zt(f);return C._open=!w||w===2&&!!E,C._close=!E||E===2&&!!w,s(f)}}}var cE=class{constructor(){this.map=[]}add(e,t,n){uE(this,e,t,n)}consume(e){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const i of r)e.push(i);r=n.pop()}this.map.length=0}};function uE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function hE(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function dE(){return{flow:{null:{name:"table",tokenize:fE,resolveAll:pE}}}}function fE(e,t,n){const r=this;let i=0,a=0,s;return o;function o(S){let j=r.events.length-1;for(;j>-1;){const ie=r.events[j][1].type;if(ie==="lineEnding"||ie==="linePrefix")j--;else break}const z=j>-1?r.events[j][1].type:null,Q=z==="tableHead"||z==="tableRow"?v:l;return Q===v&&r.parser.lazy[r.now().line]?n(S):Q(S)}function l(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(s=!0,a+=1),h(S)}function h(S){return S===null?n(S):V(S)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),f):n(S):te(S)?ne(e,h,"whitespace")(S):(a+=1,s&&(s=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(S)))}function d(S){return S===null||S===124||oe(S)?(e.exit("data"),h(S)):(e.consume(S),S===92?p:d)}function p(S){return S===92||S===124?(e.consume(S),d):d(S)}function f(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),s=!1,te(S)?ne(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):E(S))}function E(S){return S===45||S===58?w(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),C):B(S)}function C(S){return te(S)?ne(e,w,"whitespace")(S):w(S)}function w(S){return S===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),k):S===45?(a+=1,k(S)):S===null||V(S)?D(S):B(S)}function k(S){return S===45?(e.enter("tableDelimiterFiller"),I(S)):B(S)}function I(S){return S===45?(e.consume(S),I):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(S))}function x(S){return te(S)?ne(e,D,"whitespace")(S):D(S)}function D(S){return S===124?E(S):S===null||V(S)?!s||i!==a?B(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):B(S)}function B(S){return n(S)}function v(S){return e.enter("tableRow"),U(S)}function U(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),U):S===null||V(S)?(e.exit("tableRow"),t(S)):te(S)?ne(e,U,"whitespace")(S):(e.enter("data"),$(S))}function $(S){return S===null||S===124||oe(S)?(e.exit("data"),U(S)):(e.consume(S),S===92?q:$)}function q(S){return S===92||S===124?(e.consume(S),$):$(S)}}function pE(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,h,d;const p=new cE;for(;++n<e.length;){const f=e[n],E=f[1];f[0]==="enter"?E.type==="tableHead"?(o=!1,l!==0&&(Ua(p,t,l,u,h),h=void 0,l=0),u={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",u,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",h,t]])),i=E.type==="tableDelimiterRow"?2:h?3:1):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=Mn(p,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=Mn(p,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):E.type==="tableHead"?(o=!0,l=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(l=n,a[1]!==0?(s[0]=s[1],d=Mn(p,t,a,i,n,d)):s[1]!==0&&(d=Mn(p,t,s,i,n,d)),i=0):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Ua(p,t,l,u,h),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=hE(t.events,n))}return e}function Mn(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Pt(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Pt(t.events,n[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=Pt(t.events,n[2]),h=Pt(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,C=n[3]-n[2]-1;e.add(E,C,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Pt(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ua(e,t,n,r,i){const a=[],s=Pt(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Pt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var mE={name:"tasklistCheck",tokenize:EE};function gE(){return{text:{91:mE}}}function EE(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return oe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return V(l)?t(l):te(l)?e.check({tokenize:TE},t,n)(l):n(l)}}function TE(e,t,n){return ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function bE(e){return to([vm(),eE(),oE(e),dE(),gE()])}var kE={};function _E(e){const t=this,n=e||kE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(bE(n)),a.push(ym()),s.push(Cm(n))}var AE=Object.defineProperty,yE=Object.defineProperties,CE=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,xE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,za=(e,t,n)=>t in e?AE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>{for(var n in t||(t={}))xE.call(t,n)&&za(e,n,t[n]);if(ja)for(var n of ja(t))IE.call(t,n)&&za(e,n,t[n]);return e},bo=(e,t)=>yE(e,CE(t)),NE=e=>{let t=new Uint8Array(e.length+1),n=!1,r=!1,i=0;for(;i<e.length;){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){let a=n||r?1:0;t[i+1]=a,t[i+2]=a,i+=2;continue}if(e.substring(i,i+3)==="```"){r=!r;let a=n||r?1:0,s=Math.min(i+3,e.length);for(let o=i+1;o<=s;o+=1)t[o]=a;i=s;continue}!r&&e[i]==="`"&&(n=!n),t[i+1]=n||r?1:0,i+=1}return t},$a=null,Se=(e,t)=>{let n=$a;return(n===null||n.text!==e)&&(n={text:e,lookup:NE(e)},$a=n),n.lookup[Math.min(t,e.length)]===1},SE=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},vE=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!SE(e,n)&&(t+=1)}return t},mt=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){r=!r,a+=2;continue}if(!r&&e[a]==="`")if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},wE=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,LE=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(wE,(t,n,r,i)=>Se(e,i)?t:`${n}\\>${r}`),RE=/(\*\*)([^*]*\*?)$/,OE=/(__)([^_]*?)$/,DE=/(\*\*\*)([^*]*?)$/,PE=/(\*)([^*]*?)$/,ME=/(_)([^_]*?)$/,BE=/(`)([^`]*?)$/,FE=/(~~)([^~]*?)$/,vt=/^[\s_~*`]*$/,ko=/^[\s]*[-*+][\s]+$/,HE=/[\p{L}\p{N}_]/u,UE=/^```[^`\n]*```?$/,jE=/^\*{4,}$/,zE=/(__)([^_]+)_$/,$E=/(~~)([^~]+)~$/,Ya=/~~/g,st=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:HE.test(e)},YE=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},_o=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},qE=e=>e==="inlineLatex"||e==="blockLatex",VE=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,WE=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",pr=(e,t)=>{let n="none";for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}if(e[r]==="\\"){let i=VE(n,e[r+1]);if(i!==null){n=i,r+=1;continue}}if(e[r]==="$"&&!qE(n)){let i=e[r+1]==="$";n=WE(n,i),i&&(r+=1)}}return n!=="none"},QE=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
19
+ `)return!1}return!1},Ao=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?QE(e,t):!1;if(e[n]===`
20
+ `)return!1}return!1},GE=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let r=n+1<e.length?e[n+1]:"";return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="/"}if(e[n]===`
21
+ `)return!1}return!1},Si=(e,t,n)=>{let r=0;for(let l=t-1;l>=0;l-=1)if(e[l]===`
22
+ `){r=l+1;break}let i=e.length;for(let l=t;l<e.length;l+=1)if(e[l]===`
23
+ `){i=l;break}let a=e.substring(r,i),s=0,o=!1;for(let l of a)if(l===n)s+=1;else if(l!==" "&&l!==" "){o=!0;break}return s>=3&&!o},yo=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),KE=(e,t,n,r)=>n==="\\"||yo(e)&&pr(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
24
+ `)&&(!r||r===" "||r===" "||r===`
25
+ `),Xn=e=>e===" "||e===" "||e===`
26
+ `,XE=(e,t)=>!!(e&&t&&st(e)&&st(t)),ZE=(e,t,n,r)=>{let i=XE(e,t),a=!!t&&!Xn(t),s=!!e&&!Xn(e);return i&&n%2===0&&!r?{count:!1}:s&&n%2===1||a?{count:!0,inWordAsteriskChain:i}:{count:!1}},Co=e=>{let t=0,n=!1,r=!1,i=e.length;for(let a=0;a<i;a+=1){if(e[a]==="`"&&a+2<i&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}if(n)continue;if(e[a]!=="*"){st(e[a])||(r=!1);continue}let s=a>0?e[a-1]:"",o=a<i-1?e[a+1]:"";if(KE(e,a,s,o))continue;let l=ZE(s,o,t,r);l.count&&(t+=1,r=l.inWordAsteriskChain)}return t},JE=(e,t,n,r)=>!!(n==="\\"||yo(e)&&pr(e,t)||Ao(e,t)||GE(e,t)||n==="_"||r==="_"||n&&r&&st(n)&&st(r)),eT=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="_")continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";JE(e,i,a,s)||(t+=1)}return t},tT=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},vi=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="*"&&r+1<e.length&&e[r+1]==="*"&&(t+=1,r+=1)}return t},qa=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="_"&&r+1<e.length&&e[r+1]==="_"&&(t+=1,r+=1)}return t},nT=(e,t,n)=>{if(!t||vt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
27
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return ko.test(a)&&t.includes(`
28
+ `)?!0:Si(e,n,"*")},rT=e=>{let t=e.match(RE);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return Se(e,r)||mt(e,r)||nT(e,n,r)?e:vi(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},iT=(e,t,n)=>{if(!t||vt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
29
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return ko.test(a)&&t.includes(`
30
+ `)?!0:Si(e,n,"_")},aT=e=>{let t=e.match(OE);if(!t){let i=e.match(zE);if(i){let a=e.lastIndexOf(i[1]);if(!(Se(e,a)||mt(e,a))&&qa(e)%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return Se(e,r)||mt(e,r)||iT(e,n,r)?e:qa(e)%2===1?`${e}__`:e},sT=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!pr(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"",a=!r||Xn(r),s=!i||Xn(i);if(a&&s||r&&i&&st(r)&&st(i)||s)continue;return n}}return-1},lT=e=>{if(!e.match(PE))return e;let t=sT(e);if(t===-1||Se(e,t)||mt(e,t))return e;let n=e.substring(t+1);return!n||vt.test(n)?e:Co(e)%2===1?`${e}*`:e},xo=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!pr(e,n)&&!Ao(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(r&&i&&st(r)&&st(i))continue;return n}}return-1},oT=e=>{let t=e.length;for(;t>0&&e[t-1]===`
31
+ `;)t-=1;return t<e.length?`${e.slice(0,t)}_${e.slice(t)}`:`${e}_`},cT=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(vi(t)%2!==1)return null;let n=t.indexOf("**"),r=xo(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},uT=e=>{if(!e.match(ME))return e;let t=xo(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||vt.test(n)||Se(e,t)||mt(e,t))return e;if(eT(e)%2===1){let r=cT(e);return r!==null?r:oT(e)}return e},hT=e=>{let t=vi(e),n=Co(e);return t%2===0&&n%2===0},dT=(e,t,n)=>!t||vt.test(t)||Se(e,n)||mt(e,n)?!0:Si(e,n,"*"),fT=e=>{if(jE.test(e))return e;let t=e.match(DE);if(!t)return e;let n=t[2];return dT(e,n,e.lastIndexOf(t[1]))?e:tT(e)%2===1?hT(e)?e:`${e}***`:e},pT=/<[a-zA-Z/][^>]*$/,mT=e=>{let t=e.match(pT);return!t||t.index===void 0||Se(e,t.index)?e:e.substring(0,t.index).trimEnd()},gT=e=>!e.match(UE)||e.includes(`
32
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,ET=e=>(e.match(/```/g)||[]).length%2===1,TT=e=>{let t=gT(e);if(t!==null)return t;let n=e.match(BE);if(n&&!ET(e)){let r=n[2];if(!r||vt.test(r))return e;if(vE(e)%2===1)return`${e}\``}return e},Io=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",bT=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!Io(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},kT=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"){r+=1;continue}if(e[r]==="`"&&!Io(e,r)){n=!n;continue}!n&&e[r]==="$"&&(r+1<e.length&&e[r+1]==="$"?r+=1:t+=1)}return t},_T=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
33
+ `,t)!==-1&&!e.endsWith(`
34
+ `)?`${e}
35
+ $$`:`${e}$$`},AT=e=>bT(e)%2===0?e:_T(e),yT=e=>kT(e)%2===1?`${e}$`:e,CT=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=YE(e,t);if(r===-1||Se(e,r))return null;let i=r>0&&e[r-1]==="!",a=i?r-1:r,s=e.substring(0,a);if(i)return s;let o=e.substring(r+1,t);return n==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},Va=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!Se(e,n)){if(n>0&&e[n-1]==="!")continue;let r=_o(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return t},xT=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=Va(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(_o(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=Va(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},No=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!Se(e,n)){let r=CT(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!Se(e,r)){let i=xT(e,r,t);if(i!==null)return i}return e},IT=/^-{1,2}$/,NT=/^[\s]*-{1,2}[\s]+$/,ST=/^={1,2}$/,vT=/^[\s]*={1,2}[\s]+$/,wT=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
36
+ `);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(IT.test(i)&&!n.match(NT)){let a=r.split(`
37
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(ST.test(i)&&!n.match(vT)){let a=r.split(`
38
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},LT=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,RT=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(LT,(t,n,r)=>Se(e,r+n.length)?t:`${n}\\~`),OT=e=>{var t,n;let r=e.match(FE);if(r){let i=r[2];if(!i||vt.test(i))return e;let a=e.lastIndexOf(r[1]);if(Se(e,a)||mt(e,a))return e;if(((t=e.match(Ya))==null?void 0:t.length)%2===1)return`${e}~~`}else{let i=e.match($E);if(i){let a=e.lastIndexOf(i[0].slice(0,2));if(Se(e,a)||mt(e,a))return e;if(((n=e.match(Ya))==null?void 0:n.length)%2===1)return`${e}~`}}return e},Rr=e=>e!==!1,DT=e=>e===!0,xe={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},PT=[{handler:{name:"singleTilde",handle:RT,priority:xe.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:LE,priority:xe.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:mT,priority:xe.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:wT,priority:xe.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:No,priority:xe.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:fT,priority:xe.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:rT,priority:xe.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:aT,priority:xe.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:lT,priority:xe.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:uT,priority:xe.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:TT,priority:xe.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:OT,priority:xe.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:AT,priority:xe.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:yT,priority:xe.INLINE_KATEX},optionKey:"inlineKatex"}],MT=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return PT.filter(({handler:r,optionKey:i})=>r.name==="links"?Rr(e?.links)||Rr(e?.images):r.name==="inlineKatex"?DT(e?.inlineKatex):Rr(e?.[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:bo(To({},r),{handle:a=>No(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},BT=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=MT(t),a=((n=t?.handlers)!=null?n:[]).map(o=>{var l;return{handler:bo(To({},o),{priority:(l=o.priority)!=null?l:xe.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((o,l)=>{var u,h;return((u=o.handler.priority)!=null?u:0)-((h=l.handler.priority)!=null?h:0)});for(let{handler:o,earlyReturn:l}of s)if(r=o.handle(r),l!=null&&l(r))return r;return r},FT=BT,HT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jT={};function Wa(e,t){return((t||jT).jsx?UT:HT).test(e)}var zT=/[ \t\n\f\r]/g;function $T(e){return typeof e=="object"?e.type==="text"?Qa(e.value):!1:Qa(e)}function Qa(e){return e.replace(zT,"")===""}var YT=_n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,h=`
39
+ `,d="/",p="*",f="",E="comment",C="declaration";function w(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var D=1,B=1;function v(Y){var F=Y.match(r);F&&(D+=F.length);var X=Y.lastIndexOf(h);B=~X?Y.length-X:B+Y.length}function U(){var Y={line:D,column:B};return function(F){return F.position=new $(Y),j(),F}}function $(Y){this.start=Y,this.end={line:D,column:B},this.source=x.source}$.prototype.content=I;function q(Y){var F=new Error(x.source+":"+D+":"+B+": "+Y);if(F.reason=Y,F.filename=x.source,F.line=D,F.column=B,F.source=I,!x.silent)throw F}function S(Y){var F=Y.exec(I);if(F){var X=F[0];return v(X),I=I.slice(X.length),F}}function j(){S(i)}function z(Y){var F;for(Y=Y||[];F=Q();)F!==!1&&Y.push(F);return Y}function Q(){var Y=U();if(!(d!=I.charAt(0)||p!=I.charAt(1))){for(var F=2;f!=I.charAt(F)&&(p!=I.charAt(F)||d!=I.charAt(F+1));)++F;if(F+=2,f===I.charAt(F-1))return q("End of comment missing");var X=I.slice(2,F-2);return B+=2,v(X),I=I.slice(F),B+=2,Y({type:E,comment:X})}}function ie(){var Y=U(),F=S(a);if(F){if(Q(),!S(s))return q("property missing ':'");var X=S(o),Te=Y({type:C,property:k(F[0].replace(n,f)),value:X?k(X[0].replace(n,f)):f});return S(l),Te}}function G(){var Y=[];z(Y);for(var F;F=ie();)F!==!1&&(Y.push(F),z(Y));return Y}return j(),G()}function k(I){return I?I.replace(u,f):f}t.exports=w})),qT=_n((e=>{var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(YT());function r(i,a){let s=null;if(!i||typeof i!="string")return s;const o=(0,n.default)(i),l=typeof a=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;l?a(h,d,u):d&&(s=s||{},s[h]=d)}),s}})),VT=_n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(h){return!h||r.test(h)||t.test(h)},o=function(h,d){return d.toUpperCase()},l=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),s(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(a,l):h=h.replace(i,l),h.replace(n,o))};e.camelCase=u})),WT=_n(((e,t)=>{var n=(e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}})(qT()),r=VT();function i(a,s){var o={};return!a||typeof a!="string"||(0,n.default)(a,function(l,u){l&&u&&(o[(0,r.camelCase)(l,s)]=u)}),o}i.default=i,t.exports=i}));function mn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ga(e.position):"start"in e||"end"in e?Ga(e):"line"in e||"column"in e?ei(e):""}function ei(e){return Ka(e&&e.line)+":"+Ka(e&&e.column)}function Ga(e){return ei(e&&e.start)+"-"+ei(e&&e.end)}function Ka(e){return e&&typeof e=="number"?e:1}var ye=class extends Error{constructor(e,t,n){super(),typeof t=="string"&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&("line"in t&&"column"in t?i={place:t}:"start"in t&&"end"in t?i={place:t}:"type"in t?i={ancestors:[t],place:t.position}:i={...t}),typeof e=="string"?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?i.ruleId=n:(i.source=n.slice(0,o),i.ruleId=n.slice(o+1))}if(!i.place&&i.ancestors&&i.ancestors){const o=i.ancestors[i.ancestors.length-1];o&&(i.place=o.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=mn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ye.prototype.file="";ye.prototype.name="";ye.prototype.reason="";ye.prototype.message="";ye.prototype.stack="";ye.prototype.column=void 0;ye.prototype.line=void 0;ye.prototype.ancestors=void 0;ye.prototype.cause=void 0;ye.prototype.fatal=void 0;ye.prototype.place=void 0;ye.prototype.ruleId=void 0;ye.prototype.source=void 0;var QT=nr(WT(),1),wi={}.hasOwnProperty,GT=new Map,KT=/[A-Z]/g,XT=new Set(["table","tbody","thead","tfoot","tr"]),ZT=new Set(["td","th"]),So="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=lb(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=sb(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gt:yn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=vo(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function vo(e,t,n){if(t.type==="element")return eb(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rb(e,t,n);if(t.type==="mdxjsEsm")return nb(e,t);if(t.type==="root")return ib(e,t,n);if(t.type==="text")return ab(e,t)}function eb(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=gt,e.schema=i),e.ancestors.push(t);const a=Lo(e,t.tagName,!1),s=ob(e,t);let o=Ri(e,t);return XT.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!$T(l):!0})),wo(e,s,a,t),Li(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function tb(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}kn(e,t.position)}function nb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kn(e,t.position)}function rb(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=gt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Lo(e,t.name,!0),s=cb(e,t),o=Ri(e,t);return wo(e,s,a,t),Li(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function ib(e,t,n){const r={};return Li(r,Ri(e,t)),e.create(t,e.Fragment,r,n)}function ab(e,t){return t.value}function wo(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Li(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function sb(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function lb(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Ze(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function ob(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wi.call(t.properties,i)){const a=ub(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&ZT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function cb(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const a=i.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else kn(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else kn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ri(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:GT;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const o=vo(e,a,s);o!==void 0&&n.push(o)}return n}function ub(e,t,n){const r=sr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qs(n):Gs(n)),r.property==="style"){let i=typeof n=="object"?n:hb(e,String(n));return e.stylePropertyNameCase==="css"&&(i=db(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?gu[r.property]||r.property:r.attribute,n]}}function hb(e,t){try{return(0,QT.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ye("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=So+"#cannot-parse-style-attribute",i}}function Lo(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=Wa(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=Wa(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return wi.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);kn(e)}function kn(e,t){const n=new ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=So+"#cannot-handle-mdx-estrees-without-createevaluater",n}function db(e){const t={};let n;for(n in e)wi.call(e,n)&&(t[fb(n)]=e[n]);return t}function fb(e){let t=e.replace(KT,pb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pb(e){return"-"+e.toLowerCase()}var Or={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"]},mb={tokenize:gb};function gb(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return V(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}var Eb={tokenize:Tb},Xa={tokenize:bb};function Tb(e){const t=this,n=[];let r=0,i,a,s;return o;function o(x){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const D=t.events.length;let B=D,v;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){v=t.events[B][1].end;break}k(r);let U=D;for(;U<t.events.length;)t.events[U][1].end={...v},U++;return Pe(t.events,B+1,0,t.events.slice(D)),t.events.length=U,u(x)}return o(x)}function u(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return E(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xa,h,d)(x)}function h(x){return i&&I(),k(r),p(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,E(x)}function p(x){return t.containerState={},e.attempt(Xa,f,E)(x)}function f(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function E(x){if(x===null){i&&I(),k(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),C(x)}function C(x){if(x===null){w(e.exit("chunkFlow"),!0),k(0),e.consume(x);return}return V(x)?(e.consume(x),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(x),C)}function w(x,D){const B=t.sliceStream(x);if(D&&B.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(B),t.parser.lazy[x.start.line]){let v=i.events.length;for(;v--;)if(i.events[v][1].start.offset<s&&(!i.events[v][1].end||i.events[v][1].end.offset>s))return;const U=t.events.length;let $=U,q,S;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(q){S=t.events[$][1].end;break}q=!0}for(k(r),v=U;v<t.events.length;)t.events[v][1].end={...S},v++;Pe(t.events,$+1,0,t.events.slice(U)),t.events.length=v}}function k(x){let D=n.length;for(;D-- >x;){const B=n[D];t.containerState=B[1],B[0].exit.call(t,e)}n.length=x}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function bb(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var kb={tokenize:_b};function _b(e){const t=this,n=e.attempt(Nn,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ag,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var Ab={resolveAll:Oo()},yb=Ro("string"),Cb=Ro("text");function Ro(e){return{resolveAll:Oo(e==="text"?xb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(h){return u(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return u(h)?(n.exit("data"),a(h)):(n.consume(h),l)}function u(h){if(h===null)return!0;const d=i[h];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Oo(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function xb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}var Ib=Ps({attentionMarkers:()=>Db,contentInitial:()=>Sb,disable:()=>Pb,document:()=>Nb,flow:()=>wb,flowInitial:()=>vb,insideSpan:()=>Ob,string:()=>Lb,text:()=>Rb}),Nb={42:Le,43:Le,45:Le,48:Le,49:Le,50:Le,51:Le,52:Le,53:Le,54:Le,55:Le,56:Le,57:Le,62:uo},Sb={91:ug},vb={[-2]:wr,[-1]:wr,32:wr},wb={35:gg,42:Yn,45:[Ha,Yn],60:kg,61:Ha,95:Yn,96:Ba,126:Ba},Lb={38:fo,92:ho},Rb={[-5]:Lr,[-4]:Lr,[-3]:Lr,33:Fg,38:fo,42:Jr,60:[Um,Ng],91:Ug,92:[pg,ho],93:Ni,95:Jr,96:Jm},Ob={null:[Jr,Ab]},Db={null:[42,95]},Pb={null:[]};function Mb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:U(B),check:U(v),consume:I,enter:x,exit:D,interrupt:U(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:E,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let h=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(j){return s=Fe(s,j),w(),s[s.length-1]!==null?[]:($(t,0),u.events=fr(a,u.events,u),u.events)}function p(j,z){return Fb(f(j),z)}function f(j){return Bb(s,j)}function E(){const{_bufferIndex:j,_index:z,line:Q,column:ie,offset:G}=r;return{_bufferIndex:j,_index:z,line:Q,column:ie,offset:G}}function C(j){i[j.line]=j.column,S()}function w(){let j;for(;r._index<s.length;){const z=s[r._index];if(typeof z=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<z.length;)k(z.charCodeAt(r._bufferIndex));else k(z)}}function k(j){h=h(j)}function I(j){V(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,S()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=j}function x(j,z){const Q=z||{};return Q.type=j,Q.start=E(),u.events.push(["enter",Q,u]),o.push(Q),Q}function D(j){const z=o.pop();return z.end=E(),u.events.push(["exit",z,u]),z}function B(j,z){$(j,z.from)}function v(j,z){z.restore()}function U(j,z){return Q;function Q(ie,G,Y){let F,X,Te,_;return Array.isArray(ie)?pe(ie):"tokenize"in ie?pe([ie]):Me(ie);function Me(se){return Ue;function Ue(be){const tt=be!==null&&se[be],Qe=be!==null&&se.null;return pe([...Array.isArray(tt)?tt:tt?[tt]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]])(be)}}function pe(se){return F=se,X=0,se.length===0?Y:A(se[X])}function A(se){return Ue;function Ue(be){return _=q(),Te=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?ve(be):se.tokenize.call(z?Object.assign(Object.create(u),z):u,l,We,ve)(be)}}function We(se){return j(Te,_),G}function ve(se){return _.restore(),++X<F.length?A(F[X]):Y}}}function $(j,z){j.resolveAll&&!a.includes(j)&&a.push(j),j.resolve&&Pe(u.events,z,u.events.length-z,j.resolve(u.events.slice(z),u)),j.resolveTo&&(u.events=j.resolveTo(u.events,u))}function q(){const j=E(),z=u.previous,Q=u.currentConstruct,ie=u.events.length,G=Array.from(o);return{from:ie,restore:Y};function Y(){r=j,u.previous=z,u.currentConstruct=Q,u.events.length=ie,o=G,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Bb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Fb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:s="\r";break;case-4:s=`
40
+ `;break;case-3:s=`\r
41
+ `;break;case-2:s=t?" ":" ";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function Hb(e){const t={constructs:to([Ib,...(e||{}).extensions||[]]),content:n(mb),defined:[],document:n(Eb),flow:n(kb),lazy:{},string:n(yb),text:n(Cb)};return t;function n(r){return i;function i(a){return Mb(t,r,a)}}}function Ub(e){for(;!po(e););return e}var Za=/[\0\t\n\r]/g;function jb(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const l=[];let u,h,d,p,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(Za.lastIndex=d,u=Za.exec(a),p=u&&u.index!==void 0?u.index:a.length,f=a.charCodeAt(p),!u){t=a.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(a.slice(d,p)),e+=p-d),f){case 0:l.push(65533),e++;break;case 9:for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break;case 10:l.push(-4),e=1;break;default:r=!0,e=1}d=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}var Do={}.hasOwnProperty;function zb(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),$b(n)(Ub(Hb(n).document().write(jb()(e,t,!0))))}function $b(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(On),autolinkProtocol:q,autolinkEmail:q,atxHeading:a(Kt),blockQuote:a(Qe),characterEscape:q,characterReference:q,codeFenced:a(Gt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Gt,s),codeText:a(Tr,s),codeTextData:q,data:q,codeFlowValue:q,definition:a(Ln),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Rn),hardBreakEscape:a(ot),hardBreakTrailing:a(ot),htmlFlow:a(Lt,s),htmlFlowData:q,htmlText:a(Lt,s),htmlTextData:q,image:a(br),label:s,link:a(On),listItem:a(ae),listItemValue:p,listOrdered:a(W,d),listUnordered:a(W),paragraph:a(Ce),reference:A,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Kt),strong:a(je),thematicBreak:a(kr)},exit:{atxHeading:l(),atxHeadingSequence:B,autolink:l(),autolinkEmail:tt,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:se,characterReference:Ue,codeFenced:l(w),codeFencedFence:C,codeFencedFenceInfo:f,codeFencedFenceMeta:E,codeFlowValue:S,codeIndented:l(k),codeText:l(G),codeTextData:S,data:S,definition:l(),definitionDestinationString:D,definitionLabelString:I,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(z),hardBreakTrailing:l(z),htmlFlow:l(Q),htmlFlowData:S,htmlText:l(ie),htmlTextData:S,image:l(F),label:Te,labelText:X,lineEnding:j,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:We,resourceDestinationString:_,resourceTitleString:Me,resource:pe,setextHeading:l($),setextHeadingLineSequence:U,setextHeadingText:v,strong:l(),thematicBreak:l()}};Po(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let H={type:"root",children:[]};const K={stack:[H],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:h,data:n},ue=[];let he=-1;for(;++he<R.length;)(R[he][1].type==="listOrdered"||R[he][1].type==="listUnordered")&&(R[he][0]==="enter"?ue.push(he):he=i(R,ue.pop(),he));for(he=-1;++he<R.length;){const ct=t[R[he][0]];Do.call(ct,R[he][1].type)&&ct[R[he][1].type].call(Object.assign({sliceSerialize:R[he][2].sliceSerialize},K),R[he][1])}if(K.tokenStack.length>0){const ct=K.tokenStack[K.tokenStack.length-1];(ct[1]||Ja).call(K,void 0,ct[0])}for(H.position={start:ut(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:ut(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)H=t.transforms[he](H)||H;return H}function i(R,H,K){let ue=H-1,he=-1,ct=!1,Rt,rt,Xt,Zt;for(;++ue<=K;){const Oe=R[ue];switch(Oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Oe[0]==="enter"?he++:he--,Zt=void 0;break;case"lineEndingBlank":Oe[0]==="enter"&&(Rt&&!Zt&&!he&&!Xt&&(Xt=ue),Zt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zt=void 0}if(!he&&Oe[0]==="enter"&&Oe[1].type==="listItemPrefix"||he===-1&&Oe[0]==="exit"&&(Oe[1].type==="listUnordered"||Oe[1].type==="listOrdered")){if(Rt){let Ot=ue;for(rt=void 0;Ot--;){const it=R[Ot];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(R[rt][1].type="lineEndingBlank",ct=!0),it[1].type="lineEnding",rt=Ot}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}Xt&&(!rt||Xt<rt)&&(Rt._spread=!0),Rt.end=Object.assign({},rt?R[rt][1].start:Oe[1].end),R.splice(rt||ue,0,["exit",Rt,Oe[2]]),ue++,K++}if(Oe[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Oe[1].start),end:void 0};Rt=Ot,R.splice(ue,0,["enter",Ot,Oe[2]]),ue++,K++,Xt=void 0,Zt=!0}}}return R[H][1]._spread=ct,K}function a(R,H){return K;function K(ue){o.call(this,R(ue),ue),H&&H.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(R,H,K){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([H,K||void 0]),R.position={start:ut(H.start),end:void 0}}function l(R){return H;function H(K){R&&R.call(this,K),u.call(this,K)}}function u(R,H){const K=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==R.type&&(H?H.call(this,R,ue[0]):(ue[1]||Ja).call(this,R,ue[0]));else throw new Error("Cannot close `"+R.type+"` ("+mn({start:R.start,end:R.end})+"): it’s not open");K.position.end=ut(R.end)}function h(){return yi(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(R){if(this.data.expectingFirstListItemValue){const H=this.stack[this.stack.length-2];H.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function f(){const R=this.resume(),H=this.stack[this.stack.length-1];H.lang=R}function E(){const R=this.resume(),H=this.stack[this.stack.length-1];H.meta=R}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const R=this.resume(),H=this.stack[this.stack.length-1];H.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const R=this.resume(),H=this.stack[this.stack.length-1];H.value=R.replace(/(\r?\n|\r)$/g,"")}function I(R){const H=this.resume(),K=this.stack[this.stack.length-1];K.label=H,K.identifier=$e(this.sliceSerialize(R)).toLowerCase()}function x(){const R=this.resume(),H=this.stack[this.stack.length-1];H.title=R}function D(){const R=this.resume(),H=this.stack[this.stack.length-1];H.url=R}function B(R){const H=this.stack[this.stack.length-1];H.depth||(H.depth=this.sliceSerialize(R).length)}function v(){this.data.setextHeadingSlurpLineEnding=!0}function U(R){const H=this.stack[this.stack.length-1];H.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function q(R){const H=this.stack[this.stack.length-1].children;let K=H[H.length-1];(!K||K.type!=="text")&&(K=nt(),K.position={start:ut(R.start),end:void 0},H.push(K)),this.stack.push(K)}function S(R){const H=this.stack.pop();H.value+=this.sliceSerialize(R),H.position.end=ut(R.end)}function j(R){const H=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=H.children[H.children.length-1];K.position.end=ut(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(H.type)&&(q.call(this,R),S.call(this,R))}function z(){this.data.atHardBreak=!0}function Q(){const R=this.resume(),H=this.stack[this.stack.length-1];H.value=R}function ie(){const R=this.resume(),H=this.stack[this.stack.length-1];H.value=R}function G(){const R=this.resume(),H=this.stack[this.stack.length-1];H.value=R}function Y(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=H,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function F(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=H,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function X(R){const H=this.sliceSerialize(R),K=this.stack[this.stack.length-2];K.label=um(H),K.identifier=$e(H).toLowerCase()}function Te(){const R=this.stack[this.stack.length-1],H=this.resume(),K=this.stack[this.stack.length-1];this.data.inReference=!0,K.type==="link"?K.children=R.children:K.alt=H}function _(){const R=this.resume(),H=this.stack[this.stack.length-1];H.url=R}function Me(){const R=this.resume(),H=this.stack[this.stack.length-1];H.title=R}function pe(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function We(R){const H=this.resume(),K=this.stack[this.stack.length-1];K.label=H,K.identifier=$e(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function ve(R){this.data.characterReferenceType=R.type}function se(R){const H=this.sliceSerialize(R),K=this.data.characterReferenceType;let ue;K?(ue=eo(H,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=xi(H);const he=this.stack[this.stack.length-1];he.value+=ue}function Ue(R){const H=this.stack.pop();H.position.end=ut(R.end)}function be(R){S.call(this,R);const H=this.stack[this.stack.length-1];H.url=this.sliceSerialize(R)}function tt(R){S.call(this,R);const H=this.stack[this.stack.length-1];H.url="mailto:"+this.sliceSerialize(R)}function Qe(){return{type:"blockquote",children:[]}}function Gt(){return{type:"code",lang:null,meta:null,value:""}}function Tr(){return{type:"inlineCode",value:""}}function Ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rn(){return{type:"emphasis",children:[]}}function Kt(){return{type:"heading",depth:0,children:[]}}function ot(){return{type:"break"}}function Lt(){return{type:"html",value:""}}function br(){return{type:"image",title:null,url:"",alt:null}}function On(){return{type:"link",title:null,url:"",children:[]}}function W(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function ae(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Ce(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function nt(){return{type:"text",value:""}}function kr(){return{type:"thematicBreak"}}}function ut(e){return{line:e.line,column:e.column,offset:e.offset}}function Po(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Po(e,r):Yb(e,r)}}function Yb(e,t){let n;for(n in t)if(Do.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ja(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mn({start:t.start,end:t.end})+") is still open")}function qb(e){const t=this;t.parser=n;function n(r){return zb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Vb(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Wb(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
42
+ `}]}function Qb(e,t){const n=t.value?t.value+`
43
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Gb(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xb(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Wt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Zb(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Mo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function ek(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Mo(e,t);const i={src:Wt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function tk(e,t){const n={src:Wt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function nk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Mo(e,t);const i={href:Wt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ik(e,t){const n={href:Wt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ak(e,t,n){const r=e.all(t),i=n?sk(n):Bo(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const h=r[o];(i||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
44
+ `}),h.type==="element"&&h.tagName==="p"&&!i?s.push(...h.children):s.push(h)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
45
+ `});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function sk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Bo(n[r])}return t}function Bo(e){const t=e.spread;return t??e.children.length>1}function lk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function ok(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ck(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function uk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Ze(t.children[1]),l=hr(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function dk(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let o=-1;const l=[];for(;++o<s;){const h=t.children[o],d={},p=a?a[o]:void 0;p&&(d.align=p);let f={type:"element",tagName:i,properties:d,children:[]};h&&(f.children=e.all(h),e.patch(h,f),f=e.applyData(h,f)),l.push(f)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function fk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var es=9,ts=32;function pk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(ns(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(ns(t.slice(i),i>0,!1)),a.join("")}function ns(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===es||a===ts;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===es||a===ts;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function mk(e,t){const n={type:"text",value:pk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function gk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Ek={blockquote:Vb,break:Wb,code:Qb,delete:Gb,emphasis:Kb,footnoteReference:Xb,heading:Zb,html:Jb,imageReference:ek,image:tk,inlineCode:nk,linkReference:rk,link:ik,listItem:ak,list:lk,paragraph:ok,root:ck,strong:uk,table:hk,tableCell:fk,tableRow:dk,text:mk,thematicBreak:gk,toml:Bn,yaml:Bn,definition:Bn,footnoteDefinition:Bn};function Bn(){}function Tk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function bk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Tk,r=e.options.footnoteBackLabel||bk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const h=e.all(u),d=String(u.identifier).toUpperCase(),p=Wt(d.toLowerCase());let f=0;const E=[],C=e.footnoteCounts.get(d);for(;C!==void 0&&++f<=C;){E.length>0&&E.push({type:"text",value:" "});let I=typeof n=="string"?n:n(l,f);typeof I=="string"&&(I={type:"text",value:I}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const w=h[h.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const I=w.children[w.children.length-1];I&&I.type==="text"?I.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...E)}else h.push(...E);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(u,k),o.push(k)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ct(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
46
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
47
+ `}]}}var ti={}.hasOwnProperty,_k={};function Ak(e,t){const n=t||_k,r=new Map,i=new Map,a={all:o,applyData:Ck,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Ek,...n.handlers},one:s,options:n,patch:yk,wrap:Ik};return Ye(e,function(l){if(l.type==="definition"||l.type==="footnoteDefinition"){const u=l.type==="definition"?r:i,h=String(l.identifier).toUpperCase();u.has(h)||u.set(h,l)}}),a;function s(l,u){const h=l.type,d=a.handlers[h];if(ti.call(a.handlers,h)&&d)return d(a,l,u);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in l){const{children:p,...f}=l,E=Ct(f);return E.children=a.all(l),E}return Ct(l)}return(a.options.unknownHandler||xk)(a,l,u)}function o(l){const u=[];if("children"in l){const h=l.children;let d=-1;for(;++d<h.length;){const p=a.one(h[d],l);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=rs(p.value)),!Array.isArray(p)&&p.type==="element")){const f=p.children[0];f&&f.type==="text"&&(f.value=rs(f.value))}Array.isArray(p)?u.push(...p):u.push(p)}}}return u}}function yk(e,t){e.position&&(t.position=vl(e))}function Ck(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&a&&Object.assign(n.properties,Ct(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function xk(e,t){const n=t.data||{},r="value"in t&&!(ti.call(n,"hProperties")||ti.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ik(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
48
+ `});++r<e.length;)r&&n.push({type:"text",value:`
49
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
50
+ `}),n}function rs(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function is(e,t){const n=Ak(e,t),r=n.one(e,void 0),i=kk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&("children"in a,a.children.push({type:"text",value:`
51
+ `},i)),a}function Nk(e,t){return e&&"run"in e?async function(n,r){const i=is(n,{file:r,...t});await e.run(i,r)}:function(n,r){return is(n,{file:r,...e||t})}}function as(e){if(e)throw e}var Sk=_n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):r.call(d)==="[object Array]"},o=function(d){if(!d||r.call(d)!=="[object Object]")return!1;var p=n.call(d,"constructor"),f=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!f)return!1;var E;for(E in d);return typeof E>"u"||n.call(d,E)},l=function(d,p){i&&p.name==="__proto__"?i(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},u=function(d,p){if(p==="__proto__")if(n.call(d,p)){if(a)return a(d,p).value}else return;return d[p]};t.exports=function h(){var d,p,f,E,C,w,k=arguments[0],I=1,x=arguments.length,D=!1;for(typeof k=="boolean"&&(D=k,k=arguments[1]||{},I=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});I<x;++I)if(d=arguments[I],d!=null)for(p in d)f=u(k,p),E=u(d,p),k!==E&&(D&&E&&(o(E)||(C=s(E)))?(C?(C=!1,w=f&&s(f)?f:[]):w=f&&o(f)?f:{},l(k,{name:p,newValue:h(D,w,E)})):typeof E<"u"&&l(k,{name:p,newValue:E}));return k}})),Dr=nr(Sk(),1);function ni(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vk(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const h=e[++a];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,h?wk(h,o)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function wk(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const h=u;if(o&&n)throw h;return i(h)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}var Ke={basename:Lk,dirname:Rk,extname:Ok,join:Dk,sep:"/"};function Lk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Sn(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Rk(e){if(Sn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ok(e){Sn(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Dk(...e){let t=-1,n;for(;++t<e.length;)Sn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Pk(n)}function Pk(e){Sn(e);const t=e.codePointAt(0)===47;let n=Mk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mk(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Sn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Bk={cwd:Fk};function Fk(){return"/"}function ri(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hk(e){if(typeof e=="string")e=new URL(e);else if(!ri(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Uk(e)}function Uk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var Pr=["history","path","basename","stem","extname","dirname"],jk=class{constructor(e){let t;e?ri(e)?t={path:e}:typeof e=="string"||zk(e)?t={value:e}:t=e:t={},this.cwd="cwd"in t?"":Bk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Pr.length;){const i=Pr[n];i in t&&t[i]!==void 0&&t[i]!==null&&(this[i]=i==="history"?[...t[i]]:t[i])}let r;for(r in t)Pr.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path=="string"?Ke.basename(this.path):void 0}set basename(e){Br(e,"basename"),Mr(e,"basename"),this.path=Ke.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ke.dirname(this.path):void 0}set dirname(e){ss(this.basename,"dirname"),this.path=Ke.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ke.extname(this.path):void 0}set extname(e){if(Mr(e,"extname"),ss(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ke.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ri(e)&&(e=Hk(e)),Br(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ke.basename(this.path,this.extname):void 0}set stem(e){Br(e,"stem"),Mr(e,"stem"),this.path=Ke.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ye(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Mr(e,t){if(e&&e.includes(Ke.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ke.sep+"`")}function Br(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ss(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function zk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var $k=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Yk={}.hasOwnProperty,qk=class Fo extends $k{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=vk()}copy(){const t=new Fo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data((0,Dr.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ur("data",this.frozen),this.namespace[t]=n,this):Yk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ur("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fn(t),r=this.parser||this.Parser;return Fr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Fr("process",this.parser||this.Parser),Hr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Fn(t),l=r.parse(o);r.run(l,o,function(h,d,p){if(h||!d||!p)return u(h);const f=d,E=r.stringify(f,p);Qk(E)?p.value=E:p.result=E,u(h,p)});function u(h,d){h||!d?s(h):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Fr("processSync",this.parser||this.Parser),Hr("processSync",this.compiler||this.Compiler),this.process(t,i),os("processSync","process",n),r;function i(a,s){n=!0,as(a),r=s}}run(t,n,r){ls(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const l=Fn(n);i.run(t,l,u);function u(h,d,p){const f=d||t;h?o(h):s?s(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),os("runSync","run",r),i;function a(s,o){as(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Fn(n),i=this.compiler||this.Compiler;return Hr("stringify",i),ls(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ur("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[h,...d]=u;l(h,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(i.settings=(0,Dr.default)(!0,i.settings,u.settings))}function o(u){let h=-1;if(u!=null)if(Array.isArray(u))for(;++h<u.length;){const d=u[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,h){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===u){p=d;break}if(p===-1)r.push([u,...h]);else if(h.length>0){let[f,...E]=h;const C=r[p][1];ni(C)&&ni(f)&&(f=(0,Dr.default)(!0,C,f)),r[p]=[u,f,...E]}}}},Vk=new qk().freeze();function Fr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ur(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ls(e){if(!ni(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function os(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fn(e){return Wk(e)?e:new jk(e)}function Wk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Qk(e){return typeof e=="string"||Gk(e)}function Gk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Oi=nr(Wc(),1),T=Qc();function Di(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wt=Di();function Ho(e){wt=e}var _t={exec:()=>null};function re(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Ne.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var Kk=(()=>{try{return!0}catch{return!1}})(),Ne={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Xk=/^(?:[ \t]*(?:\n|$))+/,Zk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Jk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,e_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Uo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jo=re(Uo).replace(/bull/g,Pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),t_=re(Uo).replace(/bull/g,Pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Mi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,n_=/^[^\n]+/,Bi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,r_=re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Bi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),i_=re(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pi).getRegex(),mr="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,a_=re("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fi).replace("tag",mr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),cs=re(Mi).replace("hr",vn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Hi={blockquote:re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",cs).getRegex(),code:Zk,def:r_,fences:Jk,heading:e_,hr:vn,html:a_,lheading:jo,list:i_,newline:Xk,paragraph:cs,table:_t,text:n_},us=re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),s_={...Hi,lheading:t_,table:us,paragraph:re(Mi).replace("hr",vn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",us).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex()},l_={...Hi,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_t,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(Mi).replace("hr",vn).replace("heading",` *#{1,6} *[^
52
+ ]`).replace("lheading",jo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},o_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,c_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zo=/^( {2,}|\\)\n(?!\s*$)/,u_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Qt=/[\p{P}\p{S}]/u,gr=/[\s\p{P}\p{S}]/u,Ui=/[^\s\p{P}\p{S}]/u,h_=re(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,gr).getRegex(),$o=/(?!~)[\p{P}\p{S}]/u,d_=/(?!~)[\s\p{P}\p{S}]/u,f_=/(?:[^\s\p{P}\p{S}]|~)/u,p_=re(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Kk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Yo=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,m_=re(Yo,"u").replace(/punct/g,Qt).getRegex(),g_=re(Yo,"u").replace(/punct/g,$o).getRegex(),qo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",E_=re(qo,"gu").replace(/notPunctSpace/g,Ui).replace(/punctSpace/g,gr).replace(/punct/g,Qt).getRegex(),T_=re(qo,"gu").replace(/notPunctSpace/g,f_).replace(/punctSpace/g,d_).replace(/punct/g,$o).getRegex(),b_=re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ui).replace(/punctSpace/g,gr).replace(/punct/g,Qt).getRegex(),k_=re(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Qt).getRegex(),__=re("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Ui).replace(/punctSpace/g,gr).replace(/punct/g,Qt).getRegex(),A_=re(/\\(punct)/,"gu").replace(/punct/g,Qt).getRegex(),y_=re(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),C_=re(Fi).replace("(?:-->|$)","-->").getRegex(),x_=re("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",C_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,I_=re(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Zn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vo=re(/^!?\[(label)\]\[(ref)\]/).replace("label",Zn).replace("ref",Bi).getRegex(),Wo=re(/^!?\[(ref)\](?:\[\])?/).replace("ref",Bi).getRegex(),N_=re("reflink|nolink(?!\\()","g").replace("reflink",Vo).replace("nolink",Wo).getRegex(),hs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ji={_backpedal:_t,anyPunctuation:A_,autolink:y_,blockSkip:p_,br:zo,code:c_,del:_t,delLDelim:_t,delRDelim:_t,emStrongLDelim:m_,emStrongRDelimAst:E_,emStrongRDelimUnd:b_,escape:o_,link:I_,nolink:Wo,punctuation:h_,reflink:Vo,reflinkSearch:N_,tag:x_,text:u_,url:_t},S_={...ji,link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",Zn).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zn).getRegex()},ii={...ji,emStrongRDelimAst:T_,emStrongLDelim:g_,delLDelim:k_,delRDelim:__,url:re(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",hs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:re(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",hs).getRegex()},v_={...ii,br:re(zo).replace("{2,}","*").getRegex(),text:re(ii.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hn={normal:Hi,gfm:s_,pedantic:l_},rn={normal:ji,gfm:ii,breaks:v_,pedantic:S_},w_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ds=e=>w_[e];function Ge(e,t){if(t){if(Ne.escapeTest.test(e))return e.replace(Ne.escapeReplace,ds)}else if(Ne.escapeTestNoEncode.test(e))return e.replace(Ne.escapeReplaceNoEncode,ds);return e}function fs(e){try{e=encodeURI(e).replace(Ne.percentDecode,"%")}catch{return null}return e}function ps(e,t){let n=e.replace(Ne.findPipe,(i,a,s)=>{let o=!1,l=a;for(;--l>=0&&s[l]==="\\";)o=!o;return o?"|":" |"}).split(Ne.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(Ne.slashPipe,"|");return n}function an(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function L_(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function R_(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=i,n++;return r}function ms(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function O_(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
53
+ `).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
54
+ `)}var Jn=class{options;rules;lexer;constructor(e){this.options=e||wt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:an(n,`
55
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=O_(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=an(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:an(t[0],`
56
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=an(t[0],`
57
+ `).split(`
58
+ `),r="",i="",a=[];for(;n.length>0;){let s=!1,o=[],l=0;for(;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))o.push(n[l]),s=!0;else if(!s)o.push(n[l]);else break;n=n.slice(l);let u=o.join(`
59
+ `),h=u.replace(this.rules.other.blockquoteSetextReplace,`
60
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
61
+ ${u}`:u,i=i?`${i}
62
+ ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,a,!0),this.lexer.state.top=d,n.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let f=p,E=f.raw+`
63
+ `+n.join(`
64
+ `),C=this.blockquote(E);a[a.length-1]=C,r=r.substring(0,r.length-f.raw.length)+C.raw,i=i.substring(0,i.length-f.text.length)+C.text;break}else if(p?.type==="list"){let f=p,E=f.raw+`
65
+ `+n.join(`
66
+ `),C=this.list(E);a[a.length-1]=C,r=r.substring(0,r.length-p.raw.length)+C.raw,i=i.substring(0,i.length-f.raw.length)+C.raw,n=E.substring(a.at(-1).raw.length).split(`
67
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let l=!1,u="",h="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let d=R_(t[2].split(`
68
+ `,1)[0],t[1].length),p=e.split(`
69
+ `,1)[0],f=!d.trim(),E=0;if(this.options.pedantic?(E=2,h=d.trimStart()):f?E=t[1].length+1:(E=d.search(this.rules.other.nonSpaceChar),E=E>4?1:E,h=d.slice(E),E+=t[1].length),f&&this.rules.other.blankLine.test(p)&&(u+=p+`
70
+ `,e=e.substring(p.length+1),l=!0),!l){let C=this.rules.other.nextBulletRegex(E),w=this.rules.other.hrRegex(E),k=this.rules.other.fencesBeginRegex(E),I=this.rules.other.headingBeginRegex(E),x=this.rules.other.htmlBeginRegex(E),D=this.rules.other.blockquoteBeginRegex(E);for(;e;){let B=e.split(`
71
+ `,1)[0],v;if(p=B,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),v=p):v=p.replace(this.rules.other.tabCharGlobal," "),k.test(p)||I.test(p)||x.test(p)||D.test(p)||C.test(p)||w.test(p))break;if(v.search(this.rules.other.nonSpaceChar)>=E||!p.trim())h+=`
72
+ `+v.slice(E);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(d)||I.test(d)||w.test(d))break;h+=`
73
+ `+p}f=!p.trim(),u+=B+`
74
+ `,e=e.substring(B.length+1),d=v.slice(E)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0)),i.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),i.raw+=u}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l of i.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(l.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};l.checked=h.checked,i.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=h.raw+l.tokens[0].raw,l.tokens[0].text=h.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(h)):l.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):l.tokens.unshift(h)}}if(!i.loose){let u=l.tokens.filter(h=>h.type==="space");i.loose=u.length>0&&u.some(h=>this.rules.other.anyLine.test(h.raw))}}if(i.loose)for(let l of i.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ps(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
75
+ `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(ps(s,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
76
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=an(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=L_(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ms(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ms(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,l=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){l+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+l);let h=[...r[0]][0].length,d=e.slice(0,i+r.index+h+s);if(Math.min(i,s)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(s=[...a].length,s!==i))continue;if(r[3]||r[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let u=[...r[0]][0].length,h=e.slice(0,i+r.index+u+s),d=h.slice(i,-i);return{type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},He=class ai{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||wt,this.options.tokenizer=this.options.tokenizer||new Jn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ne,block:Hn.normal,inline:rn.normal};this.options.pedantic?(n.block=Hn.pedantic,n.inline=rn.pedantic):this.options.gfm&&(n.block=Hn.gfm,this.options.breaks?n.inline=rn.breaks:n.inline=rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Hn,inline:rn}}static lex(t,n){return new ai(n).lex(t)}static lexInline(t,n){return new ai(n).inlineTokens(t)}lex(t){t=t.replace(Ne.carriageReturn,`
77
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ne.tabCharGlobal," ").replace(Ne.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=n.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
78
+ `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
79
+ `)?"":`
80
+ `)+i.raw,s.text+=`
81
+ `+i.text,this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
82
+ `)?"":`
83
+ `)+i.raw,s.text+=`
84
+ `+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
85
+ `)?"":`
86
+ `)+i.raw,s.text+=`
87
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
88
+ `)?"":`
89
+ `)+i.raw,s.text+=`
90
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let r=t,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=n.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(t,r,o)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(t,r,o)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),n.push(l);continue}let u=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),p;this.options.extensions.startInline.forEach(f=>{p=f.call({lexer:this},d),typeof p=="number"&&p>=0&&(h=Math.min(h,p))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):n.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}},er=class{options;parser;constructor(e){this.options=e||wt}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(Ne.notSpaceStart)?.[0],i=e.replace(Ne.endingNewline,"")+`
91
+ `;return r?'<pre><code class="language-'+Ge(r)+'">'+(n?i:Ge(i,!0))+`</code></pre>
92
+ `:"<pre><code>"+(n?i:Ge(i,!0))+`</code></pre>
93
+ `}blockquote({tokens:e}){return`<blockquote>
94
+ ${this.parser.parse(e)}</blockquote>
95
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
96
+ `}hr(e){return`<hr>
97
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let o=e.items[s];r+=this.listitem(o)}let i=t?"ol":"ul",a=t&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
98
+ `+r+"</"+i+`>
99
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
100
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
101
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];n="";for(let s=0;s<a.length;s++)n+=this.tablecell(a[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
102
+ <thead>
103
+ `+t+`</thead>
104
+ `+r+`</table>
105
+ `}tablerow({text:e}){return`<tr>
106
+ ${e}</tr>
107
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
108
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ge(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=fs(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+Ge(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=fs(e);if(i===null)return Ge(n);e=i;let a=`<img src="${e}" alt="${Ge(n)}"`;return t&&(a+=` title="${Ge(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ge(e.text)}},zi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ze=class si{options;renderer;textRenderer;constructor(t){this.options=t||wt,this.options.renderer=this.options.renderer||new er,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new zi}static parse(t,n){return new si(n).parse(t)}static parseInline(t,n){return new si(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=o||"";continue}}let a=i;switch(a.type){case"space":n+=this.renderer.space(a);break;case"hr":n+=this.renderer.hr(a);break;case"heading":n+=this.renderer.heading(a);break;case"code":n+=this.renderer.code(a);break;case"table":n+=this.renderer.table(a);break;case"blockquote":n+=this.renderer.blockquote(a);break;case"list":n+=this.renderer.list(a);break;case"checkbox":n+=this.renderer.checkbox(a);break;case"html":n+=this.renderer.html(a);break;case"def":n+=this.renderer.def(a);break;case"paragraph":n+=this.renderer.paragraph(a);break;case"text":n+=this.renderer.text(a);break;default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let s=a;switch(s.type){case"escape":r+=n.text(s);break;case"html":r+=n.html(s);break;case"link":r+=n.link(s);break;case"image":r+=n.image(s);break;case"checkbox":r+=n.checkbox(s);break;case"strong":r+=n.strong(s);break;case"em":r+=n.em(s);break;case"codespan":r+=n.codespan(s);break;case"br":r+=n.br(s);break;case"del":r+=n.del(s);break;case"text":r+=n.text(s);break;default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},ln=class{options;block;constructor(e){this.options=e||wt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?He.lex:He.lexInline}provideParser(e=this.block){return e?ze.parse:ze.parseInline}},D_=class{defaults=Di();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ze;Renderer=er;TextRenderer=zi;Lexer=He;Tokenizer=Jn;Hooks=ln;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new er(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=n.renderer[s],l=i[s];i[s]=(...u)=>{let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Jn(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=n.tokenizer[s],l=i[s];i[s]=(...u)=>{let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ln;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=n.hooks[s],l=i[s];ln.passThroughHooks.has(a)?i[s]=u=>{if(this.defaults.async&&ln.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await o.call(i,u);return l.call(i,d)})();let h=o.call(i,u);return l.call(i,h)}:i[s]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(i,u);return d===!1&&(d=await l.apply(i,u)),d})();let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return He.lex(e,t??this.defaults)}parser(e,t){return ze.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer(e):e?He.lex:He.lexInline)(s,i),l=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser(e):e?ze.parse:ze.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer(e):e?He.lex:He.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser(e):e?ze.parse:ze.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
109
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ge(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},It=new D_;function le(e,t){return It.parse(e,t)}le.options=le.setOptions=function(e){return It.setOptions(e),le.defaults=It.defaults,Ho(le.defaults),le};le.getDefaults=Di;le.defaults=wt;le.use=function(...e){return It.use(...e),le.defaults=It.defaults,Ho(le.defaults),le};le.walkTokens=function(e,t){return It.walkTokens(e,t)};le.parseInline=It.parseInline;le.Parser=ze;le.parser=ze.parse;le.Renderer=er;le.TextRenderer=zi;le.Lexer=He;le.lexer=He.lex;le.Tokenizer=Jn;le.Hooks=ln;le.parse=le;var Uy=le.options,jy=le.setOptions,zy=le.use,$y=le.walkTokens,Yy=le.parseInline,qy=ze.parse,Vy=He.lex,P_=300,M_="300px",B_=500;function F_(e={}){let{immediate:t=!1,debounceDelay:n=P_,rootMargin:r=M_,idleTimeout:i=B_}=e,[a,s]=(0,y.useState)(!1),o=(0,y.useRef)(null),l=(0,y.useRef)(null),u=(0,y.useRef)(null),h=(0,y.useMemo)(()=>f=>{let E=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-E))})},1)},[]),d=(0,y.useMemo)(()=>typeof window<"u"&&window.requestIdleCallback?(f,E)=>window.requestIdleCallback(f,E):h,[h]),p=(0,y.useMemo)(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return(0,y.useEffect)(()=>{if(t){s(!0);return}let f=o.current;if(!f)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null);let E=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null)},C=x=>{u.current=d(D=>{D.timeRemaining()>0||D.didTimeout?(s(!0),x.disconnect()):u.current=d(()=>{s(!0),x.disconnect()},{timeout:i/2})},{timeout:i})},w=x=>{E(),l.current=window.setTimeout(()=>{var D,B;let v=x.takeRecords();(v.length===0||(B=(D=v.at(-1))==null?void 0:D.isIntersecting)!=null&&B)&&C(x)},n)},k=(x,D)=>{x.isIntersecting?w(D):E()},I=new IntersectionObserver(x=>{for(let D of x)k(D,I)},{rootMargin:r,threshold:0});return I.observe(f),()=>{l.current&&clearTimeout(l.current),u.current&&p(u.current),I.disconnect()}},[t,n,r,i,p,d]),{shouldRender:a,containerRef:o}}var H_=320,U_=4,Qo=()=>typeof performance>"u"?Date.now():performance.now();function gs(e){var t,n;let r=(t=e?.now)!=null?t:Qo,i=(n=e?.maxBacklogMs)!=null?n:H_,a=0,s=0;return{now:r,beginPass(o){s=Math.min(Math.max(a,o),o+i)},mark(){return s},rewind(o){s=o},take(o,l,u){if(o<=0)return{baseDelay:0,step:Math.max(0,l)};let h=Math.max(0,l),d=h===0?0:Math.min(h,U_),p=Math.max(s,u),f=u+i,E=p+Math.max(0,o-1)*h,C=h;if(E>f&&o>1)if(p<f){let k=f-p;C=Math.max(d,k/(o-1))}else C=d;let w=Math.max(0,Math.round(p-u));return s=p+o*C,{baseDelay:w,step:C}},commitPass(){a=s}}}var Go=/\s/,$i=/^\s+$/,j_=new Set(["pre","svg","math","annotation"]),z_=new Set(["img","hr"]),wn=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",Yi=e=>e.some(t=>wn(t)&&j_.has(t.tagName)),$_=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(wn(n)&&n.tagName==="li")return n}},Y_=(e,t,n,r)=>{e.properties??={},e.properties["data-sd-animate-marker"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${r}`},q_=new Set(["ul","ol","li"]),Ko=e=>{for(let t of e.children)if(wn(t)){if(t.tagName==="input")return t;if(q_.has(t.tagName))continue;let n=Ko(t);if(n)return n}},Xo=(e,t,n,r)=>{e.properties??={},e.properties["data-sd-animate"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(r)}ms`},V_=(e,t,n,r)=>{let i=Ko(e);i&&Xo(i,t,n,r)},W_=(e,t,n,r,i,a)=>{if(Yi(t))return;let s=r.prevContentLength,o=i.count;i.count+=1;let l=s>0&&o<s,u=l?0:a.baseDelay+i.newIndex++*a.step;Xo(e,n,l?0:n.duration,u)},Q_=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(wn(r)){if((t=r.properties)!=null&&t["data-sd-animated"])break;r.properties={...r.properties,"data-sd-animated":!0}}}},Zo=e=>{let t=[],n="",r=!1;for(let i of e){let a=Go.test(i);if(a!==r&&n){if(a){n+=i,r=!0;continue}t.push(n),n=""}n+=i,r=a}return n&&t.push(n),t},Jo=e=>{let t=[],n="";for(let r of e)Go.test(r)?t.length>0&&!$i.test(t.at(-1))?t[t.length-1]+=r:n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},G_=(e,t,n,r,i,a)=>{let s=`--sd-animation:sd-${t};--sd-duration:${i?0:n}ms;--sd-easing:${r}`;return a&&(s+=`;--sd-delay:${Math.round(a)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},Es=(e,t)=>!(e>0&&t<e),li=e=>wn(e)&&z_.has(e.tagName),K_=(e,t,n)=>{let r=0,i=0;return ar(e,a=>a.type==="text"||li(a),(a,s)=>{if(Yi(s))return Mt;if(li(a)){Es(n,i)&&(r+=1),i+=1;return}let o=a.value;if(!o.trim()){i+=o.length;return}let l=t.sep==="char"?Jo(o):Zo(o);for(let u of l){let h=i;i+=u.length,!$i.test(u)&&Es(n,h)&&(r+=1)}}),r},X_=(e,t,n,r,i,a)=>{var s;let o=t.at(-1);if(!(o&&"children"in o))return;if(Yi(t))return Mt;let l=o,u=l.children.indexOf(e);if(u===-1)return;let h=e.value;if(!h.trim()){i.count+=h.length;return}let d=n.sep==="char"?Jo(h):Zo(h),p=r.prevContentLength,f=!1,E=$_(t),C=!!(E&&!((s=E.properties)!=null&&s["data-sd-animate-marker"])),w=!1,k=d.map(I=>{let x=i.count;if(i.count+=I.length,$i.test(I))return{type:"text",value:I};let D=p>0&&x<p,B=D?0:a.baseDelay+i.newIndex++*a.step;if(f=!0,E&&C&&!w){let v=D?0:n.duration;Y_(E,v,B,n.easing),V_(E,n,v,B),w=!0}return G_(I,n.animation,n.duration,n.easing,D,B)});return f&&Q_(t),l.children.splice(u,1,...k),u+k.length},Z_=0;function ec(e){var t,n,r,i,a;let s={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(i=e?.sep)!=null?i:"word",stagger:(a=e?.stagger)!=null?a:40,timeline:e?.timeline},o={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},l=Z_++,u=()=>h=>{var d;let p={count:0,newIndex:0};o.prevContentLength=o.committedCharCount;let f=s.timeline,E=(d=f?.now())!=null?d:Qo();f&&(o.pendingMark===null?o.pendingMark=f.mark():f.rewind(o.pendingMark));let C=f?f.take(K_(h,s,o.prevContentLength),s.stagger,E):{baseDelay:0,step:s.stagger};ar(h,w=>w.type==="text"||li(w),(w,k)=>{if(w.type==="text")return X_(w,k,s,o,p,C);W_(w,k,s,o,p,C)}),o.lastRenderCharCount=p.count,o.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${l}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(h){o.committedCharCount=h,o.prevContentLength=h},getLastRenderCharCount(){return o.lastRenderCharCount},commit(){o.committedCharCount=o.lastRenderCharCount,o.pendingMark=null}}}ec();var tc=(0,y.createContext)(!1),J_=()=>(0,y.useContext)(tc),Er=(...e)=>Ms(Bs(e)),eA=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(r=>r.startsWith(n)?r:`${e}:${r}`).join(" ")},tA=e=>e?(...t)=>eA(e,Ms(Bs(t))):Er,Ht=(e,t,n)=>{let r=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",i=typeof t=="string"?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},oi=(0,y.createContext)(Er),ee=()=>(0,y.useContext)(oi),nA=8,nc=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},rc=(e,t,n)=>{let r=(0,y.useRef)(null),i=(0,y.useRef)(!0),a=(0,y.useRef)(!1);return(0,y.useEffect)(()=>{let s=r.current;if(!(s&&t))return;let o=()=>{let l=s.scrollHeight-s.scrollTop-s.clientHeight<nA;i.current=l};return s.addEventListener("scroll",o,{passive:!0}),()=>s.removeEventListener("scroll",o)},[t]),(0,y.useEffect)(()=>{e&&!a.current&&(i.current=!0),e||(i.current=!0),a.current=e},[e]),(0,y.useEffect)(()=>{let s=r.current;s&&t&&e&&i.current&&s.scrollTo({top:s.scrollHeight,behavior:"instant"})},[e,t,n]),r},rA=Er("block"),iA=Er("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),aA=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),a=n.slice(r+1).trim();i&&a&&(t[i]=a)}}return t},sA=(0,y.memo)(({children:e,result:t,language:n,className:r,maxHeight:i,startLine:a,lineNumbers:s=!0,...o})=>{let l=ee(),{isAnimating:u}=(0,y.useContext)(ke),h=nc(i),d=rc(u,!!h,t),p=(0,y.useMemo)(()=>l(iA),[l]),f=(0,y.useMemo)(()=>l(rA),[l]),E=(0,y.useMemo)(()=>{let C={};return t.bg&&(C["--sdm-bg"]=t.bg),t.fg&&(C["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(C,aA(t.rootStyle)),C},[t.bg,t.fg,t.rootStyle]);return(0,T.jsx)("div",{className:l(r,h?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:d,style:h?{maxHeight:h}:void 0,...o,children:(0,T.jsx)("pre",{className:l(r,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:E,children:(0,T.jsx)("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((C,w)=>(0,T.jsx)("span",{className:s?p:f,children:C.length===0||C.length===1&&C[0].content===""?`
110
+ `:C.map((k,I)=>{let x={},D=!!k.bgColor;if(k.color&&(x["--sdm-c"]=k.color),k.bgColor&&(x["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[B,v]of Object.entries(k.htmlStyle))B==="color"?x["--sdm-c"]=v:B==="background-color"?(x["--sdm-tbg"]=v,D=!0):x[B]=v;return(0,T.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",D&&"bg-[var(--sdm-tbg)]",D&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:x,...k.htmlAttrs,children:k.content},I)})},w))})})})}),lA=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=ee();return(0,T.jsx)("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},ic=(0,y.createContext)({code:""}),ac=()=>(0,y.useContext)(ic),oA=({language:e})=>{let t=ee();return(0,T.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,T.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},cA=e=>{let t=e.length;for(;t>0&&e[t-1]===`
111
+ `;)t--;return e.slice(0,t)},uA=(0,y.lazy)(()=>Fs(()=>import("./highlighted-body-KPVGNVTW-D71DU577.js").then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2]))),hA=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:s,...o})=>{let l=ee(),{codeBlockMaxHeight:u}=(0,y.useContext)(ke),h=(0,y.useMemo)(()=>cA(e),[e]),d=(0,y.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:h.split(`
112
+ `).map(p=>[{content:p,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[h]);return(0,T.jsx)(ic.Provider,{value:{code:e},children:(0,T.jsxs)(lA,{dir:"ltr",isIncomplete:i,language:t,children:[(0,T.jsx)(oA,{language:t}),r?(0,T.jsx)("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,T.jsx)("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(sA,{className:n,language:t,lineNumbers:s,maxHeight:u,result:d,startLine:a,...o}),children:(0,T.jsx)(uA,{className:n,code:h,language:t,lineNumbers:s,maxHeight:u,raw:d,startLine:a,...o})})]})})},dA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),fA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),pA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),mA=e=>(0,T.jsxs)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,T.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),gA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),EA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),TA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),bA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),kA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),_A=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),on={CheckIcon:dA,CopyIcon:fA,DownloadIcon:pA,ExternalLinkIcon:bA,Loader2Icon:mA,Maximize2Icon:gA,RotateCcwIcon:EA,XIcon:TA,ZoomInIcon:kA,ZoomOutIcon:_A},sc=(0,y.createContext)(on),AA=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>e[i]===t[i])},Ts=({icons:e,children:t})=>{let n=(0,y.useRef)(e),r=(0,y.useRef)(e?{...on,...e}:on);AA(n.current,e)||(n.current=e,r.current=e?{...on,...e}:on);let i=r.current;return(0,T.jsx)(sc.Provider,{value:i,children:t})},Ve=()=>(0,y.useContext)(sc),lc={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},ci=(0,y.createContext)(lc),et=()=>(0,y.useContext)(ci),ui=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let o=ee(),[l,u]=(0,y.useState)(!1),h=(0,y.useRef)(0),{code:d}=ac(),{isAnimating:p}=(0,y.useContext)(ke),f=et(),E=a??d,C=async()=>{var I;if(typeof window>"u"||!((I=navigator?.clipboard)!=null&&I.writeText)){t?.(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(E),u(!0),e?.(),h.current=window.setTimeout(()=>u(!1),n))}catch(x){t?.(x)}};(0,y.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let w=Ve(),k=l?w.CheckIcon:w.CopyIcon;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{"aria-label":f.copyCode,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:p,onClick:C,title:f.copyCode,type:"button",...s,children:r??(0,T.jsx)(k,{"aria-hidden":"true",size:14})}),l&&(0,T.jsx)("output",{"aria-live":"polite",className:"sr-only",children:f.copied})]})},qi=(e,t,n)=>{if(typeof e=="boolean")return n;let r=e[t];if(typeof r!="object")return n;let i=r.download;return typeof i!="object"?n:i.filename||n},bs={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},yA=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let o=ee(),{code:l}=ac(),{isAnimating:u,controls:h}=(0,y.useContext)(ke),d=et(),p=Ve(),f=a??l,E=n&&n in bs?bs[n]:"txt",C=`${qi(h,"code","file")}.${E}`,w="text/plain",k=()=>{try{Ht(C,f,w),e?.()}catch(I){t?.(I)}};return(0,T.jsx)("button",{"aria-label":d.downloadFile,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:k,title:d.downloadFile,type:"button",...s,children:r??(0,T.jsx)(p.DownloadIcon,{size:14})})},ks=()=>{let{Loader2Icon:e}=Ve(),t=ee();return(0,T.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,T.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,T.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,T.jsx)(e,{className:t("size-4 animate-spin")})})]})},CA=/\.[^/.]+$/,xA=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,showControls:s=!0,showDownloadControl:o=!0,...l})=>{let{DownloadIcon:u}=Ve(),h=ee(),d=(0,y.useRef)(null),[p,f]=(0,y.useState)(!1),[E,C]=(0,y.useState)(!1),w=et(),k=l.width!=null||l.height!=null,I=(p||k)&&!E&&s&&o,x=E&&!k;(0,y.useEffect)(()=>{let U=d.current;if(U!=null&&U.complete){let $=U.naturalWidth>0;f($),C(!$)}},[]);let D=(0,y.useCallback)(U=>{f(!0),C(!1),i?.(U)},[i]),B=(0,y.useCallback)(U=>{f(!1),C(!0),a?.(U)},[a]),v=async()=>{if(n)try{let U=await(await fetch(n)).blob(),$=new URL(n,window.location.origin).pathname.split("/").pop()||"",q=$.split(".").pop(),S=$.includes(".")&&q!==void 0&&q.length<=4,j="";if(S)j=$;else{let z=U.type,Q="png";z.includes("jpeg")||z.includes("jpg")?Q="jpg":z.includes("png")?Q="png":z.includes("svg")?Q="svg":z.includes("gif")?Q="gif":z.includes("webp")&&(Q="webp"),j=`${(r||$||"image").replace(CA,"")}.${Q}`}Ht(j,U,U.type)}catch{window.open(n,"_blank")}};return n?(0,T.jsxs)("div",{className:h("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,T.jsx)("img",{alt:r,className:h("max-w-full rounded-lg",x&&"hidden",t),"data-streamdown":"image",onError:B,onLoad:D,ref:d,src:n,...l}),x&&(0,T.jsx)("span",{className:h("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:w.imageNotAvailable}),s&&(0,T.jsx)("div",{className:h("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),I&&(0,T.jsx)("button",{className:h("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:v,title:w.downloadImage,type:"button",children:(0,T.jsx)(u,{size:14})})]}):null},gn=0,Vi=()=>{gn+=1,gn===1&&(document.body.style.overflow="hidden")},Wi=()=>{gn=Math.max(0,gn-1),gn===0&&(document.body.style.overflow="")},IA=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:s,XIcon:o}=Ve(),l=ee(),[u,h]=(0,y.useState)(!1),d=et(),p=(0,y.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),2e3)}catch{}},[e]),f=(0,y.useCallback)(()=>{r(),n()},[r,n]);if((0,y.useEffect)(()=>{if(t){Vi();let C=w=>{w.key==="Escape"&&n()};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C),Wi()}}},[t,n]),!t||typeof document>"u")return null;let E=(0,T.jsx)("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:C=>{C.key==="Escape"&&n()},role:"button",tabIndex:0,children:(0,T.jsxs)("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:C=>C.stopPropagation(),onKeyDown:C=>C.stopPropagation(),role:"presentation",children:[(0,T.jsx)("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:d.close,type:"button",children:(0,T.jsx)(o,{size:16})}),(0,T.jsxs)("div",{className:l("flex flex-col gap-2"),children:[(0,T.jsxs)("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[(0,T.jsx)(s,{size:20}),(0,T.jsx)("span",{children:d.openExternalLink})]}),(0,T.jsx)("p",{className:l("text-muted-foreground text-sm"),children:d.externalLinkWarning})]}),(0,T.jsx)("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,T.jsxs)("div",{className:l("flex gap-2"),children:[(0,T.jsx)("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:u?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(i,{size:14}),(0,T.jsx)("span",{children:d.copied})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(a,{size:14}),(0,T.jsx)("span",{children:d.copyLink})]})}),(0,T.jsxs)("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,T.jsx)(s,{size:14}),(0,T.jsx)("span",{children:d.openLink})]})]})]})});return(0,Oi.createPortal)(E,document.body)},hi=(0,y.createContext)(null),Qi=()=>(0,y.useContext)(hi),Wy=()=>{var e;let t=Qi();return(e=t?.code)!=null?e:null},Gi=()=>{var e;let t=Qi();return(e=t?.mermaid)!=null?e:null},NA=e=>{var t;let n=Qi();return n!=null&&n.renderers&&e&&(t=n.renderers.find(r=>Array.isArray(r.language)?r.language.includes(e):r.language===e))!=null?t:null},SA=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},vA=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*r,h=o.height*r;l.width=u,l.height=h;let d=l.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(o,0,0,u,h),l.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},oc=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let s=ee(),[o,l]=(0,y.useState)(!1),u=(0,y.useRef)(null),{isAnimating:h,controls:d}=(0,y.useContext)(ke),p=Ve(),f=Gi(),E=et(),C=qi(d,"mermaid","diagram"),w=async k=>{try{if(k==="mmd"){Ht(`${C}.mmd`,e,"text/plain"),l(!1),r?.(k);return}if(!f){a?.(new Error("Mermaid plugin not available"));return}let I=f.getMermaid(i),x=e.split("").reduce((U,$)=>(U<<5)-U+$.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(x)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:B}=await I.render(D,e);if(!B){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}let v=SA(B);if(k==="svg"){Ht(`${C}.svg`,v,"image/svg+xml"),l(!1),r?.(k);return}if(k==="png"){let U=await vA(v);Ht(`${C}.png`,U,"image/png"),r?.(k),l(!1);return}}catch(I){a?.(I)}};return(0,y.useEffect)(()=>{let k=I=>{let x=I.composedPath();u.current&&!x.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),(0,T.jsxs)("div",{className:s("relative"),ref:u,children:[(0,T.jsx)("button",{"aria-label":E.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:h,onClick:()=>l(!o),title:E.downloadDiagram,type:"button",children:t??(0,T.jsx)(p.DownloadIcon,{"aria-hidden":"true",size:14})}),o?(0,T.jsxs)("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("svg"),title:E.downloadDiagramAsSvg,type:"button",children:E.mermaidFormatSvg}),(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("png"),title:E.downloadDiagramAsPng,type:"button",children:E.mermaidFormatPng}),(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("mmd"),title:E.downloadDiagramAsMmd,type:"button",children:E.mermaidFormatMmd})]}):null]})},wA=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:s,XIcon:o}=Ve(),l=ee(),[u,h]=(0,y.useState)(!1),{isAnimating:d,controls:p}=(0,y.useContext)(ke),f=et(),E=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.panZoom!==!1})(),C=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.download!==!1})(),w=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.copy!==!1})(),k=()=>{h(!u)};return(0,y.useEffect)(()=>{if(u){Vi();let I=x=>{x.key==="Escape"&&h(!1)};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I),Wi()}}},[u]),(0,y.useEffect)(()=>{u?n?.():r&&r()},[u,n,r]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:d,onClick:k,title:f.viewFullscreen,type:"button",...a,"aria-label":f.viewFullscreen,children:(0,T.jsx)(s,{"aria-hidden":"true",size:14})}),u?(0,Oi.createPortal)((0,T.jsxs)("div",{"aria-label":f.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:k,onKeyDown:I=>{I.key==="Escape"&&k()},role:"dialog",children:[(0,T.jsxs)("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:I=>I.stopPropagation(),onKeyDown:I=>I.stopPropagation(),role:"presentation",children:[C?(0,T.jsx)(oc,{chart:e,config:t}):null,w?(0,T.jsx)(ui,{code:e}):null,(0,T.jsx)("button",{"aria-label":f.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:f.exitFullscreen,type:"button",children:(0,T.jsx)(o,{"aria-hidden":"true",size:20})})]}),(0,T.jsx)("div",{className:l("flex size-full items-center justify-center p-4"),onClick:I=>I.stopPropagation(),onKeyDown:I=>I.stopPropagation(),role:"presentation",children:(0,T.jsx)(Dy,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:E})})]}),document.body):null]})};function di(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
113
+ `:Array.from(n.childNodes).map(di).join("")}var cc=e=>{let t=[],n=[],r=e.querySelectorAll("thead th");for(let a of r)t.push(di(a).trim());let i=e.querySelectorAll("tbody tr");for(let a of i){let s=[],o=a.querySelectorAll("td");for(let l of o)s.push(di(l).trim());n.push(s)}return{headers:t,rows:n}},uc=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},hc=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:r,rows:i}=e,a=u=>{let h=!1;for(let d of u)if(d===n||d==='"'||d===`
114
+ `||d==="\r"){h=!0;break}return h?`"${u.replace(/"/g,'""')}"`:u},s=r.length>0?i.length+1:i.length,o=new Array(s),l=0;r.length>0&&(o[l]=r.map(a).join(n),l+=1);for(let u of i)o[l]=u.map(a).join(n),l+=1;return o.join(`
115
+ `)},LA=e=>{let{headers:t,rows:n}=e,r=o=>{let l=!1;for(let h of o)if(h===" "||h===`
116
+ `||h==="\r"){l=!0;break}if(!l)return o;let u=[];for(let h of o)h===" "?u.push("\\t"):h===`
117
+ `?u.push("\\n"):h==="\r"?u.push("\\r"):u.push(h);return u.join("")},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(" "),s+=1);for(let o of n)a[s]=o.map(r).join(" "),s+=1;return a.join(`
118
+ `)},jr=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"||r===`
119
+ `){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):r===`
120
+ `?n.push("<br>"):n.push(r);return n.join("")},dc=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(o=>jr(o));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let o of n)if(o.length<t.length){let l=new Array(t.length);for(let u=0;u<t.length;u+=1)l[u]=u<o.length?jr(o[u]):"";r[i]=`| ${l.join(" | ")} |`,i+=1}else{let l=o.map(u=>jr(u));r[i]=`| ${l.join(" | ")} |`,i+=1}return r.join(`
121
+ `)},fc=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=ee(),[s,o]=(0,y.useState)(!1),[l,u]=(0,y.useState)(!1),h=(0,y.useRef)(null),d=(0,y.useRef)(0),{isAnimating:p,controls:f}=(0,y.useContext)(ke),E=et(),C=uc(f),w=async x=>{var D,B;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){r?.(new Error("Clipboard API not available"));return}try{let v=(B=h.current)==null?void 0:B.closest('[data-streamdown="table-wrapper"]'),U=v?.querySelector("table");if(!U){r?.(new Error("Table not found"));return}let $=cc(U),q="";x==="csv"?q=hc($,C):x==="tsv"?q=LA($):q=dc($);let S=new ClipboardItem({"text/plain":new Blob([q],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([S]),u(!0),o(!1),n?.(x),d.current=window.setTimeout(()=>u(!1),i)}catch(v){r?.(v)}};(0,y.useEffect)(()=>{let x=D=>{let B=D.composedPath();h.current&&!B.includes(h.current)&&o(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x),window.clearTimeout(d.current)}},[]);let k=Ve(),I=l?k.CheckIcon:k.CopyIcon;return(0,T.jsxs)("div",{className:a("relative"),ref:h,children:[(0,T.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>o(!s),title:E.copyTable,type:"button",children:e??(0,T.jsx)(I,{height:14,width:14})}),s?(0,T.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("md"),title:E.copyTableAsMarkdown,type:"button",children:E.tableFormatMarkdown}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("csv"),title:E.copyTableAsCsv,type:"button",children:E.tableFormatCsv}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("tsv"),title:E.copyTableAsTsv,type:"button",children:E.tableFormatTsv})]}):null]})},pc=({children:e,className:t,onDownload:n,onError:r})=>{let i=ee(),[a,s]=(0,y.useState)(!1),o=(0,y.useRef)(null),{isAnimating:l,controls:u}=(0,y.useContext)(ke),h=et(),d=Ve(),p=uc(u),f=E=>{var C;try{let w=(C=o.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),k=w?.querySelector("table");if(!k){r?.(new Error("Table not found"));return}let I=cc(k),x=E==="csv"?hc(I,p):dc(I),D=E==="csv"?"csv":"md";Ht(`${qi(u,"table","table")}.${D}`,x,E==="csv"?"text/csv":"text/markdown"),s(!1),n?.(E)}catch(w){r?.(w)}};return(0,y.useEffect)(()=>{let E=C=>{let w=C.composedPath();o.current&&!w.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[]),(0,T.jsxs)("div",{className:i("relative"),ref:o,children:[(0,T.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!a),title:h.downloadTable,type:"button",children:e??(0,T.jsx)(d.DownloadIcon,{size:14})}),a?(0,T.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:h.downloadTableAsCsv,type:"button",children:h.tableFormatCsv}),(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:h.downloadTableAsMarkdown,type:"button",children:h.tableFormatMarkdown})]}):null]})},RA=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=Ve(),s=ee(),[o,l]=(0,y.useState)(!1),{isAnimating:u}=(0,y.useContext)(ke),h=et(),d=()=>{l(!0)},p=()=>{l(!1)};return(0,y.useEffect)(()=>{if(o){Vi();let f=E=>{E.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Wi()}}},[o]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:d,title:h.viewFullscreen,type:"button",children:(0,T.jsx)(i,{size:14})}),o?(0,Oi.createPortal)((0,T.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:(0,T.jsxs)("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[(0,T.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?(0,T.jsx)(fc,{}):null,r?(0,T.jsx)(pc,{}):null,(0,T.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,T.jsx)(a,{size:20})})]}),(0,T.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,T.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},OA=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...o})=>{let l=ee(),{isAnimating:u}=(0,y.useContext)(ke),h=nc(n),d=rc(u,!!h,e),p=r&&i,f=r&&a,E=r&&s,C=p||f||E;return(0,T.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[C?(0,T.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[p?(0,T.jsx)(fc,{}):null,f?(0,T.jsx)(pc,{}):null,E?(0,T.jsx)(RA,{showCopy:p,showDownload:f,children:e}):null]}):null,(0,T.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:d,style:h?{maxHeight:h}:void 0,children:(0,T.jsx)("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},DA=/startLine=(\d+)/,PA=/\bnoLineNumbers\b/,MA=(0,y.lazy)(()=>Fs(()=>import("./mermaid-HWGCJPDP-GcLzqiVf.js").then(e=>({default:e.Mermaid})),[])),BA=/language-([^\s]+)/,FA="node";function de(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let a of n)if(a!==FA&&!Object.is(r[a],i[a]))return!1;return!0}function HA(e,t){var n,r;return((n=e?.properties)==null?void 0:n.metastring)===((r=t?.properties)==null?void 0:r.metastring)}var tr=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,zr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},_s=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Un=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},UA=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Ki=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>de(e,t));Ki.displayName="MarkdownOl";var mc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>de(e,t));mc.displayName="MarkdownLi";var gc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>de(e,t));gc.displayName="MarkdownUl";var Ec=(0,y.memo)(({className:e,node:t,...n})=>{let r=ee();return(0,T.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>de(e,t));Ec.displayName="MarkdownHr";var Tc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>de(e,t));Tc.displayName="MarkdownStrong";var jA=({children:e,className:t,href:n,node:r,...i})=>{let a=ee(),{linkSafety:s}=(0,y.useContext)(ke),[o,l]=(0,y.useState)(!1),u=n==="streamdown:incomplete-link",h=(0,y.useCallback)(async E=>{if(!(!(s!=null&&s.enabled&&n)||u)){if(E.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}l(!0)}},[s,n,u]),d=(0,y.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=(0,y.useCallback)(()=>{l(!1)},[]),f={url:n??"",isOpen:o,onClose:p,onConfirm:d};return s!=null&&s.enabled&&n?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),s.renderModal?s.renderModal(f):(0,T.jsx)(IA,{...f})]}):(0,T.jsx)("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},bc=(0,y.memo)(jA,(e,t)=>de(e,t));bc.displayName="MarkdownA";var kc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>de(e,t));kc.displayName="MarkdownH1";var _c=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>de(e,t));_c.displayName="MarkdownH2";var Ac=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>de(e,t));Ac.displayName="MarkdownH3";var yc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>de(e,t));yc.displayName="MarkdownH4";var Cc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>de(e,t));Cc.displayName="MarkdownH5";var xc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>de(e,t));xc.displayName="MarkdownH6";var Ic=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i,tableMaxHeight:a}=(0,y.useContext)(ke),s=tr(i,"table"),o=zr(i,"copy"),l=zr(i,"download"),u=zr(i,"fullscreen");return(0,T.jsx)(OA,{className:t,maxHeight:a,showControls:s,showCopy:o,showDownload:l,showFullscreen:u,...r,children:e})},(e,t)=>de(e,t));Ic.displayName="MarkdownTable";var Nc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>de(e,t));Nc.displayName="MarkdownThead";var Sc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>de(e,t));Sc.displayName="MarkdownTbody";var vc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>de(e,t));vc.displayName="MarkdownTr";var wc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>de(e,t));wc.displayName="MarkdownTh";var Lc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>de(e,t));Lc.displayName="MarkdownTd";var Rc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>de(e,t));Rc.displayName="MarkdownBlockquote";var Oc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>de(e,t));Oc.displayName="MarkdownSup";var Dc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>de(e,t));Dc.displayName="MarkdownSub";var Pc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,l;if(!(0,y.isValidElement)(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(h=!0);else if((0,y.isValidElement)(p))if(((o=p.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let E of f){if(typeof E=="string"&&E.trim()!==""){h=!0;break}if((0,y.isValidElement)(E)&&((l=E.props)==null?void 0:l["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!(0,y.isValidElement)(s))return s;if(s.type===Ki){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!i(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?(0,T.jsx)("section",{className:t,...r,children:a}):null}return(0,T.jsx)("section",{className:t,...r,children:e})},(e,t)=>de(e,t));Pc.displayName="MarkdownSection";var zA=({node:e,className:t,children:n,...r})=>{var i,a;let s=ee(),o=!("data-block"in r),{mermaid:l,controls:u,lineNumbers:h}=(0,y.useContext)(ke),d=Gi(),p=J_(),f=t?.match(BA),E=(i=f?.at(1))!=null?i:"",C=NA(E);if(o)return(0,T.jsx)("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let w=(a=e?.properties)==null?void 0:a.metastring,k=w?.match(DA),I=k?Number.parseInt(k[1],10):void 0,x=I!==void 0&&I>=1?I:void 0,D=!(w&&PA.test(w))&&h!==!1,B="";if((0,y.isValidElement)(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?B=n.props.children:typeof n=="string"&&(B=n),C){let j=C.component;return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsx)(j,{code:B,isIncomplete:p,language:E,meta:w})})}if(E==="mermaid"&&d){let j=tr(u,"mermaid"),z=Un(u,"download"),Q=Un(u,"copy"),ie=Un(u,"fullscreen"),G=Un(u,"panZoom"),Y=j&&(z||Q||ie);return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsxs)("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,T.jsx)("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:(0,T.jsx)("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),Y?(0,T.jsx)("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,T.jsxs)("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[z?(0,T.jsx)(oc,{chart:B,config:l?.config}):null,Q?(0,T.jsx)(ui,{code:B}):null,ie?(0,T.jsx)(wA,{chart:B,config:l?.config}):null]})}):null,(0,T.jsx)("div",{className:s("rounded-md border border-border bg-background"),children:(0,T.jsx)(MA,{chart:B,config:l?.config,showControls:G})})]})})}let v=tr(u,"code"),U=_s(u,"download"),$=_s(u,"copy"),{"data-block":q,...S}=r;return(0,T.jsx)(hA,{className:t,code:B,isIncomplete:p,language:E,lineNumbers:D,startLine:x,...S,children:v?(0,T.jsxs)(T.Fragment,{children:[U?(0,T.jsx)(yA,{code:B,language:E}):null,$?(0,T.jsx)(ui,{}):null]}):null})},Mc=(0,y.memo)(zA,(e,t)=>de(e,t)&&HA(e.node,t.node));Mc.displayName="MarkdownCode";var $A=({node:e,className:t,...n})=>{let{controls:r}=(0,y.useContext)(ke),i=tr(r,"image"),a=i&&UA(r,"download");return(0,T.jsx)(xA,{className:t,node:e,showControls:i,showDownloadControl:a,...n})},Bc=(0,y.memo)($A,(e,t)=>de(e,t));Bc.displayName="MarkdownImg";var Fc=(0,y.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&(0,y.isValidElement)(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return(0,T.jsx)(T.Fragment,{children:e});if(a==="code"&&"data-block"in r[0].props)return(0,T.jsx)(T.Fragment,{children:e})}return(0,T.jsx)("p",{...n,children:e})},(e,t)=>de(e,t));Fc.displayName="MarkdownParagraph";var YA={ol:Ki,li:mc,ul:gc,hr:Ec,strong:Tc,a:bc,h1:kc,h2:_c,h3:Ac,h4:yc,h5:Cc,h6:xc,table:Ic,thead:Nc,tbody:Sc,tr:vc,th:wc,td:Lc,blockquote:Rc,code:Mc,img:Bc,pre:({children:e})=>(0,y.isValidElement)(e)?(0,y.cloneElement)(e,{"data-block":"true"}):e,sup:Oc,sub:Dc,p:Fc,section:Pc},qA=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,VA=new RegExp("\\p{L}","u");function Hc(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,r=0,i=0;for(let a of t){if(qA.test(a)){n??="rtl",i+=1;continue}VA.test(a)&&(n??="ltr",r+=1)}return i>r?"rtl":r>i?"ltr":n??"ltr"}var WA=/^[ \t]{0,3}(`{3,}|~{3,})/,QA=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,As=e=>{let t=e.split(`
122
+ `),n=null,r=0;for(let i of t){let a=WA.exec(i);if(n===null){if(a){let s=a[1];n=s[0],r=s.length}}else if(a){let s=a[1],o=s[0],l=s.length;o===n&&l>=r&&(n=null,r=0)}}return n!==null},GA=e=>{let t=e.split(`
123
+ `);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&QA.test(r))return!0}return!1},KA=()=>e=>{Ye(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},ys=[],Cs={allowDangerousHtml:!0},jn=new WeakMap,XA=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let l="default";return this.keyCache.set(e,l),l}let a=l=>{if(!l||l.length===0)return"";let u="";for(let h=0;h<l.length;h+=1){let d=l[h];if(h>0&&(u+=","),Array.isArray(d)){let[p,f]=d;if(typeof p=="function"){let E=jn.get(p);E||(E=p.name,jn.set(p,E)),u+=E}else u+=String(p);u+=":",u+=JSON.stringify(f)}else if(typeof d=="function"){let p=jn.get(d);p||(p=d.name,jn.set(d,p)),u+=p}else u+=String(d)}return u},s=a(n),o=`${a(r)}::${s}::${i?JSON.stringify(i):""}`;return this.keyCache.set(e,o),o}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},xs=new XA,Uc=e=>{let t=ZA(e),n=e.children||"";return ay(t.runSync(t.parse(n),n),e)},ZA=e=>{let t=xs.get(e);if(t)return t;let n=ey(e);return xs.set(e,n),n},JA=e=>e.some(t=>Array.isArray(t)?t[0]===Kr:t===Kr),ey=e=>{let t=e.rehypePlugins||ys,n=e.remarkPlugins||ys,r=JA(t)?n:[...n,KA],i=e.remarkRehypeOptions?{...Cs,...e.remarkRehypeOptions}:Cs;return Vk().use(qb).use(r).use(Nk,i).use(t)},ty=e=>e,ny=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},ry=(e,t)=>{var n;for(let r in Or)if(Object.hasOwn(Or,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=Or[r];(a===null||a.includes(e.tagName))&&(e.properties[r]=(n=t(String(i||""),r,e))!=null?n:void 0)}},iy=(e,t,n,r,i,a)=>{let s=!1;return r?s=!r.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,n)),s},ay=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||i||a||o){let l=o||ty;Ye(e,(u,h,d)=>{if(u.type==="raw"&&d&&typeof h=="number")return ny(d,h,a,u.value),h;if(u.type==="element"&&(ry(u,l),iy(u,h,d,r,i,n)&&d&&typeof h=="number"))return s&&u.children?d.children.splice(h,1,...u.children):d.children.splice(h,1),h})}return JT(e,{Fragment:T.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0})},sy=/\[\^[\w-]{1,200}\](?!:)/,ly=/\[\^[\w-]{1,200}\]:/,oy=/<([A-Za-z][\w:-]*)[\s>/]/,cy=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Is=new Map,Ns=new Map,uy=e=>{let t=e.toLowerCase(),n=Is.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return Is.set(t,r),r},hy=e=>{let t=e.toLowerCase(),n=Ns.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return Ns.set(t,r),r},Ss=(e,t)=>{if(cy.has(t.toLowerCase()))return 0;let n=e.match(uy(t));if(!n)return 0;let r=0;for(let i of n)i.trimEnd().endsWith("/>")||(r+=1);return r},vs=(e,t)=>{let n=e.match(hy(t));return n?n.length:0},dy=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},fy=e=>{let t=sy.test(e),n=ly.test(e);if(t||n)return[e];let r=He.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let o of r){let l=o.raw,u=i.length;if(a.length>0){i[u-1]+=l;let h=a.at(-1),d=Ss(l,h),p=vs(l,h);for(let f=0;f<d;f+=1)a.push(h);for(let f=0;f<p;f+=1)a.length>0&&a.at(-1)===h&&a.pop();continue}if(o.type==="html"&&o.block){let h=l.match(oy);if(h){let d=h[1];Ss(l,d)>vs(l,d)&&a.push(d)}}if(u>0&&!s){let h=i[u-1];if(dy(h)%2===1){i[u-1]=h+l;continue}}i.push(l),o.type!=="space"&&(s=o.type==="code")}return i},py=/^\n*/,my=/\n*$/,fi=/\n\n/g,gy=(e,t,n)=>t.includes(`
124
+ `)?`${e}${t.replace(fi,`
125
+ <!---->
126
+ `).replace(py,`
127
+
128
+ `).replace(my,`
129
+
130
+ `)}${n}
131
+
132
+ `:e+t+n,Ey=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),r="",i=0,a=n.exec(e);for(;a;){let s=a[0],o=a[1],l=a.index+s.length,u=e.slice(l);if(new RegExp(`</${o}\\s*>`,"i").test(u)){a=n.exec(e);continue}if(r+=e.slice(i,a.index),u.length===0){r+=s,i=l,a=n.exec(e);continue}if(u.startsWith(`
133
+
134
+ `)){let p=u.slice(2).replace(fi,`
135
+ <!---->
136
+ `);r+=`${s}
137
+
138
+ ${p}`,i=e.length;break}if(!u.startsWith(`
139
+ `)){r+=s,i=l,a=n.exec(e);continue}let h=u.slice(1);if(h.trim().length===0){r+=s,i=l,a=n.exec(e);continue}let d=h.replace(fi,`
140
+ <!---->
141
+ `);r+=`${s}
142
+
143
+ ${d}`,i=e.length;break}return i===0?e:r+e.slice(i)},Ty=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>gy(s,o,l)),n=Ey(n,r)}return n},by=/([\\`*_~[\]|])/g,ky=e=>e.replace(by,"\\$1"),_y=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>s+ky(o).replace(/\n\n/g,"&#10;&#10;")+l)}return n},Ay=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),jc=new Set(["code","kbd","pre","samp","var"]);function zc(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!jc.has(t.tagName)?zc(t):"").join("")}function yy(){return e=>{Ye(e,"element",t=>{if(jc.has(t.tagName)){t.properties??={},t.properties.dir="ltr";return}Ay.has(t.tagName)&&(t.properties??={},typeof t.properties.dir!="string"&&(t.properties.dir=Hc(zc(t))))})}}var $c=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map($c).join(""):"",Cy=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(r=>r.toLowerCase()));Ye(t,"element",r=>{if(n.has(r.tagName.toLowerCase())){let i=$c(r);r.children=i?[{type:"text",value:i}]:[]}})},xy=()=>e=>{Ye(e,"code",t=>{var n,r;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(r=t.data.hProperties)!=null?r:{},metastring:t.meta})})},Iy=/^[ \t]*<[\w!/?-]/,Ny=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Sy=e=>typeof e!="string"||e.length===0||!Iy.test(e)?e:e.replace(Ny,"$1"),ws,Ls,Rs,Os,qn={...kt,clobberPrefix:"",protocols:{...kt.protocols,href:[...(Ls=(ws=kt.protocols)==null?void 0:ws.href)!=null?Ls:[],"tel","streamdown"]},attributes:{...kt.attributes,code:[...(Os=(Rs=kt.attributes)==null?void 0:Rs.code)!=null?Os:[],"metastring"]}},pi={raw:Kr,sanitize:[Bl,qn],harden:[nu,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},vy={gfm:[_E,{}],codeMeta:xy},Ds=Object.values(pi),wy=Object.values(vy),Ly={block:" ▋",circle:" ●"},Yc=["github-light","github-dark"],qc={enabled:!0},ke=(0,y.createContext)({codeBlockMaxHeight:400,shikiTheme:Yc,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:qc,tableMaxHeight:300}),Vc=(0,y.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{(0,y.useLayoutEffect)(()=>{s?.commit()});let l=typeof e=="string"&&n?Sy(e):e,u=(0,T.jsx)(Uc,{...o,children:l});return(0,T.jsx)(tc.Provider,{value:i,children:a?(0,T.jsx)("div",{dir:a,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});Vc.displayName="Block";var Ry=(0,y.memo)(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:s=Ds,remarkPlugins:o=wy,className:l,shikiTheme:u,mermaid:h,codeBlockMaxHeight:d=400,controls:p=!0,isAnimating:f=!1,tableMaxHeight:E=300,animated:C,BlockComponent:w=Vc,parseMarkdownIntoBlocksFn:k=fy,caret:I,plugins:x,remend:D,linkSafety:B=qc,lineNumbers:v=!0,allowedTags:U,literalTagContent:$,translations:q,icons:S,prefix:j,onAnimationStart:z,onAnimationEnd:Q,...ie})=>{let G=(0,y.useId)(),Y=(0,y.useMemo)(()=>tA(j),[j]),F=(0,y.useRef)(null),X=(0,y.useRef)(z),Te=(0,y.useRef)(Q);X.current=z,Te.current=Q,(0,y.useEffect)(()=>{var W,ae,Ce;if(t==="static")return;let je=F.current;if(F.current=f,je===null){f&&((W=X.current)==null||W.call(X));return}f&&!je?(ae=X.current)==null||ae.call(X):!f&&je&&((Ce=Te.current)==null||Ce.call(Te))},[f,t]);let _=(0,y.useMemo)(()=>U?Object.keys(U):[],[U]),Me=(0,y.useMemo)(()=>{if(typeof e!="string")return"";let W=t==="streaming"&&r?FT(e,D):e;return $&&$.length>0&&(W=_y(W,$)),_.length>0&&(W=Ty(W,_)),W},[e,t,r,D,_,$]),pe=(0,y.useMemo)(()=>k(Me),[Me,k]),A=(0,y.useMemo)(()=>n==="auto"?pe.map(Hc):void 0,[pe,n]),We=(0,y.useMemo)(()=>pe.map((W,ae)=>`${G}-${ae}`),[pe.length,G]),ve=(0,y.useMemo)(()=>C===!0?"true":C?JSON.stringify(C):"",[C]),se=(0,y.useRef)(null),Ue=(0,y.useRef)([]),be=(0,y.useRef)([]),tt=(0,y.useRef)(null),Qe=(0,y.useRef)("");ve?(Qe.current!==ve?(Qe.current=ve,se.current=gs({maxBacklogMs:ve!=="true"?C.maxBacklogMs:void 0}),Ue.current=[],be.current=[]):se.current||(se.current=gs()),f&&se.current&&se.current.beginPass(se.current.now())):(se.current=null,Ue.current=[],be.current=[],Qe.current=""),(0,y.useLayoutEffect)(()=>{var W;f&&((W=se.current)==null||W.commitPass())});let Gt=(0,y.useMemo)(()=>{var W,ae;return{codeBlockMaxHeight:d,shikiTheme:(ae=u??((W=x?.code)==null?void 0:W.getThemes()))!=null?ae:Yc,controls:p,isAnimating:f,lineNumbers:v,mode:t,mermaid:h,linkSafety:B,tableMaxHeight:E}},[d,u,p,f,v,t,h,B,x?.code,E]),Tr=(0,y.useMemo)(()=>q?JSON.stringify(q):"",[q]),Ln=(0,y.useMemo)(()=>({...lc,...q}),[Tr]),Rn=(0,y.useMemo)(()=>{let{inlineCode:W,...ae}=a??{},Ce={...YA,...ae};if(W){let je=Ce.code;Ce.code=nt=>"data-block"in nt?je?(0,y.createElement)(je,nt):null:(0,y.createElement)(W,nt)}return Ce},[a]),Kt=(0,y.useMemo)(()=>{let W=[];return x!=null&&x.cjk&&(W=[...W,...x.cjk.remarkPluginsBefore]),W=[...W,...o],x!=null&&x.cjk&&(W=[...W,...x.cjk.remarkPluginsAfter]),x!=null&&x.math&&(W=[...W,x.math.remarkPlugin]),W},[o,x?.math,x?.cjk]),ot=(0,y.useMemo)(()=>{var W;let ae=s;if(U&&Object.keys(U).length>0&&s===Ds){let Ce={...qn,tagNames:[...(W=qn.tagNames)!=null?W:[],...Object.keys(U)],attributes:{...qn.attributes,...U}};ae=[pi.raw,[Bl,Ce],pi.harden]}return $&&$.length>0&&(ae=[...ae,[Cy,$]]),x!=null&&x.math&&(ae=[...ae,x.math.rehypePlugin]),n==="auto"&&t==="static"&&(ae=[...ae,yy]),ae},[s,x?.math,U,$,n,t]),Lt=(0,y.useMemo)(()=>{if(!f||pe.length===0)return!1;let W=pe.at(-1);return As(W)||GA(W)},[f,pe]),br=(0,y.useMemo)(()=>I&&f&&!Lt?{"--streamdown-caret":`"${Ly[I]}"`}:void 0,[I,f,Lt]),On=W=>{let ae=null;if(se.current&&f){if(!Ue.current[W]){let{maxBacklogMs:je,...nt}=ve&&ve!=="true"?C:{};Ue.current[W]=ec({...nt,timeline:se.current})}ae=Ue.current[W]}tt.current!==ot&&(be.current=[],tt.current=ot),ae&&!be.current[W]&&(be.current[W]=[...ot,ae.rehypePlugin]);let Ce=ae&&be.current[W]?be.current[W]:ot;return{blockAnimatePlugin:ae,blockRehypePlugins:Ce}};return t==="static"?(0,T.jsx)(ci.Provider,{value:Ln,children:(0,T.jsx)(hi.Provider,{value:x??null,children:(0,T.jsx)(ke.Provider,{value:Gt,children:(0,T.jsx)(Ts,{icons:S,children:(0,T.jsx)(oi.Provider,{value:Y,children:(0,T.jsx)("div",{className:Y("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:n==="auto"?void 0:n,children:(0,T.jsx)(Uc,{components:Rn,rehypePlugins:ot,remarkPlugins:Kt,...ie,children:Me})})})})})})}):(0,T.jsx)(ci.Provider,{value:Ln,children:(0,T.jsx)(hi.Provider,{value:x??null,children:(0,T.jsx)(ke.Provider,{value:Gt,children:(0,T.jsx)(Ts,{icons:S,children:(0,T.jsx)(oi.Provider,{value:Y,children:(0,T.jsxs)("div",{className:Y("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",I&&!Lt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,l),style:br,children:[pe.length===0&&I&&f&&(0,T.jsx)("span",{}),pe.map((W,ae)=>{var Ce;let je=ae===pe.length-1,nt=f&&je&&As(W),{blockAnimatePlugin:kr,blockRehypePlugins:R}=On(ae);return(0,T.jsx)(w,{animatePlugin:kr,components:Rn,content:W,dir:(Ce=A?.[ae])!=null?Ce:n!=="auto"?n:void 0,index:ae,isIncomplete:nt,rehypePlugins:R,remarkPlugins:Kt,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...ie},We[ae])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Ry.displayName="Streamdown";var Oy=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:l,ZoomInIcon:u,ZoomOutIcon:h}=Ve(),d=ee(),p=et(),f=(0,y.useRef)(null),E=(0,y.useRef)(null),[C,w]=(0,y.useState)(s),[k,I]=(0,y.useState)({x:0,y:0}),[x,D]=(0,y.useState)(!1),[B,v]=(0,y.useState)({x:0,y:0}),[U,$]=(0,y.useState)({x:0,y:0}),q=(0,y.useCallback)(F=>{w(X=>Math.max(n,Math.min(r,X+F)))},[n,r]),S=(0,y.useCallback)(()=>{q(i)},[q,i]),j=(0,y.useCallback)(()=>{q(-i)},[q,i]),z=(0,y.useCallback)(()=>{w(s),I({x:0,y:0})},[s]),Q=(0,y.useCallback)(F=>{F.preventDefault();let X=F.deltaY>0?-i:i;q(X)},[q,i]),ie=(0,y.useCallback)(F=>{if(F.button!==0||F.isPrimary===!1)return;D(!0),v({x:F.clientX,y:F.clientY}),$(k);let X=F.currentTarget;X instanceof HTMLElement&&X.setPointerCapture(F.pointerId)},[k]),G=(0,y.useCallback)(F=>{if(!x)return;F.preventDefault();let X=F.clientX-B.x,Te=F.clientY-B.y;I({x:U.x+X,y:U.y+Te})},[x,B,U]),Y=(0,y.useCallback)(F=>{D(!1);let X=F.currentTarget;X instanceof HTMLElement&&X.releasePointerCapture(F.pointerId)},[]);return(0,y.useEffect)(()=>{let F=f.current;if(F)return F.addEventListener("wheel",Q,{passive:!1}),()=>{F.removeEventListener("wheel",Q)}},[Q]),(0,y.useEffect)(()=>{let F=E.current;if(F&&x)return document.body.style.userSelect="none",F.addEventListener("pointermove",G,{passive:!1}),F.addEventListener("pointerup",Y),F.addEventListener("pointercancel",Y),()=>{document.body.style.userSelect="",F.removeEventListener("pointermove",G),F.removeEventListener("pointerup",Y),F.removeEventListener("pointercancel",Y)}},[x,G,Y]),(0,T.jsxs)("div",{className:d("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:x?"grabbing":"grab"},children:[a?(0,T.jsxs)("div",{className:d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,T.jsx)("button",{"aria-label":p.zoomIn,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:C>=r,onClick:S,title:p.zoomIn,type:"button",children:(0,T.jsx)(u,{"aria-hidden":"true",size:16})}),(0,T.jsx)("button",{"aria-label":p.zoomOut,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:C<=n,onClick:j,title:p.zoomOut,type:"button",children:(0,T.jsx)(h,{"aria-hidden":"true",size:16})}),(0,T.jsx)("button",{"aria-label":p.resetView,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:z,title:p.resetView,type:"button",children:(0,T.jsx)(l,{"aria-hidden":"true",size:16})})]}):null,(0,T.jsx)("div",{className:d("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:ie,ref:E,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${C})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Dy=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=ee(),[s,o]=(0,y.useState)(null),[l,u]=(0,y.useState)(!1),[h,d]=(0,y.useState)(""),[p,f]=(0,y.useState)(""),[E,C]=(0,y.useState)(0),{mermaid:w}=(0,y.useContext)(ke),k=Gi(),I=w?.errorComponent,{shouldRender:x,containerRef:D}=F_({immediate:r});if((0,y.useEffect)(()=>{if(x){if(!k){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),u(!0);let v=k.getMermaid(n),U=e.split("").reduce((S,j)=>(S<<5)-S+j.charCodeAt(0)|0,0),$=`mermaid-${Math.abs(U)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:q}=await v.render($,e);d(q),f(q)}catch(v){if(!(p||h)){let U=v instanceof Error?v.message:"Failed to render Mermaid chart";o(U)}}finally{u(!1)}})()}},[e,n,E,x,k]),!(x||h||p))return(0,T.jsx)("div",{className:a("my-4 min-h-[200px]",t),ref:D});if(l&&!h&&!p)return(0,T.jsx)("div",{className:a("my-4 flex justify-center p-4",t),ref:D,children:(0,T.jsxs)("div",{className:a("flex items-center space-x-2 text-muted-foreground"),children:[(0,T.jsx)("div",{className:a("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,T.jsx)("span",{className:a("text-sm"),children:"Loading diagram..."})]})});if(s&&!h&&!p){let v=()=>C(U=>U+1);return I?(0,T.jsx)("div",{ref:D,children:(0,T.jsx)(I,{chart:e,error:s,retry:v})}):(0,T.jsxs)("div",{className:a("rounded-md bg-red-50 p-4",t),ref:D,children:[(0,T.jsxs)("p",{className:a("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),(0,T.jsxs)("details",{className:a("mt-2"),children:[(0,T.jsx)("summary",{className:a("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,T.jsx)("pre",{className:a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let B=h||p;return(0,T.jsx)("div",{className:a("size-full",t),"data-streamdown":"mermaid",ref:D,children:(0,T.jsx)(Oy,{className:a(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,T.jsx)("div",{"aria-label":"Mermaid chart",className:a("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:B},role:"img"})})})};export{Ry as a,Dy as i,ty as n,sA as o,ke as r,Wy as t};
144
+
145
+ //# sourceMappingURL=chunk-YOKDWASO-BBgLTb-C.js.map