var i, d;
function h() {
  if (d) return i;
  d = 1, i = function(r, e, a) {
    var c = document.head || document.getElementsByTagName("head")[0], n = document.createElement("script");
    typeof e == "function" && (a = e, e = {}), e = e || {}, a = a || function() {
    }, n.type = e.type || "text/javascript", n.charset = e.charset || "utf8", n.async = "async" in e ? !!e.async : !0, n.src = r, e.attrs && u(n, e.attrs), e.text && (n.text = "" + e.text);
    var f = "onload" in n ? o : l;
    f(n, a), n.onload || o(n, a), c.appendChild(n);
  };
  function u(t, r) {
    for (var e in r)
      t.setAttribute(e, r[e]);
  }
  function o(t, r) {
    t.onload = function() {
      this.onerror = this.onload = null, r(null, t);
    }, t.onerror = function() {
      this.onerror = this.onload = null, r(new Error("Failed to load " + this.src), t);
    };
  }
  function l(t, r) {
    t.onreadystatechange = function() {
      this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, r(null, t));
    };
  }
  return i;
}
export {
  h as __require
};
//# sourceMappingURL=index.js.map
