!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("process")):"function"==typeof define&&define.amd?define(["process"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactMarkdown=n(e.process)}(this,(function(e){"use strict";var n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),t={exports:{}};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;r1?n-1:0),r=1;r1){for(var s=Array(c),f=0;f1){for(var d=Array(p),h=0;h import('./MyComponent'))",n);var r=e;r._status=1,r._result=t}}),(function(n){if(0===e._status){var t=e;t._status=2,t._result=n}}))}if(1===e._status)return e._result;throw e._result}function ce(n){return"string"==typeof n||"function"==typeof n||n===e.Fragment||n===e.Profiler||n===m||n===e.StrictMode||n===e.Suspense||n===u||n===y||"object"===r(n)&&null!==n&&(n.$$typeof===f||n.$$typeof===c||n.$$typeof===i||n.$$typeof===a||n.$$typeof===l||n.$$typeof===h||n.$$typeof===p||n[0]===d)}function se(){var e=k.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,pe,de,he,me,ye,ge,ve=0;function be(){}be.__reactDisabledLog=!0;var ke,xe=C.ReactCurrentDispatcher;function we(e,n,t){if(void 0===ke)try{throw Error()}catch(oc){var r=oc.stack.trim().match(/\n( *(at )?)/);ke=r&&r[1]||""}return"\n"+ke+e}var Se,Ee=!1,Ce="function"==typeof WeakMap?WeakMap:Map;function Oe(e,t){if(!e||Ee)return"";var o,i=Se.get(e);if(void 0!==i)return i;Ee=!0;var a,l=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=xe.current,xe.current=null,function(){if(0===ve){fe=console.log,pe=console.info,de=console.warn,he=console.error,me=console.group,ye=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ve++}();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.construct){try{Reflect.construct(u,[])}catch(oc){o=oc}Reflect.construct(e,[],u)}else{try{u.call()}catch(oc){o=oc}e.call(u.prototype)}}else{try{throw Error()}catch(oc){o=oc}e()}}catch(y){if(y&&o&&"string"==typeof y.stack){for(var c=y.stack.split("\n"),s=o.stack.split("\n"),f=c.length-1,p=s.length-1;f>=1&&p>=0&&c[f]!==s[p];)p--;for(;f>=1&&p>=0;f--,p--)if(c[f]!==s[p]){if(1!==f||1!==p)do{if(f--,--p<0||c[f]!==s[p]){var d="\n"+c[f].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,d),d}}while(f>=1&&p>=0);break}}}finally{Ee=!1,xe.current=a,function(){if(0==--ve){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},e,{value:fe}),info:n({},e,{value:pe}),warn:n({},e,{value:de}),error:n({},e,{value:he}),group:n({},e,{value:me}),groupCollapsed:n({},e,{value:ye}),groupEnd:n({},e,{value:ge})})}ve<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=l}var h=e?e.displayName||e.name:"",m=h?we(h):"";return"function"==typeof e&&Se.set(e,m),m}function Pe(e,n,t){return Oe(e,!1)}function _e(n,t,o){if(null==n)return"";if("function"==typeof n)return Oe(n,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(n));if("string"==typeof n)return we(n);switch(n){case e.Suspense:return we("Suspense");case u:return we("SuspenseList")}if("object"===r(n))switch(n.$$typeof){case l:return Pe(n.render);case c:return _e(n.type,t,o);case p:return Pe(n._render);case f:var i=n,a=i._payload,s=i._init;try{return _e(s(a),t,o)}catch(oc){}}return""}Se=new Ce;var Fe,Te={},Ae=C.ReactDebugCurrentFrame;function Re(e){if(e){var n=e._owner,t=_e(e.type,e._source,n?n.type:null);Ae.setExtraStackFrame(t)}else Ae.setExtraStackFrame(null)}function Ie(e){if(e){var n=e._owner;E(_e(e.type,e._source,n?n.type:null))}else E(null)}function De(){if(x.current){var e=B(x.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function je(e){return null!=e&&void 0!==(n=e.__source)?"\n\nCheck your code at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+".":"";var n}Fe=!1;var Me={};function Le(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=De();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!Me[t]){Me[t]=!0;var r="";e&&e._owner&&e._owner!==x.current&&(r=" It was passed a child from "+B(e._owner.type)+"."),Ie(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),Ie(null)}}}function $e(e,n){if("object"===r(e))if(Array.isArray(e))for(var t=0;t",l=" Did you accidentally export a JSX literal instead of a component?"):u=r(n),P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,l)}var s=G.apply(this,arguments);if(null==s)return s;if(a)for(var f=2;f is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,P("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){l||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),l=!0)}}}),t.Consumer=u,t._currentRenderer=null,t._currentRenderer2=null,t},e.createElement=Ve,e.createFactory=function(e){var n=Be.bind(null,e);return n.type=e,Ue||(Ue=!0,O("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(n,"type",{enumerable:!1,get:function(){return O("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===c?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?P("forwardRef requires a render function but was given %s.",null===e?"null":r(e)):0!==e.length&&2!==e.length&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var n,t={$$typeof:l,render:e};return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,null==e.displayName&&(e.displayName=t)}}),t},e.isValidElement=ne,e.lazy=function(e){var n,t,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return n},set:function(e){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return t},set:function(e){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},e.memo=function(e,n){ce(e)||P("memo: The first argument must be a component. Instead received: %s",null===e?"null":r(e));var t,o={$$typeof:c,type:e,compare:void 0===n?null:n};return Object.defineProperty(o,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,null==e.displayName&&(e.displayName=n)}}),o},e.useCallback=function(e,n){return se().useCallback(e,n)},e.useContext=function(e,n){var t=se();if(void 0!==n&&P("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",n,"number"==typeof n&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e,n)},e.useDebugValue=function(e,n){return se().useDebugValue(e,n)},e.useEffect=function(e,n){return se().useEffect(e,n)},e.useImperativeHandle=function(e,n,t){return se().useImperativeHandle(e,n,t)},e.useLayoutEffect=function(e,n){return se().useLayoutEffect(e,n)},e.useMemo=function(e,n){return se().useMemo(e,n)},e.useReducer=function(e,n,t){return se().useReducer(e,n,t)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()}(B),"production"===n.default.env.NODE_ENV?t.exports=i:t.exports=B;var U={}.hasOwnProperty,H=function(e){return e&&"object"===r(e)?U.call(e,"position")||U.call(e,"type")?q(e.position):U.call(e,"start")||U.call(e,"end")?q(e):U.call(e,"line")||U.call(e,"column")?V(e):"":""};function V(e){return e&&"object"===r(e)||(e={}),W(e.line)+":"+W(e.column)}function q(e){return e&&"object"===r(e)||(e={}),V(e.start)+"-"+V(e.end)}function W(e){return e&&"number"==typeof e?e:1}var Y=H,X=J;function Q(){}Q.prototype=Error.prototype,J.prototype=new Q;var K=J.prototype;function J(e,n,t){var r,o,i;"string"==typeof n&&(t=n,n=null),r=function(e){var n,t=[null,null];return"string"==typeof e&&(-1===(n=e.indexOf(":"))?t[1]=e:(t[0]=e.slice(0,n),t[1]=e.slice(n+1))),t}(t),o=Y(n)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},n&&n.position&&(n=n.position),n&&(n.start?(i=n,n=n.start):i.start=n),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=n?n.line:null,this.column=n?n.column:null,this.location=i,this.source=r[0],this.ruleId=r[1]}K.file="",K.name="",K.reason="",K.message="",K.stack="",K.fatal=null,K.column=null,K.line=null;var Z={};function G(e){var n,t;return ee(e),n=47===e.charCodeAt(0),(t=function(e,n){for(var t,r,o="",i=0,a=-1,l=0,u=-1;++u<=e.length;){if(u2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=u,l=0;continue}}else if(o.length){o="",i=0,a=u,l=0;continue}n&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(a+1,u):o=e.slice(a+1,u),i=u-a-1;a=u,l=0}else 46===t&&l>-1?l++:l=-1}return o}(e,!n)).length||n||(t="."),t.length&&47===e.charCodeAt(e.length-1)&&(t+="/"),n?"/"+t:t}function ee(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}Z.basename=function(e,n){var t,r,o,i,a=0,l=-1;if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');if(ee(e),t=e.length,void 0===n||!n.length||n.length>e.length){for(;t--;)if(47===e.charCodeAt(t)){if(o){a=t+1;break}}else l<0&&(o=!0,l=t+1);return l<0?"":e.slice(a,l)}if(n===e)return"";for(r=-1,i=n.length-1;t--;)if(47===e.charCodeAt(t)){if(o){a=t+1;break}}else r<0&&(o=!0,r=t+1),i>-1&&(e.charCodeAt(t)===n.charCodeAt(i--)?i<0&&(l=t):(i=-1,l=r));return a===l?l=r:l<0&&(l=e.length),e.slice(a,l)},Z.dirname=function(e){var n,t,r;if(ee(e),!e.length)return".";for(n=-1,r=e.length;--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)},Z.extname=function(e){var n,t,r,o=-1,i=0,a=-1,l=0;for(ee(e),r=e.length;r--;)if(47!==(t=e.charCodeAt(r)))a<0&&(n=!0,a=r+1),46===t?o<0?o=r:1!==l&&(l=1):o>-1&&(l=-1);else if(n){i=r+1;break}return o<0||a<0||0===l||1===l&&o===a-1&&o===i+1?"":e.slice(o,a)},Z.join=function(){for(var e,n=-1;++n * @license MIT */},te=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},re=Z,oe=ne,ie=te,ae=ce,le={}.hasOwnProperty,ue=["history","path","basename","stem","extname","dirname"];function ce(e){var n,t;if(e){if("string"==typeof e||ie(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof ce))return new ce(e);for(this.data={},this.messages=[],this.history=[],this.cwd=oe.cwd(),t=-1;++t-1)throw new Error("`"+n+"` cannot be a path: did not expect `"+re.sep+"`")}function fe(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pe(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}ce.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(ce.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){fe(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(ce.prototype,"dirname",{get:function(){return"string"==typeof this.path?re.dirname(this.path):void 0},set:function(e){pe(this.path,"dirname"),this.path=re.join(e||"",this.basename)}}),Object.defineProperty(ce.prototype,"basename",{get:function(){return"string"==typeof this.path?re.basename(this.path):void 0},set:function(e){fe(e,"basename"),se(e,"basename"),this.path=re.join(this.dirname||"",e)}}),Object.defineProperty(ce.prototype,"extname",{get:function(){return"string"==typeof this.path?re.extname(this.path):void 0},set:function(e){if(se(e,"extname"),pe(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=re.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(ce.prototype,"stem",{get:function(){return"string"==typeof this.path?re.basename(this.path,this.extname):void 0},set:function(e){fe(e,"stem"),se(e,"stem"),this.path=re.join(this.dirname||"",e+(this.extname||""))}});var de=X,he=ae,me=he;he.prototype.message=function(e,n,t){var r=new de(e,n,t);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r},he.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},he.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e};var ye=me,ge=Object.prototype.hasOwnProperty,ve=Object.prototype.toString,be=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,xe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ve.call(e)},we=function(e){if(!e||"[object Object]"!==ve.call(e))return!1;var n,t=ge.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ge.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||ge.call(e,n)},Se=function(e,n){be&&"__proto__"===n.name?be(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Ee=function(e,n){if("__proto__"===n){if(!ge.call(e,n))return;if(ke)return ke(e,n).value}return e[n]},Ce=[].slice,Oe=function(e,n){var t;return function(){var n,i=Ce.call(arguments,0),a=e.length>i.length;a&&i.push(r);try{n=e.apply(null,i)}catch(l){if(a&&t)throw l;return r(l)}a||(n&&"function"==typeof n.then?n.then(o,r):n instanceof Error?r(n):o(n))};function r(){t||(t=!0,n.apply(null,arguments))}function o(e){r(null,e)}},Pe=Fe;Fe.wrap=Oe;var _e=[].slice;function Fe(){var e=[],n={run:function(){var n=-1,t=_e.call(arguments,0,-1),r=arguments[arguments.length-1];if("function"!=typeof r)throw new Error("Expected function as last argument, not "+r);function o(i){var a=e[++n],l=_e.call(arguments,0),u=l.slice(1),c=t.length,s=-1;if(i)r(i);else{for(;++s-1?void 0:4)}},yn={tokenize:function(e,n,t){return dn(e,e.lazy(this.parser.constructs.flow,n,t),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};un.tokenize=function(e){var n,t,r,o=this,i=[],a=0,l={tokenize:function(e,r){var a=0;return n={},l;function l(r){return an;)o.containerState=i[l][1],i[l][0].exit.call(o,e);i.length=n}};var gn={},vn=function(e){for(var n=-1,t=0;++ni?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)(o=Array.from(r)).unshift(n,t),xn.apply(e,o);else for(t&&xn.apply(e,[n,t]);a-1||An(r.events,"linePrefix")<4?e.interrupt(r.parser.constructs.flow,t,n)(o):n(o)}},partial:!0},Mn=Dn;Object.defineProperty(gn,"__esModule",{value:!0});var Ln=Mn,$n=on,zn=fn;gn.tokenize=function(e){var n=this,t=e.attempt(zn,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,$n(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ln,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}};var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});var Bn=Qe,Un=En,Hn=Wn("text"),Vn=Wn("string"),qn={resolveAll:Yn()};function Wn(e){return{tokenize:function(n){var t=this,r=this.parser.constructs[e],o=n.attempt(r,i,a);return i;function i(e){return u(e)?o(e):a(e)}function a(e){if(null!==e)return n.enter("data"),n.consume(e),l;n.consume(e)}function l(e){return u(e)?(n.exit("data"),o(e)):(n.consume(e),l)}function u(e){var n=r[e],o=-1;if(null===e)return!0;if(n)for(;++o1&&e[s][1].end.offset-e[s][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:Ct(Pt(e[t][1].end),-l),end:Pt(e[t][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Pt(e[s][1].start),end:Ct(Pt(e[s][1].start),l)},o={type:l>1?"strongText":"emphasisText",start:Pt(e[t][1].end),end:Pt(e[s][1].start)},r={type:l>1?"strong":"emphasis",start:Pt(i.start),end:Pt(a.end)},e[t][1].end=Pt(i.start),e[s][1].start=Pt(a.end),u=[],e[t][1].end.offset-e[t][1].start.offset&&(u=wt(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=wt(u,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),u=wt(u,Ot(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=wt(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",r,n]]),e[s][1].end.offset-e[s][1].start.offset?(c=2,u=wt(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,St(e,t-1,s-t+3,u),s=t+u.length-c-2;break}for(s=-1;++s-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}},Bt=Nt,Ut=yt(/[!-/:-@[-`{-~]/),Ht={name:"characterEscape",tokenize:function(e,n,t){return function(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),r};function r(r){return Ut(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}},Vt=function(e){var n,t="&"+e+";";return(nt=nt||document.createElement("i")).innerHTML=t,(59!==(n=nt.textContent).charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)},qt=yt(/\d/),Wt=yt(/[\dA-Fa-f]/),Yt=Tt,Xt=qt,Qt=Wt;var Kt=function(e){return e&&"object"===r(e)&&"default"in e?e:{default:e}}(Vt),Jt={name:"characterReference",tokenize:function(e,n,t){var r,o,i=this,a=0;return function(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),l};function l(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,o=Yt,c(n))}function u(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=Qt,c):(e.enter("characterReferenceValue"),r=7,o=Xt,c(n))}function c(l){var u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==Yt||Kt.default(i.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(l)):o(l)&&a++-1?void 0:4);function i(n){return n===r?(e.consume(n),o++,i):oc?t(o):(e.consume(o),h):41===o?s--?(e.consume(o),h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(o)):null===o||dr(o)?s?t(o):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(o)):pr(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}},yr=nn,gr=tn,vr=function(e,n,t,r,o,i){var a,l=this,u=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),c};function c(f){return null===f||91===f||93===f&&!a||94===f&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs||u>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):yr(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),s(f))}function s(n){return null===n||91===n||93===n||yr(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),a=a||!gr(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}},br=nn,kr=tn,xr=on,wr=function(e,n){var t;return function r(o){return br(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r):kr(o)?xr(e,r,t?"linePrefix":"lineSuffix")(o):n(o)}},Sr=nn,Er=on,Cr=function(e,n,t,r,o,i){var a;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),a=40===n?41:n,l};function l(t){return t===a?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),u(t))}function u(n){return n===a?(e.exit(i),l(a)):null===n?t(n):Sr(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Er(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||Sr(n)?(e.exit("chunkString"),u(n)):(e.consume(n),92===n?s:c)}function s(n){return n===a||92===n?(e.consume(n),c):c(n)}},Or=nn,Pr=ht,_r=Je,Fr=mr,Tr=vr,Ar=on,Rr=wr,Ir=Cr,Dr={name:"definition",tokenize:function(e,n,t){var r,o=this;return function(n){return e.enter("definition"),Tr.call(o,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return r=_r(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Rr(e,Fr(e,e.attempt(jr,Ar(e,a,"whitespace"),Ar(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(i){return null===i||Or(i)?(e.exit("definition"),o.parser.defined.indexOf(r)<0&&o.parser.defined.push(r),n(i)):t(i)}}},jr={tokenize:function(e,n,t){return function(n){return Pr(n)?Rr(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ir(e,Ar(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||Or(e)?n(e):t(e)}},partial:!0},Mr=Dr,Lr=nn,$r={name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return Lr(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}},zr=nn,Nr=ht,Br=tn,Ur=wn,Hr=on,Vr={name:"headingAtx",tokenize:function(e,n,t){var r=this,o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(l){return 35===l&&o++<6?(e.consume(l),i):null===l||Nr(l)?(e.exit("atxHeadingSequence"),r.interrupt?n(l):a(l)):t(l)}function a(t){return 35===t?(e.enter("atxHeadingSequence"),l(t)):null===t||zr(t)?(e.exit("atxHeading"),n(t)):Br(t)?Hr(e,a,"whitespace")(t):(e.enter("atxHeadingText"),u(t))}function l(n){return 35===n?(e.consume(n),l):(e.exit("atxHeadingSequence"),a(n))}function u(n){return null===n||35===n||Nr(n)?(e.exit("atxHeadingText"),a(n)):(e.consume(n),u)}},resolve:function(e,n){var t,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Ur(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]])),e}},qr=Ft,Wr=Tt,Yr=nn,Xr=ht,Qr=tn,Kr=Ze,Jr=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zr=["pre","script","style","textarea"],Gr=fn,eo={name:"htmlFlow",tokenize:function(e,n,t){var r,o,i,a,l,u=this;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(a){return 33===a?(e.consume(a),s):47===a?(e.consume(a),d):63===a?(e.consume(a),r=3,u.interrupt?n:I):qr(a)?(e.consume(a),i=Kr(a),o=!0,h):t(a)}function s(o){return 45===o?(e.consume(o),r=2,f):91===o?(e.consume(o),r=5,i="CDATA[",a=0,p):qr(o)?(e.consume(o),r=4,u.interrupt?n:I):t(o)}function f(r){return 45===r?(e.consume(r),u.interrupt?n:I):t(r)}function p(r){return r===i.charCodeAt(a++)?(e.consume(r),a===i.length?u.interrupt?n:O:p):t(r)}function d(n){return qr(n)?(e.consume(n),i=Kr(n),h):t(n)}function h(a){return null===a||47===a||62===a||Xr(a)?47!==a&&o&&Zr.indexOf(i.toLowerCase())>-1?(r=1,u.interrupt?n(a):O(a)):Jr.indexOf(i.toLowerCase())>-1?(r=6,47===a?(e.consume(a),m):u.interrupt?n(a):O(a)):(r=7,u.interrupt?t(a):o?g(a):y(a)):45===a||Wr(a)?(e.consume(a),i+=Kr(a),h):t(a)}function m(r){return 62===r?(e.consume(r),u.interrupt?n:O):t(r)}function y(n){return Qr(n)?(e.consume(n),y):E(n)}function g(n){return 47===n?(e.consume(n),E):58===n||95===n||qr(n)?(e.consume(n),v):Qr(n)?(e.consume(n),g):E(n)}function v(n){return 45===n||46===n||58===n||95===n||Wr(n)?(e.consume(n),v):b(n)}function b(n){return 61===n?(e.consume(n),k):Qr(n)?(e.consume(n),b):g(n)}function k(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),l=n,x):Qr(n)?(e.consume(n),k):(l=void 0,w(n))}function x(n){return n===l?(e.consume(n),S):null===n||Yr(n)?t(n):(e.consume(n),x)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||Xr(n)?b(n):(e.consume(n),w)}function S(e){return 47===e||62===e||Qr(e)?g(e):t(e)}function E(n){return 62===n?(e.consume(n),C):t(n)}function C(n){return Qr(n)?(e.consume(n),C):null===n||Yr(n)?O(n):t(n)}function O(n){return 45===n&&2===r?(e.consume(n),F):60===n&&1===r?(e.consume(n),T):62===n&&4===r?(e.consume(n),D):63===n&&3===r?(e.consume(n),I):93===n&&5===r?(e.consume(n),R):!Yr(n)||6!==r&&7!==r?null===n||Yr(n)?P(n):(e.consume(n),O):e.check(no,D,P)(n)}function P(n){return e.exit("htmlFlowData"),_(n)}function _(n){return null===n?j(n):Yr(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_):(e.enter("htmlFlowData"),O(n))}function F(n){return 45===n?(e.consume(n),I):O(n)}function T(n){return 47===n?(e.consume(n),i="",A):O(n)}function A(n){return 62===n&&Zr.indexOf(i.toLowerCase())>-1?(e.consume(n),D):qr(n)&&i.length<8?(e.consume(n),i+=Kr(n),A):O(n)}function R(n){return 93===n?(e.consume(n),I):O(n)}function I(n){return 62===n?(e.consume(n),D):O(n)}function D(n){return null===n||Yr(n)?(e.exit("htmlFlowData"),j(n)):(e.consume(n),D)}function j(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){for(var n=e.length;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););return n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},concrete:!0},no={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Gr,n,t)}},partial:!0},to=eo,ro=Ft,oo=Tt,io=nn,ao=ht,lo=tn,uo=on,co={name:"htmlText",tokenize:function(e,n,t){var r,o,i,a,l=this;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),u};function u(n){return 33===n?(e.consume(n),c):47===n?(e.consume(n),w):63===n?(e.consume(n),k):ro(n)?(e.consume(n),C):t(n)}function c(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),o="CDATA[",i=0,m):ro(n)?(e.consume(n),b):t(n)}function s(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):io(n)?(a=d,I(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),j):d(n)}function m(n){return n===o.charCodeAt(i++)?(e.consume(n),i===o.length?y:m):t(n)}function y(n){return null===n?t(n):93===n?(e.consume(n),g):io(n)?(a=y,I(n)):(e.consume(n),y)}function g(n){return 93===n?(e.consume(n),v):y(n)}function v(n){return 62===n?j(n):93===n?(e.consume(n),v):y(n)}function b(n){return null===n||62===n?j(n):io(n)?(a=b,I(n)):(e.consume(n),b)}function k(n){return null===n?t(n):63===n?(e.consume(n),x):io(n)?(a=k,I(n)):(e.consume(n),k)}function x(e){return 62===e?j(e):k(e)}function w(n){return ro(n)?(e.consume(n),S):t(n)}function S(n){return 45===n||oo(n)?(e.consume(n),S):E(n)}function E(n){return io(n)?(a=E,I(n)):lo(n)?(e.consume(n),E):j(n)}function C(n){return 45===n||oo(n)?(e.consume(n),C):47===n||62===n||ao(n)?O(n):t(n)}function O(n){return 47===n?(e.consume(n),j):58===n||95===n||ro(n)?(e.consume(n),P):io(n)?(a=O,I(n)):lo(n)?(e.consume(n),O):j(n)}function P(n){return 45===n||46===n||58===n||95===n||oo(n)?(e.consume(n),P):_(n)}function _(n){return 61===n?(e.consume(n),F):io(n)?(a=_,I(n)):lo(n)?(e.consume(n),_):O(n)}function F(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),r=n,T):io(n)?(a=F,I(n)):lo(n)?(e.consume(n),F):(e.consume(n),r=void 0,R)}function T(n){return n===r?(e.consume(n),A):null===n?t(n):io(n)?(a=T,I(n)):(e.consume(n),T)}function A(e){return 62===e||47===e||ao(e)?O(e):t(e)}function R(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||ao(n)?O(n):(e.consume(n),R)}function I(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),uo(e,D,"linePrefix",l.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function D(n){return e.enter("htmlTextData"),a(n)}function j(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}},so=ht,fo=rt,po=wn,ho=Je,mo=ot,yo=En,go=mr,vo=vr,bo=Cr,ko=wr,xo={name:"labelEnd",tokenize:function(e,n,t){for(var r,o,i=this,a=i.events.length;a--;)if(("labelImage"===i.events[a][1].type||"labelLink"===i.events[a][1].type)&&!i.events[a][1]._balanced){r=i.events[a][1];break}return function(n){return r?r._inactive?u(n):(o=i.parser.defined.indexOf(ho(i.sliceSerialize({start:r.end,end:i.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelEnd"),l):t(n)};function l(t){return 40===t?e.attempt(wo,n,o?n:u)(t):91===t?e.attempt(So,n,o?e.attempt(Eo,n,u):u)(t):o?n(t):u(t)}function u(e){return r._balanced=!0,t(e)}},resolveTo:function(e,n){for(var t,r,o,i,a,l,u,c=e.length,s=0;c--;)if(i=e[c][1],a){if("link"===i.type||"labelLink"===i.type&&i._inactive)break;"enter"===e[c][0]&&"labelLink"===i.type&&(i._inactive=!0)}else if(l){if("enter"===e[c][0]&&("labelImage"===i.type||"labelLink"===i.type)&&!i._balanced&&(a=c,"labelLink"!==i.type)){s=2;break}}else"labelEnd"===i.type&&(l=c);return t={type:"labelLink"===e[a][1].type?"link":"image",start:yo(e[a][1].start),end:yo(e[e.length-1][1].end)},r={type:"label",start:yo(e[a][1].start),end:yo(e[l][1].end)},o={type:"labelText",start:yo(e[a+s+2][1].end),end:yo(e[l-2][1].start)},u=fo(u=[["enter",t,n],["enter",r,n]],e.slice(a+1,a+s+3)),u=fo(u,[["enter",o,n]]),u=fo(u,mo(n.parser.constructs.insideSpan.null,e.slice(a+s+4,l-3),n)),u=fo(u,[["exit",o,n],e[l-2],e[l-1],["exit",r,n]]),u=fo(u,e.slice(l+1)),u=fo(u,[["exit",t,n]]),po(e,a,e.length,u),e},resolveAll:function(e){for(var n,t=-1;++t-1?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Uo={tokenize:function(e,n,t){var r=this;return $o(e,(function(e){return jo(e)||!Mo(r.events,"listItemPrefixWhitespace")?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},Ho={tokenize:function(e,n,t){var r=this;return $o(e,(function(e){return Mo(r.events,"listItemIndent")===r.containerState.size?n(e):t(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},Vo=Bo,qo=nn,Wo=En,Yo=on,Xo={name:"setextUnderline",tokenize:function(e,n,t){for(var r,o,i=this,a=i.events.length;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){o="paragraph"===i.events[a][1].type;break}return function(n){return i.lazy||!i.interrupt&&!o?t(n):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),r=n,l(n))};function l(n){return n===r?(e.consume(n),l):(e.exit("setextHeadingLineSequence"),Yo(e,u,"lineSuffix")(n))}function u(r){return null===r||qo(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){for(var t,r,o,i,a=e.length;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){t=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);return i={type:"setextHeading",start:Wo(e[r][1].start),end:Wo(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Wo(e[o][1].end)):e[t][1]=i,e.push(["exit",i,n]),e}};Object.defineProperty(dt,"__esModule",{value:!0});var Qo={42:Vo,43:Vo,45:Vo,48:Vo,49:Vo,50:Vo,51:Vo,52:Vo,53:Vo,54:Vo,55:Vo,56:Vo,57:Vo,62:Bt},Ko={91:Mr},Jo={"-2":cr,"-1":cr,32:cr},Zo={35:Vr,42:Io,45:[Xo,Io],60:to,61:Xo,95:Io,96:tr,126:tr},Go={38:Jt,92:Ht},ei={"-5":Fo,"-4":Fo,"-3":Fo,33:Oo,38:Jt,42:_t,60:[Lt,co],91:Po,92:[$r,Ht],93:Co,95:_t,96:fr},ni={null:[_t,Nn.resolver]};dt.contentInitial=Ko,dt.disable={null:[]},dt.document=Qo,dt.flow=Zo,dt.flowInitial=Jo,dt.insideSpan=ni,dt.string=Go,dt.text=ei;var ti=en,ri=un,oi=gn,ii=Nn,ai=function(e){for(var n={},t=-1;++t-1&&(t[0]=t[0].slice(o)),a>0&&t.push(e[i].slice(0,a))),t}(a,e)}function p(){return pt(r)}function d(e){s=s(e)}function h(e,n){n.restore()}function m(e,n){return function(t,o,i){var a,s,f,d;return t.tokenize||"length"in t?h(st(t)):function(e){return e in t||null in t?h(t.null?st(t[e]).concat(st(t.null)):t[e])(e):i(e)};function h(e){return a=e,m(e[s=0])}function m(e){return function(t){var o,i,a,s,h;return o=p(),i=c.previous,a=c.currentConstruct,s=c.events.length,h=Array.from(l),d={restore:function(){r=o,c.previous=i,c.currentConstruct=a,c.events.length=s,l=h,g()},from:s},f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.indexOf(e.name)>-1?v():e.tokenize.call(n?at({},c,n):c,u,y,v)(t)}}function y(n){return e(f,d),o}function v(e){return d.restore(),++s13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"\ufffd":Ge(t)},gi=function(e){var n={defined:[],constructs:ai([ci].concat(ui((e||{}).extensions))),content:t(ti),document:t(ri),flow:t(oi),string:t(ii.string),text:t(ii.text)};return n;function t(e){return function(t){return li(n,e,t)}}},vi=function(){var e,n=!0,t=1,r="";return function(o,i,a){var l,u,c,s,f,p=[];for(o=r+o.toString(i),c=0,r="",n&&(65279===o.charCodeAt(0)&&c++,n=void 0);c-1&&(h.call(this,e),m.call(this,e))},link:f((function(){var e=this.stack[this.stack.length-1];a("inReference")?(e.type+="Reference",e.referenceType=a("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),i("referenceType")})),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:function(e){var n=this.resume();this.stack[this.stack.length-1].label=n,this.stack[this.stack.length-1].identifier=mi(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){i("inReference")},setextHeading:f((function(){i("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){i("setextHeadingSlurpLineEnding",!0)},strong:f(),thematicBreak:f()}},n.mdastExtensions||[]),r={};return function(e){for(var n,r={type:"root",children:[]},u=[],f=[],h=-1,m={stack:[r],tokenStack:u,config:t,enter:s,exit:p,buffer:c,resume:d,setData:i,getData:a};++h":"")+")"),p;function p(){var s,f,p=c.concat(l),d=[];if((!n||a(l,u,c[c.length-1]||null))&&!1===(d=function(e){return null!==e&&"object"===r(e)&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}(t(l,c)))[0])return d;if(l.children&&"skip"!==d[0])for(f=(o?l.children.length:-1)+i;f>-1&&f-1?Ki:e.unknownHandler)?r:Qi)(e,n,t)},Wi=Ei,Yi=Hi,Xi={}.hasOwnProperty;function Qi(e,n){return function(e){var n=e.data||{};return!(Xi.call(n,"hName")||Xi.call(n,"hProperties")||Xi.call(n,"hChildren"))&&"value"in e}(n)?e.augment(n,Wi("text",n.value)):e(n,"div",Yi(e,n))}function Ki(e,n){var t;return n.children?((t=Object.assign({},n)).children=Yi(e,n),t):n}var Ji=function(e,n){return e(n,"hr")},Zi=function(e,n){var t=[],r=-1,o=e.length;for(n&&t.push(Gi("text","\n"));++r0&&t.push(Gi("text","\n")),t},Gi=Ei,ea=function(e,n){var t,r,o={},i=n.ordered?"ol":"ul",a=-1;for("number"==typeof n.start&&1!==n.start&&(o.start=n.start),r=(t=ta(e,n)).length;++a=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1=56320&&a<=57343){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[r]);return u}va.defaultChars=";/?:@&=+$,-_.!~*'()#",va.componentChars="-_.!~*'()";var ba=function(e,n){var t,r,o,i=n.referenceType,a="]";return"collapsed"===i?a+="[]":"full"===i&&(a+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type?ka("text","!["+n.alt+a):((r=(t=xa(e,n))[0])&&"text"===r.type?r.value="["+r.value:t.unshift(ka("text","[")),(o=t[t.length-1])&&"text"===o.type?o.value+=a:t.push(ka("text",a)),t)},ka=Ei,xa=Hi,wa=va,Sa=ba,Ea=va,Ca=Ei,Oa=va,Pa=ba,_a=Hi,Fa=va,Ta=Hi,Aa=Ei,Ra=Hi;function Ia(e){var n=e.spread;return null==n?e.children.length>1:n}var Da=Hi,ja=Ei,Ma=Zi,La=Hi,$a=Hi,za=Li,Na=Zi,Ba=Hi,Ua=Ei;function Ha(){return null}var Va=Ei,qa=Fi,Wa=Li,Ya=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)},Xa=function(e,n){return t=function(e){var n={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Ni(e,"definition",(function(e){var t=Ui(e.identifier);Bi.call(n,t)||(n[t]=e)})),n}(e),function(e){var n=e&&Ui(e);return n&&Bi.call(t,n)?t[n]:null};var t},Qa=qi,Ka=function(e){for(var n,t,r,o,i=e.footnoteById,a=e.footnoteOrder,l=a.length,u=-1,c=[];++u0&&l.children.unshift(Aa("text"," ")),l.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),c.className=["task-list-item"]),r=a.length,o=-1;++o>";return new l("Invalid "+o+" `"+i+"` of type `"+((u=n[t]).constructor&&u.constructor.name?u.constructor.name:"<>")+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var u;return null}))},node:u((function(e,n,t,r,o){return s(e[n])?null:new l("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return u((function(n,t,r,o,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=n[t],u=f(a);if("object"!==u)return new l("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(Ll(a,c)){var s=e(a,c,r,o,i+"."+c,jl);if(s instanceof Error)return s}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==n.default.env.NODE_ENV&&$l(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),zl;function t(n,t,r,o,i){for(var u=n[t],c=0;c>",a=a||r,u!==jl){var c=new 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 c.name="Invariant Violation",c}return null==t[r]?n?null===t[r]?new l("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `null`."):new l("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `undefined`."):null:e(t,r,o,i,a)}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function c(e){return u((function(n,t,r,o,i,a){var u=n[t];return f(u)!==e?new l("Invalid "+o+" `"+i+"` of type `"+p(u)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function s(n){switch(r(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(s);if(null===n||e(n))return!0;var t=function(e){var n=e&&(o&&e[o]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!t)return!1;var i,a=t.call(n);if(t!==n.entries){for(;!(i=a.next()).done;)if(!s(i.value))return!1}else for(;!(i=a.next()).done;){var l=i.value;if(l&&!s(l[1]))return!1}return!0;default:return!1}}function f(e){var n=r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function p(e){if(null==e)return""+e;var n=f(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function d(e){var n=p(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return l.prototype=Error.prototype,i.checkPropTypes=Ml,i.resetWarningCache=Ml.resetWarningCache,i.PropTypes=i,i}(Ul.isElement)}else nl.exports=function(){function e(e,n,t,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new 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 a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Bl,resetWarningCache:Nl};return t.PropTypes=t,t}();var Hl=Object.prototype.hasOwnProperty,Vl=Wl,ql=Wl.prototype;function Wl(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}ql.space=null,ql.normal={},ql.property={};var Yl=function(){for(var e={},n=0;n4&&"data"===t.slice(0,4)&&Fc.test(n)&&("-"===n.charAt(4)?r=function(e){var n=e.slice(5).replace(Tc,Ic);return"data"+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);return Tc.test(n)?e:("-"!==(n=n.replace(Ac,Rc)).charAt(0)&&(n="-"+n),"data"+n)}(n),o=Pc),new o(r,n))},Kc={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"},Jc=Dc,Zc=Mc,Gc=function(e,n){var t,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,n){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function o(e){var n=e.match($c);n&&(t+=n.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:t,column:r};return function(n){return n.position=new a(e),c(),n}}function a(e){this.start=e,this.end={line:t,column:r},this.source=n.source}function l(o){var i=new Error(n.source+":"+t+":"+r+": "+o);if(i.reason=o,i.filename=n.source,i.line=t,i.column=r,i.source=e,!n.silent)throw i}function u(n){var t=n.exec(e);if(t){var r=t[0];return o(r),e=e.slice(r.length),t}}function c(){u(zc)}function s(e){var n;for(e=e||[];n=f();)!1!==n&&e.push(n);return e}function f(){var n=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var t=2;""!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,""===e.charAt(t-1))return l("End of comment missing");var a=e.slice(2,t-2);return r+=2,o(a),e=e.slice(t),r+=2,n({type:"comment",comment:a})}}function p(){var e=i(),n=u(Nc);if(n){if(f(),!u(Bc))return l("property missing ':'");var t=u(Uc),r=e({type:"declaration",property:qc(n[0].replace(Lc,"")),value:t?qc(t[0].replace(Lc,"")):""});return u(Hc),r}}return a.prototype.content=e,c(),function(){var e,n=[];for(s(n);e=p();)!1!==e&&(n.push(e),s(n));return n}()}(e),l="function"==typeof n,u=0,c=a.length;u0?Wc.createElement(d,u,s):Wc.createElement(d,u)}function os(e,n){for(var t=-1,r=0;++to||-1!==(o=n.indexOf("#"))&&r>o?n:"javascript:void(0)"},ys=$u.hastChildrenToReact,gs=ks,vs={}.hasOwnProperty,bs={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 ks(e){for(var n in bs)if(vs.call(bs,n)&&vs.call(e,n)){var t=bs[n];console.warn("[react-markdown] Warning: please ".concat(t.to?"use `".concat(t.to,"` instead of"):"remove"," `").concat(n,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(t.id,"> for more info)")),delete bs[n]}var r,o=cs().use(ss).use(e.remarkPlugins||e.plugins||[]).use(fs,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(hs,e);"string"==typeof e.children?r=us(e.children):(void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)")),r=us());var i=o.runSync(o.parse(r),r);if("root"!==i.type)throw new TypeError("Expected a `root` node");var a=ls.createElement(ls.Fragment,{},ys({options:e,schema:ds,listDepth:0},i));return e.className&&(a=ls.createElement("div",{className:e.className},a)),a}return ks.defaultProps={transformLinkUri:ms},ks.propTypes={children:ps.string,className:ps.string,allowElement:ps.func,allowedElements:ps.arrayOf(ps.string),disallowedElements:ps.arrayOf(ps.string),unwrapDisallowed:ps.bool,remarkPlugins:ps.arrayOf(ps.oneOfType([ps.object,ps.func,ps.arrayOf(ps.oneOfType([ps.object,ps.func]))])),rehypePlugins:ps.arrayOf(ps.oneOfType([ps.object,ps.func,ps.arrayOf(ps.oneOfType([ps.object,ps.func]))])),sourcePos:ps.bool,rawSourcePos:ps.bool,skipHtml:ps.bool,includeElementIndex:ps.bool,transformLinkUri:ps.oneOfType([ps.func,ps.bool]),linkTarget:ps.oneOfType([ps.func,ps.string]),transformImageUri:ps.func,components:ps.object},ks.uriTransformer=ms,gs}));