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/246.30484f95.async.js

4 lines
21 KiB

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