text: /*
  
  Tooltipper v1.4
  Simple tooltips on hover. Compatible with modern browsers only (ES6+).
  
  https://github.com/awj5/tooltipper
  
  By Adam Johnson
  MIT License 2020
  
  Usage:
  
  let ttipr = new Tooltipper(bgColor, txtColor, bdrRadius);
  ttipr.init(); // Initialize all elements with 'data-tooltipper' attribute
  
  ttipr.add(elem); // Add element after initialize
  
  */
  "use strict";class Tooltipper{constructor(t="#FFF",o="#000",i="0px"){this.bgColor=t,this.txtColor=o,this.bdrRadius=i,this.tooltip=document.createElement("div")}init(){this.tooltip.style.position="fixed",this.tooltip.style.zIndex=999,this.tooltip.style.display="none",this.tooltip.style.margin="8px",this.tooltip.style.padding="4px",this.tooltip.style.paddingLeft="6px",this.tooltip.style.paddingRight="6px",this.tooltip.style.fontSize="12px",this.tooltip.style.fontFamily="sans-serif",this.tooltip.style.backgroundColor=this.bgColor,this.tooltip.style.color=this.txtColor,this.tooltip.style.borderRadius=this.bdrRadius,document.querySelector("body").after(this.tooltip),window.addEventListener("touchstart",()=>{this.touch=!0}),window.addEventListener("mousemove",t=>{const o=window.innerWidth;t.pageX>o/2?(this.tooltip.style.left="auto",this.tooltip.style.right=o-t.pageX+"px",this.tooltip.style.boxShadow="-1px 1px 3px rgba(0, 0, 0, 0.25)"):(this.tooltip.style.right="auto",this.tooltip.style.left=t.pageX+"px",this.tooltip.style.boxShadow="1px 1px 3px rgba(0, 0, 0, 0.25)"),this.tooltip.style.top=t.pageY-window.pageYOffset+"px"});const t=document.querySelectorAll("[data-tooltipper]");for(let o=0;o<t.length;o++)this.add(t[o])}add(t){t.addEventListener("mouseover",()=>{this.touch||(this.tooltip.textContent=t.getAttribute("data-tooltipper"),this.tooltip.style.display="inline")}),t.addEventListener("mouseout",()=>{this.tooltip.style.display="none"})}}