1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="065109b7-7f21-fc68-98a3-50bdbedb4a80")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,275741,e=>{"use strict";var t=e.i(843481),n=e.i(618566),r=e.i(271645);e.s(["PrismicPreviewClient",0,e=>{let{repositoryName:i,isDraftMode:a,updatePreviewURL:l="/api/preview",exitPreviewURL:o="/api/exit-preview"}=e,{refresh:s}=(0,n.useRouter)();return(0,r.useEffect)(()=>{let e=new AbortController;window.addEventListener("prismicPreviewStart",c,{signal:e.signal}),window.addEventListener("prismicPreviewUpdate",c,{signal:e.signal}),window.addEventListener("prismicPreviewEnd",function(t){t.preventDefault(),globalThis.fetch(o,{signal:e.signal}).then(e=>{e.ok?s():console.error(`[<PrismicPreview>] Failed to exit Preview Mode using the "${o}" API endpoint. Does it exist?`)}).catch(()=>{})},{signal:e.signal});let n=decodeURIComponent(function(e){let n;function r(e){return e.replace(/%3B/g,";")}for(let i of e.split("; ")){let e=i.split("=");if(r(e[0]).replace(/%3D/g,"=")===t.cookie.preview){n=r(e.slice(1).join("="));continue}}return n}(window.document.cookie)??"");function r(){globalThis.fetch(l,{redirect:"manual",signal:e.signal}).then(e=>{"opaqueredirect"!==e.type?console.error(`[<PrismicPreview>] Failed to start the preview using "${l}". Does it exist?`):document.querySelector('meta[name="robots"][content="noindex"]')?window.location.reload():s()}).catch(()=>{})}function c(e){e.preventDefault(),a?s():r()}return""!==n&&(!n.startsWith("{")||n.includes(`"${i}.prismic.io"`))&&!a&&r(),()=>e.abort()},[i,a,l,o,s]),null}])},227088,e=>{"use strict";let t;var n,r=e.i(843476),i=e.i(513964),a=e.i(618566),l=e.i(271645),o=e.i(88014),s=e.i(773007);function c(e,t){this.v=e,this.k=t}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n;function r(t,n){try{var a=e[t](n),l=a.value,o=l instanceof c;Promise.resolve(o?l.v:l).then(function(n){if(o){var s="return"===t&&l.k?t:"next";if(!l.k||n.done)return r(s,n);n=e[s](n).value}i(!!a.done,n)},function(e){r("throw",e)})}catch(e){i(2,e)}}function i(e,i){2===e?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,l){var o={key:e,arg:i,resolve:a,reject:l,next:null};n?n=n.next=o:(t=n=o,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};let h=Object.entries,d=Object.setPrototypeOf,f=Object.isFrozen,g=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,x=Object.freeze,b=Object.seal,k=Object.create,y="u">typeof Reflect&&Reflect,w=y.apply,v=y.construct;x||(x=function(e){return e}),b||(b=function(e){return e}),w||(w=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),v||(v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let S=H(Array.prototype.forEach);Array.prototype.indexOf;let A=H(Array.prototype.lastIndexOf),T=H(Array.prototype.pop),R=H(Array.prototype.push);Array.prototype.slice;let E=H(Array.prototype.splice),_=Array.isArray,N=H(String.prototype.toLowerCase),C=H(String.prototype.toString),P=H(String.prototype.match),z=H(String.prototype.replace),$=H(String.prototype.indexOf),I=H(String.prototype.trim),L=H(Number.prototype.toString),j=H(Boolean.prototype.toString),O="u"<typeof BigInt?null:H(BigInt.prototype.toString),D="u"<typeof Symbol?null:H(Symbol.prototype.toString),M=H(Object.prototype.hasOwnProperty),B=H(Object.prototype.toString),U=H(RegExp.prototype.test),F=(n=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return v(n,t)});function H(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return w(e,t,r)}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(d&&d(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];
2if("string"==typeof i){let e=n(i);e!==i&&(f(t)||(t[r]=e),i=e)}e[i]=!0}return e}function W(e){let t=k(null);for(let r of h(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,l=[],o=!0,s=!1;try{i=(t=t.call(e)).next,!1;for(;!(o=(n=i.call(t)).done)&&(l.push(n.value),2!==l.length);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(r)||function(e){if(e){if("string"==typeof e)return p(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,2):void 0}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],a=n[1];M(e,i)&&(_(a)?t[i]=function(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=W(a):t[i]=a)}return t}function G(e,t){for(;null!==e;){let n=m(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=g(e)}return function(){return null}}let Z=x(["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"]),Y=x(["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"]),Q=x(["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"]),V=x(["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"]),X=x(["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"]),K=x(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=x(["#text"]),ee=x(["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","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),et=x(["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"]),en=x(["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"]),er=x(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ei=b(/{{[\w\W]*|^[\w\W]*}}/g),ea=b(/<%[\w\W]*|^[\w\W]*%>/g),el=b(/\${[\w\W]*/g),eo=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),es=b(/^aria-[\-\w]+$/),ec=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ep=b(/^(?:\w+script|data):/i),eu=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eh=b(/^html$/i),ed=b(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=b(/<[/\w!]/g),eg=b(/<[/\w]/g),em=b(/<\/no(script|embed|frames)/i),ex=b(/\/>/i),eb=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ek=x(q({},eb)),ey=(t={},S(eb,e=>{t[e]=b(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),x(t)),ew=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ev=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eS=function(e,t,n,r){return M(e,t)&&_(e[t])?q(r.base?W(r.base):{},e[t],r.transform):n},eA=function(e,t,n){let r=M(e,t)?e[t]:void 0;return r&&"object"==typeof r?W(r):n()};var eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=t=>e(t);if(i.version="3.4.16",i.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return i.isSupported=!1,i;let a=r.document,l=a,o=l.currentScript;r.DocumentFragment;let s=r.HTMLTemplateElement,c=r.Node,p=r.Element,u=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let d=r.DOMParser,f=r.trustedTypes,g=p.prototype,m=G(g,"cloneNode"),y=G(g,"remove"),w=G(g,"removeAttributeNode"),v=G(g,"nextSibling"),H=G(g,"childNodes"),eb=G(g,"parentNode"),eT=G(g,"shadowRoot"),eR=G(g,"attributes"),eE=c&&c.prototype?G(c.prototype,"nodeType"):null,e_=c&&c.prototype?G(c.prototype,"nodeName"):null,eN=c&&c.prototype?G(c.prototype,"ownerDocument"):null,eC=function(e){return eE?eE(e):e.nodeType},eP=function(e){return e_?e_(e):e.nodeName};if("function"==typeof s){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let ez="",e$=!1,eI=0,eL=function(){if(eI>0)throw F('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.')},ej=function(e){eL(),eI++;try{return t.createHTML(e)}finally{eI--}},eO=function(e){eL(),eI++;try{return t.createScriptURL(e)}finally{eI--}},eD=a,eM=eD.implementation,eB=eD.createNodeIterator,eU=eD.createDocumentFragment,eF=eD.getElementsByTagName,eH=l.importNode,eq=ev();i.isSupported="function"==typeof h&&"function"==typeof eb&&eM&&void 0!==eM.createHTMLDocument;let eW=ec,eG=null,eZ=q({},[...Z,...Y,...Q,...X,...J]),eY=null,eQ=q({}
2,[...ee,...et,...en,...er]),eV=Object.seal(k(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}})),eX=null,eK=null,eJ=Object.seal(k(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e0=!0,e1=!0,e2=!1,e3=!0,e4=!1,e6=!0,e8=!1,e9=!1,e5=null,e7=null,te=!1,tt=!1,tn=!1,tr=!1,ti=!0,ta=!1,tl="user-content-",to=!0,ts=!1,tc={},tp=null,tu=q({},["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"]),th=null,td=q({},["audio","video","img","source","image","track"]),tf=null,tg=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tm="http://www.w3.org/1998/Math/MathML",tx="http://www.w3.org/2000/svg",tb="http://www.w3.org/1999/xhtml",tk=tb,ty=!1,tw=null,tv=q({},[tm,tx,tb],C),tS=x(["mi","mo","mn","ms","mtext"]),tA=q({},tS),tT=x(["annotation-xml"]),tR=q({},tT),tE=q({},["title","style","font","a","script"]),t_=null,tN=["application/xhtml+xml","text/html"],tC=null,tP=null,tz=a.createElement("form"),t$=function(e){return e instanceof RegExp||e instanceof Function},tI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tP&&tP===e)return;e&&"object"==typeof e||(e={}),e=W(e),tC="application/xhtml+xml"===(t_=-1===tN.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?C:N,eG=eS(e,"ALLOWED_TAGS",eZ,{transform:tC}),eY=eS(e,"ALLOWED_ATTR",eQ,{transform:tC}),tw=eS(e,"ALLOWED_NAMESPACES",tv,{transform:C}),tf=eS(e,"ADD_URI_SAFE_ATTR",tg,{transform:tC,base:tg}),th=eS(e,"ADD_DATA_URI_TAGS",td,{transform:tC,base:td}),tp=eS(e,"FORBID_CONTENTS",tu,{transform:tC}),eX=eS(e,"FORBID_TAGS",W({}),{transform:tC}),eK=eS(e,"FORBID_ATTR",W({}),{transform:tC}),tc=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),e0=!1!==e.ALLOW_ARIA_ATTR,e1=!1!==e.ALLOW_DATA_ATTR,e2=e.ALLOW_UNKNOWN_PROTOCOLS||!1,e3=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e4=e.SAFE_FOR_TEMPLATES||!1,e6=!1!==e.SAFE_FOR_XML,e8=e.WHOLE_DOCUMENT||!1,tt=e.RETURN_DOM||!1,tn=e.RETURN_DOM_FRAGMENT||!1,tr=e.RETURN_TRUSTED_TYPE||!1,te=e.FORCE_BODY||!1,ti=!1!==e.SANITIZE_DOM,ta=e.SANITIZE_NAMED_PROPS||!1,to=!1!==e.KEEP_CONTENT,ts=e.IN_PLACE||!1,eW=!function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?ec:e.ALLOWED_URI_REGEXP,tk="string"==typeof e.NAMESPACE?e.NAMESPACE:tb,tA=eA(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>q({},tS)),tR=eA(e,"HTML_INTEGRATION_POINTS",()=>q({},tT));let r=eA(e,"CUSTOM_ELEMENT_HANDLING",()=>k(null));if(eV=k(null),M(r,"tagNameCheck")&&t$(r.tagNameCheck)&&(eV.tagNameCheck=r.tagNameCheck),M(r,"attributeNameCheck")&&t$(r.attributeNameCheck)&&(eV.attributeNameCheck=r.attributeNameCheck),M(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eV.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),b(eV),e4&&(e1=!1),tn&&(tt=!0),tc&&(eG=q({},J),eY=k(null),!0===tc.html&&(q(eG,Z),q(eY,ee)),!0===tc.svg&&(q(eG,Y),q(eY,et),q(eY,er)),!0===tc.svgFilters&&(q(eG,Q),q(eY,et),q(eY,er)),!0===tc.mathMl&&(q(eG,X),q(eY,en),q(eY,er))),eJ.tagCheck=null,eJ.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eJ.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(eG===eZ&&(eG=W(eG)),q(eG,e.ADD_TAGS,tC))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eJ.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(eY===eQ&&(eY=W(eY)),q(eY,e.ADD_ATTR,tC))),M(e,"ADD_FORBID_CONTENTS")&&_(e.ADD_FORBID_CONTENTS)&&(tp===tu&&(tp=W(tp)),q(tp,e.ADD_FORBID_CONTENTS,tC)),to&&(eG["#text"]=!0),e8&&q(eG,["html","head","body"]),eG.table&&(q(eG,["tbody"]),delete eX.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{ez=ej("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,ez=""):(void 0===t&&(e$||(n=ew(f,o),e$=!0),t=n),t&&"string"==typeof ez&&(ez=ej("")));x&&x(e),tP=e},tL=q({},[...Y,...Q,...V]),tj=q({},[...X,...K]),tO=function(e){var t,n,r;let i=eb(e);i&&i.tagName||(i={namespaceURI:tk,tagName:"template"});let a=N(e.tagName),l=N(i.tagName);return!!tw[e.namespaceURI]&&(e.namespaceURI===tx?(t=i).namespaceURI===tb?"svg"===a:t.namespaceURI===tm?"svg"===a&&("annotation-xml"===l||tA[l]):!!tL[a]:e.namespaceURI===tm?(n=i).namespaceURI===tb?"math"===a:n.namespaceURI===tx?"math"===a&&tR[l]:!!tj[a]:e.namespaceURI===tb?((r=i).namespaceURI!==tx||!!tR[l])&&(r.namespaceURI!==tm||!!tA[l])&&!tj[a]&&(tE[a]||!tL[a]):"application/xhtml+xml"===t_&&!!tw[e.namespaceURI])},tD=function(e){R(i.removed,{element:e});try{eb(e).removeChild(e)}catch(t){if(y(e),!eb(e))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tM=function(e,t,n){try{w(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tB=function(e){tH(e);let t=H(e);if(t){let e=[];S(t,t=>{R(e,t)}),S(e,e=>{try{y(e)}catch(e){}})}let n=eR(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tM(e,r,i)}},tU=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}R(i.removed,{attribute:n||null,from:t});try{n?w(t,n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tt||tn)try{tD(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tF=function(e){let t=eR(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||eY[tC(i)]||tM(e,r,i)}},tH=function(e){let t=[e];for(;t.length>0;){let e=t.pop();1===eC(e)&&tF(e);let n=H(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tq=function(e,t){return!!e6&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},tW=function(e){if(!e6)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=eC(e);if(7===n||8===n&&U(eg,e.data)){try{y(e)}catch(e){}continue}if(1===n){let t=tC(eP(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&tq("for",t)&&e.removeAttribute("for")}catch(e){}}let r=H(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tG=function(e){let n=null,r=null;if(te)e="<remove></remove>"+e;else{let t=P(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===t_&&tk===tb&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?ej(e):e;if(tk===tb)try{n=new d().parseFromString(i,t_)}catch(e){}if(!n||!n.documentElement){n=eM.createDocument(tk,"template",null);try{n.documentElement.innerHTML=ty?ez:i}catch(e){}}let l=n.body||n.documentElement;return(e&&r&&l.insertBefore(a.createTextNode(r),l.childNodes[0]||null),tk===tb)?eF.call(n,e8?"html":"body")[0]:e8?n.documentElement:l},tZ=function(e){let t=eN?eN(e):e.ownerDocument;return eB.call(t||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},tY=function(e){return e=z(e,ei," "),e=z(e,ea," "),e=z(e,el," ")},tQ=function(e){var t;e.normalize();let n=eN?eN(e):e.ownerDocument,r=eB.call(n||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=tY(i.data),i=r.nextNode();let a=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");a&&S(a,e=>{tX(e.content)&&tQ(e.content)})},tV=function(e){let t=e_?e_(e):null;return"string"==typeof t&&"form"===tC(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eR(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eE(e)||e.childNodes!==H(e))},tX=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return 11===eE(e)}catch(e){return!1}},tK=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eE(e)}catch(e){return!1}};function tJ(e,t,n){0!==e.length&&S(e,e=>{e.call(i,t,n,tP)})}let t0=function(e,t){if(e instanceof RegExp)return U(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},t1=function(e,t,n){if(!eX[t]&&t9(t)&&t0(eV.tagNameCheck,t))return!1;if(to&&!tp[t]){let t=eb(e),r=H(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?m(r[a],!0):r[a];t.insertBefore(i,v(e))}}}return tD(e),!0},t2=function(e,t,n,r){return 0===e.length?t:t===n||t===r?W(t):t},t3=function(e,t){return e!==t&&null===eb(e)&&(ts&&tH(e),!0)},t4=function(e,t){if(tJ(eq.beforeSanitizeElements,e,null),t3(e,t))return!0;
2if(tV(e))return tD(e),!0;let n=tC(eP(e));if(eG=t2(eq.uponSanitizeElement,eG,eZ,e5),tJ(eq.uponSanitizeElement,e,{tagName:n,allowedTags:eG}),t3(e,t))return!0;if(e6&&e.hasChildNodes()&&!tK(e.firstElementChild)&&U(ef,e.textContent)&&U(ef,e.innerHTML)||e6&&e.namespaceURI===tb&&ek[n]&&(tK(e.firstElementChild)||"string"==typeof e.textContent&&U(ey[n],e.textContent))||7===e.nodeType||e6&&8===e.nodeType&&U(eg,e.data))return tD(e),!0;if(eX[n]||!(eJ.tagCheck instanceof Function&&eJ.tagCheck(n))&&!eG[n]){let r=t1(e,n,t);return!!(!1===r&&(tJ(eq.afterSanitizeElements,e,null),t3(e,t)))||r}if(1===eC(e)&&!tO(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&U(em,e.innerHTML))return tD(e),!0;if(e4&&3===e.nodeType){let t=tY(e.textContent);e.textContent!==t&&(R(i.removed,{element:e.cloneNode()}),e.textContent=t)}return tJ(eq.afterSanitizeElements,e,null),t3(e,t)},t6=function(e,t,n){if(eK[t]||tq(t,e)||ti&&("id"===t||"name"===t)&&(n in a||n in tz))return!1;let r=eY[t]||eJ.attributeCheck instanceof Function&&eJ.attributeCheck(t,e);return!!(e1&&U(eo,t)||e0&&U(es,t))||(r?!(!(tf[t]||U(eW,z(n,eu,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==$(n,"data:")||!th[e])&&(!e2||U(ep,z(n,eu,""))))||!n:t9(e)&&t0(eV.tagNameCheck,e)&&t0(eV.attributeNameCheck,t,e)||"is"===t&&eV.allowCustomizedBuiltInElements&&t0(eV.tagNameCheck,n))},t8=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),t9=function(e){return!t8[N(e)]&&U(ed,e)},t5=function(e,n,r,i){if(t&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!r)switch(f.getAttributeType(e,n)){case"TrustedHTML":return ej(i);case"TrustedScriptURL":return eO(i)}return i},t7=function(e,t,n,r){try{if(n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tV(e))return tD(e),!1;return!0}catch(n){return tU(t,e),!1}},ne=function(e,t){if(tJ(eq.beforeSanitizeAttributes,e,null),t3(e,t))return;let n=e.attributes;if(!n||tV(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eY=t2(eq.uponSanitizeAttribute,eY,eQ,e7),forceKeepAttr:void 0},a=n.length,l=tC(e.nodeName);for(;a--;){let t=n[a],o=t.name,s=t.namespaceURI,c=t.value,p=tC(o),u="value"===o?c:I(c),h=!1;if(r.attrName=p,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,tJ(eq.uponSanitizeAttribute,e,r),u=r.attrValue,ta&&("id"===p||"name"===p)&&0!==$(u,tl)&&(tU(o,e,t),u=tl+u,h=!0),e6&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===p&&P(u,"href")){tU(o,e,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!e3&&U(ex,u)||(e4&&(u=tY(u)),!t6(l,p,u))){tU(o,e,t);continue}(u=t5(l,p,s,u))!==c&&t7(e,o,s,u)&&h&&T(i.removed)}}tJ(eq.afterSanitizeAttributes,e,null),t3(e,t)},nt=function(e){let t=null,n=tZ(e);for(tJ(eq.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tJ(eq.uponSanitizeShadowNode,t,null),t4(t,e),ne(t,e),tX(t.content)&&nt(t.content),1===eC(t)){let e=eT(t);tX(e)&&(nn(e),nt(e))}tJ(eq.afterSanitizeShadowDOM,e,null)},nn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){nt(e.shadow);continue}let n=e.node,r=1===eC(n),i=H(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=e_?e_(n):null;if("string"==typeof e&&"template"===tC(e)){let e=n.content;tX(e)&&t.push({node:e,shadow:null})}}if(r){let e=eT(n);tX(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if((ty=!e)&&(e="<!-->"),"string"!=typeof e&&!tK(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return L(e);case"boolean":return j(e);case"bigint":return O?O(e):"0";case"symbol":return D?D(e):"Symbol()";case"undefined":default:return B(e);case"function":case"object":{if(null===e)return B(e);let t=G(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:B(n)}return B(e)}}}(e)))throw F("dirty is not a string, aborting");if(!i.isSupported)return e;e9?(eG=e5,eY=e7):tI(n),(eq.uponSanitizeElement.length>0||eq.uponSanitizeAttribute.length>0)&&(eG=W(eG)),eq.uponSanitizeAttribute.length>0&&(eY=W(eY)),i.removed=[];let c=ts&&"string"!=typeof e&&tK(e);if(c){tW(e);let t=eP(e);if("string"==typeof t){let n=tC(t);if(!eG[n]||eX[n])throw tB(e),F("root node is forbidden and cannot be sanitized in-place")}if(tV(e))throw tB(e),F("root node is clobbered and cannot be sanitized in-place");try{nn(e)}catch(t){throw tB(e),t}}else if(tK(e))1===(a=(r=tG("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),nn(r);else{if(!tt&&!e4&&!e8&&-1===e.indexOf("<"))return t&&tr?ej(e):e;if(!(r=tG(e)))return tt?null:tr?ez:""}r&&te&&tD(r.firstChild);let p=c?e:r;
2try{let e=tZ(p);for(;o=e.nextNode();)t4(o,p),ne(o,p),tX(o.content)&&nt(o.content)}catch(t){throw c&&(tB(e),S(i.removed,e=>{e.element&&tH(e.element)})),t}if(c){let t=!1;if(S(i.removed,n=>{n.element&&(n.element===e&&(t=!0),tH(n.element))}),t)throw F("a node selected for removal could not be safely returned; refusing to sanitize in place");return e4&&tQ(e),e}if(tt){if(e4&&tQ(r),tn)for(s=eU.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(eY.shadowroot||eY.shadowrootmode)&&(s=eH.call(l,s,!0)),s}let u=e8?r.outerHTML:r.innerHTML;return e8&&eG["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(eh,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),e4&&(u=tY(u)),t&&tr?ej(u):u},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tI(e),e9=!0,e5=eG,e7=eY},i.clearConfig=function(){tP=null,e9=!1,e5=null,e7=null,t=n,ez=""},i.isValidAttribute=function(e,t,n){return tP||tI({}),t6(tC(e),tC(t),n)},i.addHook=function(e,t){"function"!=typeof t||M(eq,e)&&R(eq[e],t)},i.removeHook=function(e,t){if(M(eq,e)){if(void 0!==t){let n=A(eq[e],t);return -1===n?void 0:E(eq[e],n,1)[0]}return T(eq[e])}},i.removeHooks=function(e){M(eq,e)&&(eq[e]=[])},i.removeAllHooks=function(){eq=ev()},i}();function eR(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var eE=eR(),e_={exec:()=>null};function eN(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function eC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(ez.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var eP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}}(),ez={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:eN(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:eN(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:eN(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:eN(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:eN(e=>RegExp(`^ {0,${e}}(?:</?(?:${eF})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:eN(e=>RegExp(`^ {0,${e}}>`))},e$=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,eI=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,eL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ej=eC(eL).replace(/bull/g,eI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),eO=eC(eL).replace(/bull/g,eI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eD=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,eM=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eB=eC(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",eM).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eU=eC(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,eI).getRegex(),eF="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",eH=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eq=eC("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>
2)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",eH).replace("tag",eF).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eW=e=>eC(eD).replace("hr",e$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eF).getRegex(),eG=eW(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),eZ=eW(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),eY={blockquote:eC(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eZ).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:eB,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:e$,html:eq,lheading:ej,list:eU,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:eG,table:e_,text:/^[^\n]+/},eQ=eC("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",e$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eF).getRegex(),eV={...eY,lheading:eO,table:eQ,paragraph:eC(eD).replace("hr",e$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eQ).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eF).getRegex()},eX={...eY,html:eC("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",eH).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:e_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:eC(eD).replace("hr",e$).replace("heading",` *#{1,6} *[^ 3]`).replace("lheading",ej).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eK=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,eJ=/[\p{P}\p{S}]/u,e0=/[\s\p{P}\p{S}]/u,e1=/[^\s\p{P}\p{S}]/u,e2=eC(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,e0).getRegex(),e3=/(?!~)[\p{P}\p{S}]/u,e4=eC(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eP?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),e6=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,e8=eC(e6,"u").replace(/punct/g,eJ).getRegex(),e9=eC(e6,"u").replace(/punct/g,e3).getRegex(),e5=eC(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).replace(/punct/g,eJ).getRegex(),e7="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",te=eC(e7,"gu").replace(/notPunctSpace/g,e1).replace(/punctSpace/g,e0).replace(/punct/g,eJ).getRegex(),tt=eC(e7,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,e3).getRegex(),tn=eC("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,e1).replace(/punctSpace/g,e0).replace(/punct/g,eJ).getRegex(),tr=eC("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,e1).replace(/punctSpace/g,e0).replace(/punct/g,eJ).getRegex(),ti=eC("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,e1).replace(/punctSpace/g,e0).replace(/punct/g,eJ).getRegex(),ta=eC(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,eJ).getRegex(),tl=eC("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,e1).replace(/punctSpace/g,e0).replace(/punct/g,eJ).getRegex(),to=eC(/\\(punct)/,"gu").replace(/punct/g,eJ).getRegex(),ts=eC(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tc=eC(eH).replace("(?:-->|$)","-->").getRegex(),tp=eC("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>
3|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",tc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tu=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,th=eC(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",tu).getRegex(),td=eC(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",th).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tf=eC(/^!?\[(label)\]\[(ref)\]/).replace("label",th).replace("ref",eM).getRegex(),tg=eC(/^!?\[(ref)\](?:\[\])?/).replace("ref",eM).getRegex(),tm=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,tx=eC(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",tu).getRegex(),tb=eC("reflink|nolink(?!\\()","g").replace("reflink",eC(/^!?\[(label)\]\[(ref)\]/).replace("label",tx).replace("ref",tm).getRegex()).replace("nolink",eC(/^!?\[(ref)\](?:\[\])?/).replace("ref",tm).getRegex()).getRegex(),tk=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ty=eC(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),tw={_backpedal:e_,anyPunctuation:to,autolink:ts,blockSkip:e4,br:eK,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:e_,delLDelim:e_,delRDelim:e_,emStrongLDelim:e8,emStrongRDelimAst:te,emStrongRDelimUnd:tr,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:td,nolink:tg,punctuation:e2,reflink:tf,reflinkSearch:tb,tag:tp,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:e_},tv={...tw,emStrongLDelim:e5,emStrongRDelimAst:tn,emStrongRDelimUnd:ti,link:eC(/^!?\[(label)\]\((.*?)\)/).replace("label",th).getRegex(),reflink:eC(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",th).getRegex()},tS={...tw,emStrongRDelimAst:tt,emStrongLDelim:e9,delLDelim:ta,delRDelim:tl,url:eC(/^emailProtocol|^((?
3:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",ty).replace("protocol",tk).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:eC(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",tk).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},tA={...tS,br:eC(eK).replace("{2,}","*").getRegex(),text:eC(tS.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tT={normal:eY,gfm:eV,pedantic:eX},tR={normal:tw,gfm:tS,breaks:tA,pedantic:tv},tE={"&":"&","<":"<",">":">",'"':""","'":"'"},t_=e=>tE[e];function tN(e,t){if(t){if(ez.escapeTest.test(e))return e.replace(ez.escapeReplace,t_)}else if(ez.escapeTestNoEncode.test(e))return e.replace(ez.escapeReplaceNoEncode,t_);return e}function tC(e){try{e=encodeURI(e).replace(ez.percentDecode,"%")}catch{return null}return e}function tP(e,t){let n=e.replace(ez.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(ez.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(ez.slashPipe,"|");return n}function tz(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function t$(e){let t=e.split(` 4`),n=t.length-1;for(;n>=0&&ez.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(` 5`)}function tI(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function tL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function tj(e,t,n,r,i){let a=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1"),s="!"===e[0].charAt(0);r.state.inLink=!0;let c=r.state.linkEmitted,p=r.state.inRawBlock;r.state.linkEmitted=!1;let u=r.inlineTokens(o),h=r.state.linkEmitted;if(r.state.linkEmitted=c,r.state.inLink=!1,!s){if(h){r.state.inRawBlock=p;return}r.state.linkEmitted=!0}return{type:s?"image":"link",raw:n,href:a,title:l,text:o,tokens:u}}function tO(e,t,n,r){if(!t.includes("<"))return!1;for(let i=0;i<t.length;i++){if("\\"===t[i]){i++;continue}if("`"===t[i]){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if("<"!==t[i])continue;let a=e.slice(n+i),l=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(l){if(l[0].length>t.length-i)return!0;i+=l[0].length-1}}return!1}var tD=class{options;rules;lexer;constructor(e){this.options=e||eE}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:t$(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(` 6`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(` 7`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=tz(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:"heading",raw:tz(t[0],` 8`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:tz(t[0],` 9`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=tz(t[0],` 10`).split(` 11`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))a.push(e[l]),t=!0;else if(t)break;else a.push(e[l]);e=e.slice(l);let o=a.join(` 12`),s=o.replace(this.rules.other.blockquoteSetextReplace,` 13 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 14${o}`:o,r=r?`${r} 15${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,i,!0),this.lexer.state.top=c,
150===e.length)break;let p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let t=e.join(` 16`),a=p.raw+` 17`+t.replace(this.rules.other.blockquoteSetextReplace2,""),l=this.blockquote(a);i[i.length-1]=l;let o=a.substring(l.raw.length).replace(/^\n/,""),s=o?o.split(` 18`).length:0,c=s?e.slice(0,-s):e;c.length>0&&(n=`${n} 19${c.join(` 20`)}`),r=r.substring(0,r.length-p.text.length)+l.text;break}if(p?.type==="list"){let t=p.raw+` 21`+e.join(` 22`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-p.raw.length)+a.raw,r=r.substring(0,r.length-p.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(` 23`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split(` 24`,1)[0],c=t[1].length,p=this.options.pedantic?tL(s,c):s.replace(this.rules.other.leadingSpaceTab,e=>tL(e,c)),u=e.split(` 25`,1)[0],h=!p.trim(),d=0;if(this.options.pedantic?(d=2,o=p.trimStart()):h?d=c+1:(d=(d=p.search(this.rules.other.nonSpaceChar))>4?1:d,o=p.slice(d),d+=c),h&&this.rules.other.blankLine.test(u)&&(r+=u+` 26`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),l=this.rules.other.htmlBeginRegex(d),s=this.rules.other.blockquoteBeginRegex(d);for(;e;){let c=e.split(` 27`,1)[0],f;if(u=c,f=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.leadingSpaceTab,e=>e.replace(this.rules.other.tabCharGlobal," ")),i.test(u)||a.test(u)||l.test(u)||s.test(u)||t.test(u)||n.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!u.trim())o+=` 28`+f.slice(d);else{if(h||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(p)||a.test(p)||n.test(p))break;o+=` 29`+u}h=!u.trim(),r+=c+` 30`,e=e.substring(c.length+1),p=f.slice(d)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(l=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items))if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type==="text"||t?.type==="paragraph")){e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1)}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=t$(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=tI(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:tz(t[0],` 31`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=tP(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 32`):[],a={type:"table",raw:tz(t[0],` 33`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(tP(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:tz(t[0],` 34`),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 35`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n="!"===t[0].charAt(0)?2:1;if(!this.options.pedantic&&tO(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=tz(r.slice(0,-1),"\\");if((r.length-e.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let i=t[2],a="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),tj(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r="!"===n[0].charAt(0)?2:1;if(!this.options.pedantic&&tO(e,n[1],r,this.rules))return;let i=t[tI((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "))];if(!i){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return tj(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,l,o=i,s=0,c=r[0][0],p=n===c,u="*"===c?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=u.exec(t));){if(!(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(l=[...a].length,r[3]||r[4]){o+=l;continue}if(r[5]||r[6]){if(i%3&&!((i+l)%3)){s+=l;continue}if(p)break}if((o-=l)>0)continue;l=Math.min(l,l+o+s);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+l);
35if(Math.min(i,l)%2){let e=n.slice(1,-1);return{type:"em",raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let c=n.slice(2,-2);return{type:"strong",raw:n,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,l=n,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=o.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){l+=a;continue}if((l-=a)>0)continue;a=Math.min(a,a+l);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+a),s=o.slice(n,-n);return{type:"del",raw:o,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:e?t[0]:t[0].replace(ez.numericCharacterReference,(e,t,n)=>{let r=void 0===t?Number.parseInt(n,16):Number.parseInt(t,10);return 0===r||r>1114111||r>=55296&&r<=57343?"�":String.fromCodePoint(r)}),escaped:e}}}},tM=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eE,this.options.tokenizer=this.options.tokenizer||new tD,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:ez,block:tT.normal,inline:tR.normal};this.options.pedantic?(t.block=tT.pedantic,t.inline=tR.pedantic):this.options.gfm&&(t.block=tT.gfm,this.options.breaks?t.inline=tR.breaks:t.inline=tR.gfm),this.tokenizer.rules=t}static get rules(){return{block:tT,inline:tR}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ez.carriageReturn,` 36`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ez.tabCharGlobal," ").replace(ez.spaceLine,""));let r=1/0;for(;e;){let i;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(this.options.extensions?.block?.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);1===i.raw.length&&void 0!==n?n.raw+=` 37`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 38`)?"":` 39`)+i.raw,n.text+=` 40`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 41`)?"":` 42`)+i.raw,n.text+=` 43`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}
43,t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type==="paragraph"?(r.raw+=(r.raw.endsWith(` 44`)?"":` 45`)+i.raw,r.text+=` 46`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` 47`)?"":` 48`)+i.raw,n.text+=` 49`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&"!"!==e.charAt(n.index-1))return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf("[");if(!("!"===e.charAt(0)||!Object.hasOwn(this.tokens.links,tI(e.slice(n+1,-1))))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes("[")){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,tI(n.slice(r+1,-1))))return n;if(r>1&&"!"!==n.charAt(0)){let i=n.slice(1,r-1);if(this.linkInText(i))return"["+i.replace(e,t)+"]["+"a".repeat(n.length-r-2)+"]"}return"["+"a".repeat(n.length-2)+"]"};n=n.replace(e,t)}n=(n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>"+".repeat(e.length))).replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+"["+"a".repeat(e.length-r-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i="",a=1/0;for(;e;){let l;if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(l=n.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if((l=this.tokenizer.escape(e))||(l=this.tokenizer.tag(e))||(l=this.tokenizer.link(e))){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let n=t.at(-1);"text"===l.type&&n?.type==="text"?(n.raw+=l.raw,n.text+=l.text):t.push(l);continue}if((l=this.tokenizer.emStrong(e,n,i))||(l=this.tokenizer.codespan(e))||(l=this.tokenizer.br(e))||(l=this.tokenizer.del(e,n,i))||(l=this.tokenizer.autolink(e))||!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),t.push(l);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(l=this.tokenizer.inlineText(o)){e=e.substring(l.raw.length),"_"!==l.raw.slice(-1)&&(i=l.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=l.raw,n.text+=l.text):t.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}},tB=class{options;parser;constructor(e){this.options=e||eE}space(e){return""}code(e){let{text:t,lang:n,escaped:r}=e,i=(n||"").match(ez.notSpaceStart)?.[0],a=t?t.replace(ez.endingNewline,"")+` 50`:"";return i?'<pre><code class="language-'+tN(i)+'">'+(r?a:tN(a,!0))+`</code></pre> 51`:"<pre><code>"+(r?a:tN(a,!0))+`</code></pre> 52`}blockquote(e){let{tokens:t}=e;return`<blockquote> 53${this.parser.parse(t)}</blockquote> 54`}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:n}=e;return`<h${n}>${this.parser.parseInline(t)}</h${n}> 55`}hr(e){return`<hr> 56`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`> 57`+r+"</"+i+`> 58`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 59`}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return`<p>${this.parser.parseInline(t)}</p> 60`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 61<thead> 62`+t+`</thead> 63`+r+`</table> 64`}tablerow(e){let{text:t}=e;return`<tr> 65${t}</tr> 66`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 67`}strong(e){let{tokens:t}=e;return`<strong>${this.parser.parseInline(t)}</strong>`}em(e){let{tokens:t}=e;return`<em>${this.parser.parseInline(t)}</em>`}codespan(e){let{text:t}=e;return`<code>${tN(t,!0)}</code>`}br(e){return"<br>"}del(e){let{tokens:t}=e;return`<del>${this.parser.parseInline(t)}</del>`}link(e){let{href:t,title:n,text:r,tokens:i,autolink:a}=e,l=a?tN(r,!0):this.parser.parseInline(i),o=tC(t);if(null===o)return l;let s='<a href="'+(t=tN(o,a))+'"';return n&&(s+=' title="'+tN(n)+'"'),s+=">"+l+"</a>"}image(e){let{href:t,title:n,text:r,tokens:i}=e;i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let a=tC(t);if(null===a)return tN(r);t=a;
67let l=`<img src="${tN(t)}" alt="${tN(r)}"`;return n&&(l+=` title="${tN(n)}"`),l+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:tN(e.text)}},tU=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},tF=class e{options;renderer;textRenderer;constructor(e){this.options=e||eE,this.options.renderer=this.options.renderer||new tB,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tU}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},tH=class{options;block;constructor(e){this.options=e||eE}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?tM.lex:tM.lexInline}provideParser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?tF.parse:tF.parseInline}},tq=new class{defaults=eR();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tF;Renderer=tB;TextRenderer=tU;Lexer=tM;Tokenizer=tD;Hooks=tH;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=this.defaults.extensions||{renderers:{},childTokens:{}};
67return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=r.renderers[e.name];t?r.renderers[e.name]=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=e.renderer.apply(this,r);return!1===a&&(a=t.apply(this,r)),a}:r.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=r[e.level];t?t.unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),t.extensions=r),e.renderer){let n=this.defaults.renderer||new tB(this.defaults);for(let t in e.renderer){if(!(t in n))throw Error(`renderer '${t}' does not exist`);if(["options","parser"].includes(t))continue;let r=e.renderer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let l=r.apply(n,t);return!1===l&&(l=i.apply(n,t)),l||""}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new tD(this.defaults);for(let t in e.tokenizer){if(!(t in n))throw Error(`tokenizer '${t}' does not exist`);if(["options","rules","lexer"].includes(t))continue;let r=e.tokenizer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let l=r.apply(n,t);return!1===l&&(l=i.apply(n,t)),l}}t.tokenizer=n}if(e.hooks){let r=this.defaults.hooks||new tH;for(let t in e.hooks){var n=this;if(!(t in r))throw Error(`hook '${t}' does not exist`);if(["options","block"].includes(t))continue;let i=e.hooks[t],a=r[t];tH.passThroughHooks.has(t)?r[t]=e=>{if(this.defaults.async&&tH.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await i.call(r,e);return a.call(r,t)})();let n=i.call(r,e);return a.call(r,n)}:r[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];if(n.defaults.async)return(async()=>{let e=await i.apply(r,t);return!1===e&&(e=await a.apply(r,t)),e})();let o=i.apply(r,t);return!1===o&&(o=a.apply(r,t)),o}}t.hooks=r}if(e.walkTokens){let n=this.defaults.walkTokens,r=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return tM.lex(e,t??this.defaults)}parser(e,t){return tF.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?tM.lex:tM.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let l=await (i.hooks?await i.hooks.provideParser(e):e?tF.parse:tF.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(l):l})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?tM.lex:tM.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?tF.parse:tF.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` 68Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+tN(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function tW(e,t){return tq.parse(e,t)}tW.options=tW.setOptions=function(e){return tq.setOptions(e),tW.defaults=tq.defaults,eE=tW.defaults,tW},tW.getDefaults=eR,tW.defaults=eE,tW.use=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return tq.use(...t),tW.defaults=tq.defaults,eE=tW.defaults,tW},tW.walkTokens=function(e,t){return tq.walkTokens(e,t)},tW.parseInline=tq.parseInline,tW.Parser=tF,tW.parser=tF.parse,tW.Renderer=tB,tW.TextRenderer=tU,tW.Lexer=tM,tW.lexer=tM.lex,tW.Tokenizer=tD,tW.Hooks=tH,tW.parse=tW,tW.options,tW.setOptions,tW.walkTokens,tW.parseInline,tF.parse,tM.lex;var tG=e.i(247167);let tZ=["image/jpeg","image/png","image/webp","image/heic","image/heif"],tY=[".jpg",".jpeg",".png",".webp",".heic",".heif"],tQ=[...tZ,".heic",".heif"].join(",");function tV(){return"6201a1afd95e6f62cb56"}
68class tX extends Error{constructor(){super("attachment too large"),this.name="AttachmentTooLargeError"}}class tK extends Error{constructor(){super("attachment type not allowed"),this.name="AttachmentTypeNotAllowedError"}}async function tJ(t){let{signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e){if(tZ.includes(e.type))return!0;if(e.type)return!1;let t=e.name.toLowerCase();return tY.some(e=>t.endsWith(e))}(t))throw new tK;if(t.size>0xa00000)throw new tX;let{uploadFile:r}=await e.A(989787),i=new File([t],t.name,{type:t.type});return(await r(i,{publicKey:tV(),fileName:t.name,store:!1,signal:n})).uuid}let t0=new Set(["NetworkError","CancelError"]),t1=eT(window);function t2(e){let t=tW.parse(e,{async:!1});return t1.sanitize(t,{ADD_ATTR:["target","rel"]})}function t3(e){let t=Math.floor((Date.now()-e)/1e3);return t<60?"Agora":t<3600?`${Math.floor(t/60)}m atr\xe1s`:t<86400?`${Math.floor(t/3600)}h atr\xe1s`:new Date(e).toLocaleDateString("pt-BR")}function t4(e){let{info:t}=e;return(0,r.jsx)("div",{className:"dpx-avatar",children:t.logoUrl?(0,r.jsx)("img",{src:t.logoUrl,alt:t.name}):(0,r.jsx)("span",{className:"dpx-avatar-initials",children:t.name.charAt(0).toUpperCase()})})}t1.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))});let t6=(0,r.jsx)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M22 0H4C1.8 0 0 1.8 0 4v11c0 2.2 1.8 4 4 4h1.5L4 24l7-5H22c2.2 0 4-1.8 4-4V4c0-2.2-1.8-4-4-4z"})}),t8=(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),t9=(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})});function t5(e){let{value:t,disabled:n,onRate:i}=e;return(0,r.jsx)("div",{className:"dpx-stars",children:[1,2,3,4,5].map(e=>(0,r.jsx)("button",{type:"button",disabled:n,className:e<=t?"dpx-star filled":"dpx-star","aria-label":`Avaliar com ${e} estrela${e>1?"s":""}`,"aria-pressed":e<=t,onClick:()=>i(e),children:t9},e))})}let t7=(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})}),ne=(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})});function nt(e){let{onOpenChange:t}=e,[n,a]=(0,l.useState)(i.CHAT_INFO),[o,c]=(0,l.useState)(!1),[p,u]=(0,l.useState)([]),[h,d]=(0,l.useState)(""),[f,g]=(0,l.useState)(!1),m=(0,l.useRef)(!1),x=(0,l.useRef)(null),b=!!tV(),[k,y]=(0,l.useState)(null),[w,v]=(0,l.useState)(null),S=(0,l.useRef)(null),A=(0,l.useRef)(null);(0,l.useEffect)(()=>()=>{A.current?.abort(),A.current=null},[]);let[T,R]=(0,l.useState)(null),[E,_]=(0,l.useState)(null),[N,C]=(0,l.useState)(!1),[P,z]=(0,l.useState)(!1),[$,I]=(0,l.useState)(!1),[L,j]=(0,l.useState)(!1),[O,D]=(0,l.useState)(!1),[M,B]=(0,l.useState)(!1),U=(0,l.useRef)(null),F=(0,l.useRef)(0);(0,l.useEffect)(()=>()=>{U.current&&clearTimeout(U.current)},[]),(0,l.useEffect)(()=>{t?.(o)},[o,t]),(0,l.useEffect)(()=>{if(!o||m.current)return;m.current=!0;let e=e=>{let t=e?[{role:"bot",content:t2(e),ts:Date.now()}]:[];u(e=>e.length?e:t)},t=e=>fetch("/api/chat/messages",{credentials:"same-origin"}).then(e=>e.ok?e.json():null).then(t=>{let n=(t?.messages??[]).filter(e=>e?.text||e?.attachment).map(e=>({role:"assistant"===e.role?"bot":"user",content:"assistant"===e.role?t2(e.text??""):e.text??"",ts:Date.now(),..."assistant"!==e.role&&e.attachment?{attachmentName:e.attachment}:{}}));if(!n.length)return e();u(e=>[...n,...e])}).catch(e);fetch("/api/chat/info",{credentials:"same-origin"}).then(e=>e.ok?e.json():null).then(n=>{if(!n)throw Error("chat info unavailable");a(e=>({...e,...n.name?{name:n.name}:{},...n.agentName?{agentName:n.agentName}:{},...n.welcomeMessage?{welcomeMessage:n.welcomeMessage}:{}})),"number"==typeof n.rating&&R(n.rating),B(!!n.hasMessages);let r=n.welcomeMessage||i.CHAT_INFO.welcomeMessage;n.hasMessages?t(()=>e(r)):e(r)}).catch(()=>{t(()=>e(i.CHAT_INFO.welcomeMessage))})},[o]),(0,l.useEffect)(()=>{let e=x.current;e&&(e.scrollTop=e.scrollHeight)},[p]);let H=`${n.name} â ${n.agentName}`,q=p.filter(e=>"user"===e.role).length,W=null===T&&!O&&q>=2,G=M&&!O&&!N&&(P||W),Z=()=>{U.current&&(clearTimeout(U.current),U.current=null),F.current+=1,C(!1),z(!1),I(!1),_(null),c(!1)},Y=()=>{N||!W||L?(N&&!P&&D(!0),Z()):C(!0)},Q=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"dpx-rating-title",children:"Como foi o atendimento?"}),(0,r.jsx)(t5,{value:E??0,disabled:L,onRate:e=>{_(e),I(!1)}}),(0,r.jsx)("button",{className:"dpx-rating-send",type:"button",disabled:null===E||L,onClick:()=>
68{if(L||null===E)return;j(!0),I(!1);let e=F.current;fetch("/api/chat/rating",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({rating:E})}).then(async t=>{if(404===t.status){D(!0),N&&Z();return}if(!t.ok)throw Error(`rating ${t.status}`);let n=await t.json();if("number"!=typeof n?.rating)throw Error("no echo");R(n.rating),_(null),z(!0),N&&F.current===e&&(U.current=window.setTimeout(Z,1200))}).catch(()=>I(!0)).finally(()=>j(!1))},children:"Enviar avaliação"}),$&&(0,r.jsx)("div",{className:"dpx-rating-error",children:"Não foi possÃvel enviar. Tente novamente."})]}),V=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"dpx-rating-title",children:"Obrigado pela avaliação!"}),(0,r.jsx)(t5,{value:T??0,disabled:!0,onRate:()=>{}})]}),X=e=>{A.current?.abort();let t=new AbortController;A.current=t,v(null),y({file:e,status:"uploading"}),tJ(e,{signal:t.signal}).then(n=>{A.current===t&&(A.current=null,y({file:e,status:"ready",fileId:n}))}).catch(n=>{if(A.current!==t)return;if(A.current=null,n instanceof tK){y(null),v("Envie uma foto (JPG, PNG, WebP ou HEIC).");return}if(n instanceof tX){y(null),v("O arquivo passa de 10 MB. Envie um arquivo menor.");return}let r=n instanceof Error?n.name:"";if(!t0.has(r)){let e="string"==typeof n?.code?n.code:r||"unknown";(0,s.safeCapture)(n instanceof Error?n:Error(String(n)),{tags:{section:"chatAttachment"},dedupKey:["chatAttachment",e]})}y({file:e,status:"error"})})};return(0,r.jsxs)("div",{className:o?"dpx-root is-open":"dpx-root",style:{"--accent":n.accentColor},children:[(0,r.jsxs)("div",{className:"dpx-panel",children:[(0,r.jsxs)("div",{className:"dpx-header",children:[(0,r.jsxs)("div",{className:"dpx-header-brand",children:[(0,r.jsx)("div",{className:"dpx-header-logo",children:n.logoUrl?(0,r.jsx)("img",{src:n.logoUrl,alt:n.name}):(0,r.jsx)("span",{className:"dpx-header-logo-initials",children:n.name.charAt(0).toUpperCase()})}),(0,r.jsx)("span",{className:"dpx-title",children:n.name})]}),(0,r.jsx)("button",{className:"dpx-close",type:"button","aria-label":"Fechar chat",onClick:Y,children:t8})]}),N?(0,r.jsx)("div",{className:"dpx-rating-view",children:P?V:(0,r.jsxs)(r.Fragment,{children:[Q,(0,r.jsx)("button",{className:"dpx-rating-skip",type:"button",onClick:()=>{D(!0),Z()},children:"agora não"})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"dpx-messages",ref:x,children:[p.map((e,t)=>"user"===e.role?(0,r.jsxs)("div",{className:"dpx-wrap-user",children:[(0,r.jsxs)("div",{className:"dpx-msg user",children:[e.attachmentName&&(0,r.jsxs)("div",{className:e.content?"dpx-msg-file has-text":"dpx-msg-file",children:[t7,(0,r.jsx)("span",{children:e.attachmentName})]}),e.content]}),(0,r.jsx)("div",{className:"dpx-time",children:t3(e.ts)})]},t):(0,r.jsxs)("div",{className:"dpx-row",children:[(0,r.jsx)(t4,{info:n}),(0,r.jsxs)("div",{className:"dpx-msg-body",children:[(0,r.jsx)("div",{className:"dpx-agent-name",children:H}),e.loading?(0,r.jsx)("div",{className:"dpx-msg bot loading",children:e.content}):(0,r.jsx)("div",{className:"dpx-msg bot",dangerouslySetInnerHTML:{__html:e.content}}),!e.loading&&(0,r.jsx)("div",{className:"dpx-time",children:t3(e.ts)})]})]},t)),G&&(0,r.jsx)("div",{className:"dpx-rating-card",children:P?V:Q})]}),(0,r.jsx)("div",{className:"dpx-footer",children:"Atendimento virtual"}),w&&(0,r.jsx)("div",{className:"dpx-attach-notice",role:"alert",children:w}),k&&(0,r.jsxs)("div",{className:`dpx-attachment is-${k.status}`,"aria-live":"polite",children:[(0,r.jsx)("span",{className:"dpx-attachment-name",children:k.file.name}),(0,r.jsx)("span",{className:"dpx-attachment-status",children:"uploading"===k.status?"Enviandoâ¦":"error"===k.status?"Falhou":"Pronto"}),"error"===k.status&&(0,r.jsx)("button",{type:"button",className:"dpx-attachment-action",onClick:()=>X(k.file),children:"Tentar de novo"}),(0,r.jsx)("button",{type:"button",className:"dpx-attachment-remove","aria-label":"Remover anexo",onClick:()=>{A.current?.abort(),A.current=null,y(null),v(null)},children:t8})]}),(0,r.jsxs)("form",{className:"dpx-input",onSubmit:e=>{e.preventDefault(),(()=>{let e=h.trim();if(k&&"ready"!==k.status)return;let t=k?.fileId;if(!e&&!t||f)return;d(""),y(null),g(!0);let n=Date.now();u(r=>[...r,{role:"user",content:e,ts:n,...t?{attachmentName:k?.file.name}:{}},{role:"bot",content:"Digitandoâ¦",ts:n,loading:!0}]),fetch("/api/chat/message",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(t?{message:e,fileId:t}:{message:e})}).then(e=>e.json()).then(e=>{let t=e?.reply||e?.error||"Erro desconhecido";u(e=>e.map((n,r)=>r===e.length-1?{role:"bot",content:t2(t),ts:Date.now()}:n))}).catch(()=>{u(e=>e.map((t,n)=>n===e.length-1?{role:"bot",content:"Erro ao conectar. Tente novamente.",ts:Date.now()}:t))}).finally(()=>g(!1))})()},children:[b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{ref:S,type:"file",accept:tQ,hidden:!0,"data-testid":"chat-file-input",onChange:e=>{let t=e.target.files?.[0];e.target.value="",t&&X(t)}}),(0,r.jsx)("button",{className:"dpx-attach",type:"button","aria-label":"Anexar arquivo",disabled:f,onClick:()=>S.current?.click(),children:t7})]}),(0,r.jsx)("input",{type:"text",placeholder:k?"Mensagem (opcional)":"Digite uma mensagem...",maxLength:4e3,autoComplete:"off",value:h,disabled:f,onChange:e=>d(e.target.value)}),(0,r.jsx)("button",{className:"dpx-send",type:"submit","aria-label":"Enviar",children:ne})]})]})]}),(0,r.jsx)("button",{className:"dpx-fab",type:"button","aria-label":o?"Fechar chat":"Abrir chat",onClick:()=>o?Y():c(!0),children:o?t8:t6})]})}let nn=` 69* { box-sizing: border-box; margin: 0; padding: 0; } 70html, body { 71 height: 100%; 72 overflow: hidden; 73 background: transparent; 74 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 75} 76
77/* ---- FAB (preenche o iframe-c\xedrculo quando fechado; sombra fica no iframe) ---- */ 78.dpx-fab { 79 position: absolute; 80 inset: 0; 81 width: 100%; 82 height: 100%; 83 border-radius: 50%; 84 background: var(--accent, #555); 85 color: #fff; 86 border: none; 87 cursor: pointer; 88 display: flex; 89 align-items: center; 90 justify-content: center; 91 padding: 0; 92 transition: filter 0.15s; 93} 94.dpx-fab:hover { filter: brightness(1.08); } 95/* Aberto: o painel fecha pelo X do header; o FAB some (o iframe vira ret\xe2ngulo). */ 96.dpx-root.is-open .dpx-fab { display: none; } 97 98/* ---- Painel (preenche o iframe; raio casa com o do iframe) ---- */ 99.dpx-panel { 100 position: absolute; 101 inset: 0; 102 border-radius: 16px; 103 overflow: hidden; 104 background: #fff; 105 display: flex; 106 flex-direction: column; 107 opacity: 0; 108 pointer-events: none; 109 transition: opacity 0.2s; 110} 111.dpx-root.is-open .dpx-panel { opacity: 1; pointer-events: auto; } 112 113@media (max-width: 480px) { 114 .dpx-panel { border-radius: 0; } 115} 116 117/* ---- Header ---- */ 118.dpx-header { 119 background: var(--accent, #0066cc); 120 color: #fff; 121 padding: 14px 16px; 122 display: flex; 123 align-items: center; 124 justify-content: space-between; 125 flex-shrink: 0; 126} 127.dpx-header-brand { display: flex; align-items: center; gap: 10px; } 128.dpx-header-logo { 129 width: 36px; height: 36px; border-radius: 8px; 130 background: rgba(255,255,255,0.2); 131 display: flex; align-items: center; justify-content: center; 132 overflow: hidden; flex-shrink: 0; 133} 134.dpx-header-logo img { width: 100%; height: 100%; object-fit: cover; } 135.dpx-header-logo-initials { font-size: 15px; font-weight: 700; color: #fff; line-height: 1; } 136.dpx-title { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; } 137.dpx-close { 138 background: none; border: none; color: #fff; cursor: pointer; 139 padding: 4px; opacity: 0.85; line-height: 1; 140 display: flex; align-items: center; justify-content: center; 141} 142.dpx-close:hover { opacity: 1; } 143 144/* ---- Mensagens ---- */ 145.dpx-messages { 146 flex: 1; overflow-y: auto; padding: 16px 14px; 147 display: flex; flex-direction: column; gap: 14px; 148} 149.dpx-row { display: flex; align-items: flex-start; gap: 8px; } 150.dpx-avatar { 151 width: 32px; height: 32px; border-radius: 8px; 152 background: var(--accent, #0066cc); 153 display: flex; align-items: center; justify-content: center; 154 overflow: hidden; flex-shrink: 0; margin-top: 16px; 155} 156.dpx-avatar img { width: 100%; height: 100%; object-fit: cover; } 157.dpx-avatar-initials { font-size: 12px; font-weight: 700; color: #fff; line-height: 1; } 158.dpx-msg-body { display: flex; flex-direction: column; gap: 3px; max-width: calc(100% - 42px); } 159.dpx-agent-name { font-size: 11.5px; color: #888; font-weight: 500; } 160 161.dpx-msg { 162 padding: 10px 14px; border-radius: 14px; font-size: 13.5px; 163 line-height: 1.55; word-break: break-word; 164} 165.dpx-msg.bot { background: #f0f2f5; color: #1a1a1a; border-top-left-radius: 4px; align-self: flex-start; } 166.dpx-msg.user { background: var(--accent, #0066cc); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; } 167.dpx-msg.bot ul, .dpx-msg.bot ol { padding-left: 18px; margin: 4px 0; } 168.dpx-msg.bot li { margin: 2px 0; } 169.dpx-msg.bot p { margin: 0 0 6px; } 170.dpx-msg.bot p:last-child { margin-bottom: 0; } 171.dpx-msg.bot a { color: var(--accent, #0066cc); } 172.dpx-msg.bot strong { font-weight: 600; } 173.dpx-msg.bot table { border-collapse: collapse; font-size: 12.5px; width: 100%; } 174.dpx-msg.bot th, .dpx-msg.bot td { padding: 4px 8px; border: 1px solid #ddd; text-align: left; } 175.dpx-msg.bot th { background: #e8eaed; } 176.dpx-msg.loading { color: #aaa; font-style: italic; font-size: 13px; } 177.dpx-time { font-size: 11px; color: #aaa;
177 margin-top: 1px; } 178.dpx-wrap-user { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } 179 180/* ---- Footer + input ---- */ 181.dpx-footer { 182 padding: 6px 14px 8px; text-align: center; font-size: 11px; 183 color: #bbb; flex-shrink: 0; border-top: 1px solid #f0f0f0; 184} 185.dpx-input { 186 display: flex; align-items: center; gap: 8px; 187 padding: 10px 14px 12px; flex-shrink: 0; 188} 189.dpx-send { 190 width: 36px; height: 36px; border-radius: 50%; 191 background: var(--accent, #0066cc); border: none; color: #fff; 192 cursor: pointer; display: flex; align-items: center; justify-content: center; 193 flex-shrink: 0; transition: opacity 0.15s; 194} 195.dpx-send:hover { opacity: 0.85; } 196.dpx-input input { 197 flex: 1; padding: 9px 16px; border: 1px solid #e5e5e5; 198 border-radius: 20px; font-size: 16px; outline: none; 199 font-family: inherit; background: #f7f8fa; color: #333; 200} 201.dpx-input input:focus { border-color: var(--accent, #0066cc); background: #fff; } 202.dpx-input input::placeholder { color: #aaa; } 203/* min-width:0 â sem ele o input (flex:1) n\xe3o encolhe abaixo do tamanho 204 intr\xednseco e o clipe + enviar estouram a largura no mobile estreito */ 205.dpx-input input[type="text"] { min-width: 0; } 206 207/* ---- Anexo ---- */ 208.dpx-attach { 209 width: 36px; height: 36px; border-radius: 50%; 210 background: none; border: none; color: #888; 211 cursor: pointer; display: flex; align-items: center; justify-content: center; 212 flex-shrink: 0; padding: 0; transition: color 0.15s; 213} 214.dpx-attach:hover:not(:disabled) { color: var(--accent, #0066cc); } 215.dpx-attach:disabled { opacity: 0.5; cursor: default; } 216.dpx-attachment { 217 display: flex; align-items: center; gap: 8px; 218 margin: 8px 14px 0; padding: 6px 6px 6px 12px; 219 border: 1px solid #e5e5e5; border-radius: 10px; background: #f7f8fa; 220 font-size: 12.5px; color: #333; flex-shrink: 0; 221} 222.dpx-attachment-name { 223 flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 224} 225.dpx-attachment-status { color: #888; flex-shrink: 0; } 226.dpx-attachment.is-error { border-color: #f1c4bf; background: #fdf3f2; } 227.dpx-attachment.is-error .dpx-attachment-status { color: #c0392b; } 228.dpx-attachment-action { 229 background: none; border: none; color: var(--accent, #0066cc); 230 font-size: 12.5px; cursor: pointer; text-decoration: underline; 231 padding: 2px; font-family: inherit; flex-shrink: 0; 232} 233.dpx-attachment-remove { 234 background: none; border: none; color: #888; cursor: pointer; 235 width: 28px; height: 28px; border-radius: 50%; padding: 0; 236 display: flex; align-items: center; justify-content: center; flex-shrink: 0; 237} 238.dpx-attachment-remove:hover { color: #333; background: #eceef1; } 239.dpx-attachment-remove svg { width: 14px; height: 14px; } 240.dpx-attach-notice { 241 margin: 8px 14px 0; font-size: 12.5px; color: #c0392b; flex-shrink: 0; 242} 243.dpx-msg-file { 244 display: flex; align-items: center; gap: 6px; 245 font-size: 12.5px; opacity: 0.95; 246} 247.dpx-msg-file svg { width: 15px; height: 15px; flex-shrink: 0; } 248/* nome longo quebra em vez de retic\xeancias: a bolha \xe9 shrink-to-fit e um 249 nowrap empurraria a largura dela pra fora do painel */ 250.dpx-msg-file span { overflow-wrap: anywhere; } 251.dpx-msg-file.has-text { margin-bottom: 4px; } 252 253/* ---- Avalia\xe7\xe3o p\xf3s-atendimento ---- */ 254.dpx-rating-view { 255 flex: 1; display: flex; flex-direction: column; 256 align-items: center; justify-content: center; gap: 14px; 257 padding: 24px; text-align: center; 258} 259.dpx-rating-card { 260 border: 1px solid #e8eaed; border-radius: 12px; background: #fafbfc; 261 display: flex; flex-direction: column; align-items: center; gap: 8px; 262 padding: 14px 12px; margin-top: 4px; text-align: center; 263} 264.dpx-rating-title { font-size: 14.5px; font-weight: 600; color: #333; } 265.dpx-stars { display: flex; gap: 4px; } 266.dpx-star { 267 background: none; border: none; cursor: pointer; 268 color: #d5d9de; display: flex; transition: transform 0.1s, color 0.1s; 269 /* SVG 28px + 2\xd78px = alvo de toque de 44px (m\xednimo touch; o mis-tap da 270 nota 1 em mobile veio de alvos de ~32px colados â Filipe, 2026-08-28) */ 271 padding: 8px; 272} 273.dpx-star:focus-visible { 274 outline: 2px solid var(--accent, #0066cc); outline-offset: 2px; border-radius: 4px; 275} 276.dpx-star:hover:not(:disabled) { transform: scale(1.15); color: #f6b73c; } 277/* Hover CUMULATIVO (preview da nota): apontar a estrela N pinta 1..N e 278 apaga N+1..5 â inclusive por cima do .filled do servidor. O :has evita 279 pintar o grupo ao pairar o GAP entre estrelas; browser sem :has degrada 280 pro hover simples (s\xf3 a apontada), nunca quebra. A regra do "apaga as 281 seguintes" vem DEPOIS de prop\xf3sito: mesma especificidade (0,5,0), a 282 ordem decide. */ 283.dpx-stars:has(.dpx-star:hover) .dpx-star:not(:disabled) { color: #f6b73c; } 284.dpx-stars .dpx-star:hover ~ .dpx-star:not(:disabled) { color: #d5d9de; } 285.dpx-star.filled { color: #f6b73c; } 286.dpx-star:disabled { cursor: default; } 287.dpx-rating-send { 288 background: var(--accent, #0066cc); border: none; color: #fff; 289 border-radius: 20px; padding: 10px 22px; font-size: 14px; 290 font-weight: 600; cursor: pointer; font-family: inherit; 291 transition: opacity 0.15s; 292} 293.dpx-rating-send:hover:not(:disabled) { opacity: 0.85; } 294.dpx-rating-send:disabled { background: #d5d9de; color: #767676; cursor: default; } 295.dpx-rating-skip { 296 background: none; border: none; color: #999; font-size: 13px; 297 cursor: pointer; text-decoration: underline; padding: 4px; 298} 299.dpx-rating-skip:hover { color: #666; } 300.dpx-rating-error { font-size: 12.5px; color: #c0392b; } 301`,nr="dpx-chat-host",ni=/^\/(carrinho|checkout|diagrame-online)(\/|$)/,na=79===i.PAPIRUS_STORE_ID?70:24,nl="(max-width: 480px)";function no(e,t){let n="position:fixed;border:0;z-index:99999;background:transparent;color-scheme:normal;transition:width .2s ease,height .2s ease,bottom .2s ease;";if(!t){e.style.cssText=n+`bottom:${na}px;right:16px;width:60px;height:60px;`+"border-radius:50%;box-shadow:0 4px 16px rgba(0,0,0,0.24);";return}let r=window.matchMedia(nl).matches;e.style.cssText=r?n+"top:0;left:0;width:100vw;height:100dvh;border-radius:0;":n+"bottom:24px;right:16px;width:370px;height:640px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,0.24);"}function ns(){let e=(0,a.usePathname)(),t=ni.test(e??"");return(0,l.useEffect)(()=>
301{if(t||!i.PAPIRUS_STORE_ID||"u"<typeof document||document.getElementById(nr))return;let e=document.createElement("iframe");e.id=nr,e.title="Chat de atendimento",e.setAttribute("aria-label","Chat de atendimento"),no(e,!1),document.body.appendChild(e);let n=null,a=!1,l=()=>{let t=e.contentDocument;if(!t||!t.body||!t.head||n)return;let i=t.createElement("style");i.textContent=nn,t.head.appendChild(i),(n=(0,o.createRoot)(t.body)).render((0,r.jsx)(nt,{onOpenChange:t=>{a=t,no(e,t)}}))};e.contentDocument?.readyState==="complete"?l():e.addEventListener("load",l);let s=window.matchMedia(nl),c=()=>{a&&no(e,!0)};return s.addEventListener("change",c),()=>{s.removeEventListener("change",c),e.removeEventListener("load",l),n?.unmount(),e.remove()}},[t]),null}function nc(){return false}function np(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function nu(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function nh(e){(0,l.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!t.current){let n=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!("u">typeof window)||null===t.route)return null;window.si||(window.si=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];window.siq=window.siq||[],window.siq.push(t)});let{beforeSend:r,src:i,dataset:a}=function(e,t){var n,r;let i=e;if(t)try{i={...null==(n=JSON.parse(t))?void 0:n.speedInsights,...e}}catch{}let a={sdkn:"@vercel/speed-insights"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.0"};return i.sampleRate&&(a.sampleRate=i.sampleRate.toString()),i.route&&(a.route=i.route),nc()&&!1===i.debug&&(a.debug="false"),i.dsn&&(a.dsn=i.dsn),i.endpoint?a.endpoint=nu(i.endpoint):i.basePath&&(a.endpoint=nu(`${i.basePath}/speed-insights/vitals`)),{src:(r=i).scriptSrc?nu(r.scriptSrc):nc()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":r.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":r.basePath?nu(`${r.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:i.beforeSend,dataset:a}}(t,n);if(document.head.querySelector(`script[src*="${i}"]`))return null;r&&(null==(e=window.si)||e.call(window,"beforeSend",r));let l=document.createElement("script");for(let[e,t]of(l.src=i,l.defer=!0,Object.entries(a)))l.dataset[e]=t;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:e=>{l.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==tG.default&&void 0!==tG.default.env)return tG.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==tG.default&&void 0!==tG.default.env)return tG.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());n&&(t.current=n.setRoute)}},[e]),(0,l.useEffect)(()=>{t.current&&e.route&&t.current(e.route)},[e.route]),null}function nd(e){let t=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,n=(0,a.usePathname)();if(!e)return null;let r=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!r)return n;let i=n;try{let e=Object.entries(r);for(let[t,n]of e)if(!Array.isArray(n)){let e=np(n);e.test(i)&&(i=i.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=np(n.join("/"));e.test(i)&&(i=i.replace(e,`/[...${t}]`))}return i}catch{return n}})();return l.default.createElement(nh,{route:t,...e,framework:"next",basePath:function(){if(void 0!==tG.default&&void 0!==tG.default.env)return tG.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
301(),configString:function(){if(void 0!==tG.default&&void 0!==tG.default.env)return'{"analytics":{"scriptSrc":"bfc24294c4d2e727/script.js","viewEndpoint":"bfc24294c4d2e727/view","eventEndpoint":"bfc24294c4d2e727/event","sessionEndpoint":"bfc24294c4d2e727/session"},"speedInsights":{"scriptSrc":"e8eca195b1c31c4b/script.js","endpoint":"e8eca195b1c31c4b/vitals"}}'}()})}function nf(e){return l.default.createElement(l.Suspense,{fallback:null},l.default.createElement(nd,{...e}))}e.i(633999);var ng=e.i(179830);e.i(406399);var nm=e.i(226658),nx=e.i(853026);e.i(164485);var nb=e.i(253745),nk=e.i(705396);function ny(){let e=(0,a.usePathname)(),{appData:t,isAuthenticated:n}=(0,ng.useAppContext)(),r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(n!==nb.AUTH_STATUS.UNKNOWN&&r.current!==e){if(n===nb.AUTH_STATUS.NOT_LOGGED)(0,nk.pushPageView)({});else{if(!t?.isLoaded)return;(0,nk.pushPageView)({},t.customer)}r.current=e}},[e,n,t]),null}e.s(["Providers",0,function(e){let{children:t}=e,n=(0,nx.useGTM)();return(0,r.jsxs)(ng.AppProvider,{children:[nm.InsiderScript,t,n,(0,r.jsx)(ny,{}),(0,r.jsx)(ns,{}),(0,r.jsx)(nf,{sampleRate:.1})]})}],227088)}]); 302 303//# debugId=065109b7-7f21-fc68-98a3-50bdbedb4a80
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.