You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/242.6889e1d6.async.js

4 lines
21 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{qZ2Q:function(lt,oa,ia){/*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */(function(D,W){lt.exports=W()})(this,function(){"use strict";function D(a){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},D(a)}function W(a,r){return W=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},W(a,r)}function ut(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function q(a,r,i){return ut()?q=Reflect.construct:q=function(c,I,k){var S=[null];S.push.apply(S,I);var j=Function.bind.apply(c,S),V=new j;return k&&W(V,k.prototype),V},q.apply(null,arguments)}function T(a){return ct(a)||ft(a)||mt(a)||pt()}function ct(a){if(Array.isArray(a))return se(a)}function ft(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function mt(a,r){if(!a)return;if(typeof a=="string")return se(a,r);var i=Object.prototype.toString.call(a).slice(8,-1);if(i==="Object"&&a.constructor&&(i=a.constructor.name),i==="Map"||i==="Set")return Array.from(a);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return se(a,r)}function se(a,r){(r==null||r>a.length)&&(r=a.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=a[i];return l}function pt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dt=Object.hasOwnProperty,Le=Object.setPrototypeOf,ht=Object.isFrozen,vt=Object.getPrototypeOf,yt=Object.getOwnPropertyDescriptor,v=Object.freeze,A=Object.seal,bt=Object.create,Re=typeof Reflect!="undefined"&&Reflect,X=Re.apply,le=Re.construct;X||(X=function(r,i,l){return r.apply(i,l)}),v||(v=function(r){return r}),A||(A=function(r){return r}),le||(le=function(r,i){return q(r,T(i))});var gt=_(Array.prototype.forEach),xe=_(Array.prototype.pop),B=_(Array.prototype.push),J=_(String.prototype.toLowerCase),Tt=_(String.prototype.match),O=_(String.prototype.replace),_t=_(String.prototype.indexOf),At=_(String.prototype.trim),y=_(RegExp.prototype.test),ue=Et(TypeError);function _(a){return function(r){for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];return X(a,r,l)}}function Et(a){return function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return le(a,i)}}function s(a,r){Le&&Le(a,null);for(var i=r.length;i--;){var l=r[i];if(typeof l=="string"){var c=J(l);c!==l&&(ht(r)||(r[i]=c),l=c)}a[l]=!0}return a}function R(a){var r=bt(null),i;for(i in a)X(dt,a,[i])&&(r[i]=a[i]);return r}function Z(a,r){for(;a!==null;){var i=yt(a,r);if(i){if(i.get)return _(i.get);if(typeof i.value=="function")return _(i.value)}a=vt(a)}function l(c){return console.warn("fallback value for",c),null}return l}var Ce=v(["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","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"]),ce=v(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","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","view","vkern"]),fe=v(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wt=v(["animate","color-profile","cursor","discard","fedropshadow","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"]),me=v(["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"]),Mt=v(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ie=v(["#text"]),Pe=v(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","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","translate","type","usemap","valign","value","width","xmlns","slot"]),pe=v(["accent-height","accumulate","additive","alignment-baseline","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","dur","edgemode","elevation","end","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","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","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","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","targetx","targety","transform","transform-origin","text-anchor","text-decoration","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"]),He=v(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","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"]),Q=v(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Dt=A(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ot=A(/<%[\w\W]*|[\w\W]*%>/gm),kt=A(/^data-[\-\w.\u00B7-\uFFFF]/),St=A(/^aria-[\-\w]+$/),Nt=A(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lt=A(/^(?:\w+script|data):/i),Rt=A(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xt=A(/^html$/i),Ct=function(){return typeof window=="undefined"?null:window},It=function(r,i){if(D(r)!=="object"||typeof r.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(c)&&(l=i.currentScript.getAttribute(c));var I="dompurify"+(l?"#"+l:"");try{return r.createPolicy(I,{createHTML:function(S){return S}})}catch(k){return console.warn("TrustedTypes policy "+I+" could not be created."),null}};function Fe(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ct(),r=function(e){return Fe(e)};if(r.version="2.3.8",r.removed=[],!a||!a.document||a.document.nodeType!==9)return r.isSupported=!1,r;var i=a.document,l=a.document,c=a.DocumentFragment,I=a.HTMLTemplateElement,k=a.Node,S=a.Element,j=a.NodeFilter,V=a.NamedNodeMap,Ht=V===void 0?a.NamedNodeMap||a.MozNamedAttrMap:V,Ft=a.HTMLFormElement,Ut=a.DOMParser,zt=a.trustedTypes,ee=S.prototype,Gt=Z(ee,"cloneNode"),Wt=Z(ee,"nextSibling"),Bt=Z(ee,"childNodes"),de=Z(ee,"parentNode");if(typeof I=="function"){var he=l.createElement("template");he.content&&he.content.ownerDocument&&(l=he.content.ownerDocument)}var N=It(zt,i),Ue=N?N.createHTML(""):"",te=l,ve=te.implementation,jt=te.createNodeIterator,Vt=te.createDocumentFragment,Yt=te.getElementsByTagName,$t=i.importNode,ze={};try{ze=R(l).documentMode?l.documentMode:{}}catch(o){}var E={};r.isSupported=typeof de=="function"&&ve&&typeof ve.createHTMLDocument!="undefined"&&ze!==9;var ye=Dt,be=Ot,Kt=kt,qt=St,Xt=Lt,Ge=Rt,ge=Nt,m=null,We=s({},[].concat(T(Ce),T(ce),T(fe),T(me),T(Ie))),p=null,Be=s({},[].concat(T(Pe),T(pe),T(He),T(Q))),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}})),Y=null,Te=null,je=!0,_e=!0,Ve=!1,P=!1,x=!1,Ae=!1,Ee=!1,H=!1,ae=!1,re=!1,Ye=!0,we=!0,$=!1,F={},U=null,$e=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"]),Ke=null,qe=s({},["audio","video","img","source","image","track"]),Me=null,Xe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xhtml",ne=L,ke=!1,z,Jt=["application/xhtml+xml","text/html"],Zt="text/html",C,G=null,Qt=l.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},Se=function(e){if(G&&G===e)return;(!e||D(e)!=="object")&&(e={}),e=R(e),m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS):We,p="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR):Be,Me="ADD_URI_SAFE_ATTR"in e?s(R(Xe),e.ADD_URI_SAFE_ATTR):Xe,Ke="ADD_DATA_URI_TAGS"in e?s(R(qe),e.ADD_DATA_URI_TAGS):qe,U="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS):$e,Y="FORBID_TAGS"in e?s({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?s({},e.FORBID_ATTR):{},F="USE_PROFILES"in e?e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,P=e.SAFE_FOR_TEMPLATES||!1,x=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ye=e.SANITIZE_DOM!==!1,we=e.KEEP_CONTENT!==!1,$=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||ge,ne=e.NAMESPACE||L,e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(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=Jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?z=Zt:z=e.PARSER_MEDIA_TYPE,C=z==="application/xhtml+xml"?function(t){return t}:J,P&&(_e=!1),ae&&(H=!0),F&&(m=s({},T(Ie)),p=[],F.html===!0&&(s(m,Ce),s(p,Pe)),F.svg===!0&&(s(m,ce),s(p,pe),s(p,Q)),F.svgFilters===!0&&(s(m,fe),s(p,pe),s(p,Q)),F.mathMl===!0&&(s(m,me),s(p,He),s(p,Q))),e.ADD_TAGS&&(m===We&&(m=R(m)),s(m,e.ADD_TAGS)),e.ADD_ATTR&&(p===Be&&(p=R(p)),s(p,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&s(Me,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(U===$e&&(U=R(U)),s(U,e.FORBID_CONTENTS)),we&&(m["#text"]=!0),x&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete Y.tbody),v&&v(e),G=e},Ze=s({},["mi","mo","mn","ms","mtext"]),Qe=s({},["foreignobject","desc","title","annotation-xml"]),ea=s({},["title","style","font","a","script"]),oe=s({},ce);s(oe,fe),s(oe,wt);var Ne=s({},me);s(Ne,Mt);var ta=function(e){var t=de(e);(!t||!t.tagName)&&(t={namespaceURI:L,tagName:"template"});var n=J(e.tagName),u=J(t.tagName);return e.namespaceURI===Oe?t.namespaceURI===L?n==="svg":t.namespaceURI===De?n==="svg"&&(u==="annotation-xml"||Ze[u]):Boolean(oe[n]):e.namespaceURI===De?t.namespaceURI===L?n==="math":t.namespaceURI===Oe?n==="math"&&Qe[u]:Boolean(Ne[n]):e.namespaceURI===L?t.namespaceURI===Oe&&!Qe[u]||t.namespaceURI===De&&!Ze[u]?!1:!Ne[n]&&(ea[n]||!oe[n]):!1},w=function(e){B(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ue}catch(n){e.remove()}}},et=function(e,t){try{B(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){B(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!p[e])if(H||ae)try{w(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},tt=function(e){var t,n;if(Ee)e="<remove></remove>"+e;else{var u=Tt(e,/^[\r\n\t ]+/);n=u&&u[0]}z==="application/xhtml+xml"&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var g=N?N.createHTML(e):e;if(ne===L)try{t=new Ut().parseFromString(g,z)}catch(d){}if(!t||!t.documentElement){t=ve.createDocument(ne,"template",null);try{t.documentElement.innerHTML=ke?"":g}catch(d){}}var h=t.body||t.documentElement;return e&&n&&h.insertBefore(l.createTextNode(n),h.childNodes[0]||null),ne===L?Yt.call(t,x?"html":"body")[0]:x?t.documentElement:h},at=function(e){return jt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},aa=function(e){return e instanceof Ft&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ht)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},K=function(e){return D(k)==="object"?e instanceof k:e&&D(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},M=function(e,t,n){if(!E[e])return;gt(E[e],function(u){u.call(r,t,n,G)})},rt=function(e){var t;if(M("beforeSanitizeElements",e,null),aa(e))return w(e),!0;if(y(/[\u0080-\uFFFF]/,e.nodeName))return w(e),!0;var n=C(e.nodeName);if(M("uponSanitizeElement",e,{tagName:n,allowedTags:m}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return w(e),!0;if(n==="select"&&y(/<template/i,e.innerHTML))return w(e),!0;if(!m[n]||Y[n]){if(!Y[n]&&ot(n)){if(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,n))return!1;if(f.tagNameCheck instanceof Function&&f.tagNameCheck(n))return!1}if(we&&!U[n]){var u=de(e)||e.parentNode,g=Bt(e)||e.childNodes;if(g&&u)for(var h=g.length,d=h-1;d>=0;--d)u.insertBefore(Gt(g[d],!0),Wt(e))}return w(e),!0}return e instanceof S&&!ta(e)||(n==="noscript"||n==="noembed")&&y(/<\/no(script|embed)/i,e.innerHTML)?(w(e),!0):(P&&e.nodeType===3&&(t=e.textContent,t=O(t,ye," "),t=O(t,be," "),e.textContent!==t&&(B(r.removed,{element:e.cloneNode()}),e.textContent=t)),M("afterSanitizeElements",e,null),!1)},nt=function(e,t,n){if(Ye&&(t==="id"||t==="name")&&(n in l||n in Qt))return!1;if(!(_e&&!Te[t]&&y(Kt,t))){if(!(je&&y(qt,t))){if(!p[t]||Te[t]){if(!(ot(e)&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&y(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!Me[t]){if(!y(ge,O(n,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&_t(n,"data:")===0&&Ke[e])){if(!(Ve&&!y(Xt,O(n,Ge,"")))){if(n)return!1}}}}}}return!0},ot=function(e){return e.indexOf("-")>0},it=function(e){var t,n,u,g;M("beforeSanitizeAttributes",e,null);var h=e.attributes;if(!h)return;var d={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p};for(g=h.length;g--;){t=h[g];var ie=t,b=ie.name,st=ie.namespaceURI;if(n=b==="value"?t.value:At(t.value),u=C(b),d.attrName=u,d.attrValue=n,d.keepAttr=!0,d.forceKeepAttr=void 0,M("uponSanitizeAttribute",e,d),n=d.attrValue,d.forceKeepAttr)continue;if(et(b,e),!d.keepAttr)continue;if(y(/\/>/i,n)){et(b,e);continue}P&&(n=O(n,ye," "),n=O(n,be," "));var na=C(e.nodeName);if(!nt(na,u,n))continue;try{st?e.setAttributeNS(st,b,n):e.setAttribute(b,n),xe(r.removed)}catch(sa){}}M("afterSanitizeAttributes",e,null)},ra=function o(e){var t,n=at(e);for(M("beforeSanitizeShadowDOM",e,null);t=n.nextNode();){if(M("uponSanitizeShadowNode",t,null),rt(t))continue;t.content instanceof c&&o(t.content),it(t)}M("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(o,e){var t,n,u,g,h;if(ke=!o,ke&&(o="<!-->"),typeof o!="string"&&!K(o)){if(typeof o.toString!="function")throw ue("toString is not a function");if(o=o.toString(),typeof o!="string")throw ue("dirty is not a string, aborting")}if(!r.isSupported){if(D(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof o=="string")return a.toStaticHTML(o);if(K(o))return a.toStaticHTML(o.outerHTML)}return o}if(Ae||Se(e),r.removed=[],typeof o=="string"&&($=!1),$){if(o.nodeName){var d=C(o.nodeName);if(!m[d]||Y[d])throw ue("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof k)t=tt("<!---->"),n=t.ownerDocument.importNode(o,!0),n.nodeType===1&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!H&&!P&&!x&&o.indexOf("<")===-1)return N&&re?N.createHTML(o):o;if(t=tt(o),!t)return H?null:re?Ue:""}t&&Ee&&w(t.firstChild);for(var ie=at($?o:t);u=ie.nextNode();){if(u.nodeType===3&&u===g)continue;if(rt(u))continue;u.content instanceof c&&ra(u.content),it(u),g=u}if(g=null,$)return o;if(H){if(ae)for(h=Vt.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return p.shadowroot&&(h=$t.call(i,h,!0)),h}var b=x?t.outerHTML:t.innerHTML;return x&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y(xt,t.ownerDocument.doctype.name)&&(b="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+b),P&&(b=O(b,ye," "),b=O(b,be," ")),N&&re?N.createHTML(b):b},r.setConfig=function(o){Se(o),Ae=!0},r.clearConfig=function(){G=null,Ae=!1},r.isValidAttribute=function(o,e,t){G||Se({});var n=C(o),u=C(e);return nt(n,u,t)},r.addHook=function(o,e){if(typeof e!="function")return;E[o]=E[o]||[],B(E[o],e)},r.removeHook=function(o){if(E[o])return xe(E[o])},r.removeHooks=function(o){E[o]&&(E[o]=[])},r.removeAllHooks=function(){E={}},r}var Pt=Fe();return Pt})}}]);