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.4.4 to 7.4.5

2

dist/index.cjs.d.ts

@@ -17,3 +17,3 @@ /// <reference types="react" />

overrides: import("./").MarkdownToJSX.Overrides;
renderRule: (defaultOutput: () => import("react").ReactChild, node: import("./").MarkdownToJSX.ParserResult, renderAST: import("./").MarkdownToJSX.RuleOutput, state: import("./").MarkdownToJSX.State) => import("react").ReactChild;
renderRule: (next: () => import("react").ReactChild, node: import("./").MarkdownToJSX.ParserResult, renderChildren: import("./").MarkdownToJSX.RuleOutput, state: import("./").MarkdownToJSX.State) => import("react").ReactChild;
slugify: (source: string) => string;

@@ -20,0 +20,0 @@ wrapper: import("react").ElementType<any>;

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

import*as e from"react";function n(){return n=Object.assign?Object.assign.bind():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},n.apply(this,arguments)}const t=["children","options"];var r,i;!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(r||(r={})),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"}(i||(i={}));const l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,n)=>(e[n.toLowerCase()]=n,e),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,u=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,p=/^ *> ?/gm,f=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v=/^\[\^([^\]]+)]/,$=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp(`^([*_])\\1${J}\\1\\1(?!\\1)`),Y=new RegExp(`^([*_])${J}\\1(?!\\1|\\w)`),ee=new RegExp(`^==${J}==`),ne=new RegExp(`^~~${J}~~`),te=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,le=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,ae=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function ue(e){return"( *)("+(1===e?se:de)+") +"}const pe=ue(1),fe=ue(2);function he(e){return new RegExp("^"+(1===e?pe:fe))}const me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?pe:fe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?se:de)+" )[^\\n]*)*(\\n|$)","gm")}const ke=ye(1),xe=ye(2);function be(e){const n=1===e?se:de;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const ve=be(1),$e=be(2);function we(e,n){const t=1===n,r=t?ve:$e,i=t?ke:xe,l=t?me:ge;return{match(e,n,t){const i=ae.exec(t);return i&&(n.list||!n.inline&&!n.simple)?r.exec(e=i[1]+e):null},order:1,parse(e,n,r){const o=t?+e[2]:void 0,c=e[0].replace(d,"\n").match(i);let a=!1;return{items:c.map(function(e,t){const i=l.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),s=e.replace(o,"").replace(l,""),d=t===c.length-1,u=-1!==s.indexOf("\n\n")||d&&a;a=u;const p=r.inline,f=r.list;let h;r.list=!0,u?(r.inline=!1,h=s.replace(ce,"\n\n")):(r.inline=!0,h=s.replace(ce,""));const m=n(h,r);return r.inline=p,r.list=f,m}),ordered:t,start:o}},render:(n,t,r)=>e(n.ordered?"ol":"ul",{key:r.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},t(n,r))}))}}const Ee=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Se=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,S,A,C,L,N,ke,ve,xe,$e],Ae=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,z];function Oe(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 Te(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Le(e,n,t){const r=t.inTable;t.inTable=!0;const i=n(e.trim(),t);t.inTable=r;let l=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&l.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(q,"")),l[l.length-1].push(e))}),l}function Re(e,n,t){t.inline=!0;const r=Le(e[1],n,t),i=e[2].replace(Z,"").split("|").map(Te),l=function(e,n,t){return e.trim().split("\n").map(function(e){return Le(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:i,cells:l,header:r,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Me(e){return function(n,t){return t.inline?e.exec(n):null}}function Ie(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function Ue(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function je(e){return function(n){return e.exec(n)}}function Be(e,n,t){if(n.inline||n.simple)return null;if(t&&!t.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!Ce.some(n=>n.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function Ne(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function He(e){return e.replace(oe,"$1")}function De(e,n,t){const r=t.inline||!1,i=t.simple||!1;t.inline=!0,t.simple=!0;const l=e(n,t);return t.inline=r,t.simple=i,l}function Pe(e,n,t){const r=t.inline||!1,i=t.simple||!1;t.inline=!1,t.simple=!0;const l=e(n,t);return t.inline=r,t.simple=i,l}function _e(e,n,t){return t.inline=!1,e(n,t)}const Fe=(e,n,t)=>({children:De(n,e[1],t)});function We(){return{}}function Ge(){return null}function Ze(...e){return e.filter(Boolean).join(" ")}function qe(e,n,t){let r=e;const i=n.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||t}function Ve(t="",r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Oe,r.namedCodesToUnicode=r.namedCodesToUnicode?n({},o,r.namedCodesToUnicode):o;const i=r.createElement||e.createElement;function d(e,t,...l){const o=qe(r.overrides,`${e}.props`,{});return i(function(e,n){const t=qe(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:qe(n,`${e}.component`,e):e}(e,r.overrides),n({},t,o,{className:Ze(null==t?void 0:t.className,o.className)||void 0}),...l)}function Z(n){n=n.replace(w,"");let t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===F.test(n));const i=oe(J(t?n:`${n.trimEnd().replace(ie,"")}\n\n`,{inline:t}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===r.wrapper)return i;const l=r.wrapper||(t?"span":"div");let o;if(i.length>1||r.forceWrapper)o=i;else{if(1===i.length)return o=i[0],"string"==typeof o?d("span",{key:"outer"},o):o;o=null}return e.createElement(l,{key:"outer"},o)}function q(n){const t=n.match(a);return t?t.reduce(function(n,t,r){const i=t.indexOf("=");if(-1!==i){const o=function(e){return-1!==e.indexOf("-")&&null===e.match(R)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(t.slice(0,i)).trim(),c=function(e){const n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(t.slice(i+1).trim()),a=l[o]||o,s=n[a]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){const t=n.slice(0,n.indexOf(":"));return e[t.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=n.slice(t.length+1).trim(),e},{}):"href"===e||"src"===e?Ne(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof s&&(O.test(s)||z.test(s))&&(n[a]=e.cloneElement(Z(s.trim()),{key:r}))}else"style"!==t&&(n[l[t]||t]=!0);return n},{}):null}const V=[],X={},Q={0:{match:Ue(u),order:1,parse:(e,n,t)=>({children:n(e[0].replace(p,""),t)}),render:(e,n,t)=>d("blockquote",{key:t.key},n(e.children,t))},1:{match:je(f),order:1,parse:We,render:(e,n,t)=>d("br",{key:t.key})},2:{match:Ue(h),order:1,parse:We,render:(e,n,t)=>d("hr",{key:t.key})},3:{match:Ue(g),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>d("pre",{key:r.key},d("code",n({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:Ue(m),order:0,parse:e=>({attrs:q(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:Ie(y),order:3,parse:e=>({text:e[2]}),render:(e,n,t)=>d("code",{key:t.key},e.text)},6:{match:Ue(b),order:0,parse:e=>(V.push({footnote:e[2],identifier:e[1]}),{}),render:Ge},7:{match:Me(v),order:1,parse:e=>({target:`#${r.slugify(e[1])}`,text:e[1]}),render:(e,n,t)=>d("a",{key:t.key,href:Ne(e.target)},d("sup",{key:t.key},e.text))},8:{match:Me(E),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,n,t)=>d("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})},9:{match:Ue(r.enforceAtxHeadings?C:S),order:1,parse:(e,n,t)=>({children:De(n,e[2],t),id:r.slugify(e[2]),level:e[1].length}),render:(e,n,t)=>d(`h${e.level}`,{id:e.id,key:t.key},n(e.children,t))},10:{match:Ue(A),order:0,parse:(e,n,t)=>({children:De(n,e[1],t),level:"="===e[2]?1:2,type:"9"})},11:{match:je(O),order:1,parse(e,n,t){const[,r]=e[3].match(le),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),o=(a=l,Ae.some(e=>e.test(a))?_e:De);var a;const s=e[1].toLowerCase(),d=-1!==c.indexOf(s),u={attrs:q(e[2]),noInnerParse:d,tag:(d?s:e[1]).trim()};return t.inAnchor=t.inAnchor||"a"===s,d?u.text=e[3]:u.children=o(n,l,t),t.inAnchor=!1,u},render:(e,t,r)=>d(e.tag,n({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:je(z),order:1,parse:e=>({attrs:q(e[2]||""),tag:e[1].trim()}),render:(e,t,r)=>d(e.tag,n({},e.attrs,{key:r.key}))},12:{match:je(L),order:1,parse:()=>({}),render:Ge},14:{match:Ie(Se),order:1,parse:e=>({alt:e[1],target:He(e[2]),title:e[3]}),render:(e,n,t)=>d("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:Ne(e.target)})},15:{match:Me(Ee),order:3,parse:(e,n,t)=>({children:Pe(n,e[1],t),target:He(e[2]),title:e[3]}),render:(e,n,t)=>d("a",{key:t.key,href:Ne(e.target),title:e.title},n(e.children,t))},16:{match:Me(j),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,n)=>n.inAnchor?null:Me(I)(e,n),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:Me(U),order:0,parse(e){let n=e[1],t=e[1];return s.test(t)||(t="mailto:"+t),{children:[{text:n.replace("mailto:",""),type:"27"}],target:t,type:"15"}}},20:we(d,1),33:we(d,2),19:{match:Ue(k),order:3,parse:We,render:()=>"\n"},21:{match:Be,order:3,parse:Fe,render:(e,n,t)=>d("p",{key:t.key},n(e.children,t))},22:{match:Me(H),order:0,parse:e=>(X[e[1]]={target:e[2],title:e[4]},{}),render:Ge},23:{match:Ie(D),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,n,t)=>X[e.ref]?d("img",{key:t.key,alt:e.alt,src:Ne(X[e.ref].target),title:X[e.ref].title}):null},24:{match:Me(P),order:0,parse:(e,n,t)=>({children:n(e[1],t),fallbackChildren:n(e[0].replace(_,"\\$1"),t),ref:e[2]}),render:(e,n,t)=>X[e.ref]?d("a",{key:t.key,href:Ne(X[e.ref].target),title:X[e.ref].title},n(e.children,t)):d("span",{key:t.key},n(e.fallbackChildren,t))},25:{match:Ue(N),order:1,parse:Re,render:(e,n,t)=>d("table",{key:t.key},d("thead",null,d("tr",null,e.header.map(function(r,i){return d("th",{key:i,style:ze(e,i)},n(r,t))}))),d("tbody",null,e.cells.map(function(r,i){return d("tr",{key:i},r.map(function(r,i){return d("td",{key:i,style:ze(e,i)},n(r,t))}))})))},26:{match:function(e,n){return n.inTable?(n.inline=!0,G.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:je(re),order:4,parse:e=>({text:e[0].replace(T,(e,n)=>r.namedCodesToUnicode[n]?r.namedCodesToUnicode[n]:e)}),render:e=>e.text},28:{match:Ie(K),order:2,parse:(e,n,t)=>({children:n(e[2],t)}),render:(e,n,t)=>d("strong",{key:t.key},n(e.children,t))},29:{match:Ie(Y),order:3,parse:(e,n,t)=>({children:n(e[2],t)}),render:(e,n,t)=>d("em",{key:t.key},n(e.children,t))},30:{match:Ie(te),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:Ie(ee),order:3,parse:Fe,render:(e,n,t)=>d("mark",{key:t.key},n(e.children,t))},32:{match:Ie(ne),order:3,parse:Fe,render:(e,n,t)=>d("del",{key:t.key},n(e.children,t))}};!0===r.disableParsingRawHTML&&(delete Q[11],delete Q[13]);const J=function(e){let n=Object.keys(e);function t(r,i){let l=[],o="";for(;r;){let c=0;for(;c<n.length;){const a=n[c],s=e[a],d=s.match(r,i,o);if(d){const e=d[0];r=r.substring(e.length);const n=s.parse(d,t,i);null==n.type&&(n.type=a),l.push(n),o=e;break}c++}}return l}return n.sort(function(n,t){let r=e[n].order,i=e[t].order;return r!==i?r-i:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(x,"\n").replace($,"").replace(W," ")}(e),n)}}(Q),oe=(ce=function(e,n){return function(t,r,i){const l=e[t.type].render;return n?n(()=>l(t,r,i),t,r,i):l(t,r,i)}}(Q,r.renderRule),function e(n,t={}){if(Array.isArray(n)){const r=t.key,i=[];let l=!1;for(let r=0;r<n.length;r++){t.key=r;const o=e(n[r],t),c="string"==typeof o;c&&l?i[i.length-1]+=o:null!==o&&i.push(o),l=c}return t.key=r,i}return ce(n,e,t)});var ce;const ae=Z(t);return V.length?d("div",null,ae,d("footer",{key:"footer"},V.map(function(e){return d("div",{id:r.slugify(e.identifier),key:e.identifier},e.identifier,oe(J(e.footnote,{inline:!0})))}))):ae}export default n=>{let{children:r="",options:i}=n,l=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n.indexOf(t=l[r])>=0||(i[t]=e[t]);return i}(n,t);return e.cloneElement(Ve(r,i),l)};export{r as RuleType,Ve as compiler};
import*as e from"react";function n(){return n=Object.assign?Object.assign.bind():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},n.apply(this,arguments)}const t=["children","options"];var r,i;!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(r||(r={})),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"}(i||(i={}));const l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,n)=>(e[n.toLowerCase()]=n,e),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,u=/^(\s*>[\s\S]*?)(?=\n{2,})/,p=/^ *> ?/gm,f=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v=/^\[\^([^\]]+)]/,$=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp(`^([*_])\\1${J}\\1\\1(?!\\1)`),Y=new RegExp(`^([*_])${J}\\1(?!\\1|\\w)`),ee=new RegExp(`^==${J}==`),ne=new RegExp(`^~~${J}~~`),te=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,le=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,ae=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function ue(e){return"( *)("+(1===e?se:de)+") +"}const pe=ue(1),fe=ue(2);function he(e){return new RegExp("^"+(1===e?pe:fe))}const me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?pe:fe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?se:de)+" )[^\\n]*)*(\\n|$)","gm")}const ke=ye(1),xe=ye(2);function be(e){const n=1===e?se:de;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const ve=be(1),$e=be(2);function we(e,n){const t=1===n,r=t?ve:$e,i=t?ke:xe,l=t?me:ge;return{match(e,n,t){const i=ae.exec(t);return i&&(n.list||!n.inline&&!n.simple)?r.exec(e=i[1]+e):null},order:1,parse(e,n,r){const o=t?+e[2]:void 0,c=e[0].replace(d,"\n").match(i);let a=!1;return{items:c.map(function(e,t){const i=l.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),s=e.replace(o,"").replace(l,""),d=t===c.length-1,u=-1!==s.indexOf("\n\n")||d&&a;a=u;const p=r.inline,f=r.list;let h;r.list=!0,u?(r.inline=!1,h=s.replace(ce,"\n\n")):(r.inline=!0,h=s.replace(ce,""));const m=n(h,r);return r.inline=p,r.list=f,m}),ordered:t,start:o}},render:(n,t,r)=>e(n.ordered?"ol":"ul",{key:r.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},t(n,r))}))}}const Ee=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Se=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,S,A,C,L,N,ke,ve,xe,$e],Ae=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,z];function Oe(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 Te(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Le(e,n,t){const r=t.inTable;t.inTable=!0;const i=n(e.trim(),t);t.inTable=r;let l=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&l.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(q,"")),l[l.length-1].push(e))}),l}function Re(e,n,t){t.inline=!0;const r=Le(e[1],n,t),i=e[2].replace(Z,"").split("|").map(Te),l=function(e,n,t){return e.trim().split("\n").map(function(e){return Le(e,n,t)})}(e[3],n,t);return t.inline=!1,{align:i,cells:l,header:r,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Me(e){return function(n,t){return t.inline?e.exec(n):null}}function Ie(e){return function(n,t){return t.inline||t.simple?e.exec(n):null}}function Ue(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function je(e){return function(n){return e.exec(n)}}function Be(e,n,t){if(n.inline||n.simple)return null;if(t&&!t.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!Ce.some(n=>n.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function Ne(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function He(e){return e.replace(oe,"$1")}function De(e,n,t){const r=t.inline||!1,i=t.simple||!1;t.inline=!0,t.simple=!0;const l=e(n,t);return t.inline=r,t.simple=i,l}function Pe(e,n,t){const r=t.inline||!1,i=t.simple||!1;t.inline=!1,t.simple=!0;const l=e(n,t);return t.inline=r,t.simple=i,l}function _e(e,n,t){return t.inline=!1,e(n,t)}const Fe=(e,n,t)=>({children:De(n,e[1],t)});function We(){return{}}function Ge(){return null}function Ze(...e){return e.filter(Boolean).join(" ")}function qe(e,n,t){let r=e;const i=n.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||t}function Ve(t="",r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Oe,r.namedCodesToUnicode=r.namedCodesToUnicode?n({},o,r.namedCodesToUnicode):o;const i=r.createElement||e.createElement;function d(e,t,...l){const o=qe(r.overrides,`${e}.props`,{});return i(function(e,n){const t=qe(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:qe(n,`${e}.component`,e):e}(e,r.overrides),n({},t,o,{className:Ze(null==t?void 0:t.className,o.className)||void 0}),...l)}function Z(n){n=n.replace(w,"");let t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===F.test(n));const i=oe(J(t?n:`${n.trimEnd().replace(ie,"")}\n\n`,{inline:t}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===r.wrapper)return i;const l=r.wrapper||(t?"span":"div");let o;if(i.length>1||r.forceWrapper)o=i;else{if(1===i.length)return o=i[0],"string"==typeof o?d("span",{key:"outer"},o):o;o=null}return e.createElement(l,{key:"outer"},o)}function q(n){const t=n.match(a);return t?t.reduce(function(n,t,r){const i=t.indexOf("=");if(-1!==i){const o=function(e){return-1!==e.indexOf("-")&&null===e.match(R)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(t.slice(0,i)).trim(),c=function(e){const n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(t.slice(i+1).trim()),a=l[o]||o,s=n[a]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){const t=n.slice(0,n.indexOf(":"));return e[t.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=n.slice(t.length+1).trim(),e},{}):"href"===e||"src"===e?Ne(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof s&&(O.test(s)||z.test(s))&&(n[a]=e.cloneElement(Z(s.trim()),{key:r}))}else"style"!==t&&(n[l[t]||t]=!0);return n},{}):null}const V=[],X={},Q={0:{match:Ue(u),order:1,parse:(e,n,t)=>({children:n(e[0].replace(p,""),t)}),render:(e,n,t)=>d("blockquote",{key:t.key},n(e.children,t))},1:{match:je(f),order:1,parse:We,render:(e,n,t)=>d("br",{key:t.key})},2:{match:Ue(h),order:1,parse:We,render:(e,n,t)=>d("hr",{key:t.key})},3:{match:Ue(g),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>d("pre",{key:r.key},d("code",n({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:Ue(m),order:0,parse:e=>({attrs:q(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:Ie(y),order:3,parse:e=>({text:e[2]}),render:(e,n,t)=>d("code",{key:t.key},e.text)},6:{match:Ue(b),order:0,parse:e=>(V.push({footnote:e[2],identifier:e[1]}),{}),render:Ge},7:{match:Me(v),order:1,parse:e=>({target:`#${r.slugify(e[1])}`,text:e[1]}),render:(e,n,t)=>d("a",{key:t.key,href:Ne(e.target)},d("sup",{key:t.key},e.text))},8:{match:Me(E),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,n,t)=>d("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})},9:{match:Ue(r.enforceAtxHeadings?C:S),order:1,parse:(e,n,t)=>({children:De(n,e[2],t),id:r.slugify(e[2]),level:e[1].length}),render:(e,n,t)=>d(`h${e.level}`,{id:e.id,key:t.key},n(e.children,t))},10:{match:Ue(A),order:0,parse:(e,n,t)=>({children:De(n,e[1],t),level:"="===e[2]?1:2,type:"9"})},11:{match:je(O),order:1,parse(e,n,t){const[,r]=e[3].match(le),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),o=(a=l,Ae.some(e=>e.test(a))?_e:De);var a;const s=e[1].toLowerCase(),d=-1!==c.indexOf(s),u={attrs:q(e[2]),noInnerParse:d,tag:(d?s:e[1]).trim()};return t.inAnchor=t.inAnchor||"a"===s,d?u.text=e[3]:u.children=o(n,l,t),t.inAnchor=!1,u},render:(e,t,r)=>d(e.tag,n({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:je(z),order:1,parse:e=>({attrs:q(e[2]||""),tag:e[1].trim()}),render:(e,t,r)=>d(e.tag,n({},e.attrs,{key:r.key}))},12:{match:je(L),order:1,parse:()=>({}),render:Ge},14:{match:Ie(Se),order:1,parse:e=>({alt:e[1],target:He(e[2]),title:e[3]}),render:(e,n,t)=>d("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:Ne(e.target)})},15:{match:Me(Ee),order:3,parse:(e,n,t)=>({children:Pe(n,e[1],t),target:He(e[2]),title:e[3]}),render:(e,n,t)=>d("a",{key:t.key,href:Ne(e.target),title:e.title},n(e.children,t))},16:{match:Me(j),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,n)=>n.inAnchor?null:Me(I)(e,n),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:Me(U),order:0,parse(e){let n=e[1],t=e[1];return s.test(t)||(t="mailto:"+t),{children:[{text:n.replace("mailto:",""),type:"27"}],target:t,type:"15"}}},20:we(d,1),33:we(d,2),19:{match:Ue(k),order:3,parse:We,render:()=>"\n"},21:{match:Be,order:3,parse:Fe,render:(e,n,t)=>d("p",{key:t.key},n(e.children,t))},22:{match:Me(H),order:0,parse:e=>(X[e[1]]={target:e[2],title:e[4]},{}),render:Ge},23:{match:Ie(D),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,n,t)=>X[e.ref]?d("img",{key:t.key,alt:e.alt,src:Ne(X[e.ref].target),title:X[e.ref].title}):null},24:{match:Me(P),order:0,parse:(e,n,t)=>({children:n(e[1],t),fallbackChildren:n(e[0].replace(_,"\\$1"),t),ref:e[2]}),render:(e,n,t)=>X[e.ref]?d("a",{key:t.key,href:Ne(X[e.ref].target),title:X[e.ref].title},n(e.children,t)):d("span",{key:t.key},n(e.fallbackChildren,t))},25:{match:Ue(N),order:1,parse:Re,render:(e,n,t)=>d("table",{key:t.key},d("thead",null,d("tr",null,e.header.map(function(r,i){return d("th",{key:i,style:ze(e,i)},n(r,t))}))),d("tbody",null,e.cells.map(function(r,i){return d("tr",{key:i},r.map(function(r,i){return d("td",{key:i,style:ze(e,i)},n(r,t))}))})))},26:{match:function(e,n){return n.inTable?(n.inline=!0,G.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:je(re),order:4,parse:e=>({text:e[0].replace(T,(e,n)=>r.namedCodesToUnicode[n]?r.namedCodesToUnicode[n]:e)}),render:e=>e.text},28:{match:Ie(K),order:2,parse:(e,n,t)=>({children:n(e[2],t)}),render:(e,n,t)=>d("strong",{key:t.key},n(e.children,t))},29:{match:Ie(Y),order:3,parse:(e,n,t)=>({children:n(e[2],t)}),render:(e,n,t)=>d("em",{key:t.key},n(e.children,t))},30:{match:Ie(te),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:Ie(ee),order:3,parse:Fe,render:(e,n,t)=>d("mark",{key:t.key},n(e.children,t))},32:{match:Ie(ne),order:3,parse:Fe,render:(e,n,t)=>d("del",{key:t.key},n(e.children,t))}};!0===r.disableParsingRawHTML&&(delete Q[11],delete Q[13]);const J=function(e){let n=Object.keys(e);function t(r,i){let l=[],o="";for(;r;){let c=0;for(;c<n.length;){const a=n[c],s=e[a],d=s.match(r,i,o);if(d){const e=d[0];r=r.substring(e.length);const n=s.parse(d,t,i);null==n.type&&(n.type=a),l.push(n),o=e;break}c++}}return l}return n.sort(function(n,t){let r=e[n].order,i=e[t].order;return r!==i?r-i:n<t?-1:1}),function(e,n){return t(function(e){return e.replace(x,"\n").replace($,"").replace(W," ")}(e),n)}}(Q),oe=(ce=function(e,n){return function(t,r,i){const l=e[t.type].render;return n?n(()=>l(t,r,i),t,r,i):l(t,r,i)}}(Q,r.renderRule),function e(n,t={}){if(Array.isArray(n)){const r=t.key,i=[];let l=!1;for(let r=0;r<n.length;r++){t.key=r;const o=e(n[r],t),c="string"==typeof o;c&&l?i[i.length-1]+=o:null!==o&&i.push(o),l=c}return t.key=r,i}return ce(n,e,t)});var ce;const ae=Z(t);return V.length?d("div",null,ae,d("footer",{key:"footer"},V.map(function(e){return d("div",{id:r.slugify(e.identifier),key:e.identifier},e.identifier,oe(J(e.footnote,{inline:!0})))}))):ae}export default n=>{let{children:r="",options:i}=n,l=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n.indexOf(t=l[r])>=0||(i[t]=e[t]);return i}(n,t);return e.cloneElement(Ve(r,i),l)};export{r as RuleType,Ve as compiler};
//# sourceMappingURL=index.modern.js.map

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

import*as e from"react";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},n.apply(this,arguments)}var r,t,i=["children","options"];!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(r||(r={})),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"}(t||(t={}));var a=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,n){return e[n.toLowerCase()]=n,e},{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,f=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,d=/^ *> ?/gm,p=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,k=/\r\n?/g,x=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,b=/^\[\^([^\]]+)]/,w=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,S=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp("^([*_])\\1"+J+"\\1\\1(?!\\1)"),Y=new RegExp("^([*_])"+J+"\\1(?!\\1|\\w)"),ee=new RegExp("^=="+J+"=="),ne=new RegExp("^~~"+J+"~~"),re=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,ae=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,le=/(?:^|\n)( *)$/,ue="(?:\\d+\\.)",se="(?:[*+-])";function fe(e){return"( *)("+(1===e?ue:se)+") +"}var de=fe(1),pe=fe(2);function he(e){return new RegExp("^"+(1===e?de:pe))}var me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?de:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ue:se)+" )[^\\n]*)*(\\n|$)","gm")}var ve=ye(1),ke=ye(2);function xe(e){var n=1===e?ue:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var be=xe(1),we=xe(2);function Ee(e,n){var r=1===n,t=r?be:we,i=r?ve:ke,a=r?me:ge;return{match:function(e,n,r){var i=le.exec(r);return i&&(n.list||!n.inline&&!n.simple)?t.exec(e=i[1]+e):null},order:1,parse:function(e,n,t){var o=r?+e[2]:void 0,c=e[0].replace(s,"\n").match(i),l=!1;return{items:c.map(function(e,r){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),s=r===c.length-1,f=-1!==u.indexOf("\n\n")||s&&l;l=f;var d,p=t.inline,h=t.list;t.list=!0,f?(t.inline=!1,d=u.replace(ce,"\n\n")):(t.inline=!0,d=u.replace(ce,""));var m=n(d,t);return t.inline=p,t.list=h,m}),ordered:r,start:o}},render:function(n,r,t){return e(n.ordered?"ol":"ul",{key:t.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},r(n,t))}))}}}var Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[f,m,g,C,A,$,L,N,ve,be,ke,we],Ae=[].concat($e,[/^[^\n]+(?: \n|\n{2,})/,O,z]);function Oe(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 Te(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Le(e,n,r){var t=r.inTable;r.inTable=!0;var i=n(e.trim(),r);r.inTable=t;var a=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&a.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(q,"")),a[a.length-1].push(e))}),a}function Re(e,n,r){r.inline=!0;var t=Le(e[1],n,r),i=e[2].replace(Z,"").split("|").map(Te),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Le(e,n,r)})}(e[3],n,r);return r.inline=!1,{align:i,cells:a,header:t,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Me(e){return function(n,r){return r.inline?e.exec(n):null}}function Ie(e){return function(n,r){return r.inline||r.simple?e.exec(n):null}}function Ue(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function je(e){return function(n){return e.exec(n)}}function Be(e,n,r){if(n.inline||n.simple)return null;if(r&&!r.endsWith("\n"))return null;var t="";e.split("\n").every(function(e){return!$e.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Ne(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function He(e){return e.replace(oe,"$1")}function De(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function Pe(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function _e(e,n,r){return r.inline=!1,e(n,r)}var Fe=function(e,n,r){return{children:De(n,e[1],r)}};function We(){return{}}function Ge(){return null}function Ze(){return[].slice.call(arguments).filter(Boolean).join(" ")}function qe(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function Ve(e,n){var r=qe(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:qe(n,e+".component",e):e}function Xe(r,t){var i;void 0===r&&(r=""),void 0===t&&(t={}),t.overrides=t.overrides||{},t.slugify=t.slugify||Oe,t.namedCodesToUnicode=t.namedCodesToUnicode?n({},o,t.namedCodesToUnicode):o;var s=t.createElement||e.createElement;function Z(e,r){var i=qe(t.overrides,e+".props",{});return s.apply(void 0,[Ve(e,t.overrides),n({},r,i,{className:Ze(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function q(n){n=n.replace(E,"");var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===F.test(n));for(var i=le(ce(r?n:n.trimEnd().replace(ie,"")+"\n\n",{inline:r}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;var a,o=t.wrapper||(r?"span":"div");if(i.length>1||t.forceWrapper)a=i;else{if(1===i.length)return"string"==typeof(a=i[0])?Z("span",{key:"outer"},a):a;a=null}return e.createElement(o,{key:"outer"},a)}function V(n){var r=n.match(l);return r?r.reduce(function(n,r,t){var i=r.indexOf("=");if(-1!==i){var o=function(e){return-1!==e.indexOf("-")&&null===e.match(R)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(r.slice(0,i)).trim(),c=function(e){var n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(r.slice(i+1).trim()),l=a[o]||o,u=n[l]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var r=n.slice(0,n.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Ne(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof u&&(O.test(u)||z.test(u))&&(n[l]=e.cloneElement(q(u.trim()),{key:t}))}else"style"!==r&&(n[a[r]||r]=!0);return n},{}):null}var X=[],Q={},J=((i={})[0]={match:Ue(f),order:1,parse:function(e,n,r){return{children:n(e[0].replace(d,""),r)}},render:function(e,n,r){return Z("blockquote",{key:r.key},n(e.children,r))}},i[1]={match:je(p),order:1,parse:We,render:function(e,n,r){return Z("br",{key:r.key})}},i[2]={match:Ue(h),order:1,parse:We,render:function(e,n,r){return Z("hr",{key:r.key})}},i[3]={match:Ue(g),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,r,t){return Z("pre",{key:t.key},Z("code",n({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[4]={match:Ue(m),order:0,parse:function(e){return{attrs:V(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Ie(y),order:3,parse:function(e){return{text:e[2]}},render:function(e,n,r){return Z("code",{key:r.key},e.text)}},i[6]={match:Ue(x),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:Ge},i[7]={match:Me(b),order:1,parse:function(e){return{target:"#"+t.slugify(e[1]),text:e[1]}},render:function(e,n,r){return Z("a",{key:r.key,href:Ne(e.target)},Z("sup",{key:r.key},e.text))}},i[8]={match:Me(S),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,n,r){return Z("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})}},i[9]={match:Ue(t.enforceAtxHeadings?$:C),order:1,parse:function(e,n,r){return{children:De(n,e[2],r),id:t.slugify(e[2]),level:e[1].length}},render:function(e,n,r){return Z("h"+e.level,{id:e.id,key:r.key},n(e.children,r))}},i[10]={match:Ue(A),order:0,parse:function(e,n,r){return{children:De(n,e[1],r),level:"="===e[2]?1:2,type:"9"}}},i[11]={match:je(O),order:1,parse:function(e,n,r){var t,i=e[3].match(ae),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),l=(t=o,Ae.some(function(e){return e.test(t)})?_e:De),u=e[1].toLowerCase(),s=-1!==c.indexOf(u),f={attrs:V(e[2]),noInnerParse:s,tag:(s?u:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===u,s?f.text=e[3]:f.children=l(n,o,r),r.inAnchor=!1,f},render:function(e,r,t){return Z(e.tag,n({key:t.key},e.attrs),e.text||r(e.children,t))}},i[13]={match:je(z),order:1,parse:function(e){return{attrs:V(e[2]||""),tag:e[1].trim()}},render:function(e,r,t){return Z(e.tag,n({},e.attrs,{key:t.key}))}},i[12]={match:je(L),order:1,parse:function(){return{}},render:Ge},i[14]={match:Ie(Ce),order:1,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},render:function(e,n,r){return Z("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:Ne(e.target)})}},i[15]={match:Me(Se),order:3,parse:function(e,n,r){return{children:Pe(n,e[1],r),target:He(e[2]),title:e[3]}},render:function(e,n,r){return Z("a",{key:r.key,href:Ne(e.target),title:e.title},n(e.children,r))}},i[16]={match:Me(j),order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],type:"15"}}},i[17]={match:function(e,n){return n.inAnchor?null:Me(I)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"}}},i[18]={match:Me(U),order:0,parse:function(e){var n=e[1],r=e[1];return u.test(r)||(r="mailto:"+r),{children:[{text:n.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},i[20]=Ee(Z,1),i[33]=Ee(Z,2),i[19]={match:Ue(v),order:3,parse:We,render:function(){return"\n"}},i[21]={match:Be,order:3,parse:Fe,render:function(e,n,r){return Z("p",{key:r.key},n(e.children,r))}},i[22]={match:Me(H),order:0,parse:function(e){return Q[e[1]]={target:e[2],title:e[4]},{}},render:Ge},i[23]={match:Ie(D),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return Q[e.ref]?Z("img",{key:r.key,alt:e.alt,src:Ne(Q[e.ref].target),title:Q[e.ref].title}):null}},i[24]={match:Me(P),order:0,parse:function(e,n,r){return{children:n(e[1],r),fallbackChildren:n(e[0].replace(_,"\\$1"),r),ref:e[2]}},render:function(e,n,r){return Q[e.ref]?Z("a",{key:r.key,href:Ne(Q[e.ref].target),title:Q[e.ref].title},n(e.children,r)):Z("span",{key:r.key},n(e.fallbackChildren,r))}},i[25]={match:Ue(N),order:1,parse:Re,render:function(e,n,r){return Z("table",{key:r.key},Z("thead",null,Z("tr",null,e.header.map(function(t,i){return Z("th",{key:i,style:ze(e,i)},n(t,r))}))),Z("tbody",null,e.cells.map(function(t,i){return Z("tr",{key:i},t.map(function(t,i){return Z("td",{key:i,style:ze(e,i)},n(t,r))}))})))}},i[26]={match:function(e,n){return n.inTable?(n.inline=!0,G.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:function(){return" | "}},i[27]={match:je(te),order:4,parse:function(e){return{text:e[0].replace(T,function(e,n){return t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e})}},render:function(e){return e.text}},i[28]={match:Ie(K),order:2,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return Z("strong",{key:r.key},n(e.children,r))}},i[29]={match:Ie(Y),order:3,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return Z("em",{key:r.key},n(e.children,r))}},i[30]={match:Ie(re),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ie(ee),order:3,parse:Fe,render:function(e,n,r){return Z("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ie(ne),order:3,parse:Fe,render:function(e,n,r){return Z("del",{key:r.key},n(e.children,r))}},i);!0===t.disableParsingRawHTML&&(delete J[11],delete J[13]);var oe,ce=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],o="";t;)for(var c=0;c<n.length;){var l=n[c],u=e[l],s=u.match(t,i,o);if(s){var f=s[0];t=t.substring(f.length);var d=u.parse(s,r,i);null==d.type&&(d.type=l),a.push(d),o=f;break}c++}return a}return n.sort(function(n,r){var t=e[n].order,i=e[r].order;return t!==i?t-i:n<r?-1:1}),function(e,n){return r(function(e){return e.replace(k,"\n").replace(w,"").replace(W," ")}(e),n)}}(J),le=(oe=function(e,n){return function(r,t,i){var a=e[r.type].render;return n?n(function(){return a(r,t,i)},r,t,i):a(r,t,i)}}(J,t.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,o=0;o<n.length;o++){r.key=o;var c=e(n[o],r),l="string"==typeof c;l&&a?i[i.length-1]+=c:null!==c&&i.push(c),a=l}return r.key=t,i}return oe(n,e,r)}),ue=q(r);return X.length?Z("div",null,ue,Z("footer",{key:"footer"},X.map(function(e){return Z("div",{id:t.slugify(e.identifier),key:e.identifier},e.identifier,le(ce(e.footnote,{inline:!0})))}))):ue}export default function(n){var r=n.children,t=void 0===r?"":r,a=n.options,o=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n.indexOf(r=a[t])>=0||(i[r]=e[r]);return i}(n,i);return e.cloneElement(Xe(t,a),o)}export{r as RuleType,Xe as compiler};
import*as e from"react";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},n.apply(this,arguments)}var r,t,i=["children","options"];!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(r||(r={})),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"}(t||(t={}));var a=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,n){return e[n.toLowerCase()]=n,e},{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u=/mailto:/i,s=/\n{2,}$/,f=/^(\s*>[\s\S]*?)(?=\n{2,})/,d=/^ *> ?/gm,p=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,k=/\r\n?/g,x=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,b=/^\[\^([^\]]+)]/,w=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,S=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp("^([*_])\\1"+J+"\\1\\1(?!\\1)"),Y=new RegExp("^([*_])"+J+"\\1(?!\\1|\\w)"),ee=new RegExp("^=="+J+"=="),ne=new RegExp("^~~"+J+"~~"),re=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,ae=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,le=/(?:^|\n)( *)$/,ue="(?:\\d+\\.)",se="(?:[*+-])";function fe(e){return"( *)("+(1===e?ue:se)+") +"}var de=fe(1),pe=fe(2);function he(e){return new RegExp("^"+(1===e?de:pe))}var me=he(1),ge=he(2);function ye(e){return new RegExp("^"+(1===e?de:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ue:se)+" )[^\\n]*)*(\\n|$)","gm")}var ve=ye(1),ke=ye(2);function xe(e){var n=1===e?ue:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var be=xe(1),we=xe(2);function Ee(e,n){var r=1===n,t=r?be:we,i=r?ve:ke,a=r?me:ge;return{match:function(e,n,r){var i=le.exec(r);return i&&(n.list||!n.inline&&!n.simple)?t.exec(e=i[1]+e):null},order:1,parse:function(e,n,t){var o=r?+e[2]:void 0,c=e[0].replace(s,"\n").match(i),l=!1;return{items:c.map(function(e,r){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),s=r===c.length-1,f=-1!==u.indexOf("\n\n")||s&&l;l=f;var d,p=t.inline,h=t.list;t.list=!0,f?(t.inline=!1,d=u.replace(ce,"\n\n")):(t.inline=!0,d=u.replace(ce,""));var m=n(d,t);return t.inline=p,t.list=h,m}),ordered:r,start:o}},render:function(n,r,t){return e(n.ordered?"ol":"ul",{key:t.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},r(n,t))}))}}}var Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[f,m,g,C,A,$,L,N,ve,be,ke,we],Ae=[].concat($e,[/^[^\n]+(?: \n|\n{2,})/,O,z]);function Oe(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 Te(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Le(e,n,r){var t=r.inTable;r.inTable=!0;var i=n(e.trim(),r);r.inTable=t;var a=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&a.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(q,"")),a[a.length-1].push(e))}),a}function Re(e,n,r){r.inline=!0;var t=Le(e[1],n,r),i=e[2].replace(Z,"").split("|").map(Te),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Le(e,n,r)})}(e[3],n,r);return r.inline=!1,{align:i,cells:a,header:t,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Me(e){return function(n,r){return r.inline?e.exec(n):null}}function Ie(e){return function(n,r){return r.inline||r.simple?e.exec(n):null}}function Ue(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function je(e){return function(n){return e.exec(n)}}function Be(e,n,r){if(n.inline||n.simple)return null;if(r&&!r.endsWith("\n"))return null;var t="";e.split("\n").every(function(e){return!$e.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Ne(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function He(e){return e.replace(oe,"$1")}function De(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function Pe(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function _e(e,n,r){return r.inline=!1,e(n,r)}var Fe=function(e,n,r){return{children:De(n,e[1],r)}};function We(){return{}}function Ge(){return null}function Ze(){return[].slice.call(arguments).filter(Boolean).join(" ")}function qe(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function Ve(e,n){var r=qe(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:qe(n,e+".component",e):e}function Xe(r,t){var i;void 0===r&&(r=""),void 0===t&&(t={}),t.overrides=t.overrides||{},t.slugify=t.slugify||Oe,t.namedCodesToUnicode=t.namedCodesToUnicode?n({},o,t.namedCodesToUnicode):o;var s=t.createElement||e.createElement;function Z(e,r){var i=qe(t.overrides,e+".props",{});return s.apply(void 0,[Ve(e,t.overrides),n({},r,i,{className:Ze(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function q(n){n=n.replace(E,"");var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===F.test(n));for(var i=le(ce(r?n:n.trimEnd().replace(ie,"")+"\n\n",{inline:r}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;var a,o=t.wrapper||(r?"span":"div");if(i.length>1||t.forceWrapper)a=i;else{if(1===i.length)return"string"==typeof(a=i[0])?Z("span",{key:"outer"},a):a;a=null}return e.createElement(o,{key:"outer"},a)}function V(n){var r=n.match(l);return r?r.reduce(function(n,r,t){var i=r.indexOf("=");if(-1!==i){var o=function(e){return-1!==e.indexOf("-")&&null===e.match(R)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(r.slice(0,i)).trim(),c=function(e){var n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(r.slice(i+1).trim()),l=a[o]||o,u=n[l]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var r=n.slice(0,n.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Ne(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof u&&(O.test(u)||z.test(u))&&(n[l]=e.cloneElement(q(u.trim()),{key:t}))}else"style"!==r&&(n[a[r]||r]=!0);return n},{}):null}var X=[],Q={},J=((i={})[0]={match:Ue(f),order:1,parse:function(e,n,r){return{children:n(e[0].replace(d,""),r)}},render:function(e,n,r){return Z("blockquote",{key:r.key},n(e.children,r))}},i[1]={match:je(p),order:1,parse:We,render:function(e,n,r){return Z("br",{key:r.key})}},i[2]={match:Ue(h),order:1,parse:We,render:function(e,n,r){return Z("hr",{key:r.key})}},i[3]={match:Ue(g),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,r,t){return Z("pre",{key:t.key},Z("code",n({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[4]={match:Ue(m),order:0,parse:function(e){return{attrs:V(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Ie(y),order:3,parse:function(e){return{text:e[2]}},render:function(e,n,r){return Z("code",{key:r.key},e.text)}},i[6]={match:Ue(x),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:Ge},i[7]={match:Me(b),order:1,parse:function(e){return{target:"#"+t.slugify(e[1]),text:e[1]}},render:function(e,n,r){return Z("a",{key:r.key,href:Ne(e.target)},Z("sup",{key:r.key},e.text))}},i[8]={match:Me(S),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,n,r){return Z("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})}},i[9]={match:Ue(t.enforceAtxHeadings?$:C),order:1,parse:function(e,n,r){return{children:De(n,e[2],r),id:t.slugify(e[2]),level:e[1].length}},render:function(e,n,r){return Z("h"+e.level,{id:e.id,key:r.key},n(e.children,r))}},i[10]={match:Ue(A),order:0,parse:function(e,n,r){return{children:De(n,e[1],r),level:"="===e[2]?1:2,type:"9"}}},i[11]={match:je(O),order:1,parse:function(e,n,r){var t,i=e[3].match(ae),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),l=(t=o,Ae.some(function(e){return e.test(t)})?_e:De),u=e[1].toLowerCase(),s=-1!==c.indexOf(u),f={attrs:V(e[2]),noInnerParse:s,tag:(s?u:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===u,s?f.text=e[3]:f.children=l(n,o,r),r.inAnchor=!1,f},render:function(e,r,t){return Z(e.tag,n({key:t.key},e.attrs),e.text||r(e.children,t))}},i[13]={match:je(z),order:1,parse:function(e){return{attrs:V(e[2]||""),tag:e[1].trim()}},render:function(e,r,t){return Z(e.tag,n({},e.attrs,{key:t.key}))}},i[12]={match:je(L),order:1,parse:function(){return{}},render:Ge},i[14]={match:Ie(Ce),order:1,parse:function(e){return{alt:e[1],target:He(e[2]),title:e[3]}},render:function(e,n,r){return Z("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:Ne(e.target)})}},i[15]={match:Me(Se),order:3,parse:function(e,n,r){return{children:Pe(n,e[1],r),target:He(e[2]),title:e[3]}},render:function(e,n,r){return Z("a",{key:r.key,href:Ne(e.target),title:e.title},n(e.children,r))}},i[16]={match:Me(j),order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],type:"15"}}},i[17]={match:function(e,n){return n.inAnchor?null:Me(I)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"}}},i[18]={match:Me(U),order:0,parse:function(e){var n=e[1],r=e[1];return u.test(r)||(r="mailto:"+r),{children:[{text:n.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},i[20]=Ee(Z,1),i[33]=Ee(Z,2),i[19]={match:Ue(v),order:3,parse:We,render:function(){return"\n"}},i[21]={match:Be,order:3,parse:Fe,render:function(e,n,r){return Z("p",{key:r.key},n(e.children,r))}},i[22]={match:Me(H),order:0,parse:function(e){return Q[e[1]]={target:e[2],title:e[4]},{}},render:Ge},i[23]={match:Ie(D),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return Q[e.ref]?Z("img",{key:r.key,alt:e.alt,src:Ne(Q[e.ref].target),title:Q[e.ref].title}):null}},i[24]={match:Me(P),order:0,parse:function(e,n,r){return{children:n(e[1],r),fallbackChildren:n(e[0].replace(_,"\\$1"),r),ref:e[2]}},render:function(e,n,r){return Q[e.ref]?Z("a",{key:r.key,href:Ne(Q[e.ref].target),title:Q[e.ref].title},n(e.children,r)):Z("span",{key:r.key},n(e.fallbackChildren,r))}},i[25]={match:Ue(N),order:1,parse:Re,render:function(e,n,r){return Z("table",{key:r.key},Z("thead",null,Z("tr",null,e.header.map(function(t,i){return Z("th",{key:i,style:ze(e,i)},n(t,r))}))),Z("tbody",null,e.cells.map(function(t,i){return Z("tr",{key:i},t.map(function(t,i){return Z("td",{key:i,style:ze(e,i)},n(t,r))}))})))}},i[26]={match:function(e,n){return n.inTable?(n.inline=!0,G.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:function(){return" | "}},i[27]={match:je(te),order:4,parse:function(e){return{text:e[0].replace(T,function(e,n){return t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e})}},render:function(e){return e.text}},i[28]={match:Ie(K),order:2,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return Z("strong",{key:r.key},n(e.children,r))}},i[29]={match:Ie(Y),order:3,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return Z("em",{key:r.key},n(e.children,r))}},i[30]={match:Ie(re),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ie(ee),order:3,parse:Fe,render:function(e,n,r){return Z("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ie(ne),order:3,parse:Fe,render:function(e,n,r){return Z("del",{key:r.key},n(e.children,r))}},i);!0===t.disableParsingRawHTML&&(delete J[11],delete J[13]);var oe,ce=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],o="";t;)for(var c=0;c<n.length;){var l=n[c],u=e[l],s=u.match(t,i,o);if(s){var f=s[0];t=t.substring(f.length);var d=u.parse(s,r,i);null==d.type&&(d.type=l),a.push(d),o=f;break}c++}return a}return n.sort(function(n,r){var t=e[n].order,i=e[r].order;return t!==i?t-i:n<r?-1:1}),function(e,n){return r(function(e){return e.replace(k,"\n").replace(w,"").replace(W," ")}(e),n)}}(J),le=(oe=function(e,n){return function(r,t,i){var a=e[r.type].render;return n?n(function(){return a(r,t,i)},r,t,i):a(r,t,i)}}(J,t.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,o=0;o<n.length;o++){r.key=o;var c=e(n[o],r),l="string"==typeof c;l&&a?i[i.length-1]+=c:null!==c&&i.push(c),a=l}return r.key=t,i}return oe(n,e,r)}),ue=q(r);return X.length?Z("div",null,ue,Z("footer",{key:"footer"},X.map(function(e){return Z("div",{id:t.slugify(e.identifier),key:e.identifier},e.identifier,le(ce(e.footnote,{inline:!0})))}))):ue}export default function(n){var r=n.children,t=void 0===r?"":r,a=n.options,o=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n.indexOf(r=a[t])>=0||(i[r]=e[r]);return i}(n,i);return e.cloneElement(Xe(t,a),o)}export{r as RuleType,Xe as compiler};
//# sourceMappingURL=index.module.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(e||self).MarkdownToJSX=n(e.React)}(this,function(e){function n(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}}),n.default=e,n}var r=/*#__PURE__*/n(e);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},t.apply(this,arguments)}var i,a,o=["children","options"];!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(i||(i={})),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"}(a||(a={}));var c=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,n){return e[n.toLowerCase()]=n,e},{for:"htmlFor"}),l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],f=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,p=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,h=/^ *> ?/gm,m=/^ {2,}\n/,g=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,y=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,v=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,x=/^(?:\n *)*\n/,b=/\r\n?/g,w=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,E=/^\[\^([^\]]+)]/,O=/\f/g,S=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,T=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,L=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,R=/^<!--[\s\S]*?(?:-->)/,j=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,U=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,B=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,P=/-([a-z])?/gi,_=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,H=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,W=/(\[|\])/g,G=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Z=/\t/g,q=/^ *\| */,X=/(^ *\||\| *$)/g,V=/ *$/,J=/^ *:-+: *$/,Q=/^ *:-+ *$/,K=/^ *-+: *$/,Y="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",ee=new RegExp("^([*_])\\1"+Y+"\\1\\1(?!\\1)"),ne=new RegExp("^([*_])"+Y+"\\1(?!\\1|\\w)"),re=new RegExp("^=="+Y+"=="),te=new RegExp("^~~"+Y+"~~"),ie=/^\\([^0-9A-Za-z\s])/,ae=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,oe=/^\n+/,ce=/^([ \t]*)/,le=/\\([^\\])/g,ue=/ *\n+$/,fe=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function pe(e){return"( *)("+(1===e?se:de)+") +"}var he=pe(1),me=pe(2);function ge(e){return new RegExp("^"+(1===e?he:me))}var ye=ge(1),ve=ge(2);function ke(e){return new RegExp("^"+(1===e?he:me)+"[^\\n]*(?:\\n(?!\\1"+(1===e?se:de)+" )[^\\n]*)*(\\n|$)","gm")}var xe=ke(1),be=ke(2);function we(e){var n=1===e?se:de;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var Ee=we(1),Oe=we(2);function Se(e,n){var r=1===n,t=r?Ee:Oe,i=r?xe:be,a=r?ye:ve;return{match:function(e,n,r){var i=fe.exec(r);return i&&(n.list||!n.inline&&!n.simple)?t.exec(e=i[1]+e):null},order:1,parse:function(e,n,t){var o=r?+e[2]:void 0,c=e[0].replace(d,"\n").match(i),l=!1;return{items:c.map(function(e,r){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),f=r===c.length-1,s=-1!==u.indexOf("\n\n")||f&&l;l=s;var d,p=t.inline,h=t.list;t.list=!0,s?(t.inline=!1,d=u.replace(ue,"\n\n")):(t.inline=!0,d=u.replace(ue,""));var m=n(d,t);return t.inline=p,t.list=h,m}),ordered:r,start:o}},render:function(n,r,t){return e(n.ordered?"ol":"ul",{key:t.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},r(n,t))}))}}}var Te=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[p,y,v,C,A,$,R,_,xe,Ee,be,Oe],Ae=[].concat($e,[/^[^\n]+(?: \n|\n{2,})/,L,z]);function Le(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":J.test(e)?"center":Q.test(e)?"left":null}function Re(e,n,r){var t=r.inTable;r.inTable=!0;var i=n(e.trim(),r);r.inTable=t;var a=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&a.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(V,"")),a[a.length-1].push(e))}),a}function je(e,n,r){r.inline=!0;var t=Re(e[1],n,r),i=e[2].replace(X,"").split("|").map(Me),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Re(e,n,r)})}(e[3],n,r);return r.inline=!1,{align:i,cells:a,header:t,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Ie(e){return function(n,r){return r.inline?e.exec(n):null}}function Ue(e){return function(n,r){return r.inline||r.simple?e.exec(n):null}}function Be(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function Ne(e){return function(n){return e.exec(n)}}function Pe(e,n,r){if(n.inline||n.simple)return null;if(r&&!r.endsWith("\n"))return null;var t="";e.split("\n").every(function(e){return!$e.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function _e(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function De(e){return e.replace(le,"$1")}function He(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function Fe(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function We(e,n,r){return r.inline=!1,e(n,r)}var Ge=function(e,n,r){return{children:He(n,e[1],r)}};function Ze(){return{}}function qe(){return null}function Xe(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ve(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function Je(e,n){var r=Ve(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Ve(n,e+".component",e):e}function Qe(e,n){var i;void 0===e&&(e=""),void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||Le,n.namedCodesToUnicode=n.namedCodesToUnicode?t({},l,n.namedCodesToUnicode):l;var a=n.createElement||r.createElement;function o(e,r){var i=Ve(n.overrides,e+".props",{});return a.apply(void 0,[Je(e,n.overrides),t({},r,i,{className:Xe(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function d(e){e=e.replace(S,"");var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===G.test(e));for(var i=le(Y(t?e:e.trimEnd().replace(oe,"")+"\n\n",{inline:t}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===n.wrapper)return i;var a,c=n.wrapper||(t?"span":"div");if(i.length>1||n.forceWrapper)a=i;else{if(1===i.length)return"string"==typeof(a=i[0])?o("span",{key:"outer"},a):a;a=null}return r.createElement(c,{key:"outer"},a)}function X(e){var n=e.match(f);return n?n.reduce(function(e,n,t){var i=n.indexOf("=");if(-1!==i){var a=function(e){return-1!==e.indexOf("-")&&null===e.match(j)&&(e=e.replace(P,function(e,n){return n.toUpperCase()})),e}(n.slice(0,i)).trim(),o=function(e){var n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(n.slice(i+1).trim()),l=c[a]||a,u=e[l]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var r=n.slice(0,n.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?_e(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,o);"string"==typeof u&&(L.test(u)||z.test(u))&&(e[l]=r.cloneElement(d(u.trim()),{key:t}))}else"style"!==n&&(e[c[n]||n]=!0);return e},{}):null}var V=[],J={},Q=((i={})[0]={match:Be(p),order:1,parse:function(e,n,r){return{children:n(e[0].replace(h,""),r)}},render:function(e,n,r){return o("blockquote",{key:r.key},n(e.children,r))}},i[1]={match:Ne(m),order:1,parse:Ze,render:function(e,n,r){return o("br",{key:r.key})}},i[2]={match:Be(g),order:1,parse:Ze,render:function(e,n,r){return o("hr",{key:r.key})}},i[3]={match:Be(v),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,n,r){return o("pre",{key:r.key},o("code",t({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[4]={match:Be(y),order:0,parse:function(e){return{attrs:X(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Ue(k),order:3,parse:function(e){return{text:e[2]}},render:function(e,n,r){return o("code",{key:r.key},e.text)}},i[6]={match:Be(w),order:0,parse:function(e){return V.push({footnote:e[2],identifier:e[1]}),{}},render:qe},i[7]={match:Ie(E),order:1,parse:function(e){return{target:"#"+n.slugify(e[1]),text:e[1]}},render:function(e,n,r){return o("a",{key:r.key,href:_e(e.target)},o("sup",{key:r.key},e.text))}},i[8]={match:Ie(T),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,n,r){return o("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})}},i[9]={match:Be(n.enforceAtxHeadings?$:C),order:1,parse:function(e,r,t){return{children:He(r,e[2],t),id:n.slugify(e[2]),level:e[1].length}},render:function(e,n,r){return o("h"+e.level,{id:e.id,key:r.key},n(e.children,r))}},i[10]={match:Be(A),order:0,parse:function(e,n,r){return{children:He(n,e[1],r),level:"="===e[2]?1:2,type:"9"}}},i[11]={match:Ne(L),order:1,parse:function(e,n,r){var t,i=e[3].match(ce),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),c=(t=o,Ae.some(function(e){return e.test(t)})?We:He),l=e[1].toLowerCase(),f=-1!==u.indexOf(l),s={attrs:X(e[2]),noInnerParse:f,tag:(f?l:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===l,f?s.text=e[3]:s.children=c(n,o,r),r.inAnchor=!1,s},render:function(e,n,r){return o(e.tag,t({key:r.key},e.attrs),e.text||n(e.children,r))}},i[13]={match:Ne(z),order:1,parse:function(e){return{attrs:X(e[2]||""),tag:e[1].trim()}},render:function(e,n,r){return o(e.tag,t({},e.attrs,{key:r.key}))}},i[12]={match:Ne(R),order:1,parse:function(){return{}},render:qe},i[14]={match:Ue(Ce),order:1,parse:function(e){return{alt:e[1],target:De(e[2]),title:e[3]}},render:function(e,n,r){return o("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:_e(e.target)})}},i[15]={match:Ie(Te),order:3,parse:function(e,n,r){return{children:Fe(n,e[1],r),target:De(e[2]),title:e[3]}},render:function(e,n,r){return o("a",{key:r.key,href:_e(e.target),title:e.title},n(e.children,r))}},i[16]={match:Ie(N),order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],type:"15"}}},i[17]={match:function(e,n){return n.inAnchor?null:Ie(U)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"}}},i[18]={match:Ie(B),order:0,parse:function(e){var n=e[1],r=e[1];return s.test(r)||(r="mailto:"+r),{children:[{text:n.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},i[20]=Se(o,1),i[33]=Se(o,2),i[19]={match:Be(x),order:3,parse:Ze,render:function(){return"\n"}},i[21]={match:Pe,order:3,parse:Ge,render:function(e,n,r){return o("p",{key:r.key},n(e.children,r))}},i[22]={match:Ie(D),order:0,parse:function(e){return J[e[1]]={target:e[2],title:e[4]},{}},render:qe},i[23]={match:Ue(H),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return J[e.ref]?o("img",{key:r.key,alt:e.alt,src:_e(J[e.ref].target),title:J[e.ref].title}):null}},i[24]={match:Ie(F),order:0,parse:function(e,n,r){return{children:n(e[1],r),fallbackChildren:n(e[0].replace(W,"\\$1"),r),ref:e[2]}},render:function(e,n,r){return J[e.ref]?o("a",{key:r.key,href:_e(J[e.ref].target),title:J[e.ref].title},n(e.children,r)):o("span",{key:r.key},n(e.fallbackChildren,r))}},i[25]={match:Be(_),order:1,parse:je,render:function(e,n,r){return o("table",{key:r.key},o("thead",null,o("tr",null,e.header.map(function(t,i){return o("th",{key:i,style:ze(e,i)},n(t,r))}))),o("tbody",null,e.cells.map(function(t,i){return o("tr",{key:i},t.map(function(t,i){return o("td",{key:i,style:ze(e,i)},n(t,r))}))})))}},i[26]={match:function(e,n){return n.inTable?(n.inline=!0,q.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:function(){return" | "}},i[27]={match:Ne(ae),order:4,parse:function(e){return{text:e[0].replace(M,function(e,r){return n.namedCodesToUnicode[r]?n.namedCodesToUnicode[r]:e})}},render:function(e){return e.text}},i[28]={match:Ue(ee),order:2,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return o("strong",{key:r.key},n(e.children,r))}},i[29]={match:Ue(ne),order:3,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return o("em",{key:r.key},n(e.children,r))}},i[30]={match:Ue(ie),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ue(re),order:3,parse:Ge,render:function(e,n,r){return o("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ue(te),order:3,parse:Ge,render:function(e,n,r){return o("del",{key:r.key},n(e.children,r))}},i);!0===n.disableParsingRawHTML&&(delete Q[11],delete Q[13]);var K,Y=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],o="";t;)for(var c=0;c<n.length;){var l=n[c],u=e[l],f=u.match(t,i,o);if(f){var s=f[0];t=t.substring(s.length);var d=u.parse(f,r,i);null==d.type&&(d.type=l),a.push(d),o=s;break}c++}return a}return n.sort(function(n,r){var t=e[n].order,i=e[r].order;return t!==i?t-i:n<r?-1:1}),function(e,n){return r(function(e){return e.replace(b,"\n").replace(O,"").replace(Z," ")}(e),n)}}(Q),le=(K=function(e,n){return function(r,t,i){var a=e[r.type].render;return n?n(function(){return a(r,t,i)},r,t,i):a(r,t,i)}}(Q,n.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,o=0;o<n.length;o++){r.key=o;var c=e(n[o],r),l="string"==typeof c;l&&a?i[i.length-1]+=c:null!==c&&i.push(c),a=l}return r.key=t,i}return K(n,e,r)}),ue=d(e);return V.length?o("div",null,ue,o("footer",{key:"footer"},V.map(function(e){return o("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,le(Y(e.footnote,{inline:!0})))}))):ue}function Ke(e){var n=e.children,t=void 0===n?"":n,i=e.options,a=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n.indexOf(r=a[t])>=0||(i[r]=e[r]);return i}(e,o);return r.cloneElement(Qe(t,i),a)}return Object.assign(Ke,{compiler:Qe}),Ke});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(e||self).MarkdownToJSX=n(e.React)}(this,function(e){function n(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}}),n.default=e,n}var r=/*#__PURE__*/n(e);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},t.apply(this,arguments)}var i,a,o=["children","options"];!function(e){e.blockQuote="0",e.breakLine="1",e.breakThematic="2",e.codeBlock="3",e.codeFenced="4",e.codeInline="5",e.footnote="6",e.footnoteReference="7",e.gfmTask="8",e.heading="9",e.headingSetext="10",e.htmlBlock="11",e.htmlComment="12",e.htmlSelfClosing="13",e.image="14",e.link="15",e.linkAngleBraceStyleDetector="16",e.linkBareUrlDetector="17",e.linkMailtoDetector="18",e.newlineCoalescer="19",e.orderedList="20",e.paragraph="21",e.ref="22",e.refImage="23",e.refLink="24",e.table="25",e.tableSeparator="26",e.text="27",e.textBolded="28",e.textEmphasized="29",e.textEscaped="30",e.textMarked="31",e.textStrikethroughed="32",e.unorderedList="33"}(i||(i={})),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"}(a||(a={}));var c=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(function(e,n){return e[n.toLowerCase()]=n,e},{for:"htmlFor"}),l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},u=["style","script"],f=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n{2,})/,h=/^ *> ?/gm,m=/^ {2,}\n/,g=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,y=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,v=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,k=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,x=/^(?:\n *)*\n/,b=/\r\n?/g,w=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,E=/^\[\^([^\]]+)]/,O=/\f/g,S=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,T=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,L=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,R=/^<!--[\s\S]*?(?:-->)/,j=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,U=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,B=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,P=/-([a-z])?/gi,_=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,H=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,W=/(\[|\])/g,G=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Z=/\t/g,q=/^ *\| */,X=/(^ *\||\| *$)/g,V=/ *$/,J=/^ *:-+: *$/,Q=/^ *:-+ *$/,K=/^ *-+: *$/,Y="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",ee=new RegExp("^([*_])\\1"+Y+"\\1\\1(?!\\1)"),ne=new RegExp("^([*_])"+Y+"\\1(?!\\1|\\w)"),re=new RegExp("^=="+Y+"=="),te=new RegExp("^~~"+Y+"~~"),ie=/^\\([^0-9A-Za-z\s])/,ae=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,oe=/^\n+/,ce=/^([ \t]*)/,le=/\\([^\\])/g,ue=/ *\n+$/,fe=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function pe(e){return"( *)("+(1===e?se:de)+") +"}var he=pe(1),me=pe(2);function ge(e){return new RegExp("^"+(1===e?he:me))}var ye=ge(1),ve=ge(2);function ke(e){return new RegExp("^"+(1===e?he:me)+"[^\\n]*(?:\\n(?!\\1"+(1===e?se:de)+" )[^\\n]*)*(\\n|$)","gm")}var xe=ke(1),be=ke(2);function we(e){var n=1===e?se:de;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var Ee=we(1),Oe=we(2);function Se(e,n){var r=1===n,t=r?Ee:Oe,i=r?xe:be,a=r?ye:ve;return{match:function(e,n,r){var i=fe.exec(r);return i&&(n.list||!n.inline&&!n.simple)?t.exec(e=i[1]+e):null},order:1,parse:function(e,n,t){var o=r?+e[2]:void 0,c=e[0].replace(d,"\n").match(i),l=!1;return{items:c.map(function(e,r){var i=a.exec(e)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(o,"").replace(a,""),f=r===c.length-1,s=-1!==u.indexOf("\n\n")||f&&l;l=s;var d,p=t.inline,h=t.list;t.list=!0,s?(t.inline=!1,d=u.replace(ue,"\n\n")):(t.inline=!0,d=u.replace(ue,""));var m=n(d,t);return t.inline=p,t.list=h,m}),ordered:r,start:o}},render:function(n,r,t){return e(n.ordered?"ol":"ul",{key:t.key,start:"20"===n.type?n.start:void 0},n.items.map(function(n,i){return e("li",{key:i},r(n,t))}))}}}var Te=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ce=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[p,y,v,C,A,$,R,_,xe,Ee,be,Oe],Ae=[].concat($e,[/^[^\n]+(?: \n|\n{2,})/,L,z]);function Le(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":J.test(e)?"center":Q.test(e)?"left":null}function Re(e,n,r){var t=r.inTable;r.inTable=!0;var i=n(e.trim(),r);r.inTable=t;var a=[[]];return i.forEach(function(e,n){"26"===e.type?0!==n&&n!==i.length-1&&a.push([]):("27"!==e.type||null!=i[n+1]&&"26"!==i[n+1].type||(e.text=e.text.replace(V,"")),a[a.length-1].push(e))}),a}function je(e,n,r){r.inline=!0;var t=Re(e[1],n,r),i=e[2].replace(X,"").split("|").map(Me),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Re(e,n,r)})}(e[3],n,r);return r.inline=!1,{align:i,cells:a,header:t,type:"25"}}function ze(e,n){return null==e.align[n]?{}:{textAlign:e.align[n]}}function Ie(e){return function(n,r){return r.inline?e.exec(n):null}}function Ue(e){return function(n,r){return r.inline||r.simple?e.exec(n):null}}function Be(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function Ne(e){return function(n){return e.exec(n)}}function Pe(e,n,r){if(n.inline||n.simple)return null;if(r&&!r.endsWith("\n"))return null;var t="";e.split("\n").every(function(e){return!$e.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function _e(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function De(e){return e.replace(le,"$1")}function He(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function Fe(e,n,r){var t=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;var a=e(n,r);return r.inline=t,r.simple=i,a}function We(e,n,r){return r.inline=!1,e(n,r)}var Ge=function(e,n,r){return{children:He(n,e[1],r)}};function Ze(){return{}}function qe(){return null}function Xe(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ve(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function Je(e,n){var r=Ve(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Ve(n,e+".component",e):e}function Qe(e,n){var i;void 0===e&&(e=""),void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||Le,n.namedCodesToUnicode=n.namedCodesToUnicode?t({},l,n.namedCodesToUnicode):l;var a=n.createElement||r.createElement;function o(e,r){var i=Ve(n.overrides,e+".props",{});return a.apply(void 0,[Je(e,n.overrides),t({},r,i,{className:Xe(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function d(e){e=e.replace(S,"");var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===G.test(e));for(var i=le(Y(t?e:e.trimEnd().replace(oe,"")+"\n\n",{inline:t}));"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===n.wrapper)return i;var a,c=n.wrapper||(t?"span":"div");if(i.length>1||n.forceWrapper)a=i;else{if(1===i.length)return"string"==typeof(a=i[0])?o("span",{key:"outer"},a):a;a=null}return r.createElement(c,{key:"outer"},a)}function X(e){var n=e.match(f);return n?n.reduce(function(e,n,t){var i=n.indexOf("=");if(-1!==i){var a=function(e){return-1!==e.indexOf("-")&&null===e.match(j)&&(e=e.replace(P,function(e,n){return n.toUpperCase()})),e}(n.slice(0,i)).trim(),o=function(e){var n=e[0];return('"'===n||"'"===n)&&e.length>=2&&e[e.length-1]===n?e.slice(1,-1):e}(n.slice(i+1).trim()),l=c[a]||a,u=e[l]=function(e,n){return"style"===e?n.split(/;\s?/).reduce(function(e,n){var r=n.slice(0,n.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?_e(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,o);"string"==typeof u&&(L.test(u)||z.test(u))&&(e[l]=r.cloneElement(d(u.trim()),{key:t}))}else"style"!==n&&(e[c[n]||n]=!0);return e},{}):null}var V=[],J={},Q=((i={})[0]={match:Be(p),order:1,parse:function(e,n,r){return{children:n(e[0].replace(h,""),r)}},render:function(e,n,r){return o("blockquote",{key:r.key},n(e.children,r))}},i[1]={match:Ne(m),order:1,parse:Ze,render:function(e,n,r){return o("br",{key:r.key})}},i[2]={match:Be(g),order:1,parse:Ze,render:function(e,n,r){return o("hr",{key:r.key})}},i[3]={match:Be(v),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,n,r){return o("pre",{key:r.key},o("code",t({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))}},i[4]={match:Be(y),order:0,parse:function(e){return{attrs:X(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Ue(k),order:3,parse:function(e){return{text:e[2]}},render:function(e,n,r){return o("code",{key:r.key},e.text)}},i[6]={match:Be(w),order:0,parse:function(e){return V.push({footnote:e[2],identifier:e[1]}),{}},render:qe},i[7]={match:Ie(E),order:1,parse:function(e){return{target:"#"+n.slugify(e[1]),text:e[1]}},render:function(e,n,r){return o("a",{key:r.key,href:_e(e.target)},o("sup",{key:r.key},e.text))}},i[8]={match:Ie(T),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,n,r){return o("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})}},i[9]={match:Be(n.enforceAtxHeadings?$:C),order:1,parse:function(e,r,t){return{children:He(r,e[2],t),id:n.slugify(e[2]),level:e[1].length}},render:function(e,n,r){return o("h"+e.level,{id:e.id,key:r.key},n(e.children,r))}},i[10]={match:Be(A),order:0,parse:function(e,n,r){return{children:He(n,e[1],r),level:"="===e[2]?1:2,type:"9"}}},i[11]={match:Ne(L),order:1,parse:function(e,n,r){var t,i=e[3].match(ce),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),c=(t=o,Ae.some(function(e){return e.test(t)})?We:He),l=e[1].toLowerCase(),f=-1!==u.indexOf(l),s={attrs:X(e[2]),noInnerParse:f,tag:(f?l:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===l,f?s.text=e[3]:s.children=c(n,o,r),r.inAnchor=!1,s},render:function(e,n,r){return o(e.tag,t({key:r.key},e.attrs),e.text||n(e.children,r))}},i[13]={match:Ne(z),order:1,parse:function(e){return{attrs:X(e[2]||""),tag:e[1].trim()}},render:function(e,n,r){return o(e.tag,t({},e.attrs,{key:r.key}))}},i[12]={match:Ne(R),order:1,parse:function(){return{}},render:qe},i[14]={match:Ue(Ce),order:1,parse:function(e){return{alt:e[1],target:De(e[2]),title:e[3]}},render:function(e,n,r){return o("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:_e(e.target)})}},i[15]={match:Ie(Te),order:3,parse:function(e,n,r){return{children:Fe(n,e[1],r),target:De(e[2]),title:e[3]}},render:function(e,n,r){return o("a",{key:r.key,href:_e(e.target),title:e.title},n(e.children,r))}},i[16]={match:Ie(N),order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],type:"15"}}},i[17]={match:function(e,n){return n.inAnchor?null:Ie(U)(e,n)},order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"}}},i[18]={match:Ie(B),order:0,parse:function(e){var n=e[1],r=e[1];return s.test(r)||(r="mailto:"+r),{children:[{text:n.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},i[20]=Se(o,1),i[33]=Se(o,2),i[19]={match:Be(x),order:3,parse:Ze,render:function(){return"\n"}},i[21]={match:Pe,order:3,parse:Ge,render:function(e,n,r){return o("p",{key:r.key},n(e.children,r))}},i[22]={match:Ie(D),order:0,parse:function(e){return J[e[1]]={target:e[2],title:e[4]},{}},render:qe},i[23]={match:Ue(H),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return J[e.ref]?o("img",{key:r.key,alt:e.alt,src:_e(J[e.ref].target),title:J[e.ref].title}):null}},i[24]={match:Ie(F),order:0,parse:function(e,n,r){return{children:n(e[1],r),fallbackChildren:n(e[0].replace(W,"\\$1"),r),ref:e[2]}},render:function(e,n,r){return J[e.ref]?o("a",{key:r.key,href:_e(J[e.ref].target),title:J[e.ref].title},n(e.children,r)):o("span",{key:r.key},n(e.fallbackChildren,r))}},i[25]={match:Be(_),order:1,parse:je,render:function(e,n,r){return o("table",{key:r.key},o("thead",null,o("tr",null,e.header.map(function(t,i){return o("th",{key:i,style:ze(e,i)},n(t,r))}))),o("tbody",null,e.cells.map(function(t,i){return o("tr",{key:i},t.map(function(t,i){return o("td",{key:i,style:ze(e,i)},n(t,r))}))})))}},i[26]={match:function(e,n){return n.inTable?(n.inline=!0,q.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:function(){return" | "}},i[27]={match:Ne(ae),order:4,parse:function(e){return{text:e[0].replace(M,function(e,r){return n.namedCodesToUnicode[r]?n.namedCodesToUnicode[r]:e})}},render:function(e){return e.text}},i[28]={match:Ue(ee),order:2,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return o("strong",{key:r.key},n(e.children,r))}},i[29]={match:Ue(ne),order:3,parse:function(e,n,r){return{children:n(e[2],r)}},render:function(e,n,r){return o("em",{key:r.key},n(e.children,r))}},i[30]={match:Ue(ie),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ue(re),order:3,parse:Ge,render:function(e,n,r){return o("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ue(te),order:3,parse:Ge,render:function(e,n,r){return o("del",{key:r.key},n(e.children,r))}},i);!0===n.disableParsingRawHTML&&(delete Q[11],delete Q[13]);var K,Y=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],o="";t;)for(var c=0;c<n.length;){var l=n[c],u=e[l],f=u.match(t,i,o);if(f){var s=f[0];t=t.substring(s.length);var d=u.parse(f,r,i);null==d.type&&(d.type=l),a.push(d),o=s;break}c++}return a}return n.sort(function(n,r){var t=e[n].order,i=e[r].order;return t!==i?t-i:n<r?-1:1}),function(e,n){return r(function(e){return e.replace(b,"\n").replace(O,"").replace(Z," ")}(e),n)}}(Q),le=(K=function(e,n){return function(r,t,i){var a=e[r.type].render;return n?n(function(){return a(r,t,i)},r,t,i):a(r,t,i)}}(Q,n.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,o=0;o<n.length;o++){r.key=o;var c=e(n[o],r),l="string"==typeof c;l&&a?i[i.length-1]+=c:null!==c&&i.push(c),a=l}return r.key=t,i}return K(n,e,r)}),ue=d(e);return V.length?o("div",null,ue,o("footer",{key:"footer"},V.map(function(e){return o("div",{id:n.slugify(e.identifier),key:e.identifier},e.identifier,le(Y(e.footnote,{inline:!0})))}))):ue}var Ke=function(e){var n=e.children,t=void 0===n?"":n,i=e.options,a=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n.indexOf(r=a[t])>=0||(i[r]=e[r]);return i}(e,o);return r.cloneElement(Qe(t,i),a)};return Object.assign(Ke,{compiler:Qe}),Ke});
//# sourceMappingURL=index.umd.js.map

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

"license": "MIT",
"version": "7.4.4",
"version": "7.4.5",
"publishConfig": {
"access": "public"
},
"engines": {

@@ -9,0 +12,0 @@ "node": ">= 10"

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

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