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.2 to 7.4.3

2

dist/index.modern.js

@@ -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,v=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,$=/\f/g,S=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,w=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,R=/^(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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,K=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Y=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ne=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,re=/^\n+/,ie=/^([ \t]*)/,le=/\\([^\\])/g,oe=/ *\n+$/,ce=/(?:^|\n)( *)$/,ae="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?ae:se)+") +"}const ue=de(1),pe=de(2);function fe(e){return new RegExp("^"+(1===e?ue:pe))}const he=fe(1),me=fe(2);function ge(e){return new RegExp("^"+(1===e?ue:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ae:se)+" )[^\\n]*)*(\\n|$)","gm")}const ye=ge(1),ke=ge(2);function xe(e){const n=1===e?ae:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const ve=xe(1),be=xe(2);function $e(e,n){const t=1===n,r=t?ve:be,i=t?ye:ke,l=t?he:me;return{match(e,n,t){const i=ce.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(oe,"\n\n")):(r.inline=!0,h=s.replace(oe,""));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 Se=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,we=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,C,A,E,L,N,ye,ve,ke,be],Ee=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,M];function Ae(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 Oe(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Te(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 Le(e,n,t){t.inline=!0;const r=Te(e[1],n,t),i=e[2].replace(Z,"").split("|").map(Oe),l=function(e,n,t){return e.trim().split("\n").map(function(e){return Te(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 Re(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function Ue(e){return function(n){return e.exec(n)}}function je(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 Be(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 Ne(e){return e.replace(le,"$1")}function He(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 De(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 Pe(e,n,t){return t.inline=!1,e(n,t)}const _e=(e,n,t)=>({children:He(n,e[1],t)});function Fe(){return{}}function We(){return null}function Ge(...e){return e.filter(Boolean).join(" ")}function Ze(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 qe(t,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Ae,r.namedCodesToUnicode=r.namedCodesToUnicode?n({},o,r.namedCodesToUnicode):o;const i=r.createElement||e.createElement;function d(e,t,...l){const o=Ze(r.overrides,`${e}.props`,{});return i(function(e,n){const t=Ze(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ze(n,`${e}.component`,e):e}(e,r.overrides),n({},t,o,{className:Ge(null==t?void 0:t.className,o.className)||void 0}),...l)}function Z(n){n=n.replace(S,"");let t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===F.test(n));const i=oe(le(t?n:`${n.trimEnd().replace(re,"")}\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(z)&&(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.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=n.slice(t.length+1).trim(),e},{}):"href"===e||"src"===e?Be(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof s&&(O.test(s)||M.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:Re(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:Ue(f),order:1,parse:Fe,render:(e,n,t)=>d("br",{key:t.key})},2:{match:Re(h),order:1,parse:Fe,render:(e,n,t)=>d("hr",{key:t.key})},3:{match:Re(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:Re(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:Re(v),order:0,parse:e=>(V.push({footnote:e[2],identifier:e[1]}),{}),render:We},7:{match:Me(b),order:1,parse:e=>({target:`#${r.slugify(e[1])}`,text:e[1]}),render:(e,n,t)=>d("a",{key:t.key,href:Be(e.target)},d("sup",{key:t.key},e.text))},8:{match:Me(w),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:Re(r.enforceAtxHeadings?E:C),order:1,parse:(e,n,t)=>({children:He(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:Re(A),order:0,parse:(e,n,t)=>({children:He(n,e[1],t),level:"="===e[2]?1:2,type:"9"})},11:{match:Ue(O),order:1,parse(e,n,t){const[,r]=e[3].match(ie),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),o=(a=l,Ee.some(e=>e.test(a))?Pe:He);var a;const s=e[1].toLowerCase(),d=-1!==c.indexOf(s),u={attrs:q(e[2]),noInnerParse:d,tag:d?s:e[1]};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:Ue(M),order:1,parse:e=>({attrs:q(e[2]||""),tag:e[1]}),render:(e,t,r)=>d(e.tag,n({},e.attrs,{key:r.key}))},12:{match:Ue(L),order:1,parse:()=>({}),render:We},14:{match:Ie(we),order:1,parse:e=>({alt:e[1],target:Ne(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:Be(e.target)})},15:{match:Me(Se),order:3,parse:(e,n,t)=>({children:De(n,e[1],t),target:Ne(e[2]),title:e[3]}),render:(e,n,t)=>d("a",{key:t.key,href:Be(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(R)(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:$e(d,1),33:$e(d,2),19:{match:Re(k),order:3,parse:Fe,render:()=>"\n"},21:{match:je,order:3,parse:_e,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:We},23:{match:Ie(D),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,n,t)=>d("img",{key:t.key,alt:e.alt,src:Be(X[e.ref].target),title:X[e.ref].title})},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:Be(X[e.ref].target),title:X[e.ref].title},n(e.children,t)):d("span",{key:t.key},n(e.fallbackChildren,t))},25:{match:Re(N),order:1,parse:Le,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:Ue(te),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(J),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(K),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(ne),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:Ie(Y),order:3,parse:_e,render:(e,n,t)=>d("mark",{key:t.key},n(e.children,t))},32:{match:Ie(ee),order:3,parse:_e,render:(e,n,t)=>d("del",{key:t.key},n(e.children,t))}};!0===r.disableParsingRawHTML&&(delete Q[11],delete Q[13]);const le=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: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(le(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(qe(r,i),l)};export{r as RuleType,qe 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=/^( *>[^\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,v=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,$=/\f/g,S=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,w=/^\s*?\[(x|\s)\]/,C=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,R=/^(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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,K=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Y=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ne=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,re=/^\n+/,ie=/^([ \t]*)/,le=/\\([^\\])/g,oe=/ *\n+$/,ce=/(?:^|\n)( *)$/,ae="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?ae:se)+") +"}const ue=de(1),pe=de(2);function fe(e){return new RegExp("^"+(1===e?ue:pe))}const he=fe(1),me=fe(2);function ge(e){return new RegExp("^"+(1===e?ue:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ae:se)+" )[^\\n]*)*(\\n|$)","gm")}const ye=ge(1),ke=ge(2);function xe(e){const n=1===e?ae:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const ve=xe(1),be=xe(2);function $e(e,n){const t=1===n,r=t?ve:be,i=t?ye:ke,l=t?he:me;return{match(e,n,t){const i=ce.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(oe,"\n\n")):(r.inline=!0,h=s.replace(oe,""));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 Se=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,we=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,C,A,E,L,N,ye,ve,ke,be],Ee=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,M];function Ae(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 Oe(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Te(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 Le(e,n,t){t.inline=!0;const r=Te(e[1],n,t),i=e[2].replace(Z,"").split("|").map(Oe),l=function(e,n,t){return e.trim().split("\n").map(function(e){return Te(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 Re(e){return function(n,t){return t.inline||t.simple?null:e.exec(n)}}function Ue(e){return function(n){return e.exec(n)}}function je(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 Be(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 Ne(e){return e.replace(le,"$1")}function He(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 De(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 Pe(e,n,t){return t.inline=!1,e(n,t)}const _e=(e,n,t)=>({children:He(n,e[1],t)});function Fe(){return{}}function We(){return null}function Ge(...e){return e.filter(Boolean).join(" ")}function Ze(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 qe(t,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Ae,r.namedCodesToUnicode=r.namedCodesToUnicode?n({},o,r.namedCodesToUnicode):o;const i=r.createElement||e.createElement;function d(e,t,...l){const o=Ze(r.overrides,`${e}.props`,{});return i(function(e,n){const t=Ze(n,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Ze(n,`${e}.component`,e):e}(e,r.overrides),n({},t,o,{className:Ge(null==t?void 0:t.className,o.className)||void 0}),...l)}function Z(n){n=n.replace(S,"");let t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===F.test(n));const i=oe(le(t?n:`${n.trimEnd().replace(re,"")}\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(z)&&(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.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=n.slice(t.length+1).trim(),e},{}):"href"===e||"src"===e?Be(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(o,c);"string"==typeof s&&(O.test(s)||M.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:Re(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:Ue(f),order:1,parse:Fe,render:(e,n,t)=>d("br",{key:t.key})},2:{match:Re(h),order:1,parse:Fe,render:(e,n,t)=>d("hr",{key:t.key})},3:{match:Re(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:Re(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:Re(v),order:0,parse:e=>(V.push({footnote:e[2],identifier:e[1]}),{}),render:We},7:{match:Me(b),order:1,parse:e=>({target:`#${r.slugify(e[1])}`,text:e[1]}),render:(e,n,t)=>d("a",{key:t.key,href:Be(e.target)},d("sup",{key:t.key},e.text))},8:{match:Me(w),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:Re(r.enforceAtxHeadings?E:C),order:1,parse:(e,n,t)=>({children:He(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:Re(A),order:0,parse:(e,n,t)=>({children:He(n,e[1],t),level:"="===e[2]?1:2,type:"9"})},11:{match:Ue(O),order:1,parse(e,n,t){const[,r]=e[3].match(ie),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),o=(a=l,Ee.some(e=>e.test(a))?Pe:He);var a;const s=e[1].toLowerCase(),d=-1!==c.indexOf(s),u={attrs:q(e[2]),noInnerParse:d,tag:d?s:e[1]};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:Ue(M),order:1,parse:e=>({attrs:q(e[2]||""),tag:e[1]}),render:(e,t,r)=>d(e.tag,n({},e.attrs,{key:r.key}))},12:{match:Ue(L),order:1,parse:()=>({}),render:We},14:{match:Ie(we),order:1,parse:e=>({alt:e[1],target:Ne(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:Be(e.target)})},15:{match:Me(Se),order:3,parse:(e,n,t)=>({children:De(n,e[1],t),target:Ne(e[2]),title:e[3]}),render:(e,n,t)=>d("a",{key:t.key,href:Be(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(R)(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:$e(d,1),33:$e(d,2),19:{match:Re(k),order:3,parse:Fe,render:()=>"\n"},21:{match:je,order:3,parse:_e,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:We},23:{match:Ie(D),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,n,t)=>d("img",{key:t.key,alt:e.alt,src:Be(X[e.ref].target),title:X[e.ref].title})},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:Be(X[e.ref].target),title:X[e.ref].title},n(e.children,t)):d("span",{key:t.key},n(e.fallbackChildren,t))},25:{match:Re(N),order:1,parse:Le,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:Ue(te),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(J),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(K),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(ne),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:Ie(Y),order:3,parse:_e,render:(e,n,t)=>d("mark",{key:t.key},n(e.children,t))},32:{match:Ie(ee),order:3,parse:_e,render:(e,n,t)=>d("del",{key:t.key},n(e.children,t))}};!0===r.disableParsingRawHTML&&(delete Q[11],delete Q[13]);const le=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(le(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(qe(r,i),l)};export{r as RuleType,qe 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"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["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(?!`)/,k=/^(?:\n *)*\n/,v=/\r\n?/g,x=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,S=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,C=/^\s*?\[(x|\s)\]/,E=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,R=/^(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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,K=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Y=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ne=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,te=/^\n+/,ie=/^([ \t]*)/,ae=/\\([^\\])/g,ce=/ *\n+$/,oe=/(?:^|\n)( *)$/,le="(?:\\d+\\.)",ue="(?:[*+-])";function se(e){return"( *)("+(1===e?le:ue)+") +"}var fe=se(1),de=se(2);function pe(e){return new RegExp("^"+(1===e?fe:de))}var he=pe(1),me=pe(2);function ge(e){return new RegExp("^"+(1===e?fe:de)+"[^\\n]*(?:\\n(?!\\1"+(1===e?le:ue)+" )[^\\n]*)*(\\n|$)","gm")}var ye=ge(1),ke=ge(2);function ve(e){var n=1===e?le:ue;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var xe=ve(1),be=ve(2);function Se(e,n){var r=1===n,t=r?xe:be,i=r?ye:ke,a=r?he:me;return{match:function(e,n,r){var i=oe.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 c=r?+e[2]:void 0,o=e[0].replace(s,"\n").match(i),l=!1;return{items:o.map(function(e,r){var i=a.exec(e)[0].length,c=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(c,"").replace(a,""),s=r===o.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:c}},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 we=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ee=[f,m,g,E,A,$,L,N,ye,xe,ke,be],$e=[].concat(Ee,[/^[^\n]+(?: \n|\n{2,})/,O,M]);function Ae(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 Oe(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Te(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 Le(e,n,r){r.inline=!0;var t=Te(e[1],n,r),i=e[2].replace(Z,"").split("|").map(Oe),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Te(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 Re(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function Ue(e){return function(n){return e.exec(n)}}function je(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!Ee.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Be(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 Ne(e){return e.replace(ae,"$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 De(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 Pe(e,n,r){return r.inline=!1,e(n,r)}var _e=function(e,n,r){return{children:He(n,e[1],r)}};function Fe(){return{}}function We(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ze(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function qe(e,n){var r=Ze(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Ze(n,e+".component",e):e}function Ve(r,t){var i;void 0===t&&(t={}),t.overrides=t.overrides||{},t.slugify=t.slugify||Ae,t.namedCodesToUnicode=t.namedCodesToUnicode?n({},c,t.namedCodesToUnicode):c;var s=t.createElement||e.createElement;function Z(e,r){var i=Ze(t.overrides,e+".props",{});return s.apply(void 0,[qe(e,t.overrides),n({},r,i,{className:Ge(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function q(n){n=n.replace(w,"");var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===F.test(n));for(var i=le(oe(r?n:n.trimEnd().replace(te,"")+"\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,c=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(c,{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 c=function(e){return-1!==e.indexOf("-")&&null===e.match(z)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(r.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}(r.slice(i+1).trim()),l=a[c]||c,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.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Be(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(c,o);"string"==typeof u&&(O.test(u)||M.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={},ae=((i={})[0]={match:Re(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:Ue(p),order:1,parse:Fe,render:function(e,n,r){return Z("br",{key:r.key})}},i[2]={match:Re(h),order:1,parse:Fe,render:function(e,n,r){return Z("hr",{key:r.key})}},i[3]={match:Re(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:Re(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:Re(x),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:We},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:Be(e.target)},Z("sup",{key:r.key},e.text))}},i[8]={match:Me(C),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:Re(t.enforceAtxHeadings?$:E),order:1,parse:function(e,n,r){return{children:He(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:Re(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:Ue(O),order:1,parse:function(e,n,r){var t,i=e[3].match(ie),a=new RegExp("^"+i[1],"gm"),c=e[3].replace(a,""),l=(t=c,$e.some(function(e){return e.test(t)})?Pe:He),u=e[1].toLowerCase(),s=-1!==o.indexOf(u),f={attrs:V(e[2]),noInnerParse:s,tag:s?u:e[1]};return r.inAnchor=r.inAnchor||"a"===u,s?f.text=e[3]:f.children=l(n,c,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:Ue(M),order:1,parse:function(e){return{attrs:V(e[2]||""),tag:e[1]}},render:function(e,r,t){return Z(e.tag,n({},e.attrs,{key:t.key}))}},i[12]={match:Ue(L),order:1,parse:function(){return{}},render:We},i[14]={match:Ie(Ce),order:1,parse:function(e){return{alt:e[1],target:Ne(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:Be(e.target)})}},i[15]={match:Me(we),order:3,parse:function(e,n,r){return{children:De(n,e[1],r),target:Ne(e[2]),title:e[3]}},render:function(e,n,r){return Z("a",{key:r.key,href:Be(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(R)(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]=Se(Z,1),i[33]=Se(Z,2),i[19]={match:Re(k),order:3,parse:Fe,render:function(){return"\n"}},i[21]={match:je,order:3,parse:_e,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:We},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 Z("img",{key:r.key,alt:e.alt,src:Be(Q[e.ref].target),title:Q[e.ref].title})}},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:Be(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:Re(N),order:1,parse:Le,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:Ue(re),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(J),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(K),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(ne),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ie(Y),order:3,parse:_e,render:function(e,n,r){return Z("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ie(ee),order:3,parse:_e,render:function(e,n,r){return Z("del",{key:r.key},n(e.children,r))}},i);!0===t.disableParsingRawHTML&&(delete ae[11],delete ae[13]);var ce,oe=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],c="";t;)for(var o=0;o<n.length;){var l=n[o],u=e[l],s=u.match(t,i,c);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),c=f;break}o++}return a}return n.sort(function(n,r){var t=e[n].order,i=e[r].order;return t!==i?t-i:1}),function(e,n){return r(function(e){return e.replace(v,"\n").replace(S,"").replace(W," ")}(e),n)}}(ae),le=(ce=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)}}(ae,t.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,c=0;c<n.length;c++){r.key=c;var o=e(n[c],r),l="string"==typeof o;l&&a?i[i.length-1]+=o:null!==o&&i.push(o),a=l}return r.key=t,i}return ce(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(oe(e.footnote,{inline:!0})))}))):ue}export default function(n){var r=n.children,t=n.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}(n,i);return e.cloneElement(Ve(r,t),a)}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 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"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["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(?!`)/,k=/^(?:\n *)*\n/,v=/\r\n?/g,x=/^\[\^([^\]]+)](:.*)\n/,b=/^\[\^([^\]]+)]/,S=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,C=/^\s*?\[(x|\s)\]/,E=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,M=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,R=/^(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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,K=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Y=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,ee=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ne=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,te=/^\n+/,ie=/^([ \t]*)/,ae=/\\([^\\])/g,ce=/ *\n+$/,oe=/(?:^|\n)( *)$/,le="(?:\\d+\\.)",ue="(?:[*+-])";function se(e){return"( *)("+(1===e?le:ue)+") +"}var fe=se(1),de=se(2);function pe(e){return new RegExp("^"+(1===e?fe:de))}var he=pe(1),me=pe(2);function ge(e){return new RegExp("^"+(1===e?fe:de)+"[^\\n]*(?:\\n(?!\\1"+(1===e?le:ue)+" )[^\\n]*)*(\\n|$)","gm")}var ye=ge(1),ke=ge(2);function ve(e){var n=1===e?le:ue;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var xe=ve(1),be=ve(2);function Se(e,n){var r=1===n,t=r?xe:be,i=r?ye:ke,a=r?he:me;return{match:function(e,n,r){var i=oe.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 c=r?+e[2]:void 0,o=e[0].replace(s,"\n").match(i),l=!1;return{items:o.map(function(e,r){var i=a.exec(e)[0].length,c=new RegExp("^ {1,"+i+"}","gm"),u=e.replace(c,"").replace(a,""),s=r===o.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:c}},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 we=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ee=[f,m,g,E,A,$,L,N,ye,xe,ke,be],$e=[].concat(Ee,[/^[^\n]+(?: \n|\n{2,})/,O,M]);function Ae(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 Oe(e){return Q.test(e)?"right":V.test(e)?"center":X.test(e)?"left":null}function Te(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 Le(e,n,r){r.inline=!0;var t=Te(e[1],n,r),i=e[2].replace(Z,"").split("|").map(Oe),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Te(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 Re(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function Ue(e){return function(n){return e.exec(n)}}function je(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!Ee.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Be(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 Ne(e){return e.replace(ae,"$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 De(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 Pe(e,n,r){return r.inline=!1,e(n,r)}var _e=function(e,n,r){return{children:He(n,e[1],r)}};function Fe(){return{}}function We(){return null}function Ge(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Ze(e,n,r){for(var t=e,i=n.split(".");i.length&&void 0!==(t=t[i[0]]);)i.shift();return t||r}function qe(e,n){var r=Ze(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Ze(n,e+".component",e):e}function Ve(r,t){var i;void 0===t&&(t={}),t.overrides=t.overrides||{},t.slugify=t.slugify||Ae,t.namedCodesToUnicode=t.namedCodesToUnicode?n({},c,t.namedCodesToUnicode):c;var s=t.createElement||e.createElement;function Z(e,r){var i=Ze(t.overrides,e+".props",{});return s.apply(void 0,[qe(e,t.overrides),n({},r,i,{className:Ge(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function q(n){n=n.replace(w,"");var r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===F.test(n));for(var i=le(oe(r?n:n.trimEnd().replace(te,"")+"\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,c=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(c,{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 c=function(e){return-1!==e.indexOf("-")&&null===e.match(z)&&(e=e.replace(B,function(e,n){return n.toUpperCase()})),e}(r.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}(r.slice(i+1).trim()),l=a[c]||c,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.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Be(n):(n.match(I)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(c,o);"string"==typeof u&&(O.test(u)||M.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={},ae=((i={})[0]={match:Re(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:Ue(p),order:1,parse:Fe,render:function(e,n,r){return Z("br",{key:r.key})}},i[2]={match:Re(h),order:1,parse:Fe,render:function(e,n,r){return Z("hr",{key:r.key})}},i[3]={match:Re(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:Re(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:Re(x),order:0,parse:function(e){return X.push({footnote:e[2],identifier:e[1]}),{}},render:We},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:Be(e.target)},Z("sup",{key:r.key},e.text))}},i[8]={match:Me(C),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:Re(t.enforceAtxHeadings?$:E),order:1,parse:function(e,n,r){return{children:He(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:Re(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:Ue(O),order:1,parse:function(e,n,r){var t,i=e[3].match(ie),a=new RegExp("^"+i[1],"gm"),c=e[3].replace(a,""),l=(t=c,$e.some(function(e){return e.test(t)})?Pe:He),u=e[1].toLowerCase(),s=-1!==o.indexOf(u),f={attrs:V(e[2]),noInnerParse:s,tag:s?u:e[1]};return r.inAnchor=r.inAnchor||"a"===u,s?f.text=e[3]:f.children=l(n,c,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:Ue(M),order:1,parse:function(e){return{attrs:V(e[2]||""),tag:e[1]}},render:function(e,r,t){return Z(e.tag,n({},e.attrs,{key:t.key}))}},i[12]={match:Ue(L),order:1,parse:function(){return{}},render:We},i[14]={match:Ie(Ce),order:1,parse:function(e){return{alt:e[1],target:Ne(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:Be(e.target)})}},i[15]={match:Me(we),order:3,parse:function(e,n,r){return{children:De(n,e[1],r),target:Ne(e[2]),title:e[3]}},render:function(e,n,r){return Z("a",{key:r.key,href:Be(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(R)(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]=Se(Z,1),i[33]=Se(Z,2),i[19]={match:Re(k),order:3,parse:Fe,render:function(){return"\n"}},i[21]={match:je,order:3,parse:_e,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:We},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 Z("img",{key:r.key,alt:e.alt,src:Be(Q[e.ref].target),title:Q[e.ref].title})}},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:Be(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:Re(N),order:1,parse:Le,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:Ue(re),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(J),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(K),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(ne),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Ie(Y),order:3,parse:_e,render:function(e,n,r){return Z("mark",{key:r.key},n(e.children,r))}},i[32]={match:Ie(ee),order:3,parse:_e,render:function(e,n,r){return Z("del",{key:r.key},n(e.children,r))}},i);!0===t.disableParsingRawHTML&&(delete ae[11],delete ae[13]);var ce,oe=function(e){var n=Object.keys(e);function r(t,i){for(var a=[],c="";t;)for(var o=0;o<n.length;){var l=n[o],u=e[l],s=u.match(t,i,c);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),c=f;break}o++}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(v,"\n").replace(S,"").replace(W," ")}(e),n)}}(ae),le=(ce=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)}}(ae,t.renderRule),function e(n,r){if(void 0===r&&(r={}),Array.isArray(n)){for(var t=r.key,i=[],a=!1,c=0;c<n.length;c++){r.key=c;var o=e(n[c],r),l="string"==typeof o;l&&a?i[i.length-1]+=o:null!==o&&i.push(o),a=l}return r.key=t,i}return ce(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(oe(e.footnote,{inline:!0})))}))):ue}export default function(n){var r=n.children,t=n.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}(n,i);return e.cloneElement(Ve(r,t),a)}export{r as RuleType,Ve 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,O=/^\[\^([^\]]+)](:.*)\n/,w=/^\[\^([^\]]+)]/,S=/\f/g,E=/^---[ \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][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,j=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,I=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ee=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,ne=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,re=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,te=/^\\([^0-9A-Za-z\s])/,ie=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ae=/^\n+/,oe=/^([ \t]*)/,ce=/\\([^\\])/g,le=/ *\n+$/,ue=/(?:^|\n)( *)$/,fe="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?fe:se)+") +"}var pe=de(1),he=de(2);function me(e){return new RegExp("^"+(1===e?pe:he))}var ge=me(1),ye=me(2);function ve(e){return new RegExp("^"+(1===e?pe:he)+"[^\\n]*(?:\\n(?!\\1"+(1===e?fe:se)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ve(1),xe=ve(2);function be(e){var n=1===e?fe:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var Oe=be(1),we=be(2);function Se(e,n){var r=1===n,t=r?Oe:we,i=r?ke:xe,a=r?ge:ye;return{match:function(e,n,r){var i=ue.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(le,"\n\n")):(t.inline=!0,d=u.replace(le,""));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 Ee=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Te=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[p,y,v,C,A,$,j,_,ke,Oe,xe,we],$e=[].concat(Ce,[/^[^\n]+(?: \n|\n{2,})/,L,I]);function Ae(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 Le(e){return K.test(e)?"right":J.test(e)?"center":Q.test(e)?"left":null}function Me(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=Me(e[1],n,r),i=e[2].replace(X,"").split("|").map(Le),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Me(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 Re(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 Be(e){return function(n){return e.exec(n)}}function Ne(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!Ce.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Pe(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 _e(e){return e.replace(ce,"$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 He(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 Fe(e,n,r){return r.inline=!1,e(n,r)}var We=function(e,n,r){return{children:De(n,e[1],r)}};function Ge(){return{}}function Ze(){return null}function qe(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Xe(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=Xe(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Xe(n,e+".component",e):e}function Je(e,n){var i;void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||Ae,n.namedCodesToUnicode=n.namedCodesToUnicode?t({},l,n.namedCodesToUnicode):l;var a=n.createElement||r.createElement;function o(e,r){var i=Xe(n.overrides,e+".props",{});return a.apply(void 0,[Ve(e,n.overrides),t({},r,i,{className:qe(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function d(e){e=e.replace(E,"");var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===G.test(e));for(var i=le(ce(t?e:e.trimEnd().replace(ae,"")+"\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(z)&&(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.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Pe(n):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,o);"string"==typeof u&&(L.test(u)||I.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:Ue(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:Be(m),order:1,parse:Ge,render:function(e,n,r){return o("br",{key:r.key})}},i[2]={match:Ue(g),order:1,parse:Ge,render:function(e,n,r){return o("hr",{key:r.key})}},i[3]={match:Ue(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:Ue(y),order:0,parse:function(e){return{attrs:X(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Re(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:Ue(O),order:0,parse:function(e){return V.push({footnote:e[2],identifier:e[1]}),{}},render:Ze},i[7]={match:Ie(w),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:Pe(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:Ue(n.enforceAtxHeadings?$:C),order:1,parse:function(e,r,t){return{children:De(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: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:Be(L),order:1,parse:function(e,n,r){var t,i=e[3].match(oe),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),c=(t=o,$e.some(function(e){return e.test(t)})?Fe:De),l=e[1].toLowerCase(),f=-1!==u.indexOf(l),s={attrs:X(e[2]),noInnerParse:f,tag:f?l:e[1]};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:Be(I),order:1,parse:function(e){return{attrs:X(e[2]||""),tag:e[1]}},render:function(e,n,r){return o(e.tag,t({},e.attrs,{key:r.key}))}},i[12]={match:Be(j),order:1,parse:function(){return{}},render:Ze},i[14]={match:Re(Te),order:1,parse:function(e){return{alt:e[1],target:_e(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:Pe(e.target)})}},i[15]={match:Ie(Ee),order:3,parse:function(e,n,r){return{children:He(n,e[1],r),target:_e(e[2]),title:e[3]}},render:function(e,n,r){return o("a",{key:r.key,href:Pe(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:Ue(x),order:3,parse:Ge,render:function(){return"\n"}},i[21]={match:Ne,order:3,parse:We,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:Ze},i[23]={match:Re(H),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return o("img",{key:r.key,alt:e.alt,src:Pe(J[e.ref].target),title:J[e.ref].title})}},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:Pe(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:Ue(_),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:Be(ie),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:Re(Y),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:Re(ee),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:Re(te),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Re(ne),order:3,parse:We,render:function(e,n,r){return o("mark",{key:r.key},n(e.children,r))}},i[32]={match:Re(re),order:3,parse:We,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,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],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:1}),function(e,n){return r(function(e){return e.replace(b,"\n").replace(S,"").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(ce(e.footnote,{inline:!0})))}))):ue}var Qe=function(e){var n=e.children,t=e.options,i=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(Je(n,t),i)};return Object.assign(Qe,{compiler:Je}),Qe});
!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,O=/^\[\^([^\]]+)](:.*)\n/,w=/^\[\^([^\]]+)]/,S=/\f/g,E=/^---[ \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][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,M=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,j=/^<!--[\s\S]*?(?:-->)/,z=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,I=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,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=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ee=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,ne=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,re=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,te=/^\\([^0-9A-Za-z\s])/,ie=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ae=/^\n+/,oe=/^([ \t]*)/,ce=/\\([^\\])/g,le=/ *\n+$/,ue=/(?:^|\n)( *)$/,fe="(?:\\d+\\.)",se="(?:[*+-])";function de(e){return"( *)("+(1===e?fe:se)+") +"}var pe=de(1),he=de(2);function me(e){return new RegExp("^"+(1===e?pe:he))}var ge=me(1),ye=me(2);function ve(e){return new RegExp("^"+(1===e?pe:he)+"[^\\n]*(?:\\n(?!\\1"+(1===e?fe:se)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ve(1),xe=ve(2);function be(e){var n=1===e?fe:se;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}var Oe=be(1),we=be(2);function Se(e,n){var r=1===n,t=r?Oe:we,i=r?ke:xe,a=r?ge:ye;return{match:function(e,n,r){var i=ue.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(le,"\n\n")):(t.inline=!0,d=u.replace(le,""));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 Ee=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Te=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[p,y,v,C,A,$,j,_,ke,Oe,xe,we],$e=[].concat(Ce,[/^[^\n]+(?: \n|\n{2,})/,L,I]);function Ae(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 Le(e){return K.test(e)?"right":J.test(e)?"center":Q.test(e)?"left":null}function Me(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=Me(e[1],n,r),i=e[2].replace(X,"").split("|").map(Le),a=function(e,n,r){return e.trim().split("\n").map(function(e){return Me(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 Re(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 Be(e){return function(n){return e.exec(n)}}function Ne(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!Ce.some(function(n){return n.test(e)})&&(t+=e+"\n",e.trim())});var i=t.trimEnd();return""==i?null:[t,i]}function Pe(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 _e(e){return e.replace(ce,"$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 He(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 Fe(e,n,r){return r.inline=!1,e(n,r)}var We=function(e,n,r){return{children:De(n,e[1],r)}};function Ge(){return{}}function Ze(){return null}function qe(){return[].slice.call(arguments).filter(Boolean).join(" ")}function Xe(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=Xe(n,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Xe(n,e+".component",e):e}function Je(e,n){var i;void 0===n&&(n={}),n.overrides=n.overrides||{},n.slugify=n.slugify||Ae,n.namedCodesToUnicode=n.namedCodesToUnicode?t({},l,n.namedCodesToUnicode):l;var a=n.createElement||r.createElement;function o(e,r){var i=Xe(n.overrides,e+".props",{});return a.apply(void 0,[Ve(e,n.overrides),t({},r,i,{className:qe(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function d(e){e=e.replace(E,"");var t=!1;n.forceInline?t=!0:n.forceBlock||(t=!1===G.test(e));for(var i=le(ce(t?e:e.trimEnd().replace(ae,"")+"\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(z)&&(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.replace(/(-[a-z])/g,function(e){return e[1].toUpperCase()})]=n.slice(r.length+1).trim(),e},{}):"href"===e||"src"===e?Pe(n):(n.match(R)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,o);"string"==typeof u&&(L.test(u)||I.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:Ue(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:Be(m),order:1,parse:Ge,render:function(e,n,r){return o("br",{key:r.key})}},i[2]={match:Ue(g),order:1,parse:Ge,render:function(e,n,r){return o("hr",{key:r.key})}},i[3]={match:Ue(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:Ue(y),order:0,parse:function(e){return{attrs:X(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},i[5]={match:Re(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:Ue(O),order:0,parse:function(e){return V.push({footnote:e[2],identifier:e[1]}),{}},render:Ze},i[7]={match:Ie(w),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:Pe(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:Ue(n.enforceAtxHeadings?$:C),order:1,parse:function(e,r,t){return{children:De(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: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:Be(L),order:1,parse:function(e,n,r){var t,i=e[3].match(oe),a=new RegExp("^"+i[1],"gm"),o=e[3].replace(a,""),c=(t=o,$e.some(function(e){return e.test(t)})?Fe:De),l=e[1].toLowerCase(),f=-1!==u.indexOf(l),s={attrs:X(e[2]),noInnerParse:f,tag:f?l:e[1]};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:Be(I),order:1,parse:function(e){return{attrs:X(e[2]||""),tag:e[1]}},render:function(e,n,r){return o(e.tag,t({},e.attrs,{key:r.key}))}},i[12]={match:Be(j),order:1,parse:function(){return{}},render:Ze},i[14]={match:Re(Te),order:1,parse:function(e){return{alt:e[1],target:_e(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:Pe(e.target)})}},i[15]={match:Ie(Ee),order:3,parse:function(e,n,r){return{children:He(n,e[1],r),target:_e(e[2]),title:e[3]}},render:function(e,n,r){return o("a",{key:r.key,href:Pe(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:Ue(x),order:3,parse:Ge,render:function(){return"\n"}},i[21]={match:Ne,order:3,parse:We,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:Ze},i[23]={match:Re(H),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,n,r){return o("img",{key:r.key,alt:e.alt,src:Pe(J[e.ref].target),title:J[e.ref].title})}},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:Pe(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:Ue(_),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:Be(ie),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:Re(Y),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:Re(ee),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:Re(te),order:1,parse:function(e){return{text:e[1],type:"27"}}},i[31]={match:Re(ne),order:3,parse:We,render:function(e,n,r){return o("mark",{key:r.key},n(e.children,r))}},i[32]={match:Re(re),order:3,parse:We,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,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],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(S,"").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(ce(e.footnote,{inline:!0})))}))):ue}function Qe(e){var n=e.children,t=e.options,i=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(Je(n,t),i)}return Object.assign(Qe,{compiler:Je}),Qe});
//# sourceMappingURL=index.umd.js.map

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

"license": "MIT",
"version": "7.4.2",
"version": "7.4.3",
"engines": {

@@ -90,3 +90,3 @@ "node": ">= 10"

"release": "microbundle site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=production --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
"dev": "microbundle watch site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=development --jsx React.createElement --external react,react-dom,styled-components --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
"dev": "microbundle watch site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=development --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
"test": "jest --verbose",

@@ -93,0 +93,0 @@ "size": "size-limit",

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