Files
aurorax/wp-includes/js/dist/blocks.min.js
T

196 lines
181 KiB
JavaScript
Raw Normal View History

2026-08-29 21:22:26 -05:00
/*! This file is auto-generated */
var wp;(wp||={}).blocks=(()=>{var zu=Object.create;var ir=Object.defineProperty;var qu=Object.getOwnPropertyDescriptor;var Iu=Object.getOwnPropertyNames;var Vu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ie=(e,t)=>{for(var r in t)ir(e,r,{get:t[r],enumerable:!0})},hn=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Iu(t))!xu.call(e,o)&&o!==r&&ir(e,o,{get:()=>t[o],enumerable:!(a=qu(t,o))||a.enumerable});return e};var B=(e,t,r)=>(r=e!=null?zu(Vu(e)):{},hn(t||!e||!e.__esModule?ir(r,"default",{value:e,enumerable:!0}):r,e)),Hu=e=>hn(ir({},"__esModule",{value:!0}),e);var Be=z((Dd,gn)=>{gn.exports=window.wp.data});var sr=z((Gd,vn)=>{vn.exports=window.wp.i18n});var De=z((Xd,jn)=>{jn.exports=window.wp.element});var Z=z((Zd,zn)=>{zn.exports=window.wp.dom});var xe=z((Qd,qn)=>{qn.exports=window.wp.richText});var J=z((Jd,In)=>{In.exports=window.wp.deprecated});var pt=z((rc,Hn)=>{Hn.exports=window.wp.warning});var Fn=z((nc,Un)=>{Un.exports=window.wp.privateApis});var Ba=z((_c,yr)=>{var Ea={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"
`),l=l.replace(/\r/g,`
`),l=l.replace(/\u00A0/g," "),i.smartIndentationFix&&(l=v(l)),l=`
`+l+`
`,l=r.subParser("detab")(l,i,y),l=l.replace(/^[ \t]+$/mg,""),r.helper.forEach(u,function(C){l=r.subParser("runExtension")(C,l,i,y)}),l=r.subParser("metadata")(l,i,y),l=r.subParser("hashPreCodeTags")(l,i,y),l=r.subParser("githubCodeBlocks")(l,i,y),l=r.subParser("hashHTMLBlocks")(l,i,y),l=r.subParser("hashCodeTags")(l,i,y),l=r.subParser("stripLinkDefinitions")(l,i,y),l=r.subParser("blockGamut")(l,i,y),l=r.subParser("unhashHTMLSpans")(l,i,y),l=r.subParser("unescapeSpecialChars")(l,i,y),l=l.replace(/¨D/g,"$$"),l=l.replace(/¨T/g,"\xA8"),l=r.subParser("completeHTMLDocument")(l,i,y),r.helper.forEach(d,function(C){l=r.subParser("runExtension")(C,l,i,y)}),f=y.metadata,l},this.makeMarkdown=this.makeMd=function(l,y){if(l=l.replace(/\r\n/g,`
`),l=l.replace(/\r/g,`
`),l=l.replace(/>[ \t]+</,">\xA8NBSP;<"),!y)if(window&&window.document)y=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var C=y.createElement("div");C.innerHTML=l;var A={preList:ne(C)};K(C);for(var O=C.childNodes,S="",F=0;F<O.length;F++)S+=r.subParser("makeMarkdown.node")(O[F],A);function K(x){for(var $=0;$<x.childNodes.length;++$){var Y=x.childNodes[$];Y.nodeType===3?/\S/.test(Y.nodeValue)?(Y.nodeValue=Y.nodeValue.split(`
`).join(" "),Y.nodeValue=Y.nodeValue.replace(/(\s)+/g,"$1")):(x.removeChild(Y),--$):Y.nodeType===1&&K(Y)}}function ne(x){for(var $=x.querySelectorAll("pre"),Y=[],X=0;X<$.length;++X)if($[X].childElementCount===1&&$[X].firstChild.tagName.toLowerCase()==="code"){var tt=$[X].firstChild.innerHTML.trim(),nt=$[X].firstChild.getAttribute("data-language")||"";if(nt==="")for(var pn=$[X].firstChild.className.split(" "),at=0;at<pn.length;++at){var mn=pn[at].match(/^language-(.+)$/);if(mn!==null){nt=mn[1];break}}tt=r.helper.unescapeHTMLEntities(tt),Y.push(tt),$[X].outerHTML='<precode language="'+nt+'" precodenum="'+X.toString()+'"></precode>'}else Y.push($[X].innerHTML),$[X].innerHTML="",$[X].setAttribute("prenum",X.toString());return Y}return S},this.setOption=function(l,y){i[l]=y},this.getOption=function(l){return i[l]},this.getOptions=function(){return i},this.addExtension=function(l,y){y=y||null,T(l,y)},this.useExtension=function(l){T(l)},this.setFlavor=function(l){if(!h.hasOwnProperty(l))throw Error(l+" flavor was not found");var y=h[l];m=l;for(var C in y)y.hasOwnProperty(C)&&(i[C]=y[C])},this.getFlavor=function(){return m},this.removeExtension=function(l){r.helper.isArray(l)||(l=[l]);for(var y=0;y<l.length;++y){for(var C=l[y],A=0;A<u.length;++A)u[A]===C&&u[A].splice(A,1);for(var O=0;O<d.length;++A)d[O]===C&&d[O].splice(A,1)}},this.getAllExtensions=function(){return{language:u,output:d}},this.getMetadata=function(l){return l?f.raw:f.parsed},this.getMetadataFormat=function(){return f.format},this._setMetadataPair=function(l,y){f.parsed[l]=y},this._setMetadataFormat=function(l){f.format=l},this._setMetadataRaw=function(l){f.raw=l}},r.subParser("anchors",function(n,i,u){"use strict";n=u.converter._dispatch("anchors.before",n,i,u);var d=function(p,m,f,g,T,k,w){if(r.helper.isUndefined(w)&&(w=""),f=f.toLowerCase(),p.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)g="";else if(!g)if(f||(f=m.toLowerCase().replace(/ ?\n/g," ")),g="#"+f,!r.helper.isUndefined(u.gUrls[f]))g=u.gUrls[f],r.helper.isUndefined(u.gTitles[f])||(w=u.gTitles[f]);else return p;g=g.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var v='<a href="'+g+'"';return w!==""&&w!==null&&(w=w.replace(/"/g,"&quot;"),w=w.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),v+=' title="'+w+'"'),i.openLinksInNewWindow&&!/^#/.test(g)&&(v+=' rel="noopener noreferrer" target="\xA8E95Eblank"'),v+=">"+m+"</a>",v};return n=n.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,d),n=n.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,d),n=n.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,d),n=n.replace(/\[([^\[\]]+)]()()()()()/g,d),i.ghMentions&&(n=n.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(p,m,f,g,T){if(f==="\\")return m+g;if(!r.helper.isString(i.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var k=i.ghMentionsLink.replace(/\{u}/g,T),w="";return i.openLinksInNewWindow&&(w=' rel="noopener noreferrer" target="\xA8E95Eblank"'),m+'<a href="'+k+'"'+w+">"+g+"</a>"})),n=u.converter._dispatch("anchors.after",n,i,u),n});var L=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,N=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,j=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,I=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,G=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,Ce=function(n){"use strict";return function(i,u,d,p,m,f,g){d=d.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var T=d,k="",w="",v=u||"",l=g||"";return/^www\./i.test(d)&&(d=d.replace(/^www\./i,"http://www.")),n.excludeTrailingPunctuationFromURLs&&f&&(k=f),n.openLinksInNewWindow&&(w=' rel="noopener noreferrer" target="\xA8E95Eblank"'),v+'<a href="'+d+'"'+w+">"+T+"</a>"+k+l}},ur
`;var d=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return i.splitAdjacentBlockquotes&&(d=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),n=n.replace(d,function(p){return p=p.replace(/^[ \t]*>[ \t]?/gm,""),p=p.replace(/¨0/g,""),p=p.replace(/^[ \t]+$/gm,""),p=r.subParser("githubCodeBlocks")(p,i,u),p=r.subParser("blockGamut")(p,i,u),p=p.replace(/(^|\n)/g,"$1 "),p=p.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(m,f){var g=f;return g=g.replace(/^ /mg,"\xA80"),g=g.replace(/¨0/g,""),g}),r.subParser("hashBlock")(`<blockquote>
`+p+`
</blockquote>`,i,u)}),n=u.converter._dispatch("blockQuotes.after",n,i,u),n}),r.subParser("codeBlocks",function(n,i,u){"use strict";n=u.converter._dispatch("codeBlocks.before",n,i,u),n+="\xA80";var d=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return n=n.replace(d,function(p,m,f){var g=m,T=f,k=`
`;return g=r.subParser("outdent")(g,i,u),g=r.subParser("encodeCode")(g,i,u),g=r.subParser("detab")(g,i,u),g=g.replace(/^\n+/g,""),g=g.replace(/\n+$/g,""),i.omitExtraWLInCodeBlocks&&(k=""),g="<pre><code>"+g+k+"</code></pre>",r.subParser("hashBlock")(g,i,u)+T}),n=n.replace(/¨0/,""),n=u.converter._dispatch("codeBlocks.after",n,i,u),n}),r.subParser("codeSpans",function(n,i,u){"use strict";return n=u.converter._dispatch("codeSpans.before",n,i,u),typeof n>"u"&&(n=""),n=n.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(d,p,m,f){var g=f;return g=g.replace(/^([ \t]*)/g,""),g=g.replace(/[ \t]*$/g,""),g=r.subParser("encodeCode")(g,i,u),g=p+"<code>"+g+"</code>",g=r.subParser("hashHTMLSpans")(g,i,u),g}),n=u.converter._dispatch("codeSpans.after",n,i,u),n}),r.subParser("completeHTMLDocument",function(n,i,u){"use strict";if(!i.completeHTMLDocument)return n;n=u.converter._dispatch("completeHTMLDocument.before",n,i,u);var d="html",p=`<!DOCTYPE HTML>
`,m="",f=`<meta charset="utf-8">
`,g="",T="";typeof u.metadata.parsed.doctype<"u"&&(p="<!DOCTYPE "+u.metadata.parsed.doctype+`>
`,d=u.metadata.parsed.doctype.toString().toLowerCase(),(d==="html"||d==="html5")&&(f='<meta charset="utf-8">'));for(var k in u.metadata.parsed)if(u.metadata.parsed.hasOwnProperty(k))switch(k.toLowerCase()){case"doctype":break;case"title":m="<title>"+u.metadata.parsed.title+`</title>
`;break;case"charset":d==="html"||d==="html5"?f='<meta charset="'+u.metadata.parsed.charset+`">
`:f='<meta name="charset" content="'+u.metadata.parsed.charset+`">
`;break;case"language":case"lang":g=' lang="'+u.metadata.parsed[k]+'"',T+='<meta name="'+k+'" content="'+u.metadata.parsed[k]+`">
`;break;default:T+='<meta name="'+k+'" content="'+u.metadata.parsed[k]+`">
`}return n=p+"<html"+g+`>
<head>
`+m+f+T+`</head>
<body>
`+n.trim()+`
</body>
</html>`,n=u.converter._dispatch("completeHTMLDocument.after",n,i,u),n}),r.subParser("detab",function(n,i,u){"use strict";return n=u.converter._dispatch("detab.before",n,i,u),n=n.replace(/\t(?=\t)/g," "),n=n.replace(/\t/g,"\xA8A\xA8B"),n=n.replace(/¨B(.+?)¨A/g,function(d,p){for(var m=p,f=4-m.length%4,g=0;g<f;g++)m+=" ";return m}),n=n.replace(/¨A/g," "),n=n.replace(/¨B/g,""),n=u.converter._dispatch("detab.after",n,i,u),n}),r.subParser("ellipsis",function(n,i,u){"use strict";return n=u.converter._dispatch("ellipsis.before",n,i,u),n=n.replace(/\.\.\./g,"\u2026"),n=u.converter._dispatch("ellipsis.after",n,i,u),n}),r.subParser("emoji",function(n,i,u){"use strict";if(!i.emoji)return n;n=u.converter._dispatch("emoji.before",n,i,u);var d=/:([\S]+?):/g;return n=n.replace(d,function(p,m){return r.helper.emojis.hasOwnProperty(m)?r.helper.emojis[m]:p}),n=u.converter._dispatch("emoji.after",n,i,u),n}),r.subParser("encodeAmpsAndAngles",function(n,i,u){"use strict";return n=u.converter._dispatch("encodeAmpsAndAngles.before",n,i,u),n=n.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),n=n.replace(/<(?![a-z\/?$!])/gi,"&lt;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=u.converter._dispatch("encodeAmpsAndAngles.after",n,i,u),n}),r.subParser("encodeBackslashEscapes",function(n,i,u){"use strict";return n=u.converter._dispatch("encodeBackslashEscapes.before",n,i,u),n=n.replace(/\\(\\)/g,r.helper.escapeCharactersCallback),n=n.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("encodeBackslashEscapes.after",n,i,u),n}),r.subParser("encodeCode",function(n,i,u){"use strict";return n=u.converter._dispatch("encodeCode.before",n,i,u),n=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("encodeCode.after",n,i,u),n}),r.subParser("escapeSpecialCharsWithinTagAttributes",function(n,i,u){"use strict";n=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",n,i,u);var d=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,p=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return n=n.replace(d,function(m){return m.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),n=n.replace(p,function(m){return m.replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),n=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",n,i,u),n}),r.subParser("githubCodeBlocks",function(n,i,u){"use strict";return i.ghCodeBlocks?(n=u.converter._dispatch("githubCodeBlocks.before",n,i,u),n+="\xA80",n=n.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(d,p,m,f){var g=i.omitExtraWLInCodeBlocks?"":`
`;return f=r.subParser("encodeCode")(f,i,u),f=r.subParser("detab")(f,i,u),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,""),f="<pre><code"+(m?' class="'+m+" language-"+m+'"':"")+">"+f+g+"</code></pre>",f=r.subParser("hashBlock")(f,i,u),`
\xA8G`+(u.ghCodeBlocks.push({text:d,codeblock:f})-1)+`G
`}),n=n.replace(/¨0/,""),u.converter._dispatch("githubCodeBlocks.after",n,i,u)):n}),r.subParser("hashBlock",function(n,i,u){"use strict";return n=u.converter._dispatch("hashBlock.before",n,i,u),n=n.replace(/(^\n+|\n+$)/g,""),n=`
\xA8K`+(u.gHtmlBlocks.push(n)-1)+`K
`,n=u.converter._dispatch("hashBlock.after",n,i,u),n}),r.subParser("hashCodeTags",function(n,i,u){"use strict";n=u.converter._dispatch("hashCodeTags.before",n,i,u);var d=function(p,m,f,g){var T=f+r.subParser("encodeCode")(m,i,u)+g;return"\xA8C"+(u.gHtmlSpans.push(T)-1)+"C"};return n=r.helper.replaceRecursiveRegExp(n,d,"<code\\b[^>]*>","</code>","gim"),n=u.converter._dispatch("hashCodeTags.after",n,i,u),n}),r.subParser("hashElement",function(n,i,u){"use strict";return function(d,p){var m=p;return m=m.replace(/\n\n/g,`
`),m=m.replace(/^\n/,""),m=m.replace(/\n+$/g,""),m=`
\xA8K`+(u.gHtmlBlocks.push(m)-1)+`K
`,m}}),r.subParser("hashHTMLBlocks",function(n,i,u){"use strict";n=u.converter._dispatch("hashHTMLBlocks.before",n,i,u);var d=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],p=function(l,y,C,A){var O=l;return C.search(/\bmarkdown\b/)!==-1&&(O=C+u.converter.makeHtml(y)+A),`
\xA8K`+(u.gHtmlBlocks.push(O)-1)+`K
`};i.backslashEscapesHTMLTags&&(n=n.replace(/\\<(\/?[^>]+?)>/g,function(l,y){return"&lt;"+y+"&gt;"}));for(var m=0;m<d.length;++m)for(var f,g=new RegExp("^ {0,3}(<"+d[m]+"\\b[^>]*>)","im"),T="<"+d[m]+"\\b[^>]*>",k="</"+d[m]+">";(f=r.helper.regexIndexOf(n,g))!==-1;){var w=r.helper.splitAtIndex(n,f),v=r.helper.replaceRecursiveRegExp(w[1],p,T,k,"im");if(v===w[1])break;n=w[0].concat(v)}return n=n.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(n,i,u)),n=r.helper.replaceRecursiveRegExp(n,function(l){return`
\xA8K`+(u.gHtmlBlocks.push(l)-1)+`K
`},"^ {0,3}<!--","-->","gm"),n=n.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(n,i,u)),n=u.converter._dispatch("hashHTMLBlocks.after",n,i,u),n}),r.subParser("hashHTMLSpans",function(n,i,u){"use strict";n=u.converter._dispatch("hashHTMLSpans.before",n,i,u);function d(p){return"\xA8C"+(u.gHtmlSpans.push(p)-1)+"C"}return n=n.replace(/<[^>]+?\/>/gi,function(p){return d(p)}),n=n.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(p){return d(p)}),n=n.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(p){return d(p)}),n=n.replace(/<[^>]+?>/gi,function(p){return d(p)}),n=u.converter._dispatch("hashHTMLSpans.after",n,i,u),n}),r.subParser("unhashHTMLSpans",function(n,i,u){"use strict";n=u.converter._dispatch("unhashHTMLSpans.before",n,i,u);for(var d=0;d<u.gHtmlSpans.length;++d){for(var p=u.gHtmlSpans[d],m=0;/¨C(\d+)C/.test(p);){var f=RegExp.$1;if(p=p.replace("\xA8C"+f+"C",u.gHtmlSpans[f]),m===10){console.error("maximum nesting of 10 spans reached!!!");break}++m}n=n.replace("\xA8C"+d+"C",p)}return n=u.converter._dispatch("unhashHTMLSpans.after",n,i,u),n}),r.subParser("hashPreCodeTags",function(n,i,u){"use strict";n=u.converter._dispatch("hashPreCodeTags.before",n,i,u);var d=function(p,m,f,g){var T=f+r.subParser("encodeCode")(m,i,u)+g;return`
\xA8G`+(u.ghCodeBlocks.push({text:p,codeblock:T})-1)+`G
`};return n=r.helper.replaceRecursiveRegExp(n,d,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),n=u.converter._dispatch("hashPreCodeTags.after",n,i,u),n}),r.subParser("headers",function(n,i,u){"use strict";n=u.converter._dispatch("headers.before",n,i,u);var d=isNaN(parseInt(i.headerLevelStart))?1:parseInt(i.headerLevelStart),p=i.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,m=i.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;n=n.replace(p,function(T,k){var w=r.subParser("spanGamut")(k,i,u),v=i.noHeaderId?"":' id="'+g(k)+'"',l=d,y="<h"+l+v+">"+w+"</h"+l+">";return r.subParser("hashBlock")(y,i,u)}),n=n.replace(m,function(T,k){var w=r.subParser("spanGamut")(k,i,u),v=i.noHeaderId?"":' id="'+g(k)+'"',l=d+1,y="<h"+l+v+">"+w+"</h"+l+">";return r.subParser("hashBlock")(y,i,u)});var f=i.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;n=n.replace(f,function(T,k,w){var v=w;i.customizedHeaderId&&(v=w.replace(/\s?\{([^{]+?)}\s*$/,""));var l=r.subParser("spanGamut")(v,i,u),y=i.noHeaderId?"":' id="'+g(w)+'"',C=d-1+k.length,A="<h"+C+y+">"+l+"</h"+C+">";return r.subParser("hashBlock")(A,i,u)});function g(T){var k,w;if(i.customizedHeaderId){var v=T.match(/\{([^{]+?)}\s*$/);v&&v[1]&&(T=v[1])}return k=T,r.helper.isString(i.prefixHeaderId)?w=i.prefixHeaderId:i.prefixHeaderId===!0?w="section-":w="",i.rawPrefixHeaderId||(k=w+k),i.ghCompatibleHeaderId?k=k.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():i.rawHeaderId?k=k.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"\xA8").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():k=k.replace(/[^\w]/g,"").toLowerCase(),i.rawPrefixHeaderId&&(k=w+k),u.hashLinkCounts[k]?k=k+"-"+u.hashLinkCounts[k]++:u.hashLinkCounts[k]=1,k}return n=u.converter._dispatch("headers.after",n,i,u),n}),r.subParser("horizontalRule",function(n,i,u){"use strict";n=u.converter._dispatch("horizontalRule.before",n,i,u);var d=r.subParser("hashBlock")("<hr />",i,u);return n=n.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,d),n=n.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,d),n=n.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,d),n=u.converter._dispatch("horizontalRule.after",n,i,u),n}),r.subParser("images",function(n,i,u){"use strict";n=u.converter._dispatch("images.before",n,i,u);var d=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,p=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,m=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,f=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,g=/!\[([^\[\]]+)]()()()()()/g;function T(w,v,l,y,C,A,O,S){return y=y.replace(/\s/g,""),k(w,v,l,y,C,A,O,S)}function k(w,v,l,y,C,A,O,S){var F=u.gUrls,K=u.gTitles,ne=u.gDimensions;if(l=l.toLowerCase(),S||(S=""),w.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)y="";else if(y===""||y===null)if((l===""||l===null)&&(l=v.toLowerCase().replace(/ ?\n/g," ")),y="#"+l,!r.helper.isUndefined(F[l]))y=F[l],r.helper.isUndefined(K[l])||(S=K[l]),r.helper.isUndefined(ne[l])||(C=ne[l].width,A=ne[l].height);else return w;v=v.replace(/"/g,"&quot;").replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),y=y.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var x='<img src="'+y+'" alt="'+v+'"';return S&&r.helper.isString(S)&&(S=S.replace(/"/g,"&quot;").replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),x+=' title="'+S+'"'),C&&A&&(C=C==="*"?"auto":C,A=A==="*"?"auto":A,x+=' width="'+C+'"',x+=' height="'+A+'"'),x+=" />",x}return n=n.replace(f,k),n=n.replace(m,T),n=n.replace(p,k),n=n.replace(d,k),n=n.replace(g,k),n=u.converter._dispatch("images.after",n,i,u),n}),r.subParser("italic
`),f+="\xA80";var T=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,k=/\n[ \t]*\n(?!¨0)/.test(f);return i.disableForced4SpacesIndentedSublists&&(T=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),f=f.replace(T,function(w,v,l,y,C,A,O){O=O&&O.trim()!=="";var S=r.subParser("outdent")(C,i,u),F="";return A&&i.tasklists&&(F=' class="task-list-item" style="list-style-type: none;"',S=S.replace(/^[ \t]*\[(x|X| )?]/m,function(){var K='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return O&&(K+=" checked"),K+=">",K})),S=S.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(K){return"\xA8A"+K}),v||S.search(/\n{2,}/)>-1?(S=r.subParser("githubCodeBlocks")(S,i,u),S=r.subParser("blockGamut")(S,i,u)):(S=r.subParser("lists")(S,i,u),S=S.replace(/\n$/,""),S=r.subParser("hashHTMLBlocks")(S,i,u),S=S.replace(/\n\n+/g,`
`),k?S=r.subParser("paragraphs")(S,i,u):S=r.subParser("spanGamut")(S,i,u)),S=S.replace("\xA8A",""),S="<li"+F+">"+S+`</li>
`,S}),f=f.replace(/¨0/g,""),u.gListLevel--,g&&(f=f.replace(/\s+$/,"")),f}function p(f,g){if(g==="ol"){var T=f.match(/^ *(\d+)\./);if(T&&T[1]!=="1")return' start="'+T[1]+'"'}return""}function m(f,g,T){var k=i.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,w=i.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,v=g==="ul"?k:w,l="";if(f.search(v)!==-1)(function C(A){var O=A.search(v),S=p(f,g);O!==-1?(l+=`
<`+g+S+`>
`+d(A.slice(0,O),!!T)+"</"+g+`>
`,g=g==="ul"?"ol":"ul",v=g==="ul"?k:w,C(A.slice(O))):l+=`
<`+g+S+`>
`+d(A,!!T)+"</"+g+`>
`})(f);else{var y=p(f,g);l=`
<`+g+y+`>
`+d(f,!!T)+"</"+g+`>
`}return l}return n=u.converter._dispatch("lists.before",n,i,u),n+="\xA80",u.gListLevel?n=n.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(f,g,T){var k=T.search(/[*+-]/g)>-1?"ul":"ol";return m(g,k,!0)}):n=n.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(f,g,T,k){var w=k.search(/[*+-]/g)>-1?"ul":"ol";return m(T,w,!1)}),n=n.replace(/¨0/,""),n=u.converter._dispatch("lists.after",n,i,u),n}),r.subParser("metadata",function(n,i,u){"use strict";if(!i.metadata)return n;n=u.converter._dispatch("metadata.before",n,i,u);function d(p){u.metadata.raw=p,p=p.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),p=p.replace(/\n {4}/g," "),p.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(m,f,g){return u.metadata.parsed[f]=g,""})}return n=n.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(p,m,f){return d(f),"\xA8M"}),n=n.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(p,m,f){return m&&(u.metadata.format=m),d(f),"\xA8M"}),n=n.replace(/¨M/g,""),n=u.converter._dispatch("metadata.after",n,i,u),n}),r.subParser("outdent",function(n,i,u){"use strict";return n=u.converter._dispatch("outdent.before",n,i,u),n=n.replace(/^(\t|[ ]{1,4})/gm,"\xA80"),n=n.replace(/¨0/g,""),n=u.converter._dispatch("outdent.after",n,i,u),n}),r.subParser("paragraphs",function(n,i,u){"use strict";n=u.converter._dispatch("paragraphs.before",n,i,u),n=n.replace(/^\n+/g,""),n=n.replace(/\n+$/g,"");for(var d=n.split(/\n{2,}/g),p=[],m=d.length,f=0;f<m;f++){var g=d[f];g.search(/¨(K|G)(\d+)\1/g)>=0?p.push(g):g.search(/\S/)>=0&&(g=r.subParser("spanGamut")(g,i,u),g=g.replace(/^([ \t]*)/g,"<p>"),g+="</p>",p.push(g))}for(m=p.length,f=0;f<m;f++){for(var T="",k=p[f],w=!1;/¨(K|G)(\d+)\1/.test(k);){var v=RegExp.$1,l=RegExp.$2;v==="K"?T=u.gHtmlBlocks[l]:w?T=r.subParser("encodeCode")(u.ghCodeBlocks[l].text,i,u):T=u.ghCodeBlocks[l].codeblock,T=T.replace(/\$/g,"$$$$"),k=k.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,T),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(k)&&(w=!0)}p[f]=k}return n=p.join(`
`),n=n.replace(/^\n+/g,""),n=n.replace(/\n+$/g,""),u.converter._dispatch("paragraphs.after",n,i,u)}),r.subParser("runExtension",function(n,i,u,d){"use strict";if(n.filter)i=n.filter(i,d.converter,u);else if(n.regex){var p=n.regex;p instanceof RegExp||(p=new RegExp(p,"g")),i=i.replace(p,n.replace)}return i}),r.subParser("spanGamut",function(n,i,u){"use strict";return n=u.converter._dispatch("spanGamut.before",n,i,u),n=r.subParser("codeSpans")(n,i,u),n=r.subParser("escapeSpecialCharsWithinTagAttributes")(n,i,u),n=r.subParser("encodeBackslashEscapes")(n,i,u),n=r.subParser("images")(n,i,u),n=r.subParser("anchors")(n,i,u),n=r.subParser("autoLinks")(n,i,u),n=r.subParser("simplifiedAutoLinks")(n,i,u),n=r.subParser("emoji")(n,i,u),n=r.subParser("underline")(n,i,u),n=r.subParser("italicsAndBold")(n,i,u),n=r.subParser("strikethrough")(n,i,u),n=r.subParser("ellipsis")(n,i,u),n=r.subParser("hashHTMLSpans")(n,i,u),n=r.subParser("encodeAmpsAndAngles")(n,i,u),i.simpleLineBreaks?/\n\n¨K/.test(n)||(n=n.replace(/\n+/g,`<br />
`)):n=n.replace(/ +\n/g,`<br />
`),n=u.converter._dispatch("spanGamut.after",n,i,u),n}),r.subParser("strikethrough",function(n,i,u){"use strict";function d(p){return i.simplifiedAutoLink&&(p=r.subParser("simplifiedAutoLinks")(p,i,u)),"<del>"+p+"</del>"}return i.strikethrough&&(n=u.converter._dispatch("strikethrough.before",n,i,u),n=n.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(p,m){return d(m)}),n=u.converter._dispatch("strikethrough.after",n,i,u)),n}),r.subParser("stripLinkDefinitions",function(n,i,u){"use strict";var d=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,p=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;n+="\xA80";var m=function(f,g,T,k,w,v,l){return g=g.toLowerCase(),T.match(/^data:.+?\/.+?;base64,/)?u.gUrls[g]=T.replace(/\s/g,""):u.gUrls[g]=r.subParser("encodeAmpsAndAngles")(T,i,u),v?v+l:(l&&(u.gTitles[g]=l.replace(/"|'/g,"&quot;")),i.parseImgDimensions&&k&&w&&(u.gDimensions[g]={width:k,height:w}),"")};return n=n.replace(p,m),n=n.replace(d,m),n=n.replace(/¨0/,""),n}),r.subParser("tables",function(n,i,u){"use strict";if(!i.tables)return n;var d=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,p=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function m(w){return/^:[ \t]*--*$/.test(w)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(w)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(w)?' style="text-align:center;"':""}function f(w,v){var l="";return w=w.trim(),(i.tablesHeaderId||i.tableHeaderId)&&(l=' id="'+w.replace(/ /g,"_").toLowerCase()+'"'),w=r.subParser("spanGamut")(w,i,u),"<th"+l+v+">"+w+`</th>
`}function g(w,v){var l=r.subParser("spanGamut")(w,i,u);return"<td"+v+">"+l+`</td>
`}function T(w,v){for(var l=`<table>
<thead>
<tr>
`,y=w.length,C=0;C<y;++C)l+=w[C];for(l+=`</tr>
</thead>
<tbody>
`,C=0;C<v.length;++C){l+=`<tr>
`;for(var A=0;A<y;++A)l+=v[C][A];l+=`</tr>
`}return l+=`</tbody>
</table>
`,l}function k(w){var v,l=w.split(`
`);for(v=0;v<l.length;++v)/^ {0,3}\|/.test(l[v])&&(l[v]=l[v].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[v])&&(l[v]=l[v].replace(/\|[ \t]*$/,"")),l[v]=r.subParser("codeSpans")(l[v],i,u);var y=l[0].split("|").map(function(x){return x.trim()}),C=l[1].split("|").map(function(x){return x.trim()}),A=[],O=[],S=[],F=[];for(l.shift(),l.shift(),v=0;v<l.length;++v)l[v].trim()!==""&&A.push(l[v].split("|").map(function(x){return x.trim()}));if(y.length<C.length)return w;for(v=0;v<C.length;++v)S.push(m(C[v]));for(v=0;v<y.length;++v)r.helper.isUndefined(S[v])&&(S[v]=""),O.push(f(y[v],S[v]));for(v=0;v<A.length;++v){for(var K=[],ne=0;ne<O.length;++ne)r.helper.isUndefined(A[v][ne]),K.push(g(A[v][ne],S[ne]));F.push(K)}return T(O,F)}return n=u.converter._dispatch("tables.before",n,i,u),n=n.replace(/\\(\|)/g,r.helper.escapeCharactersCallback),n=n.replace(d,k),n=n.replace(p,k),n=u.converter._dispatch("tables.after",n,i,u),n}),r.subParser("underline",function(n,i,u){"use strict";return i.underline&&(n=u.converter._dispatch("underline.before",n,i,u),i.literalMidWordUnderscores?(n=n.replace(/\b___(\S[\s\S]*?)___\b/g,function(d,p){return"<u>"+p+"</u>"}),n=n.replace(/\b__(\S[\s\S]*?)__\b/g,function(d,p){return"<u>"+p+"</u>"})):(n=n.replace(/___(\S[\s\S]*?)___/g,function(d,p){return/\S$/.test(p)?"<u>"+p+"</u>":d}),n=n.replace(/__(\S[\s\S]*?)__/g,function(d,p){return/\S$/.test(p)?"<u>"+p+"</u>":d})),n=n.replace(/(_)/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("underline.after",n,i,u)),n}),r.subParser("unescapeSpecialChars",function(n,i,u){"use strict";return n=u.converter._dispatch("unescapeSpecialChars.before",n,i,u),n=n.replace(/¨E(\d+)E/g,function(d,p){var m=parseInt(p);return String.fromCharCode(m)}),n=u.converter._dispatch("unescapeSpecialChars.after",n,i,u),n}),r.subParser("makeMarkdown.blockquote",function(n,i){"use strict";var u="";if(n.hasChildNodes())for(var d=n.childNodes,p=d.length,m=0;m<p;++m){var f=r.subParser("makeMarkdown.node")(d[m],i);f!==""&&(u+=f)}return u=u.trim(),u="> "+u.split(`
`).join(`
> `),u}),r.subParser("makeMarkdown.codeBlock",function(n,i){"use strict";var u=n.getAttribute("language"),d=n.getAttribute("precodenum");return"```"+u+`
`+i.preList[d]+"\n```"}),r.subParser("makeMarkdown.codeSpan",function(n){"use strict";return"`"+n.innerHTML+"`"}),r.subParser("makeMarkdown.emphasis",function(n,i){"use strict";var u="";if(n.hasChildNodes()){u+="*";for(var d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);u+="*"}return u}),r.subParser("makeMarkdown.header",function(n,i,u){"use strict";var d=new Array(u+1).join("#"),p="";if(n.hasChildNodes()){p=d+" ";for(var m=n.childNodes,f=m.length,g=0;g<f;++g)p+=r.subParser("makeMarkdown.node")(m[g],i)}return p}),r.subParser("makeMarkdown.hr",function(){"use strict";return"---"}),r.subParser("makeMarkdown.image",function(n){"use strict";var i="";return n.hasAttribute("src")&&(i+="!["+n.getAttribute("alt")+"](",i+="<"+n.getAttribute("src")+">",n.hasAttribute("width")&&n.hasAttribute("height")&&(i+=" ="+n.getAttribute("width")+"x"+n.getAttribute("height")),n.hasAttribute("title")&&(i+=' "'+n.getAttribute("title")+'"'),i+=")"),i}),r.subParser("makeMarkdown.links",function(n,i){"use strict";var u="";if(n.hasChildNodes()&&n.hasAttribute("href")){var d=n.childNodes,p=d.length;u="[";for(var m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);u+="](",u+="<"+n.getAttribute("href")+">",n.hasAttribute("title")&&(u+=' "'+n.getAttribute("title")+'"'),u+=")"}return u}),r.subParser("makeMarkdown.list",function(n,i,u){"use strict";var d="";if(!n.hasChildNodes())return"";for(var p=n.childNodes,m=p.length,f=n.getAttribute("start")||1,g=0;g<m;++g)if(!(typeof p[g].tagName>"u"||p[g].tagName.toLowerCase()!=="li")){var T="";u==="ol"?T=f.toString()+". ":T="- ",d+=T+r.subParser("makeMarkdown.listItem")(p[g],i),++f}return d+=`
<!-- -->
`,d.trim()}),r.subParser("makeMarkdown.listItem",function(n,i){"use strict";for(var u="",d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);return/\n$/.test(u)?u=u.split(`
`).join(`
`).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
`):u+=`
`,u}),r.subParser("makeMarkdown.node",function(n,i,u){"use strict";u=u||!1;var d="";if(n.nodeType===3)return r.subParser("makeMarkdown.txt")(n,i);if(n.nodeType===8)return"<!--"+n.data+`-->
`;if(n.nodeType!==1)return"";var p=n.tagName.toLowerCase();switch(p){case"h1":u||(d=r.subParser("makeMarkdown.header")(n,i,1)+`
`);break;case"h2":u||(d=r.subParser("makeMarkdown.header")(n,i,2)+`
`);break;case"h3":u||(d=r.subParser("makeMarkdown.header")(n,i,3)+`
`);break;case"h4":u||(d=r.subParser("makeMarkdown.header")(n,i,4)+`
`);break;case"h5":u||(d=r.subParser("makeMarkdown.header")(n,i,5)+`
`);break;case"h6":u||(d=r.subParser("makeMarkdown.header")(n,i,6)+`
`);break;case"p":u||(d=r.subParser("makeMarkdown.paragraph")(n,i)+`
`);break;case"blockquote":u||(d=r.subParser("makeMarkdown.blockquote")(n,i)+`
`);break;case"hr":u||(d=r.subParser("makeMarkdown.hr")(n,i)+`
`);break;case"ol":u||(d=r.subParser("makeMarkdown.list")(n,i,"ol")+`
`);break;case"ul":u||(d=r.subParser("makeMarkdown.list")(n,i,"ul")+`
`);break;case"precode":u||(d=r.subParser("makeMarkdown.codeBlock")(n,i)+`
`);break;case"pre":u||(d=r.subParser("makeMarkdown.pre")(n,i)+`
`);break;case"table":u||(d=r.subParser("makeMarkdown.table")(n,i)+`
`);break;case"code":d=r.subParser("makeMarkdown.codeSpan")(n,i);break;case"em":case"i":d=r.subParser("makeMarkdown.emphasis")(n,i);break;case"strong":case"b":d=r.subParser("makeMarkdown.strong")(n,i);break;case"del":d=r.subParser("makeMarkdown.strikethrough")(n,i);break;case"a":d=r.subParser("makeMarkdown.links")(n,i);break;case"img":d=r.subParser("makeMarkdown.image")(n,i);break;default:d=n.outerHTML+`
`}return d}),r.subParser("makeMarkdown.paragraph",function(n,i){"use strict";var u="";if(n.hasChildNodes())for(var d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);return u=u.trim(),u}),r.subParser("makeMarkdown.pre",function(n,i){"use strict";var u=n.getAttribute("prenum");return"<pre>"+i.preList[u]+"</pre>"}),r.subParser("makeMarkdown.strikethrough",function(n,i){"use strict";var u="";if(n.hasChildNodes()){u+="~~";for(var d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);u+="~~"}return u}),r.subParser("makeMarkdown.strong",function(n,i){"use strict";var u="";if(n.hasChildNodes()){u+="**";for(var d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i);u+="**"}return u}),r.subParser("makeMarkdown.table",function(n,i){"use strict";var u="",d=[[],[]],p=n.querySelectorAll("thead>tr>th"),m=n.querySelectorAll("tbody>tr"),f,g;for(f=0;f<p.length;++f){var T=r.subParser("makeMarkdown.tableCell")(p[f],i),k="---";if(p[f].hasAttribute("style")){var w=p[f].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(w){case"text-align:left;":k=":---";break;case"text-align:right;":k="---:";break;case"text-align:center;":k=":---:";break}}d[0][f]=T.trim(),d[1][f]=k}for(f=0;f<m.length;++f){var v=d.push([])-1,l=m[f].getElementsByTagName("td");for(g=0;g<p.length;++g){var y=" ";typeof l[g]<"u"&&(y=r.subParser("makeMarkdown.tableCell")(l[g],i)),d[v].push(y)}}var C=3;for(f=0;f<d.length;++f)for(g=0;g<d[f].length;++g){var A=d[f][g].length;A>C&&(C=A)}for(f=0;f<d.length;++f){for(g=0;g<d[f].length;++g)f===1?d[f][g].slice(-1)===":"?d[f][g]=r.helper.padEnd(d[f][g].slice(-1),C-1,"-")+":":d[f][g]=r.helper.padEnd(d[f][g],C,"-"):d[f][g]=r.helper.padEnd(d[f][g],C);u+="| "+d[f].join(" | ")+` |
`}return u.trim()}),r.subParser("makeMarkdown.tableCell",function(n,i){"use strict";var u="";if(!n.hasChildNodes())return"";for(var d=n.childNodes,p=d.length,m=0;m<p;++m)u+=r.subParser("makeMarkdown.node")(d[m],i,!0);return u.trim()}),r.subParser("makeMarkdown.txt",function(n){"use strict";var i=n.nodeValue;return i=i.replace(/ +/g," "),i=i.replace(/¨NBSP;/g," "),i=r.helper.unescapeHTMLEntities(i),i=i.replace(/([*_~|`])/g,"\\$1"),i=i.replace(/^(\s*)>/g,"\\$1>"),i=i.replace(/^#/gm,"\\#"),i=i.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),i=i.replace(/^( {0,3}\d+)\./gm,"$1\\."),i=i.replace(/^( {0,3})([+-])/gm,"$1\\$2"),i=i.replace(/]([\s]*)\(/g,"\\]$1\\("),i=i.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),i});var ju=this;typeof define=="function"&&define.amd?define(function(){"use strict";return r}):typeof Qr<"u"&&Qr.exports?Qr.exports=r:ju.showdown=r}).call(hu)});var Rd={};Ie(Rd,{__EXPERIMENTAL_ELEMENTS:()=>Vn,__EXPERIMENTAL_PATHS_WITH_OVERRIDE:()=>xn,__EXPERIMENTAL_STYLE_PROPERTY:()=>pe,__experimentalCloneSanitizedBlock:()=>Vt,__experimentalGetAccessibleBlockLabel:()=>_a,__experimentalGetBlockAttributesNamesByRole:()=>ya,__experimentalGetBlockLabel:()=>yt,__experimentalSanitizeBlockAttributes:()=>Ge,__unstableGetBlockProps:()=>Gt,__unstableGetInnerBlocksProps:()=>go,__unstableSerializeAndClean:()=>bo,children:()=>Mo,cloneBlock:()=>xt,createBlock:()=>U,createBlocksFromInnerBlocksTemplate:()=>It,doBlocksMatchTemplate:()=>fn,findTransform:()=>he,getBlockAttributes:()=>ie,getBlockAttributesNamesByRole:()=>vt,getBlockBindingsSource:()=>gt,getBlockBindingsSources:()=>ha,getBlockContent:()=>Xe,getBlockDefaultClassName:()=>po,getBlockFromExample:()=>Ht,getBlockMenuDefaultClassName:()=>mo,getBlockSupport:()=>ta,getBlockTransforms:()=>ue,getBlockType:()=>M,getBlockTypes:()=>Ue,getBlockVariations:()=>ca,getCategories:()=>Nu,getChildBlockNames:()=>oa,getDefaultBlockName:()=>pr,getFreeformContentHandlerName:()=>ee,getGroupingBlockName:()=>fr,getPhrasingContentSchema:()=>Su,getPossibleBlockTransformations:()=>Ja,getSaveContent:()=>ge,getSaveElement:()=>Kt,getUnregisteredTypeHandlerName:()=>me,hasBlockSupport:()=>se,hasChildBlocks:()=>ua,hasChildBlocksWithInserterSupport:()=>ia,isReusableBlock:()=>na,isTemplatePart:()=>aa,isUnmodifiedBlock:()=>_t,isUnmodifiedDefaultBlock:()=>hr,isValidBlockContent:()=>Ro,isValidIcon:()=>$e,node:()=>jo,normalizeIconObject:()=>gr,parse:()=>Ee,parseWithAttributeSchema:()=>Le,pasteHandler:()=>et,privateApis:()=>Du,rawHandler:()=>ln,registerBlockBindingsSource:()=>pa,registerBlockCollection:()=>Xn,registerBlockStyle:()=>sa,registerBlockType:()=>Yn,registerBlockVariation:()=>la,serialize:()=>Mr,serializeRawBlock:()=>we,setCategories:()=>Lu,setDefaultBlockName:()=>ea,setFreeformContentHandlerName:()=>Qn,setGroupingBlockName:()=>ra,setUnregisteredTypeHandlerName:()=>Jn,store:()=>P,switchToBlockType:()=>eo,synchronizeBlocksWithTemplate:()=>rt,unregisterBlockBindingsSource:()=>ma,unregisterBlockStyle:()=>da,unregisterBlockType:()=>Zn,unregisterBlockVariation:()=>fa,unstable__bootstrapServerSideBlockDefinitions:()=>Wn,updateCategory:()=>Pu,validateBlock:()=>be,withBlockContentContext:()=>Pd});var Rr=B(Be(),1);var Oe=function(){return Oe=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Oe.apply(this,arguments)};function bn(e){return e.toLowerCase()}var Uu=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Fu=/[^A-Z0-9]+/gi;function yn(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?Uu:r,o=t.stripRegexp,s=o===void 0?Fu:o,c=t.transform,h=c===void 0?bn:c,_=t.delimiter,b=_===void 0?" ":_,E=_n(_n(e,a,"$1\0$2"),s,"\0"),L=0,N=E.length;E.charAt(L)==="\0";)L++;for(;E.charAt(N-1)==="\0";)N--;return E.slice(L,N).split("\0").map(h).join(b)}function _n(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function ot(e,t){var r=e.charAt(0),a=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function wn(e,t){return t===void 0&&(t={}
`).replace(/\n+/g,`
`).trim();return r?Ft(a,o,_):_}var fo=B(io(),1);function po(e){let t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,ke.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function mo(e){let t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,ke.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}var $t={},ho={};function Gt(e={}){let{blockType:t,attributes:r}=$t;return Gt.skipFilters?e:(0,ke.applyFilters)("blocks.getSaveContent.extraProps",{...e},t,r)}function go(e={}){let{innerBlocks:t}=ho;if(!Array.isArray(t))return{...e,children:t};let r=Mr(t,{isInnerBlocks:!0});return{...e,children:(0,fo.jsx)(ve.RawHTML,{children:r})}}function Kt(e,t,r=[]){let a=de(e);if(!a?.save)return null;let{save:o}=a;if(o.prototype instanceof ve.Component){let c=new o({attributes:t});o=c.render.bind(c)}$t.blockType=a,$t.attributes=t,ho.innerBlocks=r;let s=o({attributes:t,innerBlocks:r});if(s!==null&&typeof s=="object"&&(0,ke.hasFilter)("blocks.getSaveContent.extraProps")&&!(a.apiVersion>1)){let c=(0,ke.applyFilters)("blocks.getSaveContent.extraProps",{...s.props},a,t);(0,so.isShallowEqual)(c,s.props)||(s=(0,ve.cloneElement)(s,c))}return(0,ke.applyFilters)("blocks.getSaveElement",s,a,t)}function ge(e,t,r){let a=de(e);return(0,ve.renderToString)(Kt(a,t,r))}function fs(e,t){return Object.entries(e.attributes??{}).reduce((r,[a,o])=>{let s=t[a];return s===void 0||o.source!==void 0||o.role==="local"?r:o.__experimentalRole==="local"?((0,lo.default)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${e?.name} block.`}),r):("default"in o&&JSON.stringify(o.default)===JSON.stringify(s)||(r[a]=s),r)},{})}function ps(e){return JSON.stringify(e).replaceAll("\\\\","\\u005c").replaceAll("--","\\u002d\\u002d").replaceAll("<","\\u003c").replaceAll(">","\\u003e").replaceAll("&","\\u0026").replaceAll('\\"',"\\u0022")}function Xe(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=ge(e.name,e.attributes,e.innerBlocks)}catch{}return t}function Ft(e,t,r){let a=t&&Object.entries(t).length?ps(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return r?`<!-- wp:${o} ${a}-->
`+r+`
<!-- /wp:${o} -->`:`<!-- wp:${o} ${a}/-->`}function ms(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return we(e.__unstableBlockSource);let r=e.name,a=Xe(e);if(r===me()||!t&&r===ee())return a;let o=M(r);if(!o)return a;let s=fs(o,e.attributes);return Ft(r,s,a)}var bo=(()=>{let e=new WeakMap;return t=>{let r=e.get(t);if(r!==void 0)return r;let a=t;a.length===1&&hr(a[0])&&(a=[]);let o=Mr(a);return a.length===1&&a[0].name===ee()&&a[0].name==="core/freeform"&&(o=(0,co.removep)(o)),e.set(t,o),o}})();function Mr(e,t){return(Array.isArray(e)?e:[e]).map(a=>ms(a,t)).join(`
`)}var hs=/^#[xX]([A-Fa-f0-9]+)$/,gs=/^#([0-9]+)$/,bs=/^([A-Za-z0-9]+)$/,dl=(function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(hs);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(gs),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(bs),r)return this.named[r[1]]}},e})(),_s=/[\t\n\f ]/,ys=/[A-Za-z]/,ws=/\r\n?/g;function Se(e){return _s.test(e)}function _o(e){return ys.test(e)}function ks(e){return e.replace(ws,`
`)}var vs=(function(){function e(t,r){this.delegate=t,this.entityParser=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var a=this.peek();if(a==="<")this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(a===`
`){var o=this.tagNameBuffer.toLowerCase();(o==="pre"||o==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var a=this.peek();a==="<"?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):a==="&"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(a))},tagOpen:function(){var a=this.consume();a==="!"?this.transitionTo("markupDeclarationOpen"):a==="/"?this.transitionTo("endTagOpen"):(a==="@"||a===":"||_o(a))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(a))},markupDeclarationOpen:function(){var a=this.consume();a==="-"&&this.input.charAt(this.index)==="-"&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var a=this.consume();a==="-"?this.transitionTo("commentStartDash"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(a),this.transitionTo("comment"))},commentStartDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var a=this.consume();a==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(a)},commentEndDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+a),this.transitionTo("comment"))},commentEnd:function(){var a=this.consume();a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+a),this.transitionTo("comment"))},tagName:function(){var a=this.consume();Se(a)?this.transitionTo("beforeAttributeName"):a==="/"?this.transitionTo("selfClosingStartTag"):a===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(a)},beforeAttributeName:function(){var a=this.peek();if(Se(a)){this.consume();return}else a==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):a===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var a=this.peek();Se(a)?(this.transitionTo("afterAttributeName"),this.consume()):a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==='"'||a==="'"||a==="<"?(this.delegate.reportSyntaxError(a+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(a)):(this.consume(),this.delegate.appendToAttributeName(a))},afterAttributeName:function(){var a=this.peek();if(Se(a)){this.consume();return}else a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a))},beforeAttributeValue:function(){var a=this.peek();Se(a)?this.consume():a==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):a==="'"?(this.transitionTo("attributeVa
`?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var r=this.input.slice(this.index,t),a=this.entityParser.parse(r);if(a){for(var o=r.length;o;)this.consume(),o--;return this.consume(),a}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e})(),yo=(function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new vs(this,t),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r<arguments.length;r++)if(t.type===arguments[r])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e})();var So=B(ko(),1),No=B(J(),1),Lo=B(Eo(),1);function Ne(){function e(t){return(r,...a)=>t("Block validation: "+r,...a)}return{error:e(console.error),warning:e(console.warn),getItems(){return[]}}}function To(){let e=[],t=Ne();return{error(...r){e.push({log:t.error,args:r})},warning(...r){e.push({log:t.warning,args:r})},getItems(){return e}}}var Es=e=>e,Ts=/[\t\n\r\v\f ]+/g,Cs=/^[\t\n\r\v\f ]*$/,Bs=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,Po=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],As=["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],Ss=[...Po,...As],Co=[Es,Ds],Ns=/^[\da-z]+$/i,Ls=/^#\d+$/,Ps=/^#x[\da-f]+$
%s`,h.toString()),[!1,a.getItems()]}let c=Us(e.originalContent,s,a);return c||a.error(`Block validation failed for \`%s\` (%o).
Content generated by \`save\` function:
%s
Content retrieved from post body:
%s`,o.name,o,s,e.originalContent),[c,a.getItems()]}function Ro(e,t,r){(0,No.default)("isValidBlockContent introduces opportunity for data loss",{since:"12.6",plugin:"Gutenberg",alternative:"validateBlock"});let a=de(e),o={name:a.name,attributes:t,innerBlocks:[],originalContent:r},[s]=be(o,a);return s}function jr(e,t){let r={...t};if(e==="core/cover-image"&&(e="core/cover"),(e==="core/text"||e==="core/cover-text")&&(e="core/paragraph"),e&&e.indexOf("core/social-link-")===0&&(r.service=e.substring(17),e="core/social-link"),e&&e.indexOf("core-embed/")===0){let a=e.substring(11),o={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=a in o?o[a]:a,["amazon-kindle","wordpress"].includes(a)||(r.responsive=!0),e="core/embed"}if(e==="core/post-comment-author"&&(e="core/comment-author-name"),e==="core/post-comment-content"&&(e="core/comment-content"),e==="core/post-comment-date"&&(e="core/comment-date"),e==="core/comments-query-loop"){e="core/comments";let{className:a=""}=r;a.includes("wp-block-comments-query-loop")||(r.className=["wp-block-comments-query-loop",a].join(" "))}if(e==="core/post-comments"&&(e="core/comments",r.legacy=!0),t.layout?.type==="grid"&&typeof t.layout?.columnCount=="string"&&(r.layout={...r.layout,columnCount:parseInt(t.layout.columnCount,10)}),typeof t.style?.layout?.columnSpan=="string"){let a=parseInt(t.style.layout.columnSpan,10);r.style={...r.style,layout:{...r.style.layout,columnSpan:isNaN(a)?void 0:a}}}if(typeof t.style?.layout?.rowSpan=="string"){let a=parseInt(t.style.layout.rowSpan,10);r.style={...r.style,layout:{...r.style.layout,rowSpan:isNaN(a)?void 0:a}}}return[e,r]}function Yt(e,t){for(var r=t.split("."),a;a=r.shift();){if(!(a in e))return;e=e[a]}return e}var Fs=(function(){var e;return function(){return e||(e=document.implementation.createHTMLDocument("")),e}})();function zr(e,t){if(t){if(typeof e=="string"){var r=Fs();r.body.innerHTML=e,e=r.body}if(typeof t=="function")return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(a,o){return a[o]=zr(e,t[o]),a},{})}}function Qe(e,t){return arguments.length===1&&(t=e,e=void 0),function(r){var a=r;if(e&&(a=r.querySelector(e)),a)return Yt(a,t)}}function Xt(e,t){return arguments.length===1&&(t=e,e=void 0),function(r){var a=Qe(e,"attributes")(r);if(a&&a.hasOwnProperty(t))return a[t].value}}function Zt(e){return Qe(e,"textContent")}function Qt(e,t){return function(r){var a=r.querySelectorAll(e);return[].map.call(a,function(o){return zr(o,t)})}}function Oo(e,t){var r=0,a,o;t=t||{};function s(){var c=a,h=arguments.length,_,b;e:for(;c;){if(c.args.length!==arguments.length){c=c.next;continue}for(b=0;b<h;b++)if(c.args[b]!==arguments[b]){c=c.next;continue e}return c!==a&&(c===o&&(o=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=a,c.prev=null,a.prev=c,a=c),c.val}for(_=new Array(h),b=0;b<h;b++)_[b]=arguments[b];return c={args:_,val:e.apply(null,_)},a?(a.prev=c,c.next=a):o=c,r===t.maxSize?(o=o.prev,o.next=null):r++,a=c,c.val}return s.clear=function(){a=null,o=null,r=0},s}var Io=B(We(),1),Vo=B(xe(),1);var en=B(xe(),1);var Je=B(J(),1);var Do=B(De(),1),ze=B(J(),1);function $s(e){return(0,ze.default)("wp.blocks.children.getChildrenArray",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e}function Gs(...e){(0,ze.default)("wp.blocks.children.concat",{since:"6.1",version:"6.3",alternative:"wp.richText.concat",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});let t=[];for(let r=0;r<e.length;r++){let a=Array.isArray(e[r])?e[r]:[e[r]];for(let o=0;o<a.length;o++){let s=a[o];typeof s=="string"&&typeof t[t.length-1]=="string"?t[t.length-1]+=s:t.push(s)}}return t}function qr(e){(0,ze.default)("wp.blocks.children.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});let t=[];for(let r=0;r<e.length;r++)try{t.
New content generated by \`save\` function:
%s
Content retrieved from post body:
%s`,a.name,a,ge(a,b.attributes),b.originalContent),console.groupEnd()):!h.isValid&&!b.isValid&&_.forEach(({log:E,args:L})=>E(...L)),b}function Ee(e,t){return(0,Go.parse)(e).reduce((r,a)=>{let o=Hr(a,t);return o&&r.push(o),r},[])}var Bu=B(J(),1),Au=B(Z(),1);var Wo=B(De(),1);function Ur(){return ue("from").filter(({type:e})=>e==="raw").map(e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)})}function Fr(e,t){let r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,Array.from(r.body.children).flatMap(a=>{let o=he(Ur(),({isMatch:h})=>h(a));if(!o)return Wo.Platform.isNative?Ee(`<!-- wp:html -->${a.outerHTML}<!-- /wp:html -->`):U("core/html",ie("core/html",a.outerHTML));let{transform:s,blockName:c}=o;if(s){let h=s(a,t);return a.hasAttribute("class")&&(h.attributes.className=a.getAttribute("class")),h}return U(c,ie(c,a.outerHTML))})}var er=B(Z(),1);function Te(e,t={}){let r=document.implementation.createHTMLDocument(""),a=document.implementation.createHTMLDocument(""),o=r.body,s=a.body;for(o.innerHTML=e;o.firstChild;){let c=o.firstChild;c.nodeType===c.TEXT_NODE?(0,er.isEmpty)(c)?o.removeChild(c):((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(a.createElement("P")),s.lastChild.appendChild(c)):c.nodeType===c.ELEMENT_NODE?c.nodeName==="BR"?(c.nextSibling&&c.nextSibling.nodeName==="BR"&&(s.appendChild(a.createElement("P")),o.removeChild(c.nextSibling)),s.lastChild&&s.lastChild.nodeName==="P"&&s.lastChild.hasChildNodes()?s.lastChild.appendChild(c):o.removeChild(c)):c.nodeName==="P"?(0,er.isEmpty)(c)&&!t.raw?o.removeChild(c):s.appendChild(c):(0,er.isPhrasingContent)(c)?((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(a.createElement("P")),s.lastChild.appendChild(c)):s.appendChild(c):o.removeChild(c)}return s.innerHTML}var rr=B(Z(),1);function $r(e,t){if(e.nodeType!==e.COMMENT_NODE||e.nodeValue!=="nextpage"&&e.nodeValue.indexOf("more")!==0)return;let r=pd(e,t);if(!e.parentNode||e.parentNode.nodeName!=="P")(0,rr.replace)(e,r);else{let a=Array.from(e.parentNode.childNodes),o=a.indexOf(e),s=e.parentNode.parentNode||t.body,c=(h,_)=>(h||(h=t.createElement("p")),h.appendChild(_),h);[a.slice(0,o).reduce(c,null),r,a.slice(o+1).reduce(c,null)].forEach(h=>h&&s.insertBefore(h,e.parentNode)),(0,rr.remove)(e.parentNode)}}function pd(e,t){if(e.nodeValue==="nextpage")return hd(t);let r=e.nodeValue.slice(4).trim(),a=e,o=!1;for(;a=a.nextSibling;)if(a.nodeType===a.COMMENT_NODE&&a.nodeValue==="noteaser"){o=!0,(0,rr.remove)(a);break}return md(r,o,t)}function md(e,t,r){let a=r.createElement("wp-block");return a.dataset.block="core/more",e&&(a.dataset.customText=e),t&&(a.dataset.noTeaser=""),a}function hd(e){let t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}var Xo=B(Z(),1);function Yo(e){return e.nodeName==="OL"||e.nodeName==="UL"}function gd(e){return Array.from(e.childNodes).map(({nodeValue:t=""})=>t).join("")}function Gr(e){if(!Yo(e))return;let t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&t.children.length===1){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}let a=e.parentNode;if(a&&a.nodeName==="LI"&&a.children.length===1&&!/\S/.test(gd(a))){let o=a,s=o.previousElementSibling,c=o.parentNode;s&&(s.appendChild(t),c.removeChild(o))}if(a&&Yo(a)){let o=e.previousElementSibling;o?o.appendChild(e):(0,Xo.unwrap)(e)}}function Kr(e){return t=>{t.nodeName==="BLOCKQUOTE"&&(t.innerHTML=Te(t.innerHTML,e))}}var Zo=B(Z(),1);function bd(e,t){let r=e.nodeName.toLowerCase();return r==="figcaption"||(0,Zo.isTextContent)(e)?!1:r in(t?.figure?.children??{})}function _d(e,t){return e.nodeName.toLowerCase()in(t?.figure?.children?.a?.children??{})}function tn(e,t=e){let r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function Wr(e,t,r){if(!bd(e,r))return;let a=e,o=e.parentNode;_d(e,r)&&o.nodeName==="A"&&o.childNodes.length===1&&(a=e.parentNode);let s=a.closest("p,div");s?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!s.textContent.trim(
${a}
${o}`)}function Td(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}function _u(e){return vd.makeHtml(Ed(Td(e)))}function yu(e){if(e.nodeName==="IFRAME"){let t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}var wu=B(Z(),1);function sn(e){!e.id||e.id.indexOf("docs-internal-guid-")!==0||(e.tagName==="B"?(0,wu.unwrap)(e):e.removeAttribute("id"))}function Cd(e){return e===" "||e==="\r"||e===`
`||e===" "}function dn(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&t.nodeName==="PRE")return;let r=e.data.replace(/[ \r\n\t]+/g," ");if(r[0]===" "){let a=qe(e,"previous");(!a||a.nodeName==="BR"||a.textContent.slice(-1)===" ")&&(r=r.slice(1))}if(r[r.length-1]===" "){let a=qe(e,"next");(!a||a.nodeName==="BR"||a.nodeType===a.TEXT_NODE&&Cd(a.textContent[0]))&&(r=r.slice(0,-1))}r?e.data=r:e.parentNode.removeChild(e)}function cn(e){e.nodeName==="BR"&&(qe(e,"next")||e.parentNode.removeChild(e))}function ku(e){e.nodeName==="P"&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function vu(e){if(e.nodeName!=="SPAN"||e.getAttribute("data-stringify-type")!=="paragraph-break")return;let{parentNode:t}=e;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}function Eu(e){let t=/[\p{L}\s]+/gu,r;for(;r=t.exec(e);){if(e[r.index-1]==="{")continue;let o=r[0];if(e[r.index-1]==="\\"&&(o=o.replace(/^[a-zA-Z]+/,"")),!(o.length<6))return!1}return!!(/\\[a-zA-Z]+\s*\{/g.test(e)||[o=>o.includes("^")&&!o.startsWith("^"),o=>["=","+","-","/","*"].some(s=>o.includes(s)),o=>/\\[a-zA-Z]+/g.test(o)].filter(o=>o(e)).length>=2)}function Tu(e){if(e.nodeType===e.ELEMENT_NODE&&e.tagName==="P"&&e.getAttribute("role")==="heading"&&e.hasAttribute("aria-level")){let t=parseInt(e.getAttribute("aria-level"),10);if(t>=1&&t<=6){let r=`H${t}`,a=e.ownerDocument.createElement(r);for(Array.from(e.attributes).forEach(o=>{o.name!=="role"&&o.name!=="aria-level"&&a.setAttribute(o.name,o.value)});e.firstChild;)a.appendChild(e.firstChild);e.parentNode.replaceChild(a,e)}}}var Jr=(...e)=>window?.console?.log?.(...e);function Cu(e){return e=le(e,[on,sn,Zr,an,nn]),e=(0,Re.removeInvalidHTML)(e,(0,Re.getPhrasingContentSchema)("paste"),{inline:!0}),e=le(e,[dn,cn]),Jr(`Processed inline HTML:
`,e),e}function et({HTML:e="",plainText:t="",mode:r="AUTO",tagName:a}){if(Jr(`Received HTML (pasteHandler):
`,e),Jr(`Received plain text (pasteHandler):
`,t),e=e.replace(/<meta[^>]+>/g,""),e=e.replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,""),e=e.replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),r!=="INLINE"){let E=e||t;if(E.indexOf("<!-- wp:")!==-1){let L=Ee(E);if(!(L.length===1&&L[0].name==="core/freeform"))return L}}String.prototype.normalize&&(e=e.normalize()),e=le(e,[vu]);let o=t&&(!e||nu(e));if(o&&Eu(t))return[U("core/math",{latex:t})];o&&(e=t,/^\s+$/.test(t)||(e=_u(e)));let s=Yr(e),c=s.length>1;if(o&&!c&&r==="AUTO"&&t.indexOf(`
`)===-1&&t.indexOf("<p>")!==0&&e.indexOf("<p>")===0&&(r="INLINE"),r==="INLINE"||r==="AUTO"&&!c&&su(e,a))return Cu(e);let h=(0,Re.getPhrasingContentSchema)("paste"),_=Xr("paste"),b=s.map(E=>{if(typeof E!="string")return E;let L=[sn,du,on,Gr,pu,an,$r,nn,yu,Wr,Kr(),mu,Tu],N={..._,...h};return E=le(E,L,_),E=(0,Re.removeInvalidHTML)(E,N),E=Te(E),E=le(E,[dn,cn,ku],_),Jr(`Processed HTML piece:
`,E),Fr(E,et)}).flat().filter(Boolean);if(r==="AUTO"&&b.length===1&&se(b[0].name,"__unstablePasteTextInline",!1)){let E=/^[\n]+|[\n]+$/g,L=t.replace(E,"");if(L!==""&&L.indexOf(`
`)===-1)return(0,Re.removeInvalidHTML)(Xe(b[0]),h).replace(E,"")}return b}function Su(e){return(0,Bu.default)("wp.blocks.getPhrasingContentSchema",{since:"5.6",alternative:"wp.dom.getPhrasingContentSchema"}),(0,Au.getPhrasingContentSchema)(e)}function ln({HTML:e=""}){if(e.indexOf("<!-- wp:")!==-1){let a=Ee(e);if(!(a.length===1&&a[0].name==="core/freeform"))return a}let t=Yr(e),r=Xr();return t.map(a=>{if(typeof a!="string")return a;let o=[Gr,$r,Wr,Kr({raw:!0})];return a=le(a,o,r),a=Te(a,{raw:!0}),Fr(a,ln)}).flat().filter(Boolean)}var or=B(Be(),1);function Nu(){return(0,or.select)(P).getCategories()}function Lu(e){(0,or.dispatch)(P).setCategories(e)}function Pu(e,t){(0,or.dispatch)(P).updateCategory(e,t)}var Ru=B(De(),1);function fn(e=[],t=[]){return e.length===t.length&&t.every(([r,,a],o)=>{let s=e[o];return r===s.name&&fn(s.innerBlocks,a)})}var Bd=e=>e?.source==="html",Ad=e=>e?.source==="query";function Ou(e,t){return t?Object.fromEntries(Object.entries(t).map(([r,a])=>[r,Sd(e[r],a)])):{}}function Sd(e,t){return Bd(e)&&Array.isArray(t)?(0,Ru.renderToString)(t):Ad(e)&&t?t.map(r=>Ou(e.query,r)):t}function rt(e=[],t){return t?t.map(([r,a,o],s)=>{let c=e[s];if(c&&c.name===r){let L=rt(c.innerBlocks,o);return{...c,innerBlocks:L}}let h=M(r),_=Ou(h?.attributes??{},a),[b,E]=jr(r,_);return U(b,E,rt([],o))}):e}var Nd=Symbol("fields"),Ld=Symbol("form"),Du={};Gn(Du,{isContentBlock:wa,fieldsKey:Nd,formKey:Ld,parseRawBlock:Hr});var Mu=B(J(),1);function Pd(e){return(0,Mu.default)("wp.blocks.withBlockContentContext",{since:"6.1"}),e}return Hu(Rd);})();
/*! Bundled license information:
react-is/cjs/react-is.production.min.js:
(**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
showdown/dist/showdown.js:
(*! showdown v 1.9.1 - 02-11-2019 *)
is-plain-object/dist/is-plain-object.mjs:
(*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
*/