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