Module 47418

62,166 characters · in 7af349a24887a0e7.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,i){i.d(t,{t:()=>tu});var n=i(248702),r=i(695742),{entries:o,setPrototypeOf:a,isFrozen:s,getPrototypeOf:l,getOwnPropertyDescriptor:c}=Object,{freeze:d,seal:u,create:h}=Object,{apply:p,construct:f}="u">typeof Reflect&&Reflect;d||=function(e){return e},u||=function(e){return e},p||=function(e,t){var i=[...arguments].slice(2);return e.apply(t,i)},f||=function(e){return new e(...[...arguments].slice(1))};var m=T(Array.prototype.forEach),g=T(Array.prototype.lastIndexOf),v=T(Array.prototype.pop),C=T(Array.prototype.push),y=T(Array.prototype.splice),w=T(String.prototype.toLowerCase),b=T(String.prototype.toString),_=T(String.prototype.match),S=T(String.prototype.replace),L=T(String.prototype.indexOf),E=T(String.prototype.trim),k=T(Object.prototype.hasOwnProperty),x=T(RegExp.prototype.test),I=(O=TypeError,function(){return f(O,[...arguments])});function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var i=[...arguments].slice(1);return p(e,t,i)}}function M(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;a&&a(e,null);let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){let e=i(r);e!==r&&(s(t)||(t[n]=e),r=e)}e[r]=!0}return e}function A(e){let t=h(null);for(let[i,n]of o(e))k(e,i)&&(Array.isArray(n)?t[i]=function(e){for(let t=0;t<e.length;t++)k(e,t)||(e[t]=null);return e}(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=A(n):t[i]=n);return t}function R(e,t){for(;null!==e;){let i=c(e,t);if(i){if(i.get)return T(i.get);if("function"==typeof i.value)return T(i.value)}e=l(e)}return function(){return null}}var O,P,D=d("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),F=d("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),N=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=d("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),$=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=d(["#text"]),V=d("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")),z=d("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),j=d("accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),Z=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=u(/<%[\w\W]*|[\w\W]*%>/gm),K=u(/\$\{[\w\W]*/gm),q=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=u(/^aria-[\-\w]+$/),Q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=u(/^(?:\w+script|data):/i),J=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=u(/^html$/i),et=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:u(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:q,DOCTYPE_NAME:ee,ERB_EXPR:G,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:K}),ei=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));let r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},er=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,i=t=>e(t);if(i.version="3.3.3",i.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return i.isSupported=!1,i;let{document:n}=t,r=n,a=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:p,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:T,DOMParser:O,trustedTypes:P}=t,W=u.prototype,G=R(W,"cloneNode"),K=R(W,"remove"),q=R(W,"nextSibling"),Y=R(W,"childNodes"),X=R(W,"parentNode");if("function"==typeof l){let e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let J,er="",{implementation:eo,createNodeIterator:ea,createDocumentFragment:es,getElementsByTagName:el}=n,{importNode:ec}=r,ed=en();i.isSupported="function"==typeof o&&"function"==typeof X&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:eu,ERB_EXPR:eh,TMPLIT_EXPR:ep,DATA_ATTR:ef,ARIA_ATTR:em,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:eC}=et,{IS_ALLOWED_URI:ey}=et,ew=null,eb=M({},[...D,...F,...N,...H,...B]),e_=null,eS=M({},[...V,...z,...j,...Z]),eL=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eE=null,ek=null,ex=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eI=!0,eT=!0,eM=!1,eA=!0,eR=!1,eO=!0,eP=!1,eD=!1,eF=!1,eN=!1,eU=!1,eH=!1,e$=!0,eB=!1,eV=!0,ez=!1,ej={},eZ=null,eW=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eG=null,eK=M({},["audio","video","img","source","image","track"]),eq=null,eY=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eQ="http://www.w3.org/1998/Math/MathML",eX="http://www.w3.org/2000/svg",eJ="http://www.w3.org/1999/xhtml",e1=eJ,e2=!1,e0=null,e3=M({},[eQ,eX,eJ],b),e6=M({},["mi","mo","mn","ms","mtext"]),e5=M({},["annotation-xml"]),e4=M({},["title","style","font","a","script"]),e9=null,e8=["application/xhtml+xml","text/html"],e7=null,te=null,tt=n.createElement("form"),ti=function(e){return e instanceof RegExp||e instanceof Function},tn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(te&&te===e)){if(e&&"object"==typeof e||(e={}),e=A(e),e7="application/xhtml+xml"===(e9=-1===e8.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?b:w,ew=k(e,"ALLOWED_TAGS")?M({},e.ALLOWED_TAGS,e7):eb,e_=k(e,"ALLOWED_ATTR")?M({},e.ALLOWED_ATTR,e7):eS,e0=k(e,"ALLOWED_NAMESPACES")?M({},e.ALLOWED_NAMESPACES,b):e3,eq=k(e,"ADD_URI_SAFE_ATTR")?M(A(eY),e.ADD_URI_SAFE_ATTR,e7):eY,eG=k(e,"ADD_DATA_URI_TAGS")?M(A(eK),e.ADD_DATA_URI_TAGS,e7):eK,eZ=k(e,"FORBID_CONTENTS")?M({},e.FORBID_CONTENTS,e7):eW,eE=k(e,"FORBID_TAGS")?M({},e.FORBID_TAGS,e7):A({}),ek=k(e,"FORBID_ATTR")?M({},e.FORBID_ATTR,e7):A({}),ej=!!k(e,"USE_PROFILES")&&e.USE_PROFILES,eI=!1!==e.ALLOW_ARIA_ATTR,eT=!1!==e.ALLOW_DATA_ATTR,eM=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eA=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eR=e.SAFE_FOR_TEMPLATES||!1,eO=!1!==e.SAFE_FOR_XML,eP=e.WHOLE_DOCUMENT||!1,eN=e.RETURN_DOM||!1,eU=e.RETURN_DOM_FRAGMENT||!1,eH=e.RETURN_TRUSTED_TYPE||!1,eF=e.FORCE_BODY||!1,e$=!1!==e.SANITIZE_DOM,eB=e.SANITIZE_NAMED_PROPS||!1,eV=!1!==e.KEEP_CONTENT,ez=e.IN_PLACE||!1,ey=e.ALLOWED_URI_REGEXP||Q,e1=e.NAMESPACE||eJ,e6=e.MATHML_TEXT_INTEGRATION_POINTS||e6,e5=e.HTML_INTEGRATION_POINTS||e5,eL=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ti(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eL.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ti(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eL.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eL.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eR&&(eT=!1),eU&&(eN=!0),ej&&(ew=M({},B),e_=h(null),!0===ej.html&&(M(ew,D),M(e_,V)),!0===ej.svg&&(M(ew,F),M(e_,z),M(e_,Z)),!0===ej.svgFilters&&(M(ew,N),M(e_,z),M(e_,Z)),!0===ej.mathMl&&(M(ew,H),M(e_,j),M(e_,Z))),k(e,"ADD_TAGS")||(ex.tagCheck=null),k(e,"ADD_ATTR")||(ex.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ex.tagCheck=e.ADD_TAGS:(ew===eb&&(ew=A(ew)),M(ew,e.ADD_TAGS,e7))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ex.attributeCheck=e.ADD_ATTR:(e_===eS&&(e_=A(e_)),M(e_,e.ADD_ATTR,e7))),e.ADD_URI_SAFE_ATTR&&M(eq,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eZ===eW&&(eZ=A(eZ)),M(eZ,e.FORBID_CONTENTS,e7)),e.ADD_FORBID_CONTENTS&&(eZ===eW&&(eZ=A(eZ)),M(eZ,e.ADD_FORBID_CONTENTS,e7)),eV&&(ew["#text"]=!0),eP&&M(ew,["html","head","body"]),ew.table&&(M(ew,["tbody"]),delete eE.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');er=(J=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===J&&(J=ei(P,a)),null!==J&&"string"==typeof er&&(er=J.createHTML(""));d&&d(e),te=e}},tr=M({},[...F,...N,...U]),to=M({},[...H,...$]),ta=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:e1,tagName:"template"});let i=w(e.tagName),n=w(t.tagName);return!!e0[e.namespaceURI]&&(e.namespaceURI===eX?t.namespaceURI===eJ?"svg"===i:t.namespaceURI===eQ?"svg"===i&&("annotation-xml"===n||e6[n]):!!tr[i]:e.namespaceURI===eQ?t.namespaceURI===eJ?"math"===i:t.namespaceURI===eX?"math"===i&&e5[n]:!!to[i]:e.namespaceURI===eJ?(t.namespaceURI!==eX||!!e5[n])&&(t.namespaceURI!==eQ||!!e6[n])&&!to[i]&&(e4[i]||!tr[i]):!!("application/xhtml+xml"===e9&&e0[e.namespaceURI]))},ts=function(e){C(i.removed,{element:e});try{X(e).removeChild(e)}catch{K(e)}},tl=function(e,t){try{C(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch{C(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eN||eU)try{ts(t)}catch{}else try{t.setAttribute(e,"")}catch{}},tc=function(e){let t=null,i=null;if(eF)e="<remove></remove>"+e;else{let t=_(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===e9&&e1===eJ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=J?J.createHTML(e):e;if(e1===eJ)try{t=new O().parseFromString(r,e9)}catch{}if(!t||!t.documentElement){t=eo.createDocument(e1,"template",null);try{t.documentElement.innerHTML=e2?er:r}catch{}}let o=t.body||t.documentElement;return e&&i&&o.insertBefore(n.createTextNode(i),o.childNodes[0]||null),e1===eJ?el.call(t,eP?"html":"body")[0]:eP?t.documentElement:o},td=function(e){return ea.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},tu=function(e){return e instanceof T&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},th=function(e){return"function"==typeof c&&e instanceof c};function tp(e,t,n){m(e,e=>{e.call(i,t,n,te)})}let tf=function(e){let t=null;if(tp(ed.beforeSanitizeElements,e,null),tu(e))return ts(e),!0;let n=e7(e.nodeName);if(tp(ed.uponSanitizeElement,e,{tagName:n,allowedTags:ew}),eO&&e.hasChildNodes()&&!th(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||7===e.nodeType||eO&&8===e.nodeType&&x(/<[/\w]/g,e.data))return ts(e),!0;if(!(ex.tagCheck instanceof Function&&ex.tagCheck(n))&&(!ew[n]||eE[n])){if(!eE[n]&&tg(n)&&(eL.tagNameCheck instanceof RegExp&&x(eL.tagNameCheck,n)||eL.tagNameCheck instanceof Function&&eL.tagNameCheck(n)))return!1;if(eV&&!eZ[n]){let t=X(e)||e.parentNode,i=Y(e)||e.childNodes;if(i&&t){let n=i.length;for(let r=n-1;r>=0;--r){let n=G(i[r],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return ts(e),!0}return e instanceof u&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(ts(e),!0):(eR&&3===e.nodeType&&(t=e.textContent,m([eu,eh,ep],e=>{t=S(t,e," ")}),e.textContent!==t&&(C(i.removed,{element:e.cloneNode()}),e.textContent=t)),tp(ed.afterSanitizeElements,e,null),!1)},tm=function(e,t,i){if(ek[t]||e$&&("id"===t||"name"===t)&&(i in n||i in tt))return!1;if(!(eT&&!ek[t]&&x(ef,t))&&!(eI&&x(em,t))&&!(ex.attributeCheck instanceof Function&&ex.attributeCheck(t,e))){if(!e_[t]||ek[t]){if(!(tg(e)&&(eL.tagNameCheck instanceof RegExp&&x(eL.tagNameCheck,e)||eL.tagNameCheck instanceof Function&&eL.tagNameCheck(e))&&(eL.attributeNameCheck instanceof RegExp&&x(eL.attributeNameCheck,t)||eL.attributeNameCheck instanceof Function&&eL.attributeNameCheck(t,e))||"is"===t&&eL.allowCustomizedBuiltInElements&&(eL.tagNameCheck instanceof RegExp&&x(eL.tagNameCheck,i)||eL.tagNameCheck instanceof Function&&eL.tagNameCheck(i))))return!1}else if(!eq[t]&&!x(ey,S(i,ev,""))&&!(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===L(i,"data:")&&eG[e])&&!(eM&&!x(eg,S(i,ev,"")))&&i)return!1}return!0},tg=function(e){return"annotation-xml"!==e&&_(e,eC)},tv=function(e){tp(ed.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||tu(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e_,forceKeepAttr:void 0},r=t.length;for(;r--;){let{name:o,namespaceURI:a,value:s}=t[r],l=e7(o),c="value"===o?s:E(s);if(n.attrName=l,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,tp(ed.uponSanitizeAttribute,e,n),c=n.attrValue,eB&&("id"===l||"name"===l)&&(tl(o,e),c="user-content-"+c),eO&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===l&&_(c,"href")){tl(o,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr||!eA&&x(/\/>/i,c)){tl(o,e);continue}eR&&m([eu,eh,ep],e=>{c=S(c,e," ")});let d=e7(e.nodeName);if(!tm(d,l,c)){tl(o,e);continue}if(J&&"object"==typeof P&&"function"==typeof P.getAttributeType&&!a)switch(P.getAttributeType(d,l)){case"TrustedHTML":c=J.createHTML(c);break;case"TrustedScriptURL":c=J.createScriptURL(c)}if(c!==s)try{a?e.setAttributeNS(a,o,c):e.setAttribute(o,c),tu(e)?ts(e):v(i.removed)}catch{tl(o,e)}}tp(ed.afterSanitizeAttributes,e,null)},tC=function e(t){let i=null,n=td(t);for(tp(ed.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)tp(ed.uponSanitizeShadowNode,i,null),tf(i),tv(i),i.content instanceof s&&e(i.content);tp(ed.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,l=null;if((e2=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!th(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}else throw I("toString is not a function");if(!i.isSupported)return e;if(eD||tn(t),i.removed=[],"string"==typeof e&&(ez=!1),ez){if(e.nodeName){let t=e7(e.nodeName);if(!ew[t]||eE[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(o=(n=tc("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!eN&&!eR&&!eP&&-1===e.indexOf("<"))return J&&eH?J.createHTML(e):e;if(!(n=tc(e)))return eN?null:eH?er:""}n&&eF&&ts(n.firstChild);let d=td(ez?e:n);for(;a=d.nextNode();)tf(a),tv(a),a.content instanceof s&&tC(a.content);if(ez)return e;if(eN){if(eU)for(l=es.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(e_.shadowroot||e_.shadowrootmode)&&(l=ec.call(r,l,!0)),l}let u=eP?n.outerHTML:n.innerHTML;return eP&&ew["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x(ee,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),eR&&m([eu,eh,ep],e=>{u=S(u,e," ")}),J&&eH?J.createHTML(u):u},i.setConfig=function(){tn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),eD=!0},i.clearConfig=function(){te=null,eD=!1},i.isValidAttribute=function(e,t,i){return te||tn({}),tm(e7(e),e7(t),i)},i.addHook=function(e,t){"function"==typeof t&&C(ed[e],t)},i.removeHook=function(e,t){if(void 0!==t){let i=g(ed[e],t);return -1===i?void 0:y(ed[e],i,1)[0]}return v(ed[e])},i.removeHooks=function(e){ed[e]=[]},i.removeAllHooks=function(){ed=en()},i}();function eo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ea=eo(),es={exec:()=>null};function el(e,t=""){let i="string"==typeof e?e:e.source,n={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(ed.caret,"$1"),i=i.replace(e,r),n},getRegex:()=>new RegExp(i,t)};return n}var ec=(()=>{try{return!0}catch{return!1}})(),ed={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},eu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,eh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ep=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ef=el(ep).replace(/bull/g,eh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),em=el(ep).replace(/bull/g,eh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ev=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eC=el(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ev).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ey=el(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,eh).getRegex(),ew="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",eb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,e_=el("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",eb).replace("tag",ew).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eS=el(eg).replace("hr",eu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ew).getRegex(),eL={blockquote:el(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eS).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:eC,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:eu,html:e_,lheading:ef,list:ey,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:eS,table:es,text:/^[^\n]+/},eE=el("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ew).getRegex(),ek={...eL,lheading:em,table:eE,paragraph:el(eg).replace("hr",eu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eE).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ew).getRegex()},ex={...eL,html:el("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",eb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:es,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:el(eg).replace("hr",eu).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ef).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eI=/^( {2,}|\\)\n(?!\s*$)/,eT=/[\p{P}\p{S}]/u,eM=/[\s\p{P}\p{S}]/u,eA=/[^\s\p{P}\p{S}]/u,eR=el(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,eM).getRegex(),eO=/(?!~)[\p{P}\p{S}]/u,eP=el(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ec?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),eD=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,eF=el(eD,"u").replace(/punct/g,eT).getRegex(),eN=el(eD,"u").replace(/punct/g,eO).getRegex(),eU="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",eH=el(eU,"gu").replace(/notPunctSpace/g,eA).replace(/punctSpace/g,eM).replace(/punct/g,eT).getRegex(),e$=el(eU,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,eO).getRegex(),eB=el("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eA).replace(/punctSpace/g,eM).replace(/punct/g,eT).getRegex(),eV=el(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,eT).getRegex(),ez=el("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,eA).replace(/punctSpace/g,eM).replace(/punct/g,eT).getRegex(),ej=el(/\\(punct)/,"gu").replace(/punct/g,eT).getRegex(),eZ=el(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eW=el(eb).replace("(?:--\x3e|$)","--\x3e").getRegex(),eG=el("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eW).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eK=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,eq=el(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eK).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eY=el(/^!?\[(label)\]\[(ref)\]/).replace("label",eK).replace("ref",ev).getRegex(),eQ=el(/^!?\[(ref)\](?:\[\])?/).replace("ref",ev).getRegex(),eX=el("reflink|nolink(?!\\()","g").replace("reflink",eY).replace("nolink",eQ).getRegex(),eJ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,e1={_backpedal:es,anyPunctuation:ej,autolink:eZ,blockSkip:eP,br:eI,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:es,delLDelim:es,delRDelim:es,emStrongLDelim:eF,emStrongRDelimAst:eH,emStrongRDelimUnd:eB,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:eq,nolink:eQ,punctuation:eR,reflink:eY,reflinkSearch:eX,tag:eG,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:es},e2={...e1,link:el(/^!?\[(label)\]\((.*?)\)/).replace("label",eK).getRegex(),reflink:el(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eK).getRegex()},e0={...e1,emStrongRDelimAst:e$,emStrongLDelim:eN,delLDelim:eV,delRDelim:ez,url:el(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eJ).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:el(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eJ).getRegex()},e3={...e0,br:el(eI).replace("{2,}","*").getRegex(),text:el(e0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},e6={normal:eL,gfm:ek,pedantic:ex},e5={normal:e1,gfm:e0,breaks:e3,pedantic:e2},e4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},e9=e=>e4[e];function e8(e,t){if(t){if(ed.escapeTest.test(e))return e.replace(ed.escapeReplace,e9)}else if(ed.escapeTestNoEncode.test(e))return e.replace(ed.escapeReplaceNoEncode,e9);return e}function e7(e){try{e=encodeURI(e).replace(ed.percentDecode,"%")}catch{return null}return e}function te(e,t){let i=e.replace(ed.findPipe,(e,t,i)=>{let n=!1,r=t;for(;--r>=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(ed.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(ed.slashPipe,"|");return i}function tt(e,t,i){let n=e.length;if(0===n)return"";let r=0;for(;r<n;){let o=e.charAt(n-r-1);if(o!==t||i)if(o!==t&&i)r++;else break;else r++}return e.slice(0,n-r)}function ti(e,t,i,n,r){let o=t.href,a=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:i,href:o,title:a,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var tn=class{constructor(e){(0,r.t)(this,"options",void 0),(0,r.t)(this,"rules",void 0),(0,r.t)(this,"lexer",void 0),this.options=e||ea}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:tt(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],i=function(e,t,i){let n=e.match(i.other.indentCodeCompensation);if(null===n)return t;let r=n[1];return t.split("\n").map(e=>{let t=e.match(i.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=tt(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:tt(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=tt(t[0],"\n").split("\n"),i="",n="",r=[];for(;e.length>0;){let t=!1,o=[],a;for(a=0;a<e.length;a++)if(this.rules.other.blockquoteStart.test(e[a]))o.push(e[a]),t=!0;else if(t)break;else o.push(e[a]);e=e.slice(a);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${s}`:s,n=n?`${n}
${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,r,!0),this.lexer.state.top=c,0===e.length)break;let d=r.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let t=d.raw+"\n"+e.join("\n"),o=this.blockquote(t);r[r.length-1]=o,i=i.substring(0,i.length-d.raw.length)+o.raw,n=n.substring(0,n.length-d.text.length)+o.text;break}if(d?.type==="list"){let t=d.raw+"\n"+e.join("\n"),o=this.list(t);r[r.length-1]=o,i=i.substring(0,i.length-d.raw.length)+o.raw,n=n.substring(0,n.length-d.raw.length)+o.raw,e=t.substring(r.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:i,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),n=i.length>1,r={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),a=!1;for(;e;){let i=!1,n="",s="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=function(e,t=0){let i=t,n="";for(let t of e)if("	"===t){let e=4-i%4;n+=" ".repeat(e),i+=e}else n+=t,i++;return n}(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],d=!l.trim(),u=0;if(this.options.pedantic?(u=2,s=l.trimStart()):d?u=t[1].length+1:(u=(u=l.search(this.rules.other.nonSpaceChar))>4?1:u,s=l.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(u),i=this.rules.other.hrRegex(u),r=this.rules.other.fencesBeginRegex(u),o=this.rules.other.headingBeginRegex(u),a=this.rules.other.htmlBeginRegex(u),h=this.rules.other.blockquoteBeginRegex(u);for(;e;){let p=e.split("\n",1)[0],f;if(c=p,f=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting,"  "):c.replace(this.rules.other.tabCharGlobal,"    "),r.test(c)||o.test(c)||a.test(c)||h.test(c)||t.test(c)||i.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=u||!c.trim())s+="\n"+f.slice(u);else{if(d||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||r.test(l)||o.test(l)||i.test(l))break;s+="\n"+c}d=!c.trim(),n+=p+"\n",e=e.substring(p.length+1),l=f.slice(u)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(a=!0)),r.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),r.raw+=n}let s=r.items.at(-1);if(!s)return;for(let e of(s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),r.raw=r.raw.trimEnd(),r.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let i={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=i.checked,r.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=i.raw+e.tokens[0].raw,e.tokens[0].text=i.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(i)):e.tokens.unshift({type:"paragraph",raw:i.raw,text:i.raw,tokens:[i]}):e.tokens.unshift(i)}}if(!r.loose){let t=e.tokens.filter(e=>"space"===e.type);r.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(r.loose)for(let e of r.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return r}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=te(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<i.length;e++)o.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:o.align[e]});for(let e of r)o.rows.push(te(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=tt(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if("("===e[i])t++;else if(")"===e[i]&&--t<0)return i;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?i.slice(1):i.slice(1,-1)),ti(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let e=t[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return ti(i,e,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!i||this.rules.inline.punctuation.exec(i))){let i=[...n[0]].length-1,r,o,a=i,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=l.exec(t));){if(!(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(o=[...r].length,n[3]||n[4]){a+=o;continue}if((n[5]||n[6])&&i%3&&!((i+o)%3)){s+=o;continue}if((a-=o)>0)continue;o=Math.min(o,o+a+s);let t=[...n[0]][0].length,l=e.slice(0,i+n.index+t+o);if(Math.min(i,o)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return i&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,i=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!i||this.rules.inline.punctuation.exec(i))){let i=[...n[0]].length-1,r,o,a=i,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=s.exec(t));){if(!(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])||(o=[...r].length)!==i)continue;if(n[3]||n[4]){a+=o;continue}if((a-=o)>0)continue;o=Math.min(o,o+a);let t=[...n[0]][0].length,s=e.slice(0,i+n.index+t+o),l=s.slice(i,-i);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,i;return i="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])i="mailto:"+(e=t[0]);else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);e=t[0],i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},tr=class e{constructor(e){(0,r.t)(this,"tokens",void 0),(0,r.t)(this,"options",void 0),(0,r.t)(this,"state",void 0),(0,r.t)(this,"inlineQueue",void 0),(0,r.t)(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ea,this.options.tokenizer=this.options.tokenizer||new tn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ed,block:e6.normal,inline:e5.normal};this.options.pedantic?(t.block=e6.pedantic,t.inline=e5.pedantic):this.options.gfm&&(t.block=e6.gfm,this.options.breaks?t.inline=e5.breaks:t.inline=e5.gfm),this.tokenizer.rules=t}static get rules(){return{block:e6,inline:e5}}static lex(t,i){return new e(i).lex(t)}static lexInline(t,i){return new e(i).inlineTokens(t)}lex(e){e=e.replace(ed.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ed.tabCharGlobal,"    ").replace(ed.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let i=t.at(-1);1===n.raw.length&&void 0!==i?i.raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let i=t.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+n.raw,i.text+="\n"+n.text,this.inlineQueue.at(-1).src=i.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let i=t.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+n.raw,i.text+="\n"+n.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0,i=e.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){let o=t.at(-1);i&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let i=t.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i;this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+"["+"a".repeat(r[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,a="";for(;e;){let i;if(o||(a=""),o=!1,this.options.extensions?.inline?.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if((i=this.tokenizer.escape(e))||(i=this.tokenizer.tag(e))||(i=this.tokenizer.link(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length);let n=t.at(-1);"text"===i.type&&n?.type==="text"?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if((i=this.tokenizer.emStrong(e,n,a))||(i=this.tokenizer.codespan(e))||(i=this.tokenizer.br(e))||(i=this.tokenizer.del(e,n,a))||(i=this.tokenizer.autolink(e))||!this.state.inLink&&(i=this.tokenizer.url(e))){e=e.substring(i.raw.length),t.push(i);continue}let r=e;if(this.options.extensions?.startInline){let t=1/0,i=e.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(r)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},to=class{constructor(e){(0,r.t)(this,"options",void 0),(0,r.t)(this,"parser",void 0),this.options=e||ea}space(e){return""}code({text:e,lang:t,escaped:i}){let n=(t||"").match(ed.notSpaceStart)?.[0],r=e.replace(ed.endingNewline,"")+"\n";return n?'<pre><code class="language-'+e8(n)+'">'+(i?r:e8(r,!0))+"</code></pre>\n":"<pre><code>"+(i?r:e8(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,i=e.start,n="";for(let t=0;t<e.items.length;t++){let i=e.items[t];n+=this.listitem(i)}let r=t?"ol":"ul";return"<"+r+(t&&1!==i?' start="'+i+'"':"")+">\n"+n+"</"+r+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",i="";for(let t=0;t<e.header.length;t++)i+=this.tablecell(e.header[t]);t+=this.tablerow({text:i});let n="";for(let t=0;t<e.rows.length;t++){let r=e.rows[t];i="";for(let e=0;e<r.length;e++)i+=this.tablecell(r[e]);n+=this.tablerow({text:i})}return"<table>\n<thead>\n"+t+"</thead>\n"+(n&&=`<tbody>${n}</tbody>`)+"</table>\n"}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e8(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let n=this.parser.parseInline(i),r=e7(e);if(null===r)return n;let o='<a href="'+(e=r)+'"';return t&&(o+=' title="'+e8(t)+'"'),o+=">"+n+"</a>"}image({href:e,title:t,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let r=e7(e);if(null===r)return e8(i);e=r;let o=`<img src="${e}" alt="${e8(i)}"`;return t&&(o+=` title="${e8(t)}"`),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:e8(e.text)}},ta=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ts=class e{constructor(e){(0,r.t)(this,"options",void 0),(0,r.t)(this,"renderer",void 0),(0,r.t)(this,"textRenderer",void 0),this.options=e||ea,this.options.renderer=this.options.renderer||new to,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ta}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let i=0;i<e.length;i++){let n=e[i];if(this.options.extensions?.renderers?.[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){t+=e||"";continue}}switch(n.type){case"space":t+=this.renderer.space(n);break;case"hr":t+=this.renderer.hr(n);break;case"heading":t+=this.renderer.heading(n);break;case"code":t+=this.renderer.code(n);break;case"table":t+=this.renderer.table(n);break;case"blockquote":t+=this.renderer.blockquote(n);break;case"list":t+=this.renderer.list(n);break;case"checkbox":t+=this.renderer.checkbox(n);break;case"html":t+=this.renderer.html(n);break;case"def":t+=this.renderer.def(n);break;case"paragraph":t+=this.renderer.paragraph(n);break;case"text":t+=this.renderer.text(n);break;default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let i="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=e||"";continue}}switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"checkbox":i+=t.checkbox(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return i}},tl=(P=class{constructor(e){(0,r.t)(this,"options",void 0),(0,r.t)(this,"block",void 0),this.options=e||ea}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?tr.lex:tr.lexInline}provideParser(){return this.block?ts.parse:ts.parseInline}},(0,r.t)(P,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,r.t)(P,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),P),tc=new class{constructor(...e){(0,r.t)(this,"defaults",eo()),(0,r.t)(this,"options",this.setOptions),(0,r.t)(this,"parse",this.parseMarkdown(!0)),(0,r.t)(this,"parseInline",this.parseMarkdown(!1)),(0,r.t)(this,"Parser",ts),(0,r.t)(this,"Renderer",to),(0,r.t)(this,"TextRenderer",ta),(0,r.t)(this,"Lexer",tr),(0,r.t)(this,"Tokenizer",tn),(0,r.t)(this,"Hooks",tl),this.use(...e)}walkTokens(e,t){let i=[];for(let n of e)switch(i=i.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)i=i.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)i=i.concat(this.walkTokens(n.tokens,t));break;case"list":i=i.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);i=i.concat(this.walkTokens(r,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let i=t.renderers[e.name];i?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=i.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),i.extensions=t),e.renderer){let t=this.defaults.renderer||new to(this.defaults);for(let i in e.renderer){if(!(i in t))throw Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let n=e.renderer[i],r=t[i];t[i]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new tn(this.defaults);for(let i in e.tokenizer){if(!(i in t))throw Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let n=e.tokenizer[i],r=t[i];t[i]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new tl;for(let i in e.hooks){if(!(i in t))throw Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let n=e.hooks[i],r=t[i];tl.passThroughHooks.has(i)?t[i]=e=>{if(this.defaults.async&&tl.passThroughHooksRespectAsync.has(i))return(async()=>{let i=await n.call(t,e);return r.call(t,i)})();let o=n.call(t,e);return r.call(t,o)}:t[i]=(...e)=>{if(this.defaults.async)return(async()=>{let i=await n.apply(t,e);return!1===i&&(i=await r.apply(t,e)),i})();let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(n.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return tr.lex(e,t??this.defaults)}parser(e,t){return ts.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let n={...i},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(t):t,n=await (r.hooks?await r.hooks.provideLexer():e?tr.lex:tr.lexInline)(i,r),o=r.hooks?await r.hooks.processAllTokens(n):n;r.walkTokens&&await Promise.all(this.walkTokens(o,r.walkTokens));let a=await (r.hooks?await r.hooks.provideParser():e?ts.parse:ts.parseInline)(o,r);return r.hooks?await r.hooks.postprocess(a):a})().catch(o);try{r.hooks&&(t=r.hooks.preprocess(t));let i=(r.hooks?r.hooks.provideLexer():e?tr.lex:tr.lexInline)(t,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let n=(r.hooks?r.hooks.provideParser():e?ts.parse:ts.parseInline)(i,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(e){return o(e)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+e8(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}};function td(e,t){return tc.parse(e,t)}function tu({content:e,class:t,disallowedTags:i=[]}){return e?(0,n.v)("div",{class:t,children:(0,n.v)(n.t,{markup:function(e,t){let i=e.replace(/([^\s>])(<a\b)/gu,"$1\xa0$2").replace(/(<\/a>)([\p{L}\p{N}])/gu,"$1\xa0$2"),n=td.parse(i);var r=er.sanitize(n,{FORBID_TAGS:t});let o=new DOMParser().parseFromString(r,"text/html");for(let e of o.querySelectorAll("a"))e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer");return o.body.innerHTML}(e,i),type:"html",trim:!1})}):null}td.options=td.setOptions=function(e){return tc.setOptions(e),td.defaults=tc.defaults,ea=td.defaults,td},td.getDefaults=eo,td.defaults=ea,td.use=function(...e){return tc.use(...e),td.defaults=tc.defaults,ea=td.defaults,td},td.walkTokens=function(e,t){return tc.walkTokens(e,t)},td.parseInline=tc.parseInline,td.Parser=ts,td.parser=ts.parse,td.Renderer=to,td.TextRenderer=ta,td.Lexer=tr,td.lexer=tr.lex,td.Tokenizer=tn,td.Hooks=tl,td.parse=td,td.options,td.setOptions,td.use,td.walkTokens,td.parseInline,ts.parse,tr.lex}