/*! For license information please see index.js.LICENSE.txt */ (()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);nwt,DEFAULT_ALLOWED_TAGS:()=>St,getTrustedTypesPolicy:()=>vt,sanitizeHTML:()=>At});const r=Object.entries,i=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let s=Object.freeze,u=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,m=p.apply,d=p.construct;s||(s=function(t){return t}),u||(u=function(t){return t}),m||(m=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r1?e-1:0),o=1;o1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:w;if(i&&i(t,null),!S(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(a(e)||(e[o]=t),r=t)}t[r]=!0}return t}function U(t){for(let e=0;e/g),tt=u(/\${[\w\W]*/g),et=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),nt=u(/^aria-[\-\w]+$/),ot=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rt=u(/^(?:\w+script|data):/i),it=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=u(/^html$/i),lt=u(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=u(/<[/\w!]/g),st=u(/<[/\w]/g),ut=u(/<\/no(script|embed|frames)/i),ft=u(/\/>/i),pt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],mt=s(P({},pt)),dt=function(){const t={};return h(pt,e=>{t[e]=u(new RegExp("])","i"))}),s(t)}(),ht=function(){return"undefined"==typeof window?null:window},yt=function(t,e,n,o){return k(t,e)&&S(t[e])?P(o.base?F(o.base):{},t[e],o.transform):n},gt=function(t,e,n){const o=k(t,e)?t[e]:void 0;return o&&"object"==typeof o?F(o):n()};var bt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ht();const n=e=>t(e);if(n.version="3.4.14",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let o=e.document;const i=o,a=i.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,c=e.Node,p=e.Element,m=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,M=e.trustedTypes,z=p.prototype,U=H(z,"cloneNode"),pt=H(z,"remove"),bt=H(z,"nextSibling"),Tt=H(z,"childNodes"),St=H(z,"parentNode"),wt=H(z,"shadowRoot"),At=H(z,"attributes"),Et=c&&c.prototype?H(c.prototype,"nodeType"):null,vt=c&&c.prototype?H(c.prototype,"nodeName"):null,Ot=c&&c.prototype?H(c.prototype,"ownerDocument"):null,_t=function(t){return Et?Et(t):t.nodeType},Dt=function(t){return vt?vt(t):t.nodeName};if("function"==typeof l){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Nt,xt,Rt="",kt=!1,Ct=0;const Lt=function(){if(Ct>0)throw I('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.')},It=function(t){Lt(),Ct++;try{return Nt.createHTML(t)}finally{Ct--}},Mt=o,zt=Mt.implementation,Pt=Mt.createNodeIterator,Ut=Mt.createDocumentFragment,Ft=Mt.getElementsByTagName,Ht=i.importNode;let jt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof St&&zt&&void 0!==zt.createHTMLDocument;const Bt=J,Wt=Q,Yt=tt,Gt=et,qt=nt,$t=rt,Xt=it,Kt=lt;let Vt=ot,Zt=null;const Jt=P({},[...j,...B,...W,...G,...$]);let Qt=null;const te=P({},[...X,...K,...V,...Z]);let ee=Object.seal(f(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}})),ne=null,oe=null;const re=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,ae=!0,le=!1,ce=!0,se=!1,ue=!0,fe=!1,pe=!1,me=null,de=null,he=!1,ye=!1,ge=!1,be=!1,Te=!0,Se=!1;const we="user-content-";let Ae=!0,Ee=!1,ve={},Oe=null;const _e=P({},["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 De=null;const Ne=P({},["audio","video","img","source","image","track"]);let xe=null;const Re=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ke="http://www.w3.org/1998/Math/MathML",Ce="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Ie=Le,Me=!1,ze=null;const Pe=P({},[ke,Ce,Le],A),Ue=s(["mi","mo","mn","ms","mtext"]);let Fe=P({},Ue);const He=s(["annotation-xml"]);let je=P({},He);const Be=P({},["title","style","font","a","script"]);let We=null;const Ye=["application/xhtml+xml","text/html"];let Ge=null,qe=null;const $e=o.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===t)return;t&&"object"==typeof t||(t={}),t=F(t),We=-1===Ye.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ge="application/xhtml+xml"===We?A:w,Zt=yt(t,"ALLOWED_TAGS",Jt,{transform:Ge}),Qt=yt(t,"ALLOWED_ATTR",te,{transform:Ge}),ze=yt(t,"ALLOWED_NAMESPACES",Pe,{transform:A}),xe=yt(t,"ADD_URI_SAFE_ATTR",Re,{transform:Ge,base:Re}),De=yt(t,"ADD_DATA_URI_TAGS",Ne,{transform:Ge,base:Ne}),Oe=yt(t,"FORBID_CONTENTS",_e,{transform:Ge}),ne=yt(t,"FORBID_TAGS",F({}),{transform:Ge}),oe=yt(t,"FORBID_ATTR",F({}),{transform:Ge}),ve=!!k(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?F(t.USE_PROFILES):t.USE_PROFILES),ie=!1!==t.ALLOW_ARIA_ATTR,ae=!1!==t.ALLOW_DATA_ATTR,le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,se=t.SAFE_FOR_TEMPLATES||!1,ue=!1!==t.SAFE_FOR_XML,fe=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,ge=t.RETURN_DOM_FRAGMENT||!1,be=t.RETURN_TRUSTED_TYPE||!1,he=t.FORCE_BODY||!1,Te=!1!==t.SANITIZE_DOM,Se=t.SANITIZE_NAMED_PROPS||!1,Ae=!1!==t.KEEP_CONTENT,Ee=t.IN_PLACE||!1,Vt=function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ot,Ie="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=gt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>P({},Ue)),je=gt(t,"HTML_INTEGRATION_POINTS",()=>P({},He));const e=gt(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(ee=f(null),k(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ee.tagNameCheck=e.tagNameCheck),k(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ee.attributeNameCheck=e.attributeNameCheck),k(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ee.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),u(ee),se&&(ae=!1),ge&&(ye=!0),ve&&(Zt=P({},$),Qt=f(null),!0===ve.html&&(P(Zt,j),P(Qt,X)),!0===ve.svg&&(P(Zt,B),P(Qt,K),P(Qt,Z)),!0===ve.svgFilters&&(P(Zt,W),P(Qt,K),P(Qt,Z)),!0===ve.mathMl&&(P(Zt,G),P(Qt,V),P(Qt,Z))),re.tagCheck=null,re.attributeCheck=null,k(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?re.tagCheck=t.ADD_TAGS:S(t.ADD_TAGS)&&(Zt===Jt&&(Zt=F(Zt)),P(Zt,t.ADD_TAGS,Ge))),k(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?re.attributeCheck=t.ADD_ATTR:S(t.ADD_ATTR)&&(Qt===te&&(Qt=F(Qt)),P(Qt,t.ADD_ATTR,Ge))),k(t,"ADD_FORBID_CONTENTS")&&S(t.ADD_FORBID_CONTENTS)&&(Oe===_e&&(Oe=F(Oe)),P(Oe,t.ADD_FORBID_CONTENTS,Ge)),Ae&&(Zt["#text"]=!0),fe&&P(Zt,["html","head","body"]),Zt.table&&(P(Zt,["tbody"]),delete ne.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Nt;Nt=t.TRUSTED_TYPES_POLICY;try{Rt=It("")}catch(t){throw Nt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Nt=void 0,Rt=""):(void 0===Nt&&(kt||(xt=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),kt=!0),Nt=xt),Nt&&"string"==typeof Rt&&(Rt=It("")));s&&s(t),qe=t},Ve=P({},[...B,...W,...Y]),Ze=P({},[...G,...q]),Je=function(t){b(n.removed,{element:t});try{St(t).removeChild(t)}catch(e){if(pt(t),!St(t))throw I("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Qe=function(t,e,n){try{t.removeAttributeNode(e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},tn=function(t){on(t);const e=Tt(t);if(e){const t=[];h(e,e=>{b(t,e)}),h(t,t=>{try{pt(t)}catch(t){}})}const n=At(t);if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&Qe(t,o,r)}},en=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch(t){o=null}b(n.removed,{attribute:o||null,from:e});try{o?e.removeAttributeNode(o):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ye||ge)try{Je(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},nn=function(t){const e=At(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||Qt[Ge(r)]||Qe(t,o,r)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===_t(t)&&nn(t);const n=Tt(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},rn=function(t,e){return!!ue&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},an=function(t){let e=null,n=null;if(he)t=""+t;else{const e=E(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===We&&Ie===Le&&(t=''+t+"");const r=Nt?It(t):t;if(Ie===Le)try{e=(new d).parseFromString(r,We)}catch(t){}if(!e||!e.documentElement){e=zt.createDocument(Ie,"template",null);try{e.documentElement.innerHTML=Me?Rt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ie===Le?Ft.call(e,fe?"html":"body")[0]:fe?e.documentElement:i},ln=function(t){const e=Ot?Ot(t):t.ownerDocument;return Pt.call(e||t,t,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},cn=function(t){return t=v(t,Bt," "),t=v(t,Wt," "),v(t,Yt," ")},sn=function(t){var e;t.normalize();const n=Ot?Ot(t):t.ownerDocument,o=Pt.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=cn(r.data),r=o.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&h(i,t=>{fn(t.content)&&sn(t.content)})},un=function(t){const e=vt?vt(t):null;return"string"==typeof e&&"form"===Ge(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==At(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Et(t)||t.childNodes!==Tt(t))},fn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return 11===Et(t)}catch(t){return!1}},pn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Et(t)}catch(t){return!1}};function mn(t,e,o){0!==t.length&&h(t,t=>{t.call(n,e,o,qe)})}const dn=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=0;--r){const i=t===n?U(o[r],!0):o[r];e.insertBefore(i,bt(t))}}return Je(t),!0}(t,o,e);return!1===n&&mn(jt.afterSanitizeElements,t,null),n}if(1===_t(t)&&!function(t){let e=St(t);e&&e.tagName||(e={namespaceURI:Ie,tagName:"template"});const n=w(t.tagName),o=w(e.tagName);return!!ze[t.namespaceURI]&&(t.namespaceURI===Ce?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===ke?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ve[t])}(n,e,o):t.namespaceURI===ke?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ce?"math"===t&&je[n]:Boolean(Ze[t])}(n,e,o):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ce&&!je[n])&&!(e.namespaceURI===ke&&!Fe[n])&&!Ze[t]&&(Be[t]||!Ve[t])}(n,e,o):!("application/xhtml+xml"!==We||!ze[t.namespaceURI]))}(t))return Je(t),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&L(ut,t.innerHTML))return Je(t),!0;if(se&&3===t.nodeType){const e=cn(t.textContent);t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)}return mn(jt.afterSanitizeElements,t,null),!1},bn=function(t,e,n){if(oe[e])return!1;if(rn(e,t))return!1;if(Te&&("id"===e||"name"===e)&&(n in o||n in $e))return!1;const r=Qt[e]||re.attributeCheck instanceof Function&&re.attributeCheck(e,t);return!(!ae||!L(Gt,e))||!(!ie||!L(qt,e))||(r?!(!xe[e]&&!L(Vt,v(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==O(n,"data:")||!De[t])&&(!le||L($t,v(n,Xt,"")))&&n):Sn(t)&&dn(ee.tagNameCheck,t)&&dn(ee.attributeNameCheck,e,t)||"is"===e&&ee.allowCustomizedBuiltInElements&&dn(ee.tagNameCheck,n))},Tn=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Sn=function(t){return!Tn[w(t)]&&L(Kt,t)},wn=function(t,e,n,o){if(Nt&&"object"==typeof M&&"function"==typeof M.getAttributeType&&!n)switch(M.getAttributeType(t,e)){case"TrustedHTML":return It(o);case"TrustedScriptURL":return function(t){Lt(),Ct++;try{return Nt.createScriptURL(t)}finally{Ct--}}(o)}return o},An=function(t,e,o,r){try{o?t.setAttributeNS(o,e,r):t.setAttribute(e,r),un(t)?Je(t):g(n.removed)}catch(n){en(e,t)}},En=function(t){mn(jt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||un(t))return;Qt=hn(jt.uponSanitizeAttribute,Qt,te,de);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qt,forceKeepAttr:void 0};let o=e.length;const r=Ge(t.nodeName);for(;o--;){const i=e[o],a=i.name,l=i.namespaceURI,c=i.value,s=Ge(a),u=c;let f="value"===a?u:_(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,mn(jt.uponSanitizeAttribute,t,n),f=n.attrValue,!Se||"id"!==s&&"name"!==s||0===O(f,we)||(en(a,t,i),f=we+f),ue&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&E(f,"href")?en(a,t,i):n.forceKeepAttr||(!n.keepAttr||!ce&&L(ft,f)?en(a,t,i):(se&&(f=cn(f)),bn(r,s,f)?(f=wn(r,s,l,f),f!==u&&An(t,a,l,f)):en(a,t,i)))}mn(jt.afterSanitizeAttributes,t,null)},vn=function(t){let e=null;const n=ln(t);for(mn(jt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(mn(jt.uponSanitizeShadowNode,e,null),gn(e,t),En(e),fn(e.content)&&vn(e.content),1===_t(e)){const t=wt(e);fn(t)&&(On(t),vn(t))}mn(jt.afterSanitizeShadowDOM,t,null)},On=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){vn(t.shadow);continue}const n=t.node,o=1===_t(n),r=Tt(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=vt?vt(n):null;if("string"==typeof t&&"template"===Ge(t)){const t=n.content;fn(t)&&e.push({node:t,shadow:null})}}if(o){const t=wt(n);fn(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,r=null,a=null,l=null;if(Me=!t,Me&&(t="\x3c!--\x3e"),"string"!=typeof t&&!pn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return D(t);case"boolean":return N(t);case"bigint":return x?x(t):"0";case"symbol":return R?R(t):"Symbol()";case"undefined":default:return C(t);case"function":case"object":{if(null===t)return C(t);const e=t,n=H(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:C(t)}return C(t)}}}(t)))throw I("dirty is not a string, aborting");if(!n.isSupported)return t;pe?(Zt=me,Qt=de):Ke(e),(jt.uponSanitizeElement.length>0||jt.uponSanitizeAttribute.length>0)&&(Zt=F(Zt)),jt.uponSanitizeAttribute.length>0&&(Qt=F(Qt)),n.removed=[];const c=Ee&&"string"!=typeof t&&pn(t);if(c){!function(t){if(!ue)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=_t(t);if(7===n||8===n&&L(st,t.data)){try{pt(t)}catch(t){}continue}if(1===n){const e=t,n=Ge(Dt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&rn("for",n)&&e.removeAttribute("for")}catch(t){}}const o=Tt(t);if(o)for(let t=o.length-1;t>=0;--t)e.push(o[t])}}(t);const e=Dt(t);if("string"==typeof e){const n=Ge(e);if(!Zt[n]||ne[n])throw tn(t),I("root node is forbidden and cannot be sanitized in-place")}if(un(t))throw tn(t),I("root node is clobbered and cannot be sanitized in-place");try{On(t)}catch(e){throw tn(t),e}}else if(pn(t))o=an("\x3c!----\x3e"),r=o.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r),On(r);else{if(!ye&&!se&&!fe&&-1===t.indexOf("<"))return Nt&&be?It(t):t;if(o=an(t),!o)return ye?null:be?Rt:""}o&&he&&Je(o.firstChild);const s=c?t:o;try{const t=ln(s);for(;a=t.nextNode();)gn(a,s),En(a),fn(a.content)&&vn(a.content)}catch(e){throw c&&(tn(t),h(n.removed,t=>{t.element&&on(t.element)})),e}if(c)return h(n.removed,t=>{t.element&&on(t.element)}),se&&sn(t),t;if(ye){if(se&&sn(o),ge)for(l=Ut.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Qt.shadowroot||Qt.shadowrootmode)&&(l=Ht.call(i,l,!0)),l}let u=fe?o.outerHTML:o.innerHTML;return fe&&Zt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&L(at,o.ownerDocument.doctype.name)&&(u="\n"+u),se&&(u=cn(u)),Nt&&be?It(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),pe=!0,me=Zt,de=Qt},n.clearConfig=function(){qe=null,pe=!1,me=null,de=null,Nt=xt,Rt=""},n.isValidAttribute=function(t,e,n){qe||Ke({});const o=Ge(t),r=Ge(e);return bn(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&k(jt,t)&&b(jt[t],e)},n.removeHook=function(t,e){if(k(jt,t)){if(void 0!==e){const n=y(jt[t],e);return-1===n?void 0:T(jt[t],n,1)[0]}return g(jt[t])}},n.removeHooks=function(t){k(jt,t)&&(jt[t]=[])},n.removeAllHooks=function(){jt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();let Tt;const St=["a","b","em","i","strong","p","br","abbr"],wt=["target","href","rel","name","download","title"];function At(t,e){const n={ALLOWED_TAGS:[...e?.tags||St],ALLOWED_ATTR:[...e?.attr||wt]},o=function(){if(void 0!==Tt)return Tt;if("undefined"==typeof window||!window.trustedTypes)return Tt=null,null;try{Tt=window.trustedTypes.createPolicy("woocommerce-sanitize-noop",{createHTML:t=>t})}catch(t){Tt=null,console.warn('Failed to create "woocommerce-sanitize-noop" trusted type policy:',t)}return Tt}();return o&&(n.TRUSTED_TYPES_POLICY=o),"HTMLBodyElement"===e?.returnType?n.RETURN_DOM=!0:"DocumentFragment"===e?.returnType&&(n.RETURN_DOM_FRAGMENT=!0),bt.sanitize(t??"",n)}let Et;function vt(){if(void 0!==Et)return Et;if("undefined"==typeof window||!window.trustedTypes)return Et=null,null;try{Et=window.trustedTypes.createPolicy("woocommerce-sanitize",{createHTML:t=>At(t)})}catch(t){Et=null,console.warn('Failed to create "woocommerce-sanitize" trusted type policy:',t)}return Et}(window.wc=window.wc||{}).sanitize=e})();