Files
owncast/static/web/_next/static/chunks/5197-71e496257358d5de.js
2023-07-10 01:36:23 +00:00

14 lines
118 KiB
JavaScript
Vendored
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5197],{26803:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},56338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,l=(r=n(5661))&&r.__esModule?r:{default:r};t.default=l,e.exports=l},5661:function(e,t,n){"use strict";var r=n(64836),l=n(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(42122)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(67294)),u=r(n(26803)),a=r(n(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var s=function(e,t){return o.createElement(a.default,(0,i.default)((0,i.default)({},e),{},{ref:t,icon:u.default}))};s.displayName="UpOutlined";var f=o.forwardRef(s);t.default=f},8799:function(e,t,n){"use strict";var r=n(75263).default,l=n(64836).default;t.Z=void 0;var i=l(n(10434)),o=l(n(38416)),u=l(n(18698)),a=l(n(27424)),c=l(n(5085)),s=l(n(56338)),f=l(n(94184)),p=l(n(82122)),d=r(n(67294)),h=n(31929),m=l(n(93319)),g=l(n(3236)),y=n(51130),x=n(46549),k=n(47419),v=n(71434),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>t.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},S=d.forwardRef(function(e,t){var n=d.useContext(h.ConfigContext),r=n.getPrefixCls,l=n.direction,S=d.useContext(g.default),w=d.useState(!1),E=(0,a.default)(w,2),C=E[0],F=E[1],A=d.useRef(null);d.useImperativeHandle(t,function(){return A.current});var O=e.className,P=e.size,T=e.disabled,D=e.prefixCls,I=e.addonBefore,L=e.addonAfter,M=e.prefix,z=e.bordered,N=void 0===z||z,j=e.readOnly,R=e.status,_=e.controls,B=b(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),H=r("input-number",D),U=(0,x.useCompactItemContext)(H,l),V=U.compactSize,q=U.compactItemClassnames,$=d.createElement(s.default,{className:"".concat(H,"-handler-up-inner")}),W=d.createElement(c.default,{className:"".concat(H,"-handler-down-inner")}),Z="boolean"==typeof _?_:void 0;"object"===(0,u.default)(_)&&($=void 0===_.upIcon?$:d.createElement("span",{className:"".concat(H,"-handler-up-inner")},_.upIcon),W=void 0===_.downIcon?W:d.createElement("span",{className:"".concat(H,"-handler-down-inner")},_.downIcon));var Q=(0,d.useContext)(y.FormItemInputContext),Y=Q.hasFeedback,K=Q.status,X=Q.isFormItemInput,J=Q.feedbackIcon,G=(0,v.getMergedStatus)(K,R),ee=V||P||S,et=d.useContext(m.default),en=null!=T?T:et,er=(0,f.default)((ei={},(0,o.default)(ei,"".concat(H,"-lg"),"large"===ee),(0,o.default)(ei,"".concat(H,"-sm"),"small"===ee),(0,o.default)(ei,"".concat(H,"-rtl"),"rtl"===l),(0,o.default)(ei,"".concat(H,"-borderless"),!N),(0,o.default)(ei,"".concat(H,"-in-form-item"),X),ei),(0,v.getStatusClassNames)(H,G),q,O),el=d.createElement(p.default,(0,i.default)({ref:A,disabled:en,className:er,upHandler:$,downHandler:W,prefixCls:H,readOnly:j,controls:Z},B));if(null!=M||Y){var ei,eo,eu=(0,f.default)("".concat(H,"-affix-wrapper"),(0,v.getStatusClassNames)("".concat(H,"-affix-wrapper"),G,Y),(eo={},(0,o.default)(eo,"".concat(H,"-affix-wrapper-focused"),C),(0,o.default)(eo,"".concat(H,"-affix-wrapper-disabled"),e.disabled),(0,o.default)(eo,"".concat(H,"-affix-wrapper-sm"),"small"===S),(0,o.default)(eo,"".concat(H,"-affix-wrapper-lg"),"large"===S),(0,o.default)(eo,"".concat(H,"-affix-wrapper-rtl"),"rtl"===l),(0,o.default)(eo,"".concat(H,"-affix-wrapper-readonly"),j),(0,o.default)(eo,"".concat(H,"-affix-wrapper-borderless"),!N),(0,o.default)(eo,"".concat(O),!(I||L)&&O),eo));el=d.createElement("div",{className:eu,style:e.style,onMouseUp:function(){return A.current.focus()}},M&&d.createElement("span",{className:"".concat(H,"-prefix")},M),(0,k.cloneElement)(el,{style:null,value:e.value,onFocus:function(t){var n;F(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;F(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),Y&&d.createElement("span",{className:"".concat(H,"-suffix")},J))}if(null!=I||null!=L){var ea,ec="".concat(H,"-group"),es="".concat(ec,"-addon"),ef=I?d.createElement("div",{className:es},I):null,ep=L?d.createElement("div",{className:es},L):null,ed=(0,f.default)("".concat(H,"-wrapper"),ec,(0,o.default)({},"".concat(ec,"-rtl"),"rtl"===l)),eh=(0,f.default)("".concat(H,"-group-wrapper"),(ea={},(0,o.default)(ea,"".concat(H,"-group-wrapper-sm"),"small"===S),(0,o.default)(ea,"".concat(H,"-group-wrapper-lg"),"large"===S),(0,o.default)(ea,"".concat(H,"-group-wrapper-rtl"),"rtl"===l),ea),(0,v.getStatusClassNames)("".concat(H,"-group-wrapper"),G,Y),O);el=d.createElement("div",{className:eh,style:e.style},d.createElement("div",{className:ed},ef&&d.createElement(x.NoCompactStyle,null,d.createElement(y.NoFormStyle,{status:!0,override:!0},ef)),(0,k.cloneElement)(el,{style:null,disabled:en}),ep&&d.createElement(x.NoCompactStyle,null,d.createElement(y.NoFormStyle,{status:!0,override:!0},ep))))}return el});t.Z=S},16373:function(e,t,n){"use strict";var r=n(64836).default,l=n(75263).default;t.default=void 0;var i=l(n(62704)),o=r(n(87412)),u=i.default;u.Header=i.Header,u.Footer=i.Footer,u.Content=i.Content,u.Sider=o.default,t.default=u},89277:function(e,t,n){"use strict";var r=n(75263).default,l=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(10434));l(n(18698));var o=r(n(67294));l(n(13594));var u=l(n(28460)),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>t.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},c=o.forwardRef(function(e,t){var n=e.ellipsis,r=e.rel,l=a(e,["ellipsis","rel"]),c=(0,i.default)((0,i.default)({},l),{rel:void 0===r&&"_blank"===l.target?"noopener noreferrer":r});return delete c.navigate,o.createElement(u.default,(0,i.default)({},c,{ref:t,ellipsis:!!n,component:"a"}))});t.default=c},21987:function(e,t,n){"use strict";var r=n(75263).default,l=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(10434)),o=r(n(67294)),u=l(n(28460)),a=o.forwardRef(function(e,t){return o.createElement(u.default,(0,i.default)({ref:t},e,{component:"div"}))});t.default=a},15394:function(e,t,n){"use strict";var r=n(75263).default,l=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(10434)),o=l(n(18698)),u=l(n(18475)),a=r(n(67294));l(n(13594));var c=l(n(28460)),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>t.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},f=a.forwardRef(function(e,t){var n=e.ellipsis,r=s(e,["ellipsis"]),l=a.useMemo(function(){return n&&"object"===(0,o.default)(n)?(0,u.default)(n,["expandable","rows"]):n},[n]);return a.createElement(c.default,(0,i.default)({ref:t},r,{ellipsis:l,component:"span"}))});t.default=f},53740:function(e,t,n){"use strict";var r=n(64836).default;t.default=void 0;var l=r(n(89277)),i=r(n(21987)),o=r(n(15394)),u=r(n(11700)),a=r(n(89652)).default;a.Text=o.default,a.Link=l.default,a.Title=u.default,a.Paragraph=i.default,t.default=a},93645:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function l(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19013),l=n(13882);function i(e,t){return(0,l.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(59910),l=n(13882),i=n(93645);function o(e,t,n){(0,l.Z)(2,arguments);var o=(0,r.Z)(e,t)/1e3;return(0,i.u)(null==n?void 0:n.roundingMethod)(o)}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,l=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},u=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(l)return l(e,n).value}return e[n]};e.exports=function e(){var t,n,r,l,c,s,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=a(f,n),f!==(l=a(t,n))&&(h&&l&&(o(l)||(c=i(l)))?(c?(c=!1,s=r&&i(r)?r:[]):s=r&&o(r)?r:{},u(f,{name:n,newValue:e(h,s,l)})):void 0!==l&&u(f,{name:n,newValue:l}));return f}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,a=/^\s+|\s+$/g;function c(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var s=1,f=1;function p(e){var t=e.match(n);t&&(s+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function d(){var e={line:s,column:f};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:s,column:f},this.source=a.source}h.prototype.content=e;var m=[];function g(t){var n=Error(a.source+":"+s+":"+f+": "+t);if(n.reason=t,n.filename=a.source,n.line=s,n.column=f,n.source=e,a.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(x(n);e=function(){var e=d(),n=y(l);if(n){if(k(),!y(i))return g("property missing ':'");var r=y(o),a=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return y(u),a}}();)!1!==e&&(n.push(e),x(n));return n}()}},48738:function(e){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},11163:function(e,t,n){e.exports=n(96885)},92703:function(e,t,n){"use strict";var r=n(50414);function l(){}function i(){}i.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,i,o){if(o!==r){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:l};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},71471:function(e,t){"use strict";/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n,r=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case u:case o:case p:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case m:case h:case a:return e;default:return t}}case l:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=a,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=h,t.Portal=l,t.Profiler=u,t.StrictMode=o,t.Suspense=p,t.SuspenseList=d,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===l},t.isProfiler=function(e){return y(e)===u},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===o||e===p||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},82143:function(e,t,n){"use strict";e.exports=n(71471)},61365:function(e,t,n){var r=n(18139);function l(e,t){var n,l,i,o=null;if(!e||"string"!=typeof e)return o;for(var u=r(e),a="function"==typeof t,c=0,s=u.length;c<s;c++)l=(n=u[c]).property,i=n.value,a?t(l,i,n):i&&(o||(o={}),o[l]=i);return o}e.exports=l,e.exports.default=l},7198:function(e,t,n){"use strict";n.d(t,{D:function(){return np}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return e1},contentInitial:function(){return eQ},disable:function(){return e0},document:function(){return eZ},flow:function(){return eK},flowInitial:function(){return eY},insideSpan:function(){return eG},string:function(){return eX},text:function(){return eJ}});var l={};n.r(l),n.d(l,{boolean:function(){return tI},booleanish:function(){return tL},commaOrSpaceSeparated:function(){return tR},commaSeparated:function(){return tj},number:function(){return tz},overloadedBoolean:function(){return tM},spaceSeparated:function(){return tN}});var i=n(67294),o=n(48738);function u(e){return e&&"object"==typeof e?"position"in e||"type"in e?c(e.position):"start"in e||"end"in e?c(e):"line"in e||"column"in e?a(e):"":""}function a(e){return s(e&&e.line)+":"+s(e&&e.column)}function c(e){return a(e&&e.start)+"-"+a(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}class f extends Error{constructor(e,t,n){let r=[null,null],l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(l=t.position):"start"in t||"end"in t?l=t:("line"in t||"column"in t)&&(l.start=t)),this.name=u(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}f.prototype.file="",f.prototype.name="",f.prototype.reason="",f.prototype.message="",f.prototype.stack="",f.prototype.fatal=null,f.prototype.column=null,f.prototype.line=null,f.prototype.source=null,f.prototype.ruleId=null,f.prototype.position=null;let p={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');d(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),u>-1&&(e.charCodeAt(i)===t.charCodeAt(u--)?u<0&&(l=i):(u=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},dirname:function(e){let t;if(d(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;d(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let u=e.charCodeAt(n);if(47===u){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===u?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)d(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){d(e);let t=47===e.charCodeAt(0),n=function(e,t){let n,r,l="",i=0,o=-1,u=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.charCodeAt(a);else if(47===n)break;else n=47;if(47===n){if(o===a-1||1===u);else if(o!==a-1&&2===u){if(l.length<2||2!==i||46!==l.charCodeAt(l.length-1)||46!==l.charCodeAt(l.length-2)){if(l.length>2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=a,u=0;continue}}else if(l.length>0){l="",i=0,o=a,u=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,a):l=e.slice(o+1,a),i=a-o-1;o=a,u=0}else 46===n&&u>-1?u++:u=-1}return l}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function d(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function h(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t,n;t=e?"string"==typeof e||o(e)?{value:e}:h(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++r<m.length;){let e=m[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)m.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){h(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!h(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){let e=t.charCodeAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),x(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?p.dirname(this.path):void 0}set dirname(e){k(this.basename,"dirname"),this.path=p.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?p.basename(this.path):void 0}set basename(e){x(e,"basename"),y(e,"basename"),this.path=p.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?p.extname(this.path):void 0}set extname(e){if(y(e,"extname"),k(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=p.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?p.basename(this.path,this.extname):void 0}set stem(e){x(e,"stem"),y(e,"stem"),this.path=p.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){let r=new f(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}}function y(e,t){if(e&&e.includes(p.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+p.sep+"`")}function x(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function k(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function v(e){if(e)throw e}var b=n(94470);function S(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let w=(function e(){let t;let n=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function l(i,...o){let u=e[++n],a=-1;if(i){r(i);return}for(;++a<t.length;)(null===o[a]||void 0===o[a])&&(o[a]=t[a]);t=o,u?(function(e,t){let n;return function(...t){let i;let o=e.length>t.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i instanceof Promise?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(u,l)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],l={},i=-1;return u.data=function(e,n){return"string"==typeof e?2==arguments.length?(O("data",t),l[e]=n,u):E.call(l,e)&&l[e]||null:e?(O("data",t),l=e,u):l},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(t)return u;for(;++i<r.length;){let[e,...t]=r[i];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let l=e.call(u,...t);"function"==typeof l&&n.use(l)}return t=!0,i=Number.POSITIVE_INFINITY,u},u.attachers=r,u.use=function(e,...n){let i;if(O("use",t),null==e);else if("function"==typeof e)c(e,...n);else if("object"==typeof e)Array.isArray(e)?a(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return i&&(l.settings=Object.assign(l.settings||{},i)),u;function o(e){a(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){let n=e[t];!function(e){if("function"==typeof e)c(e);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;c(t,...n)}else o(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function c(e,t){let n,l=-1;for(;++l<r.length;)if(r[l][0]===e){n=r[l];break}n?(S(n[1])&&S(t)&&(t=b(!0,n[1],t)),n[1]=t):r.push([...arguments])}},u.parse=function(e){u.freeze();let t=D(e),n=u.Parser;return(F("parse",n),C(n,"parse"))?new n(String(t),t).parse():n(String(t),t)},u.stringify=function(e,t){u.freeze();let n=D(t),r=u.Compiler;return(A("stringify",r),P(e),C(r,"compile"))?new r(e,n).compile():r(e,n)},u.run=function(e,t,r){if(P(e),u.freeze(),r||"function"!=typeof t||(r=t,t=void 0),!r)return new Promise(l);function l(l,i){n.run(e,D(t),function(t,n,o){n=n||e,t?i(t):l?l(n):r(null,n,o)})}l(null,r)},u.runSync=function(e,t){let n,r;return u.run(e,t,function(e,t){v(e),n=t,r=!0}),T("runSync","run",r),n},u.process=function(e,t){if(u.freeze(),F("process",u.Parser),A("process",u.Compiler),!t)return new Promise(n);function n(n,r){let l=D(e);function i(e,l){e||!l?r(e):n?n(l):t(null,l)}u.run(u.parse(l),l,(e,t,n)=>{if(!e&&t&&n){let r=u.stringify(t,n);null==r||("string"==typeof r||o(r)?n.value=r:n.result=r),i(e,n)}else i(e)})}n(null,t)},u.processSync=function(e){let t;u.freeze(),F("processSync",u.Parser),A("processSync",u.Compiler);let n=D(e);return u.process(n,function(e){t=!0,v(e)}),T("processSync","process",t),n},u;function u(){let t=e(),n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(b(!0,{},l)),t}})().freeze(),E={}.hasOwnProperty;function C(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(E.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function F(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function A(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function O(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function P(e){if(!S(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function T(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function D(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new g(e)}let I={};function L(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return M(e.children,t,n)}return Array.isArray(e)?M(e,t,n):""}function M(e,t,n){let r=[],l=-1;for(;++l<e.length;)r[l]=L(e[l],t,n);return r.join("")}function z(e,t,n,r){let l;let i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)(l=r.slice(o,o+1e4)).unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function N(e,t){return e.length>0?(z(e,e.length,0,t),e):t}let j={}.hasOwnProperty,R=K(/[A-Za-z]/),_=K(/[\dA-Za-z]/),B=K(/[#-'*+\--9=?A-Z^-~]/);function H(e){return null!==e&&(e<32||127===e)}let U=K(/\d/),V=K(/[\dA-Fa-f]/),q=K(/[!-/:-@[-`{-~]/);function $(e){return null!==e&&e<-2}function W(e){return null!==e&&(e<0||32===e)}function Z(e){return -2===e||-1===e||32===e}let Q=K(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Y=K(/\s/);function K(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function X(e,t,n,r){let l=r?r-1:Number.POSITIVE_INFINITY,i=0;return function(r){return Z(r)?(e.enter(n),function r(o){return Z(o)&&i++<l?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let J={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),X(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return $(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},G={tokenize:function(e){let t,n,r;let l=this,i=[],o=0;return u;function u(t){if(o<i.length){let n=i[o];return l.containerState=n[1],e.attempt(n[0].continuation,a,c)(t)}return c(t)}function a(e){if(o++,l.containerState._closeFlow){let n;l.containerState._closeFlow=void 0,t&&y();let r=l.events.length,i=r;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}g(o);let u=r;for(;u<l.events.length;)l.events[u][1].end=Object.assign({},n),u++;return z(l.events,i+1,0,l.events.slice(r)),l.events.length=u,c(e)}return u(e)}function c(n){if(o===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);l.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(ee,s,f)(n)}function s(e){return t&&y(),g(o),p(e)}function f(e){return l.parser.lazy[l.now().line]=o!==i.length,r=l.now().offset,h(e)}function p(t){return l.containerState={},e.attempt(ee,d,h)(t)}function d(e){return o++,i.push([l.currentConstruct,l.containerState]),p(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return $(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,l.interrupt=void 0,u):(e.consume(n),t)}(r)}function m(e,i){let u=l.sliceStream(e);if(i&&u.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(u),l.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let u=l.events.length,a=u;for(;a--;)if("exit"===l.events[a][0]&&"chunkFlow"===l.events[a][1].type){if(e){n=l.events[a][1].end;break}e=!0}for(g(o),i=u;i<l.events.length;)l.events[i][1].end=Object.assign({},n),i++;z(l.events,a+1,0,l.events.slice(u)),l.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function y(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},ee={tokenize:function(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},et={tokenize:function(e,t,n){return function(t){return Z(t)?X(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||$(e)?t(e):n(e)}},partial:!0};function en(e){let t,n,r,l,i,o,u;let a={},c=-1;for(;++c<e.length;){for(;(c in a);)c=a[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r;let l=e[t][1],i=e[t][2],o=t-1,u=[],a=l._tokenizer||i.parser[l.contentType](l.start),c=a.events,s=[],f={},p=-1,d=l,h=0,m=0,g=[m];for(;d;){for(;e[++o][1]!==d;);u.push(o),!d._tokenizer&&(n=i.sliceStream(d),d.next||n.push(null),r&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=l;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=u.pop();s.unshift([n,n+t.length-1]),z(e,n,2,t)}for(p=-1;++p<s.length;)f[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return f}(e,c)),c=a[c],u=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(l=e[r])[1].type||"lineEndingBlank"===l[1].type)"enter"===l[0]&&(n&&(e[n][1].type="lineEndingBlank"),l[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(i=e.slice(n,c)).unshift(t),z(e,n,c-n+1,i))}}return!u}let er={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?l(t):$(t)?e.check(el,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return en(e),e}},el={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),X(e,l,"linePrefix")};function l(l){if(null===l||$(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}},partial:!0},ei={tokenize:function(e){let t=this,n=e.attempt(et,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,X(e,e.attempt(this.parser.constructs.flow,r,e.attempt(er,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eo={resolveAll:es()},eu=ec("string"),ea=ec("text");function ec(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return a(e)?l(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),u}function u(e){return a(e)?(t.exit("data"),l(e)):(t.consume(e),u)}function a(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l<t.length;){let e=t[l];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:es("text"===e?ef:void 0)}}function es(e){return function(t,n){let r,l=-1;for(;++l<=t.length;)void 0===r?t[l]&&"data"===t[l][1].type&&(r=l,l++):t[l]&&"data"===t[l][1].type||(l!==r+2&&(t[r][1].end=t[l-1][1].end,t.splice(r+2,l-r-2),l=r+2),r=void 0);return e?e(t,n):t}}function ef(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let l=e[n-1][1],i=t.sliceStream(l),o=i.length,u=-1,a=0;for(;o--;){let e=i[o];if("string"==typeof e){for(u=e.length;32===e.charCodeAt(u-1);)a++,u--;if(u)break;u=-1}else if(-2===e)r=!0,a++;else if(-1===e);else{o++;break}}if(a){let i={type:n===e.length||r||a<2?"lineSuffix":"hardBreakTrailing",start:{line:l.end.line,column:l.end.column-a,offset:l.end.offset-a,_index:l.start._index+o,_bufferIndex:o?u:l.start._bufferIndex+u},end:Object.assign({},l.end)};l.end=Object.assign({},i.start),l.start.offset===l.end.offset?Object.assign(l,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function ep(e,t,n){let r=[],l=-1;for(;++l<e.length;){let i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let ed={name:"thematicBreak",tokenize:function(e,t,n){let r,l=0;return function(i){return e.enter("thematicBreak"),r=i,function i(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),l++,t):(e.exit("thematicBreakSequence"),Z(n)?X(e,i,"whitespace")(n):i(n))}(o)):l>=3&&(null===o||$(o))?(e.exit("thematicBreak"),t(o)):n(o)}(i)}}},eh={name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:U(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(ed,n,u)(t):u(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return U(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),u(l)):n(l)}(t)}return n(t)};function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(et,r.interrupt?n:a,e.attempt(em,s,c))}function a(e){return r.containerState.initialBlankLine=!0,i++,s(e)}function c(t){return Z(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),s):n(t)}function s(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(et,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eg,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(eh,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)}},em={tokenize:function(e,t,n){let r=this;return X(e,function(e){let l=r.events[r.events.length-1];return!Z(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},eg={tokenize:function(e,t,n){let r=this;return X(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ey={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),l}return n(t)};function l(n){return Z(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return Z(t)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(ey,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ex(e,t,n,r,l,i,o,u,a){let c=a||Number.POSITIVE_INFINITY,s=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),f):null===t||32===t||41===t||H(t)?n(t):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||$(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(l){return!s&&(null===l||41===l||W(l))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(l)):s<c&&40===l?(e.consume(l),s++,h):41===l?(e.consume(l),s--,h):null===l||32===l||40===l||H(l)?n(l):(e.consume(l),92===l?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function ek(e,t,n,r,l,i){let o;let u=this,a=0;return function(t){return e.enter(r),e.enter(l),e.consume(t),e.exit(l),e.enter(i),c};function c(f){return a>999||null===f||91===f||93===f&&!o||94===f&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs?n(f):93===f?(e.exit(i),e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):$(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),s(f))}function s(t){return null===t||91===t||93===t||$(t)||a++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!Z(t)),92===t?f:s)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function ev(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,u):n(t)};function u(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),a(n))}function a(t){return t===o?(e.exit(i),u(o)):null===t?n(t):$(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),X(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||$(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?s:c)}function s(t){return t===o||92===t?(e.consume(t),c):c(t)}}function eb(e,t){let n;return function r(l){return $(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Z(l)?X(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function eS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ew={tokenize:function(e,t,n){return function(t){return W(t)?eb(e,r)(t):n(t)};function r(t){return ev(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return Z(t)?X(e,i,"whitespace")(t):i(t)}function i(e){return null===e||$(e)?t(e):n(e)}},partial:!0},eE={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),X(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):$(n)?e.attempt(eC,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||$(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},eC={tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):$(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):X(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):$(e)?l(e):n(e)}},partial:!0},eF={name:"setextUnderline",tokenize:function(e,t,n){let r;let l=this;return function(t){let o,u=l.events.length;for(;u--;)if("lineEnding"!==l.events[u][1].type&&"linePrefix"!==l.events[u][1].type&&"content"!==l.events[u][1].type){o="paragraph"===l.events[u][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),Z(n)?X(e,i,"lineSuffix")(n):i(n))}(t)):n(t)};function i(r){return null===r||$(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[l][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},eA=["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"],eO=["pre","script","style","textarea"],eP={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(et,t,n)}},partial:!0},eT={tokenize:function(e,t,n){let r=this;return function(t){return $(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eD={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eI={name:"codeFenced",tokenize:function(e,t,n){let r;let l=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),Z(t)?X(e,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=u?(e.exit("codeFencedFenceSequence"),Z(l)?X(e,c,"whitespace")(l):c(l)):n(l)}(t)):n(t)}function c(r){return null===r||$(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o=0,u=0;return function(t){return function(t){let i=l.events[l.events.length-1];return o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(u++,e.consume(l),t):u<3?n(l):(e.exit("codeFencedFenceSequence"),Z(l)?X(e,a,"whitespace")(l):a(l))}(t)}(t)};function a(i){return null===i||$(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(eD,s,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||$(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(l)):Z(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,c,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function c(t){return null===t||$(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||$(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function s(t){return e.attempt(i,h,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&Z(t)?X(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||$(t)?e.check(eD,s,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||$(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}},concrete:!0},eL=document.createElement("i");function eM(e){let t="&"+e+";";eL.innerHTML=t;let n=eL.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ez={name:"characterReference",tokenize:function(e,t,n){let r,l;let i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,l=_,c(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=V,c):(e.enter("characterReferenceValue"),r=7,l=U,c(t))}function c(u){if(59===u&&o){let r=e.exit("characterReferenceValue");return l!==_||eM(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return l(u)&&o++<r?(e.consume(u),c):n(u)}}},eN={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return q(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ej={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),X(e,t,"linePrefix")}}},eR={name:"labelEnd",tokenize:function(e,t,n){let r,l;let i=this,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(t){return r?r._inactive?s(t):(l=i.parser.defined.includes(eS(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u):n(t)};function u(t){return 40===t?e.attempt(e_,c,l?c:s)(t):91===t?e.attempt(eB,c,l?a:s)(t):l?c(t):s(t)}function a(t){return e.attempt(eH,c,s)(t)}function c(e){return t(e)}function s(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,l,i,o=e.length,u=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(l){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){u=2;break}}else"labelEnd"===n.type&&(l=o);let a={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[l][1].end)},s={type:"labelText",start:Object.assign({},e[r+u+2][1].end),end:Object.assign({},e[l-2][1].start)};return i=N(i=[["enter",a,t],["enter",c,t]],e.slice(r+1,r+u+3)),i=N(i,[["enter",s,t]]),i=N(i,ep(t.parser.constructs.insideSpan.null,e.slice(r+u+4,l-3),t)),i=N(i,[["exit",s,t],e[l-2],e[l-1],["exit",c,t]]),i=N(i,e.slice(l+1)),i=N(i,[["exit",a,t]]),z(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},e_={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return W(t)?eb(e,l)(t):l(t)}function l(t){return 41===t?c(t):ex(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return W(t)?eb(e,u)(t):c(t)}function o(e){return n(e)}function u(t){return 34===t||39===t||40===t?ev(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function a(t){return W(t)?eb(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},eB={tokenize:function(e,t,n){let r=this;return function(t){return ek.call(r,e,l,i,"reference","referenceMarker","referenceString")(t)};function l(e){return r.parser.defined.includes(eS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},eH={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},eU={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),l};function l(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eR.resolveAll};function eV(e){return null===e||W(e)||Y(e)?1:Q(e)?2:void 0}let eq={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,l=this.previous,i=eV(l);return function(o){return n=o,e.enter("attentionSequence"),function o(u){if(u===n)return e.consume(u),o;let a=e.exit("attentionSequence"),c=eV(u),s=!c||2===c&&i||r.includes(u),f=!i||2===i&&c||r.includes(l);return a._open=!!(42===n?s:s&&(i||!f)),a._close=!!(42===n?f:f&&(c||!s)),t(u)}(o)}},resolveAll:function(e,t){let n,r,l,i,o,u,a,c,s=-1;for(;++s<e.length;)if("enter"===e[s][0]&&"attentionSequence"===e[s][1].type&&e[s][1]._close){for(n=s;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[s][1]).charCodeAt(0)){if((e[n][1]._close||e[s][1]._open)&&(e[s][1].end.offset-e[s][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[s][1].end.offset-e[s][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[s][1].end.offset-e[s][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),p=Object.assign({},e[s][1].start);e$(f,-u),e$(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[s][1].start),end:p},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[s][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},i.start),e[s][1].start=Object.assign({},o.end),a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=N(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=N(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),a=N(a,ep(t.parser.constructs.insideSpan.null,e.slice(n+1,s),t)),a=N(a,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[s][1].end.offset-e[s][1].start.offset?(c=2,a=N(a,[["enter",e[s][1],t],["exit",e[s][1],t]])):c=0,z(e,n-1,s-n+3,a),s=n+a.length-c-2;break}}for(s=-1;++s<e.length;)"attentionSequence"===e[s][1].type&&(e[s][1].type="data");return e}};function e$(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eW={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),l};function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eR.resolveAll},eZ={42:eh,43:eh,45:eh,48:eh,49:eh,50:eh,51:eh,52:eh,53:eh,54:eh,55:eh,56:eh,57:eh,62:ey},eQ={91:{name:"definition",tokenize:function(e,t,n){let r;let l=this;return function(t){return e.enter("definition"),ek.call(l,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function i(t){return(r=eS(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return W(t)?eb(e,u)(t):u(t)}function u(t){return ex(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(ew,c,c)(t)}function c(t){return Z(t)?X(e,s,"whitespace")(t):s(t)}function s(i){return null===i||$(i)?(e.exit("definition"),l.parser.defined.push(r),t(i)):n(i)}}}},eY={[-2]:eE,[-1]:eE,32:eE},eK={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(l){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||W(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||$(r)?(e.exit("atxHeading"),t(r)):Z(r)?X(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||W(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(l)}},resolve:function(e,t){let n,r,l=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),l-2>i&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},z(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:ed,45:[eF,ed],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,l,i,o,u;let a=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),s):47===o?(e.consume(o),l=!0,d):63===o?(e.consume(o),r=3,a.interrupt?t:I):R(o)?(e.consume(o),i=String.fromCharCode(o),h):n(o)}function s(l){return 45===l?(e.consume(l),r=2,f):91===l?(e.consume(l),r=5,o=0,p):R(l)?(e.consume(l),r=4,a.interrupt?t:I):n(l)}function f(r){return 45===r?(e.consume(r),a.interrupt?t:I):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?a.interrupt?t:E:p:n(r)}function d(t){return R(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||W(o)){let u=47===o,c=i.toLowerCase();return!u&&!l&&eO.includes(c)?(r=1,a.interrupt?t(o):E(o)):eA.includes(i.toLowerCase())?(r=6,u)?(e.consume(o),m):a.interrupt?t(o):E(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(o):l?function t(n){return Z(n)?(e.consume(n),t):S(n)}(o):g(o))}return 45===o||_(o)?(e.consume(o),i+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:E):n(r)}function g(t){return 47===t?(e.consume(t),S):58===t||95===t||R(t)?(e.consume(t),y):Z(t)?(e.consume(t),g):S(t)}function y(t){return 45===t||46===t||58===t||95===t||_(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),k):Z(t)?(e.consume(t),x):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,v):Z(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||W(n)?x(n):(e.consume(n),t)}(t)}function v(t){return t===u?(e.consume(t),u=null,b):null===t||$(t)?n(t):(e.consume(t),v)}function b(e){return 47===e||62===e||Z(e)?g(e):n(e)}function S(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||$(t)?E(t):Z(t)?(e.consume(t),w):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),O):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),D):$(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eP,M,C)(t)):null===t||$(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),E)}function C(t){return e.check(eT,F,M)(t)}function F(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||$(t)?C(t):(e.enter("htmlFlowData"),E(t))}function O(t){return 45===t?(e.consume(t),I):E(t)}function P(t){return 47===t?(e.consume(t),i="",T):E(t)}function T(t){if(62===t){let n=i.toLowerCase();return eO.includes(n)?(e.consume(t),L):E(t)}return R(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):E(t)}function D(t){return 93===t?(e.consume(t),I):E(t)}function I(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),I):E(t)}function L(t){return null===t||$(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eF,95:ed,96:eI,126:eI},eX={38:ez,92:eN},eJ={[-5]:ej,[-4]:ej,[-3]:ej,33:eU,38:ez,42:eq,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return R(t)?(e.consume(t),i):u(t)}function i(t){return 43===t||45===t||46===t||_(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||_(n))&&r++<32?(e.consume(n),t):(r=0,u(n))}(t)):u(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||H(r)?n(r):(e.consume(r),o)}function u(t){return 64===t?(e.consume(t),a):B(t)?(e.consume(t),u):n(t)}function a(l){return _(l)?function l(i){return 46===i?(e.consume(i),r=0,a):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||_(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),x):R(t)?(e.consume(t),S):n(t)}function a(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),l=0,d):R(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function s(t){return null===t?n(t):45===t?(e.consume(t),f):$(t)?(i=s,T(t)):(e.consume(t),s)}function f(t){return 45===t?(e.consume(t),p):s(t)}function p(e){return 62===e?P(e):45===e?f(e):s(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):$(t)?(i=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?P(t):$(t)?(i=y,T(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),k):$(t)?(i=x,T(t)):(e.consume(t),x)}function k(e){return 62===e?P(e):x(e)}function v(t){return R(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||_(t)?(e.consume(t),b):function t(n){return $(n)?(i=t,T(n)):Z(n)?(e.consume(n),t):P(n)}(t)}function S(t){return 45===t||_(t)?(e.consume(t),S):47===t||62===t||W(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),P):58===t||95===t||R(t)?(e.consume(t),E):$(t)?(i=w,T(t)):Z(t)?(e.consume(t),w):P(t)}function E(t){return 45===t||46===t||58===t||95===t||_(t)?(e.consume(t),E):function t(n){return 61===n?(e.consume(n),C):$(n)?(i=t,T(n)):Z(n)?(e.consume(n),t):w(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,F):$(t)?(i=C,T(t)):Z(t)?(e.consume(t),C):(e.consume(t),A)}function F(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):$(t)?(i=F,T(t)):(e.consume(t),F)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||W(t)?w(t):(e.consume(t),A)}function O(e){return 47===e||62===e||W(e)?w(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return Z(t)?X(e,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),i(t)}}}],91:eW,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return $(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eN],93:eR,95:eq,96:{name:"codeText",tokenize:function(e,t,n){let r,l,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),o):96===a?(l=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(l.type="codeTextData",u(o))}(a)):$(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):(e.enter("codeTextData"),u(a))}function u(t){return null===t||32===t||96===t||$(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),u)}},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("codeTextData"===e[t][1].type){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},eG={null:[eq,eo]},e1={null:[42,95]},e0={null:[]},e2=/[\0\t\n\r]/g;function e4(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"<22>":String.fromCharCode(n)}let e6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e3(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return e4(n.slice(t?2:1),t?16:10)}return eM(n)||e}let e5={}.hasOwnProperty,e9=function(e,t,n){let l,i,o,a;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(v),autolinkProtocol:p,autolinkEmail:p,atxHeading:i(y),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:p,characterReference:p,codeFenced:i(g),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(g,o),codeText:i(function(){return{type:"inlineCode",value:""}},o),codeTextData:p,data:p,codeFlowValue:p,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(x),hardBreakTrailing:i(x),htmlFlow:i(k,o),htmlFlowData:p,htmlText:i(k,o),htmlTextData:p,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:i(v),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(n.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),n.expectingFirstListItemValue=void 0}},listOrdered:i(b,function(){n.expectingFirstListItemValue=!0}),listUnordered:i(b),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){n.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(y),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){d.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(e){let t;let r=this.sliceSerialize(e),l=n.characterReferenceType;if(l)t=e4(r,"characterReferenceMarkerNumeric"===l?10:16),n.characterReferenceType=void 0;else{let e=eM(r);t=e}let i=this.stack.pop();i.value+=t,i.position.end=e7(e.end)},codeFenced:c(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n.flowCodeInside=void 0}),codeFencedFence:function(){!n.flowCodeInside&&(this.buffer(),n.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:d,codeIndented:c(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:d,data:d,definition:c(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=eS(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:c(),hardBreakEscape:c(h),hardBreakTrailing:c(h),htmlFlow:c(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:d,htmlText:c(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:d,image:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(n.inReference=!0,"link"===r.type){let t=e.children;r.children=t}else r.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(e6,e3),n.identifier=eS(t).toLowerCase()},lineEnding:function(e){let r=this.stack[this.stack.length-1];if(n.atHardBreak){let t=r.children[r.children.length-1];t.position.end=e7(e.end),n.atHardBreak=void 0;return}!n.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(p.call(this,e),d.call(this,e))},link:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=eS(this.sliceSerialize(e)).toLowerCase(),n.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){n.inReference=void 0},setextHeading:c(function(){n.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){n.setextHeadingSlurpLineEnding=!0},strong:c(),thematicBreak:c()}};!function e(t,n){let r=-1;for(;++r<n.length;){let l=n[r];Array.isArray(l)?e(t,l):function(e,t){let n;for(n in t)if(e5.call(t,n)){if("canContainEols"===n){let r=t[n];r&&e[n].push(...r)}else if("transforms"===n){let r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){let r=t[n];r&&Object.assign(e[n],r)}}}(t,l)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let n={type:"root",children:[]},i={stack:[n],tokenStack:[],config:t,enter:a,exit:s,buffer:o,resume:f,setData:r,getData:l},u=[],c=-1;for(;++c<e.length;)if("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type){if("enter"===e[c][0])u.push(c);else{let t=u.pop();c=function(e,t,n){let r,l,i,o,u=t-1,a=-1,c=!1;for(;++u<=n;){let t=e[u];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?a++:a--,o=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||o||a||i||(i=u),o=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(o=void 0),!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=u;for(l=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",l=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!l||i<l)&&(r._spread=!0),r.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||u,0,["exit",r,t[2]]),u++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(u,0,["enter",r,t[2]]),u++,n++,i=void 0,o=!0)}}return e[t][1]._spread=c,n}(e,t,c)}}for(c=-1;++c<e.length;){let n=t[e[c][0]];e5.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},i),e[c][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1],t=e[1]||e8;t.call(i,void 0,e[0])}for(n.position={start:e7(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:e7(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)n=t.transforms[c](n)||n;return n};function r(e,t){n[e]=t}function l(e){return n[e]}function i(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){let r=this.stack[this.stack.length-1];return r.children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:e7(t.start)},e}function c(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r){if(r[0].type!==e.type){if(t)t.call(this,e,r[0]);else{let t=r[1]||e8;t.call(this,e,r[0])}}}else throw Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): its not open");return n.position.end=e7(e.end),n}function f(){return function(e,t){let n="boolean"!=typeof I.includeImageAlt||I.includeImageAlt,r="boolean"!=typeof I.includeHtml||I.includeHtml;return L(e,n,r)}(this.stack.pop())}function p(e){let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:e7(e.start)},t.children.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=e7(e.end)}function h(){n.atHardBreak=!0}function m(e){var t;t=e.type,n.characterReferenceType=t}function g(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:void 0,children:[]}}function x(){return{type:"break"}}function k(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!en(e););return e}((function(e){let t=function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r;let l=j.call(e,n)?e[n]:void 0,i=l||(e[n]={}),o=t[n];if(o)for(r in o){j.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);z(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:l(J),document:l(G),flow:l(ei),string:l(eu),text:l(ea)};return n;function l(e){return function(t){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),l={},i=[],o=[],u=[],a={consume:function(e){$(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),u.push(n),n},exit:function(e){let t=u.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:h(function(e,t){m(e,t.from)}),check:h(d),interrupt:h(d,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,l=[];for(;++r<e.length;){let i;let o=e[r];if("string"==typeof o)i=o;else switch(o){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(o)}n=-2===o,l.push(i)}return l.join("")}(f(e),t)},now:p,defineSkip:function(e){l[e.line]=e.column,g()},write:function(e){return(o=N(o,e),function(){let e;for(;r._index<o.length;){var t;let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;)s=s(n.charCodeAt(r._bufferIndex));else s=s(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=ep(i,c.events,c),c.events)}},s=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(e){return function(e,t){let n;let r=t.start._index,l=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;if(r===i)n=[e[r].slice(l,o)];else{if(n=e.slice(r,i),l>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{line:e,column:t,offset:n,_index:l,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:l,_bufferIndex:i}}function d(e,t){t.restore()}function h(e,t){return function(n,l,i){let o,s,f,d;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,l=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return h(l)(e)};function h(e){return(o=e,s=0,0===e.length)?i:m(e[s])}function m(e){return function(n){return(d=function(){let e=p(),t=c.previous,n=c.currentConstruct,l=c.events.length,i=Array.from(u);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=l,u=i,g()},from:l}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,a,y,x)(n)}}function y(t){return e(f,d),l}function x(e){return(d.restore(),++s<o.length)?m(o[s]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&z(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}(n,e,t)}}})(n).document().write((i=1,o="",a=!0,function(e,t,n){let r,u,c,s,f;let p=[];for(e=o+e.toString(t),c=0,o="",a&&(65279===e.charCodeAt(0)&&c++,a=void 0);c<e.length;){if(e2.lastIndex=c,s=(r=e2.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(s),!r){o=e.slice(c);break}if(10===f&&c===s&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),c<s&&(p.push(e.slice(c,s)),i+=s-c),f){case 0:p.push(65533),i++;break;case 9:for(u=4*Math.ceil(i/4),p.push(-2);i++<u;)p.push(-1);break;case 10:p.push(-4),i=1;break;default:l=!0,i=1}c=s+1}return n&&(l&&p.push(-5),o&&p.push(o),p.push(null)),p})(e,t,!0))))};function e7(e){return{line:e.line,column:e.column,offset:e.offset}}function e8(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is still open")}function te(e){Object.assign(this,{Parser:t=>{let n=this.data("settings");return e9(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function tt(e){let t=[],n=-1,r=0,l=0;for(;++n<e.length;){let i=e.charCodeAt(n),o="";if(37===i&&_(e.charCodeAt(n+1))&&_(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="<22>"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}let tn=function(e){if(null==e)return tl;if("string"==typeof e)return tr(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tn(e[n]);return tr(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):tr(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("function"==typeof e)return tr(e);throw Error("Expected function, string, or object as test")};function tr(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function tl(){return!0}let ti=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);let l=tn(t),i=r?-1:1;(function e(o,u,a){let c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(s,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return s;function s(){var c;let s,f,p,d=[];if((!t||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(c=n(o,a))?c:"number"==typeof c?[!0,c]:[c])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f<o.children.length;){if(!1===(s=e(o.children[f],f,p)())[0])return s;f="number"==typeof s[1]?s[1]:f+i}return d}})(e,void 0,[])()},to=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),ti(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},tu=tc("start"),ta=tc("end");function tc(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let ts={}.hasOwnProperty;function tf(e){return String(e||"").toUpperCase()}function tp(e,t){let n;let r=String(t.identifier).toUpperCase(),l=tt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=i+1);let o=e.footnoteCounts[r],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+l,id:e.clobberPrefix+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,a),e.applyData(t,a)}function td(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let l=e.all(t),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift({type:"text",value:"["});let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push({type:"text",value:r}),l}function th(e){let t=e.spread;return null==t?e.children.length>1:t}function tm(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let tg={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,l={};r&&(l.className=["language-"+r]);let i={type:"element",tagName:"code",properties:l,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:tp,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let l=String(r);return n[l]={type:"footnoteDefinition",identifier:l,children:[{type:"paragraph",children:t.children}],position:t.position},tp(e,{type:"footnoteReference",identifier:l,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return td(e,t);let r={src:tt(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return td(e,t);let r={href:tt(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let l={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=th(n[r])}return t}(n):th(t),i={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<r.length;){let e=r[u];(l||0!==u||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||l?o.push(e):o.push(...e.children)}let a=r[r.length-1];a&&(l||"element"!==a.type||"p"!==a.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),l=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++l<r.length;){let e=r[l];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),l=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),l.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=tu(t.children[1]),o=ta(t.children[t.children.length-1]);i.line&&o.line&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=r?r.indexOf(t):1,i=0===l?"th":"td",o=n&&"table"===n.type?n.align:void 0,u=o?o.length:t.children.length,a=-1,c=[];for(;++a<u;){let n=t.children[a],r={},l=o?o[a]:void 0;l&&(r.align=l);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(t,u)),c.push(u)}let s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,s),e.applyData(t,s)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),l=0,i=[];for(;r;)i.push(tm(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(tm(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ty,yaml:ty,definition:ty,footnoteDefinition:ty};function ty(){return null}let tx={}.hasOwnProperty;function tk(e,t){e.position&&(t.position={start:tu(e),end:ta(e)})}function tv(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&l&&(n.properties={...n.properties,...l}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tb(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return tx.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tS(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(tx.call(n,"hProperties")||tx.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:tS(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function tS(e,t){let n=[];if("children"in t){let r=t.children,l=-1;for(;++l<r.length;){let i=tb(e,r[l],t);if(i){if(l&&"break"===r[l-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function tw(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tE(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,l={};return o.dangerous=r,o.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...tg,...n.handlers},o.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return to(e,"definition",e=>{let n=tf(e.identifier);n&&!ts.call(t,n)&&(t[n]=e)}),function(e){let n=tf(e);return n&&ts.call(t,n)?t[n]:null}}(e),o.footnoteById=l,o.footnoteOrder=[],o.footnoteCounts={},o.patch=tk,o.applyData=tv,o.one=function(e,t){return tb(o,e,t)},o.all=function(e){return tS(o,e)},o.wrap=tw,o.augment=i,to(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();tx.call(l,t)||(l[t]=e)}),o;function i(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:tu(n),end:ta(n)})}return t}function o(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),l=function(e){let t=[],n=-1;for(;++n<e.footnoteOrder.length;){let r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;let l=e.all(r),i=String(r.identifier).toUpperCase(),o=tt(i.toLowerCase()),u=0,a=[];for(;++u<=e.footnoteCounts[i];){let t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(t)}let c=l[l.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...a)}else l.push(...a);let s={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(l,!0)};e.patch(r,s),t.push(s)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return l&&r.children.push({type:"text",value:"\n"},l),Array.isArray(r)?{type:"root",children:r}:r}var tC=function(e,t){var n;return e&&"run"in e?(n,r,l)=>{e.run(tE(n,t),r,e=>{l(e)})}:(n=e||t,e=>tE(e,n))},tF=n(45697);class tA{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function tO(e,t){let n={},r={},l=-1;for(;++l<e.length;)Object.assign(n,e[l].property),Object.assign(r,e[l].normal);return new tA(n,r,t)}function tP(e){return e.toLowerCase()}tA.prototype.property={},tA.prototype.normal={},tA.prototype.space=null;class tT{constructor(e,t){this.property=e,this.attribute=t}}tT.prototype.space=null,tT.prototype.boolean=!1,tT.prototype.booleanish=!1,tT.prototype.overloadedBoolean=!1,tT.prototype.number=!1,tT.prototype.commaSeparated=!1,tT.prototype.spaceSeparated=!1,tT.prototype.commaOrSpaceSeparated=!1,tT.prototype.mustUseProperty=!1,tT.prototype.defined=!1;let tD=0,tI=t_(),tL=t_(),tM=t_(),tz=t_(),tN=t_(),tj=t_(),tR=t_();function t_(){return 2**++tD}let tB=Object.keys(l);class tH extends tT{constructor(e,t,n,r){var i,o;let u=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++u<tB.length;){let e=tB[u];i=tB[u],(o=(n&l[e])===l[e])&&(this[i]=o)}}}tH.prototype.defined=!0;let tU={}.hasOwnProperty;function tV(e){let t;let n={},r={};for(t in e.properties)if(tU.call(e.properties,t)){let l=e.properties[t],i=new tH(t,e.transform(e.attributes||{},t),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),n[t]=i,r[tP(t)]=t,r[tP(i.attribute)]=t}return new tA(n,r,e.space)}let tq=tV({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),t$=tV({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tW(e,t){return t in e?e[t]:t}function tZ(e,t){return tW(e,t.toLowerCase())}let tQ=tV({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tZ,properties:{xmlns:null,xmlnsXLink:null}}),tY=tV({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tL,ariaAutoComplete:null,ariaBusy:tL,ariaChecked:tL,ariaColCount:tz,ariaColIndex:tz,ariaColSpan:tz,ariaControls:tN,ariaCurrent:null,ariaDescribedBy:tN,ariaDetails:null,ariaDisabled:tL,ariaDropEffect:tN,ariaErrorMessage:null,ariaExpanded:tL,ariaFlowTo:tN,ariaGrabbed:tL,ariaHasPopup:null,ariaHidden:tL,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tN,ariaLevel:tz,ariaLive:null,ariaModal:tL,ariaMultiLine:tL,ariaMultiSelectable:tL,ariaOrientation:null,ariaOwns:tN,ariaPlaceholder:null,ariaPosInSet:tz,ariaPressed:tL,ariaReadOnly:tL,ariaRelevant:null,ariaRequired:tL,ariaRoleDescription:tN,ariaRowCount:tz,ariaRowIndex:tz,ariaRowSpan:tz,ariaSelected:tL,ariaSetSize:tz,ariaSort:null,ariaValueMax:tz,ariaValueMin:tz,ariaValueNow:tz,ariaValueText:null,role:null}}),tK=tV({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tZ,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tj,acceptCharset:tN,accessKey:tN,action:null,allow:null,allowFullScreen:tI,allowPaymentRequest:tI,allowUserMedia:tI,alt:null,as:null,async:tI,autoCapitalize:null,autoComplete:tN,autoFocus:tI,autoPlay:tI,capture:tI,charSet:null,checked:tI,cite:null,className:tN,cols:tz,colSpan:null,content:null,contentEditable:tL,controls:tI,controlsList:tN,coords:tz|tj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tI,defer:tI,dir:null,dirName:null,disabled:tI,download:tM,draggable:tL,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tI,formTarget:null,headers:tN,height:tz,hidden:tI,high:tz,href:null,hrefLang:null,htmlFor:tN,httpEquiv:tN,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:tI,itemId:null,itemProp:tN,itemRef:tN,itemScope:tI,itemType:tN,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tI,low:tz,manifest:null,max:null,maxLength:tz,media:null,method:null,min:null,minLength:tz,multiple:tI,muted:tI,name:null,nonce:null,noModule:tI,noValidate:tI,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:tI,optimum:tz,pattern:null,ping:tN,placeholder:null,playsInline:tI,poster:null,preload:null,readOnly:tI,referrerPolicy:null,rel:tN,required:tI,reversed:tI,rows:tz,rowSpan:tz,sandbox:tN,scope:null,scoped:tI,seamless:tI,selected:tI,shape:null,size:tz,sizes:null,slot:null,span:tz,spellCheck:tL,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tz,step:null,style:null,tabIndex:tz,target:null,title:null,translate:null,type:null,typeMustMatch:tI,useMap:null,value:tL,width:tz,wrap:null,align:null,aLink:null,archive:tN,axis:null,background:null,bgColor:null,border:tz,borderColor:null,bottomMargin:tz,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tI,declare:tI,event:null,face:null,frame:null,frameBorder:null,hSpace:tz,leftMargin:tz,link:null,longDesc:null,lowSrc:null,marginHeight:tz,marginWidth:tz,noResize:tI,noHref:tI,noShade:tI,noWrap:tI,object:null,profile:null,prompt:null,rev:null,rightMargin:tz,rules:null,scheme:null,scrolling:tL,standby:null,summary:null,text:null,topMargin:tz,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tz,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tI,disableRemotePlayback:tI,prefix:null,property:null,results:tz,security:null,unselectable:null}}),tX=tV({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",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"},transform:tW,properties:{about:tR,accentHeight:tz,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tz,amplitude:tz,arabicForm:null,ascent:tz,attributeName:null,attributeType:null,azimuth:tz,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tz,by:null,calcMode:null,capHeight:tz,className:tN,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:tz,diffuseConstant:tz,direction:null,display:null,dur:null,divisor:tz,dominantBaseline:null,download:tI,dx:null,dy:null,edgeMode:null,editable:null,elevation:tz,enableBackground:null,end:null,event:null,exponent:tz,externalResourcesRequired:null,fill:null,fillOpacity:tz,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:tj,g2:tj,glyphName:tj,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tz,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tz,horizOriginX:tz,horizOriginY:tz,id:null,ideographic:tz,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tz,k:tz,k1:tz,k2:tz,k3:tz,k4:tz,kernelMatrix:tR,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tz,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tz,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:tz,overlineThickness:tz,paintOrder:null,panose1:null,path:null,pathLength:tz,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tN,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tz,pointsAtY:tz,pointsAtZ:tz,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tR,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tR,rev:tR,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tR,requiredFeatures:tR,requiredFonts:tR,requiredFormats:tR,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:tz,specularExponent:tz,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tz,strikethroughThickness:tz,string:null,stroke:null,strokeDashArray:tR,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tz,strokeOpacity:tz,strokeWidth:null,style:null,surfaceScale:tz,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tR,tabIndex:tz,tableValues:null,target:null,targetX:tz,targetY:tz,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tR,to:null,transform:null,u1:null,u2:null,underlinePosition:tz,underlineThickness:tz,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tz,values:null,vAlphabetic:tz,vMathematical:tz,vectorEffect:null,vHanging:tz,vIdeographic:tz,version:null,vertAdvY:tz,vertOriginX:tz,vertOriginY:tz,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tz,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tJ=tO([t$,tq,tQ,tY,tK],"html"),tG=tO([t$,tq,tQ,tY,tX],"svg"),t1=function(e){if(null==e)return t2;if("string"==typeof e)return t0(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=t1(e[n]);return t0(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):t0(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("function"==typeof e)return t0(e);throw Error("Expected function, string, or object as test")};function t0(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function t2(){return!0}let t4=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);let l=t1(t),i=r?-1:1;(function e(o,u,a){let c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(s,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return s;function s(){var c;let s,f,p,d=[];if((!t||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(c=n(o,a))?c:"number"==typeof c?[!0,c]:[c])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f<o.children.length;){if(!1===(s=e(o.children[f],f,p)())[0])return s;f="number"==typeof s[1]?s[1]:f+i}return d}})(e,void 0,[])()},t6=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),t4(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)};function t3(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{t6(t,"element",(t,n,r)=>{let l;if(e.allowedElements?l=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(t.tagName)),!l&&e.allowElement&&"number"==typeof n&&(l=!e.allowElement(t,n,r)),l&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var t5=n(82143);let t9=/^data[-\w.:]+$/i,t7=/-[a-z]/g,t8=/[A-Z]/g;function ne(e){return"-"+e.toLowerCase()}function nt(e){return e.charAt(1).toUpperCase()}let nn={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"};var nr=n(61365);let nl=["http","https","mailto","tel"];function ni(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let l=-1;for(;++l<nl.length;){let e=nl[l];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return -1!==(l=t.indexOf("?"))&&r>l||-1!==(l=t.indexOf("#"))&&r>l?t:"javascript:void(0)"}let no={}.hasOwnProperty,nu=new Set(["table","thead","tbody","tfoot","tr"]);function na(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function nc(e,t){return t.toUpperCase()}let ns={}.hasOwnProperty,nf={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function np(e){for(let t in nf)if(ns.call(nf,t)&&ns.call(e,t)){let e=nf[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete nf[t]}let t=w().use(te).use(e.remarkPlugins||[]).use(tC,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(t3,e),n=new g;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let l=i.createElement(i.Fragment,{},function e(t,n){let r;let l=[],o=-1;for(;++o<n.children.length;)"element"===(r=n.children[o]).type?l.push(function(t,n,r,l){let o;let u=t.options,a=void 0===u.transformLinkUri?ni:u.transformLinkUri,c=t.schema,s=n.tagName,f={},p=c;if("html"===c.space&&"svg"===s&&(p=tG,t.schema=p),n.properties)for(o in n.properties)no.call(n.properties,o)&&function(e,t,n,r){let l=function(e,t){let n=tP(t),r=t,l=tT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&t9.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(t7,nt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!t7.test(e)){let n=e.replace(t8,ne);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=tH}return new l(r,t)}(r.schema,t),i=n;null!=i&&i==i&&(Array.isArray(i)&&(i=l.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===l.property&&"string"==typeof i&&(i=function(e){let t={};try{nr(e,function(e,n){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,nc)]=n})}catch{}return t}(i)),l.space&&l.property?e[no.call(nn,l.property)?nn[l.property]:l.property]=i:l.attribute&&(e[l.attribute]=i))}(f,o,n.properties[o],t);("ol"===s||"ul"===s)&&t.listDepth++;let d=e(t,n);("ol"===s||"ul"===s)&&t.listDepth--,t.schema=c;let h=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=u.components&&no.call(u.components,s)?u.components[s]:s,g="string"==typeof m||m===i.Fragment;if(!t5.isValidElementType(m))throw TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(f.key=r,"a"===s&&u.linkTarget&&(f.target="function"==typeof u.linkTarget?u.linkTarget(String(f.href||""),n.children,"string"==typeof f.title?f.title:null):u.linkTarget),"a"===s&&a&&(f.href=a(String(f.href||""),n.children,"string"==typeof f.title?f.title:null)),g||"code"!==s||"element"!==l.type||"pre"===l.tagName||(f.inline=!0),g||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(f.level=Number.parseInt(s.charAt(1),10)),"img"===s&&u.transformImageUri&&(f.src=u.transformImageUri(String(f.src||""),String(f.alt||""),"string"==typeof f.title?f.title:null)),!g&&"li"===s&&"element"===l.type){let e=function(e){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(n);f.checked=e&&e.properties?!!e.properties.checked:null,f.index=na(l,n),f.ordered="ol"===l.tagName}return g||"ol"!==s&&"ul"!==s||(f.ordered="ol"===s,f.depth=t.listDepth),"td"!==s&&"th"!==s||(f.align&&(f.style||(f.style={}),f.style.textAlign=f.align,delete f.align),g||(f.isHeader="th"===s)),g||"tr"!==s||"element"!==l.type||(f.isHeader="thead"===l.tagName),u.sourcePos&&(f["data-sourcepos"]=[h.start.line,":",h.start.column,"-",h.end.line,":",h.end.column].map(String).join("")),!g&&u.rawSourcePos&&(f.sourcePosition=n.position),!g&&u.includeElementIndex&&(f.index=na(l,n),f.siblingCount=na(l)),g||(f.node=n),d.length>0?i.createElement(m,f,d):i.createElement(m,f)}(t,r,o,n)):"text"===r.type?"element"===n.type&&nu.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||l.push(r.value):"raw"!==r.type||t.options.skipHtml||l.push(r.value);return l}({options:e,schema:tJ,listDepth:0},r));return e.className&&(l=i.createElement("div",{className:e.className},l)),l}np.propTypes={children:tF.string,className:tF.string,allowElement:tF.func,allowedElements:tF.arrayOf(tF.string),disallowedElements:tF.arrayOf(tF.string),unwrapDisallowed:tF.bool,remarkPlugins:tF.arrayOf(tF.oneOfType([tF.object,tF.func,tF.arrayOf(tF.oneOfType([tF.bool,tF.string,tF.object,tF.func,tF.arrayOf(tF.any)]))])),rehypePlugins:tF.arrayOf(tF.oneOfType([tF.object,tF.func,tF.arrayOf(tF.oneOfType([tF.bool,tF.string,tF.object,tF.func,tF.arrayOf(tF.any)]))])),sourcePos:tF.bool,rawSourcePos:tF.bool,skipHtml:tF.bool,includeElementIndex:tF.bool,transformLinkUri:tF.oneOfType([tF.func,tF.bool]),linkTarget:tF.oneOfType([tF.func,tF.string]),transformImageUri:tF.func,components:tF.object}}}]);