1"use strict";(()=>{var yn=Object.create;var Ct=Object.defineProperty;var Cn=Object.getOwnPropertyDescriptor;var In=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var Mn=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var vn=(n,o,f,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let u of In(o))!Rn.call(n,u)&&u!==f&&Ct(n,u,{get:()=>o[u],enumerable:!(p=Cn(o,u))||p.enumerable});return n};var On=(n,o,f)=>(f=n!=null?yn(bn(n)):{},vn(o||!n||!n.__esModule?Ct(f,"default",{value:n,enumerable:!0}):f,n));var It=Mn((ke,Pe)=>{(function(n,o){typeof ke=="object"&&typeof Pe<"u"?Pe.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.DOMPurify=o())})(ke,function(){"use strict";let{entries:n,setPrototypeOf:o,isFrozen:f,getPrototypeOf:p,getOwnPropertyDescriptor:u}=Object,{freeze:s,seal:E,create:N}=Object,{apply:U,construct:Y}=typeof Reflect<"u"&&Reflect;s||(s=function(a){return a}),E||(E=function(a){return a}),U||(U=function(a,g,d){return a.apply(g,d)}),Y||(Y=function(a,g){return new a(...g)});let ie=M(Array.prototype.forEach),Fe=M(Array.prototype.pop),$=M(Array.prototype.push),ae=M(String.prototype.toLowerCase),me=M(String.prototype.toString),Be=M(String.prototype.match),X=M(String.prototype.replace),Ut=M(String.prototype.indexOf),Ht=M(String.prototype.trim),v=M(Object.prototype.hasOwnProperty),C=M(RegExp.prototype.test),K=Ft(TypeError);function M(m){return function(a){for(var g=arguments.length,d=new Array(g>1?g-1:0),L=1;L<g;L++)d[L-1]=arguments[L];return U(m,a,d)}}function Ft(m){return function(){for(var a=arguments.length,g=new Array(a),d=0;d<a;d++)g[d]=arguments[d];return Y(m,g)}}function c(m,a){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae;o&&o(m,null);let d=a.length;for(;d--;){let L=a[d];if(typeof L=="string"){let k=g(L);k!==L&&(f(a)||(a[d]=k),L=k)}m[L]=!0}return m}function Bt(m){for(let a=0;a<m.length;a++)v(m,a)||(m[a]=null);return m}function H(m){let a=N(null);for(let[g,d]of n(m))v(m,g)&&(Array.isArray(d)?a[g]=Bt(d):d&&typeof d=="object"&&d.constructor===Object?a[g]=H(d):a[g]=d);return a}function re(m,a){for(;m!==null;){let d=u(m,a);if(d){if(d.get)return M(d.get);if(typeof d.value=="function")return M(d.value)}m=p(m)}function g(){return null}return g}let ze=s(["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"]),ge=s(["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"]),he=s(["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"]),zt=s(["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"]),Ee=s(["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"]),Gt=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=s(["#text"]),qe=s(["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","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_e=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ve=s(["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"]),se=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qt=E(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vt=E(/<%[\w\W]*|[\w\W]*%>/gm),Wt=E(/\${[\w\W]*}/gm),jt=E(/^data-[\-\w.\u00B7-\uFFFF]/),Yt=E(/^aria-[\-\w]+$/),We=E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$t=E(/^(?:\w+script|data):/i),Xt=E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=E(/^html$/i),Kt=E(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ye=Object.freeze({__proto__:null,MUSTACHE_EXPR:qt,ERB_EXPR:Vt,TMPLIT_EXPR:Wt,DATA_ATTR:jt,ARIA_ATTR:Yt,IS_ALLOWED_URI:We,IS_SCRIPT_OR_DATA:$t,ATTR_WHITESPACE:Xt,DOCTYPE_NAME:je,CUSTOM_ELEMENT:Kt});let Zt=function(){return typeof window>"u"?null:window},Qt=function(a,g){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let d=null,L="data-tt-policy-suffix";g&&g.hasAttribute(L)&&(d=g.getAttribute(L));let k="dompurify"+(d?"#"+d:"");try{return a.createPolicy(k,{createHTML(B){return B},createScriptURL(B){return B}})}catch{return console.warn("TrustedTypes policy "+k+" could not be created."),null}};function $e(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt(),a=r=>$e(r);if(a.version="3.1.2",a.removed=[],!m||!m.document||m.document.nodeType!==9)return a.isSupported=!1,a;let{document:g}=m,d=g,L=d.currentScript,{DocumentFragment:k,HTMLTemplateElement:B,Node:Te,Element:Xe,NodeFilter:Z,NamedNodeMap:en=m.NamedNodeMap||m.MozNamedAttrMap,HTMLFormElement:tn,DOMParser:nn,trustedTypes:le}=m,ce=Xe.prototype,on=re(ce,"cloneNode"),an=re(ce,"nextSibling"),rn=re(ce,"childNodes"),Q=re(ce,"parentNode");if(typeof B=="function"){let r=g.createElement("template");r.content&&r.content.ownerDocument&&(g=r.content.ownerDocument)}let y,J="",{implementation:Ae,createNodeIterator:sn,createDocumentFragment:ln,getElementsByTagName:cn}=g,{importNode:un}=d,D={};a.isSupported=typeof n=="function"&&typeof Q=="function"&&Ae&&Ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Le,ERB_EXPR:Se,TMPLIT_EXPR:we,DATA_ATTR:dn,ARIA_ATTR:fn,IS_SCRIPT_OR_DATA:pn,ATTR_WHITESPACE:Ke,CUSTOM_ELEMENT:mn}=Ye,{IS_ALLOWED_URI:Ze}=Ye,_=null,Qe=c({},[...ze,...ge,...he,...Ee,...Ge]),T=null,Je=c({}
vendor: 4,401 bytes, line 1
1,[...qe,..._e,...Ve,...se]),h=Object.seal(N(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}})),ee=null,ye=null,et=!0,Ce=!0,tt=!1,nt=!0,z=!1,ot=!0,F=!1,Ie=!1,be=!1,G=!1,ue=!1,de=!1,it=!0,at=!1,gn="user-content-",Re=!0,te=!1,q={},V=null,rt=c({},["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"]),st=null,lt=c({},["audio","video","img","source","image","track"]),Me=null,ct=c({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xhtml",W=P,ve=!1,Oe=null,hn=c({},[fe,pe,P],me),ne=null,En=["application/xhtml+xml","text/html"],_n="text/html",A=null,j=null,ut=255,Tn=g.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},De=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(j&&j===e)){if((!e||typeof e!="object")&&(e={}),e=H(e),ne=En.indexOf(e.PARSER_MEDIA_TYPE)===-1?_n:e.PARSER_MEDIA_TYPE,A=ne==="application/xhtml+xml"?me:ae,_=v(e,"ALLOWED_TAGS")?c({},e.ALLOWED_TAGS,A):Qe,T=v(e,"ALLOWED_ATTR")?c({},e.ALLOWED_ATTR,A):Je,Oe=v(e,"ALLOWED_NAMESPACES")?c({},e.ALLOWED_NAMESPACES,me):hn,Me=v(e,"ADD_URI_SAFE_ATTR")?c(H(ct),e.ADD_URI_SAFE_ATTR,A):ct,st=v(e,"ADD_DATA_URI_TAGS")?c(H(lt),e.ADD_DATA_URI_TAGS,A):lt,V=v(e,"FORBID_CONTENTS")?c({},e.FORBID_CONTENTS,A):rt,ee=v(e,"FORBID_TAGS")?c({},e.FORBID_TAGS,A):{},ye=v(e,"FORBID_ATTR")?c({},e.FORBID_ATTR,A):{},q=v(e,"USE_PROFILES")?e.USE_PROFILES:!1,et=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=e.SAFE_FOR_TEMPLATES||!1,ot=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,de=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,it=e.SANITIZE_DOM!==!1,at=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,te=e.IN_PLACE||!1,Ze=e.ALLOWED_URI_REGEXP||We,W=e.NAMESPACE||P,h=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(h.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(h.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(h.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(Ce=!1),ue&&(G=!0),q&&(_=c({},Ge),T=[],q.html===!0&&(c(_,ze),c(T,qe)),q.svg===!0&&(c(_,ge),c(T,_e),c(T,se)),q.svgFilters===!0&&(c(_,he),c(T,_e),c(T,se)),q.mathMl===!0&&(c(_,Ee),c(T,Ve),c(T,se))),e.ADD_TAGS&&(_===Qe&&(_=H(_)),c(_,e.ADD_TAGS,A)),e.ADD_ATTR&&(T===Je&&(T=H(T)),c(T,e.ADD_ATTR,A)),e.ADD_URI_SAFE_ATTR&&c(Me,e.ADD_URI_SAFE_ATTR,A),e.FORBID_CONTENTS&&(V===rt&&(V=H(V)),c(V,e.FORBID_CONTENTS,A)),Re&&(_["#text"]=!0),F&&c(_,["html","head","body"]),_.table&&(c(_,["tbody"]),delete ee.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,J=y.createHTML("")}else y===void 0&&(y=Qt(le,L)),y!==null&&typeof J=="string"&&(J=y.createHTML(""));s&&s(e),j=e}},ft=c({},["mi","mo","mn","ms","mtext"]),pt=c({},["foreignobject","annotation-xml"]),An=c({},["title","style","font","a","script"]),mt=c({},[...ge,...he,...zt]),gt=c({},[...Ee,...Gt]),Ln=function(e){let t=Q(e);(!t||!t.tagName)&&(t={namespaceURI:W,tagName:"template"});let i=ae(e.tagName),l=ae(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===pe?t.namespaceURI===P?i==="svg":t.namespaceURI===fe?i==="svg"&&(l==="annotation-xml"||ft[l]):!!mt[i]:e.namespaceURI===fe?t.namespaceURI===P?i==="math":t.namespaceURI===pe?i==="math"&&pt[l]:!!gt[i]:e.namespaceURI===P?t.namespaceURI===pe&&!pt[l]||t.namespaceURI===fe&&!ft[l]?!1:!gt[i]&&(An[i]||
1!mt[i]):!!(ne==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},O=function(e){$(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},Ne=function(e,t){try{$(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!T[e])if(G||ue)try{O(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ht=function(e){let t=null,i=null;if(be)e="<remove></remove>"+e;else{let w=Be(e,/^[\r\n\t ]+/);i=w&&w[0]}ne==="application/xhtml+xml"&&W===P&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let l=y?y.createHTML(e):e;if(W===P)try{t=new nn().parseFromString(l,ne)}catch{}if(!t||!t.documentElement){t=Ae.createDocument(W,"template",null);try{t.documentElement.innerHTML=ve?J:l}catch{}}let S=t.body||t.documentElement;return e&&i&&S.insertBefore(g.createTextNode(i),S.childNodes[0]||null),W===P?cn.call(t,F?"html":"body")[0]:F?t.documentElement:S},Et=function(e){return sn.call(e.ownerDocument||e,e,Z.SHOW_ELEMENT|Z.SHOW_COMMENT|Z.SHOW_TEXT|Z.SHOW_PROCESSING_INSTRUCTION|Z.SHOW_CDATA_SECTION,null)},Sn=function(e){return e instanceof tn&&(typeof e.__depth<"u"&&typeof e.__depth!="number"||typeof e.__removalCount<"u"&&typeof e.__removalCount!="number"||typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof en)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},_t=function(e){return typeof Te=="function"&&e instanceof Te},x=function(e,t,i){D[e]&&ie(D[e],l=>{l.call(a,t,i,j)})},Tt=function(e){let t=null;if(x("beforeSanitizeElements",e,null),Sn(e))return O(e),!0;let i=A(e.nodeName);if(x("uponSanitizeElement",e,{tagName:i,allowedTags:_}),e.hasChildNodes()&&!_t(e.firstElementChild)&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent)||e.nodeType===7||ot&&e.nodeType===8&&C(/<[/\w]/g,e.data))return O(e),!0;if(!_[i]||ee[i]){if(!ee[i]&&Lt(i)&&(h.tagNameCheck instanceof RegExp&&C(h.tagNameCheck,i)||h.tagNameCheck instanceof Function&&h.tagNameCheck(i)))return!1;if(Re&&!V[i]){let l=Q(e)||e.parentNode,S=rn(e)||e.childNodes;if(S&&l){let w=S.length;for(let I=w-1;I>=0;--I){let b=on(S[I],!0);b.__removalCount=(e.__removalCount||0)+1,l.insertBefore(b,an(e))}}}return O(e),!0}return e instanceof Xe&&!Ln(e)||(i==="noscript"||i==="noembed"||i==="noframes")&&C(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(z&&e.nodeType===3&&(t=e.textContent,ie([Le,Se,we],l=>{t=X(t,l," ")}),e.textContent!==t&&($(a.removed,{element:e.cloneNode()}),e.textContent=t)),x("afterSanitizeElements",e,null),!1)},At=function(e,t,i){if(it&&(t==="id"||t==="name")&&(i in g||i in Tn))return!1;if(!(Ce&&!ye[t]&&C(dn,t))){if(!(et&&C(fn,t))){if(!T[t]||ye[t]){if(!(Lt(e)&&(h.tagNameCheck instanceof RegExp&&C(h.tagNameCheck,e)||h.tagNameCheck instanceof Function&&h.tagNameCheck(e))&&(h.attributeNameCheck instanceof RegExp&&C(h.attributeNameCheck,t)||h.attributeNameCheck instanceof Function&&h.attributeNameCheck(t))||t==="is"&&h.allowCustomizedBuiltInElements&&(h.tagNameCheck instanceof RegExp&&C(h.tagNameCheck,i)||h.tagNameCheck instanceof Function&&h.tagNameCheck(i))))return!1}else if(!Me[t]){if(!C(Ze,X(i,Ke,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Ut(i,"data:")===0&&st[e])){if(!(tt&&!C(pn,X(i,Ke,"")))){if(i)return!1}}}}}}return!0},Lt=function(e){return e!=="annotation-xml"&&Be(e,mn)},St=function(e){x("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T},l=t.length;for(;l--;){let S=t[l],{name:w,namespaceURI:I,value:b}=S,oe=A(w),R=w==="value"?b:Ht(b);if(i.attrName=oe,i.attrValue=R,i.keepAttr=!0,i.forceKeepAttr=void 0,x("uponSanitizeAttribute",e,i),R=i.attrValue,i.forceKeepAttr||(Ne(w,e),!i.keepAttr))continue;if(!nt&&C(/\/>/i,R)){Ne(w,e);continue}z&&ie([Le,Se,we],yt=>{R=X(R,yt," ")});let wt=A(e.nodeName);if(At(wt,oe,R)){if(at&&(oe==="id"||oe==="name")&&(Ne(w,e),R=gn+R),y&&typeof le=="object"&&typeof le.getAttributeType=="function"&&!I)switch(le.getAttributeType(wt,oe)){case"TrustedHTML":{R=y.createHTML(R);break}case"TrustedScriptURL":{R=y.createScriptURL(R);break}}try{I?e.setAttributeNS(I,w,R):e.setAttribute(w,R),Fe(a.removed)}catch{}}}x("afterSanitizeAttributes",e,null)},wn=function r(e){let t=null,i=Et(e);for(x("beforeSanitizeShadowDOM",e,null);t=i.nextNode();){if(x("uponSanitizeShadowNode",t,null),Tt(t))continue;let l=Q(t);t.nodeType===1&&(l&&l.__depth?t.__depth=(t.__removalCount||0)+l.__depth+1:t.__depth=1),t.__depth>
1=ut&&O(t),t.content instanceof k&&(t.content.__depth=t.__depth,r(t.content)),St(t)}x("afterSanitizeShadowDOM",e,null)};return a.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,i=null,l=null,S=null;if(ve=!r,ve&&(r="<!-->"),typeof r!="string"&&!_t(r))if(typeof r.toString=="function"){if(r=r.toString(),typeof r!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!a.isSupported)return r;if(Ie||De(e),a.removed=[],typeof r=="string"&&(te=!1),te){if(r.nodeName){let b=A(r.nodeName);if(!_[b]||ee[b])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof Te)t=ht("<!---->"),i=t.ownerDocument.importNode(r,!0),i.nodeType===1&&i.nodeName==="BODY"||i.nodeName==="HTML"?t=i:t.appendChild(i);else{if(!G&&!z&&!F&&r.indexOf("<")===-1)return y&&de?y.createHTML(r):r;if(t=ht(r),!t)return G?null:de?J:""}t&&be&&O(t.firstChild);let w=Et(te?r:t);for(;l=w.nextNode();){if(Tt(l))continue;let b=Q(l);l.nodeType===1&&(b&&b.__depth?l.__depth=(l.__removalCount||0)+b.__depth+1:l.__depth=1),l.__depth>=ut&&O(l),l.content instanceof k&&(l.content.__depth=l.__depth,wn(l.content)),St(l)}if(te)return r;if(G){if(ue)for(S=ln.call(t.ownerDocument);t.firstChild;)S.appendChild(t.firstChild);else S=t;return(T.shadowroot||T.shadowrootmode)&&(S=un.call(d,S,!0)),S}let I=F?t.outerHTML:t.innerHTML;return F&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&C(je,t.ownerDocument.doctype.name)&&(I="<!DOCTYPE "+t.ownerDocument.doctype.name+`> 2`+I),z&&ie([Le,Se,we],b=>{I=X(I,b," ")}),y&&de?y.createHTML(I):I},a.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};De(r),Ie=!0},a.clearConfig=function(){j=null,Ie=!1},a.isValidAttribute=function(r,e,t){j||De({});let i=A(r),l=A(e);return At(i,l,t)},a.addHook=function(r,e){typeof e=="function"&&(D[r]=D[r]||[],$(D[r],e))},a.removeHook=function(r){if(D[r])return Fe(D[r])},a.removeHooks=function(r){D[r]&&(D[r]=[])},a.removeAllHooks=function(){D={}},a}var Jt=$e();return Jt})});var Dt=On(It());var bt=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 3<g clip-path="url(#clip0_466_934)"> 4 <path d="M5.41675 10.8333L6.07046 12.1408C6.2917 12.5832 6.40232 12.8045 6.55011 12.9962C6.68124 13.1663 6.83375 13.3188 7.00388 13.45C7.19559 13.5977 7.41684 13.7084 7.85932 13.9296L9.16675 14.5833L7.85932 15.237C7.41684 15.4583 7.19559 15.5689 7.00388 15.7167C6.83375 15.8478 6.68124 16.0003 6.55011 16.1704C6.40232 16.3622 6.2917 16.5834 6.07046 17.0259L5.41675 18.3333L4.76303 17.0259C4.54179 16.5834 4.43117 16.3622 4.28339 16.1704C4.15225 16.0003 3.99974 15.8478 3.82962 15.7167C3.6379 15.5689 3.41666 15.4583 2.97418 15.237L1.66675 14.5833L2.97418 13.9296C3.41666 13.7084 3.6379 13.5977 3.82962 13.45C3.99974 13.3188 4.15225 13.1663 4.28339 12.9962C4.43117 12.8045 4.54179 12.5832 4.76303 12.1408L5.41675 10.8333Z" stroke="#181825" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> 5 <path d="M12.5001 1.66666L13.4823 4.22034C13.7173 4.83136 13.8348 5.13688 14.0175 5.39386C14.1795 5.62162 14.3785 5.82061 14.6062 5.98256C14.8632 6.16529 15.1687 6.2828 15.7797 6.5178L18.3334 7.49999L15.7797 8.48217C15.1687 8.71718 14.8632 8.83469 14.6062 9.01742C14.3785 9.17937 14.1795 9.37836 14.0175 9.60612C13.8348 9.8631 13.7173 10.1686 13.4823 10.7796L12.5001 13.3333L11.5179 10.7796C11.2829 10.1686 11.1654 9.8631 10.9827 9.60612C10.8207 9.37836 10.6217 9.17937 10.3939 9.01742C10.137 8.83469 9.83145 8.71718 9.22043 8.48217L6.66675 7.49999L9.22043 6.5178C9.83145 6.28279 10.137 6.16529 10.3939 5.98256C10.6217 5.82061 10.8207 5.62162 10.9827 5.39386C11.1654 5.13688 11.2829 4.83136 11.5179 4.22034L12.5001 1.66666Z" stroke="#181825" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> 6</g> 7<defs> 8 <clipPath id="clip0_466_934"> 9 <rect width="20" height="20" fill="white"/> 10 </clipPath> 11</defs> 12</svg> 13`;var xe=()=>{let n=Nn();if(n!==void 0)return n;let o=kn();return o!==void 0?o:window.Shopify?.locale!==void 0?window.Shopify.locale:"en"},Rt=n=>{let o=n??window.Shopify?.locale,f=document.getElementById("dialog-shopify-ai");if(f===null||o===void 0)return;let p=Dn(o);p!==null&&(f.dataset.locale=o,f.dataset.shopIsoCode=o,f.dataset.language=p.language,f.dataset.countryCode=p.c
13ountryCode,window.DIALOG_VARIABLES.locale=o)};var Dn=n=>{try{let o=new Intl.Locale(n),f=o.language,p=o.region??o.maximize().region,s=new Intl.DisplayNames(["en"],{type:"language"}).of(f);return s===void 0||p===void 0?null:{language:s,countryCode:p,formatted:`${f}-${p}`}}catch{return null}},Nn=()=>{let n=window.location.href;return[...document.querySelectorAll('link[rel="alternate"][hreflang]')].filter(p=>p.getAttribute("hreflang")!=="x-default").find(p=>p.href===n||p.href===n.split("?")[0])?.getAttribute("hreflang")?.slice(0,2)??void 0},kn=()=>document.getElementsByTagName("html")[0].getAttribute("lang")?.slice(0,2)??void 0;var Nt="phc_EKMR6Jt4OTMEYmoUlz0v58KPwqcFxI7aZCLckpSD8Tv",Pn="https://eu.i.posthog.com",xn=`ph_${Nt}_posthog`,Un=n=>{let o=n.target,f=document.querySelector(".dialog-input-submit");f!==null&&(f.disabled=o.value.trim()==="")},kt=()=>{let n=document.getElementById("dialog-shopify-ai-product"),o=document.querySelector(".dialog-ask-anything-input");o&&o.addEventListener("input",Un);let f=document.querySelectorAll(".dialog-suggestion"),p=document.querySelector(".dialog-input-submit");n===null||o===null||p===null||(Bn(n),o.addEventListener("keypress",u=>{u.key==="Enter"&&Mt(n,o)(u)}),p.addEventListener("click",Mt(n,o)),f.forEach((u,s)=>{u.addEventListener("click",Hn(n,s))}))},Pt=(n,o)=>{let f=localStorage.getItem(xn);if(f===null)return;let{distinct_id:p,$client_session_props:u}=JSON.parse(f);fetch(`${Pn}/capture`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:Nt,event:n,distinct_id:p,properties:{...o,$session_id:u?.sessionId,$host:document.location.host,$pathname:document.location.pathname}})})},Mt=(n,o)=>f=>{f.preventDefault();let p=document.getElementById("send-message-button");if(p===null||o.value.trim().length===0)return;n.dataset.question=o.value,window.scrollTo({top:0,left:0,behavior:"smooth"});let s=new URLSearchParams(window.location.search).get("variant"),E=new CustomEvent("enableDialogAssistantEvent",{detail:{type:"PRODUCT_QUESTION",payload:{question:n.dataset.question,productId:n.dataset.productId,productTitle:n.dataset.productTitle,handle:n.dataset.handle,selectedVariantId:s??n.dataset.selectedVariantId}}});window.dispatchEvent(E),Pt("user_sent_custom_message",{message:n.dataset.question}),o.blur(),o.value="",p.disabled=!0},Hn=(n,o)=>f=>{f.preventDefault();let p=document.getElementById("dialog-suggestions-container");if(p===null)return;let u=p.children[o],s=u.dataset.value,E=u.dataset.answer;n.dataset.question=s,n.dataset.answer=E,window.scrollTo({top:0,left:0,behavior:"smooth"});let U=new URLSearchParams(window.location.search).get("variant"),Y=new CustomEvent("enableDialogAssistantEvent",{detail:{type:"PRODUCT_QUESTION",payload:{question:s,answer:E,productId:n.dataset.productId,handle:n.dataset.handle,fromQuestionSuggestion:!0,productTitle:n.dataset.productTitle,selectedVariantId:U??n.dataset.selectedVariantId}}});window.dispatchEvent(Y),Pt("user_clicked_suggestion",{question:s??""})},Ue=0,He=n=>{let o=++Ue,f=window.DIALOG_PRODUCT_VARIABLES?.productId,p=window.location.pathname.split("?")[0];fetch(`/apps/dialog/ai/product-questions?pagePath=${p}&locale=${n}&productId=${f??""}`,{headers:{Authorization:window.DIALOG_VARIABLES.apiKey}}).then(u=>u.json()).then(u=>{if(o!==Ue){console.log("ignoring outdated suggestions response");return}if(u.assistantName!==void 0){let s=document.getElementById("assistant-name");s!==null&&(s.innerHTML=u.assistantName)}if(u.description!==void 0){let s=document.getElementById("description");s!==null&&(s.innerHTML=u.description)}if(u.inputPlaceholder!==void 0){let s=document.getElementById("dialog-ask-anything-input");s!==null&&(s.placeholder=u.inputPlaceholder)}u.questions!==void 0&&(u.questions.slice(0,2).forEach((s,E)=>{let N=document.getElementById(`dialog-suggestion-${E}`);if(N!==null){N.style.width="fit-content",N.dataset.value=s.question,s.answer!==void 0&&(N.dataset.answer=s.answer);let U=Dt.default.sanitize(s.question);N.innerHTML=`${bt}<span data-value="${U}">${U}</span>`}}),xt())}).catch(u=>{if(o!==Ue)return;let s=document.getElementById("dialog-instant");s!==null&&(s.style.display="none"),console.error("Error:",u)}
13)},Fn=n=>o=>{let p=new URLSearchParams(window.location.search).get("variant"),u=new CustomEvent("enableDialogAssistantEvent",{detail:{type:"START_DIAGNOSTIC",payload:{buttonType:"productPageButton",productId:n.dataset.productId,handle:n.dataset.handle,productTitle:n.dataset.productTitle,selectedVariantId:p??n.dataset.selectedVariantId}}});window.dispatchEvent(u)},Bn=n=>{let o=document.getElementById("dialog-diagnostic-btn");o!==null&&o.addEventListener("click",Fn(n))},zn=n=>{let o=n?.cloneNode(!0);n?.remove(),o!==void 0&&document.body.appendChild(o)},Gn=3,vt=0,xt=()=>{let n=document.getElementsByTagName("body")[0];if(vt>=Gn)return;vt+=1;let o=new MutationObserver(f=>{for(let p of f)if(p.type==="childList"&&document.querySelector(".dialog-suggestion-skeleton")!==null){console.log("Skeleton suggestions detected, reloading suggestions"),o.disconnect(),He(xe()),kt(),setTimeout(()=>{xt()},500);break}});o.observe(n,{childList:!0,subtree:!0,characterData:!0,attributes:!0})},Ot=()=>{let n=document.getElementById("dialog-shopify-ai-product");zn(n),window.Weglot!==void 0&&window.Weglot.on("languageChanged",o=>{He(o),Rt(o)}),He(xe()),kt()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ot):Ot();})(); 14/*! Bundled license information: 15 16dompurify/dist/purify.js: 17 (*! @license DOMPurify 3.1.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.2/LICENSE *) 18*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.