/*! @license DOMPurify 2.5.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.4/LICENSE */function x(r){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},x(r)}function Pe(r,n){return Pe=Object.setPrototypeOf||function(u,c){return u.__proto__=c,u},Pe(r,n)}function Wt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ue(r,n,o){return Wt()?ue=Reflect.construct:ue=function(c,S,g){var D=[null];D.push.apply(D,S);var k=Function.bind.apply(c,D),X=new k;return g&&Pe(X,g.prototype),X},ue.apply(null,arguments)}function N(r){return Bt(r)||$t(r)||jt(r)||Xt()}function Bt(r){if(Array.isArray(r))return Fe(r)}function $t(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function jt(r,n){if(!!r){if(typeof r=="string")return Fe(r,n);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Fe(r,n)}}function Fe(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,u=new Array(n);o1?o-1:0),c=1;c/gm),or=O(/\${[\w\W]*}/gm),lr=O(/^data-[\-\w.\u00B7-\uFFFF]/),sr=O(/^aria-[\-\w]+$/),ur=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fr=O(/^(?:\w+script|data):/i),cr=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pr=O(/^html$/i),mr=O(/^[a-z][.\w]*(-[.\w]+)+$/i),_r=function(){return typeof window>"u"?null:window},dr=function(n,o){if(x(n)!=="object"||typeof n.createPolicy!="function")return null;var u=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(u=o.currentScript.getAttribute(c));var S="dompurify"+(u?"#"+u:"");try{return n.createPolicy(S,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch{return console.warn("TrustedTypes policy "+S+" could not be created."),null}};function Et(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r(),n=function(e){return Et(e)};if(n.version="2.5.4",n.removed=[],!r||!r.document||r.document.nodeType!==9)return n.isSupported=!1,n;var o=r.document,u=r.document,c=r.DocumentFragment,S=r.HTMLTemplateElement,g=r.Node,D=r.Element,k=r.NodeFilter,X=r.NamedNodeMap,At=X===void 0?r.NamedNodeMap||r.MozNamedAttrMap:X,yt=r.HTMLFormElement,gt=r.DOMParser,J=r.trustedTypes,Q=D.prototype,St=le(Q,"cloneNode"),bt=le(Q,"nextSibling"),Ot=le(Q,"childNodes"),Y=le(Q,"parentNode");if(typeof S=="function"){var pe=u.createElement("template");pe.content&&pe.content.ownerDocument&&(u=pe.content.ownerDocument)}var L=dr(J,o),me=L?L.createHTML(""):"",ee=u,_e=ee.implementation,Rt=ee.createNodeIterator,Lt=ee.createDocumentFragment,Mt=ee.getElementsByTagName,Nt=o.importNode,He={};try{He=H(u).documentMode?u.documentMode:{}}catch{}var C={};n.isSupported=typeof Y=="function"&&_e&&_e.createHTMLDocument!==void 0&&He!==9;var de=nr,Te=ir,ve=or,Dt=lr,Ct=sr,wt=fr,ze=cr,It=mr,he=ur,p=null,Ge=s({},[].concat(N(_t),N(we),N(Ie),N(xe),N(dt))),m=null,We=s({},[].concat(N(Tt),N(ke),N(vt),N(se))),f=Object.seal(Object.create(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}})),V=null,Ee=null,Be=!0,Ae=!0,$e=!1,je=!0,z=!1,ye=!0,P=!1,ge=!1,Se=!1,G=!1,te=!1,re=!1,Xe=!0,Ye=!1,xt="user-content-",be=!0,q=!1,W={},B=null,Ve=s({},["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"]),qe=null,Ke=s({},["audio","video","img","source","image","track"]),Oe=null,Ze=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",$=w,Re=!1,Le=null,kt=s({},[ae,ne,w],De),F,Pt=["application/xhtml+xml","text/html"],Ft="text/html",_,j=null,Je=255,Ut=u.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){j&&j===e||((!e||x(e)!=="object")&&(e={}),e=H(e),F=Pt.indexOf(e.PARSER_MEDIA_TYPE)===-1?F=Ft:F=e.PARSER_MEDIA_TYPE,_=F==="application/xhtml+xml"?De:fe,p="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,_):Ge,m="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,_):We,Le="ALLOWED_NAMESPACES"in e?s({},e.ALLOWED_NAMESPACES,De):kt,Oe="ADD_URI_SAFE_ATTR"in e?s(H(Ze),e.ADD_URI_SAFE_ATTR,_):Ze,qe="ADD_DATA_URI_TAGS"in e?s(H(Ke),e.ADD_DATA_URI_TAGS,_):Ke,B="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,_):Ve,V="FORBID_TAGS"in e?s({},e.FORBID_TAGS,_):{},Ee="FORBID_ATTR"in e?s({},e.FORBID_ATTR,_):{},W="USE_PROFILES"in e?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,$e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=e.SAFE_FOR_TEMPLATES||!1,ye=e.SAFE_FOR_XML!==!1,P=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,Ye=e.SANITIZE_NAMED_PROPS||!1,be=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||he,$=e.NAMESPACE||w,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(Ae=!1),te&&(G=!0),W&&(p=s({},N(dt)),m=[],W.html===!0&&(s(p,_t),s(m,Tt)),W.svg===!0&&(s(p,we),s(m,ke),s(m,se)),W.svgFilters===!0&&(s(p,Ie),s(m,ke),s(m,se)),W.mathMl===!0&&(s(p,xe),s(m,vt),s(m,se))),e.ADD_TAGS&&(p===Ge&&(p=H(p)),s(p,e.ADD_TAGS,_)),e.ADD_ATTR&&(m===We&&(m=H(m)),s(m,e.ADD_ATTR,_)),e.ADD_URI_SAFE_ATTR&&s(Oe,e.ADD_URI_SAFE_ATTR,_),e.FORBID_CONTENTS&&(B===Ve&&(B=H(B)),s(B,e.FORBID_CONTENTS,_)),be&&(p["#text"]=!0),P&&s(p,["html","head","body"]),p.table&&(s(p,["tbody"]),delete V.tbody),h&&h(e),j=e)},et=s({},["mi","mo","mn","ms","mtext"]),tt=s({},["foreignobject","annotation-xml"]),Ht=s({},["title","style","font","a","script"]),ie=s({},we);s(ie,Ie),s(ie,rr);var Ne=s({},xe);s(Ne,ar);var zt=function(e){var t=Y(e);(!t||!t.tagName)&&(t={namespaceURI:$,tagName:"template"});var a=fe(e.tagName),l=fe(t.tagName);return Le[e.namespaceURI]?e.namespaceURI===ne?t.namespaceURI===w?a==="svg":t.namespaceURI===ae?a==="svg"&&(l==="annotation-xml"||et[l]):Boolean(ie[a]):e.namespaceURI===ae?t.namespaceURI===w?a==="math":t.namespaceURI===ne?a==="math"&&tt[l]:Boolean(Ne[a]):e.namespaceURI===w?t.namespaceURI===ne&&!tt[l]||t.namespaceURI===ae&&!et[l]?!1:!Ne[a]&&(Ht[a]||!ie[a]):!!(F==="application/xhtml+xml"&&Le[e.namespaceURI]):!1},E=function(e){Z(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=me}catch{e.remove()}}},oe=function(e,t){try{Z(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!m[e])if(G||te)try{E(t)}catch{}else try{t.setAttribute(e,"")}catch{}},rt=function(e){var t,a;if(Se)e=""+e;else{var l=pt(e,/^[\r\n\t ]+/);a=l&&l[0]}F==="application/xhtml+xml"&&$===w&&(e=''+e+"");var A=L?L.createHTML(e):e;if($===w)try{t=new gt().parseFromString(A,F)}catch{}if(!t||!t.documentElement){t=_e.createDocument($,"template",null);try{t.documentElement.innerHTML=Re?me:A}catch{}}var v=t.body||t.documentElement;return e&&a&&v.insertBefore(u.createTextNode(a),v.childNodes[0]||null),$===w?Mt.call(t,P?"html":"body")[0]:P?t.documentElement:v},at=function(e){return Rt.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null,!1)},nt=function(e){return e instanceof yt&&(typeof e.__depth<"u"&&typeof e.__depth!="number"||typeof e.__removalCount<"u"&&typeof e.__removalCount!="number"||typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof At)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},K=function(e){return x(g)==="object"?e instanceof g:e&&x(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},I=function(e,t,a){!C[e]||Jt(C[e],function(l){l.call(n,t,a,j)})},it=function(e){var t;if(I("beforeSanitizeElements",e,null),nt(e)||T(/[\u0080-\uFFFF]/,e.nodeName))return E(e),!0;var a=_(e.nodeName);if(I("uponSanitizeElement",e,{tagName:a,allowedTags:p}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent)||a==="select"&&T(/