1((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()})(this,function(){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0!==t)for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}})(e,t)||((e,t)=>{var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0})(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(i,t)}let bt=Object.entries,n=Object.setPrototypeOf,u=Object.isFrozen,s=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,Tt=Object.freeze,St=Object.seal,Et=Object.create,e="undefined"!=typeof Reflect&&Reflect,a=e.apply,o=e.construct,At=(Tt=Tt||function(e){return e},St=St||function(e){return e},a=a||function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)},o=o||function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},l(Array.prototype.forEach)),qt=l(Array.prototype.lastIndexOf),Nt=l(Array.prototype.pop),vt=l(Array.prototype.push),Xt=l(Array.prototype.splice),_t=Array.isArray,wt=l(String.prototype.toLowerCase),Ot=l(String.prototype.toString),Dt=l(String.prototype.match),Rt=l(String.prototype.replace),Ct=l(String.prototype.indexOf),$t=l(String.prototype.trim),Kt=l(Number.prototype.toString),Vt=l(Boolean.prototype.toString),It="undefined"==typeof BigInt?null:l(BigInt.prototype.toString),kt="undefined"==typeof Symbol?null:l(Symbol.prototype.toString),xt=l(Object.prototype.hasOwnProperty),Lt=l(Object.prototype.toString),Mt=l(RegExp.prototype.test);i=TypeError;var i;function l(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(o,e,n)}}function zt(e,r,t){var o=2<arguments.length&&void 0!==t?t:wt;if(n&&n(e,null),_t(r)){let n=r.length;for(;n--;){let t=r[n];if("string"==typeof t){let e=o(t);e!==t&&(u(r)||(r[n]=e),t=e)}e[t]=!0}}return e}function Pt(r){var o,a=Et(null);for(o of bt(r)){let e=c(o,2),t=e[0],n=e[1];xt(r,t)&&(_t(n)?a[t]=(t=>{for(let e=0;e<t.length;e++)xt(t,e)||(t[e]=null);return t})(n):n&&"object"==typeof n&&n.constructor===Object?a[t]=Pt(n):a[t]=n)}return a}function Ut(e,t){for(;null!==e;){var n=f(e,t);if(n){if(n.get)return l(n.get);if("function"==typeof n.value)return l(n.value)}e=s(e)}return function(){return null}}function Ft(e,t,n,r){return xt(e,t)&&_t(e[t])?zt(r.base?Pt(r.base):{},e[t],r.transform):n}let Ht=Tt(["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"]),jt=Tt(["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"]),Bt=Tt(["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"]),Zt=Tt(["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"]),Gt=Tt(["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"]),Jt=Tt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qt=Tt(["#text"]),en=Tt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Wt=Tt(["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","dominant-baseline","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-orientation","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"]),tn=Tt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Yt=Tt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nn=St(/{{[\w\W]*|^[\w\W]*}}/g),rn=St(/<%[\w\W]*|^[\w\W]*%>/g),on=St(/\${[\w\W]*/g),an=St(/^data-[\-\w.\u00B7-\uFFFF]+$/),ln=St(/^aria-[\-\w]+$/),cn=St(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=St(/^(?:\w+script|data):/i),sn=St(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fn=St(/^html$/i),pn=St(/^[a-z][.\w]*(-[.\w]+)+$/i),mn=St(/<[/\w!]/g),dn=St(/<[/\w]/g),hn=St(/<\/no(script|embed|frames)/i),gn=St(/\/>/i),t=function z(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;let p=e=>z(e);if(p.version="3.4.12",p.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return p.isSupported=!1,p;let o=e.document,P=o,U=P.currentScript,F=e.HTMLTemplateElement,t=e.Node,H=e.Element,a=e.NodeFilter,j=e.NamedNodeMap,B=(void 0!==j||e.NamedNodeMap||e.MozNamedAttrMap,e.DOMParser),i=e.trustedTypes,n=H.prototype,G=Ut(n,"cloneNode"),W=Ut(n,"remove"),Y=Ut(n,"nextSibling"),m=Ut(n,"childNodes"),c=Ut(n,"parentNode"),q=Ut(n,"shadowRoot"),X=Ut(n,"attributes"),d=t&&t.prototype?Ut(t.prototype,"nodeType"):null,h=t&&t.prototype?Ut(t.prototype,"nodeName"):null;if("function"==typeof F){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}function $(){return oe||(re=((e,t)=>{if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
1var r="data-tt-policy-suffix",t="dompurify"+((n=t&&t.hasAttribute(r)?t.getAttribute(r):n)?"#"+n:"");try{return e.createPolicy(t,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+t+" could not be created."),null}})(i,U),oe=!0),re}function K(e){return e instanceof RegExp||e instanceof Function}function V(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!k||k!==t){t=Pt(t=t&&"object"==typeof t?t:{}),C=-1===et.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,I="application/xhtml+xml"===C?Ot:wt,E=Ft(t,"ALLOWED_TAGS",Ee,{transform:I}),A=Ft(t,"ALLOWED_ATTR",Ae,{transform:I}),Xe=Ft(t,"ALLOWED_NAMESPACES",$e,{transform:Ot}),Be=Ft(t,"ADD_URI_SAFE_ATTR",Ge,{transform:I,base:Ge}),He=Ft(t,"ADD_DATA_URI_TAGS",je,{transform:I,base:je}),f=Ft(t,"FORBID_CONTENTS",Fe,{transform:I}),N=Ft(t,"FORBID_TAGS",Pt({}),{transform:I}),Ne=Ft(t,"FORBID_ATTR",Pt({}),{transform:I}),r=!!xt(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Pt(t.USE_PROFILES):t.USE_PROFILES),ve=!1!==t.ALLOW_ARIA_ATTR,_e=!1!==t.ALLOW_DATA_ATTR,we=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,v=t.SAFE_FOR_TEMPLATES||!1,_=!1!==t.SAFE_FOR_XML,w=t.WHOLE_DOCUMENT||!1,O=t.RETURN_DOM||!1,ke=t.RETURN_DOM_FRAGMENT||!1,xe=t.RETURN_TRUSTED_TYPE||!1,Ie=t.FORCE_BODY||!1,Le=!1!==t.SANITIZE_DOM,Me=t.SANITIZE_NAMED_PROPS||!1,Pe=!1!==t.KEEP_CONTENT,Ue=t.IN_PLACE||!1,Se=(e=>{try{return Mt(e,""),1}catch(e){}})(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:cn,R="string"==typeof t.NAMESPACE?t.NAMESPACE:D,Ve=xt(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Pt(t.MATHML_TEXT_INTEGRATION_POINTS):zt({},Ke),Je=xt(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Pt(t.HTML_INTEGRATION_POINTS):zt({},Ze);let e=xt(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Pt(t.CUSTOM_ELEMENT_HANDLING):Et(null);if(u=Et(null),xt(e,"tagNameCheck")&&K(e.tagNameCheck)&&(u.tagNameCheck=e.tagNameCheck),xt(e,"attributeNameCheck")&&K(e.attributeNameCheck)&&(u.attributeNameCheck=e.attributeNameCheck),xt(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(u.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),St(u),v&&(_e=!1),ke&&(O=!0),r&&(E=zt({},Qt),A=Et(null),!0===r.html&&(zt(E,Ht),zt(A,en)),!0===r.svg&&(zt(E,jt),zt(A,Wt),zt(A,Yt)),!0===r.svgFilters&&(zt(E,Bt),zt(A,Wt),zt(A,Yt)),!0===r.mathMl)&&(zt(E,Gt),zt(A,tn),zt(A,Yt)),s.tagCheck=null,s.attributeCheck=null,xt(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?s.tagCheck=t.ADD_TAGS:_t(t.ADD_TAGS)&&zt(E=E===Ee?Pt(E):E,t.ADD_TAGS,I)),xt(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?s.attributeCheck=t.ADD_ATTR:_t(t.ADD_ATTR)&&zt(A=A===Ae?Pt(A):A,t.ADD_ATTR,I)),xt(t,"ADD_URI_SAFE_ATTR")&&_t(t.ADD_URI_SAFE_ATTR)&&zt(Be,t.ADD_URI_SAFE_ATTR,I),xt(t,"FORBID_CONTENTS")&&_t(t.FORBID_CONTENTS)&&zt(f=f===Fe?Pt(f):f,t.FORBID_CONTENTS,I),xt(t,"ADD_FORBID_CONTENTS")&&_t(t.ADD_FORBID_CONTENTS)&&zt(f=f===Fe?Pt(f):f,t.ADD_FORBID_CONTENTS,I),Pe&&(E["#text"]=!0),w&&zt(E,["html","head","body"]),E.table&&(zt(E,["tbody"]),delete N.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let e=y;y=t.TRUSTED_TYPES_POLICY;try{b=T("")}catch(t){throw y=e,t}}else null===t.TRUSTED_TYPES_POLICY?(y=void 0,b=""):(y=void 0===y?$():y)&&"string"==typeof b&&(b=T(""));Tt&&Tt(t),k=t}}function Z(e){let t=c(e);t&&t.tagName||(t={namespaceURI:R,tagName:"template"});var n,r,o,a,i=wt(e.tagName),l=wt(t.tagName);return!!Xe[e.namespaceURI]&&(e.namespaceURI===Ye?(r=i,o=t,a=l,o.namespaceURI===D?"svg"===r:o.namespaceURI===We?"svg"===r&&("annotation-xml"===a||Ve[a]):Boolean(nt[r])):e.namespaceURI===We?(o=i,a=t,r=l,a.namespaceURI===D?"math"===o:a.namespaceURI===Ye?"math"===o&&Je[r]:Boolean(rt[o])):e.namespaceURI===D?(i=i,n=t,l=l,!(n.namespaceURI===Ye&&!Je[l])&&!(n.namespaceURI===We&&!Ve[l])&&!rt[i]&&(Qe[i]||!nt[i])):!("application/xhtml+xml"!==C||!Xe[e.namespaceURI]))}function J(t){Q(t);var e=m(t);if(e){let t=[];At(e,e=>{vt(t,e)}),At(t,e=>{try{W(e)}catch(e){}})}var n=X(t);if(n)for(let e=n.length-1;0<=e;--e){var r=n[e],r=r&&r.name;if("string"==typeof r)try{t.removeAttribute(r)}catch(t){}}}function Q(e){for(var t=[e];0<t.length;){let e=t.pop();1===(d?d(e):e.nodeType)&&at(e);var n=m(e);if(n)for(let e=n.length-1;0<=e;--e)t.push(n[e])}}function ee(t){let e=null,n=null;if(Ie)t="<remove></remove>"+t;else{let e=Dt(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===C&&R===D&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var r=y?T(t):t;if(R===D)try{e=(new B).parseFromString(r,C)}catch(t){}if(!e||!e.documentElement){e=le.createDocument(R,"template",null);try{e.documentElement.innerHTML=qe?b:r}catch(t){}}return r=e.body||e.documentElement,t&&n&&r.insertBefore(o.createTextNode(n),r.childNodes[0]||null),R===D?se.call(e,w?"html":"body")[0]:w?e.documentElement:r}function te(e){return e=Rt(e,pe," "),e=Rt(e,me," "),Rt(e,de," ")}function ne(e){e.normalize();var t=ce.call(e.ownerDocument||e,e,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;)n.data=te(n.data),n=t.nextNode();var r=null==(r=e.querySelectorAll)?void 0:r.call(e,"template");r&&At(r,e=>{L(e.content)&&ne(e.content)})}function g(e){if(!d||"object"!=typeof e||null===e)return!1;try{return"number"==typeof d(e)}catch(e){return!1}}let y,re,b="",oe=!1,l=0,ae=function(){if(0<l)throw yt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},T=function(e){ae(),l++;try{return y.createHTML(e)}finally{l--}},ie=o,le=ie.implementation,ce=ie.createNodeIterator,ue=ie.createDocumentFragment,se=ie.getElementsByTagName,fe=P.importNode,S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]},pe=(p.isSupported="function"==typeof bt&&"function"==typeof c&&le&&void 0!==le.createHTMLDocument,nn),me=rn,de=on,he=an,ge=ln,ye=un,be=sn,Te=pn,Se=cn,E=null,Ee=zt({},[...Ht,...jt,...Bt,...Gt,...Qt]),A=null,Ae=zt({},[...en,...Wt,...tn,...Yt]),u=Object.seal(Et(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}}
1)),N=null,Ne=null,s=Object.seal(Et(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ve=!0,_e=!0,we=!1,Oe=!0,v=!1,_=!0,w=!1,De=!1,Re=null,Ce=null,Ie=!1,O=!1,ke=!1,xe=!1,Le=!0,Me=!1,ze="user-content-",Pe=!0,Ue=!1,r={},f=null,Fe=zt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),He=null,je=zt({},["audio","video","img","source","image","track"]),Be=null,Ge=zt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",D="http://www.w3.org/1999/xhtml",R=D,qe,Xe=null,$e=zt({},[We,Ye,D],Ot),Ke=Tt(["mi","mo","mn","ms","mtext"]),Ve=zt({},Ke),Ze=Tt(["annotation-xml"]),Je=zt({},Ze),Qe=zt({},["title","style","font","a","script"]),C=null,et=["application/xhtml+xml","text/html"],I=null,k=null,tt=o.createElement("form"),nt=zt({},[...jt,...Bt,...Zt]),rt=zt({},[...Gt,...Jt]),x=function(t){vt(p.removed,{element:t});try{c(t).removeChild(t)}catch(e){if(W(t),!c(t))throw yt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ot=function(e,t){try{vt(p.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){vt(p.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(O||ke)try{x(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},at=function(t){var n=X(t);if(n)for(let e=n.length-1;0<=e;--e){var r=n[e],r=r&&r.name;if("string"==typeof r&&!A[I(r)])try{t.removeAttribute(r)}catch(t){}}},it=function(e){return ce.call(e.ownerDocument||e,e,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},lt=function(e){var t=h?h(e):null;return"string"==typeof t&&"form"===I(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==X(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==d(e)||e.childNodes!==m(e))},L=function(e){if(!d||"object"!=typeof e||null===e)return!1;try{return 11===d(e)}catch(e){return!1}};function M(e,t,n){0!==e.length&&At(e,e=>{e.call(p,t,n,k)})}function ct(e,t,n){if(Ne[t])return!1;if(_&&"patchsrc"===t)return!1;if(_&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(Le&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;var r=A[t]||s.attributeCheck instanceof Function&&s.attributeCheck(t,e);if(!(_e&&Mt(he,t)||ve&&Mt(ge,t)))if(r){if(!Be[t]&&!Mt(Se,Rt(n,be,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ct(n,"data:")||!He[e])&&(!we||Mt(ye,Rt(n,be,"")))&&n)return!1}else if(!(mt(e)&&(u.tagNameCheck instanceof RegExp&&Mt(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&Mt(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||"is"===t&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&Mt(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1;return!0}function ut(e,t,n,r){if(y&&"object"==typeof i&&"function"==typeof i.getAttributeType&&!n)switch(i.getAttributeType(e,t)){case"TrustedHTML":return T(r);case"TrustedScriptURL":var o=r;ae(),l++;try{return y.createScriptURL(o)}finally{l--}return}return r}function st(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),lt(e)?x(e):Nt(p.removed)}catch(n){ot(t,e)}}let ft=function(t,e){if(M(S.beforeSanitizeElements,t,null),t!==e&&null===c(t))return!0;if(lt(t))return x(t),!0;var n,r=I(h?h(t):t.nodeName);if(M(S.uponSanitizeElement,t,{tagName:r,allowedTags:E}),t!==e&&null===c(t))return!0;if(e=t,n=r,_&&e.hasChildNodes()&&!g(e.firstElementChild)&&Mt(mn,e.textContent)&&Mt(mn,e.innerHTML)||_&&e.namespaceURI===D&&"style"===n&&g(e.firstElementChild)||7===e.nodeType||_&&8===e.n
1odeType&&Mt(dn,e.data))return x(t),!0;if(N[r]||!(s.tagCheck instanceof Function&&s.tagCheck(r))&&!E[r]){let e=((r,e)=>{if(!N[e]&&mt(e)){if(u.tagNameCheck instanceof RegExp&&Mt(u.tagNameCheck,e))return!1;if(u.tagNameCheck instanceof Function&&u.tagNameCheck(e))return!1}if(Pe&&!f[e]){let t=c(r),n=m(r);if(n&&t)for(let e=n.length-1;0<=e;--e){var o=Ue?n[e]:G(n[e],!0);t.insertBefore(o,Y(r))}}return x(r),!0})(t,r);return!1===e&&M(S.afterSanitizeElements,t,null),e}if(1===(d?d(t):t.nodeType)&&!Z(t))return x(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&Mt(hn,t.innerHTML))return x(t),!0;if(v&&3===t.nodeType){let e=te(t.textContent);t.textContent!==e&&(vt(p.removed,{element:t.cloneNode()}),t.textContent=e)}return M(S.afterSanitizeElements,t,null),!1},pt=zt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),mt=function(e){return!pt[wt(e)]&&Mt(Te,e)},dt=function(n){M(S.beforeSanitizeAttributes,n,null);var r=n.attributes;if(r&&!lt(n)){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0};let t=r.length;for(var a=I(n.nodeName);t--;){var i=r[t],l=i.name,c=i.namespaceURI,i=i.value,u=I(l);let e="value"===l?i:$t(i);o.attrName=u,o.attrValue=e,o.keepAttr=!0,o.forceKeepAttr=void 0,M(S.uponSanitizeAttribute,n,o),e=o.attrValue,!Me||"id"!==u&&"name"!==u||0===Ct(e,ze)||(ot(l,n),e=ze+e),_&&Mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e)||"attributename"===u&&Dt(e,"href")?ot(l,n):o.forceKeepAttr||(o.keepAttr&&(Oe||!Mt(gn,e))&&(v&&(e=te(e)),ct(a,u,e))?(e=ut(a,u,c,e))!==i&&st(n,l,c,e):ot(l,n))}M(S.afterSanitizeAttributes,n,null)}},ht=function(e){var t,n=it(e);for(M(S.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(M(S.uponSanitizeShadowNode,t,null),ft(t,e),dt(t),L(t.content)&&ht(t.content),1===(d?d(t):t.nodeType)){let e=q(t);L(e)&&(gt(e),ht(e))}M(S.afterSanitizeShadowDOM,e,null)},gt=function(e){for(var t=[{node:e,shadow:null}];0<t.length;){let e=t.pop();if(e.shadow)ht(e.shadow);else{var n=e.node,r=1===(d?d(n):n.nodeType),o=m(n);if(o)for(let e=o.length-1;0<=e;--e)t.push({node:o[e],shadow:null});if(r){let e=h?h(n):null;if("string"==typeof e&&"template"===I(e)){let e=n.content;L(e)&&t.push({node:e,shadow:null})}}if(r){let e=q(n);L(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}}};return p.sanitize=function(n){let e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=null,r,o,a=null;if("string"!=typeof(n=(qe=!n)?"\x3c!--\x3e":n)&&!g(n)&&"string"!=typeof(n=(e=>{switch(typeof e){case"string":return e;case"number":return Kt(e);case"boolean":return Vt(e);case"bigint":return It?It(e):"0";case"symbol":return kt?kt(e):"Symbol()";case"undefined":default:return Lt(e);case"function":case"object":if(null===e)return Lt(e);var t=e,n=Ut(t,"toString");if("function"!=typeof n)return Lt(e);{let e=n(t);return"string"==typeof e?e:Lt(e)}}})(n)))throw yt("dirty is not a string, aborting");if(!p.isSupported)return n;De?(E=Re,A=Ce):V(e),(0<S.uponSanitizeElement.length||0<S.uponSanitizeAttribute.length)&&(E=Pt(E)),0<S.uponSanitizeAttribute.length&&(A=Pt(A)),p.removed=[];var i=Ue&&"string"!=typeof n&&g(n);if(i){var l=n;if(_){let t=[l];for(;0<t.length;){let n=t.pop(),e=d?d(n):n.nodeType;if(7===e||8===e&&Mt(dn,n.data))try{W(n)}catch(l){}else{if(1===e){let e=n,t=I(h?h(n):n.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(l){}}var c=m(n);if(c)for(let e=c.length-1;0<=e;--e)t.push(c[e])}}}let t=h?h(n):n.nodeName;if("string"==typeof t){let e=I(t);if(!E[e]||N[e])throw J(n),yt("root node is forbidden and cannot be sanitized in-place")}if(lt(n))throw J(n),yt("root node is clobbered and cannot be sanitized in-place");try{gt(n)}catch(e){throw J(n),e}}else if(g(n))1===(r=(t=ee("\x3c!----\x3e")).ownerDocument.importNode(n,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r),gt(r);else{if(!O&&!v&&!w&&-1===n.indexOf("<"))return y&&xe?T(n):n;if(!(t=ee(n)))return O?null:xe?b:""}t&&Ie&&x(t.firstChild);var u=i?n:t,s=it(u);try{for(;o=s.nextNode();)ft(o,u),dt(o),L(o.content)&&ht(o.content)}
1catch(e){throw i&&(J(n),At(p.removed,e=>{e.element&&Q(e.element)})),e}if(i)return At(p.removed,e=>{e.element&&Q(e.element)}),v&&ne(n),n;if(O){if(v&&ne(t),ke)for(a=ue.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return a=A.shadowroot||A.shadowrootmode?fe.call(P,a,!0):a}let f=w?t.outerHTML:t.innerHTML;return w&&E["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&Mt(fn,t.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+f),v&&(f=te(f)),y&&xe?T(f):f},p.setConfig=function(){V(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),De=!0,Re=E,Ce=A},p.clearConfig=function(){k=null,De=!1,Re=null,Ce=null,y=re,b=""},p.isValidAttribute=function(e,t,n){k||V({});e=I(e),t=I(t);return ct(e,t,n)},p.addHook=function(e,t){"function"==typeof t&&xt(S,e)&&vt(S[e],t)},p.removeHook=function(e,t){if(xt(S,e))return void 0!==t?-1===(t=qt(S[e],t))?void 0:Xt(S[e],t,1)[0]:Nt(S[e])},p.removeHooks=function(e){xt(S,e)&&(S[e]=[])},p.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},p}();return t});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.