-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path46.8735e314dfe9cc11c839.js
2 lines (2 loc) · 19.3 KB
/
46.8735e314dfe9cc11c839.js
1
2
/*! For license information please see 46.8735e314dfe9cc11c839.js.LICENSE.txt */
"use strict";(this.webpackChunkBitShares2_light=this.webpackChunkBitShares2_light||[]).push([[46],{77046:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$});var r=Object.hasOwnProperty,o=Object.setPrototypeOf,i=Object.isFrozen,a=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,c=Object.freeze,s=Object.seal,u=Object.create,m="undefined"!=typeof Reflect&&Reflect,f=m.apply,p=m.construct;f||(f=function(e,t,n){return e.apply(t,n)}),c||(c=function(e){return e}),s||(s=function(e){return e}),p||(p=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(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)}(t))))});var d,h=x(Array.prototype.forEach),g=x(Array.prototype.pop),y=x(Array.prototype.push),v=x(String.prototype.toLowerCase),b=x(String.prototype.match),T=x(String.prototype.replace),N=x(String.prototype.indexOf),A=x(String.prototype.trim),E=x(RegExp.prototype.test),k=(d=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(d,t)});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 f(e,t,r)}}function S(e,t){o&&o(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var a=v(r);a!==r&&(i(t)||(t[n]=a),r=a)}e[r]=!0}return e}function w(e){var t=u(null),n=void 0;for(n in e)f(r,e,[n])&&(t[n]=e[n]);return t}function _(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=a(e)}return function(e){return console.warn("fallback value for",e),null}}var C=c(["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"]),O=c(["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"]),D=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=c(["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"]),L=c(["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"]),R=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=c(["#text"]),F=c(["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"]),H=c(["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"]),U=c(["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=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),j=s(/<%[\s\S]*|[\s\S]*%>/gm),G=s(/^data-[\-\w.\u00B7-\uFFFF]/),P=s(/^aria-[\-\w]+$/),W=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K="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 V(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 X=function(){return"undefined"==typeof window?null:window};const $=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),n=function(t){return e(t)};if(n.version="2.3.4",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,l=t.Node,s=t.Element,u=t.NodeFilter,m=t.NamedNodeMap,f=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,p=t.HTMLFormElement,d=t.DOMParser,x=t.trustedTypes,$=s.prototype,Z=_($,"cloneNode"),J=_($,"nextSibling"),Q=_($,"childNodes"),ee=_($,"parentNode");if("function"==typeof a){var te=o.createElement("template");te.content&&te.content.ownerDocument&&(o=te.content.ownerDocument)}var ne=function(e,t){if("object"!==(void 0===e?"undefined":K(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(x,r),re=ne&&Ie?ne.createHTML(""):"",oe=o,ie=oe.implementation,ae=oe.createNodeIterator,le=oe.createDocumentFragment,ce=oe.getElementsByTagName,se=r.importNode,ue={};try{ue=w(o).documentMode?o.documentMode:{}}catch(e){}var me={};n.isSupported="function"==typeof ee&&ie&&void 0!==ie.createHTMLDocument&&9!==ue;var fe=B,pe=j,de=G,he=P,ge=q,ye=Y,ve=W,be=null,Te=S({},[].concat(V(C),V(O),V(D),V(L),V(I))),Ne=null,Ae=S({},[].concat(V(F),V(H),V(U),V(z))),Ee=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}})),ke=null,xe=null,Se=!0,we=!0,_e=!1,Ce=!1,Oe=!1,De=!1,Me=!1,Le=!1,Re=!1,Ie=!1,Fe=!0,He=!0,Ue=!1,ze={},Be=null,je=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,Pe=S({},["audio","video","img","source","image","track"]),We=null,qe=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml",Xe=Ve,$e=!1,Ze=void 0,Je=["application/xhtml+xml","text/html"],Qe=void 0,et=null,tt=o.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(e){et&&et===e||(e&&"object"===(void 0===e?"undefined":K(e))||(e={}),e=w(e),be="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):Te,Ne="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Ae,We="ADD_URI_SAFE_ATTR"in e?S(w(qe),e.ADD_URI_SAFE_ATTR):qe,Ge="ADD_DATA_URI_TAGS"in e?S(w(Pe),e.ADD_DATA_URI_TAGS):Pe,Be="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):je,ke="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,Xe=e.NAMESPACE||Ve,e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze=Ze=-1===Je.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===Ze?function(e){return e}:v,Ce&&(we=!1),Re&&(Le=!0),ze&&(be=S({},[].concat(V(I))),Ne=[],!0===ze.html&&(S(be,C),S(Ne,F)),!0===ze.svg&&(S(be,O),S(Ne,H),S(Ne,z)),!0===ze.svgFilters&&(S(be,D),S(Ne,H),S(Ne,z)),!0===ze.mathMl&&(S(be,L),S(Ne,U),S(Ne,z))),e.ADD_TAGS&&(be===Te&&(be=w(be)),S(be,e.ADD_TAGS)),e.ADD_ATTR&&(Ne===Ae&&(Ne=w(Ne)),S(Ne,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===je&&(Be=w(Be)),S(Be,e.FORBID_CONTENTS)),He&&(be["#text"]=!0),Oe&&S(be,["html","head","body"]),be.table&&(S(be,["tbody"]),delete ke.tbody),c&&c(e),et=e)},ot=S({},["mi","mo","mn","ms","mtext"]),it=S({},["foreignobject","desc","title","annotation-xml"]),at=S({},O);S(at,D),S(at,M);var lt=S({},L);S(lt,R);var ct=function(e){y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=re}catch(t){e.remove()}}},st=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(Le||Re)try{ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ut=function(e){var t=void 0,n=void 0;if(Me)e="<remove></remove>"+e;else{var r=b(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ne?ne.createHTML(e):e;if(Xe===Ve)try{t=(new d).parseFromString(i,Ze)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=$e?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Xe===Ve?ce.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:a},mt=function(e){return ae.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ft=function(e){return"object"===(void 0===l?"undefined":K(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":K(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},pt=function(e,t,r){me[e]&&h(me[e],(function(e){e.call(n,t,r,et)}))},dt=function(e){var t,r=void 0;if(pt("beforeSanitizeElements",e,null),(t=e)instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore))return ct(e),!0;if(b(e.nodeName,/[\u0080-\uFFFF]/))return ct(e),!0;var o=Qe(e.nodeName);if(pt("uponSanitizeElement",e,{tagName:o,allowedTags:be}),!ft(e.firstElementChild)&&(!ft(e.content)||!ft(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return ct(e),!0;if("select"===o&&E(/<template/i,e.innerHTML))return ct(e),!0;if(!be[o]||ke[o]){if(He&&!Be[o]){var i=ee(e)||e.parentNode,a=Q(e)||e.childNodes;if(a&&i)for(var l=a.length-1;l>=0;--l)i.insertBefore(Z(a[l],!0),J(e))}if(!ke[o]&>(o)){if(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,o))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(o))return!1}return ct(e),!0}return e instanceof s&&!function(e){var t=ee(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});var n=v(e.tagName),r=v(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ve?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(at[n]);if(e.namespaceURI===Ye)return t.namespaceURI===Ve?"math"===n:t.namespaceURI===Ke?"math"===n&&it[r]:Boolean(lt[n]);if(e.namespaceURI===Ve){if(t.namespaceURI===Ke&&!it[r])return!1;if(t.namespaceURI===Ye&&!ot[r])return!1;var o=S({},["title","style","font","a","script"]);return!lt[n]&&(o[n]||!at[n])}return!1}(e)?(ct(e),!0):"noscript"!==o&&"noembed"!==o||!E(/<\/no(script|embed)/i,e.innerHTML)?(Ce&&3===e.nodeType&&(r=e.textContent,r=T(r,fe," "),r=T(r,pe," "),e.textContent!==r&&(y(n.removed,{element:e.cloneNode()}),e.textContent=r)),pt("afterSanitizeElements",e,null),!1):(ct(e),!0)},ht=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;if(we&&!xe[t]&&E(de,t));else if(Se&&E(he,t));else if(!Ne[t]||xe[t]){if(!(gt(e)&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&E(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||"is"===t&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,n)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))))return!1}else if(We[t]);else if(E(ve,T(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==N(n,"data:")||!Ge[e])if(_e&&!E(ge,T(n,ye,"")));else if(n)return!1;return!0},gt=function(e){return e.indexOf("-")>0},yt=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;pt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(i=a.length;i--;){var c=t=a[i],s=c.name,u=c.namespaceURI;if(r=A(t.value),o=Qe(s),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,pt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(st(s,e),l.keepAttr))if(E(/\/>/i,r))st(s,e);else{Ce&&(r=T(r,fe," "),r=T(r,pe," "));var m=Qe(e.nodeName);if(ht(m,o,r))try{u?e.setAttributeNS(u,s,r):e.setAttribute(s,r),g(n.removed)}catch(e){}}}pt("afterSanitizeAttributes",e,null)}},vt=function e(t){var n=void 0,r=mt(t);for(pt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)pt("uponSanitizeShadowNode",n,null),dt(n)||(n.content instanceof i&&e(n.content),yt(n));pt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,c=void 0,s=void 0,u=void 0,m=void 0;if(($e=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ft(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===K(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ft(e))return t.toStaticHTML(e.outerHTML)}return e}if(De||rt(o),n.removed=[],"string"==typeof e&&(Ue=!1),Ue);else if(e instanceof l)1===(c=(a=ut("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Le&&!Ce&&!Oe&&-1===e.indexOf("<"))return ne&&Ie?ne.createHTML(e):e;if(!(a=ut(e)))return Le?null:re}a&&Me&&ct(a.firstChild);for(var f=mt(Ue?e:a);s=f.nextNode();)3===s.nodeType&&s===u||dt(s)||(s.content instanceof i&&vt(s.content),yt(s),u=s);if(u=null,Ue)return e;if(Le){if(Re)for(m=le.call(a.ownerDocument);a.firstChild;)m.appendChild(a.firstChild);else m=a;return Ne.shadowroot&&(m=se.call(r,m,!0)),m}var p=Oe?a.outerHTML:a.innerHTML;return Ce&&(p=T(p,fe," "),p=T(p,pe," ")),ne&&Ie?ne.createHTML(p):p},n.setConfig=function(e){rt(e),De=!0},n.clearConfig=function(){et=null,De=!1},n.isValidAttribute=function(e,t,n){et||rt({});var r=Qe(e),o=Qe(t);return ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],y(me[e],t))},n.removeHook=function(e){me[e]&&g(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}()}}]);