steem-auth-vue-temp
Version:
A Vue 3 authentication component for Steem blockchain and Echelon sidechain
1,030 lines • 175 kB
JavaScript
import { reactive as We, readonly as Xe, provide as Ze, inject as Qe, defineComponent as je, ref as ce, onMounted as et, openBlock as G, createElementBlock as X, createElementVNode as M, normalizeClass as Se, toDisplayString as fe, unref as _e, renderSlot as $e, withModifiers as Ee, createCommentVNode as le, withDirectives as ge, vModelText as Oe, vModelCheckbox as Me, createTextVNode as Ne, watch as Ve, Fragment as xe, renderList as Te, vModelRadio as De, createBlock as Je, vModelDynamic as tt } from "vue";
import * as nt from "dsteem";
import { PrivateKey as qe } from "dsteem";
var Ye = { exports: {} };
(function(W, Z) {
(function(f, y) {
W.exports = y();
})(window, function() {
return function(f) {
var y = {};
function e(r) {
if (y[r])
return y[r].exports;
var o = y[r] = { i: r, l: !1, exports: {} };
return f[r].call(o.exports, o, o.exports, e), o.l = !0, o.exports;
}
return e.m = f, e.c = y, e.d = function(r, o, u) {
e.o(r, o) || Object.defineProperty(r, o, { enumerable: !0, get: u });
}, e.r = function(r) {
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(r, "__esModule", { value: !0 });
}, e.t = function(r, o) {
if (1 & o && (r = e(r)), 8 & o || 4 & o && typeof r == "object" && r && r.__esModule)
return r;
var u = /* @__PURE__ */ Object.create(null);
if (e.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: r }), 2 & o && typeof r != "string")
for (var c in r)
e.d(u, c, (function(a) {
return r[a];
}).bind(null, c));
return u;
}, e.n = function(r) {
var o = r && r.__esModule ? function() {
return r.default;
} : function() {
return r;
};
return e.d(o, "a", o), o;
}, e.o = function(r, o) {
return Object.prototype.hasOwnProperty.call(r, o);
}, e.p = "", e(e.s = 52);
}([function(f, y) {
var e = f.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
typeof __g == "number" && (__g = e);
}, function(f, y) {
var e = f.exports = { version: "2.6.5" };
typeof __e == "number" && (__e = e);
}, function(f, y, e) {
var r = e(24)("wks"), o = e(16), u = e(0).Symbol, c = typeof u == "function";
(f.exports = function(a) {
return r[a] || (r[a] = c && u[a] || (c ? u : o)("Symbol." + a));
}).store = r;
}, function(f, y, e) {
var r = e(4), o = e(36), u = e(27), c = Object.defineProperty;
y.f = e(5) ? Object.defineProperty : function(a, d, i) {
if (r(a), d = u(d, !0), r(i), o)
try {
return c(a, d, i);
} catch {
}
if ("get" in i || "set" in i)
throw TypeError("Accessors not supported!");
return "value" in i && (a[d] = i.value), a;
};
}, function(f, y, e) {
var r = e(9);
f.exports = function(o) {
if (!r(o))
throw TypeError(o + " is not an object!");
return o;
};
}, function(f, y, e) {
f.exports = !e(13)(function() {
return Object.defineProperty({}, "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(f, y) {
var e = {}.hasOwnProperty;
f.exports = function(r, o) {
return e.call(r, o);
};
}, function(f, y, e) {
var r = e(0), o = e(1), u = e(17), c = e(8), a = e(6), d = function(i, w, v) {
var p, S, U, j = i & d.F, I = i & d.G, A = i & d.S, k = i & d.P, g = i & d.B, h = i & d.W, T = I ? o : o[w] || (o[w] = {}), l = T.prototype, P = I ? r : A ? r[w] : (r[w] || {}).prototype;
for (p in I && (v = w), v)
(S = !j && P && P[p] !== void 0) && a(T, p) || (U = S ? P[p] : v[p], T[p] = I && typeof P[p] != "function" ? v[p] : g && S ? u(U, r) : h && P[p] == U ? function(L) {
var R = function(q, m, O) {
if (this instanceof L) {
switch (arguments.length) {
case 0:
return new L();
case 1:
return new L(q);
case 2:
return new L(q, m);
}
return new L(q, m, O);
}
return L.apply(this, arguments);
};
return R.prototype = L.prototype, R;
}(U) : k && typeof U == "function" ? u(Function.call, U) : U, k && ((T.virtual || (T.virtual = {}))[p] = U, i & d.R && l && !l[p] && c(l, p, U)));
};
d.F = 1, d.G = 2, d.S = 4, d.P = 8, d.B = 16, d.W = 32, d.U = 64, d.R = 128, f.exports = d;
}, function(f, y, e) {
var r = e(3), o = e(19);
f.exports = e(5) ? function(u, c, a) {
return r.f(u, c, o(1, a));
} : function(u, c, a) {
return u[c] = a, u;
};
}, function(f, y) {
f.exports = function(e) {
return typeof e == "object" ? e !== null : typeof e == "function";
};
}, function(f, y, e) {
var r = e(56), o = e(21);
f.exports = function(u) {
return r(o(u));
};
}, function(f, y) {
var e = {}.toString;
f.exports = function(r) {
return e.call(r).slice(8, -1);
};
}, function(f, y) {
f.exports = !0;
}, function(f, y) {
f.exports = function(e) {
try {
return !!e();
} catch {
return !0;
}
};
}, function(f, y) {
f.exports = {};
}, function(f, y, e) {
var r = e(34), o = e(25);
f.exports = Object.keys || function(u) {
return r(u, o);
};
}, function(f, y) {
var e = 0, r = Math.random();
f.exports = function(o) {
return "Symbol(".concat(o === void 0 ? "" : o, ")_", (++e + r).toString(36));
};
}, function(f, y, e) {
var r = e(18);
f.exports = function(o, u, c) {
if (r(o), u === void 0)
return o;
switch (c) {
case 1:
return function(a) {
return o.call(u, a);
};
case 2:
return function(a, d) {
return o.call(u, a, d);
};
case 3:
return function(a, d, i) {
return o.call(u, a, d, i);
};
}
return function() {
return o.apply(u, arguments);
};
};
}, function(f, y) {
f.exports = function(e) {
if (typeof e != "function")
throw TypeError(e + " is not a function!");
return e;
};
}, function(f, y) {
f.exports = function(e, r) {
return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: r };
};
}, function(f, y, e) {
var r = e(3).f, o = e(6), u = e(2)("toStringTag");
f.exports = function(c, a, d) {
c && !o(c = d ? c : c.prototype, u) && r(c, u, { configurable: !0, value: a });
};
}, function(f, y) {
f.exports = function(e) {
if (e == null)
throw TypeError("Can't call method on " + e);
return e;
};
}, function(f, y) {
var e = Math.ceil, r = Math.floor;
f.exports = function(o) {
return isNaN(o = +o) ? 0 : (o > 0 ? r : e)(o);
};
}, function(f, y, e) {
var r = e(24)("keys"), o = e(16);
f.exports = function(u) {
return r[u] || (r[u] = o(u));
};
}, function(f, y, e) {
var r = e(1), o = e(0), u = o["__core-js_shared__"] || (o["__core-js_shared__"] = {});
(f.exports = function(c, a) {
return u[c] || (u[c] = a !== void 0 ? a : {});
})("versions", []).push({ version: r.version, mode: e(12) ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" });
}, function(f, y) {
f.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
}, function(f, y, e) {
var r = e(9), o = e(0).document, u = r(o) && r(o.createElement);
f.exports = function(c) {
return u ? o.createElement(c) : {};
};
}, function(f, y, e) {
var r = e(9);
f.exports = function(o, u) {
if (!r(o))
return o;
var c, a;
if (u && typeof (c = o.toString) == "function" && !r(a = c.call(o)) || typeof (c = o.valueOf) == "function" && !r(a = c.call(o)) || !u && typeof (c = o.toString) == "function" && !r(a = c.call(o)))
return a;
throw TypeError("Can't convert object to primitive value");
};
}, function(f, y, e) {
y.f = e(2);
}, function(f, y, e) {
var r = e(0), o = e(1), u = e(12), c = e(28), a = e(3).f;
f.exports = function(d) {
var i = o.Symbol || (o.Symbol = u ? {} : r.Symbol || {});
d.charAt(0) == "_" || d in i || a(i, d, { value: c.f(d) });
};
}, function(f, y) {
y.f = {}.propertyIsEnumerable;
}, function(f, y, e) {
var r = e(18);
function o(u) {
var c, a;
this.promise = new u(function(d, i) {
if (c !== void 0 || a !== void 0)
throw TypeError("Bad Promise constructor");
c = d, a = i;
}), this.resolve = r(c), this.reject = r(a);
}
f.exports.f = function(u) {
return new o(u);
};
}, function(f, y) {
var e;
e = function() {
return this;
}();
try {
e = e || new Function("return this")();
} catch {
typeof window == "object" && (e = window);
}
f.exports = e;
}, function(f, y, e) {
var r = e(21);
f.exports = function(o) {
return Object(r(o));
};
}, function(f, y, e) {
var r = e(6), o = e(10), u = e(57)(!1), c = e(23)("IE_PROTO");
f.exports = function(a, d) {
var i, w = o(a), v = 0, p = [];
for (i in w)
i != c && r(w, i) && p.push(i);
for (; d.length > v; )
r(w, i = d[v++]) && (~u(p, i) || p.push(i));
return p;
};
}, function(f, y, e) {
var r = e(22), o = Math.min;
f.exports = function(u) {
return u > 0 ? o(r(u), 9007199254740991) : 0;
};
}, function(f, y, e) {
f.exports = !e(5) && !e(13)(function() {
return Object.defineProperty(e(26)("div"), "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(f, y, e) {
var r = e(63)(!0);
e(38)(String, "String", function(o) {
this._t = String(o), this._i = 0;
}, function() {
var o, u = this._t, c = this._i;
return c >= u.length ? { value: void 0, done: !0 } : (o = r(u, c), this._i += o.length, { value: o, done: !1 });
});
}, function(f, y, e) {
var r = e(12), o = e(7), u = e(39), c = e(8), a = e(14), d = e(64), i = e(20), w = e(66), v = e(2)("iterator"), p = !([].keys && "next" in [].keys()), S = function() {
return this;
};
f.exports = function(U, j, I, A, k, g, h) {
d(I, j, A);
var T, l, P, L = function(V) {
if (!p && V in O)
return O[V];
switch (V) {
case "keys":
case "values":
return function() {
return new I(this, V);
};
}
return function() {
return new I(this, V);
};
}, R = j + " Iterator", q = k == "values", m = !1, O = U.prototype, N = O[v] || O["@@iterator"] || k && O[k], z = N || L(k), K = k ? q ? L("entries") : z : void 0, C = j == "Array" && O.entries || N;
if (C && (P = w(C.call(new U()))) !== Object.prototype && P.next && (i(P, R, !0), r || typeof P[v] == "function" || c(P, v, S)), q && N && N.name !== "values" && (m = !0, z = function() {
return N.call(this);
}), r && !h || !p && !m && O[v] || c(O, v, z), a[j] = z, a[R] = S, k)
if (T = { values: q ? z : L("values"), keys: g ? z : L("keys"), entries: K }, h)
for (l in T)
l in O || u(O, l, T[l]);
else
o(o.P + o.F * (p || m), j, T);
return T;
};
}, function(f, y, e) {
f.exports = e(8);
}, function(f, y, e) {
var r = e(4), o = e(65), u = e(25), c = e(23)("IE_PROTO"), a = function() {
}, d = function() {
var i, w = e(26)("iframe"), v = u.length;
for (w.style.display = "none", e(41).appendChild(w), w.src = "javascript:", (i = w.contentWindow.document).open(), i.write("<script>document.F=Object<\/script>"), i.close(), d = i.F; v--; )
delete d.prototype[u[v]];
return d();
};
f.exports = Object.create || function(i, w) {
var v;
return i !== null ? (a.prototype = r(i), v = new a(), a.prototype = null, v[c] = i) : v = d(), w === void 0 ? v : o(v, w);
};
}, function(f, y, e) {
var r = e(0).document;
f.exports = r && r.documentElement;
}, function(f, y, e) {
e(67);
for (var r = e(0), o = e(8), u = e(14), c = e(2)("toStringTag"), a = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","), d = 0; d < a.length; d++) {
var i = a[d], w = r[i], v = w && w.prototype;
v && !v[c] && o(v, c, i), u[i] = u.Array;
}
}, function(f, y) {
y.f = Object.getOwnPropertySymbols;
}, function(f, y, e) {
var r = e(34), o = e(25).concat("length", "prototype");
y.f = Object.getOwnPropertyNames || function(u) {
return r(u, o);
};
}, function(f, y) {
}, function(f, y, e) {
var r = e(11), o = e(2)("toStringTag"), u = r(function() {
return arguments;
}()) == "Arguments";
f.exports = function(c) {
var a, d, i;
return c === void 0 ? "Undefined" : c === null ? "Null" : typeof (d = function(w, v) {
try {
return w[v];
} catch {
}
}(a = Object(c), o)) == "string" ? d : u ? r(a) : (i = r(a)) == "Object" && typeof a.callee == "function" ? "Arguments" : i;
};
}, function(f, y, e) {
var r = e(4), o = e(18), u = e(2)("species");
f.exports = function(c, a) {
var d, i = r(c).constructor;
return i === void 0 || (d = r(i)[u]) == null ? a : o(d);
};
}, function(f, y, e) {
var r, o, u, c = e(17), a = e(88), d = e(41), i = e(26), w = e(0), v = w.process, p = w.setImmediate, S = w.clearImmediate, U = w.MessageChannel, j = w.Dispatch, I = 0, A = {}, k = function() {
var h = +this;
if (A.hasOwnProperty(h)) {
var T = A[h];
delete A[h], T();
}
}, g = function(h) {
k.call(h.data);
};
p && S || (p = function(h) {
for (var T = [], l = 1; arguments.length > l; )
T.push(arguments[l++]);
return A[++I] = function() {
a(typeof h == "function" ? h : Function(h), T);
}, r(I), I;
}, S = function(h) {
delete A[h];
}, e(11)(v) == "process" ? r = function(h) {
v.nextTick(c(k, h, 1));
} : j && j.now ? r = function(h) {
j.now(c(k, h, 1));
} : U ? (u = (o = new U()).port2, o.port1.onmessage = g, r = c(u.postMessage, u, 1)) : w.addEventListener && typeof postMessage == "function" && !w.importScripts ? (r = function(h) {
w.postMessage(h + "", "*");
}, w.addEventListener("message", g, !1)) : r = "onreadystatechange" in i("script") ? function(h) {
d.appendChild(i("script")).onreadystatechange = function() {
d.removeChild(this), k.call(h);
};
} : function(h) {
setTimeout(c(k, h, 1), 0);
}), f.exports = { set: p, clear: S };
}, function(f, y) {
f.exports = function(e) {
try {
return { e: !1, v: e() };
} catch (r) {
return { e: !0, v: r };
}
};
}, function(f, y, e) {
var r = e(4), o = e(9), u = e(31);
f.exports = function(c, a) {
if (r(c), o(a) && a.constructor === c)
return a;
var d = u.f(c);
return (0, d.resolve)(a), d.promise;
};
}, function(f, y, e) {
var r = e(109), o = e(111);
function u() {
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
}
y.parse = g, y.resolve = function(h, T) {
return g(h, !1, !0).resolve(T);
}, y.resolveObject = function(h, T) {
return h ? g(h, !1, !0).resolveObject(T) : T;
}, y.format = function(h) {
return o.isString(h) && (h = g(h)), h instanceof u ? h.format() : u.prototype.format.call(h);
}, y.Url = u;
var c = /^([a-z0-9.+-]+:)/i, a = /:[0-9]*$/, d = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, i = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", `
`, " "]), w = ["'"].concat(i), v = ["%", "/", "?", ";", "#"].concat(w), p = ["/", "?", "#"], S = /^[+a-z0-9A-Z_-]{0,63}$/, U = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, j = { javascript: !0, "javascript:": !0 }, I = { javascript: !0, "javascript:": !0 }, A = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, k = e(112);
function g(h, T, l) {
if (h && o.isObject(h) && h instanceof u)
return h;
var P = new u();
return P.parse(h, T, l), P;
}
u.prototype.parse = function(h, T, l) {
if (!o.isString(h))
throw new TypeError("Parameter 'url' must be a string, not " + typeof h);
var P = h.indexOf("?"), L = P !== -1 && P < h.indexOf("#") ? "?" : "#", R = h.split(L);
R[0] = R[0].replace(/\\/g, "/");
var q = h = R.join(L);
if (q = q.trim(), !l && h.split("#").length === 1) {
var m = d.exec(q);
if (m)
return this.path = q, this.href = q, this.pathname = m[1], m[2] ? (this.search = m[2], this.query = T ? k.parse(this.search.substr(1)) : this.search.substr(1)) : T && (this.search = "", this.query = {}), this;
}
var O = c.exec(q);
if (O) {
var N = (O = O[0]).toLowerCase();
this.protocol = N, q = q.substr(O.length);
}
if (l || O || q.match(/^\/\/[^@\/]+@[^@\/]+/)) {
var z = q.substr(0, 2) === "//";
!z || O && I[O] || (q = q.substr(2), this.slashes = !0);
}
if (!I[O] && (z || O && !A[O])) {
for (var K, C, V = -1, Y = 0; Y < p.length; Y++)
(ne = q.indexOf(p[Y])) !== -1 && (V === -1 || ne < V) && (V = ne);
for ((C = V === -1 ? q.lastIndexOf("@") : q.lastIndexOf("@", V)) !== -1 && (K = q.slice(0, C), q = q.slice(C + 1), this.auth = decodeURIComponent(K)), V = -1, Y = 0; Y < v.length; Y++) {
var ne;
(ne = q.indexOf(v[Y])) !== -1 && (V === -1 || ne < V) && (V = ne);
}
V === -1 && (V = q.length), this.host = q.slice(0, V), q = q.slice(V), this.parseHost(), this.hostname = this.hostname || "";
var oe = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
if (!oe)
for (var Q = this.hostname.split(/\./), ie = (Y = 0, Q.length); Y < ie; Y++) {
var x = Q[Y];
if (x && !x.match(S)) {
for (var D = "", F = 0, ae = x.length; F < ae; F++)
x.charCodeAt(F) > 127 ? D += "x" : D += x[F];
if (!D.match(S)) {
var se = Q.slice(0, Y), t = Q.slice(Y + 1), n = x.match(U);
n && (se.push(n[1]), t.unshift(n[2])), t.length && (q = "/" + t.join(".") + q), this.hostname = se.join(".");
break;
}
}
}
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), oe || (this.hostname = r.toASCII(this.hostname));
var s = this.port ? ":" + this.port : "", _ = this.hostname || "";
this.host = _ + s, this.href += this.host, oe && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), q[0] !== "/" && (q = "/" + q));
}
if (!j[N])
for (Y = 0, ie = w.length; Y < ie; Y++) {
var b = w[Y];
if (q.indexOf(b) !== -1) {
var E = encodeURIComponent(b);
E === b && (E = escape(b)), q = q.split(b).join(E);
}
}
var B = q.indexOf("#");
B !== -1 && (this.hash = q.substr(B), q = q.slice(0, B));
var H = q.indexOf("?");
if (H !== -1 ? (this.search = q.substr(H), this.query = q.substr(H + 1), T && (this.query = k.parse(this.query)), q = q.slice(0, H)) : T && (this.search = "", this.query = {}), q && (this.pathname = q), A[N] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
s = this.pathname || "";
var te = this.search || "";
this.path = s + te;
}
return this.href = this.format(), this;
}, u.prototype.format = function() {
var h = this.auth || "";
h && (h = (h = encodeURIComponent(h)).replace(/%3A/i, ":"), h += "@");
var T = this.protocol || "", l = this.pathname || "", P = this.hash || "", L = !1, R = "";
this.host ? L = h + this.host : this.hostname && (L = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && o.isObject(this.query) && Object.keys(this.query).length && (R = k.stringify(this.query));
var q = this.search || R && "?" + R || "";
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || A[T]) && L !== !1 ? (L = "//" + (L || ""), l && l.charAt(0) !== "/" && (l = "/" + l)) : L || (L = ""), P && P.charAt(0) !== "#" && (P = "#" + P), q && q.charAt(0) !== "?" && (q = "?" + q), T + L + (l = l.replace(/[?#]/g, function(m) {
return encodeURIComponent(m);
})) + (q = q.replace("#", "%23")) + P;
}, u.prototype.resolve = function(h) {
return this.resolveObject(g(h, !1, !0)).format();
}, u.prototype.resolveObject = function(h) {
if (o.isString(h)) {
var T = new u();
T.parse(h, !1, !0), h = T;
}
for (var l = new u(), P = Object.keys(this), L = 0; L < P.length; L++) {
var R = P[L];
l[R] = this[R];
}
if (l.hash = h.hash, h.href === "")
return l.href = l.format(), l;
if (h.slashes && !h.protocol) {
for (var q = Object.keys(h), m = 0; m < q.length; m++) {
var O = q[m];
O !== "protocol" && (l[O] = h[O]);
}
return A[l.protocol] && l.hostname && !l.pathname && (l.path = l.pathname = "/"), l.href = l.format(), l;
}
if (h.protocol && h.protocol !== l.protocol) {
if (!A[h.protocol]) {
for (var N = Object.keys(h), z = 0; z < N.length; z++) {
var K = N[z];
l[K] = h[K];
}
return l.href = l.format(), l;
}
if (l.protocol = h.protocol, h.host || I[h.protocol])
l.pathname = h.pathname;
else {
for (var C = (h.pathname || "").split("/"); C.length && !(h.host = C.shift()); )
;
h.host || (h.host = ""), h.hostname || (h.hostname = ""), C[0] !== "" && C.unshift(""), C.length < 2 && C.unshift(""), l.pathname = C.join("/");
}
if (l.search = h.search, l.query = h.query, l.host = h.host || "", l.auth = h.auth, l.hostname = h.hostname || h.host, l.port = h.port, l.pathname || l.search) {
var V = l.pathname || "", Y = l.search || "";
l.path = V + Y;
}
return l.slashes = l.slashes || h.slashes, l.href = l.format(), l;
}
var ne = l.pathname && l.pathname.charAt(0) === "/", oe = h.host || h.pathname && h.pathname.charAt(0) === "/", Q = oe || ne || l.host && h.pathname, ie = Q, x = l.pathname && l.pathname.split("/") || [], D = (C = h.pathname && h.pathname.split("/") || [], l.protocol && !A[l.protocol]);
if (D && (l.hostname = "", l.port = null, l.host && (x[0] === "" ? x[0] = l.host : x.unshift(l.host)), l.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (C[0] === "" ? C[0] = h.host : C.unshift(h.host)), h.host = null), Q = Q && (C[0] === "" || x[0] === "")), oe)
l.host = h.host || h.host === "" ? h.host : l.host, l.hostname = h.hostname || h.hostname === "" ? h.hostname : l.hostname, l.search = h.search, l.query = h.query, x = C;
else if (C.length)
x || (x = []), x.pop(), x = x.concat(C), l.search = h.search, l.query = h.query;
else if (!o.isNullOrUndefined(h.search))
return D && (l.hostname = l.host = x.shift(), (n = !!(l.host && l.host.indexOf("@") > 0) && l.host.split("@")) && (l.auth = n.shift(), l.host = l.hostname = n.shift())), l.search = h.search, l.query = h.query, o.isNull(l.pathname) && o.isNull(l.search) || (l.path = (l.pathname ? l.pathname : "") + (l.search ? l.search : "")), l.href = l.format(), l;
if (!x.length)
return l.pathname = null, l.search ? l.path = "/" + l.search : l.path = null, l.href = l.format(), l;
for (var F = x.slice(-1)[0], ae = (l.host || h.host || x.length > 1) && (F === "." || F === "..") || F === "", se = 0, t = x.length; t >= 0; t--)
(F = x[t]) === "." ? x.splice(t, 1) : F === ".." ? (x.splice(t, 1), se++) : se && (x.splice(t, 1), se--);
if (!Q && !ie)
for (; se--; se)
x.unshift("..");
!Q || x[0] === "" || x[0] && x[0].charAt(0) === "/" || x.unshift(""), ae && x.join("/").substr(-1) !== "/" && x.push("");
var n, s = x[0] === "" || x[0] && x[0].charAt(0) === "/";
return D && (l.hostname = l.host = s ? "" : x.length ? x.shift() : "", (n = !!(l.host && l.host.indexOf("@") > 0) && l.host.split("@")) && (l.auth = n.shift(), l.host = l.hostname = n.shift())), (Q = Q || l.host && x.length) && !s && x.unshift(""), x.length ? l.pathname = x.join("/") : (l.pathname = null, l.path = null), o.isNull(l.pathname) && o.isNull(l.search) || (l.path = (l.pathname ? l.pathname : "") + (l.search ? l.search : "")), l.auth = h.auth || l.auth, l.slashes = l.slashes || h.slashes, l.href = l.format(), l;
}, u.prototype.parseHost = function() {
var h = this.host, T = a.exec(h);
T && ((T = T[0]) !== ":" && (this.port = T.substr(1)), h = h.substr(0, h.length - T.length)), h && (this.hostname = h);
};
}, function(f, y, e) {
Object.defineProperty(y, "__esModule", { value: !0 });
var r = v(e(53)), o = v(e(60)), u = v(e(80)), c = v(e(96)), a = v(e(98)), d = v(e(99)), i = v(e(103)), w = e(104);
function v(k) {
return k && k.__esModule ? k : { default: k };
}
var p = "https://steemlogin.com", S = function() {
return typeof window < "u" && window;
}, U = function() {
return S() && window._steemconnect;
}, j = function() {
return S() && window.steem_keychain;
}, I = function() {
return !U() && j();
}, A = function() {
function k(g) {
(0, a.default)(this, k), this.apiURL = g.apiURL || "https://api.steemlogin.com", this.app = g.app, this.callbackURL = g.callbackURL, this.accessToken = g.accessToken, this.scope = g.scope || [], this.responseType = g.responseType;
}
return (0, d.default)(k, [{ key: "setBaseURL", value: function() {
return console.warn('The function "setBaseUrl" is deprecated, the base URL is always "https://steemconnect.com", you can only change the API URL with "setApiURL"'), this;
} }, { key: "setApiURL", value: function(g) {
return this.apiURL = g, this;
} }, { key: "setApp", value: function(g) {
return this.app = g, this;
} }, { key: "setCallbackURL", value: function(g) {
return this.callbackURL = g, this;
} }, { key: "setAccessToken", value: function(g) {
return this.accessToken = g, this;
} }, { key: "removeAccessToken", value: function() {
return delete this.accessToken, this;
} }, { key: "setScope", value: function(g) {
return this.scope = g, this;
} }, { key: "getLoginURL", value: function(g) {
var h = encodeURIComponent(this.callbackURL), T = "https://steemlogin.com/oauth2/authorize?client_id=" + this.app + "&redirect_uri=" + h;
return this.responseType === "code" && (T += "&response_type=" + this.responseType), this.scope && (T += "&scope=" + this.scope.join(",")), g && (T += "&state=" + encodeURIComponent(g)), T;
} }, { key: "login", value: function(g, h) {
if (U()) {
var T = {};
this.app && (T.app = this.app), g.authority && (T.authority = g.authority), window._steemconnect.login(T, h);
} else if (j() && g.username) {
var l = { type: "login" };
this.app && (l.app = this.app);
var P = parseInt((/* @__PURE__ */ new Date()).getTime() / 1e3, 10), L = { signed_message: l, authors: [g.username], timestamp: P };
window.steem_keychain.requestSignBuffer(g.username, (0, c.default)(L), "Posting", function(R) {
if (R.error)
return h(R.error);
L.signatures = [R.result];
var q = btoa((0, c.default)(L));
return h(null, q);
});
} else
S() && (window.location = this.getLoginURL(g.state));
} }, { key: "send", value: function(g, h, T, l) {
var P = this.apiURL + "/api/" + g, L = (0, i.default)(P, { method: h, headers: { Accept: "application/json, text/plain, */*", "Content-Type": "application/json", Authorization: this.accessToken }, body: (0, c.default)(T) }).then(function(R) {
var q = R.json();
return R.status !== 200 ? q.then(function(m) {
return u.default.reject(m);
}) : q;
}).then(function(R) {
return R.error ? u.default.reject(R) : R;
});
return l ? L.then(function(R) {
return l(null, R);
}).catch(function(R) {
return l(R, null);
}) : L;
} }, { key: "me", value: function(g) {
return this.send("me", "POST", {}, g);
} }, { key: "broadcast", value: function(g, h) {
if (U()) {
var T = (0, w.encodeOps)(g);
return window._steemconnect.sign(T, h);
}
return this.send("broadcast", "POST", { operations: g }, h);
} }, { key: "vote", value: function(g, h, T, l, P) {
if (I())
return window.steem_keychain.requestVote(g, T, h, l, function(R) {
return R.error ? P(R.error) : P(null, R);
});
var L = { voter: g, author: h, permlink: T, weight: l };
return this.broadcast([["vote", L]], P);
} }, { key: "comment", value: function(g, h, T, l, P, L, R, q) {
if (I())
return window.steem_keychain.requestPost(T, P, L, h, g, R, l, "", function(O) {
return O.error ? q(O.error) : q(null, O);
});
var m = { parent_author: g, parent_permlink: h, author: T, permlink: l, title: P, body: L, json_metadata: (0, c.default)(R) };
return this.broadcast([["comment", m]], q);
} }, { key: "deleteComment", value: function(g, h, T) {
var l = { author: g, permlink: h };
return this.broadcast([["delete_comment", l]], T);
} }, { key: "customJson", value: function(g, h, T, l, P) {
if (I())
return window.steem_keychain.requestCustomJson(h[0], T, "Posting", l, "", function(R) {
return R.error ? P(R.error) : P(null, R);
});
var L = { required_auths: g, required_posting_auths: h, id: T, json: l };
return this.broadcast([["custom_json", L]], P);
} }, { key: "reblog", value: function(g, h, T, l) {
var P = ["reblog", { account: g, author: h, permlink: T }];
return this.customJson([], [g], "follow", (0, c.default)(P), l);
} }, { key: "follow", value: function(g, h, T) {
var l = ["follow", { follower: g, following: h, what: ["blog"] }];
return this.customJson([], [g], "follow", (0, c.default)(l), T);
} }, { key: "unfollow", value: function(g, h, T) {
var l = ["follow", { follower: g, following: h, what: [] }];
return this.customJson([], [g], "follow", (0, c.default)(l), T);
} }, { key: "ignore", value: function(g, h, T) {
var l = ["follow", { follower: g, following: h, what: ["ignore"] }];
return this.customJson([], [g], "follow", (0, c.default)(l), T);
} }, { key: "claimRewardBalance", value: function(g, h, T, l, P) {
var L = { account: g, reward_steem: h, reward_sbd: T, reward_vests: l };
return this.broadcast([["claim_reward_balance", L]], P);
} }, { key: "revokeToken", value: function(g) {
var h = this;
return this.send("oauth2/token/revoke", "POST", { token: this.accessToken }, g).then(function() {
return h.removeAccessToken();
});
} }, { key: "updateUserMetadata", value: function() {
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, h = arguments[1];
return console.warn('The function "updateUserMetadata" is deprecated.'), this.send("me", "PUT", { user_metadata: g }, h);
} }]), k;
}();
y.default = { Client: A, Initialize: function(k) {
return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'), new A(k);
}, sign: function(k, g, h) {
if (console.warn('The function "sign" is deprecated.'), typeof k != "string" || (g === void 0 ? "undefined" : (0, o.default)(g)) !== "object")
return { error: "invalid_request", error_description: "Request has an invalid format" };
var T = "https://steemlogin.com/sign/" + k + "?";
return T += (0, r.default)(g).map(function(l) {
return l + "=" + encodeURIComponent(g[l]);
}).join("&"), T += h ? "&redirect_uri=" + encodeURIComponent(h) : "";
}, sendTransaction: function(k, g, h) {
var T = (0, w.encodeTx)(k, g), l = T.replace("steem://", p + "/");
return U() ? window._steemconnect.sign(T, h) : h && S() ? window.open(l, "_blank").focus() : l;
}, sendOperations: function(k, g, h) {
var T = (0, w.encodeOps)(k, g), l = T.replace("steem://", p + "/");
return U() ? window._steemconnect.sign(T, h) : h && S() ? window.open(l, "_blank").focus() : l;
}, sendOperation: function(k, g, h) {
var T = (0, w.encodeOp)(k, g), l = T.replace("steem://", p + "/");
return U() ? window._steemconnect.sign(T, h) : h && S() ? window.open(l, "_blank").focus() : l;
}, hasChromeExtension: U, hasSteemKeychain: j, useSteemKeychain: I }, f.exports = y.default;
}, function(f, y, e) {
f.exports = { default: e(54), __esModule: !0 };
}, function(f, y, e) {
e(55), f.exports = e(1).Object.keys;
}, function(f, y, e) {
var r = e(33), o = e(15);
e(59)("keys", function() {
return function(u) {
return o(r(u));
};
});
}, function(f, y, e) {
var r = e(11);
f.exports = Object("z").propertyIsEnumerable(0) ? Object : function(o) {
return r(o) == "String" ? o.split("") : Object(o);
};
}, function(f, y, e) {
var r = e(10), o = e(35), u = e(58);
f.exports = function(c) {
return function(a, d, i) {
var w, v = r(a), p = o(v.length), S = u(i, p);
if (c && d != d) {
for (; p > S; )
if ((w = v[S++]) != w)
return !0;
} else
for (; p > S; S++)
if ((c || S in v) && v[S] === d)
return c || S || 0;
return !c && -1;
};
};
}, function(f, y, e) {
var r = e(22), o = Math.max, u = Math.min;
f.exports = function(c, a) {
return (c = r(c)) < 0 ? o(c + a, 0) : u(c, a);
};
}, function(f, y, e) {
var r = e(7), o = e(1), u = e(13);
f.exports = function(c, a) {
var d = (o.Object || {})[c] || Object[c], i = {};
i[c] = a(d), r(r.S + r.F * u(function() {
d(1);
}), "Object", i);
};
}, function(f, y, e) {
y.__esModule = !0;
var r = c(e(61)), o = c(e(70)), u = typeof o.default == "function" && typeof r.default == "symbol" ? function(a) {
return typeof a;
} : function(a) {
return a && typeof o.default == "function" && a.constructor === o.default && a !== o.default.prototype ? "symbol" : typeof a;
};
function c(a) {
return a && a.__esModule ? a : { default: a };
}
y.default = typeof o.default == "function" && u(r.default) === "symbol" ? function(a) {
return a === void 0 ? "undefined" : u(a);
} : function(a) {
return a && typeof o.default == "function" && a.constructor === o.default && a !== o.default.prototype ? "symbol" : a === void 0 ? "undefined" : u(a);
};
}, function(f, y, e) {
f.exports = { default: e(62), __esModule: !0 };
}, function(f, y, e) {
e(37), e(42), f.exports = e(28).f("iterator");
}, function(f, y, e) {
var r = e(22), o = e(21);
f.exports = function(u) {
return function(c, a) {
var d, i, w = String(o(c)), v = r(a), p = w.length;
return v < 0 || v >= p ? u ? "" : void 0 : (d = w.charCodeAt(v)) < 55296 || d > 56319 || v + 1 === p || (i = w.charCodeAt(v + 1)) < 56320 || i > 57343 ? u ? w.charAt(v) : d : u ? w.slice(v, v + 2) : i - 56320 + (d - 55296 << 10) + 65536;
};
};
}, function(f, y, e) {
var r = e(40), o = e(19), u = e(20), c = {};
e(8)(c, e(2)("iterator"), function() {
return this;
}), f.exports = function(a, d, i) {
a.prototype = r(c, { next: o(1, i) }), u(a, d + " Iterator");
};
}, function(f, y, e) {
var r = e(3), o = e(4), u = e(15);
f.exports = e(5) ? Object.defineProperties : function(c, a) {
o(c);
for (var d, i = u(a), w = i.length, v = 0; w > v; )
r.f(c, d = i[v++], a[d]);
return c;
};
}, function(f, y, e) {
var r = e(6), o = e(33), u = e(23)("IE_PROTO"), c = Object.prototype;
f.exports = Object.getPrototypeOf || function(a) {
return a = o(a), r(a, u) ? a[u] : typeof a.constructor == "function" && a instanceof a.constructor ? a.constructor.prototype : a instanceof Object ? c : null;
};
}, function(f, y, e) {
var r = e(68), o = e(69), u = e(14), c = e(10);
f.exports = e(38)(Array, "Array", function(a, d) {
this._t = c(a), this._i = 0, this._k = d;
}, function() {
var a = this._t, d = this._k, i = this._i++;
return !a || i >= a.length ? (this._t = void 0, o(1)) : o(0, d == "keys" ? i : d == "values" ? a[i] : [i, a[i]]);
}, "values"), u.Arguments = u.Array, r("keys"), r("values"), r("entries");
}, function(f, y) {
f.exports = function() {
};
}, function(f, y) {
f.exports = function(e, r) {
return { value: r, done: !!e };
};
}, function(f, y, e) {
f.exports = { default: e(71), __esModule: !0 };
}, function(f, y, e) {
e(72), e(45), e(78), e(79), f.exports = e(1).Symbol;
}, function(f, y, e) {
var r = e(0), o = e(6), u = e(5), c = e(7), a = e(39), d = e(73).KEY, i = e(13), w = e(24), v = e(20), p = e(16), S = e(2), U = e(28), j = e(29), I = e(74), A = e(75), k = e(4), g = e(9), h = e(10), T = e(27), l = e(19), P = e(40), L = e(76), R = e(77), q = e(3), m = e(15), O = R.f, N = q.f, z = L.f, K = r.Symbol, C = r.JSON, V = C && C.stringify, Y = S("_hidden"), ne = S("toPrimitive"), oe = {}.propertyIsEnumerable, Q = w("symbol-registry"), ie = w("symbols"), x = w("op-symbols"), D = Object.prototype, F = typeof K == "function", ae = r.QObject, se = !ae || !ae.prototype || !ae.prototype.findChild, t = u && i(function() {
return P(N({}, "a", { get: function() {
return N(this, "a", { value: 7 }).a;
} })).a != 7;
}) ? function($, J, re) {
var he = O(D, J);
he && delete D[J], N($, J, re), he && $ !== D && N(D, J, he);
} : N, n = function($) {
var J = ie[$] = P(K.prototype);
return J._k = $, J;
}, s = F && typeof K.iterator == "symbol" ? function($) {
return typeof $ == "symbol";
} : function($) {
return $ instanceof K;
}, _ = function($, J, re) {
return $ === D && _(x, J, re), k($), J = T(J, !0), k(re), o(ie, J) ? (re.enumerable ? (o($, Y) && $[Y][J] && ($[Y][J] = !1), re = P(re, { enumerable: l(0, !1) })) : (o($, Y) || N($, Y, l(1, {})), $[Y][J] = !0), t($, J, re)) : N($, J, re);
}, b = function($, J) {
k($);
for (var re, he = I(J = h(J)), ye = 0, we = he.length; we > ye; )
_($, re = he[ye++], J[re]);
return $;
}, E = function($) {
var J = oe.call(this, $ = T($, !0));
return !(this === D && o(ie, $) && !o(x, $)) && (!(J || !o(this, $) || !o(ie, $) || o(this, Y) && this[Y][$]) || J);
}, B = function($, J) {
if ($ = h($), J = T(J, !0), $ !== D || !o(ie, J) || o(x, J)) {
var re = O($, J);
return !re || !o(ie, J) || o($, Y) && $[Y][J] || (re.enumerable = !0), re;
}
}, H = function($) {
for (var J, re = z(h($)), he = [], ye = 0; re.length > ye; )
o(ie, J = re[ye++]) || J == Y || J == d || he.push(J);
return he;
}, te = function($) {
for (var J, re = $ === D, he = z(re ? x : h($)), ye = [], we = 0; he.length > we; )
!o(ie, J = he[we++]) || re && !o(D, J) || ye.push(ie[J]);
return ye;
};
F || (a((K = function() {
if (this instanceof K)
throw TypeError("Symbol is not a constructor!");
var $ = p(arguments.length > 0 ? arguments[0] : void 0), J = function(re) {
this === D && J.call(x, re), o(this, Y) && o(this[Y], $) && (this[Y][$] = !1), t(this, $, l(1, re));
};
return u && se && t(D, $, { configurable: !0, set: J }), n($);
}).prototype, "toString", function() {
return this._k;
}), R.f = B, q.f = _, e(44).f = L.f = H, e(30).f = E, e(43).f = te, u && !e(12) && a(D, "propertyIsEnumerable", E, !0), U.f = function($) {
return n(S($));
}), c(c.G + c.W + c.F * !F, { Symbol: K });
for (var ue = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), ee = 0; ue.length > ee; )
S(ue[ee++]);
for (var ve = m(S.store), de = 0; ve.length > de; )
j(ve[de++]);
c(c.S + c.F * !F, "Symbol", { for: function($) {
return o(Q, $ += "") ? Q[$] : Q[$] = K($);
}, keyFor: function($) {
if (!s($))
throw TypeError($ + " is not a symbol!");
for (var J in Q)
if (Q[J] === $)
return J;
}, useSetter: function() {
se = !0;
}, useSimple: function() {
se = !1;
} }), c(c.S + c.F * !F, "Object", { create: function($, J) {
return J === void 0 ? P($) : b(P($), J);
}, defineProperty: _, defineProperties: b, getOwnPropertyDescriptor: B, getOwnPropertyNames: H, getOwnPropertySymbols: te }), C && c(c.S + c.F * (!F || i(function() {
var $ = K();
return V([$]) != "[null]" || V({ a: $ }) != "{}" || V(Object($)) != "{}";
})), "JSON", { stringify: function($) {
for (var J, re, he = [$], ye = 1; arguments.length > ye; )
he.push(arguments[ye++]);
if (re = J = he[1], (g(J) || $ !== void 0) && !s($))
return A(J) || (J = function(we, ke) {
if (typeof re == "function" && (ke = re.call(this, we, ke)), !s(ke))
return ke;
}), he[1] = J, V.apply(C, he);
} }), K.prototype[ne] || e(8)(K.prototype, ne, K.prototype.valueOf), v(K, "Symbol"), v(Math, "Math", !0), v(r.JSON, "JSON", !0);
}, function(f, y, e) {
var r = e(16)("meta"), o = e(9), u = e(6), c = e(3).f, a = 0, d = Object.isExtensible || function() {
return !0;
}, i = !e(13)(function() {
return d(Object.preventExtensions({}));
}), w = function(p) {
c(p, r, { value: { i: "O" + ++a, w: {} } });
}, v = f.exports = { KEY: r, NEED: !1, fastKey: function(p, S) {
if (!o(p))
return typeof p == "symbol" ? p : (typeof p == "string" ? "S" : "P") + p;
if (!u(p, r)) {
if (!d(p))
return "F";
if (!S)
return "E";
w(p);
}
return p[r].i;
}, getWeak: function(p, S) {
if (!u(p, r)) {
if (!d(p))
return !0;
if (!S)
return !1;
w(p);
}
return p[r].w;
}, onFreeze: function(p) {
return i && v.NEED && d(p) && !u(p, r) && w(p), p;
} };
}, function(f, y, e) {
var r = e(15), o = e(43), u = e(30);
f.exports = function(c) {
var a = r(c), d = o.f;
if (d)
for (var i, w = d(c), v = u.f, p = 0; w.length > p; )
v.call(c, i = w[p++]) && a.push(i);
return a;
};
}, function(f, y, e) {
var r = e(11);
f.exports = Array.isArray || function(o) {
return r(o) == "Array";
};
}, function(f, y, e) {
var r = e(10), o = e(44).f, u = {}.toString, c = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
f.exports.f = function(a) {
return c && u.call(a) == "[object Window]" ? function(d) {
try {
return o(d);
} catch {
return c.slice();
}
}(a) : o(r(a));
};
}, function(f, y, e) {
var r = e(30), o = e(19), u = e(10), c = e(27), a = e(6), d = e(36), i = Object.getOwnPropertyDescriptor;
y.f = e(5) ? i : function(w, v) {
if (w = u(w), v = c(v, !0), d)
try {
return i(w, v);
} catch {
}
if (a(w, v))
return o(!r.f.call(w, v), w[v]);
};
}, function(f, y, e) {
e(29)("asyncIterator");
}, function(f, y, e) {
e(29)("observable");
}, function(f, y, e) {
f.exports = { default: e(81), __esModule: !0 };
}, function(f, y, e) {
e(45), e(37), e(42), e(82), e(94), e(95), f.exports = e(1).Promise;
}, function(f, y, e) {
var r, o, u, c, a = e(12), d = e(0), i = e(17), w = e(46), v = e(7), p = e(9), S = e(18), U = e(83), j = e(84), I = e(47), A = e(48).set, k = e(89)(), g = e(31), h = e(49), T = e(90), l = e(50), P = d.TypeError, L = d.process, R = L && L.versions, q = R && R.v8 || "", m = d.Promise, O = w(L) == "process", N = function() {
}, z = o = g.f, K = !!function() {
try {
var x = m.resolve(1), D = (x.constructor = {})[e(2)("species")] = function(F) {
F(N, N);
};
return (O || typeof PromiseRejectionEvent == "function") && x.then(N) instanceof D && q.indexOf("6.6") !== 0 && T.indexOf("Chrome/66") === -1;
} catch {
}
}(), C = function(x) {
var D;
return !(!p(x) || typeof (D = x.then) != "function") && D;
}, V = function(x, D) {
if (!x._n) {
x._n = !0;
var F = x._c;
k(function() {
for (var ae = x._v, se = x._s == 1, t = 0, n = function(s) {
var _, b, E, B = se ? s.ok : s.fail, H = s.resolve, te = s.reject, ue = s.domain;
try {
B ? (se || (x._h == 2 && oe(x), x._h = 1), B === !0 ? _ = ae : (ue && ue.enter(), _ = B(ae), ue && (ue.exit(), E = !0)), _ === s.promise ? te(P("Promise-chain cycle")) : (b = C(_)) ? b.call(_, H, te) : H(_)) : te(ae);
} catch (ee) {
ue && !E && ue.exit(), te(ee);
}
}; F.length > t; )
n(F[t++]);
x._c = [], x._n = !1, D && !x._h && Y(x);
});
}
}, Y = function(x) {
A.call(d, function() {
var D, F, ae, se = x._v, t = ne(x);
if (t && (D = h(function() {
O ? L.emit("unhandledRejection", se, x) : (F = d.onunhandledrejection) ? F({ promise: x, reason: se }) : (ae = d.console) && ae.error && ae.error("Unhandled promise rejection", se);
}), x._h = O || ne(x) ? 2 : 1), x._a = void 0, t && D.e)
throw D.v;
});
}, ne = function(x) {
return x._h !== 1 && (x._a || x._c).length === 0;
}, oe = function(x) {
A.call(d, function() {
var D;
O ? L.emit("rejectionHandled", x) : (D = d.onrejectionhandled) && D({ promise: x, reason: x._v });
});
}, Q = function(x) {
var D = this;
D._d || (D._d = !0, (D = D._w || D)._v = x, D._s = 2, D._a || (D._a = D._c.slice()), V(D, !0));
}, ie = function(x) {
var D, F = this;