(()=>{var ce=["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","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","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","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"],ve=["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"],he=["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"],Te=["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"],Ae=["#text"],_e=["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"],q=["accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","fill","fill-opacity","fill-rule","filter","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","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","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","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"],ge=["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","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"],M=["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"];function o(a,n){for(var s=n.length;s--;)typeof n[s]=="string"&&(n[s]=n[s].toLowerCase()),a[n[s]]=!0;return a}function ye(a){var n={},s=void 0;for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s]);return n}var We=/\{\{[\s\S]*|[\s\S]*\}\}/gm,Be=/<%[\s\S]*|[\s\S]*%>/gm,Ge=/^data-[\-\w.\u00B7-\uFFFF]/,$e=/^aria-[\-\w]+$/,qe=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,Ve=/^(?:\w+script|data):/i,Xe=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function c(a){if(Array.isArray(a)){for(var n=0,s=Array(a.length);n<a.length;n++)s[n]=a[n];return s}else return Array.from(a)}var Ye=function(){return typeof window>"u"?null:window};function Ee(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye(),n=function(e){return Ee(e)};if(n.version="1.0.8",n.removed=[],!a||!a.document||a.document.nodeType!==9)return n.isSupported=!1,n;var s=a.document,V=!1,X=!1,T=a.document,Y=a.DocumentFragment,be=a.HTMLTemplateElement,b=a.Node,O=a.NodeFilter,j=a.NamedNodeMap,Oe=j===void 0?a.NamedNodeMap||a.MozNamedAttrMap:j,Se=a.Text,Re=a.Comment,Le=a.DOMParser;if(typeof be=="function"){var C=T.createElement("template");C.content&&C.content.ownerDocument&&(T=C.content.ownerDocument)}var S=T,k=S.implementation,De=S.createNodeIterator,we=S.getElementsByTagName,Me=S.createDocumentFragment,xe=s.importNode,d={};n.isSupported=k&&typeof k.createHTMLDocument<"u"&&T.documentMode!==9;var K=We,J=Be,Ce=Ge,ke=$e,Ie=Ve,Q=Xe,I=qe,f=null,Z=o({},[].concat(c(ce),c(ve),c(he),c(Te),c(Ae))),u=null,ee=o({},[].concat(c(_e),c(q),c(ge),c(M))),F=null,N=null,te=!0,H=!0,re=!1,ie=!1,R=!1,y=!1,z=!1,U=!1,E=!1,P=!1,ae=!1,ne=!0,W=!0,L=!1,_={},Fe=o({},["audio","head","math","script","style","template","svg","video"]),Ne=o({},["audio","video","img","source","image"]),oe=o({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),D=null,He=T.createElement("form"),B=function(e){(typeof e>"u"?"undefined":x(e))!=="object"&&(e={}),f="ALLOWED_TAGS"in e?o({},e.ALLOWED_TAGS):Z,u="ALLOWED_ATTR"in e?o({},e.ALLOWED_ATTR):ee,F="FORBID_TAGS"in e?o({},e.FORBID_TAGS):{},N="FORBID_ATTR"in e?o({},e.FORBID_ATTR):{},_="USE_PROFILES"in e?e.USE_PROFILES:!1,te=e.ALLOW_ARIA_ATTR!==!1,H=e.ALLOW_DATA_ATTR!==!1,re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=e.SAFE_FOR_JQUERY||!1,R=e.SAFE_FOR_TEMPLATES||!1,y=e.WHOLE_DOCUMENT||!1,E=e.RETURN_DOM||!1,P=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_DOM_IMPORT||!1,U=e.FORCE_BODY||!1,ne=e.SANITIZE_DOM!==!1,W=e.KEEP_CONTENT!==!1,L=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||I,R&&(H=!1),P&&(E=!0),_&&(f=o({},[].concat(c(Ae))),u=[],_.html===!0&&(o(f,ce),o(u,_e)),_.svg===!0&&(o(f,ve),o(u,q),o(u,M)),_.svgFilters===!0&&(o(f,he),o(u,q),o(u,M)),_.mathMl===!0&&(o(f,Te),o(u,ge),o(u,M))),e.ADD_TAGS&&(f===Z&&(f=ye(f)),o(f,e.ADD_TAGS)),e.ADD_ATTR&&(u===ee&&(u=ye(u)),o(u,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&o(oe,e.ADD_URI_SAFE_ATTR),W&&(f["#text"]=!0),y&&o(f,["html","head","body"]),f.table&&o(f,["tbody"]),Object&&"freeze"in Object&&Object.freeze(e),D=e},G=function(e){n.removed.push({element:e});try{e.parentNode.removeChild(e)}catch{e.outerHTML=""}},$=function(e,t){try{n.removed.push({attribute:t.getAttributeNode(e),from:t})}catch{n.removed.push({attribute:null,from:t})}t.removeAttribute(e)},w=function(e){var t=void 0,i=void 0;if(U)e="<remove></remove>"+e;else{var l=e.match(/^[\s]+/);i=l&&l[0],i&&(e=e.slice(i.length))}if(V)try{t=new Le().parseFromString(e,"text/html")}catch{}if(X&&o(F,["title"]),!t||!t.documentElement){t=k.createHTMLDocument("");var h=t,m=h.body;m.parentNode.removeChild(m.parentNode.firstElementChild),m.outerHTML=e}return i&&t.body.insertBefore(T.createTextNode(i),t.body.childNodes[0]||null),we.call(t,y?"html":"body")[0]};n.isSupported&&(function(){try{var r=w('<svg><p><style><img src="</style><img src=x onerror=alert(1)//">');r.querySelector("svg img")&&(V=!0)}catch{}}(),function(){try{var r=w("<x/><title></title><img>");r.querySelector("title").textContent.match(/<\/title/)&&(X=!0)}catch{}}());var le=function(e){return De.call(e.ownerDocument||e,e,O.SHOW_ELEMENT|O.SHOW_COMMENT|O.SHOW_TEXT,function(){return O.FILTER_ACCEPT},!1)},ze=function(e){return e instanceof Se||e instanceof Re?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Oe)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"},se=function(e){return(typeof b>"u"?"undefined":x(b))==="object"?e instanceof b:e&&(typeof e>"u"?"undefined":x(e))==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},v=function(e,t,i){!d[e]||d[e].forEach(function(l){l.call(n,t,i,D)})},fe=function(e){var t=void 0;if(v("beforeSanitizeElements",e,null),ze(e))return G(e),!0;var i=e.nodeName.toLowerCase();if(v("uponSanitizeElement",e,{tagName:i,allowedTags:f}),!f[i]||F[i]){if(W&&!Fe[i]&&typeof e.insertAdjacentHTML=="function")try{e.insertAdjacentHTML("AfterEnd",e.innerHTML)}catch{}return G(e),!0}return ie&&!e.firstElementChild&&(!e.content||!e.content.firstElementChild)&&/</g.test(e.textContent)&&(n.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),R&&e.nodeType===3&&(t=e.textContent,t=t.replace(K," "),t=t.replace(J," "),e.textContent!==t&&(n.removed.push({element:e.cloneNode()}),e.textContent=t)),v("afterSanitizeElements",e,null),!1},ue=function(e,t,i){if(ne&&(t==="id"||t==="name")&&(i in T||i in He))return!1;if(R&&(i=i.replace(K," "),i=i.replace(J," ")),!(H&&Ce.test(t))){if(!(te&&ke.test(t))){if(!u[t]||N[t])return!1;if(!oe[t]){if(!I.test(i.replace(Q,""))){if(!((t==="src"||t==="xlink:href")&&e!=="script"&&i.indexOf("data:")===0&&Ne[e])){if(!(re&&!Ie.test(i.replace(Q,"")))){if(i)return!1}}}}}}return!0},me=function(e){var t=void 0,i=void 0,l=void 0,h=void 0,m=void 0;v("beforeSanitizeAttributes",e,null);var p=e.attributes;if(!!p){var g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:u};for(m=p.length;m--;){t=p[m];var pe=t,A=pe.name,de=pe.namespaceURI;if(i=t.value.trim(),l=A.toLowerCase(),g.attrName=l,g.attrValue=i,g.keepAttr=!0,v("uponSanitizeAttribute",e,g),i=g.attrValue,l==="name"&&e.nodeName==="IMG"&&p.id)h=p.id,p=Array.prototype.slice.apply(p),$("id",e),$(A,e),p.indexOf(h)>m&&e.setAttribute("id",h.value);else{if(e.nodeName==="INPUT"&&l==="type"&&i==="file"&&(u[l]||!N[l]))continue;A==="id"&&e.setAttribute(A,""),$(A,e)}if(!!g.keepAttr){var Pe=e.nodeName.toLowerCase();if(!!ue(Pe,l,i))try{de?e.setAttributeNS(de,A,i):e.setAttribute(A,i),n.removed.pop()}catch{}}}v("afterSanitizeAttributes",e,null)}},Ue=function r(e){var t=void 0,i=le(e);for(v("beforeSanitizeShadowDOM",e,null);t=i.nextNode();)v("uponSanitizeShadowNode",t,null),!fe(t)&&(t.content instanceof Y&&r(t.content),me(t));v("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(r,e){var t=void 0,i=void 0,l=void 0,h=void 0,m=void 0;if(r||(r="<!-->"),typeof r!="string"&&!se(r)){if(typeof r.toString!="function")throw new TypeError("toString is not a function");if(r=r.toString(),typeof r!="string")throw new TypeError("dirty is not a string, aborting")}if(!n.isSupported){if(x(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof r=="string")return a.toStaticHTML(r);if(se(r))return a.toStaticHTML(r.outerHTML)}return r}if(z||B(e),n.removed=[],!L)if(r instanceof b)t=w("<!-->"),i=t.ownerDocument.importNode(r,!0),i.nodeType===1&&i.nodeName==="BODY"?t=i:t.appendChild(i);else{if(!E&&!y&&r.indexOf("<")===-1)return r;if(t=w(r),!t)return E?null:""}t&&U&&G(t.firstChild);for(var p=le(L?r:t);l=p.nextNode();)l.nodeType===3&&l===h||fe(l)||(l.content instanceof Y&&Ue(l.content),me(l),h=l);if(L)return r;if(E){if(P)for(m=Me.call(t.ownerDocument);t.firstChild;)m.appendChild(t.firstChild);else m=t;return ae&&(m=xe.call(s,m,!0)),m}return y?t.outerHTML:t.innerHTML},n.setConfig=function(r){B(r),z=!0},n.clearConfig=function(){D=null,z=!1},n.isValidAttribute=function(r,e,t){D||B({});var i=r.toLowerCase(),l=e.toLowerCase();return ue(i,l,t)},n.addHook=function(r,e){typeof e=="function"&&(d[r]=d[r]||[],d[r].push(e))},n.removeHook=function(r){d[r]&&d[r].pop()},n.removeHooks=function(r){d[r]&&(d[r]=[])},n.removeAllHooks=function(){d={}},n}var je=Ee(),Je=je;})();
|