vendor: 7,078 bytes, lines 1-2
1import{g as On,M as Rn,E as Nn,l as In}from"./B7A9RFpj.js";function wt(n,o){(o==null||o>n.length)&&(o=n.length);for(var i=0,s=Array(o);i<o;i++)s[i]=n[i];return s}function Dn(n){if(Array.isArray(n))return n}function Ln(n,o){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var s,c,m,d,E=[],S=!0,z=!1;try{if(m=(i=i.call(n)).next,o!==0)for(;!(S=(s=m.call(i)).done)&&(E.push(s.value),E.length!==o);S=!0);}catch(J){z=!0,c=J}finally{try{if(!S&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(z)throw c}}return E}}function wn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mn(n,o){return Dn(n)||Ln(n,o)||Cn(n,o)||wn()}function Cn(n,o){if(n){if(typeof n=="string")return wt(n,o);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?wt(n,o):void 0}}const jt=Object.entries,Mt=Object.setPrototypeOf,Pn=Object.isFrozen,xn=Object.getPrototypeOf,vn=Object.getOwnPropertyDescriptor;let N=Object.freeze,I=Object.seal,ae=Object.create,Yt=typeof Reflect<"u"&&Reflect,Qe=Yt.apply,et=Yt.construct;N||(N=function(o){return o});I||(I=function(o){return o});Qe||(Qe=function(o,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),m=2;m<s;m++)c[m-2]=arguments[m];return o.apply(i,c)});et||(et=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new o(...s)});const de=y(Array.prototype.forEach),kn=y(Array.prototype.lastIndexOf),Ct=y(Array.prototype.pop),ie=y(Array.prototype.push),Un=y(Array.prototype.splice),$=Array.isArray,_e=y(String.prototype.toLowerCase),Ve=y(String.prototype.toString),Pt=y(String.prototype.match),Te=y(String.prototype.replace),xt=y(String.prototype.indexOf),Fn=y(String.prototype.trim),Hn=y(Number.prototype.toString),zn=y(Boolean.prototype.toString),vt=typeof BigInt>"u"?null:y(BigInt.prototype.toString),kt=typeof Symbol>"u"?null:y(Symbol.prototype.toString),w=y(Object.prototype.hasOwnProperty),he=y(Object.prototype.toString),R=y(RegExp.prototype.test),Z=Gn(TypeError);function y(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return Qe(n,o,s)}}function Gn(n){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return et(n,i)}}function f(n,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e;if(Mt&&Mt(n,null),!$(o))return n;let s=o.length;for(;s--;){let c=o[s];if(typeof c=="string"){const m=i(c);m!==c&&(Pn(o)||(o[s]=m),c=m)}n[c]=!0}return n}function Bn(n){for(let o=0;o<n.length;o++)w(n,o)||(n[o]=null);return n}function L(n){const o=ae(null);for(const s of jt(n)){var i=Mn(s,2);const c=i[0],m=i[1];w(n,c)&&($(m)?o[c]=Bn(m):m&&typeof m=="object"&&m.constructor===Object?o[c]=L(m):o[c]=m)}return o}function Wn(n){switch(typeof n){case"string":return n;case"number":return Hn(n);case"boolean":return zn(n);case"bigint":return vt?vt(n):"0";case"symbol":return kt?kt(n):"Symbol()";case"undefined":return he(n);case"function":case"object":{if(n===null)return he(n);const o=n,i=F(o,"toString");if(typeof i=="function"){const s=i(o);return typeof s=="string"?s:he(s)}return he(n)}default:return he(n)}}function F(n,o){for(;n!==null;){const s=vn(n,o);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}n=xn(n)}function i(){return null}return i}function jn(n){try{return R(n,""),!0}catch{return!1}}const Ut=N(["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"]),qe=N(["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"]),Ke=N(["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"]),Yn=N(["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"]),Ze=N(["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"]),$n=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ft=N(["#text"]),Ht=N(["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"]),Je=N(["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","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","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-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"]),zt=N(["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"]),Ie=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xn=I(/{{[\w\W]*|^[\w\W]*}}/g),Vn=I(/<%[\w\W]*|^[\w\W]*%>/g),qn=I(/\${[\w\W]*/g),Kn=I(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zn=I(/^aria-[\-\w]+$/),Gt=I(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jn=I(/^(?:\w+script|data):/i),Qn=I(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=I(/^html$/i),to=I(/^[a-z][.\w]*(-[.\w]+)+$/i),Bt=I(/<[/\w!]/g),no=I(/<[/\w]/g),oo=I(/<\/no(script|embed|frames)/i),ro=I(/\/>/i),U={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},io=function(){return typeof window>"u"?null:window},ao=function(o,i){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const m="dompurify"+(s?"#"+s:"");try{return o.createPolicy(m,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Wt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Y=function(o,i,s,c){return w(o,i)&&$(o[i])?f(c.base?L(c.base):{},o[i],c.transform):s};function $t(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:io();const o=a=>$t(a);if(o.version="3.4.10",o.removed=[],!n||!n.document||n.document.nodeType!==U.document||!n.Element)return o.isSupported=!1,o;let i=n.document;const s=i,c=s.currentScript;n.DocumentFragment;const m=n.HTMLTemplateElement,d=n.Node,E=n.Element,S=n.NodeFilter,z=n.NamedNodeMap;z===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const J=n.DOMParser,ge=n.trustedTypes,X=E.prototype,Xt=F(X,"cloneNode"),tt=F(X,"remove"),Vt=F(X,"nextSibling"),se=F(X,"childNodes"),le=F(X,"parentNode"),nt=F(X,"shadowRoot"),De=F(X,"attributes"),C=d&&d.prototype?F(d.prototype,"nodeType"):null,G=d&&d.prototype?F(d.prototype,"nodeName"):null;if(typeof m=="function"){const a=i.createElement("template");a.content&&a.content.ownerDocument&&(i=a.content.ownerDocument)}let M,V="",Le,ot=!1,ce=0;const rt=function(){if(ce>0)throw Z('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.')},Q=function(e){rt(),ce++;try{return M.createHTML(e)}finally{ce--}},qt=function(e){rt(),ce++;try{return M.createScriptURL(e)}finally{ce--}},Kt=function(){return ot||(Le=ao(ge,c),ot=!0),Le},Ee=i,we=Ee.implementation,it=Ee.createNodeIterator,Zt=Ee.createDocumentFragment,Jt=Ee.getElementsByTagName,Qt=s.importNode;let b=Wt();o.isSupported=typeof jt=="function"&&typeof le=="function"&&we&&we.createHTMLDocument!==void 0;const en=Xn,tn=Vn,nn=qn,on=Kn,rn=Zn,an=Jn,at=Qn,sn=to;let st=Gt,_=null;const Me=f({},[...Ut,...qe,...Ke,...Ze,...Ft]);let g=null;const Ce=f({},[...Ht,...Je,...zt,...Ie]);let T=Object.seal(ae(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}})),ue=null,lt=null;
vendor: 5,748 bytes, line 2
2const B=Object.seal(ae(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ct=!0,Pe=!0,ut=!1,ft=!0,W=!1,fe=!0,q=!1,xe=!1,ve=!1,ee=!1,Ae=!1,ye=!1,pt=!0,mt=!1;const dt="user-content-";let ke=!0,Ue=!1,te={},v=null;const Fe=f({},["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 Tt=null;const ht=f({},["audio","video","img","source","image","track"]);let He=null;const _t=f({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml";let ne=k,ze=!1,Ge=null;const ln=f({},[Se,be,k],Ve),gt=N(["mi","mo","mn","ms","mtext"]);let Be=f({},gt);const Et=N(["annotation-xml"]);let We=f({},Et);const cn=f({},["title","style","font","a","script"]);let pe=null;const un=["application/xhtml+xml","text/html"],fn="text/html";let h=null,oe=null;const pn=i.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(oe&&oe===e)return;(!e||typeof e!="object")&&(e={}),e=L(e),pe=un.indexOf(e.PARSER_MEDIA_TYPE)===-1?fn:e.PARSER_MEDIA_TYPE,h=pe==="application/xhtml+xml"?Ve:_e,_=Y(e,"ALLOWED_TAGS",Me,{transform:h}),g=Y(e,"ALLOWED_ATTR",Ce,{transform:h}),Ge=Y(e,"ALLOWED_NAMESPACES",ln,{transform:Ve}),He=Y(e,"ADD_URI_SAFE_ATTR",_t,{transform:h,base:_t}),Tt=Y(e,"ADD_DATA_URI_TAGS",ht,{transform:h,base:ht}),v=Y(e,"FORBID_CONTENTS",Fe,{transform:h}),ue=Y(e,"FORBID_TAGS",L({}),{transform:h}),lt=Y(e,"FORBID_ATTR",L({}),{transform:h}),te=w(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?L(e.USE_PROFILES):e.USE_PROFILES:!1,ct=e.ALLOW_ARIA_ATTR!==!1,Pe=e.ALLOW_DATA_ATTR!==!1,ut=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ft=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,W=e.SAFE_FOR_TEMPLATES||!1,fe=e.SAFE_FOR_XML!==!1,q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,ye=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,pt=e.SANITIZE_DOM!==!1,mt=e.SANITIZE_NAMED_PROPS||!1,ke=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,st=jn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Gt,ne=typeof e.NAMESPACE=="string"?e.NAMESPACE:k,Be=w(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?L(e.MATHML_TEXT_INTEGRATION_POINTS):f({},gt),We=w(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?L(e.HTML_INTEGRATION_POINTS):f({},Et);const t=w(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?L(e.CUSTOM_ELEMENT_HANDLING):ae(null);if(T=ae(null),w(t,"tagNameCheck")&&At(t.tagNameCheck)&&(T.tagNameCheck=t.tagNameCheck),w(t,"attributeNameCheck")&&At(t.attributeNameCheck)&&(T.attributeNameCheck=t.attributeNameCheck),w(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(T.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),I(T),W&&(Pe=!1),Ae&&(ee=!0),te&&(_=f({},Ft),g=ae(null),te.html===!0&&(f(_,Ut),f(g,Ht)),te.svg===!0&&(f(_,qe),f(g,Je),f(g,Ie)),te.svgFilters===!0&&(f(_,Ke),f(g,Je),f(g,Ie)),te.mathMl===!0&&(f(_,Ze),f(g,zt),f(g,Ie))),B.tagCheck=null,B.attributeCheck=null,w(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?B.tagCheck=e.ADD_TAGS:$(e.ADD_TAGS)&&(_===Me&&(_=L(_)),f(_,e.ADD_TAGS,h))),w(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?B.attributeCheck=e.ADD_ATTR:$(e.ADD_ATTR)&&(g===Ce&&(g=L(g)),f(g,e.ADD_ATTR,h))),w(e,"ADD_URI_SAFE_ATTR")&&$(e.ADD_URI_SAFE_ATTR)&&f(He,e.ADD_URI_SAFE_ATTR,h),w(e,"FORBID_CONTENTS")&&$(e.FORBID_CONTENTS)&&(v===Fe&&(v=L(v)),f(v,e.FORBID_CONTENTS,h)),w(e,"ADD_FORBID_CONTENTS")&&$(e.ADD_FORBID_CONTENTS)&&(v===Fe&&(v=L(v)),f(v,e.ADD_FORBID_CONTENTS,h)),ke&&(_["#text"]=!0),q&&f(_,["html","head","body"]),_.table&&(f(_,["tbody"]),delete ue.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=M;M=e.TRUSTED_TYPES_POLICY;try{V=Q("")}catch(l){throw M=r,l}}else e.TRUSTED_TYPES_POLICY===null?(M=void 0,V=""):(M===void 0&&(M=Kt()),M&&typeof V=="string"&&(V=Q("")));(b.uponSanitizeElement.length>0||b.uponSanitizeAttribute.length>0)&&_===Me&&(_=L(_)),b.uponSanitizeAttribute.length>0&&g===Ce&&(g=L(g)),N&&N(e),oe=e},yt=f({},[...qe,...Ke,...Yn]),St=f({},[...Ze,...$n]),mn=function(e,t,r){return t.namespaceURI===k?e==="svg":t.namespaceURI===Se?e==="svg"&&(r==="annotation-xml"||Be[r]):!!yt[e]},dn=function(e,t,r){return t.namespaceURI===k?e==="math":t.namespaceURI===be?e==="math"&&We[r]:!!St[e]},Tn=function(e,t,r){return t.namespaceURI===be&&!We[r]||t.namespaceURI===Se&&!Be[r]?!1:!St[e]&&(cn[e]||!yt[e])},hn=function(e){let t=le(e);(!t||!t.tagName)&&(t={namespaceURI:ne,tagName:"template"});const r=_e(e.tagName),l=_e(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===be?mn(r,t,l):e.namespaceURI===Se?dn(r,t,l):e.namespaceURI===k?Tn(r,t,l):!!(pe==="application/xhtml+xml"&&Ge[e.namespaceURI]):!1},j=function(e){ie(o.removed,{element:e});try{le(e).removeChild(e)}catch{if(tt(e),!le(e))throw Z("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},bt=function(e){const t=se(e);if(t){const l=[];de(t,u=>
vendor: 5,192 bytes, line 2
2{ie(l,u)}),de(l,u=>{try{tt(u)}catch{}})}const r=De(e);if(r)for(let l=r.length-1;l>=0;--l){const u=r[l],p=u&&u.name;if(typeof p=="string")try{e.removeAttribute(p)}catch{}}},K=function(e,t){try{ie(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ie(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(ee||Ae)try{j(t)}catch{}else try{t.setAttribute(e,"")}catch{}},_n=function(e){const t=De(e);if(t)for(let r=t.length-1;r>=0;--r){const l=t[r],u=l&&l.name;if(!(typeof u!="string"||g[h(u)]))try{e.removeAttribute(u)}catch{}}},gn=function(e){const t=[e];for(;t.length>0;){const r=t.pop();(C?C(r):r.nodeType)===U.element&&_n(r);const u=se(r);if(u)for(let p=u.length-1;p>=0;--p)t.push(u[p])}},Ot=function(e){let t=null,r=null;if(ve)e="<remove></remove>"+e;else{const p=Pt(e,/^[\r\n\t ]+/);r=p&&p[0]}pe==="application/xhtml+xml"&&ne===k&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const l=M?Q(e):e;if(ne===k)try{t=new J().parseFromString(l,pe)}catch{}if(!t||!t.documentElement){t=we.createDocument(ne,"template",null);try{t.documentElement.innerHTML=ze?V:l}catch{}}const u=t.body||t.documentElement;return e&&r&&u.insertBefore(i.createTextNode(r),u.childNodes[0]||null),ne===k?Jt.call(t,q?"html":"body")[0]:q?t.documentElement:u},Rt=function(e){return it.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)},Oe=function(e){return e=Te(e,en," "),e=Te(e,tn," "),e=Te(e,nn," "),e},Ye=function(e){var t;e.normalize();const r=it.call(e.ownerDocument||e,e,S.SHOW_TEXT|S.SHOW_COMMENT|S.SHOW_CDATA_SECTION|S.SHOW_PROCESSING_INSTRUCTION,null);let l=r.nextNode();for(;l;)l.data=Oe(l.data),l=r.nextNode();const u=(t=e.querySelectorAll)===null||t===void 0?void 0:t.call(e,"template");u&&de(u,p=>{re(p.content)&&Ye(p.content)})},Re=function(e){const t=G?G(e):null;return typeof t!="string"||h(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==De(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==C(e)||e.childNodes!==se(e)},re=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return C(e)===U.documentFragment}catch{return!1}},me=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return typeof C(e)=="number"}catch{return!1}};function H(a,e,t){a.length!==0&&de(a,r=>{r.call(o,e,t,oe)})}const En=function(e,t){return!!(fe&&e.hasChildNodes()&&!me(e.firstElementChild)&&R(Bt,e.textContent)&&R(Bt,e.innerHTML)||fe&&e.namespaceURI===k&&t==="style"&&me(e.firstElementChild)||e.nodeType===U.processingInstruction||fe&&e.nodeType===U.comment&&R(no,e.data))},An=function(e,t){if(!ue[t]&&Dt(t)&&(T.tagNameCheck instanceof RegExp&&R(T.tagNameCheck,t)||T.tagNameCheck instanceof Function&&T.tagNameCheck(t)))return!1;if(ke&&!v[t]){const r=le(e),l=se(e);if(l&&r){const u=l.length;for(let p=u-1;p>=0;--p){const O=Ue?l[p]:Xt(l[p],!0);r.insertBefore(O,Vt(e))}}}return j(e),!0},Nt=function(e){if(H(b.beforeSanitizeElements,e,null),Re(e))return j(e),!0;const t=h(G?G(e):e.nodeName);if(H(b.uponSanitizeElement,e,{tagName:t,allowedTags:_}),En(e,t))return j(e),!0;if(ue[t]||!(B.tagCheck instanceof Function&&B.tagCheck(t))&&!_[t])return An(e,t);if((C?C(e):e.nodeType)===U.element&&!hn(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&R(oo,e.innerHTML))return j(e),!0;if(W&&e.nodeType===U.text){const l=Oe(e.textContent);e.textContent!==l&&(ie(o.removed,{element:e.cloneNode()}),e.textContent=l)}return H(b.afterSanitizeElements,e,null),!1},It=function(e,t,r){if(lt[t]||pt&&(t==="id"||t==="name")&&(r in i||r in pn))return!1;const l=g[t]||B.attributeCheck instanceof Function&&B.attributeCheck(t,e);if(!(Pe&&R(on,t))){if(!(ct&&R(rn,t))){if(l){if(!He[t]){if(!R(st,Te(r,at,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&xt(r,"data:")===0&&Tt[e])){if(!(ut&&!R(an,Te(r,at,"")))){if(r)return!1}}}}}else if(!(Dt(e)&&(T.tagNameCheck instanceof RegExp&&R(T.tagNameCheck,e)||T.tagNameCheck instanceof Function&&T.tagNameCheck(e))&&(T.attributeNameCheck instanceof RegExp&&R(T.attributeNameCheck,t)||T.attributeNameCheck instanceof Function&&T.attributeNameCheck(t,e))||t==="is"&&T.allowCustomizedBuiltInElements&&(T.tagNameCheck instanceof RegExp&&R(T.tagNameCheck,r)||T.tagNameCheck instanceof Function&&T.tagNameCheck(r))))return!1}}return!0},yn=f({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Dt=function(e){return!yn[_e(e)]&&R(sn,e)},Sn=function(e,t,r,l){if(M&&typeof ge=="object"&&typeof ge.getAttributeType=="function"&&!r)switch(ge.getAttributeType(e,t)){case"TrustedHTML":return Q(l);case"TrustedScriptURL":return qt(l)}return l},bn=function(e,t,r,l){try{r?e.setAttributeNS(r,t,l):e.setAttribute(t,l),Re(e)?j(e):Ct(o.removed)}catch{K(t,e)}},Lt=function(e){H(b.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Re(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:g,forceKeepAttr:void 0};let l=t.length;
2const u=h(e.nodeName);for(;l--;){const p=t[l],O=p.name,A=p.namespaceURI,P=p.value,x=h(O),Xe=P;let D=O==="value"?Xe:Fn(Xe);if(r.attrName=x,r.attrValue=D,r.keepAttr=!0,r.forceKeepAttr=void 0,H(b.uponSanitizeAttribute,e,r),D=r.attrValue,mt&&(x==="id"||x==="name")&&xt(D,dt)!==0&&(K(O,e),D=dt+D),fe&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,D)){K(O,e);continue}if(x==="attributename"&&Pt(D,"href")){K(O,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr){K(O,e);continue}if(!ft&&R(ro,D)){K(O,e);continue}if(W&&(D=Oe(D)),!It(u,x,D)){K(O,e);continue}D=Sn(u,x,A,D),D!==Xe&&bn(e,O,A,D)}}H(b.afterSanitizeAttributes,e,null)},Ne=function(e){let t=null;const r=Rt(e);for(H(b.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(H(b.uponSanitizeShadowNode,t,null),Nt(t),Lt(t),re(t.content)&&Ne(t.content),(C?C(t):t.nodeType)===U.element){const u=nt(t);re(u)&&($e(u),Ne(u))}H(b.afterSanitizeShadowDOM,e,null)},$e=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const r=t.pop();if(r.shadow){Ne(r.shadow);continue}const l=r.node,p=(C?C(l):l.nodeType)===U.element,O=se(l);if(O)for(let A=O.length-1;A>=0;--A)t.push({node:O[A],shadow:null});if(p){const A=G?G(l):null;if(typeof A=="string"&&h(A)==="template"){const P=l.content;re(P)&&t.push({node:P,shadow:null})}}if(p){const A=nt(l);re(A)&&t.push({node:null,shadow:A},{node:A,shadow:null})}}};return o.sanitize=function(a){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,l=null,u=null;if(ze=!a,ze&&(a="<!-->"),typeof a!="string"&&!me(a)&&(a=Wn(a),typeof a!="string"))throw Z("dirty is not a string, aborting");if(!o.isSupported)return a;xe||je(e),o.removed=[];const p=Ue&&typeof a!="string"&&me(a);if(p){const P=G?G(a):a.nodeName;if(typeof P=="string"){const x=h(P);if(!_[x]||ue[x])throw Z("root node is forbidden and cannot be sanitized in-place")}if(Re(a))throw Z("root node is clobbered and cannot be sanitized in-place");try{$e(a)}catch(x){throw bt(a),x}}else if(me(a))t=Ot("<!---->"),r=t.ownerDocument.importNode(a,!0),r.nodeType===U.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),$e(r);else{if(!ee&&!W&&!q&&a.indexOf("<")===-1)return M&&ye?Q(a):a;if(t=Ot(a),!t)return ee?null:ye?V:""}t&&ve&&j(t.firstChild);const O=Rt(p?a:t);try{for(;l=O.nextNode();)Nt(l),Lt(l),re(l.content)&&Ne(l.content)}catch(P){throw p&&bt(a),P}if(p)return de(o.removed,P=>{P.element&&gn(P.element)}),W&&Ye(a),a;if(ee){if(W&&Ye(t),Ae)for(u=Zt.call(t.ownerDocument);t.firstChild;)u.appendChild(t.firstChild);else u=t;return(g.shadowroot||g.shadowrootmode)&&(u=Qt.call(s,u,!0)),u}let A=q?t.outerHTML:t.innerHTML;return q&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&R(eo,t.ownerDocument.doctype.name)&&(A="<!DOCTYPE "+t.ownerDocument.doctype.name+`> 3`+A),W&&(A=Oe(A)),M&&ye?Q(A):A},o.setConfig=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};je(a),xe=!0},o.clearConfig=function(){oe=null,xe=!1,M=Le,V=""},o.isValidAttribute=function(a,e,t){oe||je({});const r=h(a),l=h(e);return It(r,l,t)},o.addHook=function(a,e){typeof e=="function"&&ie(b[a],e)},o.removeHook=function(a,e){if(e!==void 0){const t=kn(b[a],e);return t===-1?void 0:Un(b[a],t,1)[0]}return Ct(b[a])},o.removeHooks=function(a){b[a]=[]},o.removeAllHooks=function(){b=Wt()},o}var so=$t();function lo(n){const o=String(n??""),i=document.createElement("template");return i.innerHTML=o,i.innerHTML}function co(n){try{const o=new URL(String(n??""));return o.protocol==="https:"&&o.hostname.length>0&&o.username===""&&o.password===""}catch{return!1}}const uo={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"Â ",quot:'"'};function fo(n){let o=n;for(let i=0;i<3;i++){const s=o.replace(/&(?:#(\d+)|#x([\da-f]+)|([a-z]+));/gi,(c,m,d,E)=>m?String.fromCodePoint(Number(m)):d?String.fromCodePoint(parseInt(d,16)):uo[E.toLowerCase()]??c);if(s===o)break;o=s}return o}function po(n,o){return(o?n:n.replace(/<style[\s\S]*?>[\s\S]*?<\/style>/gi,"")).replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/\son\w+=(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\s(?:href|src)=("|')\s*javascript:[\s\S]*?\1/gi,"").replace(/<\/?(?:iframe|object|embed)[^>]*>/gi,"")}function mo(n,o,i){const s=document.createElement("template");s.innerHTML=n;const c=[];s.content.querySelectorAll("[data-safe-html-style-placeholder]").forEach(E=>{E.removeAttribute("data-safe-html-style-placeholder")}),s.content.querySelectorAll("style").forEach(E=>{if(!i){E.remove();return}const S=document.createElement("span");S.setAttribute("data-safe-html-style-placeholder",String(c.push(E.textContent??"")-1)),E.replaceWith(S)}),s.content.querySelectorAll("iframe").forEach(E=>{(!o||!co(E.getAttribute("src")))&&E.remove()});
3const m=so.sanitize(s.innerHTML,{ADD_TAGS:[o&&"iframe"].filter(Boolean),ADD_ATTR:["allow","allowfullscreen","frameborder","loading","referrerpolicy","target"],FORBID_ATTR:["srcdoc"],FORBID_TAGS:i?[]:["style"]});if(!i||c.length===0)return m;const d=document.createElement("template");return d.innerHTML=m,d.content.querySelectorAll("[data-safe-html-style-placeholder]").forEach(E=>{const S=Number(E.getAttribute("data-safe-html-style-placeholder")),z=c[S];if(typeof z!="string"){E.remove();return}const J=document.createElement("style");J.textContent=z,E.replaceWith(J)}),d.innerHTML}function To(n,o){if(o)return["safe-html-p"];const i=String(n??"").toLowerCase();if(i==="p")return["safe-html-p"];const s=Number(i.slice(1));return i.startsWith("h")&&s>=1&&s<=6?[`safe-html-${i}`,i]:[]}const ho={name:"SafeHtml",inheritAttrs:!1,props:{html:{type:[String,Number],default:""},tag:{type:String,default:"span"},paragraph:{type:Boolean,default:!1},allowTrustedIframes:{type:Boolean,default:!1},allowStyles:{type:Boolean,default:!1}},setup(n,{attrs:o}){const i=Nn(!1);On(()=>{i.value=!0});const s=In(()=>{const c=fo(String(n.html??""));return i.value?mo(c,n.allowTrustedIframes,n.allowStyles):lo(po(c,n.allowStyles))});return()=>Rn("div",{...o,class:[o.class,...To(n.tag,n.paragraph),n.paragraph&&"safe-html-paragraph"],innerHTML:s.value})}},go=Object.assign(ho,{__name:"SafeHtml"});export{go as default};
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.