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