vendor: 6,706 bytes, lines 1-2
1/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */ 2function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function e(e,n){return function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(u){s=!0,r=u}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const n=Object.entries,o=Object.setPrototypeOf,r=Object.isFrozen,i=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let l=Object.freeze,c=Object.seal,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,f=u.apply,p=u.construct;l||(l=function(t){return t}),c||(c=function(t){return t}),f||(f=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),p||(p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const m=L(Array.prototype.forEach),d=L(Array.prototype.lastIndexOf),h=L(Array.prototype.pop),g=L(Array.prototype.push),y=L(Array.prototype.splice),b=Array.isArray,S=L(String.prototype.toLowerCase),T=L(String.prototype.toString),A=L(String.prototype.match),E=L(String.prototype.replace),w=L(String.prototype.indexOf),v=L(String.prototype.trim),O=L(Number.prototype.toString),N=L(Boolean.prototype.toString),x="undefined"==typeof BigInt?null:L(BigInt.prototype.toString),_="undefined"==typeof Symbol?null:L(Symbol.prototype.toString),D=L(Object.prototype.hasOwnProperty),R=L(Object.prototype.toString),k=L(RegExp.prototype.test),C=(I=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return p(I,e)});var I;function L(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return f(t,e,o)}}function z(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(o&&o(t,null),!b(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=n(o);t!==o&&(r(e)||(e[i]=t),o=t)}t[o]=!0}return t}function M(t){for(let e=0;e<t.length;e++){D(t,e)||(t[e]=null)}return t}function P(t){const o=s(null);for(const i of n(t)){var r=e(i,2);const n=r[0],a=r[1];D(t,n)&&(b(a)?o[n]=M(a):a&&"object"==typeof a&&a.constructor===Object?o[n]=P(a):o[n]=a)}return o}function U(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}t=i(t)}return function(){return null}}const F=l(["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","search","section","select","shadow","slot","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"]),H=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=l(["animate","color-profile","cursor","discard","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"]),W=l(["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","mprescripts"]),Y=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=l(["#text"]),q=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),$=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","dominant-baseline","dur","edgemode","elevation","end","exponent","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","intercept","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","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","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","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),X=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),K=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=c(/{{[\w\W]*|^[\w\W]*}}/g),Z=c(/<%[\w\W]*|^[\w\W]*%>/g),J=c(/\${[\w\W]*/g),Q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=c(/^aria-[\-\w]+$/),et=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nt=c(/^(?:\w+script|data):/i),ot=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=c(/^html$/i),it=c(/^[a-z][.\w]*(-[.\w]+)+$/i),at=c(/<[/\w!]/g),lt=c(/<[/\w]/g),ct=c(/<\/no(script|embed|frames)/i),st=c(/\/>/i),ut=1,ft=3,pt=7,mt=8,dt=9,ht=11,gt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],yt=l(z({},gt)),bt=function(){const t={};return m(gt,e=>{t[e]=c(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),l(t)}(),St=function(t,e,n,o){return D(t,e)&&b(t[e])?z(o.base?P(o.base):{},t[e],o.transform):n},Tt=function(t,e,n){const o=D(t,e)?t[e]:void 0;return o&&"object"==typeof o?P(o):n()};var At=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const o=e=>t(e);
vendor: 10,950 bytes, line 2
2if(o.version="3.4.14",o.removed=[],!e||!e.document||e.document.nodeType!==dt||!e.Element)return o.isSupported=!1,o;let r=e.document;const i=r,a=i.currentScript;e.DocumentFragment;const u=e.HTMLTemplateElement,f=e.Node,p=e.Element,I=e.NodeFilter,L=e.NamedNodeMap;void 0===L&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const M=e.DOMParser,gt=e.trustedTypes,At=p.prototype,Et=U(At,"cloneNode"),wt=U(At,"remove"),vt=U(At,"nextSibling"),Ot=U(At,"childNodes"),Nt=U(At,"parentNode"),xt=U(At,"shadowRoot"),_t=U(At,"attributes"),Dt=f&&f.prototype?U(f.prototype,"nodeType"):null,Rt=f&&f.prototype?U(f.prototype,"nodeName"):null,kt=f&&f.prototype?U(f.prototype,"ownerDocument"):null,Ct=function(t){return Dt?Dt(t):t.nodeType},It=function(t){return Rt?Rt(t):t.nodeName};if("function"==typeof u){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Lt,zt,Mt="",Pt=!1,Ut=0;const Ft=function(){if(Ut>0)throw C('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ht=function(t){Ft(),Ut++;try{return Lt.createHTML(t)}finally{Ut--}},jt=r,Bt=jt.implementation,Wt=jt.createNodeIterator,Yt=jt.createDocumentFragment,Gt=jt.getElementsByTagName,qt=i.importNode;let $t={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof n&&"function"==typeof Nt&&Bt&&void 0!==Bt.createHTMLDocument;const Xt=V,Kt=Z,Vt=J,Zt=Q,Jt=tt,Qt=nt,te=ot,ee=it;let ne=et,oe=null;const re=z({},[...F,...H,...j,...W,...G]);let ie=null;const ae=z({},[...q,...$,...X,...K]);let le=Object.seal(s(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}})),ce=null,se=null;const ue=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let fe=!0,pe=!0,me=!1,de=!0,he=!1,ge=!0,ye=!1,be=!1,Se=null,Te=null,Ae=!1,Ee=!1,we=!1,ve=!1,Oe=!0,Ne=!1;const xe="user-content-";let _e=!0,De=!1,Re={},ke=null;const Ce=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ie=null;const Le=z({},["audio","video","img","source","image","track"]);let ze=null;const Me=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let He=Fe,je=!1,Be=null;const We=z({},[Pe,Ue,Fe],T),Ye=l(["mi","mo","mn","ms","mtext"]);let Ge=z({},Ye);const qe=l(["annotation-xml"]);let $e=z({},qe);const Xe=z({},["title","style","font","a","script"]);let Ke=null;const Ve=["application/xhtml+xml","text/html"];let Ze=null,Je=null;const Qe=r.createElement("form"),tn=function(t){return t instanceof RegExp||t instanceof Function},en=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Je&&Je===t)return;t&&"object"==typeof t||(t={}),t=P(t),Ke=-1===Ve.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ze="application/xhtml+xml"===Ke?T:S,oe=St(t,"ALLOWED_TAGS",re,{transform:Ze}),ie=St(t,"ALLOWED_ATTR",ae,{transform:Ze}),Be=St(t,"ALLOWED_NAMESPACES",We,{transform:T}),ze=St(t,"ADD_URI_SAFE_ATTR",Me,{transform:Ze,base:Me}),Ie=St(t,"ADD_DATA_URI_TAGS",Le,{transform:Ze,base:Le}),ke=St(t,"FORBID_CONTENTS",Ce,{transform:Ze}),ce=St(t,"FORBID_TAGS",P({}),{transform:Ze}),se=St(t,"FORBID_ATTR",P({}),{transform:Ze}),Re=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?P(t.USE_PROFILES):t.USE_PROFILES),fe=!1!==t.ALLOW_ARIA_ATTR,pe=!1!==t.ALLOW_DATA_ATTR,me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,de=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,he=t.SAFE_FOR_TEMPLATES||!1,ge=!1!==t.SAFE_FOR_XML,ye=t.WHOLE_DOCUMENT||!1,Ee=t.RETURN_DOM||!1,we=t.RETURN_DOM_FRAGMENT||!1,ve=t.RETURN_TRUSTED_TYPE||!1,Ae=t.FORCE_BODY||!1,Oe=!1!==t.SANITIZE_DOM,Ne=t.SANITIZE_NAMED_PROPS||!1,_e=!1!==t.KEEP_CONTENT,De=t.IN_PLACE||!1,ne=function(t){try{return k(t,""),!0}catch(e){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:et,He="string"==typeof t.NAMESPACE?t.NAMESPACE:Fe,Ge=Tt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>z({},Ye)),$e=Tt(t,"HTML_INTEGRATION_POINTS",()=>z({},qe));const e=Tt(t,"CUSTOM_ELEMENT_HANDLING",()=>s(null));if(le=s(null),D(e,"tagNameCheck")&&tn(e.tagNameCheck)&&(le.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&tn(e.attributeNameCheck)&&(le.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(le.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),c(le),he&&(pe=!1),we&&(Ee=!0),Re&&(oe=z({},G),ie=s(null),!0===Re.html&&(z(oe,F),z(ie,q)),!0===Re.svg&&(z(oe,H),z(ie,$),z(ie,K)),!0===Re.svgFilters&&(z(oe,j),z(ie,$),z(ie,K)),!0===Re.mathMl&&(z(oe,W),z(ie,X),z(ie,K))),ue.tagCheck=null,ue.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ue.tagCheck=t.ADD_TAGS:b(t.ADD_TAGS)&&(oe===re&&(oe=P(oe)),z(oe,t.ADD_TAGS,Ze))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ue.attributeCheck=t.ADD_ATTR:b(t.ADD_ATTR)&&(ie===ae&&(ie=P(ie)),z(ie,t.ADD_ATTR,Ze))),D(t,"ADD_FORBID_CONTENTS")&&b(t.ADD_FORBID_CONTENTS)&&(ke===Ce&&(ke=P(ke)),z(ke,t.ADD_FORBID_CONTENTS,Ze)),_e&&(oe["#text"]=!0),ye&&z(oe,["html","head","body"]),oe.table&&(z(oe,["tbody"]),delete ce.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Lt;Lt=t.TRUSTED_TYPES_POLICY;try{Mt=Ht("")}catch(n){throw Lt=e,n}}else null===t.TRUSTED_TYPES_POLICY?(Lt=void 0,Mt=""):(void 0===Lt&&(Pt||(zt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(i){return null}}(gt,a),Pt=!0),Lt=zt),Lt&&"string"==typeof Mt&&(Mt=Ht("")));l&&l(t),Je=t},nn=z({},[...H,...j,...B]),on=z({},[...W,...Y]),rn=function(t){let e=Nt(t);e&&e.tagName||(e={namespaceURI:He,tagName:"template"});const n=S(t.tagName),o=S(e.tagName);return!!Be[t.namespaceURI]&&(t.namespaceURI===Ue?function(t,e,n){return e.namespaceURI===Fe?"svg"===t:e.namespaceURI===Pe?"svg"===t&&("annotation-xml"===n||Ge[n]):Boolean(nn[t])}(n,e,o):t.namespaceURI===Pe?function(t,e,n){return e.namespaceURI===Fe?"math"===t:e.namespaceURI===Ue?"math"===t&&$e[n]:Boolean(on[t])}(n,e,o):t.namespaceURI===Fe?function(t,e,n){return!(e.namespaceURI===Ue&&!$e[n])&&!(e.namespaceURI===Pe&&!Ge[n])&&!on[t]&&(Xe[t]||!nn[t])}(n,e,o):!("application/xhtml+xml"!==Ke||!Be[t.namespaceURI]))},an=function(t){g(o.removed,{element:t});try{Nt(t).removeChild(t)}catch(e){if(wt(t),!Nt(t))throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ln=function(t,e,n){try{t.removeAttributeNode(e)}catch(o){try{t.removeAttribute(n)}catch(r){}}},cn=function(t){fn(t);const e=Ot(t);if(e){const t=[];m(e,e=>{g(t,e)}),m(t,t=>{try{wt(t)}catch(e){}})}const n=_t(t);if(n)for(let o=n.length-1;o>=0;--o){const e=n[o],r=e&&e.name;"string"==typeof r&&ln(t,e,r)}},sn=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch(r){n=null}g(o.removed,{attribute:n||null,from:e});try{n?e.removeAttributeNode(n):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(i){}}if("is"===t)if(Ee||we)try{an(e)}catch(r){}else try{e.setAttribute(t,"")}catch(r){}},un=function(t){const e=_t(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||ie[Ze(r)]||ln(t,o,r)}},fn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();Ct(t)===ut&&un(t);const n=Ot(t);if(n)for(let o=n.length-1;o>=0;--o)e.push(n[o])}},pn=function(t,e){return!!ge&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},mn=function(t){let e=null,n=null;if(Ae)t="<remove></remove>"+t;else{const e=A(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ke&&He===Fe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Lt?Ht(t):t;if(He===Fe)try{e=(new M).parseFromString(o,Ke)}catch(a){}if(!e||!e.documentElement){e=Bt.createDocument(He,"template",null);try{e.documentElement.innerHTML=je?Mt:o}catch(a){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),He===Fe?Gt.call(e,ye?"html":"body")[0]:ye?e.documentElement:i},dn=function(t){const e=kt?kt(t):t.ownerDocument;return Wt.call(e||t,t,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},hn=function(t){return t=E(t,Xt," "),t=E(t,Kt," "),t=E(t,Vt," ")},gn=function(t){var e;t.normalize();const n=kt?kt(t):t.ownerDocument,o=Wt.call(n||t,t,I.SHOW_TEXT|I.SHOW_COMMENT|I.SHOW_CDATA_SECTION|I.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=hn(r.data),r=o.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&m(i,t=>{bn(t.content)&&gn(t.content)})},yn=function(t){const e=Rt?Rt(t):null;return"string"==typeof e&&("form"===Ze(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==_t(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Dt(t)||t.childNodes!==Ot(t)))},bn=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return Dt(t)===ht}catch(e){return!1}},Sn=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Dt(t)}catch(e){return!1}};function Tn(t,e,n){0!==t.length&&m(t,t=>{t.call(o,e,n,Je)})}const An=function(t,e){if(t instanceof RegExp)return k(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},En=function(t,e,n,o){return 0===t.length?e:e===n||e===o?P(e):e},wn=function(t,e){return t!==e&&null===Nt(t)&&(De&&fn(t),!0)},vn=function(t,e){if(Tn($t.beforeSanitizeElements,t,null),wn(t,e))return!0;
vendor: 5,252 bytes, line 2
2if(yn(t))return an(t),!0;const n=Ze(It(t));if(oe=En($t.uponSanitizeElement,oe,re,Se),Tn($t.uponSanitizeElement,t,{tagName:n,allowedTags:oe}),wn(t,e))return!0;if(function(t,e){return!!(ge&&t.hasChildNodes()&&!Sn(t.firstElementChild)&&k(at,t.textContent)&&k(at,t.innerHTML))||!!(ge&&t.namespaceURI===Fe&&yt[e]&&(Sn(t.firstElementChild)||"string"==typeof t.textContent&&k(bt[e],t.textContent)))||t.nodeType===pt||!(!ge||t.nodeType!==mt||!k(lt,t.data))}(t,n))return an(t),!0;if(ce[n]||!(ue.tagCheck instanceof Function&&ue.tagCheck(n))&&!oe[n]){const o=function(t,e,n){if(!ce[e]&&xn(e)&&An(le.tagNameCheck,e))return!1;if(_e&&!ke[e]){const e=Nt(t),o=Ot(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?Et(o[r],!0):o[r];e.insertBefore(i,vt(t))}}return an(t),!0}(t,n,e);return!1===o&&Tn($t.afterSanitizeElements,t,null),o}if(Ct(t)===ut&&!rn(t))return an(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&k(ct,t.innerHTML))return an(t),!0;if(he&&t.nodeType===ft){const e=hn(t.textContent);t.textContent!==e&&(g(o.removed,{element:t.cloneNode()}),t.textContent=e)}return Tn($t.afterSanitizeElements,t,null),!1},On=function(t,e,n){if(se[e])return!1;if(pn(e,t))return!1;if(Oe&&("id"===e||"name"===e)&&(n in r||n in Qe))return!1;const o=ie[e]||ue.attributeCheck instanceof Function&&ue.attributeCheck(e,t);return!(!pe||!k(Zt,e))||(!(!fe||!k(Jt,e))||(o?!!ze[e]||(!!k(ne,E(n,te,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==w(n,"data:")||!Ie[t])||(!(!me||k(Qt,E(n,te,"")))||!n))):xn(t)&&An(le.tagNameCheck,t)&&An(le.attributeNameCheck,e,t)||"is"===e&&le.allowCustomizedBuiltInElements&&An(le.tagNameCheck,n)))},Nn=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),xn=function(t){return!Nn[S(t)]&&k(ee,t)},_n=function(t,e,n,o){if(Lt&&"object"==typeof gt&&"function"==typeof gt.getAttributeType&&!n)switch(gt.getAttributeType(t,e)){case"TrustedHTML":return Ht(o);case"TrustedScriptURL":return function(t){Ft(),Ut++;try{return Lt.createScriptURL(t)}finally{Ut--}}(o)}return o},Dn=function(t,e,n,r){try{n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),yn(t)?an(t):h(o.removed)}catch(i){sn(e,t)}},Rn=function(t){Tn($t.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||yn(t))return;ie=En($t.uponSanitizeAttribute,ie,ae,Te);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let o=e.length;const r=Ze(t.nodeName);for(;o--;){const i=e[o],a=i.name,l=i.namespaceURI,c=i.value,s=Ze(a),u=c;let f="value"===a?u:v(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Tn($t.uponSanitizeAttribute,t,n),f=n.attrValue,!Ne||"id"!==s&&"name"!==s||0===w(f,xe)||(sn(a,t,i),f=xe+f),ge&&k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)?sn(a,t,i):"attributename"===s&&A(f,"href")?sn(a,t,i):n.forceKeepAttr||(n.keepAttr&&(de||!k(st,f))?(he&&(f=hn(f)),On(r,s,f)?(f=_n(r,s,l,f),f!==u&&Dn(t,a,l,f)):sn(a,t,i)):sn(a,t,i))}Tn($t.afterSanitizeAttributes,t,null)},kn=function(t){let e=null;const n=dn(t);for(Tn($t.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Tn($t.uponSanitizeShadowNode,e,null),vn(e,t),Rn(e),bn(e.content)&&kn(e.content),Ct(e)===ut){const t=xt(e);bn(t)&&(Cn(t),kn(t))}Tn($t.afterSanitizeShadowDOM,t,null)},Cn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){kn(t.shadow);continue}const n=t.node,o=Ct(n)===ut,r=Ot(n);if(r)for(let i=r.length-1;i>=0;--i)e.push({node:r[i],shadow:null});if(o){const t=Rt?Rt(n):null;if("string"==typeof t&&"template"===Ze(t)){const t=n.content;bn(t)&&e.push({node:t,shadow:null})}}if(o){const t=xt(n);bn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,l=null;if(je=!t,je&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Sn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return O(t);case"boolean":return N(t);case"bigint":return x?x(t):"0";case"symbol":return _?_(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);const e=t,n=U(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:R(t)}return R(t)}}}(t)))throw C("dirty is not a string, aborting");if(!o.isSupported)return t;be?(oe=Se,ie=Te):en(e),($t.uponSanitizeElement.length>0||$t.uponSanitizeAttribute.length>0)&&(oe=P(oe)),$t.uponSanitizeAttribute.length>0&&(ie=P(ie)),o.removed=[];const c=De&&"string"!=typeof t&&Sn(t);if(c){!function(t){if(!ge)return;const e=[t];for(;e.length>0;){const t=e.pop(),o=Ct(t);if(o===pt||o===mt&&k(lt,t.data)){try{wt(t)}catch(n){}continue}if(o===ut){const e=t,o=Ze(It(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&pn("for",o)&&e.removeAttribute("for")}catch(n){}}const r=Ot(t);if(r)for(let n=r.length-1;n>=0;--n)e.push(r[n])}}(t);const e=It(t);if("string"==typeof e){const n=Ze(e);if(!oe[n]||ce[n])throw cn(t),C("root node is forbidden and cannot be sanitized in-place")}if(yn(t))throw cn(t),C("root node is clobbered and cannot be sanitized in-place");try{Cn(t)}catch(f){throw cn(t),f}}
vendor: 1,726 bytes, line 2
2else if(Sn(t))n=mn("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),r.nodeType===ut&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r),Cn(r);else{if(!Ee&&!he&&!ye&&-1===t.indexOf("<"))return Lt&&ve?Ht(t):t;if(n=mn(t),!n)return Ee?null:ve?Mt:""}n&&Ae&&an(n.firstChild);const s=c?t:n;try{const t=dn(s);for(;a=t.nextNode();)vn(a,s),Rn(a),bn(a.content)&&kn(a.content)}catch(f){throw c&&(cn(t),m(o.removed,t=>{t.element&&fn(t.element)})),f}if(c)return m(o.removed,t=>{t.element&&fn(t.element)}),he&&gn(t),t;if(Ee){if(he&&gn(n),we)for(l=Yt.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(ie.shadowroot||ie.shadowrootmode)&&(l=qt.call(i,l,!0)),l}let u=ye?n.outerHTML:n.innerHTML;return ye&&oe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(rt,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),he&&(u=hn(u)),Lt&&ve?Ht(u):u},o.setConfig=function(){en(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),be=!0,Se=oe,Te=ie},o.clearConfig=function(){Je=null,be=!1,Se=null,Te=null,Lt=zt,Mt=""},o.isValidAttribute=function(t,e,n){Je||en({});const o=Ze(t),r=Ze(e);return On(o,r,n)},o.addHook=function(t,e){"function"==typeof e&&D($t,t)&&g($t[t],e)},o.removeHook=function(t,e){if(D($t,t)){if(void 0!==e){const n=d($t[t],e);return-1===n?void 0:y($t[t],n,1)[0]}return h($t[t])}},o.removeHooks=function(t){D($t,t)&&($t[t]=[])},o.removeAllHooks=function(){$t={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();export{At as p};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.