react-markdown
Version:
Render Markdown as React components
12 lines • 147 kB
JavaScript
!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);function t(e){var n={exports:{}};return e(n,n.exports),n.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)}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var u=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,n){for(var t,r,u=a(e),c=1;c<arguments.length;c++){for(var s in t=Object(arguments[c]))i.call(t,s)&&(u[s]=t[s]);if(o){r=o(t);for(var f=0;f<r.length;f++)l.call(t,r[f])&&(u[r[f]]=t[r[f]])}}return u},c=t((function(e,n){var t=60103,o=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var i=60109,l=60110,a=60112;n.Suspense=60113;var c=60115,s=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;t=f("react.element"),o=f("react.portal"),n.Fragment=f("react.fragment"),n.StrictMode=f("react.strict_mode"),n.Profiler=f("react.profiler"),i=f("react.provider"),l=f("react.context"),a=f("react.forward_ref"),n.Suspense=f("react.suspense"),c=f("react.memo"),s=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,n,t){this.props=e,this.context=n,this.refs=m,this.updater=t||h}function g(){}function v(e,n,t){this.props=e,this.context=n,this.refs=m,this.updater=t||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,n){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,n,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=v.prototype=new g;b.constructor=v,u(b,y.prototype),b.isPureReactComponent=!0;var k={current:null},x=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,i={},l=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(l=""+n.key),n)x.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:t,type:e,key:l,ref:a,props:i,_owner:k.current}}function E(e){return"object"===r(e)&&null!==e&&e.$$typeof===t}var C=/\/+/g;function O(e,n){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function P(e,n,i,l,a){var u=r(e);"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case o:c=!0}}if(c)return a=a(c=e),e=""===l?"."+O(c,0):l,Array.isArray(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),P(a,n,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),n.push(a)),1;if(c=0,l=""===l?".":l+":",Array.isArray(e))for(var s=0;s<e.length;s++){var f=l+O(u=e[s],s);c+=P(u,n,i,f,a)}else if("function"==typeof(f=function(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=f.call(e),s=0;!(u=e.next()).done;)c+=P(u=u.value,n,i,f=l+O(u,s++),a);else if("object"===u)throw n=""+e,Error(d(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return c}function _(e,n,t){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return n.call(t,e,o++)})),r}function F(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then((function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)}),(function(n){0===e._status&&(e._status=2,e._result=n)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function A(){var e=T.current;if(null===e)throw Error(d(321));return e}var R={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:u};n.Children={map:_,forEach:function(e,n,t){_(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return _(e,(function(){n++})),n},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(d(143));return e}},n.Component=y,n.PureComponent=v,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,n.cloneElement=function(e,n,r){if(null==e)throw Error(d(267,e));var o=u({},e.props),i=e.key,l=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,a=k.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in n)x.call(n,s)&&!w.hasOwnProperty(s)&&(o[s]=void 0===n[s]&&void 0!==c?c[s]:n[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:t,type:e.type,key:i,ref:l,props:o,_owner:a}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},n.createElement=S,n.createFactory=function(e){var n=S.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:a,render:e}},n.isValidElement=E,n.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:F}},n.memo=function(e,n){return{$$typeof:c,type:e,compare:void 0===n?null:n}},n.useCallback=function(e,n){return A().useCallback(e,n)},n.useContext=function(e,n){return A().useContext(e,n)},n.useDebugValue=function(){},n.useEffect=function(e,n){return A().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return A().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return A().useLayoutEffect(e,n)},n.useMemo=function(e,n){return A().useMemo(e,n)},n.useReducer=function(e,n,t){return A().useReducer(e,n,t)},n.useRef=function(e){return A().useRef(e)},n.useState=function(e){return A().useState(e)},n.version="17.0.2"})),s=t((function(e,t){"production"!==n.default.env.NODE_ENV&&function(){var e=u,n=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,l=60110,a=60112;t.Suspense=60113;var c=60120,s=60115,f=60116,p=60121,d=60122,h=60117,m=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var g=Symbol.for;n=g("react.element"),o=g("react.portal"),t.Fragment=g("react.fragment"),t.StrictMode=g("react.strict_mode"),t.Profiler=g("react.profiler"),i=g("react.provider"),l=g("react.context"),a=g("react.forward_ref"),t.Suspense=g("react.suspense"),c=g("react.suspense_list"),s=g("react.memo"),f=g("react.lazy"),p=g("react.block"),d=g("react.server.block"),h=g("react.fundamental"),g("react.scope"),g("react.opaque.id"),m=g("react.debug_trace_mode"),g("react.offscreen"),y=g("react.legacy_hidden")}var v="function"==typeof Symbol&&Symbol.iterator;function b(e){if(null===e||"object"!==r(e))return null;var n=v&&e[v]||e["@@iterator"];return"function"==typeof n?n:null}var k={current:null},x={current:null},w={},S=null;function E(e){S=e}w.setExtraStackFrame=function(e){S=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";S&&(e+=S);var n=w.getCurrentStack;return n&&(e+=n()||""),e};var C={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:e};function O(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];_("warn",e,t)}function P(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];_("error",e,t)}function _(e,n,t){var r=C.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,o)}C.ReactDebugCurrentFrame=w;var F={};function T(e,n){var t=e.constructor,r=t&&(t.displayName||t.name)||"ReactClass",o=r+"."+n;F[o]||(P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,r),F[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,t){T(e,"forceUpdate")},enqueueReplaceState:function(e,n,t,r){T(e,"replaceState")},enqueueSetState:function(e,n,t,r){T(e,"setState")}},R={};function D(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||A}Object.freeze(R),D.prototype.isReactComponent={},D.prototype.setState=function(e,n){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},D.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var I={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},j=function(e,n){Object.defineProperty(D.prototype,e,{get:function(){O("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var M in I)I.hasOwnProperty(M)&&j(M,I[M]);function L(){}function $(e,n,t){this.props=e,this.context=n,this.refs=R,this.updater=t||A}L.prototype=D.prototype;var z=$.prototype=new L;function N(e){return e.displayName||"Context"}function B(e){if(null==e)return null;if("number"==typeof e.tag&&P("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case t.Fragment:return"Fragment";case o:return"Portal";case t.Profiler:return"Profiler";case t.StrictMode:return"StrictMode";case t.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"===r(e))switch(e.$$typeof){case l:return N(e)+".Consumer";case i:return N(e._context)+".Provider";case a:return h=e,y="ForwardRef",g=(m=e.render).displayName||m.name||"",h.displayName||(""!==g?"ForwardRef("+g+")":y);case s:return B(e.type);case p:return B(e._render);case f:var n=e,u=n._payload,d=n._init;try{return B(d(u))}catch(_o){return null}}var h,m,y,g;return null}z.constructor=$,e(z,D.prototype),z.isPureReactComponent=!0;var U,H,V,q=Object.prototype.hasOwnProperty,W={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if(q.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}function X(e){if(q.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function Q(e,n){var t=function(){U||(U=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function K(e,n){var t=function(){H||(H=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}function J(e){if("string"==typeof e.ref&&x.current&&e.__self&&x.current.stateNode!==e.__self){var n=B(x.current.type);V[n]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',n,e.ref),V[n]=!0)}}V={};var Z=function(e,t,r,o,i,l,a){var u={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:l,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function G(e,n,t){var r,o={},i=null,l=null,a=null,u=null;if(null!=n)for(r in Y(n)&&(l=n.ref,J(n)),X(n)&&(i=""+n.key),a=void 0===n.__self?null:n.__self,u=void 0===n.__source?null:n.__source,n)q.call(n,r)&&!W.hasOwnProperty(r)&&(o[r]=n[r]);var c=arguments.length-2;if(1===c)o.children=t;else if(c>1){for(var s=Array(c),f=0;f<c;f++)s[f]=arguments[f+2];Object.freeze&&Object.freeze(s),o.children=s}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(i||l){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&Q(o,d),l&&K(o,d)}return Z(e,i,l,a,u,x.current,o)}function ee(n,t,r){if(null==n)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var o,i,l=e({},n.props),a=n.key,u=n.ref,c=n._self,s=n._source,f=n._owner;if(null!=t)for(o in Y(t)&&(u=t.ref,f=x.current),X(t)&&(a=""+t.key),n.type&&n.type.defaultProps&&(i=n.type.defaultProps),t)q.call(t,o)&&!W.hasOwnProperty(o)&&(void 0===t[o]&&void 0!==i?l[o]=i[o]:l[o]=t[o]);var p=arguments.length-2;if(1===p)l.children=r;else if(p>1){for(var d=Array(p),h=0;h<p;h++)d[h]=arguments[h+2];l.children=d}return Z(n.type,a,u,c,s,f,l)}function ne(e){return"object"===r(e)&&null!==e&&e.$$typeof===n}var te=!1,re=/\/+/g;function oe(e){return e.replace(re,"$&/")}function ie(e,n){return"object"===r(e)&&null!==e&&null!=e.key?(t=""+e.key,o={"=":"=0",":":"=2"},"$"+t.replace(/[=:]/g,(function(e){return o[e]}))):n.toString(36);var t,o}function le(e,t,i,l,a){var u=r(e);"undefined"!==u&&"boolean"!==u||(e=null);var c,s,f,p=!1;if(null===e)p=!0;else switch(u){case"string":case"number":p=!0;break;case"object":switch(e.$$typeof){case n:case o:p=!0}}if(p){var d=e,h=a(d),m=""===l?"."+ie(d,0):l;if(Array.isArray(h)){var y="";null!=m&&(y=oe(m)+"/"),le(h,t,y,"",(function(e){return e}))}else null!=h&&(ne(h)&&(c=h,s=i+(!h.key||d&&d.key===h.key?"":oe(""+h.key)+"/")+m,h=Z(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(h));return 1}var g=0,v=""===l?".":l+":";if(Array.isArray(e))for(var k=0;k<e.length;k++)g+=le(f=e[k],t,i,v+ie(f,k),a);else{var x=b(e);if("function"==typeof x){var w=e;x===w.entries&&(te||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,E=x.call(w),C=0;!(S=E.next()).done;)g+=le(f=S.value,t,i,v+ie(f,C++),a)}else if("object"===u){var P=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===P?"object with keys {"+Object.keys(e).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}}return g}function ae(e,n,t){if(null==e)return e;var r=[],o=0;return le(e,r,"","",(function(e){return n.call(t,e,o++)})),r}function ue(e){if(-1===e._status){var n=(0,e._result)(),t=e;t._status=0,t._result=n,n.then((function(n){if(0===e._status){var t=n.default;void 0===t&&P("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => 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(e){return"string"==typeof e||"function"==typeof e||e===t.Fragment||e===t.Profiler||e===m||e===t.StrictMode||e===t.Suspense||e===c||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===f||e.$$typeof===s||e.$$typeof===i||e.$$typeof===l||e.$$typeof===a||e.$$typeof===h||e.$$typeof===p||e[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(_o){var r=_o.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(n,t){if(!n||Ee)return"";var o,i=Se.get(n);if(void 0!==i)return i;Ee=!0;var l,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,l=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(_o){o=_o}Reflect.construct(n,[],u)}else{try{u.call()}catch(_o){o=_o}n.call(u.prototype)}}else{try{throw Error()}catch(_o){o=_o}n()}}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 n&&Se.set(n,d),d}}while(f>=1&&p>=0);break}}}finally{Ee=!1,xe.current=l,function(){if(0==--ve){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},n,{value:fe}),info:e({},n,{value:pe}),warn:e({},n,{value:de}),error:e({},n,{value:he}),group:e({},n,{value:me}),groupCollapsed:e({},n,{value:ye}),groupEnd:e({},n,{value:ge})})}ve<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var h=n?n.displayName||n.name:"",m=h?we(h):"";return"function"==typeof n&&Se.set(n,m),m}function Pe(e,n,t){return Oe(e,!1)}function _e(e,n,o){if(null==e)return"";if("function"==typeof e)return Oe(e,function(e){var n=e.prototype;return!(!n||!n.isReactComponent)}(e));if("string"==typeof e)return we(e);switch(e){case t.Suspense:return we("Suspense");case c:return we("SuspenseList")}if("object"===r(e))switch(e.$$typeof){case a:return Pe(e.render);case s:return _e(e.type,n,o);case p:return Pe(e._render);case f:var i=e,l=i._payload,u=i._init;try{return _e(u(l),n,o)}catch(_o){}}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 De(e){if(e){var n=e._owner;E(_e(e.type,e._source,n?n.type:null))}else E(null)}function Ie(){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=Ie();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)+"."),De(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),De(null)}}}function $e(e,n){if("object"===r(e))if(Array.isArray(e))for(var t=0;t<e.length;t++){var o=e[t];ne(o)&&Le(o,n)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var i=b(e);if("function"==typeof i&&i!==e.entries)for(var l,a=i.call(e);!(l=a.next()).done;)ne(l.value)&&Le(l.value,n)}}function ze(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!==r(t)||t.$$typeof!==a&&t.$$typeof!==s)return;n=t.propTypes}if(n){var o=B(t);!function(e,n,t,o,i){var l=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(l(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((o||"React class")+": "+"prop type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r(e[a])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](n,a,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){u=s}!u||u instanceof Error||(Re(i),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,a,r(u)),Re(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,Re(i),P("Failed %s type: %s",t,u.message),Re(null))}}(n,e.props,"prop",o,e)}else void 0===t.PropTypes||Fe||(Fe=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ne(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){De(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function Be(e,o,i){var l=ce(e);if(!l){var a="";(void 0===e||"object"===r(e)&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=je(o);a+=c||Ie(),null===e?u="null":Array.isArray(e)?u="array":void 0!==e&&e.$$typeof===n?(u="<"+(B(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=r(e),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,a)}var s=G.apply(this,arguments);if(null==s)return s;if(l)for(var f=2;f<arguments.length;f++)$e(arguments[f],e);return e===t.Fragment?Ne(s):ze(s),s}var Ue=!1;try{var He=Object.freeze({});new Map([[He,null]]),new Set([He])}catch(ho){}var Ve=Be,qe={map:ae,forEach:function(e,n,t){ae(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return ae(e,(function(){n++})),n},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ne(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=qe,t.Component=D,t.PureComponent=$,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,t.cloneElement=function(e,n,t){for(var r=ee.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return ze(r),r},t.createContext=function(e,n){void 0===n?n=null:null!==n&&"function"!=typeof n&&P("createContext: Expected the optional second argument to be a function. Instead received: %s",n);var t={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};t.Provider={$$typeof:i,_context:t};var r=!1,o=!1,a=!1,u={$$typeof:l,_context:t,_calculateChangedBits:t._calculateChangedBits};return Object.defineProperties(u,{Provider:{get:function(){return o||(o=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> 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 <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=u,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=Ve,t.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},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===s?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:a,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},t.isValidElement=ne,t.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},t.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:s,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},t.useCallback=function(e,n){return se().useCallback(e,n)},t.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)},t.useDebugValue=function(e,n){return se().useDebugValue(e,n)},t.useEffect=function(e,n){return se().useEffect(e,n)},t.useImperativeHandle=function(e,n,t){return se().useImperativeHandle(e,n,t)},t.useLayoutEffect=function(e,n){return se().useLayoutEffect(e,n)},t.useMemo=function(e,n){return se().useMemo(e,n)},t.useReducer=function(e,n,t){return se().useReducer(e,n,t)},t.useRef=function(e){return se().useRef(e)},t.useState=function(e){return se().useState(e)},t.version="17.0.2"}()})),f=t((function(e){"production"===n.default.env.NODE_ENV?e.exports=c:e.exports=s})),p=function(e){if(e)throw e}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/,d=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},h=Object.prototype.hasOwnProperty,m=Object.prototype.toString,y=Object.defineProperty,g=Object.getOwnPropertyDescriptor,v=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===m.call(e)},b=function(e){if(!e||"[object Object]"!==m.call(e))return!1;var n,t=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||h.call(e,n)},k=function(e,n){y&&"__proto__"===n.name?y(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},x=function(e,n){if("__proto__"===n){if(!h.call(e,n))return;if(g)return g(e,n).value}return e[n]},w=function e(){var n,t,o,i,l,a,u=arguments[0],c=1,s=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),(null==u||"object"!==r(u)&&"function"!=typeof u)&&(u={});c<s;++c)if(null!=(n=arguments[c]))for(t in n)o=x(u,t),u!==(i=x(n,t))&&(f&&i&&(b(i)||(l=v(i)))?(l?(l=!1,a=o&&v(o)?o:[]):a=o&&b(o)?o:{},k(u,{name:t,newValue:e(f,a,i)})):void 0!==i&&k(u,{name:t,newValue:i}));return u},S=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype},E=[].slice,C=function(e,n){var t;return function(){var n,i=E.call(arguments,0),l=e.length>i.length;l&&i.push(r);try{n=e.apply(null,i)}catch(a){if(l&&t)throw a;return r(a)}l||(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)}},O=_;_.wrap=C;var P=[].slice;function _(){var e=[],n={run:function(){var n=-1,t=P.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 l=e[++n],a=P.call(arguments,0),u=a.slice(1),c=t.length,s=-1;if(i)r(i);else{for(;++s<c;)null!==u[s]&&void 0!==u[s]||(u[s]=t[s]);t=u,l?C(l,o).apply(null,t):r.apply(null,[null].concat(t))}}o.apply(null,[null].concat(t))},use:function(t){if("function"!=typeof t)throw new Error("Expected `fn` to be a function, not "+t);return e.push(t),n}};return n}var F={}.hasOwnProperty,T=function(e){return e&&"object"===r(e)?F.call(e,"position")||F.call(e,"type")?R(e.position):F.call(e,"start")||F.call(e,"end")?R(e):F.call(e,"line")||F.call(e,"column")?A(e):"":""};function A(e){return e&&"object"===r(e)||(e={}),D(e.line)+":"+D(e.column)}function R(e){return e&&"object"===r(e)||(e={}),A(e.start)+"-"+A(e.end)}function D(e){return e&&"number"==typeof e?e:1}var I=L;function j(){}j.prototype=Error.prototype,L.prototype=new j;var M=L.prototype;function L(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=T(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]}function $(e){var n,t;return z(e),n=47===e.charCodeAt(0),(t=function(e,n){for(var t,r,o="",i=0,l=-1,a=0,u=-1;++u<=e.length;){if(u<e.length)t=e.charCodeAt(u);else{if(47===t)break;t=47}if(47===t){if(l===u-1||1===a);else if(l!==u-1&&2===a){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),l=u,a=0;continue}}else if(o.length){o="",i=0,l=u,a=0;continue}n&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(l+1,u):o=e.slice(l+1,u),i=u-l-1;l=u,a=0}else 46===t&&a>-1?a++:a=-1}return o}(e,!n)).length||n||(t="."),t.length&&47===e.charCodeAt(e.length-1)&&(t+="/"),n?"/"+t:t}function z(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}M.file="",M.name="",M.reason="",M.message="",M.stack="",M.fatal=null,M.column=null,M.line=null;var N=function(e,n){var t,r,o,i,l=0,a=-1;if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');if(z(e),t=e.length,void 0===n||!n.length||n.length>e.length){for(;t--;)if(47===e.charCodeAt(t)){if(o){l=t+1;break}}else a<0&&(o=!0,a=t+1);return a<0?"":e.slice(l,a)}if(n===e)return"";for(r=-1,i=n.length-1;t--;)if(47===e.charCodeAt(t)){if(o){l=t+1;break}}else r<0&&(o=!0,r=t+1),i>-1&&(e.charCodeAt(t)===n.charCodeAt(i--)?i<0&&(a=t):(i=-1,a=r));return l===a?a=r:a<0&&(a=e.length),e.slice(l,a)},B=function(e){var n,t,r;if(z(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)},U=function(e){var n,t,r,o=-1,i=0,l=-1,a=0;for(z(e),r=e.length;r--;)if(47!==(t=e.charCodeAt(r)))l<0&&(n=!0,l=r+1),46===t?o<0?o=r:1!==a&&(a=1):o>-1&&(a=-1);else if(n){i=r+1;break}return o<0||l<0||0===a||1===a&&o===l-1&&o===i+1?"":e.slice(o,l)},H=function(){for(var e,n=-1;++n<arguments.length;)z(arguments[n]),arguments[n]&&(e=void 0===e?arguments[n]:e+"/"+arguments[n]);return void 0===e?".":$(e)},V="/",q=function(){return"/"},W=Q,Y={}.hasOwnProperty,X=["history","path","basename","stem","extname","dirname"];function Q(e){var n,t;if(e){if("string"==typeof e||d(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof Q))return new Q(e);for(this.data={},this.messages=[],this.history=[],this.cwd=q(),t=-1;++t<X.length;)n=X[t],Y.call(e,n)&&(this[n]=e[n]);for(n in e)X.indexOf(n)<0&&(this[n]=e[n])}function K(e,n){if(e&&e.indexOf(V)>-1)throw new Error("`"+n+"` cannot be a path: did not expect `"+V+"`")}function J(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Z(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}Q.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(Q.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){J(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(Q.prototype,"dirname",{get:function(){return"string"==typeof this.path?B(this.path):void 0},set:function(e){Z(this.path,"dirname"),this.path=H(e||"",this.basename)}}),Object.defineProperty(Q.prototype,"basename",{get:function(){return"string"==typeof this.path?N(this.path):void 0},set:function(e){J(e,"basename"),K(e,"basename"),this.path=H(this.dirname||"",e)}}),Object.defineProperty(Q.prototype,"extname",{get:function(){return"string"==typeof this.path?U(this.path):void 0},set:function(e){if(K(e,"extname"),Z(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=H(this.dirname,this.stem+(e||""))}}),Object.defineProperty(Q.prototype,"stem",{get:function(){return"string"==typeof this.path?N(this.path,this.extname):void 0},set:function(e){J(e,"stem"),K(e,"stem"),this.path=H(this.dirname||"",e+(this.extname||""))}});var G=W;W.prototype.message=function(e,n,t){var r=new I(e,n,t);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r},W.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},W.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e};var ee=G,ne=function e(){var n,t=[],o=O(),i={},l=-1;return a.data=function(e,t){return"string"==typeof e?2===arguments.length?(ue("data",n),i[e]=t,a):re.call(i,e)&&i[e]||null:e?(ue("data",n),i=e,a):i},a.freeze=u,a.attachers=t,a.use=function(e){var o;if(ue("use",n),null==e);else if("function"==typeof e)f.apply(null,arguments);else{if("object"!==r(e))throw new Error("Expected usable value, not `"+e+"`");"length"in e?s(e):l(e)}return o&&(i.settings=w(i.settings||{},o)),a;function l(e){s(e.plugins),e.settings&&(o=w(o||{},e.settings))}function u(e){if("function"==typeof e)f(e);else{if("object"!==r(e))throw new Error("Expected usable value, not `"+e+"`");"length"in e?f.apply(null,e):l(e)}}function s(e){var n=-1;if(null==e);else{if("object"!==r(e)||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++n<e.length;)u(e[n])}}function f(e,n){var r=c(e);r?(S(r[1])&&S(n)&&(n=w(!0,r[1],n)),r[1]=n):t.push(te.call(arguments))}},a.parse=function(e){var n,t=ee(e);return u(),le("parse",n=a.Parser),ie(n,"parse")?new n(String(t),t).parse():n(String(t),t)},a.stringify=function(e,n){var t,r=ee(n);return u(),ae("stringify",t=a.Compiler),ce(e),ie(t,"compile")?new t(e,r).compile():t(e,r)},a.run=s,a.runSync=function(e,n){var t,r;return s(e,n,(function(e,n){r=!0,t=n,p(e)})),se("runSync","run",r),t},a.process=f,a.processSync=function(e){var n,t;return u(),le("processSync",a.Parser),ae("processSync",a.Compiler),f(n=ee(e),(function(e){t=!0,p(e)})),se("processSync","process",t),n},a;function a(){for(var n=e(),r=-1;++r<t.length;)n.use.apply(null,t[r]);return n.data(w(!0,{},i)),n}function u(){var e,r;if(n)return a;for(;++l<t.length;)!1!==(e=t[l])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(a,e.slice(1)))&&o.use(r));return n=!0,l=1/0,a}function c(e){for(var n=-1;++n<t.length;)if(t[n][0]===e)return t[n]}function s(e,n,t){if(ce(e),u(),t||"function"!=typeof n||(t=n,n=null),!t)return new Promise(r);function r(r,i){o.run(e,ee(n),(function(n,o,l){o=o||e,n?i(n):r?r(o):t(null,o,l)}))}r(null,t)}function f(e,n){if(u(),le("process",a.Parser),ae("process",a.Compiler),!n)return new Promise(t);function t(t,r){var o=ee(e);oe.run(a,{file:o},(function(e){e?r(e):t?t(o):n(null,o)}))}t(null,n)}}().freeze(),te=[].slice,re={}.hasOwnProperty,oe=O().use((function(e,n){n.tree=e.parse(n.file)})).use((function(e,n,t){e.run(n.tree,n.file,(function(e,r,o){e?t(e):(n.tree=r,n.file=o,t())}))})).use((function(e,n){var t=e.stringify(n.tree,n.file);null==t||("string"==typeof t||d(t)?n.file.contents=t:n.file.result=t)}));function ie(e,n){return"function"==typeof e&&e.prototype&&(function(e){var n;for(n in e)return!0;return!1}(e.prototype)||n in e.prototype)}function le(e,n){if("function"!=typeof n)throw new Error("Cannot `"+e+"` without `Parser`")}function ae(e,n){if("function"!=typeof n)throw new Error("Cannot `"+e+"` without `Compiler`")}function ue(e,n){if(n)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function ce(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function se(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}var fe=pe;function pe(e){return e&&(e.value||e.alt||e.title||"children"in e&&de(e.children)||"length"in e&&de(e))||""}function de(e){for(var n=[],t=-1;++t<e.length;)n[t]=pe(e[t]);return n.join("")}var he=Object.assign,me={}.hasOwnProperty,ye=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()},ge=String.fromCharCode,ve=function(e){return e<-2},be=function(e){return-2===e||-1===e||32===e},ke=function(e,n,t,r){var o=r?r-1:1/0,i=0;return function(r){return be(r)?(e.enter(t),l(r)):n(r)};function l(r){return be(r)&&i++<o?(e.consume(r),l):(e.exit(t),n(r))}},xe=Object.defineProperty({tokenize:function(e){var n,t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ke(e,t,"linePrefix");e.consume(n)}),(function(n){return e.enter("paragraph"),r(n)}));return t;function r(t){var r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(n){return null===n?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(n)):ve(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),o)}}},"__esModule",{value:!0}),we={tokenize:function(e,n,t){return ke(e,(function(e){return null===e||ve(e)?n(e):t(e)}),"linePrefix")},partial:!0},Se={tokenize:function(e,n,t){return ke(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},Ee={tokenize:function(e,n,t){return ke(e,e.lazy(this.parser.constructs.flow,n,t),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},Ce=function(e){var n,t,r,o=this,i=[],l=0,a={tokenize:function(e,r){var l=0;return n={},a;function a(r){return l<i.length?(o.containerState=i[l][1],e.attempt(i[l][0].continuation,u,c)(r)):t.currentConstruct&&t.currentConstruct.concrete?(n.flowContinue=!0,p(r)):(o.interrupt=t.currentConstruct&&t.currentConstruct.interruptible,o.containerState={},e.attempt(Se,f,p)(r))}function u(e){return l++,o.containerState._closeFlow?f(e):a(e)}function c(n){return t.currentConstruct&&t.currentConstruct.lazy?(o.containerState={},e.attempt(Se,f,e.attempt(Ee,f,e.check(we,f,s)))(n)):f(n)}function s(e){return l=i.length,n.lazy=!0,n.flowContinue=!0,p(e)}function f(e){return n.flowEnd=!0,p(e)}function p(e){return n.continued=l,o.interrupt=o.containerState=void 0,r(e)}},partial:!0};return u;function u(n){return l<i.length?(o.containerState=i[l][1],e.attempt(i[l][0].continuation,c,s)(n)):s(n)}function c(e){return l++,u(e)}function s(r){return n&&n.flowContinue?p(r):(o.interrupt=t&&t.currentConstruct&&t.currentConstruct.interruptible,o.containerState={},e.attempt(Se,f,p)(r))}function f(e){return i.push([o.currentConstruct,o.containerState]),o.containerState=void 0,s(e)}function p(n){return null===n?(y(0,!0),void e.consume(n)):(t=t||o.parser.flow(o.now()),e.enter("chunkFlow",{contentType:"flow",previous:r,_tokenizer:t}),d(n))}function d(n){return null===n?(m(e.exit("chunkFlow")),p(n)):ve(n)?(e.consume(n),m(e.exit("chunkFlow")),e.check(a,h)):(e.consume(n),d)}function h(e){return y(n.continued,n&&n.flowEnd),l=0,u(e)}function m(e){r&&(r.next=e),r=e,t.lazy=n&&n.lazy,t.defineSkip(e.start),t.write(o.sliceStream(e))}function y(n,l){var a=i.length;for(t&&l&&(t.write([null]),r=t=void 0);a-- >n;)o.containerState=i[a][1],i[a][0].exit.call(o,e);i.length=n}},Oe=Object.defineProperty({tokenize:Ce},"__esModule",{value:!0}),Pe=function(e){for(var n=-1,t=0;++n<e.length;)t+="string"==typeof e[n]?e[n].length:1;return t},_e=function(e,n){var t=e[e.length-1];return t&&t[1].type===n?Pe(t[2].sliceStream(t[1])):0},Fe=[].splice,Te=function(e,n,t,r){var o,i=e.length,l=0;if(n=n<0?-n>i?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)(o=Array.from(r)).unshift(n,t),Fe.apply(e,o);else for(t&&Fe.apply(e,[n,t]);l<r.length;)(o=r.slice(l,l+1e4)).unshift(n,0),Fe.apply(e,o),l+=1e4,n+=1e4},Ae=function(e){return he({},e)};function Re(e,n){for(var t,r,o,i,l,a,u=e[n][1],c=e[n][2],s=n-1,f=[],p=u._tokenizer||c.parser[u.contentType](u.start),d=p.events,h=[],m={};u;){for(;e[++s][1]!==u;);f.push(s),u._tokenizer||(t=c.sliceStream(u),u.next||t.push(null),r&&p.defineSkip(u.start),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(t),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=u,u=u.next}for(u=r,o=d.length;o--;)"enter"===d[o][0]?i=!0:i&&d[o][1].type===d[o-1][1].type&&d[o][1].start.line!==d[o][1].end.line&&(y(d.slice(o+1,l)),u._tokenizer=u.next=void 0,u=u.previous,l=o+1);for(p.events=u._tokenizer=u.next=void 0,y(d.slice(0,l)),o=-1,a=0;++o<h.length;)m[a+h[o][0]]=a+h[o][1],a+=h[o][1]-h[o][0]-1;return m;function y(n){var t=f.pop();h.unshift([t,t+n.length-1]),Te(e,t,2,n)}}var De=function(e){for(var n,t,r,o,i,l,a,u={},c=-1;++c<e.length;){for(;c in u;)c=u[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(l=n[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1].isInFirstContentOfListItem=!0,r++);if("enter"===n[0])n[1].contentType&&(he(u,Re(e,c)),c=u[c],a=!0);else if(n[1]._container||n[1]._movePreviousLineEndings){for(r=c,t=void 0;r--&&("lineEnding"===(o=e[r])[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(t&&(e[t][1].type="lineEndingBlank"),o[1].type="lineEnding",t=r);t&&(n[1].end=Ae(e[t][1].start),(i=e.slice(t,c)).unshift(n),Te(e,t,c-t+1,i))}}return!a},Ie={tokenize:function(e,n){var t;return function(n){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),r(n)};function r(n){return null===n?o(n):ve(n)?e.check(je,i,o)(n):(e.consume(n),r)}function o(t){return e.exit("chunkContent"),e.exit("content"),n(t)}function i(n){return e.consume(n),e.exit("chunkContent"),t=t.next=e.enter("chunkContent",{contentType:"content",previous:t}),r}},resolve:function(e){return De(e),e},interruptible:!0,lazy:!0},je={tokenize:function(e,n,t){var r=this;return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ke(e,o,"linePrefix")};function o(o){return null===o||ve(o)?t(o):r.parser.constructs.disable.null.indexOf("codeIndented")>-1||_e(r.events,"linePrefix")<4?e.interrupt(r.parser.constructs.flow,t,n)(o):n(o)}},partial:!0},Me=Ie,Le=Object.defineProperty({tokenize:function(e){var n=this,t=e.attempt(we,(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,ke(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Me,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)}}},"__esModule",{value:!0}),$e=Ne("text"),ze=Ne("string");function Ne(e){return{tokenize:function(n){var t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return u(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),a;n.consume(e)}function a(e){return u(e)?(n.exit("data"),o(e)):(n.consume(e),a)}function u(e){var n=r[e],o=-1;if(null===e)return!0;if(n)for(;++o<n.length;)if(!n[o].previous||n[o].previous.call(t,t.previous))return!0}},resolveAll:Be("text"===e?Ue:void 0)}}function Be(e){return function(n,t){for(var r,o=-1;++o<=n.length;)void 0===r?n[o]&&"data"===n[o][1].type&&(r=o,o++):n[o]&&"data"===n[o][1].type||(o!==r+2&&(n[r][1].end=n[o-1][1].end,n.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(n,t):n}}function Ue(e,n){for(var t,r,o,i,l,a,u,c,s=-1;++s<=e.length;)if((s===e.length||"lineEnding"===e[s][1].type)&&"data"===e[s-1][1].type){for(r=e[s-1][1],i=(t=n.sliceStream(r)).length,l=-1,a=0,u=void 0;i--;)if("string"==typeof(o=t[i])){for(l=o.length;32===o.charCodeAt(l-1);)a++,l--;if(l)break;l=-1}else if(-2===o)u=!0,a++;else if(-1!==o){i++;break}a&&(c={type:s===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+i,_bufferIndex:i?l:r.start._bufferIndex+l},end:Ae(r.end)},r.end=Ae(c.start),r.start.offset===r.end.offset?he(r,c):(e.splice(s,0,["enter",c,n],["exit",c,n]),s+=2)),s++}return e}var He={resolveAll:Be()},Ve=ze,qe=$e,We=Object.defineProperty({resolver:He,string:Ve,text:qe},"__esModule",{value:!0}),Ye=function(e){return null==e?[]:"length"in e?e:[e]};function Xe(e,n){var t,r,o,i;for(t in n)for(i in r=me.call(e,t)?e[t]:e[t]={},o=n[t])r[i]=Qe(Ye(o[i]),me.call(r,i)?r[i]:[])}f