text: const dogeClassPrefix = "xdgbtn",
      withPrefix = e => `${dogeClassPrefix}-${e}`,
      CLASSNAMES = [
          "opened",
          "currency",
          "symbol",
          "donate",
          "theme-corpo",
          "theme-doge"
      ].reduce((e, t) => (e[t] = withPrefix(t), e), {}),
      template = e => `<section><div class="${
          CLASSNAMES.symbol
      }"><span></span></div><div><span class="${
          CLASSNAMES.currency
      }">Dogecoin</span></div></section><div><span></span><span>${e}</span></div>`;
  function getBalance(e, t) {
      const s = new XMLHttpRequest;
      s.open("GET", "https://dogechain.info/chain/Dogecoin/q/addressbalance/" + e, !0),
      s.send(),
      s.onreadystatechange = function () {
          4 == s.readyState && 200 == s.status && t(s.responseText)
      }
  }
  const onClick = ({currentTarget: e}) => {
      e.classList.contains(CLASSNAMES.opened) ? e.classList.remove(CLASSNAMES.opened) : ("clipboard" in navigator && navigator.clipboard.writeText(e.dataset.xdgbtnAddress), e.classList.add(CLASSNAMES.opened))
  };
  (() => {
      const e = [].slice.call(document.querySelectorAll("[data-xdgbtn-address]"));
      e.forEach(function (t) {
          t.innerHTML = template(t.dataset.xdgbtnAddress),
          t.addEventListener("click", onClick),
          [... t.classList].some(e => [
              CLASSNAMES["theme-doge"], CLASSNAMES["theme-corpo"]
          ].includes(e)) || t.classList.add(CLASSNAMES["theme-corpo"]),
          t.classList.contains(CLASSNAMES.donate) && getBalance(t.dataset.xdgbtnAddress, function (e) {
              t.querySelector("." + CLASSNAMES.symbol).dataset.balance = Math.round(e).toFixed(2)
          })
      })
  })();
  