(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5724],{23119:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(31461),r=n(7896),i=n(2784),a=n(99332),l=n(69075),c=n(7342),s=n(65992),u=n(35354),m=n(28592),p=n(98659),f=n(79312),d=n(69222),h=n(15672);function g(e){return(0,h.ZP)("MuiLink",e)}var y=(0,d.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),T=n(2818),E=n(408);const A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var b=({theme:e,ownerState:t})=>{const n=(e=>A[e]||e)(t.color),o=(0,T.DW)(e,`palette.${n}`,!1)||t.color,r=(0,T.DW)(e,`palette.${n}Channel`);return"vars"in e&&r?`rgba(${r} / 0.4)`:(0,E.Fq)(o,.4)},_=n(52322);const N=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],S=(0,s.ZP)(f.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,c.Z)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,r.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,r.Z)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:b({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}})));var w=i.forwardRef((function(e,t){const n=(0,u.i)({props:e,name:"MuiLink"}),{className:s,color:f="primary",component:d="a",onBlur:h,onFocus:y,TypographyClasses:T,underline:E="always",variant:b="inherit",sx:w}=n,R=(0,o.Z)(n,N),{isFocusVisibleRef:v,onBlur:x,onFocus:C,ref:D}=(0,m.Z)(),[L,k]=i.useState(!1),O=(0,p.Z)(t,D),M=(0,r.Z)({},n,{color:f,component:d,focusVisible:L,underline:E,variant:b}),I=(e=>{const{classes:t,component:n,focusVisible:o,underline:r}=e,i={root:["root",`underline${(0,c.Z)(r)}`,"button"===n&&"button",o&&"focusVisible"]};return(0,l.Z)(i,g,t)})(M);return(0,_.jsx)(S,(0,r.Z)({color:f,className:(0,a.Z)(I.root,s),classes:T,component:d,onBlur:e=>{x(e),!1===v.current&&k(!1),h&&h(e)},onFocus:e=>{C(e),!0===v.current&&k(!0),y&&y(e)},ref:O,ownerState:M,variant:b,sx:[...Object.keys(A).includes(f)?[]:[{color:f}],...Array.isArray(w)?w:[w]]},R))}))},35368:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!==typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),m=_(Array.prototype.pop),p=_(Array.prototype.push),f=_(String.prototype.toLowerCase),d=_(String.prototype.toString),h=_(String.prototype.match),g=_(String.prototype.replace),y=_(String.prototype.indexOf),T=_(String.prototype.trim),E=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),b=N(TypeError);function _(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function N(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s(e,n)}}function S(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"===typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function w(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}function R(t){const n=l(null);for(const[o,r]of e(t))E(t,o)&&(Array.isArray(r)?n[o]=w(r):r&&"object"===typeof r&&r.constructor===Object?n[o]=R(r):n[o]=r);return n}function v(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return _(n.get);if("function"===typeof n.value)return _(n.value)}e=o(e)}function n(){return null}return n}const x=i(["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"]),C=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["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"]),L=i(["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"]),k=i(["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"]),O=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=i(["#text"]),I=i(["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","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=i(["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"]),U=i(["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"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=a(/<%[\w\W]*|[\w\W]*%>/gm),B=a(/\${[\w\W]*}/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]/),G=a(/^aria-[\-\w]+$/),Y=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=a(/^(?:\w+script|data):/i),Z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:z,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:G,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:Z,DOCTYPE_NAME:$,CUSTOM_ELEMENT:V});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},K=function(){return"undefined"===typeof window?null:window},J=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function Q(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const n=e=>Q(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==X.document)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:_,Element:N,NodeFilter:w,NamedNodeMap:H=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:z,DOMParser:B,trustedTypes:W}=t,G=N.prototype,j=v(G,"cloneNode"),Z=v(G,"remove"),V=v(G,"nextSibling"),ee=v(G,"childNodes"),te=v(G,"parentNode");if("function"===typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ne,oe="";const{implementation:re,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=o,{importNode:ce}=r;let se={};n.isSupported="function"===typeof e&&"function"===typeof te&&re&&void 0!==re.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=q;let{IS_ALLOWED_URI:Te}=q,Ee=null;const Ae=S({},[...x,...C,...D,...k,...M]);let be=null;const _e=S({},[...I,...P,...U,...F]);let Ne=Object.seal(l(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}})),Se=null,we=null,Re=!0,ve=!0,xe=!1,Ce=!0,De=!1,Le=!0,ke=!1,Oe=!1,Me=!1,Ie=!1,Pe=!1,Ue=!1,Fe=!0,He=!1;const ze="user-content-";let Be=!0,We=!1,Ge={},Ye=null;const je=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const $e=S({},["audio","video","img","source","image","track"]);let Ve=null;const qe=S({},["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",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=S({},[Xe,Ke,Je],d);let ot=null;const rt=["application/xhtml+xml","text/html"],it="text/html";let at=null,lt=null;const ct=o.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"===typeof e||(e={}),e=R(e),ot=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===ot?d:f,Ee=E(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,at):Ae,be=E(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,at):_e,tt=E(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,d):nt,Ve=E(e,"ADD_URI_SAFE_ATTR")?S(R(qe),e.ADD_URI_SAFE_ATTR,at):qe,Ze=E(e,"ADD_DATA_URI_TAGS")?S(R($e),e.ADD_DATA_URI_TAGS,at):$e,Ye=E(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,at):je,Se=E(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,at):{},we=E(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,at):{},Ge=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,ve=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,ke=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Y,Qe=e.NAMESPACE||Je,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(ve=!1),Pe&&(Ie=!0),Ge&&(Ee=S({},M),be=[],!0===Ge.html&&(S(Ee,x),S(be,I)),!0===Ge.svg&&(S(Ee,C),S(be,P),S(be,F)),!0===Ge.svgFilters&&(S(Ee,D),S(be,P),S(be,F)),!0===Ge.mathMl&&(S(Ee,k),S(be,U),S(be,F))),e.ADD_TAGS&&(Ee===Ae&&(Ee=R(Ee)),S(Ee,e.ADD_TAGS,at)),e.ADD_ATTR&&(be===_e&&(be=R(be)),S(be,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ye===je&&(Ye=R(Ye)),S(Ye,e.FORBID_CONTENTS,at)),Be&&(Ee["#text"]=!0),ke&&S(Ee,["html","head","body"]),Ee.table&&(S(Ee,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,oe=ne.createHTML("")}else void 0===ne&&(ne=J(W,a)),null!==ne&&"string"===typeof oe&&(oe=ne.createHTML(""));i&&i(e),lt=e}},mt=S({},["mi","mo","mn","ms","mtext"]),pt=S({},["foreignobject","annotation-xml"]),ft=S({},["title","style","font","a","script"]),dt=S({},[...C,...D,...L]),ht=S({},[...k,...O]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=f(e.tagName),o=f(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===o||mt[o]):Boolean(dt[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ke?"math"===n&&pt[o]:Boolean(ht[n]):e.namespaceURI===Je?!(t.namespaceURI===Ke&&!pt[o])&&!(t.namespaceURI===Xe&&!mt[o])&&!ht[n]&&(ft[n]||!dt[n]):!("application/xhtml+xml"!==ot||!tt[e.namespaceURI]))},yt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){Z(e)}},Tt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(o){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Ie||Pe)try{yt(t)}catch(o){}else try{t.setAttribute(e,"")}catch(o){}},Et=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Qe===Je)try{t=(new B).parseFromString(r,ot)}catch(a){}if(!t||!t.documentElement){t=re.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?oe:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Qe===Je?le.call(t,ke?"html":"body")[0]:ke?t.documentElement:i},At=function(e){return ie.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof z&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof H)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},_t=function(e){return"function"===typeof _&&e instanceof _},Nt=function(e,t,o){se[e]&&u(se[e],(e=>{e.call(n,t,o,lt)}))},St=function(e){let t=null;if(Nt("beforeSanitizeElements",e,null),bt(e))return yt(e),!0;const o=at(e.nodeName);if(Nt("uponSanitizeElement",e,{tagName:o,allowedTags:Ee}),e.hasChildNodes()&&!_t(e.firstElementChild)&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===X.progressingInstruction)return yt(e),!0;if(Le&&e.nodeType===X.comment&&A(/<[/\w]/g,e.data))return yt(e),!0;if(!Ee[o]||Se[o]){if(!Se[o]&&Rt(o)){if(Ne.tagNameCheck instanceof RegExp&&A(Ne.tagNameCheck,o))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(o))return!1}if(Be&&!Ye[o]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=j(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,V(e))}}return yt(e),!0}return e instanceof N&&!gt(e)?(yt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===X.text&&(t=e.textContent,u([ue,me,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),Nt("afterSanitizeElements",e,null),!1):(yt(e),!0)},wt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(ve&&!we[t]&&A(fe,t));else if(Re&&A(de,t));else if(!be[t]||we[t]){if(!(Rt(e)&&(Ne.tagNameCheck instanceof RegExp&&A(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&A(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&A(Ne.tagNameCheck,n)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))))return!1}else if(Ve[t]);else if(A(Te,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ze[e])if(xe&&!A(he,g(n,ge,"")));else if(n)return!1;return!0},Rt=function(e){return"annotation-xml"!==e&&h(e,ye)},vt=function(e){Nt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let r=t.length;for(;r--;){const a=t[r],{name:l,namespaceURI:c,value:s}=a,p=at(l);let f="value"===l?s:T(s);if(o.attrName=p,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Nt("uponSanitizeAttribute",e,o),f=o.attrValue,Le&&A(/((--!?|])>)|<\/(style|title)/i,f)){Tt(l,e);continue}if(o.forceKeepAttr)continue;if(Tt(l,e),!o.keepAttr)continue;if(!Ce&&A(/\/>/i,f)){Tt(l,e);continue}De&&u([ue,me,pe],(e=>{f=g(f,e," ")}));const d=at(e.nodeName);if(wt(d,p,f)){if(!He||"id"!==p&&"name"!==p||(Tt(l,e),f=ze+f),ne&&"object"===typeof W&&"function"===typeof W.getAttributeType)if(c);else switch(W.getAttributeType(d,p)){case"TrustedHTML":f=ne.createHTML(f);break;case"TrustedScriptURL":f=ne.createScriptURL(f)}try{c?e.setAttributeNS(c,l,f):e.setAttribute(l,f),bt(e)?yt(e):m(n.removed)}catch(i){}}}Nt("afterSanitizeAttributes",e,null)},xt=function e(t){let n=null;const o=At(t);for(Nt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)Nt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof c&&e(n.content),vt(n));Nt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!==typeof e&&!_t(e)){if("function"!==typeof e.toString)throw b("toString is not a function");if("string"!==typeof(e=e.toString()))throw b("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||ut(t),n.removed=[],"string"===typeof e&&(We=!1),We){if(e.nodeName){const t=at(e.nodeName);if(!Ee[t]||Se[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)o=Et("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===X.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Ie&&!De&&!ke&&-1===e.indexOf("<"))return ne&&Ue?ne.createHTML(e):e;if(o=Et(e),!o)return Ie?null:Ue?oe:""}o&&Me&&yt(o.firstChild);const s=At(We?e:o);for(;a=s.nextNode();)St(a)||(a.content instanceof c&&xt(a.content),vt(a));if(We)return e;if(Ie){if(Pe)for(l=ae.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(be.shadowroot||be.shadowrootmode)&&(l=ce.call(r,l,!0)),l}let m=ke?o.outerHTML:o.innerHTML;return ke&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&A($,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),De&&u([ue,me,pe],(e=>{m=g(m,e," ")})),ne&&Ue?ne.createHTML(m):m},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},n.clearConfig=function(){lt=null,Oe=!1},n.isValidAttribute=function(e,t,n){lt||ut({});const o=at(e),r=at(t);return wt(o,r,n)},n.addHook=function(e,t){"function"===typeof t&&(se[e]=se[e]||[],p(se[e],t))},n.removeHook=function(e){if(se[e])return m(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}return Q()}()},14304:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(35368).default||n(35368))}}]);