UNPKG

altair-static

Version:

Static package for altair graphql client

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