@riil-frontend/component-topology 2.7.4 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +2 -2
  3. package/build/index.css +1 -1
  4. package/build/index.js +40 -40
  5. package/es/components/LayoutDirectionSelect/Item.js +11 -0
  6. package/es/components/LayoutDirectionSelect/Item.module.scss +9 -0
  7. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.js +48 -0
  8. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  9. package/es/components/LayoutDirectionSelect/index.js +2 -0
  10. package/es/components/LayoutSelect/LayoutSelect.js +46 -0
  11. package/es/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  12. package/es/components/LayoutSelect/README.md +1 -0
  13. package/es/components/LayoutSelect/index.js +2 -0
  14. package/es/components/TagImageSelect/index.js +37 -0
  15. package/es/components/{TemplateGroup → TagImageSelect}/index.module.scss +0 -0
  16. package/es/components/TagSelect/index.js +60 -0
  17. package/es/components/TagSelect/index.scss +23 -0
  18. package/es/components/TemplateButton/index.js +9 -10
  19. package/es/components/TemplateButton/index.module.scss +13 -26
  20. package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
  21. package/es/style.js +1 -1
  22. package/es/topoCenter/store/topoTreeMod.js +4 -24
  23. package/es/utils/tree.js +14 -0
  24. package/lib/components/LayoutDirectionSelect/Item.js +25 -0
  25. package/lib/components/LayoutDirectionSelect/Item.module.scss +9 -0
  26. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +64 -0
  27. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  28. package/lib/components/LayoutDirectionSelect/index.js +11 -0
  29. package/lib/components/LayoutSelect/LayoutSelect.js +61 -0
  30. package/lib/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  31. package/lib/components/LayoutSelect/README.md +1 -0
  32. package/lib/components/LayoutSelect/index.js +11 -0
  33. package/lib/components/TagImageSelect/index.js +48 -0
  34. package/{es/components/TemplateSelect → lib/components/TagImageSelect}/index.module.scss +0 -0
  35. package/lib/components/TagSelect/index.js +76 -0
  36. package/lib/components/TagSelect/index.scss +23 -0
  37. package/lib/components/TemplateButton/index.js +10 -11
  38. package/lib/components/TemplateButton/index.module.scss +13 -26
  39. package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -2
  40. package/lib/style.js +1 -1
  41. package/lib/topoCenter/store/topoTreeMod.js +3 -23
  42. package/lib/utils/tree.js +16 -0
  43. package/package.json +5 -5
  44. package/es/components/TemplateGroup/index.js +0 -28
  45. package/es/components/TemplateSelect/index.js +0 -32
  46. package/lib/components/TemplateGroup/index.js +0 -40
  47. package/lib/components/TemplateGroup/index.module.scss +0 -3
  48. package/lib/components/TemplateSelect/index.js +0 -45
  49. package/lib/components/TemplateSelect/index.module.scss +0 -3
package/build/2.js CHANGED
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1677:function(e,t,n){
2
- /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */var r,o;r=this,o=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,m=s.construct;u||(u=function e(t,n,r){return t.apply(n,r)}),a||(a=function e(t){return t}),l||(l=function e(t){return t}),m||(m=function t(n,r){return new(Function.prototype.bind.apply(n,[null].concat(e(r))))});var f=x(Array.prototype.forEach),p=x(Array.prototype.pop),d=x(Array.prototype.push),h=x(String.prototype.toLowerCase),g=x(String.prototype.match),y=x(String.prototype.replace),v=x(String.prototype.indexOf),b=x(String.prototype.trim),T=x(RegExp.prototype.test),A=w(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function w(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function S(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=h(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function E(e){var n=c(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}function R(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var _=a(["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"]),k=a(["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"]),N=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),O=a(["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"]),M=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),F=a(["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","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["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","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"]),C=a(["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"]),z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),U=l(/<%[\s\S]*|[\s\S]*%>/gm),P=l(/^data-[\-\w.\u00B7-\uFFFF]/),B=l(/^aria-[\-\w]+$/),j=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=l(/^(?:\w+script|data):/i),G=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function e(){return"undefined"==typeof window?null:window},V=function e(t,n){if("object"!==(void 0===t?"undefined":q(t))||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function e(t){return t}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},J;function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),t=function e(t){return X(t)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter,u=e.NamedNodeMap,m=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,x=e.Text,w=e.Comment,J=e.DOMParser,$=e.trustedTypes,Z=c.prototype,Q=R(Z,"cloneNode"),ee=R(Z,"nextSibling"),te=R(Z,"childNodes"),ne=R(Z,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=V($,n),ie=oe&&ze?oe.createHTML(""):"",ae=r,le=ae.implementation,ce=ae.createNodeIterator,se=ae.createDocumentFragment,ue=ae.getElementsByTagName,me=n.importNode,fe={};try{fe=E(r).documentMode?r.documentMode:{}}catch(e){}var pe={};t.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==fe;var de=H,he=U,ge=P,ye=B,ve=W,be=G,Te=j,Ae=null,xe=S({},[].concat(Y(_),Y(k),Y(N),Y(O),Y(L))),we=null,Se=S({},[].concat(Y(F),Y(I),Y(C),Y(z))),Ee=null,Re=null,_e=!0,ke=!0,Ne=!1,De=!1,Oe=!1,Me=!1,Le=!1,Fe=!1,Ie=!1,Ce=!0,ze=!1,He=!0,Ue=!0,Pe=!1,Be={},je=null,We=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,qe=S({},["audio","video","img","source","image","track"]),Ye=null,Ke=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",$e=Xe,Ze=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function e(t){rt&&rt===t||(t&&"object"===(void 0===t?"undefined":q(t))||(t={}),t=E(t),Ae="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS):xe,we="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR):Se,Ye="ADD_URI_SAFE_ATTR"in t?S(E(Ke),t.ADD_URI_SAFE_ATTR):Ke,Ge="ADD_DATA_URI_TAGS"in t?S(E(qe),t.ADD_DATA_URI_TAGS):qe,je="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS):We,Ee="FORBID_TAGS"in t?S({},t.FORBID_TAGS):{},Re="FORBID_ATTR"in t?S({},t.FORBID_ATTR):{},Be="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,ke=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Oe=t.WHOLE_DOCUMENT||!1,Fe=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Ce=!1!==t.RETURN_DOM_IMPORT,ze=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,Pe=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,$e=t.NAMESPACE||Xe,Qe=Qe=-1===et.indexOf(t.PARSER_MEDIA_TYPE)?tt:t.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:h,De&&(ke=!1),Ie&&(Fe=!0),Be&&(Ae=S({},[].concat(Y(L))),we=[],!0===Be.html&&(S(Ae,_),S(we,F)),!0===Be.svg&&(S(Ae,k),S(we,I),S(we,z)),!0===Be.svgFilters&&(S(Ae,N),S(we,I),S(we,z)),!0===Be.mathMl&&(S(Ae,O),S(we,C),S(we,z))),t.ADD_TAGS&&(Ae===xe&&(Ae=E(Ae)),S(Ae,t.ADD_TAGS)),t.ADD_ATTR&&(we===Se&&(we=E(we)),S(we,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&S(Ye,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(je===We&&(je=E(je)),S(je,t.FORBID_CONTENTS)),Ue&&(Ae["#text"]=!0),Oe&&S(Ae,["html","head","body"]),Ae.table&&(S(Ae,["tbody"]),delete Ee.tbody),a&&a(t),rt=t)},at=S({},["mi","mo","mn","ms","mtext"]),lt=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},k);S(ct,N),S(ct,D);var st=S({},O);S(st,M);var ut=function e(t){var n=ne(t);n&&n.tagName||(n={namespaceURI:Xe,tagName:"template"});var r=h(t.tagName),o=h(n.tagName);if(t.namespaceURI===Je)return n.namespaceURI===Xe?"svg"===r:n.namespaceURI===Ve?"svg"===r&&("annotation-xml"===o||at[o]):Boolean(ct[r]);if(t.namespaceURI===Ve)return n.namespaceURI===Xe?"math"===r:n.namespaceURI===Je?"math"===r&&lt[o]:Boolean(st[r]);if(t.namespaceURI===Xe){if(n.namespaceURI===Je&&!lt[o])return!1;if(n.namespaceURI===Ve&&!at[o])return!1;var i=S({},["title","style","font","a","script"]);return!st[r]&&(i[r]||!ct[r])}return!1},mt=function e(n){d(t.removed,{element:n});try{n.parentNode.removeChild(n)}catch(e){try{n.outerHTML=ie}catch(e){n.remove()}}},ft=function e(n,r){try{d(t.removed,{attribute:r.getAttributeNode(n),from:r})}catch(e){d(t.removed,{attribute:null,from:r})}if(r.removeAttribute(n),"is"===n&&!we[n])if(Fe||Ie)try{mt(r)}catch(e){}else try{r.setAttribute(n,"")}catch(e){}},pt=function e(t){var n=void 0,o=void 0;if(Le)t="<remove></remove>"+t;else{var i=g(t,/^[\r\n\t ]+/);o=i&&i[0]}"application/xhtml+xml"===Qe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=oe?oe.createHTML(t):t;if($e===Xe)try{n=(new J).parseFromString(a,Qe)}catch(e){}if(!n||!n.documentElement){n=le.createDocument($e,"template",null);try{n.documentElement.innerHTML=Ze?"":a}catch(e){}}var l=n.body||n.documentElement;return t&&o&&l.insertBefore(r.createTextNode(o),l.childNodes[0]||null),$e===Xe?ue.call(n,Oe?"html":"body")[0]:Oe?n.documentElement:l},dt=function e(t){return ce.call(t.ownerDocument||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},ht=function e(t){return!(t instanceof x||t instanceof w||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof m&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},gt=function e(t){return"object"===(void 0===l?"undefined":q(l))?t instanceof l:t&&"object"===(void 0===t?"undefined":q(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},yt=function e(n,r,o){pe[n]&&f(pe[n],(function(e){e.call(t,r,o,rt)}))},vt=function e(n){var r=void 0;if(yt("beforeSanitizeElements",n,null),ht(n))return mt(n),!0;if(g(n.nodeName,/[\u0080-\uFFFF]/))return mt(n),!0;var o=nt(n.nodeName);if(yt("uponSanitizeElement",n,{tagName:o,allowedTags:Ae}),!gt(n.firstElementChild)&&(!gt(n.content)||!gt(n.content.firstElementChild))&&T(/<[/\w]/g,n.innerHTML)&&T(/<[/\w]/g,n.textContent))return mt(n),!0;if("select"===o&&T(/<template/i,n.innerHTML))return mt(n),!0;if(!Ae[o]||Ee[o]){if(Ue&&!je[o]){var i=ne(n)||n.parentNode,a=te(n)||n.childNodes;if(a&&i)for(var l,s=a.length-1;s>=0;--s)i.insertBefore(Q(a[s],!0),ee(n))}return mt(n),!0}return n instanceof c&&!ut(n)?(mt(n),!0):"noscript"!==o&&"noembed"!==o||!T(/<\/no(script|embed)/i,n.innerHTML)?(De&&3===n.nodeType&&(r=n.textContent,r=y(r,de," "),r=y(r,he," "),n.textContent!==r&&(d(t.removed,{element:n.cloneNode()}),n.textContent=r)),yt("afterSanitizeElements",n,null),!1):(mt(n),!0)},bt=function e(t,n,o){if(He&&("id"===n||"name"===n)&&(o in r||o in ot))return!1;if(ke&&!Re[n]&&T(ge,n));else if(_e&&T(ye,n));else{if(!we[n]||Re[n])return!1;if(Ye[n]);else if(T(Te,y(o,be,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===t||0!==v(o,"data:")||!Ge[t])if(Ne&&!T(ve,y(o,be,"")));else if(o)return!1}return!0},Tt=function e(n){var r=void 0,o=void 0,i=void 0,a=void 0;yt("beforeSanitizeAttributes",n,null);var l=n.attributes;if(l){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(a=l.length;a--;){var s=r=l[a],u=s.name,m=s.namespaceURI;if(o=b(r.value),i=nt(u),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,yt("uponSanitizeAttribute",n,c),o=c.attrValue,!c.forceKeepAttr&&(ft(u,n),c.keepAttr))if(T(/\/>/i,o))ft(u,n);else{De&&(o=y(o,de," "),o=y(o,he," "));var f=nt(n.nodeName);if(bt(f,i,o))try{m?n.setAttributeNS(m,u,o):n.setAttribute(u,o),p(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",n,null)}},At=function e(t){var n=void 0,r=dt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof o&&e(n.content),Tt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,s=void 0,u=void 0,m=void 0;if((Ze=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!gt(r)){if("function"!=typeof r.toString)throw A("toString is not a function");if("string"!=typeof(r=r.toString()))throw A("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(gt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||it(i),t.removed=[],"string"==typeof r&&(Pe=!1),Pe);else if(r instanceof l)1===(c=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Fe&&!De&&!Oe&&-1===r.indexOf("<"))return oe&&ze?oe.createHTML(r):r;if(!(a=pt(r)))return Fe?null:ie}a&&Le&&mt(a.firstChild);for(var f=dt(Pe?r:a);s=f.nextNode();)3===s.nodeType&&s===u||vt(s)||(s.content instanceof o&&At(s.content),Tt(s),u=s);if(u=null,Pe)return r;if(Fe){if(Ie)for(m=se.call(a.ownerDocument);a.firstChild;)m.appendChild(a.firstChild);else m=a;return Ce&&(m=me.call(n,m,!0)),m}var p=Oe?a.outerHTML:a.innerHTML;return De&&(p=y(p,de," "),p=y(p,he," ")),oe&&ze?oe.createHTML(p):p},t.setConfig=function(e){it(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||it({});var r=nt(e),o=nt(t);return bt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],d(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}return X()},e.exports=o()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1692:function(e,t,n){
2
+ /*! @license DOMPurify 2.3.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.4/LICENSE */var r,o;r=this,o=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,m=s.construct;u||(u=function e(t,n,r){return t.apply(n,r)}),a||(a=function e(t){return t}),l||(l=function e(t){return t}),m||(m=function t(n,r){return new(Function.prototype.bind.apply(n,[null].concat(e(r))))});var f=A(Array.prototype.forEach),p=A(Array.prototype.pop),d=A(Array.prototype.push),h=A(String.prototype.toLowerCase),g=A(String.prototype.match),y=A(String.prototype.replace),v=A(String.prototype.indexOf),b=A(String.prototype.trim),T=A(RegExp.prototype.test),N=E(TypeError);function A(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function E(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function k(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=h(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function w(e){var n=c(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}function x(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var S=a(["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"]),_=a(["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"]),O=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=a(["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"]),M=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),R=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["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","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"]),F=a(["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"]),H=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=l(/<%[\s\S]*|[\s\S]*%>/gm),B=l(/^data-[\-\w.\u00B7-\uFFFF]/),j=l(/^aria-[\-\w]+$/),G=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P=l(/^(?:\w+script|data):/i),W=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function e(){return"undefined"==typeof window?null:window},V=function e(t,n){if("object"!==(void 0===t?"undefined":q(t))||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function e(t){return t}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},J;function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),t=function e(t){return X(t)};if(t.version="2.3.4",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter,u=e.NamedNodeMap,m=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,A=e.HTMLFormElement,E=e.DOMParser,J=e.trustedTypes,$=c.prototype,Z=x($,"cloneNode"),Q=x($,"nextSibling"),ee=x($,"childNodes"),te=x($,"parentNode");if("function"==typeof i){var ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}var re=V(J,n),oe=re&&Fe?re.createHTML(""):"",ie=r,ae=ie.implementation,le=ie.createNodeIterator,ce=ie.createDocumentFragment,se=ie.getElementsByTagName,ue=n.importNode,me={};try{me=w(r).documentMode?r.documentMode:{}}catch(e){}var fe={};t.isSupported="function"==typeof te&&ae&&void 0!==ae.createHTMLDocument&&9!==me;var pe=U,de=z,he=B,ge=j,ye=P,ve=W,be=G,Te=null,Ne=k({},[].concat(Y(S),Y(_),Y(O),Y(D),Y(L))),Ae=null,Ee=k({},[].concat(Y(R),Y(I),Y(F),Y(H))),ke=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,xe=null,Se=!0,_e=!0,Oe=!1,Ce=!1,De=!1,Me=!1,Le=!1,Re=!1,Ie=!1,Fe=!1,He=!0,Ue=!0,ze=!1,Be={},je=null,Ge=k({},["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"]),Pe=null,We=k({},["audio","video","img","source","image","track"]),qe=null,Ye=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Xe=Je,$e=!1,Ze=void 0,Qe=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,nt=null,rt=r.createElement("form"),ot=function e(t){return t instanceof RegExp||t instanceof Function},it=function e(t){nt&&nt===t||(t&&"object"===(void 0===t?"undefined":q(t))||(t={}),t=w(t),Te="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):Ne,Ae="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):Ee,qe="ADD_URI_SAFE_ATTR"in t?k(w(Ye),t.ADD_URI_SAFE_ATTR):Ye,Pe="ADD_DATA_URI_TAGS"in t?k(w(We),t.ADD_DATA_URI_TAGS):We,je="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS):Ge,we="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},xe="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},Be="USE_PROFILES"in t&&t.USE_PROFILES,Se=!1!==t.ALLOW_ARIA_ATTR,_e=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=t.SAFE_FOR_TEMPLATES||!1,De=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,be=t.ALLOWED_URI_REGEXP||be,Xe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze=Ze=-1===Qe.indexOf(t.PARSER_MEDIA_TYPE)?et:t.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Ze?function(e){return e}:h,Ce&&(_e=!1),Ie&&(Re=!0),Be&&(Te=k({},[].concat(Y(L))),Ae=[],!0===Be.html&&(k(Te,S),k(Ae,R)),!0===Be.svg&&(k(Te,_),k(Ae,I),k(Ae,H)),!0===Be.svgFilters&&(k(Te,O),k(Ae,I),k(Ae,H)),!0===Be.mathMl&&(k(Te,D),k(Ae,F),k(Ae,H))),t.ADD_TAGS&&(Te===Ne&&(Te=w(Te)),k(Te,t.ADD_TAGS)),t.ADD_ATTR&&(Ae===Ee&&(Ae=w(Ae)),k(Ae,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(qe,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(je===Ge&&(je=w(je)),k(je,t.FORBID_CONTENTS)),Ue&&(Te["#text"]=!0),De&&k(Te,["html","head","body"]),Te.table&&(k(Te,["tbody"]),delete we.tbody),a&&a(t),nt=t)},at=k({},["mi","mo","mn","ms","mtext"]),lt=k({},["foreignobject","desc","title","annotation-xml"]),ct=k({},_);k(ct,O),k(ct,C);var st=k({},D);k(st,M);var ut=function e(t){var n=te(t);n&&n.tagName||(n={namespaceURI:Je,tagName:"template"});var r=h(t.tagName),o=h(n.tagName);if(t.namespaceURI===Ve)return n.namespaceURI===Je?"svg"===r:n.namespaceURI===Ke?"svg"===r&&("annotation-xml"===o||at[o]):Boolean(ct[r]);if(t.namespaceURI===Ke)return n.namespaceURI===Je?"math"===r:n.namespaceURI===Ve?"math"===r&&lt[o]:Boolean(st[r]);if(t.namespaceURI===Je){if(n.namespaceURI===Ve&&!lt[o])return!1;if(n.namespaceURI===Ke&&!at[o])return!1;var i=k({},["title","style","font","a","script"]);return!st[r]&&(i[r]||!ct[r])}return!1},mt=function e(n){d(t.removed,{element:n});try{n.parentNode.removeChild(n)}catch(e){try{n.outerHTML=oe}catch(e){n.remove()}}},ft=function e(n,r){try{d(t.removed,{attribute:r.getAttributeNode(n),from:r})}catch(e){d(t.removed,{attribute:null,from:r})}if(r.removeAttribute(n),"is"===n&&!Ae[n])if(Re||Ie)try{mt(r)}catch(e){}else try{r.setAttribute(n,"")}catch(e){}},pt=function e(t){var n=void 0,o=void 0;if(Le)t="<remove></remove>"+t;else{var i=g(t,/^[\r\n\t ]+/);o=i&&i[0]}"application/xhtml+xml"===Ze&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=re?re.createHTML(t):t;if(Xe===Je)try{n=(new E).parseFromString(a,Ze)}catch(e){}if(!n||!n.documentElement){n=ae.createDocument(Xe,"template",null);try{n.documentElement.innerHTML=$e?"":a}catch(e){}}var l=n.body||n.documentElement;return t&&o&&l.insertBefore(r.createTextNode(o),l.childNodes[0]||null),Xe===Je?se.call(n,De?"html":"body")[0]:De?n.documentElement:l},dt=function e(t){return le.call(t.ownerDocument||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},ht=function e(t){return t instanceof A&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof m)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},gt=function e(t){return"object"===(void 0===l?"undefined":q(l))?t instanceof l:t&&"object"===(void 0===t?"undefined":q(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},yt=function e(n,r,o){fe[n]&&f(fe[n],(function(e){e.call(t,r,o,nt)}))},vt=function e(n){var r=void 0;if(yt("beforeSanitizeElements",n,null),ht(n))return mt(n),!0;if(g(n.nodeName,/[\u0080-\uFFFF]/))return mt(n),!0;var o=tt(n.nodeName);if(yt("uponSanitizeElement",n,{tagName:o,allowedTags:Te}),!gt(n.firstElementChild)&&(!gt(n.content)||!gt(n.content.firstElementChild))&&T(/<[/\w]/g,n.innerHTML)&&T(/<[/\w]/g,n.textContent))return mt(n),!0;if("select"===o&&T(/<template/i,n.innerHTML))return mt(n),!0;if(!Te[o]||we[o]){if(Ue&&!je[o]){var i=te(n)||n.parentNode,a=ee(n)||n.childNodes;if(a&&i)for(var l,s=a.length-1;s>=0;--s)i.insertBefore(Z(a[s],!0),Q(n))}if(!we[o]&&Tt(o)){if(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,o))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(o))return!1}return mt(n),!0}return n instanceof c&&!ut(n)?(mt(n),!0):"noscript"!==o&&"noembed"!==o||!T(/<\/no(script|embed)/i,n.innerHTML)?(Ce&&3===n.nodeType&&(r=n.textContent,r=y(r,pe," "),r=y(r,de," "),n.textContent!==r&&(d(t.removed,{element:n.cloneNode()}),n.textContent=r)),yt("afterSanitizeElements",n,null),!1):(mt(n),!0)},bt=function e(t,n,o){if(He&&("id"===n||"name"===n)&&(o in r||o in rt))return!1;if(_e&&!xe[n]&&T(he,n));else if(Se&&T(ge,n));else if(!Ae[n]||xe[n]){if(!(Tt(t)&&(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,t)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(t))&&(ke.attributeNameCheck instanceof RegExp&&T(ke.attributeNameCheck,n)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(n))||"is"===n&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,o)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(o))))return!1}else if(qe[n]);else if(T(be,y(o,ve,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===t||0!==v(o,"data:")||!Pe[t])if(Oe&&!T(ye,y(o,ve,"")));else if(o)return!1;return!0},Tt=function e(t){return t.indexOf("-")>0},Nt=function e(n){var r=void 0,o=void 0,i=void 0,a=void 0;yt("beforeSanitizeAttributes",n,null);var l=n.attributes;if(l){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(a=l.length;a--;){var s=r=l[a],u=s.name,m=s.namespaceURI;if(o=b(r.value),i=tt(u),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,yt("uponSanitizeAttribute",n,c),o=c.attrValue,!c.forceKeepAttr&&(ft(u,n),c.keepAttr))if(T(/\/>/i,o))ft(u,n);else{Ce&&(o=y(o,pe," "),o=y(o,de," "));var f=tt(n.nodeName);if(bt(f,i,o))try{m?n.setAttributeNS(m,u,o):n.setAttribute(u,o),p(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",n,null)}},At=function e(t){var n=void 0,r=dt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof o&&e(n.content),Nt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,s=void 0,u=void 0,m=void 0;if(($e=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!gt(r)){if("function"!=typeof r.toString)throw N("toString is not a function");if("string"!=typeof(r=r.toString()))throw N("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(gt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||it(i),t.removed=[],"string"==typeof r&&(ze=!1),ze);else if(r instanceof l)1===(c=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Re&&!Ce&&!De&&-1===r.indexOf("<"))return re&&Fe?re.createHTML(r):r;if(!(a=pt(r)))return Re?null:oe}a&&Le&&mt(a.firstChild);for(var f=dt(ze?r:a);s=f.nextNode();)3===s.nodeType&&s===u||vt(s)||(s.content instanceof o&&At(s.content),Nt(s),u=s);if(u=null,ze)return r;if(Re){if(Ie)for(m=ce.call(a.ownerDocument);a.firstChild;)m.appendChild(a.firstChild);else m=a;return Ae.shadowroot&&(m=ue.call(n,m,!0)),m}var p=De?a.outerHTML:a.innerHTML;return Ce&&(p=y(p,pe," "),p=y(p,de," ")),re&&Fe?re.createHTML(p):p},t.setConfig=function(e){it(e),Me=!0},t.clearConfig=function(){nt=null,Me=!1},t.isValidAttribute=function(e,t,n){nt||it({});var r=tt(e),o=tt(t);return bt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],d(fe[e],t))},t.removeHook=function(e){fe[e]&&p(fe[e])},t.removeHooks=function(e){fe[e]&&(fe[e]=[])},t.removeAllHooks=function(){fe={}},t}return X()},e.exports=o()}}]);