@wix/entity-advanced-permissions 1.1426.0 → 1.1427.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.
@@ -1,4 +1,6 @@
1
1
  "use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_entity_advanced_permissions=("undefined"!=typeof self?self:this).webpackJsonp__wix_entity_advanced_permissions||[]).push([[500],{7500(t,e,n){
2
- /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
3
- function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),n.d(e,{sanitizeSvgContent:()=>Nt});const i=Object.entries,a=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor;let u=Object.freeze,f=Object.seal,p=Object.create,m="undefined"!=typeof Reflect&&Reflect,d=m.apply,h=m.construct;u||(u=function(t){return t}),f||(f=function(t){return t}),d||(d=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),h||(h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const g=P(Array.prototype.forEach),y=P(Array.prototype.lastIndexOf),b=P(Array.prototype.pop),S=P(Array.prototype.push),T=P(Array.prototype.splice),A=Array.isArray,w=P(String.prototype.toLowerCase),E=P(String.prototype.toString),v=P(String.prototype.match),_=P(String.prototype.replace),N=P(String.prototype.indexOf),O=P(String.prototype.trim),x=P(Number.prototype.toString),D=P(Boolean.prototype.toString),k="undefined"==typeof BigInt?null:P(BigInt.prototype.toString),R="undefined"==typeof Symbol?null:P(Symbol.prototype.toString),C=P(Object.prototype.hasOwnProperty),I=P(Object.prototype.toString),L=P(RegExp.prototype.test),z=(M=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return h(M,e)});var M;function P(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return d(t,e,o)}}function U(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(a&&a(t,null),!A(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(l(e)||(e[o]=t),r=t)}t[r]=!0}return t}function F(t){for(let e=0;e<t.length;e++){C(t,e)||(t[e]=null)}return t}function H(t){const e=p(null);for(const o of i(t)){var n=r(o,2);const i=n[0],a=n[1];C(t,i)&&(A(a)?e[i]=F(a):a&&"object"==typeof a&&a.constructor===Object?e[i]=H(a):e[i]=a)}return e}function j(t,e){for(;null!==t;){const n=s(t,e);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}t=c(t)}return function(){return null}}const B=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=u(["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"]),G=u(["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"]),q=u(["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"]),$=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),X=u(["#text"]),K=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),J=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=f(/{{[\w\W]*|^[\w\W]*}}/g),tt=f(/<%[\w\W]*|^[\w\W]*%>/g),et=f(/\${[\w\W]*/g),nt=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),ot=f(/^aria-[\-\w]+$/),rt=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),it=f(/^(?:\w+script|data):/i),at=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lt=f(/^html$/i),ct=f(/^[a-z][.\w]*(-[.\w]+)+$/i),st=f(/<[/\w!]/g),ut=f(/<[/\w]/g),ft=f(/<\/no(script|embed|frames)/i),pt=f(/\/>/i),mt=1,dt=3,ht=7,gt=8,yt=9,bt=11,St=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Tt=u(U({},St)),At=function(){const t={};return g(St,e=>{t[e]=f(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),u(t)}(),wt=function(){return"undefined"==typeof window?null:window},Et=function(t,e,n,o){return C(t,e)&&A(t[e])?U(o.base?H(o.base):{},t[e],o.transform):n},vt=function(t,e,n){const o=C(t,e)?t[e]:void 0;return o&&"object"==typeof o?H(o):n()};var _t=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt();const n=e=>t(e);if(n.version="3.4.15",n.removed=[],!e||!e.document||e.document.nodeType!==yt||!e.Element)return n.isSupported=!1,n;let o=e.document;const r=o,a=r.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,c=e.Node,s=e.Element,m=e.NodeFilter,d=e.NamedNodeMap;void 0===d&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,M=e.trustedTypes,P=s.prototype,F=j(P,"cloneNode"),St=j(P,"remove"),_t=j(P,"removeAttributeNode"),Nt=j(P,"nextSibling"),Ot=j(P,"childNodes"),xt=j(P,"parentNode"),Dt=j(P,"shadowRoot"),kt=j(P,"attributes"),Rt=c&&c.prototype?j(c.prototype,"nodeType"):null,Ct=c&&c.prototype?j(c.prototype,"nodeName"):null,It=c&&c.prototype?j(c.prototype,"ownerDocument"):null,Lt=function(t){return Rt?Rt(t):t.nodeType},zt=function(t){return Ct?Ct(t):t.nodeName};if("function"==typeof l){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Mt,Pt,Ut="",Ft=!1,Ht=0;const jt=function(){if(Ht>0)throw z('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Bt=function(t){jt(),Ht++;try{return Mt.createHTML(t)}finally{Ht--}},Wt=function(){return Ft||(Pt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(M,a),Ft=!0),Pt},Yt=o,Gt=Yt.implementation,qt=Yt.createNodeIterator,$t=Yt.createDocumentFragment,Xt=Yt.getElementsByTagName,Kt=r.importNode;let Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof xt&&Gt&&void 0!==Gt.createHTMLDocument;const Jt=Q,Zt=tt,Qt=et,te=nt,ee=ot,ne=it,oe=at,re=ct;let ie=rt,ae=null;const le=U({},[...B,...W,...Y,...q,...X]);let ce=null;const se=U({},[...K,...V,...J,...Z]);let ue=Object.seal(p(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}})),fe=null,pe=null;const me=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,he=!0,ge=!1,ye=!0,be=!1,Se=!0,Te=!1,Ae=!1,we=null,Ee=null,ve=!1,_e=!1,Ne=!1,Oe=!1,xe=!0,De=!1;const ke="user-content-";let Re=!0,Ce=!1,Ie={},Le=null;const ze=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Me=null;const Pe=U({},["audio","video","img","source","image","track"]);let Ue=null;const Fe=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml";let We=Be,Ye=!1,Ge=null;const qe=U({},[He,je,Be],E),$e=u(["mi","mo","mn","ms","mtext"]);let Xe=U({},$e);const Ke=u(["annotation-xml"]);let Ve=U({},Ke);const Je=U({},["title","style","font","a","script"]);let Ze=null;const Qe=["application/xhtml+xml","text/html"];let tn=null,en=null;const nn=o.createElement("form"),on=function(t){return t instanceof RegExp||t instanceof Function},rn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(en&&en===t)return;t&&"object"==typeof t||(t={}),t=H(t),Ze=-1===Qe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,tn="application/xhtml+xml"===Ze?E:w,ae=Et(t,"ALLOWED_TAGS",le,{transform:tn}),ce=Et(t,"ALLOWED_ATTR",se,{transform:tn}),Ge=Et(t,"ALLOWED_NAMESPACES",qe,{transform:E}),Ue=Et(t,"ADD_URI_SAFE_ATTR",Fe,{transform:tn,base:Fe}),Me=Et(t,"ADD_DATA_URI_TAGS",Pe,{transform:tn,base:Pe}),Le=Et(t,"FORBID_CONTENTS",ze,{transform:tn}),fe=Et(t,"FORBID_TAGS",H({}),{transform:tn}),pe=Et(t,"FORBID_ATTR",H({}),{transform:tn}),Ie=!!C(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?H(t.USE_PROFILES):t.USE_PROFILES),de=!1!==t.ALLOW_ARIA_ATTR,he=!1!==t.ALLOW_DATA_ATTR,ge=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,be=t.SAFE_FOR_TEMPLATES||!1,Se=!1!==t.SAFE_FOR_XML,Te=t.WHOLE_DOCUMENT||!1,_e=t.RETURN_DOM||!1,Ne=t.RETURN_DOM_FRAGMENT||!1,Oe=t.RETURN_TRUSTED_TYPE||!1,ve=t.FORCE_BODY||!1,xe=!1!==t.SANITIZE_DOM,De=t.SANITIZE_NAMED_PROPS||!1,Re=!1!==t.KEEP_CONTENT,Ce=t.IN_PLACE||!1,ie=function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,We="string"==typeof t.NAMESPACE?t.NAMESPACE:Be,Xe=vt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>U({},$e)),Ve=vt(t,"HTML_INTEGRATION_POINTS",()=>U({},Ke));const e=vt(t,"CUSTOM_ELEMENT_HANDLING",()=>p(null));if(ue=p(null),C(e,"tagNameCheck")&&on(e.tagNameCheck)&&(ue.tagNameCheck=e.tagNameCheck),C(e,"attributeNameCheck")&&on(e.attributeNameCheck)&&(ue.attributeNameCheck=e.attributeNameCheck),C(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ue.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),f(ue),be&&(he=!1),Ne&&(_e=!0),Ie&&(ae=U({},X),ce=p(null),!0===Ie.html&&(U(ae,B),U(ce,K)),!0===Ie.svg&&(U(ae,W),U(ce,V),U(ce,Z)),!0===Ie.svgFilters&&(U(ae,Y),U(ce,V),U(ce,Z)),!0===Ie.mathMl&&(U(ae,q),U(ce,J),U(ce,Z))),me.tagCheck=null,me.attributeCheck=null,C(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?me.tagCheck=t.ADD_TAGS:A(t.ADD_TAGS)&&(ae===le&&(ae=H(ae)),U(ae,t.ADD_TAGS,tn))),C(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?me.attributeCheck=t.ADD_ATTR:A(t.ADD_ATTR)&&(ce===se&&(ce=H(ce)),U(ce,t.ADD_ATTR,tn))),C(t,"ADD_FORBID_CONTENTS")&&A(t.ADD_FORBID_CONTENTS)&&(Le===ze&&(Le=H(Le)),U(Le,t.ADD_FORBID_CONTENTS,tn)),Re&&(ae["#text"]=!0),Te&&U(ae,["html","head","body"]),ae.table&&(U(ae,["tbody"]),delete fe.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Mt;Mt=t.TRUSTED_TYPES_POLICY;try{Ut=Bt("")}catch(t){throw Mt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Mt=void 0,Ut=""):(void 0===Mt&&(Mt=Wt()),Mt&&"string"==typeof Ut&&(Ut=Bt("")));u&&u(t),en=t},an=U({},[...W,...Y,...G]),ln=U({},[...q,...$]),cn=function(t){let e=xt(t);e&&e.tagName||(e={namespaceURI:We,tagName:"template"});const n=w(t.tagName),o=w(e.tagName);return!!Ge[t.namespaceURI]&&(t.namespaceURI===je?function(t,e,n){return e.namespaceURI===Be?"svg"===t:e.namespaceURI===He?"svg"===t&&("annotation-xml"===n||Xe[n]):Boolean(an[t])}(n,e,o):t.namespaceURI===He?function(t,e,n){return e.namespaceURI===Be?"math"===t:e.namespaceURI===je?"math"===t&&Ve[n]:Boolean(ln[t])}(n,e,o):t.namespaceURI===Be?function(t,e,n){return!(e.namespaceURI===je&&!Ve[n])&&!(e.namespaceURI===He&&!Xe[n])&&!ln[t]&&(Je[t]||!an[t])}(n,e,o):!("application/xhtml+xml"!==Ze||!Ge[t.namespaceURI]))},sn=function(t){S(n.removed,{element:t});try{xt(t).removeChild(t)}catch(e){if(St(t),!xt(t))throw z("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(t,e,n){try{_t(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},fn=function(t){dn(t);const e=Ot(t);if(e){const t=[];g(e,e=>{S(t,e)}),g(t,t=>{try{St(t)}catch(t){}})}const n=kt(t);if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&un(t,o,r)}},pn=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch(t){o=null}S(n.removed,{attribute:o||null,from:e});try{o?_t(e,o):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(_e||Ne)try{sn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},mn=function(t){const e=kt(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||ce[tn(r)]||un(t,o,r)}},dn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();Lt(t)===mt&&mn(t);const n=Ot(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},hn=function(t,e){return!!Se&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},gn=function(t){let e=null,n=null;if(ve)t="<remove></remove>"+t;else{const e=v(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ze&&We===Be&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=Mt?Bt(t):t;if(We===Be)try{e=(new h).parseFromString(r,Ze)}catch(t){}if(!e||!e.documentElement){e=Gt.createDocument(We,"template",null);try{e.documentElement.innerHTML=Ye?Ut:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),We===Be?Xt.call(e,Te?"html":"body")[0]:Te?e.documentElement:i},yn=function(t){const e=It?It(t):t.ownerDocument;return qt.call(e||t,t,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},bn=function(t){return t=_(t,Jt," "),t=_(t,Zt," "),t=_(t,Qt," ")},Sn=function(t){var e;t.normalize();const n=It?It(t):t.ownerDocument,o=qt.call(n||t,t,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=bn(r.data),r=o.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&g(i,t=>{An(t.content)&&Sn(t.content)})},Tn=function(t){const e=Ct?Ct(t):null;return"string"==typeof e&&("form"===tn(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==kt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Rt(t)||t.childNodes!==Ot(t)))},An=function(t){if(!Rt||"object"!=typeof t||null===t)return!1;try{return Rt(t)===bt}catch(t){return!1}},wn=function(t){if(!Rt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Rt(t)}catch(t){return!1}};function En(t,e,o){0!==t.length&&g(t,t=>{t.call(n,e,o,en)})}const vn=function(t,e){if(t instanceof RegExp)return L(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},_n=function(t,e,n,o){return 0===t.length?e:e===n||e===o?H(e):e},Nn=function(t,e){return t!==e&&null===xt(t)&&(Ce&&dn(t),!0)},On=function(t,e){if(En(Vt.beforeSanitizeElements,t,null),Nn(t,e))return!0;if(Tn(t))return sn(t),!0;const o=tn(zt(t));if(ae=_n(Vt.uponSanitizeElement,ae,le,we),En(Vt.uponSanitizeElement,t,{tagName:o,allowedTags:ae}),Nn(t,e))return!0;if(function(t,e){return!!(Se&&t.hasChildNodes()&&!wn(t.firstElementChild)&&L(st,t.textContent)&&L(st,t.innerHTML))||!!(Se&&t.namespaceURI===Be&&Tt[e]&&(wn(t.firstElementChild)||"string"==typeof t.textContent&&L(At[e],t.textContent)))||t.nodeType===ht||!(!Se||t.nodeType!==gt||!L(ut,t.data))}(t,o))return sn(t),!0;if(fe[o]||!(me.tagCheck instanceof Function&&me.tagCheck(o))&&!ae[o]){const n=function(t,e,n){if(!fe[e]&&kn(e)&&vn(ue.tagNameCheck,e))return!1;if(Re&&!Le[e]){const e=xt(t),o=Ot(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?F(o[r],!0):o[r];e.insertBefore(i,Nt(t))}}return sn(t),!0}(t,o,e);return!1===n&&En(Vt.afterSanitizeElements,t,null),n}if(Lt(t)===mt&&!cn(t))return sn(t),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&L(ft,t.innerHTML))return sn(t),!0;if(be&&t.nodeType===dt){const e=bn(t.textContent);t.textContent!==e&&(S(n.removed,{element:t.cloneNode()}),t.textContent=e)}return En(Vt.afterSanitizeElements,t,null),!1},xn=function(t,e,n){if(pe[e])return!1;if(hn(e,t))return!1;if(xe&&("id"===e||"name"===e)&&(n in o||n in nn))return!1;const r=ce[e]||me.attributeCheck instanceof Function&&me.attributeCheck(e,t);return!(!he||!L(te,e))||(!(!de||!L(ee,e))||(r?!!Ue[e]||(!!L(ie,_(n,oe,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==N(n,"data:")||!Me[t])||(!(!ge||L(ne,_(n,oe,"")))||!n))):kn(t)&&vn(ue.tagNameCheck,t)&&vn(ue.attributeNameCheck,e,t)||"is"===e&&ue.allowCustomizedBuiltInElements&&vn(ue.tagNameCheck,n)))},Dn=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),kn=function(t){return!Dn[w(t)]&&L(re,t)},Rn=function(t,e,n,o){if(Mt&&"object"==typeof M&&"function"==typeof M.getAttributeType&&!n)switch(M.getAttributeType(t,e)){case"TrustedHTML":return Bt(o);case"TrustedScriptURL":return function(t){jt(),Ht++;try{return Mt.createScriptURL(t)}finally{Ht--}}(o)}return o},Cn=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),!Tn(t)||(sn(t),!1)}catch(n){return pn(e,t),!1}},In=function(t){En(Vt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||Tn(t))return;ce=_n(Vt.uponSanitizeAttribute,ce,se,Ee);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0};let r=e.length;const i=tn(t.nodeName);for(;r--;){const a=e[r],l=a.name,c=a.namespaceURI,s=a.value,u=tn(l),f=s;let p="value"===l?f:O(f),m=!1;if(o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,En(Vt.uponSanitizeAttribute,t,o),p=o.attrValue,!De||"id"!==u&&"name"!==u||0===N(p,ke)||(pn(l,t,a),p=ke+p,m=!0),Se&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p))pn(l,t,a);else if("attributename"===u&&v(p,"href"))pn(l,t,a);else if(!o.forceKeepAttr)if(o.keepAttr)if(ye||!L(pt,p))if(be&&(p=bn(p)),xn(i,u,p)){if(p=Rn(i,u,c,p),p!==f){Cn(t,l,c,p)&&m&&b(n.removed)}}else pn(l,t,a);else pn(l,t,a);else pn(l,t,a)}En(Vt.afterSanitizeAttributes,t,null)},Ln=function(t){let e=null;const n=yn(t);for(En(Vt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(En(Vt.uponSanitizeShadowNode,e,null),On(e,t),In(e),An(e.content)&&Ln(e.content),Lt(e)===mt){const t=Dt(e);An(t)&&(zn(t),Ln(t))}En(Vt.afterSanitizeShadowDOM,t,null)},zn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Ln(t.shadow);continue}const n=t.node,o=Lt(n)===mt,r=Ot(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=Ct?Ct(n):null;if("string"==typeof t&&"template"===tn(t)){const t=n.content;An(t)&&e.push({node:t,shadow:null})}}if(o){const t=Dt(n);An(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Ye=!t,Ye&&(t="\x3c!--\x3e"),"string"!=typeof t&&!wn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return x(t);case"boolean":return D(t);case"bigint":return k?k(t):"0";case"symbol":return R?R(t):"Symbol()";case"undefined":default:return I(t);case"function":case"object":{if(null===t)return I(t);const e=t,n=j(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:I(t)}return I(t)}}}(t)))throw z("dirty is not a string, aborting");if(!n.isSupported)return t;Ae?(ae=we,ce=Ee):rn(e),(Vt.uponSanitizeElement.length>0||Vt.uponSanitizeAttribute.length>0)&&(ae=H(ae)),Vt.uponSanitizeAttribute.length>0&&(ce=H(ce)),n.removed=[];const c=Ce&&"string"!=typeof t&&wn(t);if(c){!function(t){if(!Se)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Lt(t);if(n===ht||n===gt&&L(ut,t.data)){try{St(t)}catch(t){}continue}if(n===mt){const e=t,n=tn(zt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&hn("for",n)&&e.removeAttribute("for")}catch(t){}}const o=Ot(t);if(o)for(let t=o.length-1;t>=0;--t)e.push(o[t])}}(t);const e=zt(t);if("string"==typeof e){const n=tn(e);if(!ae[n]||fe[n])throw fn(t),z("root node is forbidden and cannot be sanitized in-place")}if(Tn(t))throw fn(t),z("root node is clobbered and cannot be sanitized in-place");try{zn(t)}catch(e){throw fn(t),e}}else if(wn(t))o=gn("\x3c!----\x3e"),i=o.ownerDocument.importNode(t,!0),i.nodeType===mt&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),zn(o);else{if(!_e&&!be&&!Te&&-1===t.indexOf("<"))return Mt&&Oe?Bt(t):t;if(o=gn(t),!o)return _e?null:Oe?Ut:""}o&&ve&&sn(o.firstChild);const s=c?t:o;try{const t=yn(s);for(;a=t.nextNode();)On(a,s),In(a),An(a.content)&&Ln(a.content)}catch(e){throw c&&(fn(t),g(n.removed,t=>{t.element&&dn(t.element)})),e}if(c)return g(n.removed,t=>{t.element&&dn(t.element)}),be&&Sn(t),t;if(_e){if(be&&Sn(o),Ne)for(l=$t.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(ce.shadowroot||ce.shadowrootmode)&&(l=Kt.call(r,l,!0)),l}let u=Te?o.outerHTML:o.innerHTML;return Te&&ae["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&L(lt,o.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u),be&&(u=bn(u)),Mt&&Oe?Bt(u):u},n.setConfig=function(){rn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ae=!0,we=ae,Ee=ce},n.clearConfig=function(){en=null,Ae=!1,we=null,Ee=null,Mt=Pt,Ut=""},n.isValidAttribute=function(t,e,n){en||rn({});const o=tn(t),r=tn(e);return xn(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&C(Vt,t)&&S(Vt[t],e)},n.removeHook=function(t,e){if(C(Vt,t)){if(void 0!==e){const n=y(Vt[t],e);return-1===n?void 0:T(Vt[t],n,1)[0]}return b(Vt[t])}},n.removeHooks=function(t){C(Vt,t)&&(Vt[t]=[])},n.removeAllHooks=function(){Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Nt(t){return"string"==typeof t&&_t.isSupported?_t.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},NAMESPACE:"http://www.w3.org/2000/svg"}):""}}}]);
2
+ /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
3
+ function o(t,e){this.v=t,this.k=e}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}
4
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
5
+ function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){u=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){var e,n;function r(e,n){try{var a=t[e](n),l=a.value,c=l instanceof o;Promise.resolve(c?l.v:l).then(function(n){if(c){var o="return"===e&&l.k?e:"next";if(!l.k||n.done)return r(o,n);n=t[o](n).value}i(!!a.done,n)},function(t){r("throw",t)})}catch(t){i(2,t)}}function i(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}n.r(e),n.d(e,{sanitizeSvgContent:()=>Dt}),a.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(t){return this._invoke("next",t)},a.prototype.throw=function(t){return this._invoke("throw",t)},a.prototype.return=function(t){return this._invoke("return",t)};const l=Object.entries,c=Object.setPrototypeOf,u=Object.isFrozen,s=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor;let p=Object.freeze,m=Object.seal,d=Object.create,h="undefined"!=typeof Reflect&&Reflect,y=h.apply,g=h.construct;p||(p=function(t){return t}),m||(m=function(t){return t}),y||(y=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),g||(g=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const b=B(Array.prototype.forEach);Array.prototype.indexOf;const S=B(Array.prototype.lastIndexOf),T=B(Array.prototype.pop),v=B(Array.prototype.push),w=B(Array.prototype.slice),A=B(Array.prototype.splice),E=Array.isArray,_=W(Set),x=B(Set.prototype.add),O=B(Set.prototype.has),N=B(String.prototype.toLowerCase),k=B(String.prototype.toString),D=B(String.prototype.match),C=B(String.prototype.replace),R=B(String.prototype.indexOf),I=B(String.prototype.trim),L=B(Number.prototype.toString),z=B(Boolean.prototype.toString),M="undefined"==typeof BigInt?null:B(BigInt.prototype.toString),P="undefined"==typeof Symbol?null:B(Symbol.prototype.toString),U=B(Object.prototype.hasOwnProperty),F=B(Object.prototype.toString),j=B(RegExp.prototype.test),H=W(TypeError);function B(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return y(t,e,o)}}function W(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return g(t,n)}}function Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(c&&c(t,null),!E(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(u(e)||(e[o]=t),r=t)}t[r]=!0}return t}function G(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function q(t){const e=d(null);for(const o of l(t)){var n=i(o,2);const r=n[0],a=n[1];U(t,r)&&(E(a)?e[r]=G(a):a&&"object"==typeof a&&a.constructor===Object?e[r]=q(a):e[r]=a)}return e}function $(t,e){for(;null!==t;){const n=f(t,e);if(n){if(n.get)return B(n.get);if("function"==typeof n.value)return B(n.value)}t=s(t)}return function(){return null}}const X=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),K=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),V=p(["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"]),J=p(["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"]),Z=p(["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"]),Q=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=p(["#text"]),et=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),nt=p(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),ot=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rt=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=m(/{{[\w\W]*|^[\w\W]*}}/g),at=m(/<%[\w\W]*|^[\w\W]*%>/g),lt=m(/\${[\w\W]*/g),ct=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),ut=m(/^aria-[\-\w]+$/),st=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=m(/^(?:\w+script|data):/i),pt=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=m(/^html$/i),dt=m(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=m(/<[/\w!]/g),yt=m(/<[/\w]/g),gt=m(/<\/no(script|embed|frames)/i),bt=m(/\/>/i),St=1,Tt=3,vt=7,wt=8,At=9,Et=11,_t=p(Y({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),xt=function(){return"undefined"==typeof window?null:window},Ot=function(t,e,n,o){return U(t,e)&&E(t[e])?Y(o.base?q(o.base):{},t[e],o.transform):n},Nt=function(t,e,n){const o=U(t,e)?t[e]:void 0;return o&&"object"==typeof o?q(o):n()};var kt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt();const n=e=>t(e);if(n.version="3.4.17",n.removed=[],!e||!e.document||e.document.nodeType!==At||!e.Element)return n.isSupported=!1,n;let o=e.document;const r=o,i=r.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,c=e.Node,u=e.Element,h=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const y=e.DOMParser,g=e.trustedTypes,W=u.prototype,G=$(W,"cloneNode"),kt=$(W,"remove"),Dt=$(W,"removeAttributeNode"),Ct=$(W,"nextSibling"),Rt=$(W,"childNodes"),It=$(W,"parentNode"),Lt=$(W,"shadowRoot"),zt=$(W,"attributes"),Mt=c&&c.prototype?$(c.prototype,"nodeType"):null,Pt=c&&c.prototype?$(c.prototype,"nodeName"):null,Ut=c&&c.prototype?$(c.prototype,"ownerDocument"):null,Ft=function(t){return Mt?Mt(t):t.nodeType},jt=function(t){return Pt?Pt(t):t.nodeName},Ht=function(t,e){for(;null!==t;){const n=f(t,e);if(n)return n.get?B(n.get):null;t=s(t)}return null}(W,"namespaceURI"),Bt=function(t){return Ht?Ht(t):t.namespaceURI};if("function"==typeof a){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Wt,Yt,Gt="",qt=!1,$t=0;const Xt=function(){if($t>0)throw H('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Kt=function(t){Xt(),$t++;try{return Wt.createHTML(t)}finally{$t--}},Vt=function(){return qt||(Yt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(g,i),qt=!0),Yt},Jt=o,Zt=Jt.implementation,Qt=Jt.createNodeIterator,te=Jt.createDocumentFragment,ee=Jt.getElementsByTagName,ne=r.importNode;let oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof l&&"function"==typeof It&&Zt&&void 0!==Zt.createHTMLDocument;const re=it,ie=at,ae=lt,le=ct,ce=ut,ue=ft,se=pt,fe=dt;let pe=st,me=null;const de=Y({},[...X,...K,...V,...Z,...tt]);let he=null;const ye=Y({},[...et,...nt,...ot,...rt]);let ge=Object.seal(d(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}})),be=null,Se=null;const Te=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,we=!0,Ae=!1,Ee=!0,_e=!1,xe=!0,Oe=!1,Ne=!1,ke=null,De=null,Ce=!1,Re=!1,Ie=!1,Le=!1,ze=!0,Me=!1;const Pe="user-content-";let Ue=!0,Fe=!1,je=null,He={},Be=null;const We=Y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Ge=Y({},["audio","video","img","source","image","track"]);let qe=null;const $e=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let Je=Ve,Ze=!1,Qe=null;const tn=Y({},[Xe,Ke,Ve],k),en=p(["mi","mo","mn","ms","mtext"]);let nn=Y({},en);const on=p(["annotation-xml"]);let rn=Y({},on);const an=Y({},["title","style","font","a","script"]);let ln=null;const cn=["application/xhtml+xml","text/html"];let un=null,sn=null;const fn=o.createElement("form"),pn=function(t){return t instanceof RegExp||t instanceof Function},mn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(sn&&sn===t)return;t&&"object"==typeof t||(t={}),t=q(t),ln=-1===cn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,un="application/xhtml+xml"===ln?k:N,me=Ot(t,"ALLOWED_TAGS",de,{transform:un}),he=Ot(t,"ALLOWED_ATTR",ye,{transform:un}),Qe=Ot(t,"ALLOWED_NAMESPACES",tn,{transform:k}),qe=Ot(t,"ADD_URI_SAFE_ATTR",$e,{transform:un,base:$e}),Ye=Ot(t,"ADD_DATA_URI_TAGS",Ge,{transform:un,base:Ge}),Be=Ot(t,"FORBID_CONTENTS",We,{transform:un}),be=Ot(t,"FORBID_TAGS",q({}),{transform:un}),Se=Ot(t,"FORBID_ATTR",q({}),{transform:un}),He=!!U(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),ve=!1!==t.ALLOW_ARIA_ATTR,we=!1!==t.ALLOW_DATA_ATTR,Ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,_e=t.SAFE_FOR_TEMPLATES||!1,xe=!1!==t.SAFE_FOR_XML,Oe=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ce=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,Me=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Fe=t.IN_PLACE||!1,pe=function(t){try{return j(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:st,Je="string"==typeof t.NAMESPACE?t.NAMESPACE:Ve,nn=Nt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>Y({},en)),rn=Nt(t,"HTML_INTEGRATION_POINTS",()=>Y({},on));const e=Nt(t,"CUSTOM_ELEMENT_HANDLING",()=>d(null));if(ge=d(null),U(e,"tagNameCheck")&&pn(e.tagNameCheck)&&(ge.tagNameCheck=e.tagNameCheck),U(e,"attributeNameCheck")&&pn(e.attributeNameCheck)&&(ge.attributeNameCheck=e.attributeNameCheck),U(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ge.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),m(ge),_e&&(we=!1),Ie&&(Re=!0),He&&(me=Y({},tt),he=d(null),!0===He.html&&(Y(me,X),Y(he,et)),!0===He.svg&&(Y(me,K),Y(he,nt),Y(he,rt)),!0===He.svgFilters&&(Y(me,V),Y(he,nt),Y(he,rt)),!0===He.mathMl&&(Y(me,Z),Y(he,ot),Y(he,rt))),Te.tagCheck=null,Te.attributeCheck=null,U(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Te.tagCheck=t.ADD_TAGS:E(t.ADD_TAGS)&&(me===de&&(me=q(me)),Y(me,t.ADD_TAGS,un))),U(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Te.attributeCheck=t.ADD_ATTR:E(t.ADD_ATTR)&&(he===ye&&(he=q(he)),Y(he,t.ADD_ATTR,un))),U(t,"ADD_FORBID_CONTENTS")&&E(t.ADD_FORBID_CONTENTS)&&(Be===We&&(Be=q(Be)),Y(Be,t.ADD_FORBID_CONTENTS,un)),Ue&&(me["#text"]=!0),Oe&&Y(me,["html","head","body"]),me.table&&(Y(me,["tbody"]),delete be.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Wt;Wt=t.TRUSTED_TYPES_POLICY;try{Gt=Kt("")}catch(t){throw Wt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Wt=void 0,Gt=""):(void 0===Wt&&(Wt=Vt()),Wt&&"string"==typeof Gt&&(Gt=Kt("")));p&&p(t),sn=t},dn=Y({},[...K,...V,...J]),hn=Y({},[...Z,...Q]),yn=function(t){const e=Bt(t),n=N(jt(t)),o=It(t);let r,i;return o&&Ft(o)===St?(r={namespaceURI:Bt(o)},i=N(jt(o))):(r={namespaceURI:Je},i="template"),!!Qe[e]&&(e===Ke?function(t,e,n){return e.namespaceURI===Ve?"svg"===t:e.namespaceURI===Xe?"svg"===t&&("annotation-xml"===n||nn[n]):Boolean(dn[t])}(n,r,i):e===Xe?function(t,e,n){return e.namespaceURI===Ve?"math"===t:e.namespaceURI===Ke?"math"===t&&rn[n]:Boolean(hn[t])}(n,r,i):e===Ve?function(t,e,n){return!(e.namespaceURI===Ke&&!rn[n])&&!(e.namespaceURI===Xe&&!nn[n])&&!hn[t]&&(an[t]||!dn[t])}(n,r,i):!("application/xhtml+xml"!==ln||!Qe[e]))},gn=function(t){v(n.removed,{element:t});try{It(t).removeChild(t)}catch(e){if(kt(t),!It(t))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},bn=function(t,e,n){try{Dt(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},Sn=function(t){An(t);const e=Rt(t);e&&b(w(e),t=>{try{kt(t)}catch(t){}});const n=Ft(t)===St?zt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&bn(t,o,r)}},Tn=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch(t){o=null}v(n.removed,{attribute:o||null,from:e});try{o?Dt(e,o):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(Re||Ie)try{gn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},vn=function(t){const e=zt(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||he[un(r)]||bn(t,o,r)}},wn=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[t];for(;o.length>0;){const t=o.pop();if(!1===e(t))continue;if(n&&Ft(t)===St){const e=Lt(t);Ln(e)&&o.push(e)}const r=Rt(t);if(r)for(let t=r.length-1;t>=0;--t)o.push(r[t])}},An=function(t){wn(t,t=>{Ft(t)===St&&vn(t)})},En=function(t){const e=[];return wn(t,t=>{e.push(t)},!0),e},_n=function(t,e){let o=!1;return b(n.removed,e=>{e.element&&(o=o||e.element===t,An(e.element))}),function(t,e){const n=_();b(En(t),t=>{Ft(t)===St&&x(n,t)}),b(e,t=>{Ft(t)!==St||O(n,t)||vn(t)})}(t,e),o},xn=function(t,e,n,o){const r=kn(t);let i;for(;i=r.nextNode();)O(o,i)&&!O(je,i)&&(e&&Mn(oe.uponSanitizeShadowNode,i,null),jn(i,n),$n(i,n),Ln(i.content)&&Xn(i.content))},On=function(t,e){return!!xe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},Nn=function(t){let e=null,n=null;if(Ce)t="<remove></remove>"+t;else{const e=D(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ln&&Je===Ve&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=Wt?Kt(t):t;if(Je===Ve)try{e=(new y).parseFromString(r,ln)}catch(t){}if(!e||!e.documentElement){e=Zt.createDocument(Je,"template",null);try{e.documentElement.innerHTML=Ze?Gt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Je===Ve?ee.call(e,Oe?"html":"body")[0]:Oe?e.documentElement:i},kn=function(t){const e=Ut?Ut(t):t.ownerDocument;return Qt.call(e||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Dn=function(t){return t=C(t,re," "),t=C(t,ie," "),t=C(t,ae," ")},Cn=function(t){var e;Rn(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&b(n,t=>{Ln(t.content)&&Cn(t.content)})},Rn=function(t){t.normalize();const e=Ut?Ut(t):t.ownerDocument,n=Qt.call(e||t,t,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=Dn(o.data),o=n.nextNode()},In=function(t){const e=Pt?Pt(t):null;return"string"==typeof e&&("form"===un(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==zt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Mt(t)||t.childNodes!==Rt(t)))},Ln=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return Mt(t)===Et}catch(t){return!1}},zn=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Mt(t)}catch(t){return!1}};function Mn(t,e,o){0!==t.length&&b(t,t=>{t.call(n,e,o,sn)})}const Pn=function(t,e){if(t instanceof RegExp)return j(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},Un=function(t,e,n,o){return 0===t.length?e:e===n||e===o?q(e):e},Fn=function(t,e){return t!==e&&null===It(t)&&(Fe&&An(t),!0)},jn=function(t,e){var o;if(o=t,je&&x(je,o),Mn(oe.beforeSanitizeElements,t,null),Fn(t,e))return!0;if(In(t))return gn(t),!0;const r=un(jt(t));if(me=Un(oe.uponSanitizeElement,me,de,ke),Mn(oe.uponSanitizeElement,t,{tagName:r,allowedTags:me}),Fn(t,e))return!0;if(function(t,e){return!!(xe&&t.hasChildNodes()&&!zn(t.firstElementChild)&&j(ht,t.textContent)&&j(ht,t.innerHTML))||!!(xe&&_t[e]&&Ft(t)===St&&Bt(t)===Ve&&(zn(t.firstElementChild)||"string"==typeof t.textContent&&j(ht,t.textContent)))||t.nodeType===vt||!(!xe||t.nodeType!==wt||!j(yt,t.data))}(t,r))return gn(t),!0;if(be[r]||!(Te.tagCheck instanceof Function&&Te.tagCheck(r))&&!me[r]){const n=function(t,e,n){if(!be[e]&&Wn(e)&&Pn(ge.tagNameCheck,e))return!1;if(Ue&&!Be[e]&&!Be[N(e)]){const e=It(t),o=Rt(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?G(o[r],!0):o[r];e.insertBefore(i,Ct(t))}}return gn(t),!0}(t,r,e);return!(!1!==n||(Mn(oe.afterSanitizeElements,t,null),!Fn(t,e)))||n}if(Ft(t)===St&&!yn(t))return gn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&j(gt,t.innerHTML))return gn(t),!0;if(_e&&t.nodeType===Tt){const e=Dn(t.textContent);t.textContent!==e&&(v(n.removed,{element:t.cloneNode()}),t.textContent=e)}return Mn(oe.afterSanitizeElements,t,null),Fn(t,e)},Hn=function(t,e,n){if(Se[e])return!1;if(On(e,t))return!1;if(ze&&("id"===e||"name"===e)&&(n in o||n in fn))return!1;const r=he[e]||Te.attributeCheck instanceof Function&&Te.attributeCheck(e,t);return!(!we||!j(le,e))||(!(!ve||!j(ce,e))||(r?!!qe[e]||(!!j(pe,C(n,se,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!Ye[t])||(!(!Ae||j(ue,C(n,se,"")))||!n))):Wn(t)&&Pn(ge.tagNameCheck,t)&&Pn(ge.attributeNameCheck,e,t)||"is"===e&&ge.allowCustomizedBuiltInElements&&Pn(ge.tagNameCheck,n)))},Bn=Y({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wn=function(t){return!Bn[N(t)]&&j(fe,t)},Yn=function(t,e,n,o){if(Wt&&"object"==typeof g&&"function"==typeof g.getAttributeType&&!n)switch(g.getAttributeType(t,e)){case"TrustedHTML":return Kt(o);case"TrustedScriptURL":return function(t){Xt(),$t++;try{return Wt.createScriptURL(t)}finally{$t--}}(o)}return o},Gn=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),!In(t)||(gn(t),!1)}catch(n){return Tn(e,t),!1}},qn=function(t,e){return!(!xe||!j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===N(t)&&null!==D(e,"href")},$n=function(t,e){if(Mn(oe.beforeSanitizeAttributes,t,null),Fn(t,e))return;const o=t.attributes;if(!o||In(t))return;he=Un(oe.uponSanitizeAttribute,he,ye,De);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0};let i=o.length;const a=un(t.nodeName);for(;i--;){const e=o[i],l=e.name,c=e.namespaceURI,u=e.value,s=un(l),f=u;let p="value"===l?f:I(f),m=!1;r.attrName=s,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Mn(oe.uponSanitizeAttribute,t,r),p=r.attrValue,!Me||"id"!==s&&"name"!==s||0===R(p,Pe)||(Tn(l,t,e),p=Pe+p,m=!0),qn(l,p)?Tn(l,t,e):r.forceKeepAttr||(r.keepAttr&&(Ee||!j(bt,p))?(_e&&(p=Dn(p)),Hn(a,s,p)?(p=Yn(a,s,c,p),p!==f&&Gn(t,l,c,p)&&m&&T(n.removed)):Tn(l,t,e)):Tn(l,t,e))}Mn(oe.afterSanitizeAttributes,t,null),Fn(t,e)},Xn=function(t){let e=null;const n=kn(t);for(Mn(oe.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Mn(oe.uponSanitizeShadowNode,e,null),jn(e,t),$n(e,t),Ln(e.content)&&Xn(e.content),Ft(e)===St){const t=Lt(e);Ln(t)&&(Kn(t),Xn(t))}_e&&Rn(t),Mn(oe.afterSanitizeShadowDOM,t,null)},Kn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Xn(t.shadow);continue}const n=t.node,o=Ft(n)===St,r=Rt(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=Pt?Pt(n):null;if("string"==typeof t&&"template"===un(t)){const t=n.content;Ln(t)&&e.push({node:t,shadow:null})}}if(o){const t=Lt(n);Ln(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Ze=!t,Ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!zn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return L(t);case"boolean":return z(t);case"bigint":return M?M(t):"0";case"symbol":return P?P(t):"Symbol()";case"undefined":default:return F(t);case"function":case"object":{if(null===t)return F(t);const e=t,n=$(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:F(t)}return F(t)}}}(t)))throw H("dirty is not a string, aborting");if(!n.isSupported)return t;Ne?(me=ke,he=De):mn(e),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(me=q(me)),oe.uponSanitizeAttribute.length>0&&(he=q(he)),n.removed=[];const c=Fe&&"string"!=typeof t&&zn(t);let u=[];const s=je;if(c){f=t,xe&&wn(f,t=>{const e=Ft(t);if(e===vt||e===wt&&j(yt,t.data)){try{kt(t)}catch(t){}return!1}if(e===St){const e=t,n=un(jt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&On("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=jt(t);if("string"==typeof e){const n=un(e);if(!me[n]||be[n])throw Sn(t),H("root node is forbidden and cannot be sanitized in-place")}if(In(t))throw Sn(t),H("root node is clobbered and cannot be sanitized in-place");u=En(t),je=_()}else if(zn(t))o=Nn("\x3c!----\x3e"),i=o.ownerDocument.importNode(t,!0),i.nodeType===St&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),Kn(o);else{if(!Re&&!_e&&!Oe&&-1===t.indexOf("<"))return Wt&&Le?Kt(t):t;if(o=Nn(t),!o)return Re?null:Le?Gt:""}var f;o&&Ce&&gn(o.firstChild);const p=c?t:o;try{c&&Kn(t);const e=kn(p);for(;a=e.nextNode();)jn(a,p),$n(a,p),Ln(a.content)&&Xn(a.content);c&&function(t,e){const n=je;let o=null;const r=()=>(o||(o=_(),b(e,t=>{x(o,t)})),o);for(let e=0;;e++){const o=En(t),i=[t];let a=!1;if(b(o,t=>{Ft(t)===Et?v(i,t):a||O(n,t)||(a=O(r(),t))}),!a)return;if(e>=8)throw H("the tree kept changing during in-place sanitization; refusing to return it");b(i,(e,n)=>{xn(e,n>0,t,r())})}}(t,u)}catch(e){throw c&&(Sn(t),_n(t,u)),e}finally{je=s}if(c){if(_n(t,u))throw H("a node selected for removal could not be safely returned; refusing to sanitize in place");return _e&&Cn(t),t}if(Re){if(_e&&Cn(o),Ie)for(l=te.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(he.shadowroot||he.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let m=Oe?o.outerHTML:o.innerHTML;return Oe&&me["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&j(mt,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),_e&&(m=Dn(m)),Wt&&Le?Kt(m):m},n.setConfig=function(){mn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ne=!0,ke=me,De=he},n.clearConfig=function(){sn=null,Ne=!1,ke=null,De=null,Wt=Yt,Gt=""},n.isValidAttribute=function(t,e,n){sn||mn({});const o=un(t),r=un(e);return("string"!=typeof n||!(qn(e,n)||!Ee&&j(bt,n)))&&Hn(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&U(oe,t)&&v(oe[t],e)},n.removeHook=function(t,e){if(U(oe,t)){if(void 0!==e){const n=S(oe[t],e);return-1===n?void 0:A(oe[t],n,1)[0]}return T(oe[t])}},n.removeHooks=function(t){U(oe,t)&&(oe[t]=[])},n.removeAllHooks=function(){oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Dt(t){return"string"==typeof t&&kt.isSupported?kt.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},NAMESPACE:"http://www.w3.org/2000/svg"}):""}}}]);
4
6
  //# sourceMappingURL=500.chunk.min.js.map