Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-to-jsx

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-to-jsx - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

12

dist/index.d.ts

@@ -95,2 +95,14 @@ /**

/**
* Declare the type of the wrapper to be used when there are multiple
* children to render. Set to `null` to get an array of children back
* without any wrapper, or use `React.Fragment` to get a React element
* that won't show up in the DOM.
*/
wrapper: React.ElementType;
/**
* Forces the compiler to wrap results, even if there is only a single
* child or no children.
*/
forceWrapper: boolean;
/**
* Override normalization of non-URI-safe characters for use in generating

@@ -97,0 +109,0 @@ * HTML IDs for anchor linking purposes.

2

dist/index.js

@@ -1,2 +0,2 @@

var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){n(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c=/[\'\"]/,o={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},i={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},l=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,f=/\n{2,}$/,p=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,d=/^ *> ?/gm,g=/^ {2,}\n/,m=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,y=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,h=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,b=/\r\n?/g,x=/^\[\^([^\]]+)](:.*)\n/,O=/^\[\^([^\]]+)]/,H=/\f/g,S=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,I=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,A=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,M=/&([a-z]+);/g,j=/^<!--.*?-->/,E=/^(data|aria|x)-[a-z_][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\\n|$)","gm"),ue=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),se="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",fe=new RegExp("^\\[("+se+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),pe=new RegExp("^!\\[("+se+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),de=[p,h,y,w,I,A,j,C,le,ue,D,R];function ge(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function me(e){return J.test(e)?"right":K.test(e)?"center":Q.test(e)?"left":null}function ye(e,t,n){var r=n.inTable;n.inTable=!0;var a=t(e.trim(),n);n.inTable=r;var c=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&c.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(V,"")),c[c.length-1].push(e))}),c}function he(e,t,n){n.inline=!0;var r=ye(e[1],t,n),a=e[2].replace(q,"").split("|").map(me),c=function(e,t,n){return e.trim().split("\n").map(function(e){return ye(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ke(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ve(e){return function(t,n){return n.inline?e.exec(t):null}}function be(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function xe(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Oe(e){return function(t){return e.exec(t)}}function He(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function Se(e){return e.replace(oe,"$1")}function we(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function Ie(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function Ae(e,t,n){return n.inline=!1,e(t+"\n\n",n)}var Me,je=function(e,t,n){return{content:we(t,e[1],n)}};function Ee(){return{}}function Ce(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Le(e,t,n){for(var r=e,a=t.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||n}function $e(e,t){var n=Le(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Le(t,e+".component",e):e}function Te(e,n){void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||ge,n.namedCodesToUnicode=n.namedCodesToUnicode?a(a({},i),n.namedCodesToUnicode):i;var r=n.createElement||t.createElement;function q(e,t){var c=Le(n.overrides,e+".props",{});return r.apply(void 0,[$e(e,n.overrides),a(a(a({},t),c),{},{className:Ge(null==t?void 0:t.className,c.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===W.test(e));var r,a=ye(me(t?e:e.replace(ae,"")+"\n\n",{inline:t}));return a.length>1?r=q(t?"span":"div",{key:"outer"},a):1===a.length?"string"==typeof(r=a[0])&&(r=q("span",{key:"outer"},r)):r=q("span",{key:"outer"}),r}function K(e){var n=e.match(u);return n?n.reduce(function(e,n,r){var a=n.indexOf("=");if(-1!==a){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(E)&&(e=e.replace(X,function(e,t){return t.toUpperCase()})),e}(n.slice(0,a)).trim(),l=function(e){return e?(c.test(e.charAt(0))&&(e=e.substr(1)),c.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(n.slice(a+1).trim()),u=o[i]||i,s=e[u]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){var n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=t.slice(n.length+1).trim(),e},{}):"href"===e?He(t):(t.match(G)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,l);"string"==typeof s&&(A.test(s)||C.test(s))&&(e[u]=t.cloneElement(V(s.trim()),{key:r}))}else"style"!==n&&(e[o[n]||n]=!0);return e},{}):void 0}var Q=[],J={},oe={blockQuote:{match:xe(p),order:Me.HIGH,parse:function(e,t,n){return{content:t(e[0].replace(d,""),n)}},react:function(e,t,n){return q("blockquote",{key:n.key},t(e.content,n))}},breakLine:{match:Oe(g),order:Me.HIGH,parse:Ee,react:function(e,t,n){return q("br",{key:n.key})}},breakThematic:{match:xe(m),order:Me.HIGH,parse:Ee,react:function(e,t,n){return q("hr",{key:n.key})}},codeBlock:{match:xe(h),order:Me.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,t,n){return q("pre",{key:n.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:xe(y),order:Me.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:be(k),order:Me.LOW,parse:function(e){return{content:e[2]}},react:function(e,t,n){return q("code",{key:n.key},e.content)}},footnote:{match:xe(x),order:Me.MAX,parse:function(e){return Q.push({footnote:e[2],identifier:e[1]}),{}},react:Ce},footnoteReference:{match:ve(O),order:Me.HIGH,parse:function(e){return{content:e[1],target:"#"+n.slugify(e[1])}},react:function(e,t,n){return q("a",{key:n.key,href:He(e.target)},q("sup",{key:n.key},e.content))}},gfmTask:{match:ve(S),order:Me.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,t,n){return q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},heading:{match:xe(w),order:Me.HIGH,parse:function(e,t,r){return{content:we(t,e[2],r),id:n.slugify(e[2]),level:e[1].length}},react:function(e,t,n){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:n.key},t(e.content,n))}},headingSetext:{match:xe(I),order:Me.MAX,parse:function(e,t,n){return{content:we(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:Oe(j),order:Me.HIGH,parse:function(){return{}},react:Ce},image:{match:be(pe),order:Me.HIGH,parse:function(e){return{alt:e[1],target:Se(e[2]),title:e[3]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:He(e.target)})}},link:{match:ve(fe),order:Me.LOW,parse:function(e,t,n){return{content:Ie(t,e[1],n),target:Se(e[2]),title:e[3]}},react:function(e,t,n){return q("a",{key:n.key,href:He(e.target),title:e.title},t(e.content,n))}},linkAngleBraceStyleDetector:{match:ve(T),order:Me.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:ve(L),order:Me.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ve($),order:Me.MAX,parse:function(e){var t=e[1],n=e[1];return s.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function(e,t,n){var r=z.exec(n);return!r||!t._list&&t.inline?null:ue.exec(e=r[1]+e)},order:Me.HIGH,parse:function(e,t,n){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(f,"\n").match(le),i=!1;return{items:o.map(function(e,r){var a=ie.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ie,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=n.inline,d=n._list;n._list=!0,s?(n.inline=!1,f=l.replace(P,"\n\n")):(n.inline=!0,f=l.replace(P,""));var g=t(f,n);return n.inline=p,n._list=d,g}),ordered:a,start:c}},react:function(e,t,n){return q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))}},newlineCoalescer:{match:xe(v),order:Me.LOW,parse:Ee,react:function(){return"\n"}},paragraph:{match:xe(R),order:Me.LOW,parse:je,react:function(e,t,n){return q("p",{key:n.key},t(e.content,n))}},ref:{match:ve(_),order:Me.MAX,parse:function(e){return J[e[1]]={target:e[2],title:e[4]},{}},react:Ce},refImage:{match:be(B),order:Me.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt,src:He(J[e.ref].target),title:J[e.ref].title})}},refLink:{match:ve(N),order:Me.MAX,parse:function(e,t,n){return{content:t(e[1],n),fallbackContent:t(e[0].replace(U,"\\$1"),n),ref:e[2]}},react:function(e,t,n){return J[e.ref]?q("a",{key:n.key,href:He(J[e.ref].target),title:J[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))}},table:{match:xe(D),order:Me.HIGH,parse:he,react:function(e,t,n){return q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ke(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ke(e,a)},t(r,n))}))})))}},tableSeparator:{match:function(e,t){return t.inTable?F.exec(e):null},order:Me.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:Oe(re),order:Me.MIN,parse:function(e){return{content:e[0].replace(M,function(e,t){return n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e})}},react:function(e){return e.content}},textBolded:{match:be(Y),order:Me.MED,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("strong",{key:n.key},t(e.content,n))}},textEmphasized:{match:be(ee),order:Me.LOW,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("em",{key:n.key},t(e.content,n))}},textEscaped:{match:be(ne),order:Me.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:be(te),order:Me.LOW,parse:je,react:function(e,t,n){return q("del",{key:n.key},t(e.content,n))}}};!0!==n.disableParsingRawHTML&&(oe.htmlBlock={match:Oe(A),order:Me.HIGH,parse:function(e,t,n){var r,a=e[3].match(ce),c=new RegExp("^"+a[1],"gm"),o=e[3].replace(c,""),i=(r=o,de.some(function(e){return e.test(r)})?Ae:we),u=e[1].toLowerCase(),s=-1!==l.indexOf(u);return{attrs:K(e[2]),content:s?e[3]:i(t,o,n),noInnerParse:s,tag:s?u:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))}},oe.htmlSelfClosing={match:Oe(C),order:Me.HIGH,parse:function(e){return{attrs:K(e[2]||""),tag:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({},e.attrs,{key:n.key}))}});var se,me=function(e){var t=Object.keys(e);function n(r,a){for(var c=[],o="";r;)for(var i=0;i<t.length;){var l=t[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,n,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return t.sort(function(t,n){var r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(b,"\n").replace(H,"").replace(Z," ")}(e),t)}}(oe),ye=(se=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(oe),function e(t,n){if(void 0===n&&(n={}),Array.isArray(t)){for(var r=n.key,a=[],c=!1,o=0;o<t.length;o++){n.key=o;var i=e(t[o],n),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return n.key=r,a}return se(t,e,n)}),Te=V(e.replace(/<!--[\s\S]*?(?:-->)/g,""));return Q.length&&Te.props.children.push(q("footer",{key:"footer"},Q.map(function(e){return q("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,ye(me(e.footnote,{inline:!0})))}))),Te}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Me||(Me={}));var Pe=function(e){var n=e.children,r=e.options,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)t.indexOf(n=c[r])>=0||(a[n]=e[n]);return a}(e,["children","options"]);return t.cloneElement(Te(n,r),a)};Object.assign(Pe,{compiler:Te}),module.exports=Pe;
var e,n=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var r=/[\'\"]/,a={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],i=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,l=/mailto:/i,u=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,f=/^ *> ?/gm,p=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,h=/^(?:\n *)*\n/,k=/\r\n?/g,v=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,b=/\f/g,H=/^\s*?\[(x|\s)\]/,I=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,S=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,A=/&([a-z]+);/g,M=/^<!--.*?-->/,w=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,E=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,C=/^\{.*\}$/,G=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,L=/^<([^ >]+@[^ >]+)>/,$=/^<([^ >]+:\/[^ >]+)>/,T=/ *\n+$/,z=/(?:^|\n)( *)$/,X=/-([a-z])?/gi,j=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[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?)['\"])?\\s*\\)"),se=new RegExp("^!\\[("+le+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),fe=[s,g,m,I,S,O,M,E,oe,ie,j,R];function pe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function de(e){return K.test(e)?"right":q.test(e)?"center":V.test(e)?"left":null}function me(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var c=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&c.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(F,"")),c[c.length-1].push(e))}),c}function ge(e,n,t){t.inline=!0;var r=me(e[1],n,t),a=e[2].replace(Z,"").split("|").map(de),c=function(e,n,t){return e.trim().split("\n").map(function(e){return me(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ye(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function he(e){return function(n,t){return t.inline?e.exec(n):null}}function ke(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function ve(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function xe(e){return function(n){return e.exec(n)}}function be(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(ae,"$1")}function Ie(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Se(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Oe(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Ae,Me=function(e,n,t){return{content:Ie(n,e[1],t)}};function we(){return{}}function Ee(){return null}function Ce(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ge(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function Le(e,n){var t=Ge(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ge(n,e+".component",e):e}function $e(e,Z){void 0===Z&&(Z={}),Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||pe,Z.namedCodesToUnicode=Z.namedCodesToUnicode?t({},c,Z.namedCodesToUnicode):c;var F=Z.createElement||n.createElement;function q(e,n){var r=Ge(Z.overrides,e+".props",{});return F.apply(void 0,[Le(e,Z.overrides),t({},n,r,{className:Ce(null==n?void 0:n.className,r.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var t=!1;Z.forceInline?t=!0:Z.forceBlock||(t=!1===U.test(e));var r=Te($e(t?e:e.replace(te,"")+"\n\n",{inline:t}));if(null===Z.wrapper)return r;var a,c=Z.wrapper||(t?"span":"div");if(r.length>1||Z.forceWrapper)a=r;else{if(1===r.length)return"string"==typeof(a=r[0])?q("span",{key:"outer"},a):a;a=null}return n.createElement(c,{key:"outer"},a)}function K(e){var t=e.match(i);return t?t.reduce(function(e,t,c){var o=t.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(w)&&(e=e.replace(X,function(e,n){return n.toUpperCase()})),e}(t.slice(0,o)).trim(),l=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(t.slice(o+1).trim()),u=a[i]||i,s=e[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?be(n):(n.match(C)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(O.test(s)||E.test(s))&&(e[u]=n.cloneElement(V(s.trim()),{key:c}))}else"style"!==t&&(e[a[t]||t]=!0);return e},{}):void 0}var ae=[],le={},de={blockQuote:{match:ve(s),order:Ae.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(f,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:xe(p),order:Ae.HIGH,parse:we,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:ve(d),order:Ae.HIGH,parse:we,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:ve(g),order:Ae.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:ve(m),order:Ae.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:ke(y),order:Ae.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:ve(v),order:Ae.MAX,parse:function(e){return ae.push({footnote:e[2],identifier:e[1]}),{}},react:Ee},footnoteReference:{match:he(x),order:Ae.HIGH,parse:function(e){return{content:e[1],target:"#"+Z.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:be(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:he(H),order:Ae.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:ve(I),order:Ae.HIGH,parse:function(e,n,t){return{content:Ie(n,e[2],t),id:Z.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:ve(S),order:Ae.MAX,parse:function(e,n,t){return{content:Ie(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:xe(M),order:Ae.HIGH,parse:function(){return{}},react:Ee},image:{match:ke(se),order:Ae.HIGH,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:be(e.target)})}},link:{match:he(ue),order:Ae.LOW,parse:function(e,n,t){return{content:Se(n,e[1],t),target:He(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:be(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:he($),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:he(G),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:he(L),order:Ae.MAX,parse:function(e){var n=e[1],t=e[1];return l.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=z.exec(t);return!r||!n._list&&n.inline?null:ie.exec(e=r[1]+e)},order:Ae.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(u,"\n").match(oe),i=!1;return{items:o.map(function(e,r){var a=ce.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ce,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,f=l.replace(T,"\n\n")):(t.inline=!0,f=l.replace(T,""));var m=n(f,t);return t.inline=p,t._list=d,m}),ordered:a,start:c}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:ve(h),order:Ae.LOW,parse:we,react:function(){return"\n"}},paragraph:{match:ve(R),order:Ae.LOW,parse:Me,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:he(W),order:Ae.MAX,parse:function(e){return le[e[1]]={target:e[2],title:e[4]},{}},react:Ee},refImage:{match:ke(_),order:Ae.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:be(le[e.ref].target),title:le[e.ref].title})}},refLink:{match:he(B),order:Ae.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(N,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return le[e.ref]?q("a",{key:t.key,href:be(le[e.ref].target),title:le[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:ve(j),order:Ae.HIGH,parse:ge,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ye(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ye(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?P.exec(e):null},order:Ae.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:xe(ne),order:Ae.MIN,parse:function(e){return{content:e[0].replace(A,function(e,n){return Z.namedCodesToUnicode[n]?Z.namedCodesToUnicode[n]:e})}},react:function(e){return e.content}},textBolded:{match:ke(Q),order:Ae.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:ke(J),order:Ae.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:ke(ee),order:Ae.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:ke(Y),order:Ae.LOW,parse:Me,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==Z.disableParsingRawHTML&&(de.htmlBlock={match:xe(O),order:Ae.HIGH,parse:function(e,n,t){var r,a=e[3].match(re),c=new RegExp("^"+a[1],"gm"),i=e[3].replace(c,""),l=(r=i,fe.some(function(e){return e.test(r)})?Oe:Ie),u=e[1].toLowerCase(),s=-1!==o.indexOf(u);return{attrs:K(e[2]),content:s?e[3]:l(n,i,t),noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},de.htmlSelfClosing={match:xe(E),order:Ae.HIGH,parse:function(e){return{attrs:K(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var me,$e=function(e){var n=Object.keys(e);function t(r,a){for(var c=[],o="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,t,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(k,"\n").replace(b,"").replace(D," ")}(e),n)}}(de),Te=(me=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(de),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],c=!1,o=0;o<n.length;o++){t.key=o;var i=e(n[o],t),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return t.key=r,a}return me(n,e,t)}),ze=V(e.replace(/<!--[\s\S]*?(?:-->)/g,""));return ae.length&&ze.props.children.push(q("footer",{key:"footer"},ae.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Te($e(e.footnote,{inline:!0})))}))),ze}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ae||(Ae={}));var Te=function(e){var t=e.children,r=e.options,a=function(e,n){if(null==e)return{};var t,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n.indexOf(t=c[r])>=0||(a[t]=e[t]);return a}(e,["children","options"]);return n.cloneElement($e(t,r),a)};Object.assign(Te,{compiler:$e}),module.exports=Te;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import e from"react";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?n(Object(a),!0).forEach(function(n){t(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var a=/[\'\"]/;const o={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},l=["style","script"],i=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,p=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,d=/^ *> ?/gm,f=/^ {2,}\n/,g=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,h=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,b=/\r\n?/g,x=/^\[\^([^\]]+)](:.*)\n/,O=/^\[\^([^\]]+)]/,v=/\f/g,H=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,w=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,I=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,A=/&([a-z]+);/g,M=/^<!--.*?-->/,j=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,E=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,C=/^\{.*\}$/,G=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,L=/^<([^ >]+@[^ >]+)>/,$=/^<([^ >]+:\/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]*\\]))*",pe=new RegExp("^\\[("+se+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ue=new RegExp("^!\\[("+se+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),de=[u,y,m,S,w,I,M,E,le,ie,X,D];function fe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ge(e){return Q.test(e)?"right":V.test(e)?"center":K.test(e)?"left":null}function me(e,t,n){const r=n.inTable;n.inTable=!0;const a=t(e.trim(),n);n.inTable=r;let o=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&o.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(q,"")),o[o.length-1].push(e))}),o}function ye(e,t,n){n.inline=!0;const r=me(e[1],t,n),a=e[2].replace(F,"").split("|").map(ge),o=function(e,t,n){return e.trim().split("\n").map(function(e){return me(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:o,header:r,type:"table"}}function he(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ke(e){return function(t,n){return n.inline?e.exec(t):null}}function be(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function xe(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Oe(e){return function(t){return e.exec(t)}}function ve(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(oe,"$1")}function Se(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function we(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function Ie(e,t,n){return n.inline=!1,e(t+"\n\n",n)}const Ae=(e,t,n)=>({content:Se(t,e[1],n)});function Me(){return{}}function je(){return null}function Ee(...e){return e.filter(Boolean).join(" ")}function Ce(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],void 0!==r);)a.shift();return r||n}var Ge;function Le(t,n={}){n.overrides=n.overrides||{},n.slugify=n.slugify||fe,n.namedCodesToUnicode=n.namedCodesToUnicode?r(r({},c),n.namedCodesToUnicode):c;const F=n.createElement||e.createElement;function q(e,t,...a){const o=Ce(n.overrides,e+".props",{});return F(function(e,t){const n=Ce(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ce(t,e+".component",e):e}(e,n.overrides),r(r(r({},t),o),{},{className:Ee(null==t?void 0:t.className,o.className)||void 0}),...a)}function V(e){let t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===U.test(e));const r=me(ge(t?e:e.replace(re,"")+"\n\n",{inline:t}));let a;return r.length>1?a=q(t?"span":"div",{key:"outer"},r):1===r.length?(a=r[0],"string"==typeof a&&(a=q("span",{key:"outer"},a))):a=q("span",{key:"outer"}),a}function K(t){const n=t.match(i);return n?n.reduce(function(t,n,r){const c=n.indexOf("=");if(-1!==c){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(j)&&(e=e.replace(z,function(e,t){return t.toUpperCase()})),e}(n.slice(0,c)).trim(),i=function(e){return e?(a.test(e.charAt(0))&&(e=e.substr(1)),a.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(n.slice(c+1).trim()),s=o[l]||l,p=t[s]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===e?ve(t):(t.match(C)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(l,i);"string"==typeof p&&(I.test(p)||E.test(p))&&(t[s]=e.cloneElement(V(p.trim()),{key:r}))}else"style"!==n&&(t[o[n]||n]=!0);return t},{}):void 0}const Q=[],oe={},se={blockQuote:{match:xe(u),order:Ge.HIGH,parse:(e,t,n)=>({content:t(e[0].replace(d,""),n)}),react:(e,t,n)=>q("blockquote",{key:n.key},t(e.content,n))},breakLine:{match:Oe(f),order:Ge.HIGH,parse:Me,react:(e,t,n)=>q("br",{key:n.key})},breakThematic:{match:xe(g),order:Ge.HIGH,parse:Me,react:(e,t,n)=>q("hr",{key:n.key})},codeBlock:{match:xe(y),order:Ge.MAX,parse:e=>({content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}),react:(e,t,n)=>q("pre",{key:n.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))},codeFenced:{match:xe(m),order:Ge.MAX,parse:e=>({content:e[3],lang:e[2]||void 0,type:"codeBlock"})},codeInline:{match:be(h),order:Ge.LOW,parse:e=>({content:e[2]}),react:(e,t,n)=>q("code",{key:n.key},e.content)},footnote:{match:xe(x),order:Ge.MAX,parse:e=>(Q.push({footnote:e[2],identifier:e[1]}),{}),react:je},footnoteReference:{match:ke(O),order:Ge.HIGH,parse:e=>({content:e[1],target:"#"+n.slugify(e[1])}),react:(e,t,n)=>q("a",{key:n.key,href:ve(e.target)},q("sup",{key:n.key},e.content))},gfmTask:{match:ke(H),order:Ge.HIGH,parse:e=>({completed:"x"===e[1].toLowerCase()}),react:(e,t,n)=>q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},heading:{match:xe(S),order:Ge.HIGH,parse:(e,t,r)=>({content:Se(t,e[2],r),id:n.slugify(e[2]),level:e[1].length}),react:(e,t,n)=>(e.tag="h"+e.level,q(e.tag,{id:e.id,key:n.key},t(e.content,n)))},headingSetext:{match:xe(w),order:Ge.MAX,parse:(e,t,n)=>({content:Se(t,e[1],n),level:"="===e[2]?1:2,type:"heading"})},htmlComment:{match:Oe(M),order:Ge.HIGH,parse:()=>({}),react:je},image:{match:be(ue),order:Ge.HIGH,parse:e=>({alt:e[1],target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:ve(e.target)})},link:{match:ke(pe),order:Ge.LOW,parse:(e,t,n)=>({content:we(t,e[1],n),target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("a",{key:n.key,href:ve(e.target),title:e.title},t(e.content,n))},linkAngleBraceStyleDetector:{match:ke($),order:Ge.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],type:"link"})},linkBareUrlDetector:{match:ke(G),order:Ge.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"})},linkMailtoDetector:{match:ke(L),order:Ge.MAX,parse(e){let t=e[1],n=e[1];return s.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match(e,t,n){const r=T.exec(n);return!r||!t._list&&t.inline?null:ie.exec(e=r[1]+e)},order:Ge.HIGH,parse(e,t,n){const r=e[2],a=r.length>1,o=a?+r:void 0,c=e[0].replace(p,"\n").match(le);let l=!1;return{items:c.map(function(e,r){const a=ce.exec(e)[0].length,o=new RegExp("^ {1,"+a+"}","gm"),i=e.replace(o,"").replace(ce,""),s=r===c.length-1,p=-1!==i.indexOf("\n\n")||s&&l;l=p;const u=n.inline,d=n._list;let f;n._list=!0,p?(n.inline=!1,f=i.replace(P,"\n\n")):(n.inline=!0,f=i.replace(P,""));const g=t(f,n);return n.inline=u,n._list=d,g}),ordered:a,start:o}},react:(e,t,n)=>q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))},newlineCoalescer:{match:xe(k),order:Ge.LOW,parse:Me,react:()=>"\n"},paragraph:{match:xe(D),order:Ge.LOW,parse:Ae,react:(e,t,n)=>q("p",{key:n.key},t(e.content,n))},ref:{match:ke(R),order:Ge.MAX,parse:e=>(oe[e[1]]={target:e[2],title:e[4]},{}),react:je},refImage:{match:be(_),order:Ge.MAX,parse:e=>({alt:e[1]||void 0,ref:e[2]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt,src:ve(oe[e.ref].target),title:oe[e.ref].title})},refLink:{match:ke(B),order:Ge.MAX,parse:(e,t,n)=>({content:t(e[1],n),fallbackContent:t(e[0].replace(N,"\\$1"),n),ref:e[2]}),react:(e,t,n)=>oe[e.ref]?q("a",{key:n.key,href:ve(oe[e.ref].target),title:oe[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))},table:{match:xe(X),order:Ge.HIGH,parse:ye,react:(e,t,n)=>q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:he(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:he(e,a)},t(r,n))}))})))},tableSeparator:{match:function(e,t){return t.inTable?Z.exec(e):null},order:Ge.HIGH,parse:function(){return{type:"tableSeparator"}},react:()=>" | "},text:{match:Oe(ne),order:Ge.MIN,parse:e=>({content:e[0].replace(A,(e,t)=>n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e)}),react:e=>e.content},textBolded:{match:be(J),order:Ge.MED,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("strong",{key:n.key},t(e.content,n))},textEmphasized:{match:be(Y),order:Ge.LOW,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("em",{key:n.key},t(e.content,n))},textEscaped:{match:be(te),order:Ge.HIGH,parse:e=>({content:e[1],type:"text"})},textStrikethroughed:{match:be(ee),order:Ge.LOW,parse:Ae,react:(e,t,n)=>q("del",{key:n.key},t(e.content,n))}};!0!==n.disableParsingRawHTML&&(se.htmlBlock={match:Oe(I),order:Ge.HIGH,parse(e,t,n){const[,r]=e[3].match(ae),a=new RegExp("^"+r,"gm"),o=e[3].replace(a,""),c=(i=o,de.some(e=>e.test(i))?Ie:Se);var i;const s=e[1].toLowerCase(),p=-1!==l.indexOf(s);return{attrs:K(e[2]),content:p?e[3]:c(t,o,n),noInnerParse:p,tag:p?s:e[1]}},react:(e,t,n)=>q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))},se.htmlSelfClosing={match:Oe(E),order:Ge.HIGH,parse:e=>({attrs:K(e[2]||""),tag:e[1]}),react:(e,t,n)=>q(e.tag,Object.assign({},e.attrs,{key:n.key}))});const ge=function(e){let t=Object.keys(e);function n(r,a){let o=[],c="";for(;r;){let l=0;for(;l<t.length;){const i=t[l],s=e[i],p=s.match(r,a,c);if(p){const e=p[0];r=r.substring(e.length);const t=s.parse(p,n,a);null==t.type&&(t.type=i),o.push(t),c=e;break}l++}}return o}return t.sort(function(t,n){let r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(b,"\n").replace(v,"").replace(W," ")}(e),t)}}(se),me=(Le=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(se),function e(t,n={}){if(Array.isArray(t)){const r=n.key,a=[];let o=!1;for(let r=0;r<t.length;r++){n.key=r;const c=e(t[r],n),l="string"==typeof c;l&&o?a[a.length-1]+=c:a.push(c),o=l}return n.key=r,a}return Le(t,e,n)});var Le;const $e=V(t.replace(/<!--[\s\S]*?(?:-->)/g,""));return Q.length&&$e.props.children.push(q("footer",{key:"footer"},Q.map(function(e){return q("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,me(ge(e.footnote,{inline:!0})))}))),$e}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ge||(Ge={}));export default t=>{let{children:n,options:r}=t,a=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["children","options"]);return e.cloneElement(Le(n,r),a)};export{Le as compiler};
import e from"react";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var n=/[\'\"]/;const r={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],o=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)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?\[([^\]]*)\]/,B=/(\[|\])/g,N=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,U=/\t/g,D=/^ *\| */,P=/(^ *\||\| *$)/g,Z=/ *$/,F=/^ *:-+: *$/,q=/^ *:-+ *$/,V=/^ *-+: *$/,K=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Q=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,J=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,ee=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,te=/(^\n+|\n+$|\s+$)/g,ne=/^([ \t]*)/,re=/\\([^0-9A-Z\s])/gi,ae=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ce=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),le="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",ie=new RegExp("^\\[("+le+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),se=new RegExp("^!\\[("+le+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),pe=[s,m,f,v,I,S,M,w,ce,oe,X,R];function ue(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function de(e){return V.test(e)?"right":F.test(e)?"center":q.test(e)?"left":null}function fe(e,t,n){const r=n.inTable;n.inTable=!0;const a=t(e.trim(),n);n.inTable=r;let c=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&c.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(Z,"")),c[c.length-1].push(e))}),c}function me(e,t,n){n.inline=!0;const r=fe(e[1],t,n),a=e[2].replace(P,"").split("|").map(de),c=function(e,t,n){return e.trim().split("\n").map(function(e){return fe(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ge(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ye(e){return function(t,n){return n.inline?e.exec(t):null}}function he(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function ke(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function xe(e){return function(t){return e.exec(t)}}function be(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(re,"$1")}function ve(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const c=e(t,n);return n.inline=r,n.simple=a,c}function Ie(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const c=e(t,n);return n.inline=r,n.simple=a,c}function Se(e,t,n){return n.inline=!1,e(t+"\n\n",n)}const Ae=(e,t,n)=>({content:ve(t,e[1],n)});function Me(){return{}}function Oe(){return null}function we(...e){return e.filter(Boolean).join(" ")}function Ee(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],void 0!==r);)a.shift();return r||n}var Ce;function Ge(P,Z={}){Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||ue,Z.namedCodesToUnicode=Z.namedCodesToUnicode?t({},a,Z.namedCodesToUnicode):a;const F=Z.createElement||e.createElement;function q(e,n,...r){const a=Ee(Z.overrides,e+".props",{});return F(function(e,t){const n=Ee(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ee(t,e+".component",e):e}(e,Z.overrides),t({},n,a,{className:we(null==n?void 0:n.className,a.className)||void 0}),...r)}function V(t){let n=!1;Z.forceInline?n=!0:Z.forceBlock||(n=!1===N.test(t));const r=Le(Ge(n?t:t.replace(te,"")+"\n\n",{inline:n}));if(null===Z.wrapper)return r;const a=Z.wrapper||(n?"span":"div");let c;if(r.length>1||Z.forceWrapper)c=r;else{if(1===r.length)return c=r[0],"string"==typeof c?q("span",{key:"outer"},c):c;c=null}return e.createElement(a,{key:"outer"},c)}function re(t){const a=t.match(o);return a?a.reduce(function(t,a,c){const o=a.indexOf("=");if(-1!==o){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(O)&&(e=e.replace(z,function(e,t){return t.toUpperCase()})),e}(a.slice(0,o)).trim(),i=function(e){return e?(n.test(e.charAt(0))&&(e=e.substr(1)),n.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(a.slice(o+1).trim()),s=r[l]||l,p=t[s]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===e?be(t):(t.match(E)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(l,i);"string"==typeof p&&(S.test(p)||w.test(p))&&(t[s]=e.cloneElement(V(p.trim()),{key:c}))}else"style"!==a&&(t[r[a]||a]=!0);return t},{}):void 0}const le=[],de={},fe={blockQuote:{match:ke(s),order:Ce.HIGH,parse:(e,t,n)=>({content:t(e[0].replace(p,""),n)}),react:(e,t,n)=>q("blockquote",{key:n.key},t(e.content,n))},breakLine:{match:xe(u),order:Ce.HIGH,parse:Me,react:(e,t,n)=>q("br",{key:n.key})},breakThematic:{match:ke(d),order:Ce.HIGH,parse:Me,react:(e,t,n)=>q("hr",{key:n.key})},codeBlock:{match:ke(m),order:Ce.MAX,parse:e=>({content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}),react:(e,t,n)=>q("pre",{key:n.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))},codeFenced:{match:ke(f),order:Ce.MAX,parse:e=>({content:e[3],lang:e[2]||void 0,type:"codeBlock"})},codeInline:{match:he(g),order:Ce.LOW,parse:e=>({content:e[2]}),react:(e,t,n)=>q("code",{key:n.key},e.content)},footnote:{match:ke(k),order:Ce.MAX,parse:e=>(le.push({footnote:e[2],identifier:e[1]}),{}),react:Oe},footnoteReference:{match:ye(x),order:Ce.HIGH,parse:e=>({content:e[1],target:"#"+Z.slugify(e[1])}),react:(e,t,n)=>q("a",{key:n.key,href:be(e.target)},q("sup",{key:n.key},e.content))},gfmTask:{match:ye(H),order:Ce.HIGH,parse:e=>({completed:"x"===e[1].toLowerCase()}),react:(e,t,n)=>q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},heading:{match:ke(v),order:Ce.HIGH,parse:(e,t,n)=>({content:ve(t,e[2],n),id:Z.slugify(e[2]),level:e[1].length}),react:(e,t,n)=>(e.tag="h"+e.level,q(e.tag,{id:e.id,key:n.key},t(e.content,n)))},headingSetext:{match:ke(I),order:Ce.MAX,parse:(e,t,n)=>({content:ve(t,e[1],n),level:"="===e[2]?1:2,type:"heading"})},htmlComment:{match:xe(M),order:Ce.HIGH,parse:()=>({}),react:Oe},image:{match:he(se),order:Ce.HIGH,parse:e=>({alt:e[1],target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:be(e.target)})},link:{match:ye(ie),order:Ce.LOW,parse:(e,t,n)=>({content:Ie(t,e[1],n),target:He(e[2]),title:e[3]}),react:(e,t,n)=>q("a",{key:n.key,href:be(e.target),title:e.title},t(e.content,n))},linkAngleBraceStyleDetector:{match:ye(L),order:Ce.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],type:"link"})},linkBareUrlDetector:{match:ye(C),order:Ce.MAX,parse:e=>({content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"})},linkMailtoDetector:{match:ye(G),order:Ce.MAX,parse(e){let t=e[1],n=e[1];return l.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match(e,t,n){const r=T.exec(n);return!r||!t._list&&t.inline?null:oe.exec(e=r[1]+e)},order:Ce.HIGH,parse(e,t,n){const r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(i,"\n").match(ce);let l=!1;return{items:o.map(function(e,r){const a=ae.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),i=e.replace(c,"").replace(ae,""),s=r===o.length-1,p=-1!==i.indexOf("\n\n")||s&&l;l=p;const u=n.inline,d=n._list;let f;n._list=!0,p?(n.inline=!1,f=i.replace($,"\n\n")):(n.inline=!0,f=i.replace($,""));const m=t(f,n);return n.inline=u,n._list=d,m}),ordered:a,start:c}},react:(e,t,n)=>q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))},newlineCoalescer:{match:ke(y),order:Ce.LOW,parse:Me,react:()=>"\n"},paragraph:{match:ke(R),order:Ce.LOW,parse:Ae,react:(e,t,n)=>q("p",{key:n.key},t(e.content,n))},ref:{match:ye(W),order:Ce.MAX,parse:e=>(de[e[1]]={target:e[2],title:e[4]},{}),react:Oe},refImage:{match:he(_),order:Ce.MAX,parse:e=>({alt:e[1]||void 0,ref:e[2]}),react:(e,t,n)=>q("img",{key:n.key,alt:e.alt,src:be(de[e.ref].target),title:de[e.ref].title})},refLink:{match:ye(j),order:Ce.MAX,parse:(e,t,n)=>({content:t(e[1],n),fallbackContent:t(e[0].replace(B,"\\$1"),n),ref:e[2]}),react:(e,t,n)=>de[e.ref]?q("a",{key:n.key,href:be(de[e.ref].target),title:de[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))},table:{match:ke(X),order:Ce.HIGH,parse:me,react:(e,t,n)=>q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ge(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ge(e,a)},t(r,n))}))})))},tableSeparator:{match:function(e,t){return t.inTable?D.exec(e):null},order:Ce.HIGH,parse:function(){return{type:"tableSeparator"}},react:()=>" | "},text:{match:xe(ee),order:Ce.MIN,parse:e=>({content:e[0].replace(A,(e,t)=>Z.namedCodesToUnicode[t]?Z.namedCodesToUnicode[t]:e)}),react:e=>e.content},textBolded:{match:he(K),order:Ce.MED,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("strong",{key:n.key},t(e.content,n))},textEmphasized:{match:he(Q),order:Ce.LOW,parse:(e,t,n)=>({content:t(e[2],n)}),react:(e,t,n)=>q("em",{key:n.key},t(e.content,n))},textEscaped:{match:he(Y),order:Ce.HIGH,parse:e=>({content:e[1],type:"text"})},textStrikethroughed:{match:he(J),order:Ce.LOW,parse:Ae,react:(e,t,n)=>q("del",{key:n.key},t(e.content,n))}};!0!==Z.disableParsingRawHTML&&(fe.htmlBlock={match:xe(S),order:Ce.HIGH,parse(e,t,n){const[,r]=e[3].match(ne),a=new RegExp("^"+r,"gm"),o=e[3].replace(a,""),l=(i=o,pe.some(e=>e.test(i))?Se:ve);var i;const s=e[1].toLowerCase(),p=-1!==c.indexOf(s);return{attrs:re(e[2]),content:p?e[3]:l(t,o,n),noInnerParse:p,tag:p?s:e[1]}},react:(e,t,n)=>q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))},fe.htmlSelfClosing={match:xe(w),order:Ce.HIGH,parse:e=>({attrs:re(e[2]||""),tag:e[1]}),react:(e,t,n)=>q(e.tag,Object.assign({},e.attrs,{key:n.key}))});const Ge=function(e){let t=Object.keys(e);function n(r,a){let c=[],o="";for(;r;){let l=0;for(;l<t.length;){const i=t[l],s=e[i],p=s.match(r,a,o);if(p){const e=p[0];r=r.substring(e.length);const t=s.parse(p,n,a);null==t.type&&(t.type=i),c.push(t),o=e;break}l++}}return c}return t.sort(function(t,n){let r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(h,"\n").replace(b,"").replace(U," ")}(e),t)}}(fe),Le=($e=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(fe),function e(t,n={}){if(Array.isArray(t)){const r=n.key,a=[];let c=!1;for(let r=0;r<t.length;r++){n.key=r;const o=e(t[r],n),l="string"==typeof o;l&&c?a[a.length-1]+=o:a.push(o),c=l}return n.key=r,a}return $e(t,e,n)});var $e;const Te=V(P.replace(/<!--[\s\S]*?(?:-->)/g,""));return le.length&&Te.props.children.push(q("footer",{key:"footer"},le.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Le(Ge(e.footnote,{inline:!0})))}))),Te}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ce||(Ce={}));export default t=>{let{children:n,options:r}=t,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)t.indexOf(n=c[r])>=0||(a[n]=e[n]);return a}(t,["children","options"]);return e.cloneElement(Ge(n,r),a)};export{Ge as compiler};
//# sourceMappingURL=index.modern.js.map

@@ -1,2 +0,2 @@

import e from"react";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?n(Object(a),!0).forEach(function(n){t(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var a=/[\'\"]/,c={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},i=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.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n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,Z=/^ *\| */,F=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,K=/^ *:-+ *$/,Q=/^ *-+: *$/,J=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Y=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,te=/^\\([^0-9A-Za-z\s])/,ne=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,re=/(^\n+|\n+$|\s+$)/g,ae=/^([ \t]*)/,ce=/\\([^0-9A-Z\s])/gi,oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ie=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),le=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ue="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",se=new RegExp("^\\[("+ue+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),fe=new RegExp("^!\\[("+ue+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),pe=[f,y,m,S,w,I,M,j,ie,le,X,D];function de(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ge(e){return Q.test(e)?"right":V.test(e)?"center":K.test(e)?"left":null}function me(e,t,n){var r=n.inTable;n.inTable=!0;var a=t(e.trim(),n);n.inTable=r;var c=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&c.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(q,"")),c[c.length-1].push(e))}),c}function ye(e,t,n){n.inline=!0;var r=me(e[1],t,n),a=e[2].replace(F,"").split("|").map(ge),c=function(e,t,n){return e.trim().split("\n").map(function(e){return me(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:c,header:r,type:"table"}}function he(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ke(e){return function(t,n){return n.inline?e.exec(t):null}}function ve(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function be(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function xe(e){return function(t){return e.exec(t)}}function Oe(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(ce,"$1")}function Se(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function we(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function Ie(e,t,n){return n.inline=!1,e(t+"\n\n",n)}var Ae,Me=function(e,t,n){return{content:Se(t,e[1],n)}};function Ee(){return{}}function je(){return null}function Ce(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ge(e,t,n){for(var r=e,a=t.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||n}function Le(e,t){var n=Ge(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ge(t,e+".component",e):e}function $e(t,n){void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||de,n.namedCodesToUnicode=n.namedCodesToUnicode?r(r({},o),n.namedCodesToUnicode):o;var F=n.createElement||e.createElement;function q(e,t){var a=Ge(n.overrides,e+".props",{});return F.apply(void 0,[Le(e,n.overrides),r(r(r({},t),a),{},{className:Ce(null==t?void 0:t.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===U.test(e));var r,a=$e(me(t?e:e.replace(re,"")+"\n\n",{inline:t}));return a.length>1?r=q(t?"span":"div",{key:"outer"},a):1===a.length?"string"==typeof(r=a[0])&&(r=q("span",{key:"outer"},r)):r=q("span",{key:"outer"}),r}function K(t){var n=t.match(l);return n?n.reduce(function(t,n,r){var o=n.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(E)&&(e=e.replace(z,function(e,t){return t.toUpperCase()})),e}(n.slice(0,o)).trim(),l=function(e){return e?(a.test(e.charAt(0))&&(e=e.substr(1)),a.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(n.slice(o+1).trim()),u=c[i]||i,s=t[u]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){var n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=t.slice(n.length+1).trim(),e},{}):"href"===e?Oe(t):(t.match(C)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,l);"string"==typeof s&&(I.test(s)||j.test(s))&&(t[u]=e.cloneElement(V(s.trim()),{key:r}))}else"style"!==n&&(t[c[n]||n]=!0);return t},{}):void 0}var Q=[],ce={},ue={blockQuote:{match:be(f),order:Ae.HIGH,parse:function(e,t,n){return{content:t(e[0].replace(p,""),n)}},react:function(e,t,n){return q("blockquote",{key:n.key},t(e.content,n))}},breakLine:{match:xe(d),order:Ae.HIGH,parse:Ee,react:function(e,t,n){return q("br",{key:n.key})}},breakThematic:{match:be(g),order:Ae.HIGH,parse:Ee,react:function(e,t,n){return q("hr",{key:n.key})}},codeBlock:{match:be(y),order:Ae.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,t,n){return q("pre",{key:n.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:be(m),order:Ae.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:ve(h),order:Ae.LOW,parse:function(e){return{content:e[2]}},react:function(e,t,n){return q("code",{key:n.key},e.content)}},footnote:{match:be(b),order:Ae.MAX,parse:function(e){return Q.push({footnote:e[2],identifier:e[1]}),{}},react:je},footnoteReference:{match:ke(x),order:Ae.HIGH,parse:function(e){return{content:e[1],target:"#"+n.slugify(e[1])}},react:function(e,t,n){return q("a",{key:n.key,href:Oe(e.target)},q("sup",{key:n.key},e.content))}},gfmTask:{match:ke(H),order:Ae.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,t,n){return q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},heading:{match:be(S),order:Ae.HIGH,parse:function(e,t,r){return{content:Se(t,e[2],r),id:n.slugify(e[2]),level:e[1].length}},react:function(e,t,n){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:n.key},t(e.content,n))}},headingSetext:{match:be(w),order:Ae.MAX,parse:function(e,t,n){return{content:Se(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:xe(M),order:Ae.HIGH,parse:function(){return{}},react:je},image:{match:ve(fe),order:Ae.HIGH,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:Oe(e.target)})}},link:{match:ke(se),order:Ae.LOW,parse:function(e,t,n){return{content:we(t,e[1],n),target:He(e[2]),title:e[3]}},react:function(e,t,n){return q("a",{key:n.key,href:Oe(e.target),title:e.title},t(e.content,n))}},linkAngleBraceStyleDetector:{match:ke($),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:ke(G),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ke(L),order:Ae.MAX,parse:function(e){var t=e[1],n=e[1];return u.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function(e,t,n){var r=P.exec(n);return!r||!t._list&&t.inline?null:le.exec(e=r[1]+e)},order:Ae.HIGH,parse:function(e,t,n){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(s,"\n").match(ie),i=!1;return{items:o.map(function(e,r){var a=oe.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(oe,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=n.inline,d=n._list;n._list=!0,s?(n.inline=!1,f=l.replace(T,"\n\n")):(n.inline=!0,f=l.replace(T,""));var g=t(f,n);return n.inline=p,n._list=d,g}),ordered:a,start:c}},react:function(e,t,n){return q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))}},newlineCoalescer:{match:be(k),order:Ae.LOW,parse:Ee,react:function(){return"\n"}},paragraph:{match:be(D),order:Ae.LOW,parse:Me,react:function(e,t,n){return q("p",{key:n.key},t(e.content,n))}},ref:{match:ke(R),order:Ae.MAX,parse:function(e){return ce[e[1]]={target:e[2],title:e[4]},{}},react:je},refImage:{match:ve(_),order:Ae.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt,src:Oe(ce[e.ref].target),title:ce[e.ref].title})}},refLink:{match:ke(B),order:Ae.MAX,parse:function(e,t,n){return{content:t(e[1],n),fallbackContent:t(e[0].replace(N,"\\$1"),n),ref:e[2]}},react:function(e,t,n){return ce[e.ref]?q("a",{key:n.key,href:Oe(ce[e.ref].target),title:ce[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))}},table:{match:be(X),order:Ae.HIGH,parse:ye,react:function(e,t,n){return q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:he(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:he(e,a)},t(r,n))}))})))}},tableSeparator:{match:function(e,t){return t.inTable?Z.exec(e):null},order:Ae.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:xe(ne),order:Ae.MIN,parse:function(e){return{content:e[0].replace(A,function(e,t){return n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e})}},react:function(e){return e.content}},textBolded:{match:ve(J),order:Ae.MED,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("strong",{key:n.key},t(e.content,n))}},textEmphasized:{match:ve(Y),order:Ae.LOW,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("em",{key:n.key},t(e.content,n))}},textEscaped:{match:ve(te),order:Ae.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:ve(ee),order:Ae.LOW,parse:Me,react:function(e,t,n){return q("del",{key:n.key},t(e.content,n))}}};!0!==n.disableParsingRawHTML&&(ue.htmlBlock={match:xe(I),order:Ae.HIGH,parse:function(e,t,n){var r,a=e[3].match(ae),c=new RegExp("^"+a[1],"gm"),o=e[3].replace(c,""),l=(r=o,pe.some(function(e){return e.test(r)})?Ie:Se),u=e[1].toLowerCase(),s=-1!==i.indexOf(u);return{attrs:K(e[2]),content:s?e[3]:l(t,o,n),noInnerParse:s,tag:s?u:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))}},ue.htmlSelfClosing={match:xe(j),order:Ae.HIGH,parse:function(e){return{attrs:K(e[2]||""),tag:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({},e.attrs,{key:n.key}))}});var ge,me=function(e){var t=Object.keys(e);function n(r,a){for(var c=[],o="";r;)for(var i=0;i<t.length;){var l=t[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,n,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return t.sort(function(t,n){var r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(v,"\n").replace(O,"").replace(W," ")}(e),t)}}(ue),$e=(ge=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(ue),function e(t,n){if(void 0===n&&(n={}),Array.isArray(t)){for(var r=n.key,a=[],c=!1,o=0;o<t.length;o++){n.key=o;var i=e(t[o],n),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return n.key=r,a}return ge(t,e,n)}),Te=V(t.replace(/<!--[\s\S]*?(?:-->)/g,""));return Q.length&&Te.props.children.push(q("footer",{key:"footer"},Q.map(function(e){return q("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,$e(me(e.footnote,{inline:!0})))}))),Te}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ae||(Ae={}));export default function(t){var n=t.children,r=t.options,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)t.indexOf(n=c[r])>=0||(a[n]=e[n]);return a}(t,["children","options"]);return e.cloneElement($e(n,r),a)}export{$e as compiler};
import e from"react";function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var t=/[\'\"]/,r={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],o=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,p=/^ {2,}\n/,f=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,d=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,m=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,g=/^(`+)\s*([\s\S]*?[^`])\s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+|.)*?)\1(?!\1)/,J=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,ee=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/(^\n+|\n+$|\s+$)/g,te=/^([ \t]*)/,re=/\\([^0-9A-Z\s])/gi,ae=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ce=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ie="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",le=new RegExp("^\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ue=new RegExp("^!\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),se=[u,m,d,H,I,S,M,w,ce,oe,X,R];function pe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function fe(e){return V.test(e)?"right":F.test(e)?"center":q.test(e)?"left":null}function de(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var c=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&c.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(Z,"")),c[c.length-1].push(e))}),c}function me(e,n,t){t.inline=!0;var r=de(e[1],n,t),a=e[2].replace(P,"").split("|").map(fe),c=function(e,n,t){return e.trim().split("\n").map(function(e){return de(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ge(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function ye(e){return function(n,t){return t.inline?e.exec(n):null}}function he(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function ke(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function ve(e){return function(n){return e.exec(n)}}function xe(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function be(e){return e.replace(re,"$1")}function He(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Ie(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Se(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Ae,Me=function(e,n,t){return{content:He(n,e[1],t)}};function Oe(){return{}}function we(){return null}function Ee(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ce(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function Ge(e,n){var t=Ce(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ce(n,e+".component",e):e}function Le(P,Z){void 0===Z&&(Z={}),Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||pe,Z.namedCodesToUnicode=Z.namedCodesToUnicode?n({},a,Z.namedCodesToUnicode):a;var F=Z.createElement||e.createElement;function q(e,t){var r=Ce(Z.overrides,e+".props",{});return F.apply(void 0,[Ge(e,Z.overrides),n({},t,r,{className:Ee(null==t?void 0:t.className,r.className)||void 0})].concat([].slice.call(arguments,2)))}function V(n){var t=!1;Z.forceInline?t=!0:Z.forceBlock||(t=!1===N.test(n));var r=Te($e(t?n:n.replace(ne,"")+"\n\n",{inline:t}));if(null===Z.wrapper)return r;var a,c=Z.wrapper||(t?"span":"div");if(r.length>1||Z.forceWrapper)a=r;else{if(1===r.length)return"string"==typeof(a=r[0])?q("span",{key:"outer"},a):a;a=null}return e.createElement(c,{key:"outer"},a)}function re(n){var a=n.match(o);return a?a.reduce(function(n,a,c){var o=a.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(O)&&(e=e.replace(z,function(e,n){return n.toUpperCase()})),e}(a.slice(0,o)).trim(),l=function(e){return e?(t.test(e.charAt(0))&&(e=e.substr(1)),t.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(a.slice(o+1).trim()),u=r[i]||i,s=n[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?xe(n):(n.match(E)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(S.test(s)||w.test(s))&&(n[u]=e.cloneElement(V(s.trim()),{key:c}))}else"style"!==a&&(n[r[a]||a]=!0);return n},{}):void 0}var ie=[],fe={},de={blockQuote:{match:ke(u),order:Ae.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(s,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:ve(p),order:Ae.HIGH,parse:Oe,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:ke(f),order:Ae.HIGH,parse:Oe,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:ke(m),order:Ae.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:ke(d),order:Ae.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:he(g),order:Ae.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:ke(k),order:Ae.MAX,parse:function(e){return ie.push({footnote:e[2],identifier:e[1]}),{}},react:we},footnoteReference:{match:ye(v),order:Ae.HIGH,parse:function(e){return{content:e[1],target:"#"+Z.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:ye(b),order:Ae.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:ke(H),order:Ae.HIGH,parse:function(e,n,t){return{content:He(n,e[2],t),id:Z.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:ke(I),order:Ae.MAX,parse:function(e,n,t){return{content:He(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:ve(M),order:Ae.HIGH,parse:function(){return{}},react:we},image:{match:he(ue),order:Ae.HIGH,parse:function(e){return{alt:e[1],target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:xe(e.target)})}},link:{match:ye(le),order:Ae.LOW,parse:function(e,n,t){return{content:Ie(n,e[1],t),target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:ye(L),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:ye(C),order:Ae.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ye(G),order:Ae.MAX,parse:function(e){var n=e[1],t=e[1];return i.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=T.exec(t);return!r||!n._list&&n.inline?null:oe.exec(e=r[1]+e)},order:Ae.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(l,"\n").match(ce),i=!1;return{items:o.map(function(e,r){var a=ae.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ae,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var p,f=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,p=l.replace($,"\n\n")):(t.inline=!0,p=l.replace($,""));var m=n(p,t);return t.inline=f,t._list=d,m}),ordered:a,start:c}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:ke(y),order:Ae.LOW,parse:Oe,react:function(){return"\n"}},paragraph:{match:ke(R),order:Ae.LOW,parse:Me,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:ye(W),order:Ae.MAX,parse:function(e){return fe[e[1]]={target:e[2],title:e[4]},{}},react:we},refImage:{match:he(_),order:Ae.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:xe(fe[e.ref].target),title:fe[e.ref].title})}},refLink:{match:ye(j),order:Ae.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(B,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return fe[e.ref]?q("a",{key:t.key,href:xe(fe[e.ref].target),title:fe[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:ke(X),order:Ae.HIGH,parse:me,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ge(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ge(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?D.exec(e):null},order:Ae.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:ve(ee),order:Ae.MIN,parse:function(e){return{content:e[0].replace(A,function(e,n){return Z.namedCodesToUnicode[n]?Z.namedCodesToUnicode[n]:e})}},react:function(e){return e.content}},textBolded:{match:he(K),order:Ae.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:he(Q),order:Ae.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:he(Y),order:Ae.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:he(J),order:Ae.LOW,parse:Me,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==Z.disableParsingRawHTML&&(de.htmlBlock={match:ve(S),order:Ae.HIGH,parse:function(e,n,t){var r,a=e[3].match(te),o=new RegExp("^"+a[1],"gm"),i=e[3].replace(o,""),l=(r=i,se.some(function(e){return e.test(r)})?Se:He),u=e[1].toLowerCase(),s=-1!==c.indexOf(u);return{attrs:re(e[2]),content:s?e[3]:l(n,i,t),noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},de.htmlSelfClosing={match:ve(w),order:Ae.HIGH,parse:function(e){return{attrs:re(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var Le,$e=function(e){var n=Object.keys(e);function t(r,a){for(var c=[],o="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,o);if(s){var p=s[0];r=r.substring(p.length);var f=u.parse(s,t,a);null==f.type&&(f.type=l),c.push(f),o=p;break}i++}return c}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(h,"\n").replace(x,"").replace(U," ")}(e),n)}}(de),Te=(Le=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(de),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],c=!1,o=0;o<n.length;o++){t.key=o;var i=e(n[o],t),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return t.key=r,a}return Le(n,e,t)}),ze=V(P.replace(/<!--[\s\S]*?(?:-->)/g,""));return ie.length&&ze.props.children.push(q("footer",{key:"footer"},ie.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,Te($e(e.footnote,{inline:!0})))}))),ze}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Ae||(Ae={}));export default function(n){var t=n.children,r=n.options,a=function(e,n){if(null==e)return{};var t,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n.indexOf(t=c[r])>=0||(a[t]=e[t]);return a}(n,["children","options"]);return e.cloneElement(Le(t,r),a)}export{Le as compiler};
//# sourceMappingURL=index.module.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).MarkdownToJSX=t(e.React)}(this,function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?n(Object(a),!0).forEach(function(n){t(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var a=/[\'\"]/,c={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},i=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,f=/^( *>[^\n]+(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\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,J=/^ *:-+ *$/,K=/^ *-+: *$/,Q=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Y=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,te=/^\\([^0-9A-Za-z\s])/,ne=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,re=/(^\n+|\n+$|\s+$)/g,ae=/^([ \t]*)/,ce=/\\([^0-9A-Z\s])/gi,oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ie=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),le=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ue="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",se=new RegExp("^\\[("+ue+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),fe=new RegExp("^!\\[("+ue+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),pe=[f,y,g,w,S,I,A,E,ie,le,X,D];function de(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function me(e){return K.test(e)?"right":V.test(e)?"center":J.test(e)?"left":null}function ge(e,t,n){var r=n.inTable;n.inTable=!0;var a=t(e.trim(),n);n.inTable=r;var c=[[]];return a.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==a.length-1&&c.push([]):("text"!==e.type||null!=a[t+1]&&"tableSeparator"!==a[t+1].type||(e.content=e.content.replace(q,"")),c[c.length-1].push(e))}),c}function ye(e,t,n){n.inline=!0;var r=ge(e[1],t,n),a=e[2].replace(F,"").split("|").map(me),c=function(e,t,n){return e.trim().split("\n").map(function(e){return ge(e,t,n)})}(e[3],t,n);return n.inline=!1,{align:a,cells:c,header:r,type:"table"}}function he(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ke(e){return function(t,n){return n.inline?e.exec(t):null}}function ve(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function be(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function xe(e){return function(t){return e.exec(t)}}function Oe(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function He(e){return e.replace(ce,"$1")}function we(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function Se(e,t,n){var r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;var c=e(t,n);return n.inline=r,n.simple=a,c}function Ie(e,t,n){return n.inline=!1,e(t+"\n\n",n)}var Me,Ae=function(e,t,n){return{content:we(t,e[1],n)}};function je(){return{}}function Ee(){return null}function Ce(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ge(e,t,n){for(var r=e,a=t.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||n}function Le(e,t){var n=Ge(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ge(t,e+".component",e):e}function Te(t,n){void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||de,n.namedCodesToUnicode=n.namedCodesToUnicode?r(r({},o),n.namedCodesToUnicode):o;var F=n.createElement||e.createElement;function q(e,t){var a=Ge(n.overrides,e+".props",{});return F.apply(void 0,[Le(e,n.overrides),r(r(r({},t),a),{},{className:Ce(null==t?void 0:t.className,a.className)||void 0})].concat([].slice.call(arguments,2)))}function V(e){var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===U.test(e));var r,a=Te(ge(t?e:e.replace(re,"")+"\n\n",{inline:t}));return a.length>1?r=q(t?"span":"div",{key:"outer"},a):1===a.length?"string"==typeof(r=a[0])&&(r=q("span",{key:"outer"},r)):r=q("span",{key:"outer"}),r}function J(t){var n=t.match(l);return n?n.reduce(function(t,n,r){var o=n.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(j)&&(e=e.replace(z,function(e,t){return t.toUpperCase()})),e}(n.slice(0,o)).trim(),l=function(e){return e?(a.test(e.charAt(0))&&(e=e.substr(1)),a.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(n.slice(o+1).trim()),u=c[i]||i,s=t[u]=function(e,t){return"style"===e?t.split(/;\s?/).reduce(function(e,t){var n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=t.slice(n.length+1).trim(),e},{}):"href"===e?Oe(t):(t.match(C)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,l);"string"==typeof s&&(I.test(s)||E.test(s))&&(t[u]=e.cloneElement(V(s.trim()),{key:r}))}else"style"!==n&&(t[c[n]||n]=!0);return t},{}):void 0}var K=[],ce={},ue={blockQuote:{match:be(f),order:Me.HIGH,parse:function(e,t,n){return{content:t(e[0].replace(p,""),n)}},react:function(e,t,n){return q("blockquote",{key:n.key},t(e.content,n))}},breakLine:{match:xe(d),order:Me.HIGH,parse:je,react:function(e,t,n){return q("br",{key:n.key})}},breakThematic:{match:be(m),order:Me.HIGH,parse:je,react:function(e,t,n){return q("hr",{key:n.key})}},codeBlock:{match:be(y),order:Me.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,t,n){return q("pre",{key:n.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:be(g),order:Me.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:ve(h),order:Me.LOW,parse:function(e){return{content:e[2]}},react:function(e,t,n){return q("code",{key:n.key},e.content)}},footnote:{match:be(b),order:Me.MAX,parse:function(e){return K.push({footnote:e[2],identifier:e[1]}),{}},react:Ee},footnoteReference:{match:ke(x),order:Me.HIGH,parse:function(e){return{content:e[1],target:"#"+n.slugify(e[1])}},react:function(e,t,n){return q("a",{key:n.key,href:Oe(e.target)},q("sup",{key:n.key},e.content))}},gfmTask:{match:ke(H),order:Me.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,t,n){return q("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},heading:{match:be(w),order:Me.HIGH,parse:function(e,t,r){return{content:we(t,e[2],r),id:n.slugify(e[2]),level:e[1].length}},react:function(e,t,n){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:n.key},t(e.content,n))}},headingSetext:{match:be(S),order:Me.MAX,parse:function(e,t,n){return{content:we(t,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:xe(A),order:Me.HIGH,parse:function(){return{}},react:Ee},image:{match:ve(fe),order:Me.HIGH,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:Oe(e.target)})}},link:{match:ke(se),order:Me.LOW,parse:function(e,t,n){return{content:Se(t,e[1],n),target:He(e[2]),title:e[3]}},react:function(e,t,n){return q("a",{key:n.key,href:Oe(e.target),title:e.title},t(e.content,n))}},linkAngleBraceStyleDetector:{match:ke(T),order:Me.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:ke(G),order:Me.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ke(L),order:Me.MAX,parse:function(e){var t=e[1],n=e[1];return u.test(n)||(n="mailto:"+n),{content:[{content:t.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function(e,t,n){var r=P.exec(n);return!r||!t._list&&t.inline?null:le.exec(e=r[1]+e)},order:Me.HIGH,parse:function(e,t,n){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(s,"\n").match(ie),i=!1;return{items:o.map(function(e,r){var a=oe.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(oe,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=n.inline,d=n._list;n._list=!0,s?(n.inline=!1,f=l.replace($,"\n\n")):(n.inline=!0,f=l.replace($,""));var m=t(f,n);return n.inline=p,n._list=d,m}),ordered:a,start:c}},react:function(e,t,n){return q(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},t(e,n))}))}},newlineCoalescer:{match:be(k),order:Me.LOW,parse:je,react:function(){return"\n"}},paragraph:{match:be(D),order:Me.LOW,parse:Ae,react:function(e,t,n){return q("p",{key:n.key},t(e.content,n))}},ref:{match:ke(R),order:Me.MAX,parse:function(e){return ce[e[1]]={target:e[2],title:e[4]},{}},react:Ee},refImage:{match:ve(_),order:Me.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,t,n){return q("img",{key:n.key,alt:e.alt,src:Oe(ce[e.ref].target),title:ce[e.ref].title})}},refLink:{match:ke(B),order:Me.MAX,parse:function(e,t,n){return{content:t(e[1],n),fallbackContent:t(e[0].replace(N,"\\$1"),n),ref:e[2]}},react:function(e,t,n){return ce[e.ref]?q("a",{key:n.key,href:Oe(ce[e.ref].target),title:ce[e.ref].title},t(e.content,n)):q("span",{key:n.key},t(e.fallbackContent,n))}},table:{match:be(X),order:Me.HIGH,parse:ye,react:function(e,t,n){return q("table",{key:n.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:he(e,a)},t(r,n))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:he(e,a)},t(r,n))}))})))}},tableSeparator:{match:function(e,t){return t.inTable?Z.exec(e):null},order:Me.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:xe(ne),order:Me.MIN,parse:function(e){return{content:e[0].replace(M,function(e,t){return n.namedCodesToUnicode[t]?n.namedCodesToUnicode[t]:e})}},react:function(e){return e.content}},textBolded:{match:ve(Q),order:Me.MED,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("strong",{key:n.key},t(e.content,n))}},textEmphasized:{match:ve(Y),order:Me.LOW,parse:function(e,t,n){return{content:t(e[2],n)}},react:function(e,t,n){return q("em",{key:n.key},t(e.content,n))}},textEscaped:{match:ve(te),order:Me.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:ve(ee),order:Me.LOW,parse:Ae,react:function(e,t,n){return q("del",{key:n.key},t(e.content,n))}}};!0!==n.disableParsingRawHTML&&(ue.htmlBlock={match:xe(I),order:Me.HIGH,parse:function(e,t,n){var r,a=e[3].match(ae),c=new RegExp("^"+a[1],"gm"),o=e[3].replace(c,""),l=(r=o,pe.some(function(e){return e.test(r)})?Ie:we),u=e[1].toLowerCase(),s=-1!==i.indexOf(u);return{attrs:J(e[2]),content:s?e[3]:l(t,o,n),noInnerParse:s,tag:s?u:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({key:n.key},e.attrs),e.noInnerParse?e.content:t(e.content,n))}},ue.htmlSelfClosing={match:xe(E),order:Me.HIGH,parse:function(e){return{attrs:J(e[2]||""),tag:e[1]}},react:function(e,t,n){return q(e.tag,Object.assign({},e.attrs,{key:n.key}))}});var me,ge=function(e){var t=Object.keys(e);function n(r,a){for(var c=[],o="";r;)for(var i=0;i<t.length;){var l=t[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,n,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return t.sort(function(t,n){var r=e[t].order,a=e[n].order;return r!==a?r-a:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(v,"\n").replace(O,"").replace(W," ")}(e),t)}}(ue),Te=(me=function(e){return function(t,n,r){return e[t.type].react(t,n,r)}}(ue),function e(t,n){if(void 0===n&&(n={}),Array.isArray(t)){for(var r=n.key,a=[],c=!1,o=0;o<t.length;o++){n.key=o;var i=e(t[o],n),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return n.key=r,a}return me(t,e,n)}),$e=V(t.replace(/<!--[\s\S]*?(?:-->)/g,""));return K.length&&$e.props.children.push(q("footer",{key:"footer"},K.map(function(e){return q("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,Te(ge(e.footnote,{inline:!0})))}))),$e}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Me||(Me={}));var $e=function(t){var n=t.children,r=t.options,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)t.indexOf(n=c[r])>=0||(a[n]=e[n]);return a}(t,["children","options"]);return e.cloneElement(Te(n,r),a)};return Object.assign($e,{compiler:Te}),$e});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(e=e||self).MarkdownToJSX=n(e.React)}(this,function(e){function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var t=/[\'\"]/,r={accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],o=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,f=/^ {2,}\n/,p=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,d=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,m=/^(?: {4}[^\n]+\n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].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,Q=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,ee=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/(^\n+|\n+$|\s+$)/g,te=/^([ \t]*)/,re=/\\([^0-9A-Z\s])/gi,ae=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ce=new RegExp("( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),oe=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ie="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",le=new RegExp("^\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ue=new RegExp("^!\\[("+ie+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),se=[u,m,d,H,I,O,w,A,ce,oe,X,j];function fe(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function pe(e){return V.test(e)?"right":F.test(e)?"center":q.test(e)?"left":null}function de(e,n,t){var r=t.inTable;t.inTable=!0;var a=n(e.trim(),t);t.inTable=r;var c=[[]];return a.forEach(function(e,n){"tableSeparator"===e.type?0!==n&&n!==a.length-1&&c.push([]):("text"!==e.type||null!=a[n+1]&&"tableSeparator"!==a[n+1].type||(e.content=e.content.replace(Z,"")),c[c.length-1].push(e))}),c}function me(e,n,t){t.inline=!0;var r=de(e[1],n,t),a=e[2].replace(D,"").split("|").map(pe),c=function(e,n,t){return e.trim().split("\n").map(function(e){return de(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:a,cells:c,header:r,type:"table"}}function ge(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function ye(e){return function(n,t){return t.inline?e.exec(n):null}}function he(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function ke(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function ve(e){return function(n){return e.exec(n)}}function xe(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function be(e){return e.replace(re,"$1")}function He(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!0,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Ie(e,n,t){var r=t.inline||!1,a=t.simple||!1;t.inline=!1,t.simple=!0;var c=e(n,t);return t.inline=r,t.simple=a,c}function Oe(e,n,t){return t.inline=!1,e(n+"\n\n",t)}var Se,we=function(e,n,t){return{content:He(n,e[1],t)}};function Me(){return{}}function Ae(){return null}function Ee(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ce(e,n,t){for(var r=e,a=n.split(".");a.length&&void 0!==(r=r[a[0]]);)a.shift();return r||t}function Ge(e,n){var t=Ce(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ce(n,e+".component",e):e}function Le(D,Z){void 0===Z&&(Z={}),Z.overrides=Z.overrides||{},Z.slugify=Z.slugify||fe,Z.namedCodesToUnicode=Z.namedCodesToUnicode?n({},a,Z.namedCodesToUnicode):a;var F=Z.createElement||e.createElement;function q(e,t){var r=Ce(Z.overrides,e+".props",{});return F.apply(void 0,[Ge(e,Z.overrides),n({},t,r,{className:Ee(null==t?void 0:t.className,r.className)||void 0})].concat([].slice.call(arguments,2)))}function V(n){var t=!1;Z.forceInline?t=!0:Z.forceBlock||(t=!1===N.test(n));var r=$e(Te(t?n:n.replace(ne,"")+"\n\n",{inline:t}));if(null===Z.wrapper)return r;var a,c=Z.wrapper||(t?"span":"div");if(r.length>1||Z.forceWrapper)a=r;else{if(1===r.length)return"string"==typeof(a=r[0])?q("span",{key:"outer"},a):a;a=null}return e.createElement(c,{key:"outer"},a)}function re(n){var a=n.match(o);return a?a.reduce(function(n,a,c){var o=a.indexOf("=");if(-1!==o){var i=function(e){return-1!==e.indexOf("-")&&null===e.match(M)&&(e=e.replace(z,function(e,n){return n.toUpperCase()})),e}(a.slice(0,o)).trim(),l=function(e){return e?(t.test(e.charAt(0))&&(e=e.substr(1)),t.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}(a.slice(o+1).trim()),u=r[i]||i,s=n[u]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var t=n.slice(0,n.indexOf(":"));return e[t.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(t.length+1).trim(),e},{}):"href"===e?xe(n):(n.match(E)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(i,l);"string"==typeof s&&(O.test(s)||A.test(s))&&(n[u]=e.cloneElement(V(s.trim()),{key:c}))}else"style"!==a&&(n[r[a]||a]=!0);return n},{}):void 0}var ie=[],pe={},de={blockQuote:{match:ke(u),order:Se.HIGH,parse:function(e,n,t){return{content:n(e[0].replace(s,""),t)}},react:function(e,n,t){return q("blockquote",{key:t.key},n(e.content,t))}},breakLine:{match:ve(f),order:Se.HIGH,parse:Me,react:function(e,n,t){return q("br",{key:t.key})}},breakThematic:{match:ke(p),order:Se.HIGH,parse:Me,react:function(e,n,t){return q("hr",{key:t.key})}},codeBlock:{match:ke(m),order:Se.MAX,parse:function(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function(e,n,t){return q("pre",{key:t.key},q("code",{className:e.lang?"lang-"+e.lang:""},e.content))}},codeFenced:{match:ke(d),order:Se.MAX,parse:function(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:he(g),order:Se.LOW,parse:function(e){return{content:e[2]}},react:function(e,n,t){return q("code",{key:t.key},e.content)}},footnote:{match:ke(k),order:Se.MAX,parse:function(e){return ie.push({footnote:e[2],identifier:e[1]}),{}},react:Ae},footnoteReference:{match:ye(v),order:Se.HIGH,parse:function(e){return{content:e[1],target:"#"+Z.slugify(e[1])}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target)},q("sup",{key:t.key},e.content))}},gfmTask:{match:ye(b),order:Se.HIGH,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},react:function(e,n,t){return q("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:ke(H),order:Se.HIGH,parse:function(e,n,t){return{content:He(n,e[2],t),id:Z.slugify(e[2]),level:e[1].length}},react:function(e,n,t){return e.tag="h"+e.level,q(e.tag,{id:e.id,key:t.key},n(e.content,t))}},headingSetext:{match:ke(I),order:Se.MAX,parse:function(e,n,t){return{content:He(n,e[1],t),level:"="===e[2]?1:2,type:"heading"}}},htmlComment:{match:ve(w),order:Se.HIGH,parse:function(){return{}},react:Ae},image:{match:he(ue),order:Se.HIGH,parse:function(e){return{alt:e[1],target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:xe(e.target)})}},link:{match:ye(le),order:Se.LOW,parse:function(e,n,t){return{content:Ie(n,e[1],t),target:be(e[2]),title:e[3]}},react:function(e,n,t){return q("a",{key:t.key,href:xe(e.target),title:e.title},n(e.content,t))}},linkAngleBraceStyleDetector:{match:ye(L),order:Se.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:ye(C),order:Se.MAX,parse:function(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:ye(G),order:Se.MAX,parse:function(e){var n=e[1],t=e[1];return i.test(t)||(t="mailto:"+t),{content:[{content:n.replace("mailto:",""),type:"text"}],target:t,type:"link"}}},list:{match:function(e,n,t){var r=$.exec(t);return!r||!n._list&&n.inline?null:oe.exec(e=r[1]+e)},order:Se.HIGH,parse:function(e,n,t){var r=e[2],a=r.length>1,c=a?+r:void 0,o=e[0].replace(l,"\n").match(ce),i=!1;return{items:o.map(function(e,r){var a=ae.exec(e)[0].length,c=new RegExp("^ {1,"+a+"}","gm"),l=e.replace(c,"").replace(ae,""),u=r===o.length-1,s=-1!==l.indexOf("\n\n")||u&&i;i=s;var f,p=t.inline,d=t._list;t._list=!0,s?(t.inline=!1,f=l.replace(T,"\n\n")):(t.inline=!0,f=l.replace(T,""));var m=n(f,t);return t.inline=p,t._list=d,m}),ordered:a,start:c}},react:function(e,n,t){return q(e.ordered?"ol":"ul",{key:t.key,start:e.start},e.items.map(function(e,r){return q("li",{key:r},n(e,t))}))}},newlineCoalescer:{match:ke(y),order:Se.LOW,parse:Me,react:function(){return"\n"}},paragraph:{match:ke(j),order:Se.LOW,parse:we,react:function(e,n,t){return q("p",{key:t.key},n(e.content,t))}},ref:{match:ye(R),order:Se.MAX,parse:function(e){return pe[e[1]]={target:e[2],title:e[4]},{}},react:Ae},refImage:{match:he(W),order:Se.MAX,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},react:function(e,n,t){return q("img",{key:t.key,alt:e.alt,src:xe(pe[e.ref].target),title:pe[e.ref].title})}},refLink:{match:ye(_),order:Se.MAX,parse:function(e,n,t){return{content:n(e[1],t),fallbackContent:n(e[0].replace(B,"\\$1"),t),ref:e[2]}},react:function(e,n,t){return pe[e.ref]?q("a",{key:t.key,href:xe(pe[e.ref].target),title:pe[e.ref].title},n(e.content,t)):q("span",{key:t.key},n(e.fallbackContent,t))}},table:{match:ke(X),order:Se.HIGH,parse:me,react:function(e,n,t){return q("table",{key:t.key},q("thead",null,q("tr",null,e.header.map(function(r,a){return q("th",{key:a,style:ge(e,a)},n(r,t))}))),q("tbody",null,e.cells.map(function(r,a){return q("tr",{key:a},r.map(function(r,a){return q("td",{key:a,style:ge(e,a)},n(r,t))}))})))}},tableSeparator:{match:function(e,n){return n.inTable?P.exec(e):null},order:Se.HIGH,parse:function(){return{type:"tableSeparator"}},react:function(){return" | "}},text:{match:ve(ee),order:Se.MIN,parse:function(e){return{content:e[0].replace(S,function(e,n){return Z.namedCodesToUnicode[n]?Z.namedCodesToUnicode[n]:e})}},react:function(e){return e.content}},textBolded:{match:he(J),order:Se.MED,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("strong",{key:t.key},n(e.content,t))}},textEmphasized:{match:he(K),order:Se.LOW,parse:function(e,n,t){return{content:n(e[2],t)}},react:function(e,n,t){return q("em",{key:t.key},n(e.content,t))}},textEscaped:{match:he(Y),order:Se.HIGH,parse:function(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:he(Q),order:Se.LOW,parse:we,react:function(e,n,t){return q("del",{key:t.key},n(e.content,t))}}};!0!==Z.disableParsingRawHTML&&(de.htmlBlock={match:ve(O),order:Se.HIGH,parse:function(e,n,t){var r,a=e[3].match(te),o=new RegExp("^"+a[1],"gm"),i=e[3].replace(o,""),l=(r=i,se.some(function(e){return e.test(r)})?Oe:He),u=e[1].toLowerCase(),s=-1!==c.indexOf(u);return{attrs:re(e[2]),content:s?e[3]:l(n,i,t),noInnerParse:s,tag:s?u:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({key:t.key},e.attrs),e.noInnerParse?e.content:n(e.content,t))}},de.htmlSelfClosing={match:ve(A),order:Se.HIGH,parse:function(e){return{attrs:re(e[2]||""),tag:e[1]}},react:function(e,n,t){return q(e.tag,Object.assign({},e.attrs,{key:t.key}))}});var Le,Te=function(e){var n=Object.keys(e);function t(r,a){for(var c=[],o="";r;)for(var i=0;i<n.length;){var l=n[i],u=e[l],s=u.match(r,a,o);if(s){var f=s[0];r=r.substring(f.length);var p=u.parse(s,t,a);null==p.type&&(p.type=l),c.push(p),o=f;break}i++}return c}return n.sort(function(n,t){var r=e[n].order,a=e[t].order;return r!==a?r-a:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(h,"\n").replace(x,"").replace(U," ")}(e),n)}}(de),$e=(Le=function(e){return function(n,t,r){return e[n.type].react(n,t,r)}}(de),function e(n,t){if(void 0===t&&(t={}),Array.isArray(n)){for(var r=t.key,a=[],c=!1,o=0;o<n.length;o++){t.key=o;var i=e(n[o],t),l="string"==typeof i;l&&c?a[a.length-1]+=i:a.push(i),c=l}return t.key=r,a}return Le(n,e,t)}),ze=V(D.replace(/<!--[\s\S]*?(?:-->)/g,""));return ie.length&&ze.props.children.push(q("footer",{key:"footer"},ie.map(function(e){return q("div",{id:Z.slugify(e.identifier),key:e.identifier},e.identifier,$e(Te(e.footnote,{inline:!0})))}))),ze}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(Se||(Se={}));var Te=function(n){var t=n.children,r=n.options,a=function(e,n){if(null==e)return{};var t,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n.indexOf(t=c[r])>=0||(a[t]=e[t]);return a}(n,["children","options"]);return e.cloneElement(Le(t,r),a)};return Object.assign(Te,{compiler:Le}),Te});
//# sourceMappingURL=index.umd.js.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "7.0.1",
"version": "7.1.0",
"engines": {

@@ -63,2 +63,3 @@ "node": ">= 4"

"styled-components": "^5.1.1",
"theredoc": "^1.0.0",
"ts-jest": "^26.3.0",

@@ -65,0 +66,0 @@ "typescript": "^4.0.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc