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.d23b9cfd.async.js

4 lines
21 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{qZ2Q:function(ct,ia,oa){/*! @license DOMPurify 2.3.10 | (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.10/LICENSE */(function(k,W){ct.exports=W()})(this,function(){"use strict";function k(a){return k=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},k(a)}function W(a,n){return W=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},W(a,n)}function ft(){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 K(a,n,o){return ft()?K=Reflect.construct:K=function(c,M,S){var D=[null];D.push.apply(D,M);var j=Function.bind.apply(c,D),V=new j;return S&&W(V,S.prototype),V},K.apply(null,arguments)}function _(a){return mt(a)||pt(a)||dt(a)||ht()}function mt(a){if(Array.isArray(a))return le(a)}function pt(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function dt(a,n){if(!a)return;if(typeof a=="string")return le(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return le(a,n)}function le(a,n){(n==null||n>a.length)&&(n=a.length);for(var o=0,l=new Array(n);o<n;o++)l[o]=a[o];return l}function ht(){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 bt=Object.hasOwnProperty,xe=Object.setPrototypeOf,vt=Object.isFrozen,yt=Object.getPrototypeOf,gt=Object.getOwnPropertyDescriptor,v=Object.freeze,w=Object.seal,Tt=Object.create,Ce=typeof Reflect!="undefined"&&Reflect,X=Ce.apply,ue=Ce.construct;X||(X=function(n,o,l){return n.apply(o,l)}),v||(v=function(n){return n}),w||(w=function(n){return n}),ue||(ue=function(n,o){return K(n,_(o))});var _t=A(Array.prototype.forEach),Ie=A(Array.prototype.pop),B=A(Array.prototype.push),J=A(String.prototype.toLowerCase),At=A(String.prototype.match),R=A(String.prototype.replace),Et=A(String.prototype.indexOf),wt=A(String.prototype.trim),y=A(RegExp.prototype.test),ce=Mt(TypeError);function A(a){return function(n){for(var o=arguments.length,l=new Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];return X(a,n,l)}}function Mt(a){return function(){for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return ue(a,o)}}function s(a,n,o){o=o||J,xe&&xe(a,null);for(var l=n.length;l--;){var c=n[l];if(typeof c=="string"){var M=o(c);M!==c&&(vt(n)||(n[l]=M),c=M)}a[c]=!0}return a}function C(a){var n=Tt(null),o;for(o in a)X(bt,a,[o])&&(n[o]=a[o]);return n}function Z(a,n){for(;a!==null;){var o=gt(a,n);if(o){if(o.get)return A(o.get);if(typeof o.value=="function")return A(o.value)}a=yt(a)}function l(c){return console.warn("fallback value for",c),null}return l}var Pe=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"]),fe=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"]),me=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"]),Dt=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"]),pe=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"]),Ot=v(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),He=v(["#text"]),Fe=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"]),de=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"]),Ue=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"]),kt=w(/\{\{[\w\W]*|[\w\W]*\}\}/gm),St=w(/<%[\w\W]*|[\w\W]*%>/gm),Nt=w(/^data-[\-\w.\u00B7-\uFFFF]/),Lt=w(/^aria-[\-\w]+$/),Rt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xt=w(/^(?:\w+script|data):/i),Ct=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),It=w(/^html$/i),Pt=function(){return typeof window=="undefined"?null:window},Ht=function(n,o){if(k(n)!=="object"||typeof n.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(l=o.currentScript.getAttribute(c));var M="dompurify"+(l?"#"+l:"");try{return n.createPolicy(M,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch(S){return console.warn("TrustedTypes policy "+M+" could not be created."),null}};function ze(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pt(),n=function(e){return ze(e)};if(n.version="2.3.10",n.removed=[],!a||!a.document||a.document.nodeType!==9)return n.isSupported=!1,n;var o=a.document,l=a.document,c=a.DocumentFragment,M=a.HTMLTemplateElement,S=a.Node,D=a.Element,j=a.NodeFilter,V=a.NamedNodeMap,Ut=V===void 0?a.NamedNodeMap||a.MozNamedAttrMap:V,zt=a.HTMLFormElement,Gt=a.DOMParser,ee=a.trustedTypes,te=D.prototype,Wt=Z(te,"cloneNode"),Bt=Z(te,"nextSibling"),jt=Z(te,"childNodes"),he=Z(te,"parentNode");if(typeof M=="function"){var be=l.createElement("template");be.content&&be.content.ownerDocument&&(l=be.content.ownerDocument)}var E=Ht(ee,o),Ge=E?E.createHTML(""):"",ae=l,ve=ae.implementation,Vt=ae.createNodeIterator,Yt=ae.createDocumentFragment,$t=ae.getElementsByTagName,qt=o.importNode,We={};try{We=C(l).documentMode?l.documentMode:{}}catch(i){}var O={};n.isSupported=typeof he=="function"&&ve&&typeof ve.createHTMLDocument!="undefined"&&We!==9;var ye=kt,ge=St,Kt=Nt,Xt=Lt,Jt=xt,Be=Ct,Te=Rt,m=null,je=s({},[].concat(_(Pe),_(fe),_(me),_(pe),_(He))),d=null,Ve=s({},[].concat(_(Fe),_(de),_(Ue),_(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,_e=null,Ye=!0,Ae=!0,$e=!1,P=!1,I=!1,Ee=!1,we=!1,H=!1,ne=!1,re=!1,qe=!0,Me=!0,$=!1,F={},U=null,Ke=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"]),Xe=null,Je=s({},["audio","video","img","source","image","track"]),De=null,Ze=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml",ie=x,Se=!1,z,Zt=["application/xhtml+xml","text/html"],Qt="text/html",p,G=null,ea=l.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(e){if(G&&G===e)return;(!e||k(e)!=="object")&&(e={}),e=C(e),z=Zt.indexOf(e.PARSER_MEDIA_TYPE)===-1?z=Qt:z=e.PARSER_MEDIA_TYPE,p=z==="application/xhtml+xml"?function(t){return t}:J,m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,p):je,d="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,p):Ve,De="ADD_URI_SAFE_ATTR"in e?s(C(Ze),e.ADD_URI_SAFE_ATTR,p):Ze,Xe="ADD_DATA_URI_TAGS"in e?s(C(Je),e.ADD_DATA_URI_TAGS,p):Je,U="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,p):Ke,Y="FORBID_TAGS"in e?s({},e.FORBID_TAGS,p):{},_e="FORBID_ATTR"in e?s({},e.FORBID_ATTR,p):{},F="USE_PROFILES"in e?e.USE_PROFILES:!1,Ye=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,$e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,P=e.SAFE_FOR_TEMPLATES||!1,I=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,qe=e.SANITIZE_DOM!==!1,Me=e.KEEP_CONTENT!==!1,$=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Te,ie=e.NAMESPACE||x,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),P&&(Ae=!1),ne&&(H=!0),F&&(m=s({},_(He)),d=[],F.html===!0&&(s(m,Pe),s(d,Fe)),F.svg===!0&&(s(m,fe),s(d,de),s(d,Q)),F.svgFilters===!0&&(s(m,me),s(d,de),s(d,Q)),F.mathMl===!0&&(s(m,pe),s(d,Ue),s(d,Q))),e.ADD_TAGS&&(m===je&&(m=C(m)),s(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===Ve&&(d=C(d)),s(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&s(De,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===Ke&&(U=C(U)),s(U,e.FORBID_CONTENTS,p)),Me&&(m["#text"]=!0),I&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete Y.tbody),v&&v(e),G=e},et=s({},["mi","mo","mn","ms","mtext"]),tt=s({},["foreignobject","desc","title","annotation-xml"]),ta=s({},["title","style","font","a","script"]),oe=s({},fe);s(oe,me),s(oe,Dt);var Le=s({},pe);s(Le,Ot);var aa=function(e){var t=he(e);(!t||!t.tagName)&&(t={namespaceURI:x,tagName:"template"});var r=J(e.tagName),u=J(t.tagName);return e.namespaceURI===ke?t.namespaceURI===x?r==="svg":t.namespaceURI===Oe?r==="svg"&&(u==="annotation-xml"||et[u]):Boolean(oe[r]):e.namespaceURI===Oe?t.namespaceURI===x?r==="math":t.namespaceURI===ke?r==="math"&&tt[u]:Boolean(Le[r]):e.namespaceURI===x?t.namespaceURI===ke&&!tt[u]||t.namespaceURI===Oe&&!et[u]?!1:!Le[r]&&(ta[r]||!oe[r]):!1},N=function(e){B(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ge}catch(r){e.remove()}}},at=function(e,t){try{B(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){B(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!d[e])if(H||ne)try{N(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},nt=function(e){var t,r;if(we)e="<remove></remove>"+e;else{var u=At(e,/^[\r\n\t ]+/);r=u&&u[0]}z==="application/xhtml+xml"&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var T=E?E.createHTML(e):e;if(ie===x)try{t=new Gt().parseFromString(T,z)}catch(h){}if(!t||!t.documentElement){t=ve.createDocument(ie,"template",null);try{t.documentElement.innerHTML=Se?"":T}catch(h){}}var b=t.body||t.documentElement;return e&&r&&b.insertBefore(l.createTextNode(r),b.childNodes[0]||null),ie===x?$t.call(t,I?"html":"body")[0]:I?t.documentElement:b},rt=function(e){return Vt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},na=function(e){return e instanceof zt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ut)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},q=function(e){return k(S)==="object"?e instanceof S:e&&k(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},L=function(e,t,r){if(!O[e])return;_t(O[e],function(u){u.call(n,t,r,G)})},it=function(e){var t;if(L("beforeSanitizeElements",e,null),na(e))return N(e),!0;if(y(/[\u0080-\uFFFF]/,e.nodeName))return N(e),!0;var r=p(e.nodeName);if(L("uponSanitizeElement",e,{tagName:r,allowedTags:m}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return N(e),!0;if(r==="select"&&y(/<template/i,e.innerHTML))return N(e),!0;if(!m[r]||Y[r]){if(!Y[r]&&st(r)){if(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,r))return!1;if(f.tagNameCheck instanceof Function&&f.tagNameCheck(r))return!1}if(Me&&!U[r]){var u=he(e)||e.parentNode,T=jt(e)||e.childNodes;if(T&&u)for(var b=T.length,h=b-1;h>=0;--h)u.insertBefore(Wt(T[h],!0),Bt(e))}return N(e),!0}return e instanceof D&&!aa(e)||(r==="noscript"||r==="noembed")&&y(/<\/no(script|embed)/i,e.innerHTML)?(N(e),!0):(P&&e.nodeType===3&&(t=e.textContent,t=R(t,ye," "),t=R(t,ge," "),e.textContent!==t&&(B(n.removed,{element:e.cloneNode()}),e.textContent=t)),L("afterSanitizeElements",e,null),!1)},ot=function(e,t,r){if(qe&&(t==="id"||t==="name")&&(r in l||r in ea))return!1;if(!(Ae&&!_e[t]&&y(Kt,t))){if(!(Ye&&y(Xt,t))){if(!d[t]||_e[t]){if(!(st(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,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r))))return!1}else if(!De[t]){if(!y(Te,R(r,Be,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Et(r,"data:")===0&&Xe[e])){if(!($e&&!y(Jt,R(r,Be,"")))){if(r)return!1}}}}}}return!0},st=function(e){return e.indexOf("-")>0},lt=function(e){var t,r,u,T;L("beforeSanitizeAttributes",e,null);var b=e.attributes;if(!b)return;var h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(T=b.length;T--;){t=b[T];var se=t,g=se.name,Re=se.namespaceURI;if(r=g==="value"?t.value:wt(t.value),u=p(g),h.attrName=u,h.attrValue=r,h.keepAttr=!0,h.forceKeepAttr=void 0,L("uponSanitizeAttribute",e,h),r=h.attrValue,h.forceKeepAttr)continue;if(at(g,e),!h.keepAttr)continue;if(y(/\/>/i,r)){at(g,e);continue}P&&(r=R(r,ye," "),r=R(r,ge," "));var ut=p(e.nodeName);if(!ot(ut,u,r))continue;if(E&&k(ee)==="object"&&typeof ee.getAttributeType=="function"&&!Re)switch(ee.getAttributeType(ut,u)){case"TrustedHTML":r=E.createHTML(r);break;case"TrustedScriptURL":r=E.createScriptURL(r);break}try{Re?e.setAttributeNS(Re,g,r):e.setAttribute(g,r),Ie(n.removed)}catch(sa){}}L("afterSanitizeAttributes",e,null)},ra=function i(e){var t,r=rt(e);for(L("beforeSanitizeShadowDOM",e,null);t=r.nextNode();){if(L("uponSanitizeShadowNode",t,null),it(t))continue;t.content instanceof c&&i(t.content),lt(t)}L("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i,e){var t,r,u,T,b;if(Se=!i,Se&&(i="<!-->"),typeof i!="string"&&!q(i)){if(typeof i.toString!="function")throw ce("toString is not a function");if(i=i.toString(),typeof i!="string")throw ce("dirty is not a string, aborting")}if(!n.isSupported){if(k(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof i=="string")return a.toStaticHTML(i);if(q(i))return a.toStaticHTML(i.outerHTML)}return i}if(Ee||Ne(e),n.removed=[],typeof i=="string"&&($=!1),$){if(i.nodeName){var h=p(i.nodeName);if(!m[h]||Y[h])throw ce("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof S)t=nt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===1&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r);else{if(!H&&!P&&!I&&i.indexOf("<")===-1)return E&&re?E.createHTML(i):i;if(t=nt(i),!t)return H?null:re?Ge:""}t&&we&&N(t.firstChild);for(var se=rt($?i:t);u=se.nextNode();){if(u.nodeType===3&&u===T)continue;if(it(u))continue;u.content instanceof c&&ra(u.content),lt(u),T=u}if(T=null,$)return i;if(H){if(ne)for(b=Yt.call(t.ownerDocument);t.firstChild;)b.appendChild(t.firstChild);else b=t;return d.shadowroot&&(b=qt.call(o,b,!0)),b}var g=I?t.outerHTML:t.innerHTML;return I&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y(It,t.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+g),P&&(g=R(g,ye," "),g=R(g,ge," ")),E&&re?E.createHTML(g):g},n.setConfig=function(i){Ne(i),Ee=!0},n.clearConfig=function(){G=null,Ee=!1},n.isValidAttribute=function(i,e,t){G||Ne({});var r=p(i),u=p(e);return ot(r,u,t)},n.addHook=function(i,e){if(typeof e!="function")return;O[i]=O[i]||[],B(O[i],e)},n.removeHook=function(i){if(O[i])return Ie(O[i])},n.removeHooks=function(i){O[i]&&(O[i]=[])},n.removeAllHooks=function(){O={}},n}var Ft=ze();return Ft})}}]);