altair-static
Version:
Static package for altair graphql client
8 lines (5 loc) • 21.6 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="141f16cd-7a0e-51ff-928d-1a9c2ca06a42")}catch(e){}}();
import{f as fn}from"./chunk-B7YGBANW.js";var un=fn((we,xe)=>{(function(x,P){typeof we=="object"&&typeof xe<"u"?xe.exports=P():typeof define=="function"&&define.amd?define(P):(x=typeof globalThis<"u"?globalThis:x||self,x.DOMPurify=P())})(we,function(){"use strict";let{entries:x,setPrototypeOf:P,isFrozen:At,getPrototypeOf:St,getOwnPropertyDescriptor:Rt}=Object,{freeze:E,seal:y,create:Pe}=Object,{apply:fe,construct:ue}=typeof Reflect<"u"&&Reflect;E||(E=function(o){return o}),y||(y=function(o){return o}),fe||(fe=function(o,l,r){return o.apply(l,r)}),ue||(ue=function(o,l){return new o(...l)});let ee=R(Array.prototype.forEach),ve=R(Array.prototype.pop),G=R(Array.prototype.push),te=R(String.prototype.toLowerCase),me=R(String.prototype.toString),ke=R(String.prototype.match),B=R(String.prototype.replace),yt=R(String.prototype.indexOf),Lt=R(String.prototype.trim),L=R(Object.prototype.hasOwnProperty),g=R(RegExp.prototype.test),Y=Ot(TypeError);function R(s){return function(o){for(var l=arguments.length,r=new Array(l>1?l-1:0),T=1;T<l;T++)r[T-1]=arguments[T];return fe(s,o,r)}}function Ot(s){return function(){for(var o=arguments.length,l=new Array(o),r=0;r<o;r++)l[r]=arguments[r];return ue(s,l)}}function a(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te;P&&P(s,null);let r=o.length;for(;r--;){let T=o[r];if(typeof T=="string"){let b=l(T);b!==T&&(At(o)||(o[r]=b),T=b)}s[T]=!0}return s}function Dt(s){for(let o=0;o<s.length;o++)L(s,o)||(s[o]=null);return s}function M(s){let o=Pe(null);for(let[l,r]of x(s))L(s,l)&&(Array.isArray(r)?o[l]=Dt(r):r&&typeof r=="object"&&r.constructor===Object?o[l]=M(r):o[l]=r);return o}function X(s,o){for(;s!==null;){let r=Rt(s,o);if(r){if(r.get)return R(r.get);if(typeof r.value=="function")return R(r.value)}s=St(s)}function l(){return null}return l}let Ue=E(["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"]),pe=E(["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"]),de=E(["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"]),Nt=E(["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"]),Te=E(["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"]),bt=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fe=E(["#text"]),He=E(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),_e=E(["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"]),ze=E(["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"]),ne=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ct=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),It=y(/<%[\w\W]*|[\w\W]*%>/gm),Mt=y(/\${[\w\W]*}/gm),wt=y(/^data-[\-\w.\u00B7-\uFFFF]/),xt=y(/^aria-[\-\w]+$/),We=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pt=y(/^(?:\w+script|data):/i),vt=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ge=y(/^html$/i),kt=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var Be=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ct,ERB_EXPR:It,TMPLIT_EXPR:Mt,DATA_ATTR:wt,ARIA_ATTR:xt,IS_ALLOWED_URI:We,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:vt,DOCTYPE_NAME:Ge,CUSTOM_ELEMENT:kt});let j={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ut=function(){return typeof window>"u"?null:window},Ft=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let r=null,T="data-tt-policy-suffix";l&&l.hasAttribute(T)&&(r=l.getAttribute(T));let b="dompurify"+(r?"#"+r:"");try{return o.createPolicy(b,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+b+" could not be created."),null}};function Ye(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ut(),o=i=>Ye(i);if(o.version="3.1.6",o.removed=[],!s||!s.document||s.document.nodeType!==j.document)return o.isSupported=!1,o;let{document:l}=s,r=l,T=r.currentScript,{DocumentFragment:b,HTMLTemplateElement:v,Node:Ee,Element:Xe,NodeFilter:V,NamedNodeMap:zt=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Wt,DOMParser:Gt,trustedTypes:oe}=s,$=Xe.prototype,Bt=X($,"cloneNode"),Yt=X($,"remove"),Xt=X($,"nextSibling"),jt=X($,"childNodes"),ie=X($,"parentNode");if(typeof v=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let h,q="",{implementation:ge,createNodeIterator:Vt,createDocumentFragment:$t,getElementsByTagName:qt}=l,{importNode:Kt}=r,O={};o.isSupported=typeof x=="function"&&typeof ie=="function"&&ge&&ge.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:he,ERB_EXPR:Ae,TMPLIT_EXPR:Se,DATA_ATTR:Zt,ARIA_ATTR:Jt,IS_SCRIPT_OR_DATA:Qt,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:en}=Be,{IS_ALLOWED_URI:Ve}=Be,u=null,$e=a({},[...Ue,...pe,...de,...Te,...Fe]),m=null,qe=a({},[...He,..._e,...ze,...ne]),f=Object.seal(Pe(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}})),K=null,Re=null,Ke=!0,ye=!0,Ze=!1,Je=!0,k=!1,Le=!0,w=!1,Oe=!1,De=!1,U=!1,ae=!1,re=!1,Qe=!0,et=!1,tn="user-content-",Ne=!0,Z=!1,F={},H=null,tt=a({},["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"]),nt=null,ot=a({},["audio","video","img","source","image","track"]),be=null,it=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",z=C,Ce=!1,Ie=null,nn=a({},[se,le,C],me),J=null,on=["application/xhtml+xml","text/html"],an="text/html",p=null,W=null,rn=l.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Me=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=M(e),J=on.indexOf(e.PARSER_MEDIA_TYPE)===-1?an:e.PARSER_MEDIA_TYPE,p=J==="application/xhtml+xml"?me:te,u=L(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,p):$e,m=L(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,p):qe,Ie=L(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,me):nn,be=L(e,"ADD_URI_SAFE_ATTR")?a(M(it),e.ADD_URI_SAFE_ATTR,p):it,nt=L(e,"ADD_DATA_URI_TAGS")?a(M(ot),e.ADD_DATA_URI_TAGS,p):ot,H=L(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,p):tt,K=L(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,p):{},Re=L(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,p):{},F=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Ke=e.ALLOW_ARIA_ATTR!==!1,ye=e.ALLOW_DATA_ATTR!==!1,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,Le=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,et=e.SANITIZE_NAMED_PROPS||!1,Ne=e.KEEP_CONTENT!==!1,Z=e.IN_PLACE||!1,Ve=e.ALLOWED_URI_REGEXP||We,z=e.NAMESPACE||C,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(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),k&&(ye=!1),ae&&(U=!0),F&&(u=a({},Fe),m=[],F.html===!0&&(a(u,Ue),a(m,He)),F.svg===!0&&(a(u,pe),a(m,_e),a(m,ne)),F.svgFilters===!0&&(a(u,de),a(m,_e),a(m,ne)),F.mathMl===!0&&(a(u,Te),a(m,ze),a(m,ne))),e.ADD_TAGS&&(u===$e&&(u=M(u)),a(u,e.ADD_TAGS,p)),e.ADD_ATTR&&(m===qe&&(m=M(m)),a(m,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&a(be,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(H===tt&&(H=M(H)),a(H,e.FORBID_CONTENTS,p)),Ne&&(u["#text"]=!0),w&&a(u,["html","head","body"]),u.table&&(a(u,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=e.TRUSTED_TYPES_POLICY,q=h.createHTML("")}else h===void 0&&(h=Ft(oe,T)),h!==null&&typeof q=="string"&&(q=h.createHTML(""));E&&E(e),W=e}},rt=a({},["mi","mo","mn","ms","mtext"]),st=a({},["foreignobject","annotation-xml"]),sn=a({},["title","style","font","a","script"]),lt=a({},[...pe,...de,...Nt]),ct=a({},[...Te,...bt]),ln=function(e){let t=ie(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});let n=te(e.tagName),c=te(t.tagName);return Ie[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===C?n==="svg":t.namespaceURI===se?n==="svg"&&(c==="annotation-xml"||rt[c]):!!lt[n]:e.namespaceURI===se?t.namespaceURI===C?n==="math":t.namespaceURI===le?n==="math"&&st[c]:!!ct[n]:e.namespaceURI===C?t.namespaceURI===le&&!st[c]||t.namespaceURI===se&&!rt[c]?!1:!ct[n]&&(sn[n]||!lt[n]):!!(J==="application/xhtml+xml"&&Ie[e.namespaceURI]):!1},D=function(e){G(o.removed,{element:e});try{ie(e).removeChild(e)}catch{Yt(e)}},ce=function(e,t){try{G(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{G(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!m[e])if(U||ae)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ft=function(e){let t=null,n=null;if(De)e="<remove></remove>"+e;else{let d=ke(e,/^[\r\n\t ]+/);n=d&&d[0]}J==="application/xhtml+xml"&&z===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let c=h?h.createHTML(e):e;if(z===C)try{t=new Gt().parseFromString(c,J)}catch{}if(!t||!t.documentElement){t=ge.createDocument(z,"template",null);try{t.documentElement.innerHTML=Ce?q:c}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===C?qt.call(t,w?"html":"body")[0]:w?t.documentElement:_},ut=function(e){return Vt.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT|V.SHOW_PROCESSING_INSTRUCTION|V.SHOW_CDATA_SECTION,null)},mt=function(e){return e instanceof Wt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof zt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},pt=function(e){return typeof Ee=="function"&&e instanceof Ee},I=function(e,t,n){O[e]&&ee(O[e],c=>{c.call(o,t,n,W)})},dt=function(e){let t=null;if(I("beforeSanitizeElements",e,null),mt(e))return D(e),!0;let n=p(e.nodeName);if(I("uponSanitizeElement",e,{tagName:n,allowedTags:u}),e.hasChildNodes()&&!pt(e.firstElementChild)&&g(/<[/\w]/g,e.innerHTML)&&g(/<[/\w]/g,e.textContent)||e.nodeType===j.progressingInstruction||Le&&e.nodeType===j.comment&&g(/<[/\w]/g,e.data))return D(e),!0;if(!u[n]||K[n]){if(!K[n]&&_t(n)&&(f.tagNameCheck instanceof RegExp&&g(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n)))return!1;if(Ne&&!H[n]){let c=ie(e)||e.parentNode,_=jt(e)||e.childNodes;if(_&&c){let d=_.length;for(let S=d-1;S>=0;--S){let N=Bt(_[S],!0);N.__removalCount=(e.__removalCount||0)+1,c.insertBefore(N,Xt(e))}}}return D(e),!0}return e instanceof Xe&&!ln(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(k&&e.nodeType===j.text&&(t=e.textContent,ee([he,Ae,Se],c=>{t=B(t,c," ")}),e.textContent!==t&&(G(o.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},Tt=function(e,t,n){if(Qe&&(t==="id"||t==="name")&&(n in l||n in rn))return!1;if(!(ye&&!Re[t]&&g(Zt,t))){if(!(Ke&&g(Jt,t))){if(!m[t]||Re[t]){if(!(_t(e)&&(f.tagNameCheck instanceof RegExp&&g(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&g(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&g(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!be[t]){if(!g(Ve,B(n,je,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&yt(n,"data:")===0&&nt[e])){if(!(Ze&&!g(Qt,B(n,je,"")))){if(n)return!1}}}}}}return!0},_t=function(e){return e!=="annotation-xml"&&ke(e,en)},Et=function(e){I("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m},c=t.length;for(;c--;){let _=t[c],{name:d,namespaceURI:S,value:N}=_,Q=p(d),A=d==="value"?N:Lt(N);if(n.attrName=Q,n.attrValue=A,n.keepAttr=!0,n.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,n),A=n.attrValue,Le&&g(/((--!?|])>)|<\/(style|title)/i,A)){ce(d,e);continue}if(n.forceKeepAttr||(ce(d,e),!n.keepAttr))continue;if(!Je&&g(/\/>/i,A)){ce(d,e);continue}k&&ee([he,Ae,Se],ht=>{A=B(A,ht," ")});let gt=p(e.nodeName);if(Tt(gt,Q,A)){if(et&&(Q==="id"||Q==="name")&&(ce(d,e),A=tn+A),h&&typeof oe=="object"&&typeof oe.getAttributeType=="function"&&!S)switch(oe.getAttributeType(gt,Q)){case"TrustedHTML":{A=h.createHTML(A);break}case"TrustedScriptURL":{A=h.createScriptURL(A);break}}try{S?e.setAttributeNS(S,d,A):e.setAttribute(d,A),mt(e)?D(e):ve(o.removed)}catch{}}}I("afterSanitizeAttributes",e,null)},cn=function i(e){let t=null,n=ut(e);for(I("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)I("uponSanitizeShadowNode",t,null),!dt(t)&&(t.content instanceof b&&i(t.content),Et(t));I("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,c=null,_=null;if(Ce=!i,Ce&&(i="<!-->"),typeof i!="string"&&!pt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Y("dirty is not a string, aborting")}else throw Y("toString is not a function");if(!o.isSupported)return i;if(Oe||Me(e),o.removed=[],typeof i=="string"&&(Z=!1),Z){if(i.nodeName){let N=p(i.nodeName);if(!u[N]||K[N])throw Y("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof Ee)t=ft("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===j.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!w&&i.indexOf("<")===-1)return h&&re?h.createHTML(i):i;if(t=ft(i),!t)return U?null:re?q:""}t&&De&&D(t.firstChild);let d=ut(Z?i:t);for(;c=d.nextNode();)dt(c)||(c.content instanceof b&&cn(c.content),Et(c));if(Z)return i;if(U){if(ae)for(_=$t.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(m.shadowroot||m.shadowrootmode)&&(_=Kt.call(r,_,!0)),_}let S=w?t.outerHTML:t.innerHTML;return w&&u["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&g(Ge,t.ownerDocument.doctype.name)&&(S="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+S),k&&ee([he,Ae,Se],N=>{S=B(S,N," ")}),h&&re?h.createHTML(S):S},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Me(i),Oe=!0},o.clearConfig=function(){W=null,Oe=!1},o.isValidAttribute=function(i,e,t){W||Me({});let n=p(i),c=p(e);return Tt(n,c,t)},o.addHook=function(i,e){typeof e=="function"&&(O[i]=O[i]||[],G(O[i],e))},o.removeHook=function(i){if(O[i])return ve(O[i])},o.removeHooks=function(i){O[i]&&(O[i]=[])},o.removeAllHooks=function(){O={}},o}var Ht=Ye();return Ht})});export default un();
//# sourceMappingURL=chunk-WSZ6INZ2.js.map
//# debugId=141f16cd-7a0e-51ff-928d-1a9c2ca06a42