@linkshell/gateway 0.6.39 → 0.6.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/acp.d.ts +68 -430
- package/dist/wire/src/acp.js +5 -5
- package/dist/wire/src/acp.js.map +1 -1
- package/dist/wire/src/async-questions.d.ts +2 -10
- package/dist/wire/src/computer-preview.d.ts +1 -15
- package/dist/wire/src/computer-preview.js +1 -1
- package/dist/wire/src/computer-preview.js.map +1 -1
- package/dist/wire/src/content.d.ts +207 -372
- package/dist/wire/src/content.js +4 -4
- package/dist/wire/src/content.js.map +1 -1
- package/dist/wire/src/editor.d.ts +48 -592
- package/dist/wire/src/envelopes.d.ts +53 -0
- package/dist/wire/src/envelopes.js +263 -0
- package/dist/wire/src/envelopes.js.map +1 -0
- package/dist/wire/src/goal.d.ts +15 -48
- package/dist/wire/src/index.d.ts +2 -0
- package/dist/wire/src/index.js +2 -0
- package/dist/wire/src/index.js.map +1 -1
- package/dist/wire/src/live-activity.d.ts +83 -212
- package/dist/wire/src/live-activity.js +1 -1
- package/dist/wire/src/live-activity.js.map +1 -1
- package/dist/wire/src/model.d.ts +458 -2281
- package/dist/wire/src/model.js +24 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/relay.d.ts +41 -267
- package/dist/wire/src/relay.js +1 -1
- package/dist/wire/src/relay.js.map +1 -1
- package/dist/wire/src/rpc-mcp.d.ts +84 -0
- package/dist/wire/src/rpc-mcp.js +78 -0
- package/dist/wire/src/rpc-mcp.js.map +1 -0
- package/dist/wire/src/rpc.d.ts +6891 -31073
- package/dist/wire/src/rpc.js +35 -7
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/side.d.ts +13 -61
- package/dist/wire/src/updates.d.ts +1771 -6680
- package/dist/wire/src/updates.js +14 -1
- package/dist/wire/src/updates.js.map +1 -1
- package/dist/wire/src/usage.d.ts +17 -195
- package/dist/wire/src/watch.d.ts +223 -1141
- package/dist/wire/src/workflow.d.ts +46 -139
- package/package.json +2 -2
- package/web-client/assets/astro-DOly5024.js +1 -0
- package/web-client/assets/bash-Yzrsuije.js +1 -0
- package/web-client/assets/bat-CickPsom.js +1 -0
- package/web-client/assets/c-BIGW1oBm.js +1 -0
- package/web-client/assets/clojure-P80f7IUj.js +1 -0
- package/web-client/assets/cpp-DddhVWhK.js +1 -0
- package/web-client/assets/csharp-B_TYUkTI.js +1 -0
- package/web-client/assets/css-Z72CF80r.js +1 -0
- package/web-client/assets/dart-CtKP3W-j.js +1 -0
- package/web-client/assets/diff-D97Zzqfu.js +1 -0
- package/web-client/assets/dockerfile-BcOcwvcX.js +1 -0
- package/web-client/assets/elixir-DkJLSxtU.js +1 -0
- package/web-client/assets/go-C27-OAKa.js +1 -0
- package/web-client/assets/graphql-ChdNCCLP.js +1 -0
- package/web-client/assets/haskell-Df6bDoY_.js +1 -0
- package/web-client/assets/hcl-BWvSN4gD.js +1 -0
- package/web-client/assets/highlight-engine-a2jyXPSH.js +145 -0
- package/web-client/assets/html-BlS82ilI.js +1 -0
- package/web-client/assets/index-D_DkC1qC.css +1 -0
- package/web-client/assets/index-DaEDsnjB.js +2 -0
- package/web-client/assets/ini-BEwlwnbL.js +1 -0
- package/web-client/assets/java-CylS5w8V.js +1 -0
- package/web-client/assets/javascript-wDzz0qaB.js +1 -0
- package/web-client/assets/json-Cp-IABpG.js +1 -0
- package/web-client/assets/jsonc-Des-eS-w.js +1 -0
- package/web-client/assets/jsx-g9-lgVsj.js +1 -0
- package/web-client/assets/kotlin-BdnUsdx6.js +1 -0
- package/web-client/assets/latex-BK3a6r9z.js +1 -0
- package/web-client/assets/less-B1dDrJ26.js +1 -0
- package/web-client/assets/lua-BaeVxFsk.js +1 -0
- package/web-client/assets/makefile-CHLpvVh8.js +1 -0
- package/web-client/assets/mark-glyph-D_OhbJdd.png +0 -0
- package/web-client/assets/markdown-Cvjx9yec.js +1 -0
- package/web-client/assets/markdown-gsWh3zpl.js +53 -0
- package/web-client/assets/nginx-BpAMiNFr.js +1 -0
- package/web-client/assets/nix-CwoSXNpI.js +1 -0
- package/web-client/assets/objective-c-DXmwc3jG.js +1 -0
- package/web-client/assets/perl-5klg-GXX.js +1 -0
- package/web-client/assets/php-DoruYMF0.js +1 -0
- package/web-client/assets/postcss-DnzrXTVv.js +1 -0
- package/web-client/assets/powershell-Dd0kTxKP.js +1 -0
- package/web-client/assets/prisma-Vru482bI.js +1 -0
- package/web-client/assets/proto-C7zT0LnQ.js +1 -0
- package/web-client/assets/python-B6aJPvgy.js +1 -0
- package/web-client/assets/{qr-scanner.min-D2ZjgKDR.js → qr-scanner.min-D7SO3BNy.js} +1 -1
- package/web-client/assets/r-Cf5RLm7j.js +1 -0
- package/web-client/assets/render-CugEn_RJ.css +1 -0
- package/web-client/assets/render-Dl8hAfxA.js +813 -0
- package/web-client/assets/ruby-KQScI-mG.js +1 -0
- package/web-client/assets/rust-DPvrY3IQ.js +1 -0
- package/web-client/assets/sass-Cj5Yp3dK.js +1 -0
- package/web-client/assets/scala-CqE71os6.js +1 -0
- package/web-client/assets/scss-Cw6XMfVs.js +1 -0
- package/web-client/assets/sql-DkvoVjww.js +1 -0
- package/web-client/assets/svelte-DoIXUgJc.js +1 -0
- package/web-client/assets/swift-C2oV4EkX.js +1 -0
- package/web-client/assets/terraform-BETggiCN.js +1 -0
- package/web-client/assets/toml-vGWfd6FD.js +1 -0
- package/web-client/assets/tsx-COt5Ahok.js +1 -0
- package/web-client/assets/typescript-BPQ3VLAy.js +1 -0
- package/web-client/assets/vim-CJc9bBzg.js +1 -0
- package/web-client/assets/vue-CwSeJimo.js +1 -0
- package/web-client/assets/xml-sdJ4AIDG.js +1 -0
- package/web-client/assets/yaml-Buea-lGh.js +1 -0
- package/web-client/assets/zig-VOosw3JB.js +1 -0
- package/web-client/index.html +2 -2
- package/web-client/assets/index-BRQrM2fM.css +0 -1
- package/web-client/assets/index-Df5fih6w.js +0 -2
- package/web-client/assets/markdown-SZOrMO_3.js +0 -45
- package/web-client/assets/render-C5oxWJQR.js +0 -647
- package/web-client/assets/render-thZKmerw.css +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
function Gi(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},qe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Dn;function Qi(){if(Dn)return qe;Dn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return qe.Fragment=n,qe.jsx=t,qe.jsxs=t,qe}var zn;function Ji(){return zn||(zn=1,wt.exports=Qi()),wt.exports}var St=Ji(),Ct={exports:{}},q={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ln;function Ki(){if(Ln)return q;Ln=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function p(d){return d===null||typeof d!="object"?null:(d=h&&d[h]||d["@@iterator"],typeof d=="function"?d:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function x(d,E,m){this.props=d,this.context=E,this.refs=C,this.updater=m||y}x.prototype.isReactComponent={},x.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,E,"setState")},x.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function v(){}v.prototype=x.prototype;function A(d,E,m){this.props=d,this.context=E,this.refs=C,this.updater=m||y}var F=A.prototype=new v;F.constructor=A,S(F,x.prototype),F.isPureReactComponent=!0;var O=Array.isArray;function w(){}var R={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Q(d,E,m){var z=m.ref;return{$$typeof:e,type:d,key:E,ref:z!==void 0?z:null,props:m}}function k(d,E){return Q(d.type,E,d.props)}function _(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function L(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(m){return E[m]})}var W=/\/+/g;function D(d,E){return typeof d=="object"&&d!==null&&d.key!=null?L(""+d.key):E.toString(36)}function P(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(w,w):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Y(d,E,m,z,V){var M=typeof d;(M==="undefined"||M==="boolean")&&(d=null);var G=!1;if(d===null)G=!0;else switch(M){case"bigint":case"string":case"number":G=!0;break;case"object":switch(d.$$typeof){case e:case n:G=!0;break;case c:return G=d._init,Y(G(d._payload),E,m,z,V)}}if(G)return V=V(d),G=z===""?"."+D(d,0):z,O(V)?(m="",G!=null&&(m=G.replace(W,"$&/")+"/"),Y(V,E,m,"",function(Ee){return Ee})):V!=null&&(_(V)&&(V=k(V,m+(V.key==null||d&&d.key===V.key?"":(""+V.key).replace(W,"$&/")+"/")+G)),E.push(V)),1;G=0;var re=z===""?".":z+":";if(O(d))for(var te=0;te<d.length;te++)z=d[te],M=re+D(z,te),G+=Y(z,E,m,M,V);else if(te=p(d),typeof te=="function")for(d=te.call(d),te=0;!(z=d.next()).done;)z=z.value,M=re+D(z,te++),G+=Y(z,E,m,M,V);else if(M==="object"){if(typeof d.then=="function")return Y(P(d),E,m,z,V);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return G}function ee(d,E,m){if(d==null)return d;var z=[],V=0;return Y(d,z,"","",function(M){return E.call(m,M,V++)}),z}function pe(d){if(d._status===-1){var E=d._result;E=E(),E.then(function(m){(d._status===0||d._status===-1)&&(d._status=1,d._result=m)},function(m){(d._status===0||d._status===-1)&&(d._status=2,d._result=m)}),d._status===-1&&(d._status=0,d._result=E)}if(d._status===1)return d._result.default;throw d._result}var ge=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},g={map:ee,forEach:function(d,E,m){ee(d,function(){E.apply(this,arguments)},m)},count:function(d){var E=0;return ee(d,function(){E++}),E},toArray:function(d){return ee(d,function(E){return E})||[]},only:function(d){if(!_(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return q.Activity=f,q.Children=g,q.Component=x,q.Fragment=t,q.Profiler=i,q.PureComponent=A,q.StrictMode=r,q.Suspense=a,q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,q.__COMPILER_RUNTIME={__proto__:null,c:function(d){return R.H.useMemoCache(d)}},q.cache=function(d){return function(){return d.apply(null,arguments)}},q.cacheSignal=function(){return null},q.cloneElement=function(d,E,m){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var z=S({},d.props),V=d.key;if(E!=null)for(M in E.key!==void 0&&(V=""+E.key),E)!H.call(E,M)||M==="key"||M==="__self"||M==="__source"||M==="ref"&&E.ref===void 0||(z[M]=E[M]);var M=arguments.length-2;if(M===1)z.children=m;else if(1<M){for(var G=Array(M),re=0;re<M;re++)G[re]=arguments[re+2];z.children=G}return Q(d.type,V,z)},q.createContext=function(d){return d={$$typeof:l,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:o,_context:d},d},q.createElement=function(d,E,m){var z,V={},M=null;if(E!=null)for(z in E.key!==void 0&&(M=""+E.key),E)H.call(E,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(V[z]=E[z]);var G=arguments.length-2;if(G===1)V.children=m;else if(1<G){for(var re=Array(G),te=0;te<G;te++)re[te]=arguments[te+2];V.children=re}if(d&&d.defaultProps)for(z in G=d.defaultProps,G)V[z]===void 0&&(V[z]=G[z]);return Q(d,M,V)},q.createRef=function(){return{current:null}},q.forwardRef=function(d){return{$$typeof:u,render:d}},q.isValidElement=_,q.lazy=function(d){return{$$typeof:c,_payload:{_status:-1,_result:d},_init:pe}},q.memo=function(d,E){return{$$typeof:s,type:d,compare:E===void 0?null:E}},q.startTransition=function(d){var E=R.T,m={};R.T=m;try{var z=d(),V=R.S;V!==null&&V(m,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(w,ge)}catch(M){ge(M)}finally{E!==null&&m.types!==null&&(E.types=m.types),R.T=E}},q.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},q.use=function(d){return R.H.use(d)},q.useActionState=function(d,E,m){return R.H.useActionState(d,E,m)},q.useCallback=function(d,E){return R.H.useCallback(d,E)},q.useContext=function(d){return R.H.useContext(d)},q.useDebugValue=function(){},q.useDeferredValue=function(d,E){return R.H.useDeferredValue(d,E)},q.useEffect=function(d,E){return R.H.useEffect(d,E)},q.useEffectEvent=function(d){return R.H.useEffectEvent(d)},q.useId=function(){return R.H.useId()},q.useImperativeHandle=function(d,E,m){return R.H.useImperativeHandle(d,E,m)},q.useInsertionEffect=function(d,E){return R.H.useInsertionEffect(d,E)},q.useLayoutEffect=function(d,E){return R.H.useLayoutEffect(d,E)},q.useMemo=function(d,E){return R.H.useMemo(d,E)},q.useOptimistic=function(d,E){return R.H.useOptimistic(d,E)},q.useReducer=function(d,E,m){return R.H.useReducer(d,E,m)},q.useRef=function(d){return R.H.useRef(d)},q.useState=function(d){return R.H.useState(d)},q.useSyncExternalStore=function(d,E,m){return R.H.useSyncExternalStore(d,E,m)},q.useTransition=function(){return R.H.useTransition()},q.version="19.2.3",q}var On;function Zi(){return On||(On=1,Ct.exports=Ki()),Ct.exports}var vr=Zi();const el=nn(vr),Ap=Gi({__proto__:null,default:el},[vr]);function _r(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const tl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rl={};function Nn(e,n){return(rl.jsx?nl:tl).test(e)}const il=/[ \t\n\f\r]/g;function ht(e){return typeof e=="object"?e.type==="text"?Fn(e.value):!1:Fn(e)}function Fn(e){return e.replace(il,"")===""}class Qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function Rr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Qe(t,r,n)}function $t(e){return e.toLowerCase()}class fe{constructor(n,t){this.attribute=t,this.property=n}}fe.prototype.attribute="";fe.prototype.booleanish=!1;fe.prototype.boolean=!1;fe.prototype.commaOrSpaceSeparated=!1;fe.prototype.commaSeparated=!1;fe.prototype.defined=!1;fe.prototype.mustUseProperty=!1;fe.prototype.number=!1;fe.prototype.overloadedBoolean=!1;fe.prototype.property="";fe.prototype.spaceSeparated=!1;fe.prototype.space=void 0;let ll=0;const B=Re(),ne=Re(),Ut=Re(),T=Re(),J=Re(),ve=Re(),me=Re();function Re(){return 2**++ll}const Vt=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:ne,commaOrSpaceSeparated:me,commaSeparated:ve,number:T,overloadedBoolean:Ut,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),Et=Object.keys(Vt);class rn extends fe{constructor(n,t,r,i){let o=-1;if(super(n,t),Mn(this,"space",i),typeof r=="number")for(;++o<Et.length;){const l=Et[o];Mn(this,Et[o],(r&Vt[l])===Vt[l])}}}rn.prototype.defined=!0;function Mn(e,n,t){t&&(e[n]=t)}function Ne(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[$t(r)]=r,t[$t(o.attribute)]=r}return new Qe(n,t,e.space)}const Pr=Ne({properties:{ariaActiveDescendant:null,ariaAtomic:ne,ariaAutoComplete:null,ariaBusy:ne,ariaChecked:ne,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ne,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ne,ariaFlowTo:J,ariaGrabbed:ne,ariaHasPopup:null,ariaHidden:ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:T,ariaLive:null,ariaModal:ne,ariaMultiLine:ne,ariaMultiSelectable:ne,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:ne,ariaReadOnly:ne,ariaRelevant:null,ariaRequired:ne,ariaRoleDescription:J,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:ne,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Dr(e,n){return n in e?e[n]:n}function zr(e,n){return Dr(e,n.toLowerCase())}const ol=Ne({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alpha:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:J,autoFocus:B,autoPlay:B,blocking:J,capture:null,charSet:null,checked:B,cite:null,className:J,closedBy:null,colorSpace:null,cols:T,colSpan:T,command:null,commandFor:null,content:null,contentEditable:ne,controls:B,controlsList:J,coords:T|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:Ut,draggable:ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:J,height:T,hidden:Ut,high:T,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:J,itemRef:J,itemScope:B,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:T,pattern:null,ping:J,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:J,required:B,reversed:B,rows:T,rowSpan:T,sandbox:J,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootCustomElementRegistry:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shadowRootSerializable:B,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:ne,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:ne,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:B,disablePictureInPicture:B,disableRemotePlayback:B,exportParts:ve,part:J,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:zr}),ul=Ne({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:me,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dr}),Lr=Ne({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Or=Ne({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zr}),Nr=Ne({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),al={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"},sl=/[A-Z]/g,Bn=/-[a-z]/g,cl=/^data[-\w.:]+$/i;function Fr(e,n){const t=$t(n);let r=n,i=fe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&cl.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Bn,pl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Bn.test(o)){let l=o.replace(sl,fl);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=rn}return new i(r,n)}function fl(e){return"-"+e.toLowerCase()}function pl(e){return e.charAt(1).toUpperCase()}const Mr=Rr([Pr,ol,Lr,Or,Nr],"html"),Je=Rr([Pr,ul,Lr,Or,Nr],"svg");function Br(e){return e.join(" ").trim()}var De={},At,jn;function hl(){if(jn)return At;jn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
|
|
18
|
+
`,s="/",c="*",f="",h="comment",p="declaration";function y(C,x){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];x=x||{};var v=1,A=1;function F(D){var P=D.match(n);P&&(v+=P.length);var Y=D.lastIndexOf(a);A=~Y?D.length-Y:A+D.length}function O(){var D={line:v,column:A};return function(P){return P.position=new w(D),Q(),P}}function w(D){this.start=D,this.end={line:v,column:A},this.source=x.source}w.prototype.content=C;function R(D){var P=new Error(x.source+":"+v+":"+A+": "+D);if(P.reason=D,P.filename=x.source,P.line=v,P.column=A,P.source=C,!x.silent)throw P}function H(D){var P=D.exec(C);if(P){var Y=P[0];return F(Y),C=C.slice(Y.length),P}}function Q(){H(t)}function k(D){var P;for(D=D||[];P=_();)P!==!1&&D.push(P);return D}function _(){var D=O();if(!(s!=C.charAt(0)||c!=C.charAt(1))){for(var P=2;f!=C.charAt(P)&&(c!=C.charAt(P)||s!=C.charAt(P+1));)++P;if(P+=2,f===C.charAt(P-1))return R("End of comment missing");var Y=C.slice(2,P-2);return A+=2,F(Y),C=C.slice(P),A+=2,D({type:h,comment:Y})}}function L(){var D=O(),P=H(r);if(P){if(_(),!H(i))return R("property missing ':'");var Y=H(o),ee=D({type:p,property:S(P[0].replace(e,f)),value:Y?S(Y[0].replace(e,f)):f});return H(l),ee}}function W(){var D=[];k(D);for(var P;P=L();)P!==!1&&(D.push(P),k(D));return D}return Q(),W()}function S(C){return C?C.replace(u,f):f}return At=y,At}var qn;function ml(){if(qn)return De;qn=1;var e=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0}),De.default=t;const n=e(hl());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),u=typeof i=="function";return l.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:c}=a;u?i(s,c,a):c&&(o=o||{},o[s]=c)}),o}return De}var He={},Hn;function gl(){if(Hn)return He;Hn=1,Object.defineProperty(He,"__esModule",{value:!0}),He.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,c){return c.toUpperCase()},u=function(s,c){return"".concat(c,"-")},a=function(s,c){return c===void 0&&(c={}),o(s)?s:(s=s.toLowerCase(),c.reactCompat?s=s.replace(i,u):s=s.replace(r,u),s.replace(n,l))};return He.camelCase=a,He}var $e,$n;function dl(){if($n)return $e;$n=1;var e=$e&&$e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ml()),t=gl();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(u,a){u&&a&&(l[(0,t.camelCase)(u,o)]=a)}),l}return r.default=r,$e=r,$e}var yl=dl();const xl=nn(yl),jr=qr("end"),ln=qr("start");function qr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function kl(e){const n=ln(e),t=jr(e);if(n&&t)return{start:n,end:t}}function Ye(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Un(e.position):"start"in e||"end"in e?Un(e):"line"in e||"column"in e?Yt(e):""}function Yt(e){return Vn(e&&e.line)+":"+Vn(e&&e.column)}function Un(e){return Yt(e&&e.start)+"-"+Yt(e&&e.end)}function Vn(e){return e&&typeof e=="number"?e:1}class oe extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Ye(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}oe.prototype.file="";oe.prototype.name="";oe.prototype.reason="";oe.prototype.message="";oe.prototype.stack="";oe.prototype.column=void 0;oe.prototype.line=void 0;oe.prototype.ancestors=void 0;oe.prototype.cause=void 0;oe.prototype.fatal=void 0;oe.prototype.place=void 0;oe.prototype.ruleId=void 0;oe.prototype.source=void 0;const on={}.hasOwnProperty,bl=new Map,wl=/[A-Z]/g,Sl=new Set(["table","tbody","thead","tfoot","tr"]),Cl=new Set(["td","th"]),Hr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function El(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Dl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Pl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Je:Mr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=$r(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function $r(e,n,t){if(n.type==="element")return Al(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Tl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return vl(e,n,t);if(n.type==="mdxjsEsm")return Il(e,n);if(n.type==="root")return _l(e,n,t);if(n.type==="text")return Rl(e,n)}function Al(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const o=Vr(e,n.tagName,!1),l=zl(e,n);let u=an(e,n);return Sl.has(n.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!ht(a):!0})),Ur(e,l,o,n),un(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Tl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ge(e,n.position)}function Il(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ge(e,n.position)}function vl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Vr(e,n.name,!0),l=Ll(e,n),u=an(e,n);return Ur(e,l,o,n),un(l,u),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function _l(e,n,t){const r={};return un(r,an(e,n)),e.create(n,e.Fragment,r,t)}function Rl(e,n){return n.value}function Ur(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function un(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Pl(e,n,t){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?t:n;return u?s(o,l,u):s(o,l)}}function Dl(e,n){return t;function t(r,i,o,l){const u=Array.isArray(o.children),a=ln(r);return n(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function zl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&on.call(n.properties,i)){const o=Ol(e,i,n.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&Cl.has(n.tagName)?r=u:t[l]=u}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ll(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else Ge(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Ge(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function an(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:bl;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=$r(e,o,l);u!==void 0&&t.push(u)}return t}function Ol(e,n,t){const r=Fr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?_r(t):Br(t)),r.property==="style"){let i=typeof t=="object"?t:Nl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Fl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?al[r.property]||r.property:r.attribute,t]}}function Nl(e,n){try{return xl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new oe("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=Hr+"#cannot-parse-style-attribute",i}}function Vr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const u=Nn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=Nn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return on.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ge(e)}function Ge(e,n){const t=new oe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Hr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Fl(e){const n={};let t;for(t in e)on.call(e,t)&&(n[Ml(t)]=e[t]);return n}function Ml(e){let n=e.replace(wl,Bl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Bl(e){return"-"+e.toLowerCase()}const Tt={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"]},jl={};function sn(e,n){const t=jl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Yr(e,r,i)}function Yr(e,n,t){if(ql(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yn(e.children,n,t)}return Array.isArray(e)?Yn(e,n,t):""}function Yn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Yr(e[i],n,t);return r.join("")}function ql(e){return!!(e&&typeof e=="object")}const Wn=document.createElement("i");function cn(e){const n="&"+e+";";Wn.innerHTML=n;const t=Wn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ye(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function de(e,n){return e.length>0?(ye(e,e.length,0,n),e):n}const Xn={}.hasOwnProperty;function Wr(e){const n={};let t=-1;for(;++t<e.length;)Hl(n,e[t]);return n}function Hl(e,n){let t;for(t in n){const i=(Xn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Xn.call(i,l)||(i[l]=[]);const u=o[l];$l(i[l],Array.isArray(u)?u:u?[u]:[])}}}function $l(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ye(e,0,0,r)}function Xr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=Te(/[A-Za-z]/),le=Te(/[\dA-Za-z]/),Ul=Te(/[#-'*+\--9=?A-Z^-~]/);function ut(e){return e!==null&&(e<32||e===127)}const Wt=Te(/\d/),Vl=Te(/[\dA-Fa-f]/),Yl=Te(/[!-/:-@[-`{-~]/);function N(e){return e!==null&&e<-2}function K(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const mt=Te(/\p{P}|\p{S}/u),_e=Te(/\s/);function Te(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Fe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&le(e.charCodeAt(t+1))&&le(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(t+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function X(e,n,t,r){const i=r?r-1:1/0;let o=0;return l;function l(a){return U(a)?(e.enter(t),u(a)):n(a)}function u(a){return U(a)&&o++<i?(e.consume(a),u):(e.exit(t),n(a))}}function Gr(e,n,t,r,i,o){let l=0;return u;function u(c){return U(c)?(e.enter(r),a(c)):s(c)}function a(c){return U(c)&&l<o?(e.consume(c),l++,a):(e.exit(r),s(c))}function s(c){return l>=i?n(c):t(c)}}const Wl={tokenize:Xl};function Xl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),X(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return N(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}let at=class{constructor(){this.index=new Map,this.map=[]}add(n,t,r){Gn(this,n,t,r,!1)}addBefore(n,t,r){Gn(this,n,t,r,!0)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function Gn(e,n,t,r,i){if(t===0&&r.length===0)return;const o=e.index.get(n);if(o){o[1]+=t,i?(r.push(...o[2]),o[2]=r):o[2].push(...r);return}const l=[n,t,r];e.map.push(l),e.index.set(n,l)}const Gl={tokenize:Ql},Qn={tokenize:Jl};function Ql(e){const n=this,t=[];let r=0,i,o,l;return u;function u(A){if(r<t.length){const F=t[r];return n.containerState=F[1],e.attempt(F[0].continuation,a,s)(A)}return s(A)}function a(A){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&v();const F=n.events.length;let O=F,w;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){w=n.events[O][1].end;break}x(r);let R=F;for(;R<n.events.length;)n.events[R][1].end={...w},R++;const H=new at;return H.add(O+1,0,n.events.slice(F)),H.add(F,R-F,[]),H.consume(n.events),s(A)}return u(A)}function s(A){if(r===t.length){if(!i)return h(A);if(i.currentConstruct&&i.currentConstruct.concrete)return y(A);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Qn,c,f)(A)}function c(A){return i&&v(),x(r),h(A)}function f(A){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,y(A)}function h(A){return n.containerState={},e.attempt(Qn,p,y)(A)}function p(A){return r++,t.push([n.currentConstruct,n.containerState]),h(A)}function y(A){if(A===null){i&&v(),x(0),e.consume(A);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(A)}function S(A){if(A===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(A);return}return N(A)?(e.consume(A),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(A),S)}function C(A,F){const O=n.sliceStream(A);if(F&&O.push(null),A.previous=o,o&&(o.next=A),o=A,i.defineSkip(A.start),i.write(O),n.parser.lazy[A.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const R=n.events.length;let H=R,Q,k;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(Q){k=n.events[H][1].end;break}Q=!0}for(x(r),w=R;w<n.events.length;)n.events[w][1].end={...k},w++;const _=new at;_.add(H+1,0,n.events.slice(R)),_.add(R,w-R,[]),_.consume(n.events)}}function x(A){let F=t.length;for(;F-- >A;){const O=t[F];n.containerState=O[1],O[0].exit.call(n,e)}t.length=A}function v(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Jl(e,n,t){return X(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function st(e){if(e===null||K(e)||_e(e))return 1;if(mt(e))return 2}function gt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Xt={name:"attention",resolveAll:Kl,tokenize:Zl};function Kl(e,n){let t=-1,r;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){let i=t;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;const o=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1,l={...e[i][1].end},u={...e[t][1].start};Jn(l,-o),Jn(u,o);const a={type:o>1?"strongSequence":"emphasisSequence",start:l,end:{...e[i][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:u},c={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},f={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}};e[i][1].end={...a.start},e[t][1].start={...s.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=de(r,[["enter",e[i][1],n],["exit",e[i][1],n]])),r=de(r,[["enter",f,n],["enter",a,n],["exit",a,n],["enter",c,n]]),r=de(r,gt(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),r=de(r,[["exit",c,n],["enter",s,n],["exit",s,n],["exit",f,n]]);let h=0;e[t][1].end.offset-e[t][1].start.offset&&(h=2,r=de(r,[["enter",e[t][1],n],["exit",e[t][1],n]])),ye(e,i-1,t-i+3,r),t=i+r.length-h-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Zl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=st(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),c=st(a),f=!c||c===2&&i||t.includes(a)&&a!==42&&a!==95,h=!i||i===2&&c||t.includes(r)&&r!==42&&r!==95;return s._open=!!(o===42?f:f&&(i||!h)),s._close=!!(o===42?h:h&&(c||!f)),n(a)}}function Jn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const eo={name:"autolink",tokenize:to};function to(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ue(p)?(e.consume(p),l):p===64?t(p):s(p)}function l(p){return p===43||p===45||p===46||le(p)?(r=1,u(p)):s(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||le(p))&&r++<32?(e.consume(p),u):(r=0,s(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||ut(p)?t(p):(e.consume(p),a)}function s(p){return p===64?(e.consume(p),c):Ul(p)?(e.consume(p),s):t(p)}function c(p){return le(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||le(p))&&r++<63){const y=p===45?h:f;return e.consume(p),y}return t(p)}}const Ke={partial:!0,tokenize:no};function no(e,n,t){return r;function r(o){return U(o)?X(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||N(o)?n(o):t(o)}}const Qr={continuation:{tokenize:io},exit:lo,name:"blockQuote",tokenize:ro};function ro(e,n,t){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return U(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function io(e,n,t){const r=this;return i;function i(l){return U(l)?X(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Qr,n,t)(l)}}function lo(e){e.exit("blockQuote")}const Jr={name:"characterEscape",tokenize:oo};function oo(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Yl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Kr={name:"characterReference",tokenize:uo};function uo(e,n,t){const r=this;let i=0,o,l;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=le,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Vl,c):(e.enter("characterReferenceValue"),o=7,l=Wt,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return l===le&&!cn(r.sliceSerialize(h))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(f)&&i++<o?(e.consume(f),c):t(f)}}const Gt={partial:!0,tokenize:ao};function ao(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Kn={concrete:!0,name:"codeFenced",tokenize:so};function so(e,n,t){const r=this,i={partial:!0,tokenize:O};let o=0,l=0,u;return a;function a(w){return s(w)}function s(w){const R=r.events[r.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(l++,e.consume(w),c):l<3?t(w):(e.exit("codeFencedFenceSequence"),U(w)?X(e,f,"whitespace")(w):f(w))}function f(w){return w===null||N(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Gt,S,F)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||N(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,p,"whitespace")(w)):w===96&&w===u?t(w):(e.consume(w),h)}function p(w){return w===null||N(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||N(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===u?t(w):(e.consume(w),y)}function S(w){return e.attempt(i,F,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return o>0&&U(w)?X(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||N(w)?e.check(Gt,S,F)(w):(e.enter("codeFlowValue"),A(w))}function A(w){return w===null||N(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),A)}function F(w){return e.exit("codeFenced"),n(w)}function O(w,R,H){let Q=0;return k;function k(P){return w.enter("lineEnding"),w.consume(P),w.exit("lineEnding"),_}function _(P){return w.enter("codeFencedFence"),U(P)?X(w,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):L(P)}function L(P){return P===u?(w.enter("codeFencedFenceSequence"),W(P)):H(P)}function W(P){return P===u?(Q++,w.consume(P),W):Q>=l?(w.exit("codeFencedFenceSequence"),U(P)?X(w,D,"whitespace")(P):D(P)):H(P)}function D(P){return P===null||N(P)?(w.exit("codeFencedFence"),R(P)):H(P)}}}const It={name:"codeIndented",tokenize:fo},co={partial:!0,tokenize:po};function fo(e,n,t){return r;function r(u){return e.enter("codeIndented"),Gr(e,i,t,"linePrefix",4,4)(u)}function i(u){return u===null?l(u):N(u)?e.attempt(co,i,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||N(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),n(u)}}function po(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):N(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):Gr(e,n,o,"linePrefix",4,4)(l)}function o(l){return N(l)?i(l):t(l)}}const ho={name:"codeText",previous:go,resolve:mo,tokenize:yo};function mo(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function go(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yo(e,n,t){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):N(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||N(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),s)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(o.type="codeTextData",s(f))}}class xo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ue(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ue(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ue(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ue(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ue(this.left,t.reverse())}}}function Ue(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Zr(e){const n={};let t=-1,r,i,o,l,u,a,s;const c=new xo(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ko(c,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,t),u.unshift(r),c.splice(i,t-i+1,u))}}return ye(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function ko(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,a=[],s={};let c,f,h=-1,p=t,y=0,S=0;const C=[S];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(S=h+1,C.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),h=C.length;h--;){const x=u.slice(C[h],C[h+1]),v=o.pop();a.push([v,v+x.length-1]),e.splice(v,2,x)}for(a.reverse(),h=-1;++h<a.length;)s[y+a[h][0]]=y+a[h][1],y+=a[h][1]-a[h][0]-1;return s}const bo={resolve:So,tokenize:Co},wo={partial:!0,tokenize:Eo};function So(e){return Zr(e),e}function Co(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):N(u)?e.check(wo,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function l(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Eo(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),X(e,o,"linePrefix")}function o(l){if(l===null||N(l))return t(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ei(e,n,t,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),h):x===null||x===32||x===41||ut(x)?t(x):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),S(x))}function h(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(u),h(x)):x===null||x===60||N(x)?t(x):(e.consume(x),x===92?y:p)}function y(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function S(x){return!c&&(x===null||x===41||K(x))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(x)):c<s&&x===40?(e.consume(x),c++,S):x===41?(e.consume(x),c--,S):x===null||x===32||x===40||ut(x)?t(x):(e.consume(x),x===92?C:S)}function C(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function ti(e,n,t,r,i,o){const l=this;let u=0,a;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):N(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||N(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!U(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),u++,f):f(p)}}function ni(e,n,t,r,i,o){let l;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,a):t(h)}function a(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),s(h))}function s(h){return h===l?(e.exit(o),a(l)):h===null?t(h):N(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),X(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===l||h===null||N(h)?(e.exit("chunkString"),s(h)):(e.consume(h),h===92?f:c)}function f(h){return h===l||h===92?(e.consume(h),c):c(h)}}function We(e,n){let t;return r;function r(i){return N(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):U(i)?X(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ao={name:"definition",tokenize:Io},To={partial:!0,tokenize:vo};function Io(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return ti.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=xe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):t(p)}function a(p){return K(p)?We(e,s)(p):s(p)}function s(p){return ei(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(To,f,f)(p)}function f(p){return U(p)?X(e,h,"whitespace")(p):h(p)}function h(p){return p===null||N(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function vo(e,n,t){return r;function r(u){return K(u)?We(e,i)(u):t(u)}function i(u){return ni(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return U(u)?X(e,l,"whitespace")(u):l(u)}function l(u){return u===null||N(u)?n(u):t(u)}}const _o={name:"hardBreakEscape",tokenize:Ro};function Ro(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return N(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Po={name:"headingAtx",resolve:Do,tokenize:zo};function Do(e,n){let t=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"};ye(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])}return e}function zo(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||K(c)?(e.exit("atxHeadingSequence"),u(c)):t(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||N(c)?(e.exit("atxHeading"),n(c)):U(c)?X(e,u,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function s(c){return c===null||c===35||K(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),s)}}const Lo=["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"],Zn=["pre","script","style","textarea"],Oo={concrete:!0,name:"htmlFlow",resolveTo:Fo,tokenize:Mo},No={partial:!0,tokenize:Bo};function Fo(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Mo(e,n,t){const r=this;let i,o,l,u,a;return s;function s(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:g):ue(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,y):ue(m)?(e.consume(m),i=4,r.interrupt?n:g):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:g):t(m)}function y(m){const z="CDATA[";return m===z.charCodeAt(u++)?(e.consume(m),u===z.length?r.interrupt?n:L:y):t(m)}function S(m){return ue(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function C(m){if(m===null||m===47||m===62||K(m)){const z=m===47,V=l.toLowerCase();return!z&&!o&&Zn.includes(V)?(i=1,r.interrupt?n(m):L(m)):Lo.includes(l.toLowerCase())?(i=6,z?(e.consume(m),x):r.interrupt?n(m):L(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?v(m):A(m))}return m===45||le(m)?(e.consume(m),l+=String.fromCharCode(m),C):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:L):t(m)}function v(m){return U(m)?(e.consume(m),v):k(m)}function A(m){return m===47?(e.consume(m),k):m===58||m===95||ue(m)?(e.consume(m),F):U(m)?(e.consume(m),A):k(m)}function F(m){return m===45||m===46||m===58||m===95||le(m)?(e.consume(m),F):O(m)}function O(m){return m===61?(e.consume(m),w):U(m)?(e.consume(m),O):A(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),a=m,R):U(m)?(e.consume(m),w):H(m)}function R(m){return m===a?(e.consume(m),a=null,Q):m===null||N(m)?t(m):(e.consume(m),R)}function H(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||K(m)?O(m):(e.consume(m),H)}function Q(m){return m===47||m===62||U(m)?A(m):t(m)}function k(m){return m===62?(e.consume(m),_):t(m)}function _(m){return m===null||N(m)?L(m):U(m)?(e.consume(m),_):t(m)}function L(m){return m===45&&i===2?(e.consume(m),Y):m===60&&i===1?(e.consume(m),ee):m===62&&i===4?(e.consume(m),d):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),ge):N(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(No,E,W)(m)):m===null||N(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),L)}function W(m){return e.check(Gt,D,E)(m)}function D(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),P}function P(m){return m===null||N(m)?W(m):(e.enter("htmlFlowData"),L(m))}function Y(m){return m===45?(e.consume(m),g):L(m)}function ee(m){return m===47?(e.consume(m),l="",pe):L(m)}function pe(m){if(m===62){const z=l.toLowerCase();return Zn.includes(z)?(e.consume(m),d):L(m)}return ue(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),pe):L(m)}function ge(m){return m===93?(e.consume(m),g):L(m)}function g(m){return m===62?(e.consume(m),d):m===45&&i===2?(e.consume(m),g):L(m)}function d(m){return m===null||N(m)?(e.exit("htmlFlowData"),E(m)):(e.consume(m),d)}function E(m){return e.exit("htmlFlow"),n(m)}}function Bo(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,n,t)}}const jo={name:"htmlText",tokenize:qo};function qo(e,n,t){const r=this;let i,o,l;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),a}function a(g){return g===33?(e.consume(g),s):g===47?(e.consume(g),O):g===63?(e.consume(g),A):ue(g)?(e.consume(g),H):t(g)}function s(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,y):ue(g)?(e.consume(g),v):t(g)}function c(g){return g===45?(e.consume(g),p):t(g)}function f(g){return g===null?t(g):g===45?(e.consume(g),h):N(g)?(l=f,ee(g)):(e.consume(g),f)}function h(g){return g===45?(e.consume(g),p):f(g)}function p(g){return g===62?Y(g):g===45?h(g):f(g)}function y(g){const d="CDATA[";return g===d.charCodeAt(o++)?(e.consume(g),o===d.length?S:y):t(g)}function S(g){return g===null?t(g):g===93?(e.consume(g),C):N(g)?(l=S,ee(g)):(e.consume(g),S)}function C(g){return g===93?(e.consume(g),x):S(g)}function x(g){return g===62?Y(g):g===93?(e.consume(g),x):S(g)}function v(g){return g===null||g===62?Y(g):N(g)?(l=v,ee(g)):(e.consume(g),v)}function A(g){return g===null?t(g):g===63?(e.consume(g),F):N(g)?(l=A,ee(g)):(e.consume(g),A)}function F(g){return g===62?Y(g):A(g)}function O(g){return ue(g)?(e.consume(g),w):t(g)}function w(g){return g===45||le(g)?(e.consume(g),w):R(g)}function R(g){return N(g)?(l=R,ee(g)):U(g)?(e.consume(g),R):Y(g)}function H(g){return g===45||le(g)?(e.consume(g),H):g===47||g===62||K(g)?Q(g):t(g)}function Q(g){return g===47?(e.consume(g),Y):g===58||g===95||ue(g)?(e.consume(g),k):N(g)?(l=Q,ee(g)):U(g)?(e.consume(g),Q):Y(g)}function k(g){return g===45||g===46||g===58||g===95||le(g)?(e.consume(g),k):_(g)}function _(g){return g===61?(e.consume(g),L):N(g)?(l=_,ee(g)):U(g)?(e.consume(g),_):Q(g)}function L(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),i=g,W):N(g)?(l=L,ee(g)):U(g)?(e.consume(g),L):(e.consume(g),D)}function W(g){return g===i?(e.consume(g),i=void 0,P):g===null?t(g):N(g)?(l=W,ee(g)):(e.consume(g),W)}function D(g){return g===null||g===34||g===39||g===60||g===61||g===96?t(g):g===47||g===62||K(g)?Q(g):(e.consume(g),D)}function P(g){return g===47||g===62||K(g)?Q(g):t(g)}function Y(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),n):t(g)}function ee(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),pe}function pe(g){return U(g)?X(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):ge(g)}function ge(g){return e.enter("htmlTextData"),l(g)}}const fn={name:"labelEnd",resolveAll:Vo,resolveTo:Yo,tokenize:Wo},Ho={tokenize:Xo},$o={tokenize:Go},Uo={tokenize:Qo};function Vo(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ye(e,0,e.length,t),e}function Yo(e,n){let t=e.length,r=0,i,o,l;for(;t--;){const c=e[t][1];if(i){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;e[t][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(i=t,c.type!=="labelLink")){r=2;break}}else c.type==="labelEnd"&&(o=t)}const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,n],["enter",a,n]],l=de(l,e.slice(i+1,i+r+3)),l=de(l,[["enter",s,n]]),l=de(l,gt(n.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),n)),l=de(l,[["exit",s,n],e[o-2],e[o-1],["exit",a,n]]),l=de(l,e.slice(o+1)),l=de(l,[["exit",u,n]]),ye(e,i,e.length,l),e}function Wo(e,n,t){const r=this,i=r._labelStarts;let o,l;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();o=i[i.length-1]}return u;function u(h){return o?o._inactive?f(h):(l=r.parser.defined.includes(xe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):t(h)}function a(h){return h===40?e.attempt(Ho,c,l?c:f)(h):h===91?e.attempt($o,c,l?s:f)(h):l?c(h):f(h)}function s(h){return e.attempt(Uo,c,f)(h)}function c(h){return i.pop(),n(h)}function f(h){return o._balanced=!0,t(h)}}function Xo(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return K(f)?We(e,o)(f):o(f)}function o(f){return f===41?c(f):ei(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return K(f)?We(e,a)(f):c(f)}function u(f){return t(f)}function a(f){return f===34||f===39||f===40?ni(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return K(f)?We(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Go(e,n,t){const r=this;return i;function i(u){return ti.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(xe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function l(u){return t(u)}}function Qo(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Jo={name:"labelStartImage",resolveAll:fn.resolveAll,tokenize:Ko};function Ko(e,n,t){const r=this;let i;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),i=e.exit("labelImage"),u):t(a)}function u(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),n(a))}}const Zo={name:"labelStartLink",resolveAll:fn.resolveAll,tokenize:eu};function eu(e,n,t){const r=this;let i;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),i=e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),n(u))}}const vt={name:"lineEnding",tokenize:tu};function tu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,n,"linePrefix")}}const ot={name:"thematicBreak",tokenize:nu};function nu(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||N(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),U(s)?X(e,u,"whitespace")(s):u(s))}}const ce={continuation:{tokenize:ou},exit:au,name:"list",tokenize:lu},ru={partial:!0,tokenize:su},iu={partial:!0,tokenize:uu};function lu(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Wt(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ot,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return t(p)}function a(p){return Wt(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ke,r.interrupt?t:c,e.attempt(ru,h,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function f(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ou(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,n,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!U(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(iu,n,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(ce,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function uu(e,n,t){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function au(e){e.exit(this.containerState.type)}function su(e,n,t){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!U(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const er={name:"setextUnderline",resolveTo:cu,tokenize:fu};function cu(e,n){const t=new at;let r=e.length,i,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&t.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(t.add(o,0,[["enter",u,n]]),t.add(l+1,0,[["exit",e[i][1],n]]),e[i][1].end={...e[l][1].end}):e[i][1]=u,t.add(e.length,0,[["exit",u,n]]),t.consume(e),e}function fu(e,n,t){const r=this;let i;return o;function o(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),U(s)?X(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||N(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const pu={tokenize:hu};function hu(e){const n=this,t=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bo,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const mu={resolveAll:ii()},gu=ri("string"),du=ri("text");function ri(e){return{resolveAll:ii(e==="text"?yu:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,u);return l;function l(c){return s(c)?o(c):u(c)}function u(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),a}function a(c){return s(c)?(t.exit("data"),o(c)):(t.consume(c),a)}function s(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ii(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function yu(e,n){const t=new at;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=n.sliceStream(i);let l=o.length,u=-1,a=0,s;for(;l--;){const c=o[l];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)a++,u--;if(u)break;u=-1}else if(c===-2)s=!0,a++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(a=0),a){const c={type:r===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):t.add(r,0,[["enter",c,n],["exit",c,n]])}r++}return t.consume(e),e}const xu={42:ce,43:ce,45:ce,48:ce,49:ce,50:ce,51:ce,52:ce,53:ce,54:ce,55:ce,56:ce,57:ce,62:Qr},ku={91:Ao},bu={[-2]:It,[-1]:It,32:It},wu={35:Po,42:ot,45:[er,ot],60:Oo,61:er,95:ot,96:Kn,126:Kn},Su={38:Kr,92:Jr},Cu={[-5]:vt,[-4]:vt,[-3]:vt,33:Jo,38:Kr,42:Xt,60:[eo,jo],91:Zo,92:[_o,Jr],93:fn,95:Xt,96:ho},Eu={null:[Xt,mu]},Au={null:[42,95]},Tu={null:[]},Iu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Au,contentInitial:ku,disable:Tu,document:xu,flow:wu,flowInitial:bu,insideSpan:Eu,string:Su,text:Cu},Symbol.toStringTag,{value:"Module"}));function vu(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],u=[];const a={attempt:R(O),check:R(w),consume:v,enter:A,exit:F,interrupt:R(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:S,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let c=n.tokenize.call(s,a);return n.resolveAll&&o.push(n),s;function f(_){return l=de(l,_),C(),l[l.length-1]!==null?[]:(H(n,0),s.events=gt(o,s.events,s),s.events)}function h(_,L){return Ru(p(_),L)}function p(_){return _u(l,_)}function y(){const{_bufferIndex:_,_index:L,line:W,column:D,offset:P}=r;return{_bufferIndex:_,_index:L,line:W,column:D,offset:P}}function S(_){i[_.line]=_.column,k()}function C(){for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string"){const L=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<_.length;)x(_.charCodeAt(r._bufferIndex))}else x(_)}}function x(_){c=c(_)}function v(_){N(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,k()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=_}function A(_,L){const W=L||{};return W.type=_,W.start=y(),s.events.push(["enter",W,s]),u.push(W),W}function F(_){const L=u.pop();return L.end=y(),s.events.push(["exit",L,s]),L}function O(_,L){H(_,L.from)}function w(_,L){L.restore()}function R(_,L){return W;function W(D,P,Y){let ee,pe,ge,g;return Array.isArray(D)?E(D):"tokenize"in D?E([D]):d(D);function d(M){return G;function G(re){const te=re!==null&&M[re],Ee=re!==null&&M.null,kt=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return E(kt)(re)}}function E(M){return ee=M,pe=0,M.length===0?Y:m(M[pe])}function m(M){return G;function G(re){return g=Q(),ge=M,M.partial||(s.currentConstruct=M),M.name&&s.parser.constructs.disable.null.includes(M.name)?V():M.tokenize.call(L?Object.assign(Object.create(s),L):s,a,z,V)(re)}}function z(M){return _(ge,g),P}function V(M){return g.restore(),++pe<ee.length?m(ee[pe]):Y}}}function H(_,L){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&ye(s.events,L,s.events.length-L,_.resolve(s.events.slice(L),s)),_.resolveTo&&(s.events=_.resolveTo(s.events,s))}function Q(){const _=y(),L=s.previous,W=s.currentConstruct,D=s.events.length,P=Array.from(u);return{from:D,restore:Y};function Y(){r=_,s.previous=L,s.currentConstruct=W,s.events.length=D,u=P,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _u(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ru(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
19
|
+
`;break}case-3:{l=`\r
|
|
20
|
+
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Pu(e){const r={constructs:Wr([Iu,...(e||{}).extensions||[]]),content:i(Wl),defined:[],document:i(Gl),flow:i(pu),lazy:{},string:i(gu),text:i(du)};return r;function i(o){return l;function l(u){return vu(r,o,u)}}}function Du(e){for(;!Zr(e););return e}const tr=/[\0\t\n\r]/g;function zu(){let e=1,n="",t=!0,r;return i;function i(o,l,u){o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o));const a=[];let s=0;for(n="",t&&(o.charCodeAt(0)===65279&&s++,t=void 0);s<o.length;){tr.lastIndex=s;const c=tr.exec(o),f=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(f);if(!c){n=o.slice(s);break}if(h===10&&s===f&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),s<f&&(a.push(o.slice(s,f)),e+=f-s),h){case 0:{a.push(65533),e++;break}case 9:{const p=Math.ceil(e/4)*4;for(a.push(-2);e++<p;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}s=f+1}return u&&(r&&a.push(-5),n&&a.push(n),a.push(null)),a}}const Lu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ou(e){return e.replace(Lu,Nu)}function Nu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Xr(t.slice(o?2:1),o?16:10)}return cn(t)||e}const li={}.hasOwnProperty;function Fu(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Mu(t)(Du(Pu(t).document().write(zu()(e,n,!0))))}function Mu(e){const n={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(_n),autolinkProtocol:k,autolinkEmail:k,atxHeading:l(Tn),blockQuote:l(kt),characterEscape:k,characterReference:k,codeFenced:l(An),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(An,u),codeText:l(ji,u),codeTextData:k,data:k,codeFlowValue:k,definition:l(qi),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(Hi),hardBreakEscape:l(In),hardBreakTrailing:l(In),htmlFlow:l(vn,u),htmlFlowData:k,htmlText:l(vn,u),htmlTextData:k,image:l($i),label:u,link:l(_n),listItem:l(Ui),listItemValue:p,listOrdered:l(Rn,h),listUnordered:l(Rn),paragraph:l(Vi),reference:z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Tn),strong:l(Yi),thematicBreak:l(Xi)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:Ee,autolinkProtocol:te,blockQuote:s(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:G,characterReference:re,codeFenced:s(x),codeFencedFence:C,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:_,codeIndented:s(v),codeText:s(Y),codeTextData:_,data:_,definition:s(),definitionDestinationString:O,definitionLabelString:A,definitionTitleString:F,emphasis:s(),hardBreakEscape:s(W),hardBreakTrailing:s(W),htmlFlow:s(D),htmlFlowData:_,htmlText:s(P),htmlTextData:_,image:s(pe),label:g,labelText:ge,lineEnding:L,link:s(ee),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:V,resourceDestinationString:d,resourceTitleString:E,resource:m,setextHeading:s(Q),setextHeadingLineSequence:H,setextHeadingText:R,strong:s(),thematicBreak:s()}};oi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let I={type:"root",children:[],position:void 0};const j={stack:[I],tokenStack:[],config:n,enter:a,exit:c,buffer:u,resume:f,data:t},$=[],ae=[];let Z=-1;for(;++Z<b.length;)if(ae.push(b[Z]),b[Z][1].type==="listOrdered"||b[Z][1].type==="listUnordered")if(b[Z][0]==="enter")$.push(ae.length-1);else{const se=$.pop();o(ae,se)}for(b=ae,Z=-1;++Z<b.length;){const se=n[b[Z][0]];b[Z][0]==="enter"&&n.beforeEnter.length>0&&i(n.beforeEnter,{...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1]),li.call(se,b[Z][1].type)&&se[b[Z][1].type].call({...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1]),b[Z][0]==="exit"&&n.afterExit.length>0&&i(n.afterExit,{...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1])}if(j.tokenStack.length>0){const se=j.tokenStack[j.tokenStack.length-1];(se[1]||nr).call(j,void 0,se[0])}for(I.position={start:Ae(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ae(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<n.transforms.length;)I=n.transforms[Z](I)||I;return I}function i(b,I,j){let $=-1;for(;++$<b.length;)b[$].call(I,j)}function o(b,I){const j=b.length-1;let $=I-1,ae=-1,Z=!1,se,ke,Me,Be;const je=[];for(;++$<=j;){const he=b[$];switch(he[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{he[0]==="enter"?ae++:ae--,Be=void 0;break}case"lineEndingBlank":{he[0]==="enter"&&(se&&!Be&&!ae&&!Me&&(Me=$),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!ae&&he[0]==="enter"&&he[1].type==="listItemPrefix"||ae===-1&&he[0]==="exit"&&(he[1].type==="listUnordered"||he[1].type==="listOrdered")){if(se){let Pe=$;for(ke=void 0;Pe--;){const Se=b[Pe];if(Se[1].type==="lineEnding"||Se[1].type==="lineEndingBlank"){if(Se[0]==="exit")continue;ke&&(b[ke][1].type="lineEndingBlank",Z=!0),Se[1].type="lineEnding",ke=Pe}else if(!(Se[1].type==="linePrefix"||Se[1].type==="blockQuotePrefix"||Se[1].type==="blockQuotePrefixWhitespace"||Se[1].type==="blockQuoteMarker"||Se[1].type==="listItemIndent"))break}Me&&(!ke||Me<ke)&&(se._spread=!0),se.end=Object.assign({},ke?b[ke][1].start:he[1].end),je.push({at:ke||$,event:["exit",se,he[2]]})}if(he[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},he[1].start),end:void 0};se=Pe,je.push({at:$,event:["enter",Pe,he[2]]}),Me=void 0,Be=!0}}}const Pn=b.splice(I);let bt=0;for($=-1;++$<Pn.length;){for(;bt<je.length&&je[bt].at===I+$;)b.push(je[bt++].event);b.push(Pn[$])}b[I][1]._spread=Z}function l(b,I){return j;function j($){a.call(this,b($),$),I&&I.call(this,$)}}function u(){this.stack.push({type:"fragment",children:[]})}function a(b,I,j){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([I,j||void 0]),b.position={start:Ae(I.start),end:void 0}}function s(b){return I;function I(j){b&&b.call(this,j),c.call(this,j)}}function c(b,I){const j=this.stack.pop(),$=this.tokenStack.pop();if(!$)throw new Error("Cannot close `"+b.type+"` ("+Ye({start:b.start,end:b.end})+"): it’s not open");$[0].type!==b.type&&(I?I.call(this,b,$[0]):($[1]||nr).call(this,b,$[0])),j.position.end=Ae(b.end)}function f(){return sn(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.lang=b}function S(){const b=this.resume(),I=this.stack[this.stack.length-1];I.meta=b}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=xe(this.sliceSerialize(b)).toLowerCase()}function F(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function O(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function w(b){const I=this.stack[this.stack.length-1];if(!I.depth){const j=this.sliceSerialize(b).length;I.depth=j}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function H(b){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function Q(){this.data.setextHeadingSlurpLineEnding=void 0}function k(b){const j=this.stack[this.stack.length-1].children;let $=j[j.length-1];(!$||$.type!=="text")&&($=Wi(),$.position={start:Ae(b.start),end:void 0},j.push($)),this.stack.push($)}function _(b){const I=this.stack.pop();I.value+=this.sliceSerialize(b),I.position.end=Ae(b.end)}function L(b){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=I.children[I.children.length-1];j.position.end=Ae(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(k.call(this,b),_.call(this,b))}function W(){this.data.atHardBreak=!0}function D(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function P(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function Y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function ee(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function pe(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ge(b){const I=this.sliceSerialize(b),j=this.stack[this.stack.length-2];j.label=Ou(I),j.identifier=xe(I).toLowerCase()}function g(){const b=this.stack[this.stack.length-1],I=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const $=b.children;j.children=$}else j.alt=I}function d(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function E(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function m(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function V(b){const I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=xe(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function M(b){this.data.characterReferenceType=b.type}function G(b){const I=this.sliceSerialize(b),j=this.data.characterReferenceType;let $;j?($=Xr(I,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=cn(I);const ae=this.stack[this.stack.length-1];ae.value+=$}function re(b){const I=this.stack.pop();I.position.end=Ae(b.end)}function te(b){_.call(this,b);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(b)}function Ee(b){_.call(this,b);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(b)}function kt(){return{type:"blockquote",children:[],position:void 0}}function An(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function ji(){return{type:"inlineCode",value:"",position:void 0}}function qi(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function Hi(){return{type:"emphasis",children:[],position:void 0}}function Tn(){return{type:"heading",depth:0,children:[],position:void 0}}function In(){return{type:"break",position:void 0}}function vn(){return{type:"html",value:"",position:void 0}}function $i(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function _n(){return{type:"link",title:null,url:"",children:[],position:void 0}}function Rn(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[],position:void 0}}function Ui(b){return{type:"listItem",spread:b._spread,checked:null,children:[],position:void 0}}function Vi(){return{type:"paragraph",children:[],position:void 0}}function Yi(){return{type:"strong",children:[],position:void 0}}function Wi(){return{type:"text",value:"",position:void 0}}function Xi(){return{type:"thematicBreak",position:void 0}}}function Ae(e){return{line:e.line,column:e.column,offset:e.offset}}function oi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?oi(e,r):Bu(e,r)}}function Bu(e,n){let t;for(t in n)if(li.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"afterExit":case"beforeEnter":{const r=n[t];r&&e[t].push(r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function nr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ye({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ye({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ye({start:n.start,end:n.end})+") is still open")}function ju(e){const n=this;n.parser=t;function t(r){return Fu(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function qu(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Hu(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
21
|
+
`}]}function $u(e,n){const t=n.value?n.value+`
|
|
22
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Uu(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Yu(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Fe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function Wu(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Xu(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ui(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Gu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ui(e,n);const i={src:Fe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Qu(e,n){const t={src:Fe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ju(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ku(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ui(e,n);const i={href:Fe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Zu(e,n){const t={href:Fe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ea(e,n,t){const r=e.all(n),i=t?ta(t):ai(n),o={},l=[];if(typeof n.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
23
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
|
|
24
|
+
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function ta(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ai(t[r])}return n}function ai(e){const n=e.spread;return n??e.children.length>1}function na(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function ra(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ia(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function la(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function oa(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=ln(n.children[1]),a=jr(n.children[n.children.length-1]);u&&a&&(l.position={start:u,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function ua(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,u=l?l.length:n.children.length;let a=-1;const s=[];for(;++a<u;){const f=n.children[a],h={},p=l?l[a]:void 0;p&&(h.align=p);let y={type:"element",tagName:o,properties:h,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),s.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function aa(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const rr=9,ir=32;function sa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(lr(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(lr(n.slice(i),i>0,!1)),o.join("")}function lr(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===rr||o===ir;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===rr||o===ir;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ca(e,n){const t={type:"text",value:sa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function fa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const pa={blockquote:qu,break:Hu,code:$u,delete:Uu,emphasis:Vu,footnoteReference:Yu,heading:Wu,html:Xu,imageReference:Gu,image:Qu,inlineCode:Ju,linkReference:Ku,link:Zu,listItem:ea,list:na,paragraph:ra,root:ia,strong:la,table:oa,tableCell:aa,tableRow:ua,text:ca,thematicBreak:fa,toml:et,yaml:et,definition:et,footnoteDefinition:et};function et(){}const si=-1,dt=0,Xe=1,ct=2,pn=3,hn=4,mn=5,gn=6,ci=7,fi=8,or=typeof self=="object"?self:globalThis,ha=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case dt:case si:return t(l,i);case Xe:{const u=t([],i);for(const a of l)u.push(r(a));return u}case ct:{const u=t({},i);for(const[a,s]of l)u[r(a)]=r(s);return u}case pn:return t(new Date(l),i);case hn:{const{source:u,flags:a}=l;return t(new RegExp(u,a),i)}case mn:{const u=t(new Map,i);for(const[a,s]of l)u.set(r(a),r(s));return u}case gn:{const u=t(new Set,i);for(const a of l)u.add(r(a));return u}case ci:{const{name:u,message:a}=l;return t(new or[u](a),i)}case fi:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return t(new DataView(u),l)}}return t(new or[o](l),i)};return r},ur=e=>ha(new Map,e)(0),ze="",{toString:ma}={},{keys:ga}=Object,Ve=e=>{const n=typeof e;if(n!=="object"||!e)return[dt,n];const t=ma.call(e).slice(8,-1);switch(t){case"Array":return[Xe,ze];case"Object":return[ct,ze];case"Date":return[pn,ze];case"RegExp":return[hn,ze];case"Map":return[mn,ze];case"Set":return[gn,ze];case"DataView":return[Xe,t]}return t.includes("Array")?[Xe,t]:t.includes("Error")?[ci,t]:[ct,t]},tt=([e,n])=>e===dt&&(n==="function"||n==="symbol"),da=(e,n,t,r)=>{const i=(l,u)=>{const a=r.push(l)-1;return t.set(u,a),a},o=l=>{if(t.has(l))return t.get(l);let[u,a]=Ve(l);switch(u){case dt:{let c=l;switch(a){case"bigint":u=fi,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([si],l)}return i([u,c],l)}case Xe:{if(a){let h=l;return a==="DataView"?h=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(h=new Uint8Array(l)),i([a,[...h]],l)}const c=[],f=i([u,c],l);for(const h of l)c.push(o(h));return f}case ct:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([u,c],l);for(const h of ga(l))(e||!tt(Ve(l[h])))&&c.push([o(h),o(l[h])]);return f}case pn:return i([u,l.toISOString()],l);case hn:{const{source:c,flags:f}=l;return i([u,{source:c,flags:f}],l)}case mn:{const c=[],f=i([u,c],l);for(const[h,p]of l)(e||!(tt(Ve(h))||tt(Ve(p))))&&c.push([o(h),o(p)]);return f}case gn:{const c=[],f=i([u,c],l);for(const h of l)(e||!tt(Ve(h)))&&c.push(o(h));return f}}const{message:s}=l;return i([u,{name:a,message:s}],l)};return o},ar=(e,{json:n,lossy:t}={})=>{const r=[];return da(!(n||t),!!n,new Map,r)(e),r},ft=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?ur(ar(e,n)):structuredClone(e):(e,n)=>ur(ar(e,n));function ya(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function xa(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function ka(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||ya,r=e.options.footnoteBackLabel||xa,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const c=e.all(s),f=String(s.identifier).toUpperCase(),h=Fe(f.toLowerCase());let p=0;const y=[],S=e.footnoteCounts.get(f);for(;S!==void 0&&++p<=S;){y.length>0&&y.push({type:"text",value:" "});let v=typeof t=="string"?t:t(a,p);typeof v=="string"&&(v={type:"text",value:v}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const v=C.children[C.children.length-1];v&&v.type==="text"?v.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(c,!0)};e.patch(s,x),u.push(x)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ft(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
25
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
26
|
+
`}]}}const yt=(function(e){if(e==null)return Ca;if(typeof e=="function")return xt(e);if(typeof e=="object")return Array.isArray(e)?ba(e):wa(e);if(typeof e=="string")return Sa(e);throw new Error("Expected function, string, or object as test")});function ba(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=yt(e[t]);return xt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function wa(e){const n=e;return xt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function Sa(e){return xt(n);function n(t){return t&&t.type===e}}function xt(e){return n;function n(t,r,i){return!!(Ea(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ca(){return!0}function Ea(e){return e!==null&&typeof e=="object"&&"type"in e}const pi=[],Aa=!0,Qt=!1,Ta="skip";function hi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=yt(i),l=r?-1:1;u(e,void 0,[])();function u(a,s,c){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=pi,y,S,C;if((!n||o(a,s,c[c.length-1]||void 0))&&(p=Ia(t(a,c)),p[0]===Qt))return p;if("children"in a&&a.children){const x=a;if(x.children&&p[0]!==Ta)for(S=(r?x.children.length:-1)+l,C=c.concat(x);S>-1&&S<x.children.length;){const v=x.children[S];if(y=u(v,S,C)(),y[0]===Qt)return y;S=typeof y[1]=="number"?y[1]:S+l}}return p}}}function Ia(e){return Array.isArray(e)?e:typeof e=="number"?[Aa,e]:e==null?pi:[e]}function dn(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),hi(e,o,u,i);function u(a,s){const c=s[s.length-1],f=c?c.children.indexOf(a):void 0;return l(a,f,c)}}const Jt={}.hasOwnProperty,va={};function _a(e,n){const t=n||va,r=new Map,i=new Map,o=new Map,l={...pa,...t.handlers},u={all:s,applyData:Pa,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:t,patch:Ra,wrap:za};return dn(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),u;function a(c,f){const h=c.type,p=u.handlers[h];if(Jt.call(u.handlers,h)&&p)return p(u,c,f);if(u.options.passThrough&&u.options.passThrough.includes(h)){if("children"in c){const{children:S,...C}=c,x=ft(C);return x.children=u.all(c),x}return ft(c)}return(u.options.unknownHandler||Da)(u,c,f)}function s(c){const f=[];if("children"in c){const h=c.children;let p=-1;for(;++p<h.length;){const y=u.one(h[p],c);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=sr(y.value)),!Array.isArray(y)&&y.type==="element")){const S=y.children[0];S&&S.type==="text"&&(S.value=sr(S.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function Ra(e,n){e.position&&(n.position=kl(e))}function Pa(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,ft(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Da(e,n){const t=n.data||{},r="value"in n&&!(Jt.call(t,"hProperties")||Jt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function za(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
27
|
+
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
28
|
+
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
29
|
+
`}),t}function sr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function cr(e,n){const t=_a(e,n),r=t.one(e,void 0),i=ka(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
30
|
+
`},i),o}function La(e,n){return e&&"run"in e?async function(t,r){const i=cr(t,{file:r,...n});await e.run(i,r)}:function(t,r){return cr(t,{file:r,...e||n})}}function fr(e){if(e)throw e}var _t,pr;function Oa(){if(pr)return _t;pr=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var c=e.call(s,"constructor"),f=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!c&&!f)return!1;var h;for(h in s);return typeof h>"u"||e.call(s,h)},l=function(s,c){t&&c.name==="__proto__"?t(s,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):s[c.name]=c.newValue},u=function(s,c){if(c==="__proto__")if(e.call(s,c)){if(r)return r(s,c).value}else return;return s[c]};return _t=function a(){var s,c,f,h,p,y,S=arguments[0],C=1,x=arguments.length,v=!1;for(typeof S=="boolean"&&(v=S,S=arguments[1]||{},C=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});C<x;++C)if(s=arguments[C],s!=null)for(c in s)f=u(S,c),h=u(s,c),S!==h&&(v&&h&&(o(h)||(p=i(h)))?(p?(p=!1,y=f&&i(f)?f:[]):y=f&&o(f)?f:{},l(S,{name:c,newValue:a(v,y,h)})):typeof h<"u"&&l(S,{name:c,newValue:h}));return S},_t}var Na=Oa();const Rt=nn(Na);function Kt(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fa(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(a,...s){const c=e[++o];let f=-1;if(a){l(a);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?Ma(c,u)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ma(e,n){let t;return r;function r(...l){const u=e.length>l.length;let a;u&&l.push(i);try{a=e.apply(this,l)}catch(s){const c=s;if(u&&t)throw c;return i(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...u){t||(t=!0,n(l,...u))}function o(l){i(null,l)}}const be={basename:Ba,dirname:ja,extname:qa,join:Ha,sep:"/"};function Ba(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ze(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===n.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function ja(e){if(Ze(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function qa(e){Ze(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const u=e.codePointAt(n);if(u===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),u===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ha(...e){let n=-1,t;for(;++n<e.length;)Ze(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":$a(t)}function $a(e){Ze(e);const n=e.codePointAt(0)===47;let t=Ua(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ua(e,n){let t="",r=0,i=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return t}function Ze(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Va={cwd:Ya};function Ya(){return"/"}function Zt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wa(e){if(typeof e=="string")e=new URL(e);else if(!Zt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Xa(e)}function Xa(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Pt=["history","path","basename","stem","extname","dirname"];class mi{constructor(n){let t;n?Zt(n)?t={path:n}:typeof n=="string"||Ga(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Va.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Pt.length;){const o=Pt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Pt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?be.basename(this.path):void 0}set basename(n){zt(n,"basename"),Dt(n,"basename"),this.path=be.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?be.dirname(this.path):void 0}set dirname(n){hr(this.basename,"dirname"),this.path=be.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?be.extname(this.path):void 0}set extname(n){if(Dt(n,"extname"),hr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=be.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Zt(n)&&(n=Wa(n)),zt(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?be.basename(this.path,this.extname):void 0}set stem(n){zt(n,"stem"),Dt(n,"stem"),this.path=be.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new oe(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Dt(e,n){if(e&&e.includes(be.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+be.sep+"`")}function zt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function hr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ga(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qa=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Ja={}.hasOwnProperty;class yn extends Qa{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=Fa()}copy(){const n=new yn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Rt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Nt("data",this.frozen),this.namespace[n]=t,this):Ja.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Nt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=nt(n),r=this.parser||this.Parser;return Lt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Lt("process",this.parser||this.Parser),Ot("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const u=nt(n),a=r.parse(u);r.run(a,u,function(c,f,h){if(c||!f||!h)return s(c);const p=f,y=r.stringify(p,h);es(y)?h.value=y:h.result=y,s(c,h)});function s(c,f){c||!f?l(c):o?o(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),Lt("processSync",this.parser||this.Parser),Ot("processSync",this.compiler||this.Compiler),this.process(n,i),gr("processSync","process",t),r;function i(o,l){t=!0,fr(o),r=l}}run(n,t,r){mr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const a=nt(t);i.run(n,a,s);function s(c,f,h){const p=f||n;c?u(c):l?l(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),gr("runSync","run",r),i;function o(l,u){fr(l),i=u,r=!0}}stringify(n,t){this.freeze();const r=nt(t),i=this.compiler||this.Compiler;return Ot("stringify",i),mr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Nt("use",this.frozen),n!=null)if(typeof n=="function")a(n,t);else if(typeof n=="object")Array.isArray(n)?u(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[c,...f]=s;a(c,f)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(s.plugins),s.settings&&(i.settings=Rt(!0,i.settings,s.settings))}function u(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){const f=s[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===s){h=f;break}if(h===-1)r.push([s,...c]);else if(c.length>0){let[p,...y]=c;const S=r[h][1];Kt(S)&&Kt(p)&&(p=Rt(!0,S,p)),r[h]=[s,p,...y]}}}}const Ka=new yn().freeze();function Lt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ot(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Nt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mr(e){if(!Kt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function nt(e){return Za(e)?e:new mi(e)}function Za(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function es(e){return typeof e=="string"||ts(e)}function ts(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ns="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dr=[],yr={allowDangerousHtml:!0},rs=/^(https?|ircs?|mailto|xmpp)$/i,is=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ip(e){const n=ls(e),t=os(e);return us(n.runSync(n.parse(t),t),e)}function ls(e){const n=e.rehypePlugins||dr,t=e.remarkPlugins||dr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yr}:yr;return Ka().use(ju).use(t).use(La,r).use(n)}function os(e){const n=e.children||"",t=new mi;return typeof n=="string"&&(t.value=n),t}function us(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,u=n.unwrapDisallowed,a=n.urlTransform||as;for(const c of is)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+ns+c.id,void 0);return dn(e,s),El(e,{Fragment:St.Fragment,components:i,ignoreInvalidStyle:!0,jsx:St.jsx,jsxs:St.jsxs,passKeys:!0,passNode:!0});function s(c,f,h){if(c.type==="raw"&&h&&typeof f=="number")return l?h.children.splice(f,1):h.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in Tt)if(Object.hasOwn(Tt,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],S=Tt[p];(S===null||S.includes(c.tagName))&&(c.properties[p]=a(String(y||""),p,c))}}if(c.type==="element"){let p=t?!t.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,h)),p&&h&&typeof f=="number")return u&&c.children?h.children.splice(f,1,...c.children):h.children.splice(f,1),f}}}function as(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||rs.test(e.slice(0,n))?e:""}function pt(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function ss(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cs(e,n,t){const i=yt((t||{}).ignore||[]),o=fs(n);let l=-1;for(;++l<o.length;)hi(e,"text",u);function u(s,c){let f=-1,h;for(;++f<c.length;){const p=c[f],y=h?h.children:void 0;if(i(p,y?y.indexOf(p):void 0,h))return;h=p}if(h)return a(s,c)}function a(s,c){const f=c[c.length-1],h=o[l][0],p=o[l][1];let y=0;const C=f.children.indexOf(s);let x=!1,v=[];h.lastIndex=0;let A=h.exec(s.value);for(;A;){const O=A.index,w={index:A.index,input:A.input,stack:[...c,s]};let R=p(...A,w);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1)h.lastIndex=O+1;else{if(y!==O&&F({type:"text",value:s.value.slice(y,O)}),Array.isArray(R))for(const H of R)F(H);else R&&F(R);y=O+A[0].length,x=!0}if(!h.global)break;A=h.exec(s.value)}return x?(y<s.value.length&&F({type:"text",value:s.value.slice(y)}),f.children.splice(C,1,...v)):v=[s],C+v.length;function F(O){const w=v[v.length-1];w&&w.type==="text"&&O.type==="text"?w.value+=O.value:v.push(O)}}}function fs(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=[],t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([ps(i[0]),hs(i[1])])}return n}function ps(e){return typeof e=="string"?new RegExp(ss(e),"g"):e}function hs(e){return typeof e=="function"?e:function(){return e}}const Ft="phrasing",Mt=["autolink","link","image","label"];function ms(){return{transforms:[ws],enter:{literalAutolink:ds,literalAutolinkEmail:Bt,literalAutolinkHttp:Bt,literalAutolinkWww:Bt},exit:{literalAutolink:bs,literalAutolinkEmail:ks,literalAutolinkHttp:ys,literalAutolinkWww:xs}}}function gs(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ft,notInConstruct:Mt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ft,notInConstruct:Mt},{character:":",before:"[ps]",after:"\\/",inConstruct:Ft,notInConstruct:Mt}]}}function ds(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bt(e){this.config.enter.autolinkProtocol.call(this,e)}function ys(e){this.config.exit.autolinkProtocol.call(this,e)}function xs(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function ks(e){this.config.exit.autolinkEmail.call(this,e)}function bs(e){this.exit(e)}function ws(e){cs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ss],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Cs]],{ignore:["link","linkReference"]})}function Ss(e,n,t,r,i){let o="";if(!gi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!Es(t)))return!1;const l=As(t+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function Cs(e,n,t,r){return!gi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Es(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function As(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=pt(e,"(");let o=pt(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function gi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||_e(t)||mt(t))&&(!n||t!==47)}di.peek=Ls;function Ts(){this.buffer()}function Is(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vs(){this.buffer()}function _s(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Rs(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=xe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ps(e){this.exit(e)}function Ds(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=xe(this.sliceSerialize(e)).toLowerCase(),t.label=n}function zs(e){this.exit(e)}function Ls(){return"["}function di(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),u=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function Os(){return{enter:{gfmFootnoteCallString:Ts,gfmFootnoteCall:Is,gfmFootnoteDefinitionLabelString:vs,gfmFootnoteDefinition:_s},exit:{gfmFootnoteCallString:Rs,gfmFootnoteCall:Ps,gfmFootnoteDefinitionLabelString:Ds,gfmFootnoteDefinition:zs}}}function Ns(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:di},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const u=o.createTracker(l);let a=u.move("[^");const s=o.enter("footnoteDefinition"),c=o.enter("label");return a+=u.move(o.safe(o.associationId(r),{before:a,after:"]"})),c(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((n?`
|
|
31
|
+
`:" ")+o.indentLines(o.containerFlow(r,u.current()),n?yi:Fs))),s(),a}}function Fs(e,n,t){return n===0?e:yi(e,n,t)}function yi(e,n,t){return(t?"":" ")+e}const Ms=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xn.attention=$s;xn.peek=Us;function Bs(){return{canContainEols:["delete"],enter:{strikethrough:qs},exit:{strikethrough:Hs}}}function js(){return{handlers:{delete:xn},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ms}]}}function qs(e){this.enter({type:"delete",children:[],position:void 0},e)}function Hs(e){this.exit(e)}function xn(e,n,t,r){const i=t.createTracker(r),o=t.stack.includes("strikethrough")?"~":"~~",l=t.enter("strikethrough");let u=i.move(o);return u+=t.containerPhrasing(e,{...i.current(),before:u,after:"~"}),u+=i.move(o),l(),u}function $s(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function Us(){return"~"}function Vs(e){return e.length}function Ys(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Vs,o=[],l=[],u=[],a=[];let s=0,c=-1;for(;++c<e.length;){const S=[],C=[];let x=-1;for(e[c].length>s&&(s=e[c].length);++x<e[c].length;){const v=Ws(e[c][x]);if(t.alignDelimiters!==!1){const A=i(v);C[x]=A,(a[x]===void 0||A>a[x])&&(a[x]=A)}S.push(v)}l[c]=S,u[c]=C}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<s;)o[f]=xr(r[f]);else{const S=xr(r);for(;++f<s;)o[f]=S}f=-1;const h=[],p=[];for(;++f<s;){const S=o[f];let C="",x="";S===99?(C=":",x=":"):S===108?C=":":S===114&&(x=":");let v=t.alignDelimiters===!1?1:Math.max(1,a[f]-C.length-x.length);const A=C+"-".repeat(v)+x;t.alignDelimiters!==!1&&(v=C.length+v+x.length,v>a[f]&&(a[f]=v),p[f]=v),h[f]=A}l.splice(1,0,h),u.splice(1,0,p),c=-1;const y=[];for(;++c<l.length;){const S=l[c],C=u[c];f=-1;const x=[];for(;++f<s;){const v=S[f]||"";let A="",F="";if(t.alignDelimiters!==!1){const O=a[f]-(C[f]||0),w=o[f];w===114?A=" ".repeat(O):w===99?O%2?(A=" ".repeat(O/2+.5),F=" ".repeat(O/2-.5)):(A=" ".repeat(O/2),F=A):F=" ".repeat(O)}t.delimiterStart!==!1&&!f&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&v==="")&&(t.delimiterStart!==!1||f)&&x.push(" "),t.alignDelimiters!==!1&&x.push(A),x.push(v),t.alignDelimiters!==!1&&x.push(F),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||f!==s-1)&&x.push("|")}y.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return y.join(`
|
|
32
|
+
`)}function Ws(e){return e==null?"":String(e)}function xr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const Xs=yt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]),kr={}.hasOwnProperty;function Gs(e,n){const t=n||{};function r(i,...o){let l=r.invalid;const u=r.handlers;if(i&&kr.call(i,e)){const a=String(i[e]);l=kr.call(u,a)?u[a]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}function Qs(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Js);return i(),l}function Js(e,n,t){return">"+(t?"":" ")+e}function Ks(e,n){return br(e,n.inConstruct,!0)&&!br(e,n.notInConstruct,!1)}function br(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function wr(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;){const o=t.unsafe[i];if(o.character===`
|
|
33
|
+
`&&!o.before&&!o.after&&Ks(t.stack,o))return/[\t ]/.test(r.before)?"":" "}return`\\
|
|
34
|
+
`}function Zs(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function ec(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function tc(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function nc(e,n,t,r){const i=tc(t),o=e.value||"";if(ec(e,t)){const f=t.enter("codeIndented"),h=t.indentLines(o,rc);return f(),h}const l=t.createTracker(r),u=i.repeat(Math.max(Zs(o,i)+1,3)),a=t.enter("codeFenced"),s=i==="`"?"GraveAccent":"Tilde";let c=l.move(u);if(e.lang){const f=t.enter(`codeFencedLang${s}`);c+=l.move(t.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${s}`);c+=l.move(" "),c+=l.move(t.safe(e.meta,{before:c,after:`
|
|
35
|
+
`,encode:["`"],...l.current()})),f()}return c+=l.move(`
|
|
36
|
+
`),o&&(c+=l.move(o+`
|
|
37
|
+
`)),c+=l.move(u),a(),c}function rc(e,n,t){return(t?"":" ")+e}function kn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function ic(e,n,t,r){const i=kn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("[");return s+=a.move(t.safe(t.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":`
|
|
38
|
+
`,...a.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),l(),s}function lc(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}bn.attention=oc;bn.peek=uc;function bn(e,n,t,r){const i=t.enter("phrasing"),o=t.containerPhrasing({type:"root",children:[e]},r);return i(),o}function oc(e,n){return{construct:"emphasis",markers:lc(n)==="*"?["*","_"]:["_","*"],sizes:[1]}}function uc(e,n,t){return t.options.emphasis||"*"}function ac(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sc(e,n){let t=!1;return dn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Qt}),!!((!e.depth||e.depth<3)&&sn(e)&&(n.options.setext||t))}function cc(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(sc(e,t)){const f=t.enter("headingSetext"),h=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
|
|
39
|
+
`,after:`
|
|
40
|
+
`});return h(),f(),p+`
|
|
41
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
42
|
+
`))+1))}const l="#".repeat(i),u=t.enter("headingAtx"),a=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
|
|
43
|
+
`,...o.current()});const c=s.charCodeAt(0);return(c===9||c===32)&&(s=ac(c)+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),a(),u(),s}xi.peek=fc;function xi(e){return e.value||""}function fc(){return"<"}ki.peek=pc;function ki(e,n,t,r){const i=kn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let u=t.enter("label");const a=t.createTracker(r);let s=a.move("![");return s+=a.move(t.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(t.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=t.enter("destinationRaw"),s+=a.move(t.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(t.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function pc(){return"!"}bi.peek=hc;function bi(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const u=t.createTracker(r);let a=u.move("![");const s=t.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const c=t.stack;t.stack=c.filter(function(h){return h!=="phrasing"}),l=t.enter("reference");const f=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return l(),t.stack=c,o(),i==="full"||!s||s!==f?a+=u.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function hc(){return"!"}wi.peek=mc;function wi(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],u=t.compilePattern(l);if(!l.atBreak)continue;let a;for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function mc(){return"`"}function Si(e,n){const t=sn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ci.peek=gc;function Ci(e,n,t,r){const i=kn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);if(Si(e,t)){const c=t.stack;t.stack=c.filter(function(p){return p!=="phrasing"});const f=t.enter("autolink");let h=l.move("<");return h+=l.move(t.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),f(),t.stack=c,h}const u=t.enter("link");let a=t.enter("label"),s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function gc(e,n,t){return Si(e,t)?"<":"["}Ei.peek=dc;function Ei(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const u=t.createTracker(r);let a=u.move("[");const s=t.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const c=t.stack;t.stack=c.filter(function(h){return h!=="phrasing"}),l=t.enter("reference");const f=t.safe(t.associationId(e),{before:a,after:"]",...u.current()});return l(),t.stack=c,o(),i==="full"||!s||s!==f?a+=u.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function dc(){return"["}function wn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function yc(e){const n=wn(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function xc(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Ai(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function kc(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?xc(t):wn(t);const u=e.ordered?l==="."?")":".":yc(t);let a=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(a=!0),Ai(t)===l&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function bc(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function wc(e,n,t,r){const i=bc(t);let o=t.bulletCurrent||wn(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=t.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),c);return a(),s;function c(f,h,p){return h?(p?"":" ".repeat(l))+f:(p?o:o+" ".repeat(l-o.length))+f}}function Sc(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}function Cc(e,n,t,r){if(!e.children.some(function(u){return Xs(u)}))return t.containerFlow(e,r);const o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),l}function Ec(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Sn.attention=Ac;Sn.peek=Tc;function Sn(e,n,t,r){const i=t.enter("phrasing"),o=t.containerPhrasing({type:"root",children:[e]},r);return i(),o}function Ac(e,n){return{construct:"strong",markers:Ec(n)==="*"?["*","_"]:["_","*"],sizes:[2]}}function Tc(e,n,t){return t.options.strong||"*"}function Ic(e,n,t,r){const i=n?n.children:[],o=i.indexOf(e);return t.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})}function vc(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function _c(e,n,t){const r=(Ai(t)+(t.options.ruleSpaces?" ":"")).repeat(vc(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Ti={blockquote:Qs,break:wr,code:nc,definition:ic,emphasis:bn,hardBreak:wr,heading:cc,html:xi,image:ki,imageReference:bi,inlineCode:wi,link:Ci,linkReference:Ei,list:kc,listItem:wc,paragraph:Sc,root:Cc,strong:Sn,text:Ic,thematicBreak:_c};function Rc(){return{enter:{table:Pc,tableData:Sr,tableHeader:Sr,tableRow:zc},exit:{codeText:Lc,table:Dc,tableData:jt,tableHeader:jt,tableRow:jt}}}function Pc(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Dc(e){this.exit(e),this.data.inTable=void 0}function zc(e){this.enter({type:"tableRow",children:[]},e)}function jt(e){this.exit(e)}function Sr(e){this.enter({type:"tableCell",children:[]},e)}function Lc(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Oc));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Oc(e,n){return n==="|"?n:e}function Nc(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
44
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:l,tableCell:a,tableRow:u}};function l(p,y,S,C){return s(c(p,S,C),p.align)}function u(p,y,S,C){const x=f(p,S,C),v=s([x]);return v.slice(0,v.indexOf(`
|
|
45
|
+
`))}function a(p,y,S,C){const x=S.enter("tableCell"),v=S.enter("phrasing"),A=S.containerPhrasing(p,{...C,before:o,after:o});return v(),x(),A}function s(p,y){return Ys(p,{align:y,alignDelimiters:r,padding:t,stringLength:i})}function c(p,y,S){const C=p.children;let x=-1;const v=[],A=y.enter("table");for(;++x<C.length;)v[x]=f(C[x],y,S);return A(),v}function f(p,y,S){const C=p.children;let x=-1;const v=[],A=y.enter("tableRow");for(;++x<C.length;)v[x]=a(C[x],p,y,S);return A(),v}function h(p,y,S){let C=Ti.inlineCode(p,y,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Fc(){return{exit:{taskListCheckValueChecked:Cr,taskListCheckValueUnchecked:Cr,paragraph:Bc}}}function Mc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jc}}}function Cr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Bc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function jc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);o&&u.move(l);let a=Ti.listItem(e,n,t,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(c){return c+l}}function qc(){return[ms(),Os(),Bs(),Rc(),Fc()]}function Hc(e){return{extensions:[gs(),Ns(e),js(),Nc(e),Mc()]}}const $c={tokenize:Gc,partial:!0},Ii={tokenize:Qc,partial:!0},vi={tokenize:Jc,partial:!0},_i={tokenize:Kc,partial:!0},Uc={tokenize:Zc,partial:!0},Ri={name:"wwwAutolink",tokenize:Wc,previous:Di},Pi={name:"protocolAutolink",tokenize:Xc,previous:zi},Ce={name:"emailAutolink",tokenize:Yc,previous:Li},we={};function Vc(){return{text:we}}let Ie=48;for(;Ie<123;)we[Ie]=Ce,Ie++,Ie===58?Ie=65:Ie===91&&(Ie=97);we[43]=Ce;we[45]=Ce;we[46]=Ce;we[95]=Ce;we[72]=[Ce,Pi];we[104]=[Ce,Pi];we[87]=[Ce,Ri];we[119]=[Ce,Ri];function Yc(e,n,t){const r=this;let i,o;return l;function l(f){return!en(f)||!Li.call(r,r.previous)||Cn(r.events)?t(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return en(f)?(e.consume(f),u):f===64?(e.consume(f),a):t(f)}function a(f){return f===46?e.check(Uc,c,s)(f):f===45||f===95||le(f)?(o=!0,e.consume(f),a):c(f)}function s(f){return e.consume(f),i=!0,a}function c(f){return o&&i&&ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(f)):t(f)}}function Wc(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Di.call(r,r.previous)||Cn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($c,e.attempt(Ii,e.attempt(vi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Xc(e,n,t){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&zi.call(r,r.previous)&&!Cn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),u):t(f)}function u(f){if(ue(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),a}return t(f)}function a(f){return f===47?(e.consume(f),o?s:(o=!0,a)):t(f)}function s(f){return f===null||ut(f)||K(f)||_e(f)||mt(f)?t(f):e.attempt(Ii,e.attempt(vi,c),t)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(f)}}function Gc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Qc(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(_i,a,u)(s):s===null||K(s)||_e(s)||s!==45&&mt(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?t(s):n(s)}}function Jc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(_i,n,o)(l):l===null||K(l)||_e(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Kc(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||K(u)||_e(u)?n(u):t(u)}function i(u){return u===null||u===40||u===91||K(u)||_e(u)?n(u):r(u)}function o(u){return ue(u)?l(u):t(u)}function l(u){return u===59?(e.consume(u),r):ue(u)?(e.consume(u),l):t(u)}}function Zc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return le(o)?t(o):n(o)}}function Di(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||K(e)}function zi(e){return!ue(e)}function Li(e){return!(e===47||en(e))}function en(e){return e===43||e===45||e===46||e===95||le(e)}function Cn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const ef={tokenize:sf,partial:!0};function tf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:of,continuation:{tokenize:uf},exit:af}},text:{91:{name:"gfmFootnoteCall",tokenize:lf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nf,resolveTo:rf}}}}function nf(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return t(a);const s=xe(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),n(a))}}function rf(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function lf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),a}function a(f){return f!==94?t(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(f){if(o>999||f===93&&!l||f===null||f===91||K(f))return t(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(xe(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(f)}return K(f)||(l=!0),o++,e.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,s):s(f)}}function of(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):t(y)}function c(y){if(l>999||y===93&&!u||y===null||y===91||K(y))return t(y);if(y===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=xe(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return K(y)||(u=!0),l++,e.consume(y),y===92?f:c}function f(y){return y===91||y===92||y===93?(e.consume(y),l++,c):c(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(o)||i.push(o),X(e,p,"gfmFootnoteDefinitionWhitespace")):t(y)}function p(y){return n(y)}}function uf(e,n,t){return e.check(Ke,n,e.attempt(ef,n,t))}function af(e){e.exit("gfmFootnoteDefinition")}function sf(e,n,t){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function cf(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},f={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},h=[["enter",c,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",f,u]],p=u.parser.constructs.insideSpan.null;p&&ye(h,h.length,0,gt(p,l.slice(s+1,a),u)),ye(h,h.length,0,[["exit",f,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",c,u]]),ye(l,s-1,a-s+3,h),a=s+h.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,c=this.events;let f=0;return h;function h(y){return s===126&&c[c.length-1][1].type!=="characterEscape"?a(y):(l.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const S=st(s);if(y===126)return f>1?a(y):(l.consume(y),f++,p);if(f<2&&!t)return a(y);const C=l.exit("strikethroughSequenceTemporary"),x=st(y);return C._open=!x||x===2&&!!S,C._close=!S||S===2&&!!x,u(y)}}}class ff{constructor(){this.map=[],this.index=new Map}add(n,t,r){pf(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0,this.index.clear()}}function pf(e,n,t,r){if(t===0&&r.length===0)return;const i=e.index.get(n);if(i){i[1]+=t,i[2].push(...r);return}const o=[n,t,r];e.map.push(o),e.index.set(n,o)}function hf(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function mf(){return{flow:{null:{name:"table",tokenize:gf,resolveAll:df}}}}function gf(e,n,t){const r=this;let i=0,o=0,l;return u;function u(k){let _=r.events.length-1;for(;_>-1;){const{type:D}=r.events[_][1];if(D==="lineEnding"||D==="linePrefix")_--;else break}const L=_>-1?r.events[_][1].type:null,W=L==="tableHead"||L==="tableRow"?w:a;return W===w&&r.parser.lazy[r.now().line]?t(k):W(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),c(k)}function c(k){return k===null?t(k):N(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):t(k):U(k)?X(e,c,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(k)))}function f(k){return k===null||k===124||K(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?h:f)}function h(k){return k===92||k===124?(e.consume(k),f):f(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,U(k)?X(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):y(k))}function y(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),S):O(k)}function S(k){return U(k)?X(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||N(k)?F(k):O(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),v(k)):O(k)}function v(k){return k===45?(e.consume(k),v):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(k))}function A(k){return U(k)?X(e,F,"whitespace")(k):F(k)}function F(k){return k===124?y(k):k===null||N(k)?!l||i!==o?O(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):O(k)}function O(k){return t(k)}function w(k){return e.enter("tableRow"),R(k)}function R(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),R):k===null||N(k)?(e.exit("tableRow"),n(k)):U(k)?X(e,R,"whitespace")(k):(e.enter("data"),H(k))}function H(k){return k===null||k===124||K(k)?(e.exit("data"),R(k)):(e.consume(k),k===92?Q:H)}function Q(k){return k===92||k===124?(e.consume(k),H):H(k)}}function df(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,c,f;const h=new ff;for(;++t<e.length;){const p=e[t],y=p[1];p[0]==="enter"?y.type==="tableHead"?(u=!1,a!==0&&(Er(h,n,a,s,c),c=void 0,a=0),s={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",s,n]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,t+1,0,0],u&&(u=!1,c={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",c,n]])),i=y.type==="tableDelimiterRow"?2:c?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=rt(h,n,o,i,void 0,f),o=[0,0,0,0]),l[2]=t)):y.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=rt(h,n,o,i,void 0,f)),o=l,l=[o[1],t,0,0])):y.type==="tableHead"?(u=!0,a=t):y.type==="tableRow"||y.type==="tableDelimiterRow"?(a=t,o[1]!==0?(l[0]=l[1],f=rt(h,n,o,i,t,f)):l[1]!==0&&(f=rt(h,n,l,i,t,f)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(l[3]=t)}for(a!==0&&Er(h,n,a,s,c),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=hf(n.events,t))}return e}function rt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(o.end=Object.assign({},Le(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const a=Le(n.events,t[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=Le(n.events,t[2]),c=Le(n.events,t[3]),f={type:u,start:Object.assign({},s),end:Object.assign({},c)};if(e.add(t[2],0,[["enter",f,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const y=t[2]+1,S=t[3]-t[2]-1;e.add(y,S,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return i!==void 0&&(o.end=Object.assign({},Le(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Er(e,n,t,r,i){const o=[],l=Le(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Le(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const yf={name:"tasklistCheck",tokenize:kf};function xf(){return{text:{91:yf}}}function kf(e,n,t){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return K(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):t(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(a)}function u(a){return N(a)?n(a):U(a)?e.check({tokenize:bf},n,t)(a):t(a)}}function bf(e,n,t){return X(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function wf(e){return Wr([Vc(),tf(),cf(e),mf(),xf()])}const Sf={};function vp(e){const n=this,t=e||Sf,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(wf(t)),o.push(qc()),l.push(Hc(t))}const Cf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ef=/["&'<>`]/g,Af=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tf=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,If=/[|\\{}()[\]^$+*?.]/g,Ar=new WeakMap;function vf(e,n){if(e=e.replace(n.subset?_f(n.subset):Ef,r),n.subset||n.escapeOnly)return e;return e.replace(Af,t).replace(Tf,r);function t(i,o,l){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),n)}function r(i,o,l){return n.format(i.charCodeAt(0),l.charCodeAt(o+1),n)}}function _f(e){let n=Ar.get(e);return n||(n=Rf(e),Ar.set(e,n)),n}function Rf(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(If,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const Pf=/[\dA-Fa-f]/;function Df(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!Pf.test(String.fromCharCode(n))?r:r+";"}const zf=/\d/;function Lf(e,n,t){const r="&#"+String(e);return t&&n&&!zf.test(String.fromCharCode(n))?r:r+";"}const Of=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],qt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Nf=["cent","copy","divide","gt","lt","not","para","times"],Oi={}.hasOwnProperty,tn={};let it;for(it in qt)Oi.call(qt,it)&&(tn[qt[it]]=it);const Ff=/[^\dA-Za-z]/;function Mf(e,n,t,r){const i=String.fromCharCode(e);if(Oi.call(tn,i)){const o=tn[i],l="&"+o;return t&&Of.includes(o)&&!Nf.includes(o)&&(!r||n&&n!==61&&Ff.test(String.fromCharCode(n)))?l:l+";"}return""}function Bf(e,n,t){let r=Df(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=Mf(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=Lf(e,n,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function Oe(e,n){return vf(e,Object.assign({format:Bf},n))}const jf=/^>|^->|<!--|-->|--!>|<!-$/g,qf=[">"],Hf=["<",">"];function $f(e,n,t,r){return r.settings.bogusComments?"<?"+Oe(e.value,Object.assign({},r.settings.characterReferences,{subset:qf}))+">":"<!--"+e.value.replace(jf,i)+"-->";function i(o){return Oe(o,Object.assign({},r.settings.characterReferences,{subset:Hf}))}}function Uf(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const ie=Fi(1),Ni=Fi(-1),Vf=[];function Fi(e){return n;function n(t,r,i){const o=t?t.children:Vf;let l=(r||0)+e,u=o[l];if(!i)for(;u&&ht(u);)l+=e,u=o[l];return u}}const Yf={}.hasOwnProperty;function Mi(e){return n;function n(t,r,i){return Yf.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const En=Mi({body:Xf,caption:Ht,colgroup:Ht,dd:Kf,dt:Jf,head:Ht,html:Wf,li:Qf,optgroup:Zf,option:ep,p:Gf,rp:Tr,rt:Tr,tbody:np,td:Ir,tfoot:rp,th:Ir,thead:tp,tr:ip});function Ht(e,n,t){const r=ie(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ht(r.value.charAt(0)))}function Wf(e,n,t){const r=ie(t,n);return!r||r.type!=="comment"}function Xf(e,n,t){const r=ie(t,n);return!r||r.type!=="comment"}function Gf(e,n,t){const r=ie(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Qf(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&r.tagName==="li"}function Jf(e,n,t){const r=ie(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Kf(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Tr(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Zf(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function ep(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function tp(e,n,t){const r=ie(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function np(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function rp(e,n,t){return!ie(t,n)}function ip(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function Ir(e,n,t){const r=ie(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const lp=Mi({body:ap,colgroup:sp,head:up,html:op,tbody:cp});function op(e){const n=ie(e,-1);return!n||n.type!=="comment"}function up(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function ap(e){const n=ie(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ht(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function sp(e,n,t){const r=Ni(t,n),i=ie(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&En(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function cp(e,n,t){const r=Ni(t,n),i=ie(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&En(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const lt={name:[[`
|
|
46
|
+
\f\r &/=>`.split(""),`
|
|
47
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
48
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
49
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
50
|
+
\f\r &>`.split(""),`\0
|
|
51
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
52
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
53
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function fp(e,n,t,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let l=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let a;i.space==="html"&&e.tagName==="svg"&&(r.schema=Je);const s=pp(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(l=!1),(s||!o||!lp(e,n,t))&&(u.push("<",e.tagName,s?" "+s:""),l&&(i.space==="svg"||r.settings.closeSelfClosing)&&(a=s.charAt(s.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(c),!l&&(!o||!En(e,n,t))&&u.push("</"+e.tagName+">"),u.join("")}function pp(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==null&&n[i]!==void 0){const o=hp(e,i,n[i]);o&&t.push(o)}}for(;++r<t.length;){const o=e.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&o!=='"'&&o!=="'"&&(t[r]+=" ")}return t.join("")}function hp(e,n,t){const r=Fr(e.schema,n),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,u;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=Oe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lt.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?_r:Br)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?a:(e.settings.preferUnquoted&&(u=Oe(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lt.unquoted[i][o]}))),u!==t&&(e.settings.quoteSmart&&pt(t,l)>pt(t,e.alternative)&&(l=e.alternative),u=l+Oe(t,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?lt.single:lt.double)[i][o],attribute:!0}))+l),a+(u&&"="+u))}const mp=["<","&"];function Bi(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:Oe(e.value,Object.assign({},r.settings.characterReferences,{subset:mp}))}function gp(e,n,t,r){return r.settings.allowDangerousHtml?e.value:Bi(e,n,t,r)}function dp(e,n,t,r){return r.all(e)}const yp=Gs("type",{invalid:xp,unknown:kp,handlers:{comment:$f,doctype:Uf,element:fp,raw:gp,root:dp,text:Bi}});function xp(e){throw new Error("Expected node, not `"+e+"`")}function kp(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const bp={},wp={},Sp=[];function _p(e,n){const t=n||bp,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Cp,all:Ep,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Cf,characterReferences:t.characterReferences||wp,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Je:Mr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Cp(e,n,t){return yp(e,n,t,this)}function Ep(e){const n=[],t=e&&e.children||Sp;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}export{Ip as M,Ap as R,vr as a,el as b,vp as c,as as d,nn as g,St as j,Zi as r,_p as t};
|