!function(){function e(e){const t=e.getAttribute("tip"),o=e.getAttribute("tippos")||"top",l=e.getAttribute("tipbg")||"#333",r=e.getAttribute("tipcolor")||"#fff",s=e.hasAttribute("closable"),n=e.getAttribute("tipmw")||"300px",i=e.getAttribute("tipmh")||"200px";if(e._tooltip)return;const a=document.createElement("div");a.style.position="fixed",a.style.backgroundColor=l,a.style.color=r,a.style.padding="8px",a.style.borderRadius="4px",a.style.boxShadow="0 2px 5px rgba(0,0,0,0.2)",a.style.zIndex="2147483647",a.style.display="none",a.style.maxWidth=n,a.style.maxHeight=i,a.style.overflowX="hidden",a.style.overflowY="auto",a.style.pointerEvents="auto",a.style.fontSize="12px",a.className="remex-tooltip";const p=a.attachShadow({mode:"open"})
;p.innerHTML="";const c=document.createElement("div");if(t.startsWith("#")){const e=document.querySelector(t);e&&(c.innerHTML=e.innerHTML)}else c.innerHTML=function(e){const t=(e,t)=>{const o=new RegExp(`(^[\\s]*[${"ul"===t?"-*+":"\\d+"}].+?$)+`,"gm");return e.replace(o,(e=>{const o=e.split("\n").map((e=>{let o=e.trim();return o="ul"===t?o.replace(/^[-*+]\s+/,""):o.replace(/^\d+\.\s+/,""),`
${o}`
})).join("");return"ul"===t?``:`${o}
`}))};let o=e;o=(e=>{const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,(e=>t[e]))})(o),o=o.replace(/^###\s+([^\s]{0,}[^ \n]+?)(?:\s{2,}|\n|$)/gm,((e,t,o,l)=>{const r=`${t}
`,s=l.slice(o+e.length).split("\n")[0].trim();return r+(s?`\n${s}`:"")}));for(let e=6;e>=1;e--){const t=new RegExp(`^#{${e}}\\s+(.*)$`,"gm");o=o.replace(t,`$1`)}return o=o.replace(/\*\*(.*?)\*\*/g,"$1"),o=o.replace(/__(.*?)__/g,"$1"),o=o.replace(/\*(.*?)\*/g,"$1"),o=o.replace(/_(.*?)_/g,"$1"),o=t(o,"ul"),o=t(o,"ol"),o=o.replace(/```(.*?)```/gs,"$1
"),o=o.replace(/\n{2,}/g,""),o=o.replace(/#/g,""),o=`
${o}
`,o=o.replace(/\s*<\/p>/g,""),o=o.replace(/<\/p>\s*
/g,"
"),o=o.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'$1'),
o=o.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'
'),o=o.replace(/^> (.*$)/gim,"
$1
"),o=o.replace(/`([^`]+)`/g,"$1
"),o=o.replace(/\s\s+/g,"
"),o=o.replace(/ /g," "),o.trim()}(t);if(p.appendChild(c),s){const e=document.createElement("button");e.innerText="X",e.style.position="absolute",e.style.top="0",e.style.right="0",e.style.background="none",e.style.border="none",e.style.color=r,e.style.cursor="pointer",e.style.pointerEvents="auto",e.onclick=()=>{a.style.display="none"},p.appendChild(e)}const d=document.createElement("div");let y;function u(e){clearTimeout(y),function(e){const t=e.clientX,r=e.clientY,s=window.innerWidth,n=window.innerHeight;let i,p;switch(o){case"top":i=r-a.offsetHeight-10,p=t-a.offsetWidth/2,d.style.top="100%",d.style.left="50%",d.style.borderTopColor=l,d.style.transform="translateX(-50%)";break;case"bottom":i=r+10,p=t-a.offsetWidth/2,d.style.top="-12px",d.style.left="50%",d.style.borderBottomColor=l,
d.style.transform="translateX(-50%)";break;case"left":i=r-a.offsetHeight/2,p=t-a.offsetWidth-10,d.style.top="50%",d.style.left="100%",d.style.borderLeftColor=l,d.style.transform="translateY(-50%)";break;case"right":i=r-a.offsetHeight/2,p=t+10,d.style.top="50%",d.style.left="-12px",d.style.borderRightColor=l,d.style.transform="translateY(-50%)";break;case"top-left":i=r-a.offsetHeight-10,p=t,d.style.top="100%",d.style.left="10px",d.style.borderTopColor=l;break;case"top-right":i=r-a.offsetHeight-10,p=t-a.offsetWidth,d.style.top="100%",d.style.right="10px",d.style.borderTopColor=l;break;case"bottom-left":i=r+10,p=t,d.style.top="-12px",d.style.left="10px",d.style.borderBottomColor=l;break;case"bottom-right":i=r+10,p=t-a.offsetWidth,d.style.top="-12px",d.style.right="10px",d.style.borderBottomColor=l}p<0&&(p=0),p+a.offsetWidth>s&&(p=s-a.offsetWidth),i<0&&(i=0),i+a.offsetHeight>n&&(i=n-a.offsetHeight),a.style.top=`${i}px`,a.style.left=`${p}px`}(e),a.style.display="block"}function f(){
y=setTimeout((()=>{a.style.display="none"}),200)}d.style.position="absolute",d.style.width="0",d.style.height="0",d.style.borderStyle="solid",d.style.borderWidth="6px",d.style.borderColor="transparent",p.appendChild(d),document.body.appendChild(a),e._tooltip=a,e.addEventListener("mousemove",u),e.addEventListener("touchstart",(e=>{const t=e.touches[0];u({clientX:t.clientX,clientY:t.clientY})})),e.addEventListener("mouseleave",f),e.addEventListener("touchend",f),a.addEventListener("mouseenter",(function(){clearTimeout(y)})),a.addEventListener("mouseleave",f),window.addEventListener("scroll",(()=>{"block"===a.style.display&&(a.style.display="none")}))}function t(e){e._tooltip&&(document.body.removeChild(e._tooltip),delete e._tooltip)}document.createElement("div").attachShadow&&(new MutationObserver((o=>{for(const l of o)if("childList"===l.type&&l.addedNodes.forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("tip")&&e(t),
t.nodeType===Node.ELEMENT_NODE&&t.querySelectorAll("[tip]").forEach(e)})),"attributes"===l.type&&"tip"===l.attributeName){const o=l.target;o.getAttribute("tip")?e(o):t(o)}})).observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tip"]}),document.querySelectorAll("[tip]").forEach(e))}();