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/227.203a4ab6.async.js

4 lines
21 KiB

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