Skip to content

Instantly share code, notes, and snippets.

@N0taN3rd
Created March 2, 2017 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save N0taN3rd/87e7f5cc098e713d6c2f563b4bd4cb33 to your computer and use it in GitHub Desktop.
Save N0taN3rd/87e7f5cc098e713d6c2f563b4bd4cb33 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
!function (t) {
function e (i) {
if (n[i]) return n[i].exports;
var r = n[i] = {
exports: {},
id: i,
loaded: !1
};
return t[i].call(r.exports, r, r.exports, e), r.loaded = !0, r.exports
}
var n = {};
return e.m = t, e.c = n, e.p = "", e(0)
}([function (t, e, n) {
n(1), t.exports = n(348)
}, function (t, e, n) {
(function (t) {
function e (t, e, n) {
t[e] || Object[i](t, e, {
writable: !0,
configurable: !0,
value: n
})
}
if (n(2), n(293), n(298), t._babelPolyfill) throw new Error("only one instance of babel-polyfill is allowed");
t._babelPolyfill = !0;
var i = "defineProperty";
e(String.prototype, "padLeft", "".padStart), e(String.prototype, "padRight", "".padEnd), "pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",")
.forEach(function (t) {
[][t] && e(Array, t, Function.call.bind([][t]))
})
})
.call(e, function () {
return this
}())
},
function (t, e, n) {
n(3), n(52), n(53), n(54), n(55), n(57), n(60), n(61), n(62), n(63), n(64), n(65), n(66), n(67), n(68), n(70), n(72), n(74), n(76), n(79), n(80), n(81), n(85), n(87), n(89), n(92), n(93), n(94), n(95), n(97), n(98), n(99), n(100), n(101), n(102), n(103), n(105), n(106), n(107), n(109), n(110), n(111), n(113), n(114), n(115), n(116), n(117), n(118), n(119), n(120), n(121), n(122), n(123), n(124), n(125), n(126), n(131), n(132), n(136), n(137), n(138), n(139), n(141), n(142), n(143), n(144), n(145), n(146), n(147), n(148), n(149), n(150), n(151), n(152), n(153), n(154), n(155), n(156), n(157), n(159), n(160), n(166), n(167), n(169), n(170), n(171), n(175), n(176), n(177), n(178), n(179), n(181), n(182), n(183), n(184), n(187), n(189), n(190), n(191), n(193), n(195), n(197), n(198), n(199), n(201), n(202), n(203), n(204), n(211), n(214), n(215), n(217), n(218), n(221), n(222), n(224), n(225), n(226), n(227), n(228), n(229), n(230), n(231), n(232), n(233), n(234), n(235), n(236), n(237), n(238), n(239), n(240), n(241), n(242), n(244), n(245), n(246), n(247), n(248), n(249), n(251), n(252), n(253), n(254), n(255), n(256), n(257), n(258), n(260), n(261), n(263), n(264), n(265), n(266), n(269), n(270), n(271), n(272), n(273), n(274), n(275), n(276), n(278), n(279), n(280), n(281), n(282), n(283), n(284), n(285), n(286), n(287), n(288), n(291), n(292), t.exports = n(9)
},
function (t, e, n) {
var i = n(4),
r = n(5),
o = n(6),
a = n(8),
s = n(18),
u = n(22)
.KEY,
l = n(7),
c = n(23),
d = n(24),
p = n(19),
h = n(25),
f = n(26),
m = n(27),
_ = n(29),
b = n(42),
v = n(45),
g = n(12),
y = n(32),
w = n(16),
M = n(17),
T = n(46),
k = n(49),
S = n(51),
L = n(11),
x = n(30),
D = S.f,
E = L.f,
Y = k.f,
C = i.Symbol,
P = i.JSON,
j = P && P.stringify,
A = "prototype",
F = h("_hidden"),
O = h("toPrimitive"),
I = {}.propertyIsEnumerable,
N = c("symbol-registry"),
U = c("symbols"),
R = c("op-symbols"),
H = Object[A],
W = "function" == typeof C,
B = i.QObject,
q = !B || !B[A] || !B[A].findChild,
z = o && l(function () {
return 7 != T(E({}, "a", {
get: function () {
return E(this, "a", {
value: 7
})
.a
}
}))
.a
}) ? function (t, e, n) {
var i = D(H, e);
i && delete H[e], E(t, e, n), i && t !== H && E(H, e, i)
} : E,
V = function (t) {
var e = U[t] = T(C[A]);
return e._k = t, e
},
G = W && "symbol" == typeof C.iterator ? function (t) {
return "symbol" == typeof t
} : function (t) {
return t instanceof C
},
$ = function (t, e, n) {
return t === H && $(R, e, n), g(t), e = w(e, !0), g(n), r(U, e) ? (n.enumerable ? (r(t, F) && t[F][e] && (t[F][e] = !1), n = T(n, {
enumerable: M(0, !1)
})) : (r(t, F) || E(t, F, M(1, {})), t[F][e] = !0), z(t, e, n)) : E(t, e, n)
},
J = function (t, e) {
g(t);
for (var n, i = b(e = y(e)), r = 0, o = i.length; o > r;) $(t, n = i[r++], e[n]);
return t
},
K = function (t, e) {
return void 0 === e ? T(t) : J(T(t), e)
},
X = function (t) {
var e = I.call(this, t = w(t, !0));
return !(this === H && r(U, t) && !r(R, t)) && (!(e || !r(this, t) || !r(U, t) || r(this, F) && this[F][t]) || e)
},
Q = function (t, e) {
if (t = y(t), e = w(e, !0), t !== H || !r(U, e) || r(R, e)) {
var n = D(t, e);
return !n || !r(U, e) || r(t, F) && t[F][e] || (n.enumerable = !0), n
}
},
Z = function (t) {
for (var e, n = Y(y(t)), i = [], o = 0; n.length > o;) r(U, e = n[o++]) || e == F || e == u || i.push(e);
return i
},
tt = function (t) {
for (var e, n = t === H, i = Y(n ? R : y(t)), o = [], a = 0; i.length > a;) !r(U, e = i[a++]) || n && !r(H, e) || o.push(U[e]);
return o
};
W || (C = function () {
if (this instanceof C) throw TypeError("Symbol is not a constructor!");
var t = p(arguments.length > 0 ? arguments[0] : void 0),
e = function (n) {
this === H && e.call(R, n), r(this, F) && r(this[F], t) && (this[F][t] = !1), z(this, t, M(1, n))
};
return o && q && z(H, t, {
configurable: !0,
set: e
}), V(t)
}, s(C[A], "toString", function () {
return this._k
}), S.f = Q, L.f = $, n(50)
.f = k.f = Z, n(44)
.f = X, n(43)
.f = tt, o && !n(28) && s(H, "propertyIsEnumerable", X, !0), f.f = function (t) {
return V(h(t))
}), a(a.G + a.W + a.F * !W, {
Symbol: C
});
for (var et = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), nt = 0; et.length > nt;) h(et[nt++]);
for (var et = x(h.store), nt = 0; et.length > nt;) m(et[nt++]);
a(a.S + a.F * !W, "Symbol", {
for: function (t) {
return r(N, t += "") ? N[t] : N[t] = C(t)
},
keyFor: function (t) {
if (G(t)) return _(N, t);
throw TypeError(t + " is not a symbol!")
},
useSetter: function () {
q = !0
},
useSimple: function () {
q = !1
}
}), a(a.S + a.F * !W, "Object", {
create: K,
defineProperty: $,
defineProperties: J,
getOwnPropertyDescriptor: Q,
getOwnPropertyNames: Z,
getOwnPropertySymbols: tt
}), P && a(a.S + a.F * (!W || l(function () {
var t = C();
return "[null]" != j([t]) || "{}" != j({
a: t
}) || "{}" != j(Object(t))
})), "JSON", {
stringify: function (t) {
if (void 0 !== t && !G(t)) {
for (var e, n, i = [t], r = 1; arguments.length > r;) i.push(arguments[r++]);
return e = i[1], "function" == typeof e && (n = e), !n && v(e) || (e = function (t, e) {
if (n && (e = n.call(this, t, e)), !G(e)) return e
}), i[1] = e, j.apply(P, i)
}
}
}), C[A][O] || n(10)(C[A], O, C[A].valueOf), d(C, "Symbol"), d(Math, "Math", !0), d(i.JSON, "JSON", !0)
}, function (t, e) {
var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
"number" == typeof __g && (__g = n)
}, function (t, e) {
var n = {}.hasOwnProperty;
t.exports = function (t, e) {
return n.call(t, e)
}
}, function (t, e, n) {
t.exports = !n(7)(function () {
return 7 != Object.defineProperty({}, "a", {
get: function () {
return 7
}
})
.a
})
}, function (t, e) {
t.exports = function (t) {
try {
return !!t()
} catch (t) {
return !0
}
}
}, function (t, e, n) {
var i = n(4),
r = n(9),
o = n(10),
a = n(18),
s = n(20),
u = "prototype",
l = function (t, e, n) {
var c, d, p, h, f = t & l.F,
m = t & l.G,
_ = t & l.S,
b = t & l.P,
v = t & l.B,
g = m ? i : _ ? i[e] || (i[e] = {}) : (i[e] || {})[u],
y = m ? r : r[e] || (r[e] = {}),
w = y[u] || (y[u] = {});
m && (n = e);
for (c in n) d = !f && g && void 0 !== g[c], p = (d ? g : n)[c], h = v && d ? s(p, i) : b && "function" == typeof p ? s(Function.call, p) : p, g && a(g, c, p, t & l.U), y[c] != p && o(y, c, h), b && w[c] != p && (w[c] = p)
};
i.core = r, l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, t.exports = l
}, function (t, e) {
var n = t.exports = {
version: "2.4.0"
};
"number" == typeof __e && (__e = n)
}, function (t, e, n) {
var i = n(11),
r = n(17);
t.exports = n(6) ? function (t, e, n) {
return i.f(t, e, r(1, n))
} : function (t, e, n) {
return t[e] = n, t
}
}, function (t, e, n) {
var i = n(12),
r = n(14),
o = n(16),
a = Object.defineProperty;
e.f = n(6) ? Object.defineProperty : function (t, e, n) {
if (i(t), e = o(e, !0), i(n), r) try {
return a(t, e, n)
} catch (t) {}
if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
return "value" in n && (t[e] = n.value), t
}
}, function (t, e, n) {
var i = n(13);
t.exports = function (t) {
if (!i(t)) throw TypeError(t + " is not an object!");
return t
}
}, function (t, e) {
t.exports = function (t) {
return "object" == typeof t ? null !== t : "function" == typeof t
}
}, function (t, e, n) {
t.exports = !n(6) && !n(7)(function () {
return 7 != Object.defineProperty(n(15)("div"), "a", {
get: function () {
return 7
}
})
.a
})
}, function (t, e, n) {
var i = n(13),
r = n(4)
.document,
o = i(r) && i(r.createElement);
t.exports = function (t) {
return o ? r.createElement(t) : {}
}
}, function (t, e, n) {
var i = n(13);
t.exports = function (t, e) {
if (!i(t)) return t;
var n, r;
if (e && "function" == typeof (n = t.toString) && !i(r = n.call(t))) return r;
if ("function" == typeof (n = t.valueOf) && !i(r = n.call(t))) return r;
if (!e && "function" == typeof (n = t.toString) && !i(r = n.call(t))) return r;
throw TypeError("Can't convert object to primitive value")
}
}, function (t, e) {
t.exports = function (t, e) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: e
}
}
}, function (t, e, n) {
var i = n(4),
r = n(10),
o = n(5),
a = n(19)("src"),
s = "toString",
u = Function[s],
l = ("" + u)
.split(s);
n(9)
.inspectSource = function (t) {
return u.call(t)
}, (t.exports = function (t, e, n, s) {
var u = "function" == typeof n;
u && (o(n, "name") || r(n, "name", e)), t[e] !== n && (u && (o(n, a) || r(n, a, t[e] ? "" + t[e] : l.join(String(e)))), t === i ? t[e] = n : s ? t[e] ? t[e] = n : r(t, e, n) : (delete t[e], r(t, e, n)))
})(Function.prototype, s, function () {
return "function" == typeof this && this[a] || u.call(this)
})
}, function (t, e) {
var n = 0,
i = Math.random();
t.exports = function (t) {
return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + i)
.toString(36))
}
}, function (t, e, n) {
var i = n(21);
t.exports = function (t, e, n) {
if (i(t), void 0 === e) return t;
switch (n) {
case 1:
return function (n) {
return t.call(e, n)
};
case 2:
return function (n, i) {
return t.call(e, n, i)
};
case 3:
return function (n, i, r) {
return t.call(e, n, i, r)
}
}
return function () {
return t.apply(e, arguments)
}
}
}, function (t, e) {
t.exports = function (t) {
if ("function" != typeof t) throw TypeError(t + " is not a function!");
return t
}
}, function (t, e, n) {
var i = n(19)("meta"),
r = n(13),
o = n(5),
a = n(11)
.f,
s = 0,
u = Object.isExtensible || function () {
return !0
},
l = !n(7)(function () {
return u(Object.preventExtensions({}))
}),
c = function (t) {
a(t, i, {
value: {
i: "O" + ++s,
w: {}
}
})
},
d = function (t, e) {
if (!r(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t;
if (!o(t, i)) {
if (!u(t)) return "F";
if (!e) return "E";
c(t)
}
return t[i].i
},
p = function (t, e) {
if (!o(t, i)) {
if (!u(t)) return !0;
if (!e) return !1;
c(t)
}
return t[i].w
},
h = function (t) {
return l && f.NEED && u(t) && !o(t, i) && c(t), t
},
f = t.exports = {
KEY: i,
NEED: !1,
fastKey: d,
getWeak: p,
onFreeze: h
}
}, function (t, e, n) {
var i = n(4),
r = "__core-js_shared__",
o = i[r] || (i[r] = {});
t.exports = function (t) {
return o[t] || (o[t] = {})
}
}, function (t, e, n) {
var i = n(11)
.f,
r = n(5),
o = n(25)("toStringTag");
t.exports = function (t, e, n) {
t && !r(t = n ? t : t.prototype, o) && i(t, o, {
configurable: !0,
value: e
})
}
}, function (t, e, n) {
var i = n(23)("wks"),
r = n(19),
o = n(4)
.Symbol,
a = "function" == typeof o,
s = t.exports = function (t) {
return i[t] || (i[t] = a && o[t] || (a ? o : r)("Symbol." + t))
};
s.store = i
}, function (t, e, n) {
e.f = n(25)
}, function (t, e, n) {
var i = n(4),
r = n(9),
o = n(28),
a = n(26),
s = n(11)
.f;
t.exports = function (t) {
var e = r.Symbol || (r.Symbol = o ? {} : i.Symbol || {});
"_" == t.charAt(0) || t in e || s(e, t, {
value: a.f(t)
})
}
}, function (t, e) {
t.exports = !1
}, function (t, e, n) {
var i = n(30),
r = n(32);
t.exports = function (t, e) {
for (var n, o = r(t), a = i(o), s = a.length, u = 0; s > u;)
if (o[n = a[u++]] === e) return n
}
}, function (t, e, n) {
var i = n(31),
r = n(41);
t.exports = Object.keys || function (t) {
return i(t, r)
}
}, function (t, e, n) {
var i = n(5),
r = n(32),
o = n(36)(!1),
a = n(40)("IE_PROTO");
t.exports = function (t, e) {
var n, s = r(t),
u = 0,
l = [];
for (n in s) n != a && i(s, n) && l.push(n);
for (; e.length > u;) i(s, n = e[u++]) && (~o(l, n) || l.push(n));
return l
}
}, function (t, e, n) {
var i = n(33),
r = n(35);
t.exports = function (t) {
return i(r(t))
}
}, function (t, e, n) {
var i = n(34);
t.exports = Object("z")
.propertyIsEnumerable(0) ? Object : function (t) {
return "String" == i(t) ? t.split("") : Object(t)
}
}, function (t, e) {
var n = {}.toString;
t.exports = function (t) {
return n.call(t)
.slice(8, -1)
}
}, function (t, e) {
t.exports = function (t) {
if (void 0 == t) throw TypeError("Can't call method on " + t);
return t
}
}, function (t, e, n) {
var i = n(32),
r = n(37),
o = n(39);
t.exports = function (t) {
return function (e, n, a) {
var s, u = i(e),
l = r(u.length),
c = o(a, l);
if (t && n != n) {
for (; l > c;)
if (s = u[c++], s != s) return !0
} else
for (; l > c; c++)
if ((t || c in u) && u[c] === n) return t || c || 0;
return !t && -1
}
}
}, function (t, e, n) {
var i = n(38),
r = Math.min;
t.exports = function (t) {
return t > 0 ? r(i(t), 9007199254740991) : 0
}
}, function (t, e) {
var n = Math.ceil,
i = Math.floor;
t.exports = function (t) {
return isNaN(t = +t) ? 0 : (t > 0 ? i : n)(t)
}
}, function (t, e, n) {
var i = n(38),
r = Math.max,
o = Math.min;
t.exports = function (t, e) {
return t = i(t), t < 0 ? r(t + e, 0) : o(t, e)
}
}, function (t, e, n) {
var i = n(23)("keys"),
r = n(19);
t.exports = function (t) {
return i[t] || (i[t] = r(t))
}
}, function (t, e) {
t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
}, function (t, e, n) {
var i = n(30),
r = n(43),
o = n(44);
t.exports = function (t) {
var e = i(t),
n = r.f;
if (n)
for (var a, s = n(t), u = o.f, l = 0; s.length > l;) u.call(t, a = s[l++]) && e.push(a);
return e
}
}, function (t, e) {
e.f = Object.getOwnPropertySymbols
}, function (t, e) {
e.f = {}.propertyIsEnumerable
}, function (t, e, n) {
var i = n(34);
t.exports = Array.isArray || function (t) {
return "Array" == i(t)
}
}, function (t, e, n) {
var i = n(12),
r = n(47),
o = n(41),
a = n(40)("IE_PROTO"),
s = function () {},
u = "prototype",
l = function () {
var t, e = n(15)("iframe"),
i = o.length,
r = "<",
a = ">";
for (e.style.display = "none", n(48)
.appendChild(e), e.src = "javascript:", t = e.contentWindow.document, t.open(), t.write(r + "script" + a + "document.F=Object" + r + "/script" + a), t.close(), l = t.F; i--;) delete l[u][o[i]];
return l()
};
t.exports = Object.create || function (t, e) {
var n;
return null !== t ? (s[u] = i(t), n = new s, s[u] = null, n[a] = t) : n = l(), void 0 === e ? n : r(n, e)
}
}, function (t, e, n) {
var i = n(11),
r = n(12),
o = n(30);
t.exports = n(6) ? Object.defineProperties : function (t, e) {
r(t);
for (var n, a = o(e), s = a.length, u = 0; s > u;) i.f(t, n = a[u++], e[n]);
return t
}
}, function (t, e, n) {
t.exports = n(4)
.document && document.documentElement
}, function (t, e, n) {
var i = n(32),
r = n(50)
.f,
o = {}.toString,
a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
s = function (t) {
try {
return r(t)
} catch (t) {
return a.slice()
}
};
t.exports.f = function (t) {
return a && "[object Window]" == o.call(t) ? s(t) : r(i(t))
}
}, function (t, e, n) {
var i = n(31),
r = n(41)
.concat("length", "prototype");
e.f = Object.getOwnPropertyNames || function (t) {
return i(t, r)
}
}, function (t, e, n) {
var i = n(44),
r = n(17),
o = n(32),
a = n(16),
s = n(5),
u = n(14),
l = Object.getOwnPropertyDescriptor;
e.f = n(6) ? l : function (t, e) {
if (t = o(t), e = a(e, !0), u) try {
return l(t, e)
} catch (t) {}
if (s(t, e)) return r(!i.f.call(t, e), t[e])
}
}, function (t, e, n) {
var i = n(8);
i(i.S, "Object", {
create: n(46)
})
}, function (t, e, n) {
var i = n(8);
i(i.S + i.F * !n(6), "Object", {
defineProperty: n(11)
.f
})
}, function (t, e, n) {
var i = n(8);
i(i.S + i.F * !n(6), "Object", {
defineProperties: n(47)
})
}, function (t, e, n) {
var i = n(32),
r = n(51)
.f;
n(56)("getOwnPropertyDescriptor", function () {
return function (t, e) {
return r(i(t), e)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(9),
o = n(7);
t.exports = function (t, e) {
var n = (r.Object || {})[t] || Object[t],
a = {};
a[t] = e(n), i(i.S + i.F * o(function () {
n(1)
}), "Object", a)
}
}, function (t, e, n) {
var i = n(58),
r = n(59);
n(56)("getPrototypeOf", function () {
return function (t) {
return r(i(t))
}
})
}, function (t, e, n) {
var i = n(35);
t.exports = function (t) {
return Object(i(t))
}
}, function (t, e, n) {
var i = n(5),
r = n(58),
o = n(40)("IE_PROTO"),
a = Object.prototype;
t.exports = Object.getPrototypeOf || function (t) {
return t = r(t), i(t, o) ? t[o] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? a : null
}
}, function (t, e, n) {
var i = n(58),
r = n(30);
n(56)("keys", function () {
return function (t) {
return r(i(t))
}
})
}, function (t, e, n) {
n(56)("getOwnPropertyNames", function () {
return n(49)
.f
})
}, function (t, e, n) {
var i = n(13),
r = n(22)
.onFreeze;
n(56)("freeze", function (t) {
return function (e) {
return t && i(e) ? t(r(e)) : e
}
})
}, function (t, e, n) {
var i = n(13),
r = n(22)
.onFreeze;
n(56)("seal", function (t) {
return function (e) {
return t && i(e) ? t(r(e)) : e
}
})
}, function (t, e, n) {
var i = n(13),
r = n(22)
.onFreeze;
n(56)("preventExtensions", function (t) {
return function (e) {
return t && i(e) ? t(r(e)) : e
}
})
}, function (t, e, n) {
var i = n(13);
n(56)("isFrozen", function (t) {
return function (e) {
return !i(e) || !!t && t(e)
}
})
}, function (t, e, n) {
var i = n(13);
n(56)("isSealed", function (t) {
return function (e) {
return !i(e) || !!t && t(e)
}
})
}, function (t, e, n) {
var i = n(13);
n(56)("isExtensible", function (t) {
return function (e) {
return !!i(e) && (!t || t(e))
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S + i.F, "Object", {
assign: n(69)
})
}, function (t, e, n) {
var i = n(30),
r = n(43),
o = n(44),
a = n(58),
s = n(33),
u = Object.assign;
t.exports = !u || n(7)(function () {
var t = {},
e = {},
n = Symbol(),
i = "abcdefghijklmnopqrst";
return t[n] = 7, i.split("")
.forEach(function (t) {
e[t] = t
}), 7 != u({}, t)[n] || Object.keys(u({}, e))
.join("") != i
}) ? function (t, e) {
for (var n = a(t), u = arguments.length, l = 1, c = r.f, d = o.f; u > l;)
for (var p, h = s(arguments[l++]), f = c ? i(h)
.concat(c(h)) : i(h), m = f.length, _ = 0; m > _;) d.call(h, p = f[_++]) && (n[p] = h[p]);
return n
} : u
}, function (t, e, n) {
var i = n(8);
i(i.S, "Object", {
is: n(71)
})
}, function (t, e) {
t.exports = Object.is || function (t, e) {
return t === e ? 0 !== t || 1 / t === 1 / e : t != t && e != e
}
}, function (t, e, n) {
var i = n(8);
i(i.S, "Object", {
setPrototypeOf: n(73)
.set
})
}, function (t, e, n) {
var i = n(13),
r = n(12),
o = function (t, e) {
if (r(t), !i(e) && null !== e) throw TypeError(e + ": can't set as prototype!")
};
t.exports = {
set: Object.setPrototypeOf || ("__proto__" in {} ? function (t, e, i) {
try {
i = n(20)(Function.call, n(51)
.f(Object.prototype, "__proto__")
.set, 2), i(t, []), e = !(t instanceof Array)
} catch (t) {
e = !0
}
return function (t, n) {
return o(t, n), e ? t.__proto__ = n : i(t, n), t
}
}({}, !1) : void 0),
check: o
}
}, function (t, e, n) {
var i = n(75),
r = {};
r[n(25)("toStringTag")] = "z", r + "" != "[object z]" && n(18)(Object.prototype, "toString", function () {
return "[object " + i(this) + "]"
}, !0)
}, function (t, e, n) {
var i = n(34),
r = n(25)("toStringTag"),
o = "Arguments" == i(function () {
return arguments
}()),
a = function (t, e) {
try {
return t[e]
} catch (t) {}
};
t.exports = function (t) {
var e, n, s;
return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (n = a(e = Object(t), r)) ? n : o ? i(e) : "Object" == (s = i(e)) && "function" == typeof e.callee ? "Arguments" : s
}
}, function (t, e, n) {
var i = n(8);
i(i.P, "Function", {
bind: n(77)
})
}, function (t, e, n) {
var i = n(21),
r = n(13),
o = n(78),
a = [].slice,
s = {},
u = function (t, e, n) {
if (!(e in s)) {
for (var i = [], r = 0; r < e; r++) i[r] = "a[" + r + "]";
s[e] = Function("F,a", "return new F(" + i.join(",") + ")")
}
return s[e](t, n)
};
t.exports = Function.bind || function (t) {
var e = i(this),
n = a.call(arguments, 1),
s = function () {
var i = n.concat(a.call(arguments));
return this instanceof s ? u(e, i.length, i) : o(e, i, t)
};
return r(e.prototype) && (s.prototype = e.prototype), s
}
}, function (t, e) {
t.exports = function (t, e, n) {
var i = void 0 === n;
switch (e.length) {
case 0:
return i ? t() : t.call(n);
case 1:
return i ? t(e[0]) : t.call(n, e[0]);
case 2:
return i ? t(e[0], e[1]) : t.call(n, e[0], e[1]);
case 3:
return i ? t(e[0], e[1], e[2]) : t.call(n, e[0], e[1], e[2]);
case 4:
return i ? t(e[0], e[1], e[2], e[3]) : t.call(n, e[0], e[1], e[2], e[3])
}
return t.apply(n, e)
}
}, function (t, e, n) {
var i = n(11)
.f,
r = n(17),
o = n(5),
a = Function.prototype,
s = /^\s*function ([^ (]*)/,
u = "name",
l = Object.isExtensible || function () {
return !0
};
u in a || n(6) && i(a, u, {
configurable: !0,
get: function () {
try {
var t = this,
e = ("" + t)
.match(s)[1];
return o(t, u) || !l(t) || i(t, u, r(5, e)), e
} catch (t) {
return ""
}
}
})
}, function (t, e, n) {
var i = n(13),
r = n(59),
o = n(25)("hasInstance"),
a = Function.prototype;
o in a || n(11)
.f(a, o, {
value: function (t) {
if ("function" != typeof this || !i(t)) return !1;
if (!i(this.prototype)) return t instanceof this;
for (; t = r(t);)
if (this.prototype === t) return !0;
return !1
}
})
}, function (t, e, n) {
var i = n(8),
r = n(82);
i(i.G + i.F * (parseInt != r), {
parseInt: r
})
}, function (t, e, n) {
var i = n(4)
.parseInt,
r = n(83)
.trim,
o = n(84),
a = /^[\-+]?0[xX]/;
t.exports = 8 !== i(o + "08") || 22 !== i(o + "0x16") ? function (t, e) {
var n = r(String(t), 3);
return i(n, e >>> 0 || (a.test(n) ? 16 : 10))
} : i
}, function (t, e, n) {
var i = n(8),
r = n(35),
o = n(7),
a = n(84),
s = "[" + a + "]",
u = "​…",
l = RegExp("^" + s + s + "*"),
c = RegExp(s + s + "*$"),
d = function (t, e, n) {
var r = {},
s = o(function () {
return !!a[t]() || u[t]() != u
}),
l = r[t] = s ? e(p) : a[t];
n && (r[n] = l), i(i.P + i.F * s, "String", r)
},
p = d.trim = function (t, e) {
return t = String(r(t)), 1 & e && (t = t.replace(l, "")), 2 & e && (t = t.replace(c, "")), t
};
t.exports = d
}, function (t, e) {
t.exports = "\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"
}, function (t, e, n) {
var i = n(8),
r = n(86);
i(i.G + i.F * (parseFloat != r), {
parseFloat: r
})
}, function (t, e, n) {
var i = n(4)
.parseFloat,
r = n(83)
.trim;
t.exports = 1 / i(n(84) + "-0") !== -(1 / 0) ? function (t) {
var e = r(String(t), 3),
n = i(e);
return 0 === n && "-" == e.charAt(0) ? -0 : n
} : i
}, function (t, e, n) {
var i = n(4),
r = n(5),
o = n(34),
a = n(88),
s = n(16),
u = n(7),
l = n(50)
.f,
c = n(51)
.f,
d = n(11)
.f,
p = n(83)
.trim,
h = "Number",
f = i[h],
m = f,
_ = f.prototype,
b = o(n(46)(_)) == h,
v = "trim" in String.prototype,
g = function (t) {
var e = s(t, !1);
if ("string" == typeof e && e.length > 2) {
e = v ? e.trim() : p(e, 3);
var n, i, r, o = e.charCodeAt(0);
if (43 === o || 45 === o) {
if (n = e.charCodeAt(2), 88 === n || 120 === n) return NaN
} else if (48 === o) {
switch (e.charCodeAt(1)) {
case 66:
case 98:
i = 2, r = 49;
break;
case 79:
case 111:
i = 8, r = 55;
break;
default:
return +e
}
for (var a, u = e.slice(2), l = 0, c = u.length; l < c; l++)
if (a = u.charCodeAt(l), a < 48 || a > r) return NaN;
return parseInt(u, i)
}
}
return +e
};
if (!f(" 0o1") || !f("0b1") || f("+0x1")) {
f = function (t) {
var e = arguments.length < 1 ? 0 : t,
n = this;
return n instanceof f && (b ? u(function () {
_.valueOf.call(n)
}) : o(n) != h) ? a(new m(g(e)), n, f) : g(e)
};
for (var y, w = n(6) ? l(m) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), M = 0; w.length > M; M++) r(m, y = w[M]) && !r(f, y) && d(f, y, c(m, y));
f.prototype = _, _.constructor = f, n(18)(i, h, f)
}
}, function (t, e, n) {
var i = n(13),
r = n(73)
.set;
t.exports = function (t, e, n) {
var o, a = e.constructor;
return a !== n && "function" == typeof a && (o = a.prototype) !== n.prototype && i(o) && r && r(t, o), t
}
}, function (t, e, n) {
var i = n(8),
r = n(38),
o = n(90),
a = n(91),
s = 1..toFixed,
u = Math.floor,
l = [0, 0, 0, 0, 0, 0],
c = "Number.toFixed: incorrect invocation!",
d = "0",
p = function (t, e) {
for (var n = -1, i = e; ++n < 6;) i += t * l[n], l[n] = i % 1e7, i = u(i / 1e7)
},
h = function (t) {
for (var e = 6, n = 0; --e >= 0;) n += l[e], l[e] = u(n / t), n = n % t * 1e7
},
f = function () {
for (var t = 6, e = ""; --t >= 0;)
if ("" !== e || 0 === t || 0 !== l[t]) {
var n = String(l[t]);
e = "" === e ? n : e + a.call(d, 7 - n.length) + n
}
return e
},
m = function (t, e, n) {
return 0 === e ? n : e % 2 === 1 ? m(t, e - 1, n * t) : m(t * t, e / 2, n)
},
_ = function (t) {
for (var e = 0, n = t; n >= 4096;) e += 12, n /= 4096;
for (; n >= 2;) e += 1, n /= 2;
return e
};
i(i.P + i.F * (!!s && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080)
.toFixed(0)) || !n(7)(function () {
s.call({})
})), "Number", {
toFixed: function (t) {
var e, n, i, s, u = o(this, c),
l = r(t),
b = "",
v = d;
if (l < 0 || l > 20) throw RangeError(c);
if (u != u) return "NaN";
if (u <= -1e21 || u >= 1e21) return String(u);
if (u < 0 && (b = "-", u = -u), u > 1e-21)
if (e = _(u * m(2, 69, 1)) - 69, n = e < 0 ? u * m(2, -e, 1) : u / m(2, e, 1), n *= 4503599627370496, e = 52 - e, e > 0) {
for (p(0, n), i = l; i >= 7;) p(1e7, 0), i -= 7;
for (p(m(10, i, 1), 0), i = e - 1; i >= 23;) h(1 << 23), i -= 23;
h(1 << i), p(1, 1), h(2), v = f()
} else p(0, n), p(1 << -e, 0), v = f() + a.call(d, l);
return l > 0 ? (s = v.length, v = b + (s <= l ? "0." + a.call(d, l - s) + v : v.slice(0, s - l) + "." + v.slice(s - l))): v = b + v, v
}
})
}, function (t, e, n) {
var i = n(34);
t.exports = function (t, e) {
if ("number" != typeof t && "Number" != i(t)) throw TypeError(e);
return +t
}
}, function (t, e, n) {
var i = n(38),
r = n(35);
t.exports = function (t) {
var e = String(r(this)),
n = "",
o = i(t);
if (o < 0 || o == 1 / 0) throw RangeError("Count can't be negative");
for (; o > 0;
(o >>>= 1) && (e += e)) 1 & o && (n += e);
return n
}
}, function (t, e, n) {
var i = n(8),
r = n(7),
o = n(90),
a = 1..toPrecision;
i(i.P + i.F * (r(function () {
return "1" !== a.call(1, void 0)
}) || !r(function () {
a.call({})
})), "Number", {
toPrecision: function (t) {
var e = o(this, "Number#toPrecision: incorrect invocation!");
return void 0 === t ? a.call(e) : a.call(e, t)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Number", {
EPSILON: Math.pow(2, -52)
})
}, function (t, e, n) {
var i = n(8),
r = n(4)
.isFinite;
i(i.S, "Number", {
isFinite: function (t) {
return "number" == typeof t && r(t)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Number", {
isInteger: n(96)
})
}, function (t, e, n) {
var i = n(13),
r = Math.floor;
t.exports = function (t) {
return !i(t) && isFinite(t) && r(t) === t
}
}, function (t, e, n) {
var i = n(8);
i(i.S, "Number", {
isNaN: function (t) {
return t != t
}
})
}, function (t, e, n) {
var i = n(8),
r = n(96),
o = Math.abs;
i(i.S, "Number", {
isSafeInteger: function (t) {
return r(t) && o(t) <= 9007199254740991
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Number", {
MAX_SAFE_INTEGER: 9007199254740991
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Number", {
MIN_SAFE_INTEGER: -9007199254740991
})
}, function (t, e, n) {
var i = n(8),
r = n(86);
i(i.S + i.F * (Number.parseFloat != r), "Number", {
parseFloat: r
})
}, function (t, e, n) {
var i = n(8),
r = n(82);
i(i.S + i.F * (Number.parseInt != r), "Number", {
parseInt: r
})
}, function (t, e, n) {
var i = n(8),
r = n(104),
o = Math.sqrt,
a = Math.acosh;
i(i.S + i.F * !(a && 710 == Math.floor(a(Number.MAX_VALUE)) && a(1 / 0) == 1 / 0), "Math", {
acosh: function (t) {
return (t = +t) < 1 ? NaN : t > 94906265.62425156 ? Math.log(t) + Math.LN2 : r(t - 1 + o(t - 1) * o(t + 1))
}
})
}, function (t, e) {
t.exports = Math.log1p || function (t) {
return (t = +t) > -1e-8 && t < 1e-8 ? t - t * t / 2 : Math.log(1 + t)
}
}, function (t, e, n) {
function i (t) {
return isFinite(t = +t) && 0 != t ? t < 0 ? -i(-t) : Math.log(t + Math.sqrt(t * t + 1)) : t
}
var r = n(8),
o = Math.asinh;
r(r.S + r.F * !(o && 1 / o(0) > 0), "Math", {
asinh: i
})
}, function (t, e, n) {
var i = n(8),
r = Math.atanh;
i(i.S + i.F * !(r && 1 / r(-0) < 0), "Math", {
atanh: function (t) {
return 0 == (t = +t) ? t : Math.log((1 + t) / (1 - t)) / 2
}
})
}, function (t, e, n) {
var i = n(8),
r = n(108);
i(i.S, "Math", {
cbrt: function (t) {
return r(t = +t) * Math.pow(Math.abs(t), 1 / 3)
}
})
}, function (t, e) {
t.exports = Math.sign || function (t) {
return 0 == (t = +t) || t != t ? t : t < 0 ? -1 : 1
}
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
clz32: function (t) {
return (t >>>= 0) ? 31 - Math.floor(Math.log(t + .5) * Math.LOG2E) : 32
}
})
}, function (t, e, n) {
var i = n(8),
r = Math.exp;
i(i.S, "Math", {
cosh: function (t) {
return (r(t = +t) + r(-t)) / 2
}
})
}, function (t, e, n) {
var i = n(8),
r = n(112);
i(i.S + i.F * (r != Math.expm1), "Math", {
expm1: r
})
}, function (t, e) {
var n = Math.expm1;
t.exports = !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || n(-2e-17) != -2e-17 ? function (t) {
return 0 == (t = +t) ? t : t > -1e-6 && t < 1e-6 ? t + t * t / 2 : Math.exp(t) - 1
} : n
}, function (t, e, n) {
var i = n(8),
r = n(108),
o = Math.pow,
a = o(2, -52),
s = o(2, -23),
u = o(2, 127) * (2 - s),
l = o(2, -126),
c = function (t) {
return t + 1 / a - 1 / a
};
i(i.S, "Math", {
fround: function (t) {
var e, n, i = Math.abs(t),
o = r(t);
return i < l ? o * c(i / l / s) * l * s : (e = (1 + s / a) * i, n = e - (e - i), n > u || n != n ? o * (1 / 0) : o * n)
}
})
}, function (t, e, n) {
var i = n(8),
r = Math.abs;
i(i.S, "Math", {
hypot: function (t, e) {
for (var n, i, o = 0, a = 0, s = arguments.length, u = 0; a < s;) n = r(arguments[a++]), u < n ? (i = u / n, o = o * i * i + 1, u = n): n
>
0 ? (i = n / u, o += i * i) : o += n;
return u === 1 / 0 ? 1 / 0 : u * Math.sqrt(o)
}
})
}, function (t, e, n) {
var i = n(8),
r = Math.imul;
i(i.S + i.F * n(7)(function () {
return r(4294967295, 5) != -5 || 2 != r.length
}), "Math", {
imul: function (t, e) {
var n = 65535,
i = +t,
r = +e,
o = n & i,
a = n & r;
return 0 | o * a + ((n & i >>> 16) * a + o * (n & r >>> 16) << 16 >>> 0)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
log10: function (t) {
return Math.log(t) / Math.LN10
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
log1p: n(104)
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
log2: function (t) {
return Math.log(t) / Math.LN2
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
sign: n(108)
})
}, function (t, e, n) {
var i = n(8),
r = n(112),
o = Math.exp;
i(i.S + i.F * n(7)(function () {
return !Math.sinh(-2e-17) != -2e-17
}), "Math", {
sinh: function (t) {
return Math.abs(t = +t) < 1 ? (r(t) - r(-t)) / 2 : (o(t - 1) - o(-t - 1)) * (Math.E / 2)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(112),
o = Math.exp;
i(i.S, "Math", {
tanh: function (t) {
var e = r(t = +t),
n = r(-t);
return e == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (e - n) / (o(t) + o(-t))
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
trunc: function (t) {
return (t > 0 ? Math.floor : Math.ceil)(t)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(39),
o = String.fromCharCode,
a = String.fromCodePoint;
i(i.S + i.F * (!!a && 1 != a.length), "String", {
fromCodePoint: function (t) {
for (var e, n = [], i = arguments.length, a = 0; i > a;) {
if (e = +arguments[a++], r(e, 1114111) !== e) throw RangeError(e + " is not a valid code point");
n.push(e < 65536 ? o(e) : o(((e -= 65536) >> 10) + 55296, e % 1024 + 56320))
}
return n.join("")
}
})
}, function (t, e, n) {
var i = n(8),
r = n(32),
o = n(37);
i(i.S, "String", {
raw: function (t) {
for (var e = r(t.raw), n = o(e.length), i = arguments.length, a = [], s = 0; n > s;) a.push(String(e[s++])), s < i && a.push(String(arguments[s]));
return a.join("")
}
})
}, function (t, e, n) {
n(83)("trim", function (t) {
return function () {
return t(this, 3)
}
})
}, function (t, e, n) {
var i = n(127)(!0);
n(128)(String, "String", function (t) {
this._t = String(t), this._i = 0
}, function () {
var t, e = this._t,
n = this._i;
return n >= e.length ? {
value: void 0,
done: !0
} : (t = i(e, n), this._i += t.length, {
value: t,
done: !1
})
})
}, function (t, e, n) {
var i = n(38),
r = n(35);
t.exports = function (t) {
return function (e, n) {
var o, a, s = String(r(e)),
u = i(n),
l = s.length;
return u < 0 || u >= l ? t ? "" : void 0 : (o = s.charCodeAt(u), o < 55296 || o > 56319 || u + 1 === l || (a = s.charCodeAt(u + 1)) < 56320 || a > 57343 ? t ? s.charAt(u) : o : t ? s.slice(u, u + 2) : (o - 55296 << 10) + (a - 56320) + 65536)
}
}
}, function (t, e, n) {
var i = n(28),
r = n(8),
o = n(18),
a = n(10),
s = n(5),
u = n(129),
l = n(130),
c = n(24),
d = n(59),
p = n(25)("iterator"),
h = !([].keys && "next" in [].keys()),
f = "@@iterator",
m = "keys",
_ = "values",
b = function () {
return this
};
t.exports = function (t, e, n, v, g, y, w) {
l(n, e, v);
var M, T, k, S = function (t) {
if (!h && t in E) return E[t];
switch (t) {
case m:
return function () {
return new n(this, t)
};
case _:
return function () {
return new n(this, t)
}
}
return function () {
return new n(this, t)
}
},
L = e + " Iterator",
x = g == _,
D = !1,
E = t.prototype,
Y = E[p] || E[f] || g && E[g],
C = Y || S(g),
P = g ? x ? S("entries") : C : void 0,
j = "Array" == e ? E.entries || Y : Y;
if (j && (k = d(j.call(new t)), k !== Object.prototype && (c(k, L, !0), i || s(k, p) || a(k, p, b))), x && Y && Y.name !== _ && (D = !0, C = function () {
return Y.call(this)
}), i && !w || !h && !D && E[p] || a(E, p, C), u[e] = C, u[L] = b, g)
if (M = {
values: x ? C : S(_),
keys: y ? C : S(m),
entries: P
}, w)
for (T in M) T in E || o(E, T, M[T]);
else r(r.P + r.F * (h || D), e, M);
return M
}
}, function (t, e) {
t.exports = {}
}, function (t, e, n) {
var i = n(46),
r = n(17),
o = n(24),
a = {};
n(10)(a, n(25)("iterator"), function () {
return this
}), t.exports = function (t, e, n) {
t.prototype = i(a, {
next: r(1, n)
}), o(t, e + " Iterator")
}
}, function (t, e, n) {
var i = n(8),
r = n(127)(!1);
i(i.P, "String", {
codePointAt: function (t) {
return r(this, t)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(37),
o = n(133),
a = "endsWith",
s = "" [a];
i(i.P + i.F * n(135)(a), "String", {
endsWith: function (t) {
var e = o(this, t, a),
n = arguments.length > 1 ? arguments[1] : void 0,
i = r(e.length),
u = void 0 === n ? i : Math.min(r(n), i),
l = String(t);
return s ? s.call(e, l, u) : e.slice(u - l.length, u) === l
}
})
}, function (t, e, n) {
var i = n(134),
r = n(35);
t.exports = function (t, e, n) {
if (i(e)) throw TypeError("String#" + n + " doesn't accept regex!");
return String(r(t))
}
}, function (t, e, n) {
var i = n(13),
r = n(34),
o = n(25)("match");
t.exports = function (t) {
var e;
return i(t) && (void 0 !== (e = t[o]) ? !!e : "RegExp" == r(t))
}
}, function (t, e, n) {
var i = n(25)("match");
t.exports = function (t) {
var e = /./;
try {
"/./" [t](e)
} catch (n) {
try {
return e[i] = !1, !"/./" [t](e)
} catch (t) {}
}
return !0
}
}, function (t, e, n) {
var i = n(8),
r = n(133),
o = "includes";
i(i.P + i.F * n(135)(o), "String", {
includes: function (t) {
return !!~r(this, t, o)
.indexOf(t, arguments.length > 1 ? arguments[1] : void 0)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.P, "String", {
repeat: n(91)
})
}, function (t, e, n) {
var i = n(8),
r = n(37),
o = n(133),
a = "startsWith",
s = "" [a];
i(i.P + i.F * n(135)(a), "String", {
startsWith: function (t) {
var e = o(this, t, a),
n = r(Math.min(arguments.length > 1 ? arguments[1] : void 0, e.length)),
i = String(t);
return s ? s.call(e, i, n) : e.slice(n, n + i.length) === i
}
})
}, function (t, e, n) {
n(140)("anchor", function (t) {
return function (e) {
return t(this, "a", "name", e)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(7),
o = n(35),
a = /"/g,
s = function (t, e, n, i) {
var r = String(o(t)),
s = "<" + e;
return "" !== n && (s += " " + n + '="' + String(i)
.replace(a, "&quot;") + '"'), s + ">" + r + "</" + e + ">"
};
t.exports = function (t, e) {
var n = {};
n[t] = e(s), i(i.P + i.F * r(function () {
var e = "" [t]('"');
return e !== e.toLowerCase() || e.split('"')
.length > 3
}), "String", n)
}
}, function (t, e, n) {
n(140)("big", function (t) {
return function () {
return t(this, "big", "", "")
}
})
}, function (t, e, n) {
n(140)("blink", function (t) {
return function () {
return t(this, "blink", "", "")
}
})
}, function (t, e, n) {
n(140)("bold", function (t) {
return function () {
return t(this, "b", "", "")
}
})
}, function (t, e, n) {
n(140)("fixed", function (t) {
return function () {
return t(this, "tt", "", "")
}
})
}, function (t, e, n) {
n(140)("fontcolor", function (t) {
return function (e) {
return t(this, "font", "color", e)
}
})
}, function (t, e, n) {
n(140)("fontsize", function (t) {
return function (e) {
return t(this, "font", "size", e)
}
})
}, function (t, e, n) {
n(140)("italics", function (t) {
return function () {
return t(this, "i", "", "")
}
})
}, function (t, e, n) {
n(140)("link", function (t) {
return function (e) {
return t(this, "a", "href", e)
}
})
}, function (t, e, n) {
n(140)("small", function (t) {
return function () {
return t(this, "small", "", "")
}
})
}, function (t, e, n) {
n(140)("strike", function (t) {
return function () {
return t(this, "strike", "", "")
}
})
}, function (t, e, n) {
n(140)("sub", function (t) {
return function () {
return t(this, "sub", "", "")
}
})
}, function (t, e, n) {
n(140)("sup", function (t) {
return function () {
return t(this, "sup", "", "")
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Date", {
now: function () {
return (new Date)
.getTime()
}
})
}, function (t, e, n) {
var i = n(8),
r = n(58),
o = n(16);
i(i.P + i.F * n(7)(function () {
return null !== new Date(NaN)
.toJSON() || 1 !== Date.prototype.toJSON.call({
toISOString: function () {
return 1
}
})
}), "Date", {
toJSON: function (t) {
var e = r(this),
n = o(e);
return "number" != typeof n || isFinite(n) ? e.toISOString() : null
}
})
}, function (t, e, n) {
var i = n(8),
r = n(7),
o = Date.prototype.getTime,
a = function (t) {
return t > 9 ? t : "0" + t
};
i(i.P + i.F * (r(function () {
return "0385-07-25T07:06:39.999Z" != new Date(-5e13 - 1)
.toISOString()
}) || !r(function () {
new Date(NaN)
.toISOString()
})), "Date", {
toISOString: function () {
if (!isFinite(o.call(this))) throw RangeError("Invalid time value");
var t = this,
e = t.getUTCFullYear(),
n = t.getUTCMilliseconds(),
i = e < 0 ? "-" : e > 9999 ? "+" : "";
return i + ("00000" + Math.abs(e))
.slice(i ? -6 : -4) + "-" + a(t.getUTCMonth() + 1) + "-" + a(t.getUTCDate()) + "T" + a(t.getUTCHours()) + ":" + a(t.getUTCMinutes()) + ":" + a(t.getUTCSeconds()) + "." + (n > 99 ? n : "0" + a(n)) + "Z";
}
})
}, function (t, e, n) {
var i = Date.prototype,
r = "Invalid Date",
o = "toString",
a = i[o],
s = i.getTime;
new Date(NaN) + "" != r && n(18)(i, o, function () {
var t = s.call(this);
return t === t ? a.call(this) : r
})
}, function (t, e, n) {
var i = n(25)("toPrimitive"),
r = Date.prototype;
i in r || n(10)(r, i, n(158))
}, function (t, e, n) {
var i = n(12),
r = n(16),
o = "number";
t.exports = function (t) {
if ("string" !== t && t !== o && "default" !== t) throw TypeError("Incorrect hint");
return r(i(this), t != o)
}
}, function (t, e, n) {
var i = n(8);
i(i.S, "Array", {
isArray: n(45)
})
}, function (t, e, n) {
var i = n(20),
r = n(8),
o = n(58),
a = n(161),
s = n(162),
u = n(37),
l = n(163),
c = n(164);
r(r.S + r.F * !n(165)(function (t) {
Array.from(t)
}), "Array", {
from: function (t) {
var e, n, r, d, p = o(t),
h = "function" == typeof this ? this : Array,
f = arguments.length,
m = f > 1 ? arguments[1] : void 0,
_ = void 0 !== m,
b = 0,
v = c(p);
if (_ && (m = i(m, f > 2 ? arguments[2] : void 0, 2)), void 0 == v || h == Array && s(v))
for (e = u(p.length), n = new h(e); e > b; b++) l(n, b, _ ? m(p[b], b) : p[b]);
else
for (d = v.call(p), n = new h; !(r = d.next())
.done; b++) l(n, b, _ ? a(d, m, [r.value, b], !0) : r.value);
return n.length = b, n
}
})
}, function (t, e, n) {
var i = n(12);
t.exports = function (t, e, n, r) {
try {
return r ? e(i(n)[0], n[1]) : e(n)
} catch (e) {
var o = t.return;
throw void 0 !== o && i(o.call(t)), e
}
}
}, function (t, e, n) {
var i = n(129),
r = n(25)("iterator"),
o = Array.prototype;
t.exports = function (t) {
return void 0 !== t && (i.Array === t || o[r] === t)
}
}, function (t, e, n) {
var i = n(11),
r = n(17);
t.exports = function (t, e, n) {
e in t ? i.f(t, e, r(0, n)) : t[e] = n
}
}, function (t, e, n) {
var i = n(75),
r = n(25)("iterator"),
o = n(129);
t.exports = n(9)
.getIteratorMethod = function (t) {
if (void 0 != t) return t[r] || t["@@iterator"] || o[i(t)]
}
}, function (t, e, n) {
var i = n(25)("iterator"),
r = !1;
try {
var o = [7][i]();
o.return = function () {
r = !0
}, Array.from(o, function () {
throw 2
})
} catch (t) {}
t.exports = function (t, e) {
if (!e && !r) return !1;
var n = !1;
try {
var o = [7],
a = o[i]();
a.next = function () {
return {
done: n = !0
}
}, o[i] = function () {
return a
}, t(o)
} catch (t) {}
return n
}
}, function (t, e, n) {
var i = n(8),
r = n(163);
i(i.S + i.F * n(7)(function () {
function t () {}
return !(Array.of.call(t) instanceof t)
}), "Array", {
of: function () {
for (var t = 0, e = arguments.length, n = new ("function" == typeof this ? this : Array)(e); e > t;) r(n, t, arguments[t++]);
return n.length = e, n
}
})
}, function (t, e, n) {
var i = n(8),
r = n(32),
o = [].join;
i(i.P + i.F * (n(33) != Object || !n(168)(o)), "Array", {
join: function (t) {
return o.call(r(this), void 0 === t ? "," : t)
}
})
}, function (t, e, n) {
var i = n(7);
t.exports = function (t, e) {
return !!t && i(function () {
e ? t.call(null, function () {}, 1) : t.call(null)
})
}
}, function (t, e, n) {
var i = n(8),
r = n(48),
o = n(34),
a = n(39),
s = n(37),
u = [].slice;
i(i.P + i.F * n(7)(function () {
r && u.call(r)
}), "Array", {
slice: function (t, e) {
var n = s(this.length),
i = o(this);
if (e = void 0 === e ? n : e, "Array" == i) return u.call(this, t, e);
for (var r = a(t, n), l = a(e, n), c = s(l - r), d = Array(c), p = 0; p < c; p++) d[p] = "String" == i ? this.charAt(r + p) : this[r + p];
return d
}
})
}, function (t, e, n) {
var i = n(8),
r = n(21),
o = n(58),
a = n(7),
s = [].sort,
u = [1, 2, 3];
i(i.P + i.F * (a(function () {
u.sort(void 0)
}) || !a(function () {
u.sort(null)
}) || !n(168)(s)), "Array", {
sort: function (t) {
return void 0 === t ? s.call(o(this)) : s.call(o(this), r(t))
}
})
}, function (t, e, n) {
var i = n(8),
r = n(172)(0),
o = n(168)([].forEach, !0);
i(i.P + i.F * !o, "Array", {
forEach: function (t) {
return r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(20),
r = n(33),
o = n(58),
a = n(37),
s = n(173);
t.exports = function (t, e) {
var n = 1 == t,
u = 2 == t,
l = 3 == t,
c = 4 == t,
d = 6 == t,
p = 5 == t || d,
h = e || s;
return function (e, s, f) {
for (var m, _, b = o(e), v = r(b), g = i(s, f, 3), y = a(v.length), w = 0, M = n ? h(e, y) : u ? h(e, 0) : void 0; y > w; w++)
if ((p || w in v) && (m = v[w], _ = g(m, w, b), t))
if (n) M[w] = _;
else if (_) switch (t) {
case 3:
return !0;
case 5:
return m;
case 6:
return w;
case 2:
M.push(m)
} else if (c) return !1;
return d ? -1 : l || c ? c : M
}
}
}, function (t, e, n) {
var i = n(174);
t.exports = function (t, e) {
return new (i(t))(e)
}
}, function (t, e, n) {
var i = n(13),
r = n(45),
o = n(25)("species");
t.exports = function (t) {
var e;
return r(t) && (e = t.constructor, "function" != typeof e || e !== Array && !r(e.prototype) || (e = void 0), i(e) && (e = e[o], null === e && (e = void 0))), void 0 === e ? Array : e
}
}, function (t, e, n) {
var i = n(8),
r = n(172)(1);
i(i.P + i.F * !n(168)([].map, !0), "Array", {
map: function (t) {
return r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(8),
r = n(172)(2);
i(i.P + i.F * !n(168)([].filter, !0), "Array", {
filter: function (t) {
return r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(8),
r = n(172)(3);
i(i.P + i.F * !n(168)([].some, !0), "Array", {
some: function (t) {
return r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(8),
r = n(172)(4);
i(i.P + i.F * !n(168)([].every, !0), "Array", {
every: function (t) {
return r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(8),
r = n(180);
i(i.P + i.F * !n(168)([].reduce, !0), "Array", {
reduce: function (t) {
return r(this, t, arguments.length, arguments[1], !1)
}
})
}, function (t, e, n) {
var i = n(21),
r = n(58),
o = n(33),
a = n(37);
t.exports = function (t, e, n, s, u) {
i(e);
var l = r(t),
c = o(l),
d = a(l.length),
p = u ? d - 1 : 0,
h = u ? -1 : 1;
if (n < 2)
for (; ;) {
if (p in c) {
s = c[p], p += h;
break
}
if (p += h, u ? p < 0 : d <= p) throw TypeError("Reduce of empty array with no initial value")
}
for (; u ? p >= 0 : d > p; p += h) p in c && (s = e(s, c[p], p, l));
return s
}
}, function (t, e, n) {
var i = n(8),
r = n(180);
i(i.P + i.F * !n(168)([].reduceRight, !0), "Array", {
reduceRight: function (t) {
return r(this, t, arguments.length, arguments[1], !0)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(36)(!1),
o = [].indexOf,
a = !!o && 1 / [1].indexOf(1, -0) < 0;
i(i.P + i.F * (a || !n(168)(o)), "Array", {
indexOf: function (t) {
return a ? o.apply(this, arguments) || 0 : r(this, t, arguments[1])
}
})
}, function (t, e, n) {
var i = n(8),
r = n(32),
o = n(38),
a = n(37),
s = [].lastIndexOf,
u = !!s && 1 / [1].lastIndexOf(1, -0) < 0;
i(i.P + i.F * (u || !n(168)(s)), "Array", {
lastIndexOf: function (t) {
if (u) return s.apply(this, arguments) || 0;
var e = r(this),
n = a(e.length),
i = n - 1;
for (arguments.length > 1 && (i = Math.min(i, o(arguments[1]))), i < 0 && (i = n + i); i >= 0; i--)
if (i in e && e[i] === t) return i || 0;
return -1
}
})
}, function (t, e, n) {
var i = n(8);
i(i.P, "Array", {
copyWithin: n(185)
}), n(186)("copyWithin")
}, function (t, e, n) {
var i = n(58),
r = n(39),
o = n(37);
t.exports = [].copyWithin || function (t, e) {
var n = i(this),
a = o(n.length),
s = r(t, a),
u = r(e, a),
l = arguments.length > 2 ? arguments[2] : void 0,
c = Math.min((void 0 === l ? a : r(l, a)) - u, a - s),
d = 1;
for (u < s && s < u + c && (d = -1, u += c - 1, s += c - 1); c-- > 0;) u in n ? n[s] = n[u] : delete n[s], s += d, u += d;
return n
}
}, function (t, e, n) {
var i = n(25)("unscopables"),
r = Array.prototype;
void 0 == r[i] && n(10)(r, i, {}), t.exports = function (t) {
r[i][t] = !0
}
}, function (t, e, n) {
var i = n(8);
i(i.P, "Array", {
fill: n(188)
}), n(186)("fill")
}, function (t, e, n) {
var i = n(58),
r = n(39),
o = n(37);
t.exports = function (t) {
for (var e = i(this), n = o(e.length), a = arguments.length, s = r(a > 1 ? arguments[1] : void 0, n), u = a > 2 ? arguments[2] : void 0, l = void 0 === u ? n : r(u, n); l > s;) e[s++] = t;
return e
}
}, function (t, e, n) {
var i = n(8),
r = n(172)(5),
o = "find",
a = !0;
o in [] && Array(1)[o](function () {
a = !1
}), i(i.P + i.F * a, "Array", {
find: function (t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}), n(186)(o)
}, function (t, e, n) {
var i = n(8),
r = n(172)(6),
o = "findIndex",
a = !0;
o in [] && Array(1)[o](function () {
a = !1
}), i(i.P + i.F * a, "Array", {
findIndex: function (t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}), n(186)(o)
}, function (t, e, n) {
n(192)("Array")
}, function (t, e, n) {
var i = n(4),
r = n(11),
o = n(6),
a = n(25)("species");
t.exports = function (t) {
var e = i[t];
o && e && !e[a] && r.f(e, a, {
configurable: !0,
get: function () {
return this
}
})
}
}, function (t, e, n) {
var i = n(186),
r = n(194),
o = n(129),
a = n(32);
t.exports = n(128)(Array, "Array", function (t, e) {
this._t = a(t), this._i = 0, this._k = e
}, function () {
var t = this._t,
e = this._k,
n = this._i++;
return !t || n >= t.length ? (this._t = void 0, r(1)) : "keys" == e ? r(0, n) : "values" == e ? r(0, t[n]) : r(0, [n, t[n]])
}, "values"), o.Arguments = o.Array, i("keys"), i("values"), i("entries")
}, function (t, e) {
t.exports = function (t, e) {
return {
value: e,
done: !!t
}
}
}, function (t, e, n) {
var i = n(4),
r = n(88),
o = n(11)
.f,
a = n(50)
.f,
s = n(134),
u = n(196),
l = i.RegExp,
c = l,
d = l.prototype,
p = /a/g,
h = /a/g,
f = new l(p) !== p;
if (n(6) && (!f || n(7)(function () {
return h[n(25)("match")] = !1, l(p) != p || l(h) == h || "/a/i" != l(p, "i")
}))) {
l = function (t, e) {
var n = this instanceof l,
i = s(t),
o = void 0 === e;
return !n && i && t.constructor === l && o ? t : r(f ? new c(i && !o ? t.source : t, e) : c((i = t instanceof l) ? t.source : t, i && o ? u.call(t) : e), n ? this : d, l)
};
for (var m = (function (t) {
t in l || o(l, t, {
configurable: !0,
get: function () {
return c[t]
},
set: function (e) {
c[t] = e
}
})
}), _ = a(c), b = 0; _.length > b;) m(_[b++]);
d.constructor = l, l.prototype = d, n(18)(i, "RegExp", l)
}
n(192)("RegExp")
}, function (t, e, n) {
var i = n(12);
t.exports = function () {
var t = i(this),
e = "";
return t.global && (e += "g"), t.ignoreCase && (e += "i"), t.multiline && (e += "m"), t.unicode && (e += "u"), t.sticky && (e += "y"), e
}
}, function (t, e, n) {
n(198);
var i = n(12),
r = n(196),
o = n(6),
a = "toString",
s = /./ [a],
u = function (t) {
n(18)(RegExp.prototype, a, t, !0)
};
n(7)(function () {
return "/a/b" != s.call({
source: "a",
flags: "b"
})
}) ? u(function () {
var t = i(this);
return "/".concat(t.source, "/", "flags" in t ? t.flags : !o && t instanceof RegExp ? r.call(t) : void 0)
}) : s.name != a && u(function () {
return s.call(this)
})
}, function (t, e, n) {
n(6) && "g" != /./g.flags && n(11)
.f(RegExp.prototype, "flags", {
configurable: !0,
get: n(196)
})
}, function (t, e, n) {
n(200)("match", 1, function (t, e, n) {
return [function (n) {
var i = t(this),
r = void 0 == n ? void 0 : n[e];
return void 0 !== r ? r.call(n, i) : new RegExp(n)[e](String(i))
}, n]
})
}, function (t, e, n) {
var i = n(10),
r = n(18),
o = n(7),
a = n(35),
s = n(25);
t.exports = function (t, e, n) {
var u = s(t),
l = n(a, u, "" [t]),
c = l[0],
d = l[1];
o(function () {
var e = {};
return e[u] = function () {
return 7
}, 7 != "" [t](e)
}) && (r(String.prototype, t, c), i(RegExp.prototype, u, 2 == e ? function (t, e) {
return d.call(t, this, e)
} : function (t) {
return d.call(t, this)
}))
}
}, function (t, e, n) {
n(200)("replace", 2, function (t, e, n) {
return [function (i, r) {
var o = t(this),
a = void 0 == i ? void 0 : i[e];
return void 0 !== a ? a.call(i, o, r) : n.call(String(o), i, r)
}, n]
})
}, function (t, e, n) {
n(200)("search", 1, function (t, e, n) {
return [function (n) {
var i = t(this),
r = void 0 == n ? void 0 : n[e];
return void 0 !== r ? r.call(n, i) : new RegExp(n)[e](String(i))
}, n]
})
}, function (t, e, n) {
n(200)("split", 2, function (t, e, i) {
var r = n(134),
o = i,
a = [].push,
s = "split",
u = "length",
l = "lastIndex";
if ("c" == "abbc" [s](/(b)*/)[1] || 4 != "test" [s](/(?:)/, -1)[u] || 2 != "ab" [s](/(?:ab)*/)[u] || 4 != "." [s](/(.?)(.?)/)[u] || "." [s](/()()/)[u] > 1 || "" [s](/.?/)[u]) {
var c = void 0 === /()??/.exec("")[1];
i = function (t, e) {
var n = String(this);
if (void 0 === t && 0 === e) return [];
if (!r(t)) return o.call(n, t, e);
var i, s, d, p, h, f = [],
m = (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.unicode ? "u" : "") + (t.sticky ? "y" : ""),
_ = 0,
b = void 0 === e ? 4294967295 : e >>> 0,
v = new RegExp(t.source, m + "g");
for (c || (i = new RegExp("^" + v.source + "$(?!\\s)", m));
(s = v.exec(n)) && (d = s.index + s[0][u], !(d > _ && (f.push(n.slice(_, s.index)), !c && s[u] > 1 && s[0].replace(i, function () {
for (h = 1; h < arguments[u] - 2; h++) void 0 === arguments[h] && (s[h] = void 0)
}), s[u] > 1 && s.index < n[u] && a.apply(f, s.slice(1)), p = s[0][u], _ = d, f[u] >= b)));) v[l] === s.index && v[l]++;
return _ === n[u] ? !p && v.test("") || f.push("") : f.push(n.slice(_)), f[u] > b ? f.slice(0, b) : f
}
} else "0" [s](void 0, 0)[u] && (i = function (t, e) {
return void 0 === t && 0 === e ? [] : o.call(this, t, e)
});
return [function (n, r) {
var o = t(this),
a = void 0 == n ? void 0 : n[e];
return void 0 !== a ? a.call(n, o, r) : i.call(String(o), n, r)
}, i]
})
}, function (t, e, n) {
var i, r, o, a = n(28),
s = n(4),
u = n(20),
l = n(75),
c = n(8),
d = n(13),
p = n(21),
h = n(205),
f = n(206),
m = n(207),
_ = n(208)
.set,
b = n(209)(),
v = "Promise",
g = s.TypeError,
y = s.process,
w = s[v],
y = s.process,
M = "process" == l(y),
T = function () {},
k = !!function () {
try {
var t = w.resolve(1),
e = (t.constructor = {})[n(25)("species")] = function (t) {
t(T, T)
};
return (M || "function" == typeof PromiseRejectionEvent) && t.then(T) instanceof e
} catch (t) {}
}(),
S = function (t, e) {
return t === e || t === w && e === o
},
L = function (t) {
var e;
return !(!d(t) || "function" != typeof (e = t.then)) && e
},
x = function (t) {
return S(w, t) ? new D(t) : new r(t)
},
D = r = function (t) {
var e, n;
this.promise = new t(function (t, i) {
if (void 0 !== e || void 0 !== n) throw g("Bad Promise constructor");
e = t, n = i
}), this.resolve = p(e), this.reject = p(n)
},
E = function (t) {
try {
t()
} catch (t) {
return {
error: t
}
}
},
Y = function (t, e) {
if (!t._n) {
t._n = !0;
var n = t._c;
b(function () {
for (var i = t._v, r = 1 == t._s, o = 0, a = function (e) {
var n, o, a = r ? e.ok : e.fail,
s = e.resolve,
u = e.reject,
l = e.domain;
try {
a ? (r || (2 == t._h && j(t), t._h = 1), a === !0 ? n = i : (l && l.enter(), n = a(i), l && l.exit()), n === e.promise ? u(g("Promise-chain cycle")) : (o = L(n)) ? o.call(n, s, u) : s(n)) : u(i)
} catch (t) {
u(t)
}
}; n.length > o;) a(n[o++]);
t._c = [], t._n = !1, e && !t._h && C(t)
})
}
},
C = function (t) {
_.call(s, function () {
var e, n, i, r = t._v;
if (P(t) && (e = E(function () {
M ? y.emit("unhandledRejection", r, t) : (n = s.onunhandledrejection) ? n({
promise: t,
reason: r
}) : (i = s.console) && i.error && i.error("Unhandled promise rejection", r)
}), t._h = M || P(t) ? 2 : 1), t._a = void 0, e) throw e.error
})
},
P = function (t) {
if (1 == t._h) return !1;
for (var e, n = t._a || t._c, i = 0; n.length > i;)
if (e = n[i++], e.fail || !P(e.promise)) return !1;
return !0
},
j = function (t) {
_.call(s, function () {
var e;
M ? y.emit("rejectionHandled", t) : (e = s.onrejectionhandled) && e({
promise: t,
reason: t._v
})
})
},
A = function (t) {
var e = this;
e._d || (e._d = !0, e = e._w || e, e._v = t, e._s = 2, e._a || (e._a = e._c.slice()), Y(e, !0))
},
F = function (t) {
var e, n = this;
if (!n._d) {
n._d = !0, n = n._w || n;
try {
if (n === t) throw g("Promise can't be resolved itself");
(e = L(t)) ? b(function () {
var i = {
_w: n,
_d: !1
};
try {
e.call(t, u(F, i, 1), u(A, i, 1))
} catch (t) {
A.call(i, t)
}
}) : (n._v = t, n._s = 1, Y(n, !1))
} catch (t) {
A.call({
_w: n,
_d: !1
}, t)
}
}
};
k || (w = function (t) {
h(this, w, v, "_h"), p(t), i.call(this);
try {
t(u(F, this, 1), u(A, this, 1))
} catch (t) {
A.call(this, t)
}
}, i = function (t) {
this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1
}, i.prototype = n(210)(w.prototype, {
then: function (t, e) {
var n = x(m(this, w));
return n.ok = "function" != typeof t || t, n.fail = "function" == typeof e && e, n.domain = M ? y.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && Y(this, !1), n.promise
},
catch: function (t) {
return this.then(void 0, t)
}
}), D = function () {
var t = new i;
this.promise = t, this.resolve = u(F, t, 1), this.reject = u(A, t, 1)
}), c(c.G + c.W + c.F * !k, {
Promise: w
}), n(24)(w, v), n(192)(v), o = n(9)[v], c(c.S + c.F * !k, v, {
reject: function (t) {
var e = x(this),
n = e.reject;
return n(t), e.promise
}
}), c(c.S + c.F * (a || !k), v, {
resolve: function (t) {
if (t instanceof w && S(t.constructor, this)) return t;
var e = x(this),
n = e.resolve;
return n(t), e.promise
}
}), c(c.S + c.F * !(k && n(165)(function (t) {
w.all(t)
.catch(T)
})), v, {
all: function (t) {
var e = this,
n = x(e),
i = n.resolve,
r = n.reject,
o = E(function () {
var n = [],
o = 0,
a = 1;
f(t, !1, function (t) {
var s = o++,
u = !1;
n.push(void 0), a++, e.resolve(t)
.then(function (t) {
u || (u = !0, n[s] = t, --a || i(n))
}, r)
}), --a || i(n)
});
return o && r(o.error), n.promise
},
race: function (t) {
var e = this,
n = x(e),
i = n.reject,
r = E(function () {
f(t, !1, function (t) {
e.resolve(t)
.then(n.resolve, i)
})
});
return r && i(r.error), n.promise
}
})
}, function (t, e) {
t.exports = function (t, e, n, i) {
if (!(t instanceof e) || void 0 !== i && i in t) throw TypeError(n + ": incorrect invocation!");
return t
}
}, function (t, e, n) {
var i = n(20),
r = n(161),
o = n(162),
a = n(12),
s = n(37),
u = n(164),
l = {},
c = {},
e = t.exports = function (t, e, n, d, p) {
var h, f, m, _, b = p ? function () {
return t
} : u(t),
v = i(n, d, e ? 2 : 1),
g = 0;
if ("function" != typeof b) throw TypeError(t + " is not iterable!");
if (o(b)) {
for (h = s(t.length); h > g; g++)
if (_ = e ? v(a(f = t[g])[0], f[1]) : v(t[g]), _ === l || _ === c) return _
} else
for (m = b.call(t); !(f = m.next())
.done;)
if (_ = r(m, v, f.value, e), _ === l || _ === c) return _
};
e.BREAK = l, e.RETURN = c
}, function (t, e, n) {
var i = n(12),
r = n(21),
o = n(25)("species");
t.exports = function (t, e) {
var n, a = i(t)
.constructor;
return void 0 === a || void 0 == (n = i(a)[o]) ? e : r(n)
}
}, function (t, e, n) {
var i, r, o, a = n(20),
s = n(78),
u = n(48),
l = n(15),
c = n(4),
d = c.process,
p = c.setImmediate,
h = c.clearImmediate,
f = c.MessageChannel,
m = 0,
_ = {},
b = "onreadystatechange",
v = function () {
var t = +this;
if (_.hasOwnProperty(t)) {
var e = _[t];
delete _[t], e()
}
},
g = function (t) {
v.call(t.data)
};
p && h || (p = function (t) {
for (var e = [], n = 1; arguments.length > n;) e.push(arguments[n++]);
return _[++m] = function () {
s("function" == typeof t ? t : Function(t), e)
}, i(m), m
}, h = function (t) {
delete _[t]
}, "process" == n(34)(d) ? i = function (t) {
d.nextTick(a(v, t, 1))
} : f ? (r = new f, o = r.port2, r.port1.onmessage = g, i = a(o.postMessage, o, 1)) : c.addEventListener && "function" == typeof postMessage && !c.importScripts ? (i = function (t) {
c.postMessage(t + "", "*")
}, c.addEventListener("message", g, !1)) : i = b in l("script") ? function (t) {
u.appendChild(l("script"))[b] = function () {
u.removeChild(this), v.call(t)
}
} : function (t) {
setTimeout(a(v, t, 1), 0)
}), t.exports = {
set: p,
clear: h
}
}, function (t, e, n) {
var i = n(4),
r = n(208)
.set,
o = i.MutationObserver || i.WebKitMutationObserver,
a = i.process,
s = i.Promise,
u = "process" == n(34)(a);
t.exports = function () {
var t, e, n, l = function () {
var i, r;
for (u && (i = a.domain) && i.exit(); t;) {
r = t.fn, t = t.next;
try {
r()
} catch (i) {
throw t ? n() : e = void 0, i
}
}
e = void 0, i && i.enter()
};
if (u) n = function () {
a.nextTick(l)
};
else if (o) {
var c = !0,
d = document.createTextNode("");
new o(l)
.observe(d, {
characterData: !0
}), n = function () {
d.data = c = !c
}
} else if (s && s.resolve) {
var p = s.resolve();
n = function () {
p.then(l)
}
} else n = function () {
r.call(i, l)
};
return function (i) {
var r = {
fn: i,
next: void 0
};
e && (e.next = r), t || (t = r, n()), e = r
}
}
}, function (t, e, n) {
var i = n(18);
t.exports = function (t, e, n) {
for (var r in e) i(t, r, e[r], n);
return t
}
}, function (t, e, n) {
var i = n(212);
t.exports = n(213)("Map", function (t) {
return function () {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
get: function (t) {
var e = i.getEntry(this, t);
return e && e.v
},
set: function (t, e) {
return i.def(this, 0 === t ? 0 : t, e)
}
}, i, !0)
}, function (t, e, n) {
var i = n(11)
.f,
r = n(46),
o = n(210),
a = n(20),
s = n(205),
u = n(35),
l = n(206),
c = n(128),
d = n(194),
p = n(192),
h = n(6),
f = n(22)
.fastKey,
m = h ? "_s" : "size",
_ = function (t, e) {
var n, i = f(e);
if ("F" !== i) return t._i[i];
for (n = t._f; n; n = n.n)
if (n.k == e) return n
};
t.exports = {
getConstructor: function (t, e, n, c) {
var d = t(function (t, i) {
s(t, d, e, "_i"), t._i = r(null), t._f = void 0, t._l = void 0, t[m] = 0, void 0 != i && l(i, n, t[c], t)
});
return o(d.prototype, {
clear: function () {
for (var t = this, e = t._i, n = t._f; n; n = n.n) n.r = !0, n.p && (n.p = n.p.n = void 0), delete e[n.i];
t._f = t._l = void 0, t[m] = 0
},
delete: function (t) {
var e = this,
n = _(e, t);
if (n) {
var i = n.n,
r = n.p;
delete e._i[n.i], n.r = !0, r && (r.n = i), i && (i.p = r), e._f == n && (e._f = i), e._l == n && (e._l = r), e[m]--
}
return !!n
},
forEach: function (t) {
s(this, d, "forEach");
for (var e, n = a(t, arguments.length > 1 ? arguments[1] : void 0, 3); e = e ? e.n : this._f;)
for (n(e.v, e.k, this); e && e.r;) e = e.p
},
has: function (t) {
return !!_(this, t)
}
}), h && i(d.prototype, "size", {
get: function () {
return u(this[m])
}
}), d
},
def: function (t, e, n) {
var i, r, o = _(t, e);
return o ? o.v = n : (t._l = o = {
i: r = f(e, !0),
k: e,
v: n,
p: i = t._l,
n: void 0,
r: !1
}, t._f || (t._f = o), i && (i.n = o), t[m]++, "F" !== r && (t._i[r] = o)), t
},
getEntry: _,
setStrong: function (t, e, n) {
c(t, e, function (t, e) {
this._t = t, this._k = e, this._l = void 0
}, function () {
for (var t = this, e = t._k, n = t._l; n && n.r;) n = n.p;
return t._t && (t._l = n = n ? n.n : t._t._f) ? "keys" == e ? d(0, n.k) : "values" == e ? d(0, n.v) : d(0, [n.k, n.v]) : (t._t = void 0, d(1))
}, n ? "entries" : "values", !n, !0), p(e)
}
}
}, function (t, e, n) {
var i = n(4),
r = n(8),
o = n(18),
a = n(210),
s = n(22),
u = n(206),
l = n(205),
c = n(13),
d = n(7),
p = n(165),
h = n(24),
f = n(88);
t.exports = function (t, e, n, m, _, b) {
var v = i[t],
g = v,
y = _ ? "set" : "add",
w = g && g.prototype,
M = {},
T = function (t) {
var e = w[t];
o(w, t, "delete" == t ? function (t) {
return !(b && !c(t)) && e.call(this, 0 === t ? 0 : t)
} : "has" == t ? function (t) {
return !(b && !c(t)) && e.call(this, 0 === t ? 0 : t)
} : "get" == t ? function (t) {
return b && !c(t) ? void 0 : e.call(this, 0 === t ? 0 : t)
} : "add" == t ? function (t) {
return e.call(this, 0 === t ? 0 : t), this
} : function (t, n) {
return e.call(this, 0 === t ? 0 : t, n), this
})
};
if ("function" == typeof g && (b || w.forEach && !d(function () {
(new g)
.entries()
.next()
}))) {
var k = new g,
S = k[y](b ? {} : -0, 1) != k,
L = d(function () {
k.has(1)
}),
x = p(function (t) {
new g(t)
}),
D = !b && d(function () {
for (var t = new g, e = 5; e--;) t[y](e, e);
return !t.has(-0)
});
x || (g = e(function (e, n) {
l(e, g, t);
var i = f(new v, e, g);
return void 0 != n && u(n, _, i[y], i), i
}), g.prototype = w, w.constructor = g), (L || D) && (T("delete"), T("has"), _ && T("get")), (D || S) && T(y), b && w.clear && delete w.clear
} else g = m.getConstructor(e, t, _, y), a(g.prototype, n), s.NEED = !0;
return h(g, t), M[t] = g, r(r.G + r.W + r.F * (g != v), M), b || m.setStrong(g, t, _), g
}
}, function (t, e, n) {
var i = n(212);
t.exports = n(213)("Set", function (t) {
return function () {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function (t) {
return i.def(this, t = 0 === t ? 0 : t, t)
}
}, i)
}, function (t, e, n) {
var i, r = n(172)(0),
o = n(18),
a = n(22),
s = n(69),
u = n(216),
l = n(13),
c = a.getWeak,
d = Object.isExtensible,
p = u.ufstore,
h = {},
f = function (t) {
return function () {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
},
m = {
get: function (t) {
if (l(t)) {
var e = c(t);
return e === !0 ? p(this)
.get(t) : e ? e[this._i] : void 0
}
},
set: function (t, e) {
return u.def(this, t, e)
}
},
_ = t.exports = n(213)("WeakMap", f, m, u, !0, !0);
7 != (new _)
.set((Object.freeze || Object)(h), 7)
.get(h) && (i = u.getConstructor(f), s(i.prototype, m), a.NEED = !0, r(["delete", "has", "get", "set"], function (t) {
var e = _.prototype,
n = e[t];
o(e, t, function (e, r) {
if (l(e) && !d(e)) {
this._f || (this._f = new i);
var o = this._f[t](e, r);
return "set" == t ? this : o
}
return n.call(this, e, r)
})
}))
}, function (t, e, n) {
var i = n(210),
r = n(22)
.getWeak,
o = n(12),
a = n(13),
s = n(205),
u = n(206),
l = n(172),
c = n(5),
d = l(5),
p = l(6),
h = 0,
f = function (t) {
return t._l || (t._l = new m)
},
m = function () {
this.a = []
},
_ = function (t, e) {
return d(t.a, function (t) {
return t[0] === e
})
};
m.prototype = {
get: function (t) {
var e = _(this, t);
if (e) return e[1]
},
has: function (t) {
return !!_(this, t)
},
set: function (t, e) {
var n = _(this, t);
n ? n[1] = e : this.a.push([t, e])
},
delete: function (t) {
var e = p(this.a, function (e) {
return e[0] === t
});
return ~e && this.a.splice(e, 1), !!~e
}
}, t.exports = {
getConstructor: function (t, e, n, o) {
var l = t(function (t, i) {
s(t, l, e, "_i"), t._i = h++, t._l = void 0, void 0 != i && u(i, n, t[o], t)
});
return i(l.prototype, {
delete: function (t) {
if (!a(t)) return !1;
var e = r(t);
return e === !0 ? f(this)
.delete(t) : e && c(e, this._i) && delete e[this._i]
},
has: function (t) {
if (!a(t)) return !1;
var e = r(t);
return e === !0 ? f(this)
.has(t) : e && c(e, this._i)
}
}), l
},
def: function (t, e, n) {
var i = r(o(e), !0);
return i === !0 ? f(t)
.set(e, n) : i[t._i] = n, t
},
ufstore: f
}
}, function (t, e, n) {
var i = n(216);
n(213)("WeakSet", function (t) {
return function () {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function (t) {
return i.def(this, t, !0)
}
}, i, !1, !0)
}, function (t, e, n) {
var i = n(8),
r = n(219),
o = n(220),
a = n(12),
s = n(39),
u = n(37),
l = n(13),
c = n(4)
.ArrayBuffer,
d = n(207),
p = o.ArrayBuffer,
h = o.DataView,
f = r.ABV && c.isView,
m = p.prototype.slice,
_ = r.VIEW,
b = "ArrayBuffer";
i(i.G + i.W + i.F * (c !== p), {
ArrayBuffer: p
}), i(i.S + i.F * !r.CONSTR, b, {
isView: function (t) {
return f && f(t) || l(t) && _ in t
}
}), i(i.P + i.U + i.F * n(7)(function () {
return !new p(2)
.slice(1, void 0)
.byteLength
}), b, {
slice: function (t, e) {
if (void 0 !== m && void 0 === e) return m.call(a(this), t);
for (var n = a(this)
.byteLength, i = s(t, n), r = s(void 0 === e ? n : e, n), o = new (d(this, p))(u(r - i)), l = new h(this), c = new h(o), f = 0; i < r;) c.setUint8(f++, l.getUint8(i++));
return o
}
}), n(192)(b)
}, function (t, e, n) {
for (var i, r = n(4), o = n(10), a = n(19), s = a("typed_array"), u = a("view"), l = !(!r.ArrayBuffer || !r.DataView), c = l, d = 0, p = 9, h = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); d < p;)(i = r[h[d++]]) ? (o(i.prototype, s, !0), o(i.prototype, u, !0)) : c = !1;
t.exports = {
ABV: l,
CONSTR: c,
TYPED: s,
VIEW: u
}
}, function (t, e, n) {
var i = n(4),
r = n(6),
o = n(28),
a = n(219),
s = n(10),
u = n(210),
l = n(7),
c = n(205),
d = n(38),
p = n(37),
h = n(50)
.f,
f = n(11)
.f,
m = n(188),
_ = n(24),
b = "ArrayBuffer",
v = "DataView",
g = "prototype",
y = "Wrong length!",
w = "Wrong index!",
M = i[b],
T = i[v],
k = i.Math,
S = i.RangeError,
L = i.Infinity,
x = M,
D = k.abs,
E = k.pow,
Y = k.floor,
C = k.log,
P = k.LN2,
j = "buffer",
A = "byteLength",
F = "byteOffset",
O = r ? "_b" : j,
I = r ? "_l" : A,
N = r ? "_o" : F,
U = function (t, e, n) {
var i, r, o, a = Array(n),
s = 8 * n - e - 1,
u = (1 << s) - 1,
l = u >> 1,
c = 23 === e ? E(2, -24) - E(2, -77) : 0,
d = 0,
p = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
for (t = D(t), t != t || t === L ? (r = t != t ? 1 : 0, i = u) : (i = Y(C(t) / P), t * (o = E(2, -i)) < 1 && (i--, o *= 2), t += i + l >= 1 ? c / o : c * E(2, 1 - l), t * o >= 2 && (i++, o /= 2), i + l >= u ? (r = 0, i = u): i +l >= 1 ? (r = (t * o - 1) * E(2, e), i += l) : (r = t * E(2, l - 1) * E(2, e), i = 0)); e >= 8; a[d++] = 255 & r, r /= 256, e -= 8);
for (i = i << e | r, s += e; s > 0; a[d++] = 255 & i, i /= 256, s -= 8);
return a[--d] |= 128 * p, a
},
R = function (t, e, n) {
var i, r = 8 * n - e - 1,
o = (1 << r) - 1,
a = o >> 1,
s = r - 7,
u = n - 1,
l = t[u--],
c = 127 & l;
for (l >>= 7; s > 0; c = 256 * c + t[u], u--, s -= 8);
for (i = c & (1 << -s) - 1, c >>= -s, s += e; s > 0; i = 256 * i + t[u], u--, s -= 8);
if (0 === c) c = 1 - a;
else {
if (c === o) return i ? NaN : l ? -L : L;
i += E(2, e), c -= a
}
return (l ? -1 : 1) * i * E(2, c - e)
},
H = function (t) {
return t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0]
},
W = function (t) {
return [255 & t]
},
B = function (t) {
return [255 & t, t >> 8 & 255]
},
q = function (t) {
return [255 & t, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255]
},
z = function (t) {
return U(t, 52, 8)
},
V = function (t) {
return U(t, 23, 4)
},
G = function (t, e, n) {
f(t[g], e, {
get: function () {
return this[n]
}
})
},
$ = function (t, e, n, i) {
var r = +n,
o = d(r);
if (r != o || o < 0 || o + e > t[I]) throw S(w);
var a = t[O]._b,
s = o + t[N],
u = a.slice(s, s + e);
return i ? u : u.reverse()
},
J = function (t, e, n, i, r, o) {
var a = +n,
s = d(a);
if (a != s || s < 0 || s + e > t[I]) throw S(w);
for (var u = t[O]._b, l = s + t[N], c = i(+r), p = 0; p < e; p++) u[l + p] = c[o ? p : e - p - 1]
},
K = function (t, e) {
c(t, M, b);
var n = +e,
i = p(n);
if (n != i) throw S(y);
return i
};
if (a.ABV) {
if (!l(function () {
new M
}) || !l(function () {
new M(.5)
})) {
M = function (t) {
return new x(K(this, t))
};
for (var X, Q = M[g] = x[g], Z = h(x), tt = 0; Z.length > tt;)(X = Z[tt++]) in M || s(M, X, x[X]);
o || (Q.constructor = M)
}
var et = new T(new M(2)),
nt = T[g].setInt8;
et.setInt8(0, 2147483648), et.setInt8(1, 2147483649), !et.getInt8(0) && et.getInt8(1) || u(T[g], {
setInt8: function (t, e) {
nt.call(this, t, e << 24 >> 24)
},
setUint8: function (t, e) {
nt.call(this, t, e << 24 >> 24)
}
}, !0)
} else M = function (t) {
var e = K(this, t);
this._b = m.call(Array(e), 0), this[I] = e
}, T = function (t, e, n) {
c(this, T, v), c(t, M, v);
var i = t[I],
r = d(e);
if (r < 0 || r > i) throw S("Wrong offset!");
if (n = void 0 === n ? i - r : p(n), r + n > i) throw S(y);
this[O] = t, this[N] = r, this[I] = n
}, r && (G(M, A, "_l"), G(T, j, "_b"), G(T, A, "_l"), G(T, F, "_o")), u(T[g], {
getInt8: function (t) {
return $(this, 1, t)[0] << 24 >> 24
},
getUint8: function (t) {
return $(this, 1, t)[0]
},
getInt16: function (t) {
var e = $(this, 2, t, arguments[1]);
return (e[1] << 8 | e[0]) << 16 >> 16
},
getUint16: function (t) {
var e = $(this, 2, t, arguments[1]);
return e[1] << 8 | e[0]
},
getInt32: function (t) {
return H($(this, 4, t, arguments[1]))
},
getUint32: function (t) {
return H($(this, 4, t, arguments[1])) >>> 0
},
getFloat32: function (t) {
return R($(this, 4, t, arguments[1]), 23, 4)
},
getFloat64: function (t) {
return R($(this, 8, t, arguments[1]), 52, 8)
},
setInt8: function (t, e) {
J(this, 1, t, W, e)
},
setUint8: function (t, e) {
J(this, 1, t, W, e)
},
setInt16: function (t, e) {
J(this, 2, t, B, e, arguments[2])
},
setUint16: function (t, e) {
J(this, 2, t, B, e, arguments[2])
},
setInt32: function (t, e) {
J(this, 4, t, q, e, arguments[2])
},
setUint32: function (t, e) {
J(this, 4, t, q, e, arguments[2])
},
setFloat32: function (t, e) {
J(this, 4, t, V, e, arguments[2])
},
setFloat64: function (t, e) {
J(this, 8, t, z, e, arguments[2])
}
});
_(M, b), _(T, v), s(T[g], a.VIEW, !0), e[b] = M, e[v] = T
}, function (t, e, n) {
var i = n(8);
i(i.G + i.W + i.F * !n(219)
.ABV, {
DataView: n(220)
.DataView
})
}, function (t, e, n) {
n(223)("Int8", 1, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
if (n(6)) {
var i = n(28),
r = n(4),
o = n(7),
a = n(8),
s = n(219),
u = n(220),
l = n(20),
c = n(205),
d = n(17),
p = n(10),
h = n(210),
f = n(38),
m = n(37),
_ = n(39),
b = n(16),
v = n(5),
g = n(71),
y = n(75),
w = n(13),
M = n(58),
T = n(162),
k = n(46),
S = n(59),
L = n(50)
.f,
x = n(164),
D = n(19),
E = n(25),
Y = n(172),
C = n(36),
P = n(207),
j = n(193),
A = n(129),
F = n(165),
O = n(192),
I = n(188),
N = n(185),
U = n(11),
R = n(51),
H = U.f,
W = R.f,
B = r.RangeError,
q = r.TypeError,
z = r.Uint8Array,
V = "ArrayBuffer",
G = "Shared" + V,
$ = "BYTES_PER_ELEMENT",
J = "prototype",
K = Array[J],
X = u.ArrayBuffer,
Q = u.DataView,
Z = Y(0),
tt = Y(2),
et = Y(3),
nt = Y(4),
it = Y(5),
rt = Y(6),
ot = C(!0),
at = C(!1),
st = j.values,
ut = j.keys,
lt = j.entries,
ct = K.lastIndexOf,
dt = K.reduce,
pt = K.reduceRight,
ht = K.join,
ft = K.sort,
mt = K.slice,
_t = K.toString,
bt = K.toLocaleString,
vt = E("iterator"),
gt = E("toStringTag"),
yt = D("typed_constructor"),
wt = D("def_constructor"),
Mt = s.CONSTR,
Tt = s.TYPED,
kt = s.VIEW,
St = "Wrong length!",
Lt = Y(1, function (t, e) {
return Pt(P(t, t[wt]), e)
}),
xt = o(function () {
return 1 === new z(new Uint16Array([1])
.buffer)[0]
}),
Dt = !!z && !!z[J].set && o(function () {
new z(1)
.set({})
}),
Et = function (t, e) {
if (void 0 === t) throw q(St);
var n = +t,
i = m(t);
if (e && !g(n, i)) throw B(St);
return i
},
Yt = function (t, e) {
var n = f(t);
if (n < 0 || n % e) throw B("Wrong offset!");
return n
},
Ct = function (t) {
if (w(t) && Tt in t) return t;
throw q(t + " is not a typed array!")
},
Pt = function (t, e) {
if (!(w(t) && yt in t)) throw q("It is not a typed array constructor!");
return new t(e)
},
jt = function (t, e) {
return At(P(t, t[wt]), e)
},
At = function (t, e) {
for (var n = 0, i = e.length, r = Pt(t, i); i > n;) r[n] = e[n++];
return r
},
Ft = function (t, e, n) {
H(t, e, {
get: function () {
return this._d[n]
}
})
},
Ot = function (t) {
var e, n, i, r, o, a, s = M(t),
u = arguments.length,
c = u > 1 ? arguments[1] : void 0,
d = void 0 !== c,
p = x(s);
if (void 0 != p && !T(p)) {
for (a = p.call(s), i = [], e = 0; !(o = a.next())
.done; e++) i.push(o.value);
s = i
}
for (d && u > 2 && (c = l(c, arguments[2], 2)), e = 0, n = m(s.length), r = Pt(this, n); n > e; e++) r[e] = d ? c(s[e], e) : s[e];
return r
},
It = function () {
for (var t = 0, e = arguments.length, n = Pt(this, e); e > t;) n[t] = arguments[t++];
return n
},
Nt = !!z && o(function () {
bt.call(new z(1))
}),
Ut = function () {
return bt.apply(Nt ? mt.call(Ct(this)) : Ct(this), arguments)
},
Rt = {
copyWithin: function (t, e) {
return N.call(Ct(this), t, e, arguments.length > 2 ? arguments[2] : void 0)
},
every: function (t) {
return nt(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
fill: function (t) {
return I.apply(Ct(this), arguments)
},
filter: function (t) {
return jt(this, tt(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0))
},
find: function (t) {
return it(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
findIndex: function (t) {
return rt(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
forEach: function (t) {
Z(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
indexOf: function (t) {
return at(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
includes: function (t) {
return ot(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
join: function (t) {
return ht.apply(Ct(this), arguments)
},
lastIndexOf: function (t) {
return ct.apply(Ct(this), arguments)
},
map: function (t) {
return Lt(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
reduce: function (t) {
return dt.apply(Ct(this), arguments)
},
reduceRight: function (t) {
return pt.apply(Ct(this), arguments)
},
reverse: function () {
for (var t, e = this, n = Ct(e)
.length, i = Math.floor(n / 2), r = 0; r < i;) t = e[r], e[r++] = e[--n], e[n] = t;
return e
},
some: function (t) {
return et(Ct(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
sort: function (t) {
return ft.call(Ct(this), t)
},
subarray: function (t, e) {
var n = Ct(this),
i = n.length,
r = _(t, i);
return new (P(n, n[wt]))(n.buffer, n.byteOffset + r * n.BYTES_PER_ELEMENT, m((void 0 === e ? i : _(e, i)) - r))
}
},
Ht = function (t, e) {
return jt(this, mt.call(Ct(this), t, e))
},
Wt = function (t) {
Ct(this);
var e = Yt(arguments[1], 1),
n = this.length,
i = M(t),
r = m(i.length),
o = 0;
if (r + e > n) throw B(St);
for (; o < r;) this[e + o] = i[o++]
},
Bt = {
entries: function () {
return lt.call(Ct(this))
},
keys: function () {
return ut.call(Ct(this))
},
values: function () {
return st.call(Ct(this))
}
},
qt = function (t, e) {
return w(t) && t[Tt] && "symbol" != typeof e && e in t && String(+e) == String(e)
},
zt = function (t, e) {
return qt(t, e = b(e, !0)) ? d(2, t[e]) : W(t, e)
},
Vt = function (t, e, n) {
return !(qt(t, e = b(e, !0)) && w(n) && v(n, "value")) || v(n, "get") || v(n, "set") || n.configurable || v(n, "writable") && !n.writable || v(n, "enumerable") && !n.enumerable ? H(t, e, n) : (t[e] = n.value, t)
};
Mt || (R.f = zt, U.f = Vt), a(a.S + a.F * !Mt, "Object", {
getOwnPropertyDescriptor: zt,
defineProperty: Vt
}), o(function () {
_t.call({})
}) && (_t = bt = function () {
return ht.call(this)
});
var Gt = h({}, Rt);
h(Gt, Bt), p(Gt, vt, Bt.values), h(Gt, {
slice: Ht,
set: Wt,
constructor: function () {},
toString: _t,
toLocaleString: Ut
}), Ft(Gt, "buffer", "b"), Ft(Gt, "byteOffset", "o"), Ft(Gt, "byteLength", "l"), Ft(Gt, "length", "e"), H(Gt, gt, {
get: function () {
return this[Tt]
}
}), t.exports = function (t, e, n, u) {
u = !!u;
var l = t + (u ? "Clamped" : "") + "Array",
d = "Uint8Array" != l,
h = "get" + t,
f = "set" + t,
_ = r[l],
b = _ || {},
v = _ && S(_),
g = !_ || !s.ABV,
M = {},
T = _ && _[J],
x = function (t, n) {
var i = t._d;
return i.v[h](n * e + i.o, xt)
},
D = function (t, n, i) {
var r = t._d;
u && (i = (i = Math.round(i)) < 0 ? 0 : i > 255 ? 255 : 255 & i), r.v[f](n * e + r.o, i, xt)
},
E = function (t, e) {
H(t, e, {
get: function () {
return x(this, e)
},
set: function (t) {
return D(this, e, t)
},
enumerable: !0
})
};
g ? (_ = n(function (t, n, i, r) {
c(t, _, l, "_d");
var o, a, s, u, d = 0,
h = 0;
if (w(n)) {
if (!(n instanceof X || (u = y(n)) == V || u == G)) return Tt in n ? At(_, n) : Ot.call(_, n);
o = n, h = Yt(i, e);
var f = n.byteLength;
if (void 0 === r) {
if (f % e) throw B(St);
if (a = f - h, a < 0) throw B(St)
} else if (a = m(r) * e, a + h > f) throw B(St);
s = a / e
} else s = Et(n, !0), a = s * e, o = new X(a);
for (p(t, "_d", {
b: o,
o: h,
l: a,
e: s,
v: new Q(o)
}); d < s;) E(t, d++)
}), T = _[J] = k(Gt), p(T, "constructor", _)) : F(function (t) {
new _(null), new _(t)
}, !0) || (_ = n(function (t, n, i, r) {
c(t, _, l);
var o;
return w(n) ? n instanceof X || (o = y(n)) == V || o == G ? void 0 !== r ? new b(n, Yt(i, e), r) : void 0 !== i ? new b(n, Yt(i, e)) : new b(n) : Tt in n ? At(_, n) : Ot.call(_, n) : new b(Et(n, d))
}), Z(v !== Function.prototype ? L(b)
.concat(L(v)) : L(b),
function (t) {
t in _ || p(_, t, b[t])
}), _[J] = T, i || (T.constructor = _));
var Y = T[vt],
C = !!Y && ("values" == Y.name || void 0 == Y.name),
P = Bt.values;
p(_, yt, !0), p(T, Tt, l), p(T, kt, !0), p(T, wt, _), (u ? new _(1)[gt] == l : gt in T) || H(T, gt, {
get: function () {
return l
}
}), M[l] = _, a(a.G + a.W + a.F * (_ != b), M), a(a.S, l, {
BYTES_PER_ELEMENT: e,
from: Ot,
of: It
}), $ in T || p(T, $, e), a(a.P, l, Rt), O(l), a(a.P + a.F * Dt, l, {
set: Wt
}), a(a.P + a.F * !C, l, Bt), a(a.P + a.F * (T.toString != _t), l, {
toString: _t
}), a(a.P + a.F * o(function () {
new _(1)
.slice()
}), l, {
slice: Ht
}), a(a.P + a.F * (o(function () {
return [1, 2].toLocaleString() != new _([1, 2])
.toLocaleString()
}) || !o(function () {
T.toLocaleString.call([1, 2])
})), l, {
toLocaleString: Ut
}), A[l] = C ? Y : P, i || C || p(T, vt, P)
}
} else t.exports = function () {}
}, function (t, e, n) {
n(223)("Uint8", 1, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Uint8", 1, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
}, !0)
}, function (t, e, n) {
n(223)("Int16", 2, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Uint16", 2, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Int32", 4, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Uint32", 4, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Float32", 4, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
n(223)("Float64", 8, function (t) {
return function (e, n, i) {
return t(this, e, n, i)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(21),
o = n(12),
a = (n(4)
.Reflect || {})
.apply,
s = Function.apply;
i(i.S + i.F * !n(7)(function () {
a(function () {})
}), "Reflect", {
apply: function (t, e, n) {
var i = r(t),
u = o(n);
return a ? a(i, e, u) : s.call(i, e, u)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(46),
o = n(21),
a = n(12),
s = n(13),
u = n(7),
l = n(77),
c = (n(4)
.Reflect || {})
.construct,
d = u(function () {
function t () {}
return !(c(function () {}, [], t) instanceof t)
}),
p = !u(function () {
c(function () {})
});
i(i.S + i.F * (d || p), "Reflect", {
construct: function (t, e) {
o(t), a(e);
var n = arguments.length < 3 ? t : o(arguments[2]);
if (p && !d) return c(t, e, n);
if (t == n) {
switch (e.length) {
case 0:
return new t;
case 1:
return new t(e[0]);
case 2:
return new t(e[0], e[1]);
case 3:
return new t(e[0], e[1], e[2]);
case 4:
return new t(e[0], e[1], e[2], e[3])
}
var i = [null];
return i.push.apply(i, e), new (l.apply(t, i))
}
var u = n.prototype,
h = r(s(u) ? u : Object.prototype),
f = Function.apply.call(t, h, e);
return s(f) ? f : h
}
})
}, function (t, e, n) {
var i = n(11),
r = n(8),
o = n(12),
a = n(16);
r(r.S + r.F * n(7)(function () {
Reflect.defineProperty(i.f({}, 1, {
value: 1
}), 1, {
value: 2
})
}), "Reflect", {
defineProperty: function (t, e, n) {
o(t), e = a(e, !0), o(n);
try {
return i.f(t, e, n), !0
} catch (t) {
return !1
}
}
})
}, function (t, e, n) {
var i = n(8),
r = n(51)
.f,
o = n(12);
i(i.S, "Reflect", {
deleteProperty: function (t, e) {
var n = r(o(t), e);
return !(n && !n.configurable) && delete t[e]
}
})
}, function (t, e, n) {
var i = n(8),
r = n(12),
o = function (t) {
this._t = r(t), this._i = 0;
var e, n = this._k = [];
for (e in t) n.push(e)
};
n(130)(o, "Object", function () {
var t, e = this,
n = e._k;
do
if (e._i >= n.length) return {
value: void 0,
done: !0
}; while (!((t = n[e._i++]) in e._t));
return {
value: t,
done: !1
}
}), i(i.S, "Reflect", {
enumerate: function (t) {
return new o(t)
}
})
}, function (t, e, n) {
function i (t, e) {
var n, s, c = arguments.length < 3 ? t : arguments[2];
return l(t) === c ? t[e] : (n = r.f(t, e)) ? a(n, "value") ? n.value : void 0 !== n.get ? n.get.call(c) : void 0 : u(s = o(t)) ? i(s, e, c) : void 0
}
var r = n(51),
o = n(59),
a = n(5),
s = n(8),
u = n(13),
l = n(12);
s(s.S, "Reflect", {
get: i
})
}, function (t, e, n) {
var i = n(51),
r = n(8),
o = n(12);
r(r.S, "Reflect", {
getOwnPropertyDescriptor: function (t, e) {
return i.f(o(t), e)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(59),
o = n(12);
i(i.S, "Reflect", {
getPrototypeOf: function (t) {
return r(o(t))
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Reflect", {
has: function (t, e) {
return e in t
}
})
}, function (t, e, n) {
var i = n(8),
r = n(12),
o = Object.isExtensible;
i(i.S, "Reflect", {
isExtensible: function (t) {
return r(t), !o || o(t)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Reflect", {
ownKeys: n(243)
})
}, function (t, e, n) {
var i = n(50),
r = n(43),
o = n(12),
a = n(4)
.Reflect;
t.exports = a && a.ownKeys || function (t) {
var e = i.f(o(t)),
n = r.f;
return n ? e.concat(n(t)) : e
}
}, function (t, e, n) {
var i = n(8),
r = n(12),
o = Object.preventExtensions;
i(i.S, "Reflect", {
preventExtensions: function (t) {
r(t);
try {
return o && o(t), !0
} catch (t) {
return !1
}
}
})
}, function (t, e, n) {
function i (t, e, n) {
var u, p, h = arguments.length < 4 ? t : arguments[3],
f = o.f(c(t), e);
if (!f) {
if (d(p = a(t))) return i(p, e, n, h);
f = l(0)
}
return s(f, "value") ? !(f.writable === !1 || !d(h)) && (u = o.f(h, e) || l(0), u.value = n, r.f(h, e, u), !0) : void 0 !== f.set && (f.set.call(h, n), !0)
}
var r = n(11),
o = n(51),
a = n(59),
s = n(5),
u = n(8),
l = n(17),
c = n(12),
d = n(13);
u(u.S, "Reflect", {
set: i
})
}, function (t, e, n) {
var i = n(8),
r = n(73);
r && i(i.S, "Reflect", {
setPrototypeOf: function (t, e) {
r.check(t, e);
try {
return r.set(t, e), !0
} catch (t) {
return !1
}
}
})
}, function (t, e, n) {
var i = n(8),
r = n(36)(!0);
i(i.P, "Array", {
includes: function (t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}), n(186)("includes")
}, function (t, e, n) {
var i = n(8),
r = n(127)(!0);
i(i.P, "String", {
at: function (t) {
return r(this, t)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(250);
i(i.P, "String", {
padStart: function (t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0, !0)
}
})
}, function (t, e, n) {
var i = n(37),
r = n(91),
o = n(35);
t.exports = function (t, e, n, a) {
var s = String(o(t)),
u = s.length,
l = void 0 === n ? " " : String(n),
c = i(e);
if (c <= u || "" == l) return s;
var d = c - u,
p = r.call(l, Math.ceil(d / l.length));
return p.length > d && (p = p.slice(0, d)), a ? p + s : s + p
}
}, function (t, e, n) {
var i = n(8),
r = n(250);
i(i.P, "String", {
padEnd: function (t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0, !1)
}
})
}, function (t, e, n) {
n(83)("trimLeft", function (t) {
return function () {
return t(this, 1)
}
}, "trimStart")
}, function (t, e, n) {
n(83)("trimRight", function (t) {
return function () {
return t(this, 2)
}
}, "trimEnd")
}, function (t, e, n) {
var i = n(8),
r = n(35),
o = n(37),
a = n(134),
s = n(196),
u = RegExp.prototype,
l = function (t, e) {
this._r = t, this._s = e
};
n(130)(l, "RegExp String", function () {
var t = this._r.exec(this._s);
return {
value: t,
done: null === t
}
}), i(i.P, "String", {
matchAll: function (t) {
if (r(this), !a(t)) throw TypeError(t + " is not a regexp!");
var e = String(this),
n = "flags" in u ? String(t.flags) : s.call(t),
i = new RegExp(t.source, ~n.indexOf("g") ? n : "g" + n);
return i.lastIndex = o(t.lastIndex), new l(i, e)
}
})
}, function (t, e, n) {
n(27)("asyncIterator")
}, function (t, e, n) {
n(27)("observable")
}, function (t, e, n) {
var i = n(8),
r = n(243),
o = n(32),
a = n(51),
s = n(163);
i(i.S, "Object", {
getOwnPropertyDescriptors: function (t) {
for (var e, n = o(t), i = a.f, u = r(n), l = {}, c = 0; u.length > c;) s(l, e = u[c++], i(n, e));
return l
}
})
}, function (t, e, n) {
var i = n(8),
r = n(259)(!1);
i(i.S, "Object", {
values: function (t) {
return r(t)
}
})
}, function (t, e, n) {
var i = n(30),
r = n(32),
o = n(44)
.f;
t.exports = function (t) {
return function (e) {
for (var n, a = r(e), s = i(a), u = s.length, l = 0, c = []; u > l;) o.call(a, n = s[l++]) && c.push(t ? [n, a[n]] : a[n]);
return c
}
}
}, function (t, e, n) {
var i = n(8),
r = n(259)(!0);
i(i.S, "Object", {
entries: function (t) {
return r(t)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(58),
o = n(21),
a = n(11);
n(6) && i(i.P + n(262), "Object", {
__defineGetter__: function (t, e) {
a.f(r(this), t, {
get: o(e),
enumerable: !0,
configurable: !0
})
}
})
}, function (t, e, n) {
t.exports = n(28) || !n(7)(function () {
var t = Math.random();
__defineSetter__.call(null, t, function () {}), delete n(4)[t]
})
}, function (t, e, n) {
var i = n(8),
r = n(58),
o = n(21),
a = n(11);
n(6) && i(i.P + n(262), "Object", {
__defineSetter__: function (t, e) {
a.f(r(this), t, {
set: o(e),
enumerable: !0,
configurable: !0
})
}
})
}, function (t, e, n) {
var i = n(8),
r = n(58),
o = n(16),
a = n(59),
s = n(51)
.f;
n(6) && i(i.P + n(262), "Object", {
__lookupGetter__: function (t) {
var e, n = r(this),
i = o(t, !0);
do
if (e = s(n, i)) return e.get; while (n = a(n))
}
})
}, function (t, e, n) {
var i = n(8),
r = n(58),
o = n(16),
a = n(59),
s = n(51)
.f;
n(6) && i(i.P + n(262), "Object", {
__lookupSetter__: function (t) {
var e, n = r(this),
i = o(t, !0);
do
if (e = s(n, i)) return e.set; while (n = a(n))
}
})
}, function (t, e, n) {
var i = n(8);
i(i.P + i.R, "Map", {
toJSON: n(267)("Map")
})
}, function (t, e, n) {
var i = n(75),
r = n(268);
t.exports = function (t) {
return function () {
if (i(this) != t) throw TypeError(t + "#toJSON isn't generic");
return r(this)
}
}
}, function (t, e, n) {
var i = n(206);
t.exports = function (t, e) {
var n = [];
return i(t, !1, n.push, n, e), n
}
}, function (t, e, n) {
var i = n(8);
i(i.P + i.R, "Set", {
toJSON: n(267)("Set")
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "System", {
global: n(4)
})
}, function (t, e, n) {
var i = n(8),
r = n(34);
i(i.S, "Error", {
isError: function (t) {
return "Error" === r(t)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
iaddh: function (t, e, n, i) {
var r = t >>> 0,
o = e >>> 0,
a = n >>> 0;
return o + (i >>> 0) + ((r & a | (r | a) & ~(r + a >>> 0)) >>> 31) | 0
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
isubh: function (t, e, n, i) {
var r = t >>> 0,
o = e >>> 0,
a = n >>> 0;
return o - (i >>> 0) - ((~r & a | ~(r ^ a) & r - a >>> 0) >>> 31) | 0
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
imulh: function (t, e) {
var n = 65535,
i = +t,
r = +e,
o = i & n,
a = r & n,
s = i >> 16,
u = r >> 16,
l = (s * a >>> 0) + (o * a >>> 16);
return s * u + (l >> 16) + ((o * u >>> 0) + (l & n) >> 16)
}
})
}, function (t, e, n) {
var i = n(8);
i(i.S, "Math", {
umulh: function (t, e) {
var n = 65535,
i = +t,
r = +e,
o = i & n,
a = r & n,
s = i >>> 16,
u = r >>> 16,
l = (s * a >>> 0) + (o * a >>> 16);
return s * u + (l >>> 16) + ((o * u >>> 0) + (l & n) >>> 16)
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = i.key,
a = i.set;
i.exp({
defineMetadata: function (t, e, n, i) {
a(t, e, r(n), o(i))
}
})
}, function (t, e, n) {
var i = n(211),
r = n(8),
o = n(23)("metadata"),
a = o.store || (o.store = new (n(215))),
s = function (t, e, n) {
var r = a.get(t);
if (!r) {
if (!n) return;
a.set(t, r = new i)
}
var o = r.get(e);
if (!o) {
if (!n) return;
r.set(e, o = new i)
}
return o
},
u = function (t, e, n) {
var i = s(e, n, !1);
return void 0 !== i && i.has(t)
},
l = function (t, e, n) {
var i = s(e, n, !1);
return void 0 === i ? void 0 : i.get(t)
},
c = function (t, e, n, i) {
s(n, i, !0)
.set(t, e)
},
d = function (t, e) {
var n = s(t, e, !1),
i = [];
return n && n.forEach(function (t, e) {
i.push(e)
}), i
},
p = function (t) {
return void 0 === t || "symbol" == typeof t ? t : String(t)
},
h = function (t) {
r(r.S, "Reflect", t)
};
t.exports = {
store: a,
map: s,
has: u,
get: l,
set: c,
keys: d,
key: p,
exp: h
}
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = i.key,
a = i.map,
s = i.store;
i.exp({
deleteMetadata: function (t, e) {
var n = arguments.length < 3 ? void 0 : o(arguments[2]),
i = a(r(e), n, !1);
if (void 0 === i || !i.delete(t)) return !1;
if (i.size) return !0;
var u = s.get(e);
return u.delete(n), !!u.size || s.delete(e)
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = n(59),
a = i.has,
s = i.get,
u = i.key,
l = function (t, e, n) {
var i = a(t, e, n);
if (i) return s(t, e, n);
var r = o(e);
return null !== r ? l(t, r, n) : void 0
};
i.exp({
getMetadata: function (t, e) {
return l(t, r(e), arguments.length < 3 ? void 0 : u(arguments[2]))
}
})
}, function (t, e, n) {
var i = n(214),
r = n(268),
o = n(277),
a = n(12),
s = n(59),
u = o.keys,
l = o.key,
c = function (t, e) {
var n = u(t, e),
o = s(t);
if (null === o) return n;
var a = c(o, e);
return a.length ? n.length ? r(new i(n.concat(a))) : a : n
};
o.exp({
getMetadataKeys: function (t) {
return c(a(t), arguments.length < 2 ? void 0 : l(arguments[1]))
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = i.get,
a = i.key;
i.exp({
getOwnMetadata: function (t, e) {
return o(t, r(e), arguments.length < 3 ? void 0 : a(arguments[2]))
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = i.keys,
a = i.key;
i.exp({
getOwnMetadataKeys: function (t) {
return o(r(t), arguments.length < 2 ? void 0 : a(arguments[1]))
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = n(59),
a = i.has,
s = i.key,
u = function (t, e, n) {
var i = a(t, e, n);
if (i) return !0;
var r = o(e);
return null !== r && u(t, r, n)
};
i.exp({
hasMetadata: function (t, e) {
return u(t, r(e), arguments.length < 3 ? void 0 : s(arguments[2]))
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = i.has,
a = i.key;
i.exp({
hasOwnMetadata: function (t, e) {
return o(t, r(e), arguments.length < 3 ? void 0 : a(arguments[2]))
}
})
}, function (t, e, n) {
var i = n(277),
r = n(12),
o = n(21),
a = i.key,
s = i.set;
i.exp({
metadata: function (t, e) {
return function (n, i) {
s(t, e, (void 0 !== i ? r : o)(n), a(i))
}
}
})
}, function (t, e, n) {
var i = n(8),
r = n(209)(),
o = n(4)
.process,
a = "process" == n(34)(o);
i(i.G, {
asap: function (t) {
var e = a && o.domain;
r(e ? e.bind(t) : t)
}
})
}, function (t, e, n) {
var i = n(8),
r = n(4),
o = n(9),
a = n(209)(),
s = n(25)("observable"),
u = n(21),
l = n(12),
c = n(205),
d = n(210),
p = n(10),
h = n(206),
f = h.RETURN,
m = function (t) {
return null == t ? void 0 : u(t)
},
_ = function (t) {
var e = t._c;
e && (t._c = void 0, e())
},
b = function (t) {
return void 0 === t._o
},
v = function (t) {
b(t) || (t._o = void 0, _(t))
},
g = function (t, e) {
l(t), this._c = void 0, this._o = t, t = new y(this);
try {
var n = e(t),
i = n;
null != n && ("function" == typeof n.unsubscribe ? n = function () {
i.unsubscribe()
} : u(n), this._c = n)
} catch (e) {
return void t.error(e)
}
b(this) && _(this)
};
g.prototype = d({}, {
unsubscribe: function () {
v(this)
}
});
var y = function (t) {
this._s = t
};
y.prototype = d({}, {
next: function (t) {
var e = this._s;
if (!b(e)) {
var n = e._o;
try {
var i = m(n.next);
if (i) return i.call(n, t)
} catch (t) {
try {
v(e)
} finally {
throw t
}
}
}
},
error: function (t) {
var e = this._s;
if (b(e)) throw t;
var n = e._o;
e._o = void 0;
try {
var i = m(n.error);
if (!i) throw t;
t = i.call(n, t)
} catch (t) {
try {
_(e)
} finally {
throw t
}
}
return _(e), t
},
complete: function (t) {
var e = this._s;
if (!b(e)) {
var n = e._o;
e._o = void 0;
try {
var i = m(n.complete);
t = i ? i.call(n, t) : void 0
} catch (t) {
try {
_(e)
} finally {
throw t
}
}
return _(e), t
}
}
});
var w = function (t) {
c(this, w, "Observable", "_f")
._f = u(t)
};
d(w.prototype, {
subscribe: function (t) {
return new g(t, this._f)
},
forEach: function (t) {
var e = this;
return new (o.Promise || r.Promise)(function (n, i) {
u(t);
var r = e.subscribe({
next: function (e) {
try {
return t(e)
} catch (t) {
i(t), r.unsubscribe()
}
},
error: i,
complete: n
})
})
}
}), d(w, {
from: function (t) {
var e = "function" == typeof this ? this : w,
n = m(l(t)[s]);
if (n) {
var i = l(n.call(t));
return i.constructor === e ? i : new e(function (t) {
return i.subscribe(t)
})
}
return new e(function (e) {
var n = !1;
return a(function () {
if (!n) {
try {
if (h(t, !1, function (t) {
if (e.next(t), n) return f
}) === f) return
} catch (t) {
if (n) throw t;
return void e.error(t)
}
e.complete()
}
}),
function () {
n = !0
}
})
},
of: function () {
for (var t = 0, e = arguments.length, n = Array(e); t < e;) n[t] = arguments[t++];
return new ("function" == typeof this ? this : w)(function (t) {
var e = !1;
return a(function () {
if (!e) {
for (var i = 0; i < n.length; ++i)
if (t.next(n[i]), e) return;
t.complete()
}
}),
function () {
e = !0
}
})
}
}), p(w.prototype, s, function () {
return this
}), i(i.G, {
Observable: w
}), n(192)("Observable")
}, function (t, e, n) {
var i = n(4),
r = n(8),
o = n(78),
a = n(289),
s = i.navigator,
u = !!s && /MSIE .\./.test(s.userAgent),
l = function (t) {
return u ? function (e, n) {
return t(o(a, [].slice.call(arguments, 2), "function" == typeof e ? e : Function(e)), n)
} : t
};
r(r.G + r.B + r.F * u, {
setTimeout: l(i.setTimeout),
setInterval: l(i.setInterval)
})
}, function (t, e, n) {
var i = n(290),
r = n(78),
o = n(21);
t.exports = function () {
for (var t = o(this), e = arguments.length, n = Array(e), a = 0, s = i._, u = !1; e > a;)(n[a] = arguments[a++]) === s && (u = !0);
return function () {
var i, o = this,
a = arguments.length,
l = 0,
c = 0;
if (!u && !a) return r(t, n, o);
if (i = n.slice(), u)
for (; e > l; l++) i[l] === s && (i[l] = arguments[c++]);
for (; a > c;) i.push(arguments[c++]);
return r(t, i, o)
}
}
}, function (t, e, n) {
t.exports = n(4)
}, function (t, e, n) {
var i = n(8),
r = n(208);
i(i.G + i.B, {
setImmediate: r.set,
clearImmediate: r.clear
})
}, function (t, e, n) {
for (var i = n(193), r = n(18), o = n(4), a = n(10), s = n(129), u = n(25), l = u("iterator"), c = u("toStringTag"), d = s.Array, p = ["NodeList", "DOMTokenList", "MediaList", "StyleSheetList", "CSSRuleList"], h = 0; h < 5; h++) {
var f, m = p[h],
_ = o[m],
b = _ && _.prototype;
if (b) {
b[l] || a(b, l, d), b[c] || a(b, c, m), s[m] = d;
for (f in i) b[f] || r(b, f, i[f], !0)
}
}
}, function (t, e, n) {
(function (e, n, i) {
!function (e) {
function r (t, e, n, i) {
var r = e && e.prototype instanceof a ? e : a,
o = Object.create(r.prototype),
s = new m(i || []);
return o._invoke = p(t, n, s), o
}
function o (t, e, n) {
try {
return {
type: "normal",
arg: t.call(e, n)
}
} catch (t) {
return {
type: "throw",
arg: t
}
}
}
function a () {}
function s () {}
function u () {}
function l (t) {
["next", "throw", "return"].forEach(function (e) {
t[e] = function (t) {
return this._invoke(e, t)
}
})
}
function c (t) {
this.arg = t
}
function d (t) {
function e (i, r, a, s) {
var u = o(t[i], t, r);
if ("throw" !== u.type) {
var l = u.arg,
d = l.value;
return d instanceof c ? n.resolve(d.arg)
.then(function (t) {
e("next", t, a, s)
}, function (t) {
e("throw", t, a, s)
}) : n.resolve(d)
.then(function (t) {
l.value = t, a(l)
}, s)
}
s(u.arg)
}
function r (t, i) {
function r () {
return new n(function (n, r) {
e(t, i, n, r)
})
}
return a = a ? a.then(r, r) : r()
}
"object" == typeof i && i.domain && (e = i.domain.bind(e));
var a;
this._invoke = r
}
function p (t, e, n) {
var i = S;
return function (r, a) {
if (i === x) throw new Error("Generator is already running");
if (i === D) {
if ("throw" === r) throw a;
return b()
}
for (; ;) {
var s = n.delegate;
if (s) {
if ("return" === r || "throw" === r && s.iterator[r] === v) {
n.delegate = null;
var u = s.iterator.return;
if (u) {
var l = o(u, s.iterator, a);
if ("throw" === l.type) {
r = "throw", a = l.arg;
continue
}
}
if ("return" === r) continue
}
var l = o(s.iterator[r], s.iterator, a);
if ("throw" === l.type) {
n.delegate = null, r = "throw", a = l.arg;
continue
}
r = "next", a = v;
var c = l.arg;
if (!c.done) return i = L, c;
n[s.resultName] = c.value, n.next = s.nextLoc, n.delegate = null
}
if ("next" === r) n.sent = n._sent = a;
else if ("throw" === r) {
if (i === S) throw i = D, a;
n.dispatchException(a) && (r = "next", a = v)
} else "return" === r && n.abrupt("return", a);
i = x;
var l = o(t, e, n);
if ("normal" === l.type) {
i = n.done ? D : L;
var c = {
value: l.arg,
done: n.done
};
if (l.arg !== E) return c;
n.delegate && "next" === r && (a = v)
} else "throw" === l.type && (i = D, r = "throw", a = l.arg)
}
}
}
function h (t) {
var e = {
tryLoc: t[0]
};
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e)
}
function f (t) {
var e = t.completion || {};
e.type = "normal", delete e.arg, t.completion = e
}
function m (t) {
this.tryEntries = [{
tryLoc: "root"
}], t.forEach(h, this), this.reset(!0)
}
function _ (t) {
if (t) {
var e = t[w];
if (e) return e.call(t);
if ("function" == typeof t.next) return t;
if (!isNaN(t.length)) {
var n = -1,
i = function e () {
for (; ++n < t.length;)
if (g.call(t, n)) return e.value = t[n], e.done = !1, e;
return e.value = v, e.done = !0, e
};
return i.next = i
}
}
return {
next: b
}
}
function b () {
return {
value: v,
done: !0
}
}
var v, g = Object.prototype.hasOwnProperty,
y = "function" == typeof Symbol ? Symbol : {},
w = y.iterator || "@@iterator",
M = y.toStringTag || "@@toStringTag",
T = "object" == typeof t,
k = e.regeneratorRuntime;
if (k) return void(T && (t.exports = k));
k = e.regeneratorRuntime = T ? t.exports : {}, k.wrap = r;
var S = "suspendedStart",
L = "suspendedYield",
x = "executing",
D = "completed",
E = {},
Y = u.prototype = a.prototype;
s.prototype = Y.constructor = u, u.constructor = s, u[M] = s.displayName = "GeneratorFunction", k.isGeneratorFunction = function (t) {
var e = "function" == typeof t && t.constructor;
return !!e && (e === s || "GeneratorFunction" === (e.displayName || e.name))
}, k.mark = function (t) {
return Object.setPrototypeOf ? Object.setPrototypeOf(t, u) : (t.__proto__ = u, M in t || (t[M] = "GeneratorFunction")), t.prototype = Object.create(Y), t
}, k.awrap = function (t) {
return new c(t)
}, l(d.prototype), k.async = function (t, e, n, i) {
var o = new d(r(t, e, n, i));
return k.isGeneratorFunction(e) ? o : o.next()
.then(function (t) {
return t.done ? t.value : o.next()
})
}, l(Y), Y[w] = function () {
return this
}, Y[M] = "Generator", Y.toString = function () {
return "[object Generator]"
}, k.keys = function (t) {
var e = [];
for (var n in t) e.push(n);
return e.reverse(),
function n () {
for (; e.length;) {
var i = e.pop();
if (i in t) return n.value = i, n.done = !1, n
}
return n.done = !0, n
}
}, k.values = _, m.prototype = {
constructor: m,
reset: function (t) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = v, this.done = !1, this.delegate = null, this.tryEntries.forEach(f), !t)
for (var e in this) "t" === e.charAt(0) && g.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = v)
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0],
e = t.completion;
if ("throw" === e.type) throw e.arg;
return this.rval
},
dispatchException: function (t) {
function e (e, i) {
return o.type = "throw", o.arg = t, n.next = e, !!i
}
if (this.done) throw t;
for (var n = this, i = this.tryEntries.length - 1; i >= 0; --i) {
var r = this.tryEntries[i],
o = r.completion;
if ("root" === r.tryLoc) return e("end");
if (r.tryLoc <= this.prev) {
var a = g.call(r, "catchLoc"),
s = g.call(r, "finallyLoc");
if (a && s) {
if (this.prev < r.catchLoc) return e(r.catchLoc, !0);
if (this.prev < r.finallyLoc) return e(r.finallyLoc)
} else if (a) {
if (this.prev < r.catchLoc) return e(r.catchLoc, !0)
} else {
if (!s) throw new Error("try statement without catch or finally");
if (this.prev < r.finallyLoc) return e(r.finallyLoc)
}
}
}
},
abrupt: function (t, e) {
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
var i = this.tryEntries[n];
if (i.tryLoc <= this.prev && g.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
var r = i;
break
}
}
r && ("break" === t || "continue" === t) && r.tryLoc <= e && e <= r.finallyLoc && (r = null);
var o = r ? r.completion : {};
return o.type = t, o.arg = e, r ? this.next = r.finallyLoc : this.complete(o), E
},
complete: function (t, e) {
if ("throw" === t.type) throw t.arg;
"break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = t.arg, this.next = "end") : "normal" === t.type && e && (this.next = e)
},
finish: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var n = this.tryEntries[e];
if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), f(n), E
}
},
catch: function (t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var n = this.tryEntries[e];
if (n.tryLoc === t) {
var i = n.completion;
if ("throw" === i.type) {
var r = i.arg;
f(n)
}
return r
}
}
throw new Error("illegal catch attempt")
},
delegateYield: function (t, e, n) {
return this.delegate = {
iterator: _(t),
resultName: e,
nextLoc: n
}, E
}
}
}("object" == typeof e ? e : "object" == typeof window ? window : "object" == typeof self ? self : this)
})
.call(e, function () {
return this
}(), n(294), n(295))
}, function (t, e, n) {
(function (e, n, i, r) {
/* @preserve
* The MIT License (MIT)
*
* Copyright (c) 2013-2015 Petka Antonov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
!function (e) {
t.exports = e()
}(function () {
var t, o, a;
return function t (e, n, i) {
function r (a, s) {
if (!n[a]) {
if (!e[a]) {
var u = "function" == typeof _dereq_ && _dereq_;
if (!s && u) return u(a, !0);
if (o) return o(a, !0);
var l = new Error("Cannot find module '" + a + "'");
throw l.code = "MODULE_NOT_FOUND", l
}
var c = n[a] = {
exports: {}
};
e[a][0].call(c.exports, function (t) {
var n = e[a][1][t];
return r(n ? n : t)
}, c, c.exports, t, e, n, i)
}
return n[a].exports
}
for (var o = "function" == typeof _dereq_ && _dereq_, a = 0; a < i.length; a++) r(i[a]);
return r
}({
1: [function (t, e, n) {
e.exports = function (t) {
function e (t) {
var e = new n(t),
i = e.promise();
return e.setHowMany(1), e.setUnwrap(), e.init(), i
}
var n = t._SomePromiseArray;
t.any = function (t) {
return e(t)
}, t.prototype.any = function () {
return e(this)
}
}
}, {}],
2: [function (t, n, i) {
function r () {
this._customScheduler = !1, this._isTickUsed = !1, this._lateQueue = new c(16), this._normalQueue = new c(16), this._haveDrainedQueues = !1, this._trampolineEnabled = !0;
var t = this;
this.drainQueues = function () {
t._drainQueues()
}, this._schedule = l
}
function o (t, e, n) {
this._lateQueue.push(t, e, n), this._queueTick()
}
function a (t, e, n) {
this._normalQueue.push(t, e, n), this._queueTick()
}
function s (t) {
this._normalQueue._pushOne(t), this._queueTick()
}
var u;
try {
throw new Error
} catch (t) {
u = t
}
var l = t("./schedule"),
c = t("./queue"),
d = t("./util");
r.prototype.setScheduler = function (t) {
var e = this._schedule;
return this._schedule = t, this._customScheduler = !0, e
}, r.prototype.hasCustomScheduler = function () {
return this._customScheduler
}, r.prototype.enableTrampoline = function () {
this._trampolineEnabled = !0
}, r.prototype.disableTrampolineIfNecessary = function () {
d.hasDevTools && (this._trampolineEnabled = !1)
}, r.prototype.haveItemsQueued = function () {
return this._isTickUsed || this._haveDrainedQueues
}, r.prototype.fatalError = function (t, n) {
n ? (e.stderr.write("Fatal " + (t instanceof Error ? t.stack : t) + "\n"), e.exit(2)) : this.throwLater(t)
}, r.prototype.throwLater = function (t, e) {
if (1 === arguments.length && (e = t, t = function () {
throw e
}), "undefined" != typeof setTimeout) setTimeout(function () {
t(e)
}, 0);
else try {
this._schedule(function () {
t(e)
})
} catch (t) {
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")
}
}, d.hasDevTools ? (r.prototype.invokeLater = function (t, e, n) {
this._trampolineEnabled ? o.call(this, t, e, n) : this._schedule(function () {
setTimeout(function () {
t.call(e, n)
}, 100)
})
}, r.prototype.invoke = function (t, e, n) {
this._trampolineEnabled ? a.call(this, t, e, n) : this._schedule(function () {
t.call(e, n)
})
}, r.prototype.settlePromises = function (t) {
this._trampolineEnabled ? s.call(this, t) : this._schedule(function () {
t._settlePromises()
})
}) : (r.prototype.invokeLater = o, r.prototype.invoke = a, r.prototype.settlePromises = s), r.prototype.invokeFirst = function (t, e, n) {
this._normalQueue.unshift(t, e, n), this._queueTick()
}, r.prototype._drainQueue = function (t) {
for (; t.length() > 0;) {
var e = t.shift();
if ("function" == typeof e) {
var n = t.shift(),
i = t.shift();
e.call(n, i)
} else e._settlePromises()
}
}, r.prototype._drainQueues = function () {
this._drainQueue(this._normalQueue), this._reset(), this._haveDrainedQueues = !0, this._drainQueue(this._lateQueue)
}, r.prototype._queueTick = function () {
this._isTickUsed || (this._isTickUsed = !0, this._schedule(this.drainQueues))
}, r.prototype._reset = function () {
this._isTickUsed = !1
}, n.exports = r, n.exports.firstLineError = u
}, {
"./queue": 26,
"./schedule": 29,
"./util": 36
}],
3: [function (t, e, n) {
e.exports = function (t, e, n, i) {
var r = !1,
o = function (t, e) {
this._reject(e)
},
a = function (t, e) {
e.promiseRejectionQueued = !0, e.bindingPromise._then(o, o, null, this, t)
},
s = function (t, e) {
0 === (50397184 & this._bitField) && this._resolveCallback(e.target)
},
u = function (t, e) {
e.promiseRejectionQueued || this._reject(t)
};
t.prototype.bind = function (o) {
r || (r = !0, t.prototype._propagateFrom = i.propagateFromFunction(), t.prototype._boundValue = i.boundValueFunction());
var l = n(o),
c = new t(e);
c._propagateFrom(this, 1);
var d = this._target();
if (c._setBoundTo(l), l instanceof t) {
var p = {
promiseRejectionQueued: !1,
promise: c,
target: d,
bindingPromise: l
};
d._then(e, a, void 0, c, p), l._then(s, u, void 0, c, p), c._setOnCancel(l)
} else c._resolveCallback(d);
return c
}, t.prototype._setBoundTo = function (t) {
void 0 !== t ? (this._bitField = 2097152 | this._bitField, this._boundTo = t) : this._bitField = this._bitField & -2097153
}, t.prototype._isBound = function () {
return 2097152 === (2097152 & this._bitField)
}, t.bind = function (e, n) {
return t.resolve(n)
.bind(e)
}
}
}, {}],
4: [function (t, e, i) {
function r () {
try {
n === a && (n = o)
} catch (t) {}
return a
}
var o;
"undefined" != typeof n && (o = n);
var a = t("./promise")();
a.noConflict = r, e.exports = a
}, {
"./promise": 22
}],
5: [function (t, e, n) {
var i = Object.create;
if (i) {
var r = i(null),
o = i(null);
r[" size"] = o[" size"] = 0
}
e.exports = function (e) {
function n (t, n) {
var i;
if (null != t && (i = t[n]), "function" != typeof i) {
var r = "Object " + s.classString(t) + " has no method '" + s.toString(n) + "'";
throw new e.TypeError(r)
}
return i
}
function i (t) {
var e = this.pop(),
i = n(t, e);
return i.apply(t, this)
}
function r (t) {
return t[this]
}
function o (t) {
var e = +this;
return e < 0 && (e = Math.max(0, e + t.length)), t[e]
}
var a, s = t("./util"),
u = s.canEvaluate;
s.isIdentifier;
e.prototype.call = function (t) {
var e = [].slice.call(arguments, 1);
return e.push(t), this._then(i, void 0, void 0, e, void 0)
}, e.prototype.get = function (t) {
var e, n = "number" == typeof t;
if (n) e = o;
else if (u) {
var i = a(t);
e = null !== i ? i : r
} else e = r;
return this._then(e, void 0, void 0, t, void 0)
}
}
}, {
"./util": 36
}],
6: [function (t, e, n) {
e.exports = function (e, n, i, r) {
var o = t("./util"),
a = o.tryCatch,
s = o.errorObj,
u = e._async;
e.prototype.break = e.prototype.cancel = function () {
if (!r.cancellation()) return this._warn("cancellation is disabled");
for (var t = this, e = t; t._isCancellable();) {
if (!t._cancelBy(e)) {
e._isFollowing() ? e._followee()
.cancel() : e._cancelBranched();
break
}
var n = t._cancellationParent;
if (null == n || !n._isCancellable()) {
t._isFollowing() ? t._followee()
.cancel() : t._cancelBranched();
break
}
t._isFollowing() && t._followee()
.cancel(), t._setWillBeCancelled(), e = t, t = n
}
}, e.prototype._branchHasCancelled = function () {
this._branchesRemainingToCancel--
}, e.prototype._enoughBranchesHaveCancelled = function () {
return void 0 === this._branchesRemainingToCancel || this._branchesRemainingToCancel <= 0
}, e.prototype._cancelBy = function (t) {
return t === this ? (this._branchesRemainingToCancel = 0, this._invokeOnCancel(), !0) : (this._branchHasCancelled(), !!this._enoughBranchesHaveCancelled() && (this._invokeOnCancel(), !0))
}, e.prototype._cancelBranched = function () {
this._enoughBranchesHaveCancelled() && this._cancel()
}, e.prototype._cancel = function () {
this._isCancellable() && (this._setCancelled(), u.invoke(this._cancelPromises, this, void 0))
}, e.prototype._cancelPromises = function () {
this._length() > 0 && this._settlePromises()
}, e.prototype._unsetOnCancel = function () {
this._onCancelField = void 0
}, e.prototype._isCancellable = function () {
return this.isPending() && !this._isCancelled()
}, e.prototype.isCancellable = function () {
return this.isPending() && !this.isCancelled()
}, e.prototype._doInvokeOnCancel = function (t, e) {
if (o.isArray(t))
for (var n = 0; n < t.length; ++n) this._doInvokeOnCancel(t[n], e);
else if (void 0 !== t)
if ("function" == typeof t) {
if (!e) {
var i = a(t)
.call(this._boundValue());
i === s && (this._attachExtraTrace(i.e), u.throwLater(i.e))
}
} else t._resultCancelled(this)
}, e.prototype._invokeOnCancel = function () {
var t = this._onCancel();
this._unsetOnCancel(), u.invoke(this._doInvokeOnCancel, this, t)
}, e.prototype._invokeInternalOnCancel = function () {
this._isCancellable() && (this._doInvokeOnCancel(this._onCancel(), !0), this._unsetOnCancel())
}, e.prototype._resultCancelled = function () {
this.cancel()
}
}
}, {
"./util": 36
}],
7: [function (t, e, n) {
e.exports = function (e) {
function n (t, n, s) {
return function (u) {
var l = s._boundValue();
t: for (var c = 0; c < t.length; ++c) {
var d = t[c];
if (d === Error || null != d && d.prototype instanceof Error) {
if (u instanceof d) return o(n)
.call(l, u)
} else if ("function" == typeof d) {
var p = o(d)
.call(l, u);
if (p === a) return p;
if (p) return o(n)
.call(l, u)
} else if (i.isObject(u)) {
for (var h = r(d), f = 0; f < h.length; ++f) {
var m = h[f];
if (d[m] != u[m]) continue t
}
return o(n)
.call(l, u)
}
}
return e
}
}
var i = t("./util"),
r = t("./es5")
.keys,
o = i.tryCatch,
a = i.errorObj;
return n
}
}, {
"./es5": 13,
"./util": 36
}],
8: [function (t, e, n) {
e.exports = function (t) {
function e () {
this._trace = new e.CapturedTrace(i())
}
function n () {
if (r) return new e
}
function i () {
var t = o.length - 1;
if (t >= 0) return o[t]
}
var r = !1,
o = [];
return t.prototype._promiseCreated = function () {}, t.prototype._pushContext = function () {}, t.prototype._popContext = function () {
return null
}, t._peekContext = t.prototype._peekContext = function () {}, e.prototype._pushContext = function () {
void 0 !== this._trace && (this._trace._promiseCreated = null, o.push(this._trace))
}, e.prototype._popContext = function () {
if (void 0 !== this._trace) {
var t = o.pop(),
e = t._promiseCreated;
return t._promiseCreated = null, e
}
return null
}, e.CapturedTrace = null, e.create = n, e.deactivateLongStackTraces = function () {}, e.activateLongStackTraces = function () {
var n = t.prototype._pushContext,
o = t.prototype._popContext,
a = t._peekContext,
s = t.prototype._peekContext,
u = t.prototype._promiseCreated;
e.deactivateLongStackTraces = function () {
t.prototype._pushContext = n, t.prototype._popContext = o, t._peekContext = a, t.prototype._peekContext = s, t.prototype._promiseCreated = u, r = !1
}, r = !0, t.prototype._pushContext = e.prototype._pushContext, t.prototype._popContext = e.prototype._popContext, t._peekContext = t.prototype._peekContext = i, t.prototype._promiseCreated = function () {
var t = this._peekContext();
t && null == t._promiseCreated && (t._promiseCreated = this)
}
}, e
}
}, {}],
9: [function (t, n, i) {
n.exports = function (n, i) {
function r (t, e) {
return {
promise: e
}
}
function o () {
return !1
}
function a (t, e, n) {
var i = this;
try {
t(e, n, function (t) {
if ("function" != typeof t) throw new TypeError("onCancel must be a function, got: " + U.toString(t));
i._attachCancellationCallback(t)
})
} catch (t) {
return t
}
}
function s (t) {
if (!this._isCancellable()) return this;
var e = this._onCancel();
void 0 !== e ? U.isArray(e) ? e.push(t) : this._setOnCancel([e, t]) : this._setOnCancel(t)
}
function u () {
return this._onCancelField
}
function l (t) {
this._onCancelField = t
}
function c () {
this._cancellationParent = void 0, this._onCancelField = void 0
}
function d (t, e) {
if (0 !== (1 & e)) {
this._cancellationParent = t;
var n = t._branchesRemainingToCancel;
void 0 === n && (n = 0), t._branchesRemainingToCancel = n + 1
}
0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo)
}
function p (t, e) {
0 !== (2 & e) && t._isBound() && this._setBoundTo(t._boundTo)
}
function h () {
var t = this._boundTo;
return void 0 !== t && t instanceof n ? t.isFulfilled() ? t.value() : void 0 : t
}
function f () {
this._trace = new P(this._peekContext())
}
function m (t, e) {
if (R(t)) {
var n = this._trace;
if (void 0 !== n && e && (n = n._parent), void 0 !== n) n.attachExtraTrace(t);
else if (!t.__stackCleaned__) {
var i = k(t);
U.notEnumerableProp(t, "stack", i.message + "\n" + i.stack.join("\n")), U.notEnumerableProp(t, "__stackCleaned__", !0)
}
}
}
function _ (t, e, n, i, r) {
if (void 0 === t && null !== e && K) {
if (void 0 !== r && r._returnedNonUndefined()) return;
if (0 === (65535 & i._bitField)) return;
n && (n += " ");
var o = "",
a = "";
if (e._trace) {
for (var s = e._trace.stack.split("\n"), u = M(s), l = u.length - 1; l >= 0; --l) {
var c = u[l];
if (!W.test(c)) {
var d = c.match(B);
d && (o = "at " + d[1] + ":" + d[2] + ":" + d[3] + " ");
break
}
}
if (u.length > 0)
for (var p = u[0], l = 0; l < s.length; ++l)
if (s[l] === p) {
l > 0 && (a = "\n" + s[l - 1]);
break
}
}
var h = "a promise was created in a " + n + "handler " + o + "but was not returned from it, see http://goo.gl/rRqMUw" + a;
i._warn(h, !0, e)
}
}
function b (t, e) {
var n = t + " is deprecated and will be removed in a future version.";
return e && (n += " Use " + e + " instead."), v(n)
}
function v (t, e, i) {
if (at.warnings) {
var r, o = new N(t);
if (e) i._attachExtraTrace(o);
else if (at.longStackTraces && (r = n._peekContext())) r.attachExtraTrace(o);
else {
var a = k(o);
o.stack = a.message + "\n" + a.stack.join("\n")
}
et("warning", o) || S(o, "", !0)
}
}
function g (t, e) {
for (var n = 0; n < e.length - 1; ++n) e[n].push("From previous event:"), e[n] = e[n].join("\n");
return n < e.length && (e[n] = e[n].join("\n")), t + "\n" + e.join("\n")
}
function y (t) {
for (var e = 0; e < t.length; ++e)(0 === t[e].length || e + 1 < t.length && t[e][0] === t[e + 1][0]) && (t.splice(e, 1), e--)
}
function w (t) {
for (var e = t[0], n = 1; n < t.length; ++n) {
for (var i = t[n], r = e.length - 1, o = e[r], a = -1, s = i.length - 1; s >= 0; --s)
if (i[s] === o) {
a = s;
break
}
for (var s = a; s >= 0; --s) {
var u = i[s];
if (e[r] !== u) break;
e.pop(), r--
}
e = i
}
}
function M (t) {
for (var e = [], n = 0; n < t.length; ++n) {
var i = t[n],
r = " (No stack trace)" === i || q.test(i),
o = r && it(i);
r && !o && (V && " " !== i.charAt(0) && (i = " " + i), e.push(i))
}
return e
}
function T (t) {
for (var e = t.stack.replace(/\s+$/g, "")
.split("\n"), n = 0; n < e.length; ++n) {
var i = e[n];
if (" (No stack trace)" === i || q.test(i)) break
}
return n > 0 && (e = e.slice(n)), e
}
function k (t) {
var e = t.stack,
n = t.toString();
return e = "string" == typeof e && e.length > 0 ? T(t) : [" (No stack trace)"], {
message: n,
stack: M(e)
}
}
function S (t, e, n) {
if ("undefined" != typeof console) {
var i;
if (U.isObject(t)) {
var r = t.stack;
i = e + z(r, t)
} else i = e + String(t);
"function" == typeof F ? F(i, n) : "function" != typeof console.log && "object" != typeof console.log || console.log(i)
}
}
function L (t, e, n, i) {
var r = !1;
try {
"function" == typeof e && (r = !0, "rejectionHandled" === t ? e(i) : e(n, i))
} catch (t) {
I.throwLater(t)
}
"unhandledRejection" === t ? et(t, n, i) || r || S(n, "Unhandled rejection ") : et(t, i)
}
function x (t) {
var e;
if ("function" == typeof t) e = "[function " + (t.name || "anonymous") + "]";
else {
e = t && "function" == typeof t.toString ? t.toString() : U.toString(t);
var n = /\[object [a-zA-Z0-9$_]+\]/;
if (n.test(e)) try {
var i = JSON.stringify(t);
e = i
} catch (t) {}
0 === e.length && (e = "(empty array)")
}
return "(<" + D(e) + ">, no stack trace)"
}
function D (t) {
var e = 41;
return t.length < e ? t : t.substr(0, e - 3) + "..."
}
function E () {
return "function" == typeof ot
}
function Y (t) {
var e = t.match(rt);
if (e) return {
fileName: e[1],
line: parseInt(e[2], 10)
}
}
function C (t, e) {
if (E()) {
for (var n, i, r = t.stack.split("\n"), o = e.stack.split("\n"), a = -1, s = -1, u = 0; u < r.length; ++u) {
var l = Y(r[u]);
if (l) {
n = l.fileName, a = l.line;
break
}
}
for (var u = 0; u < o.length; ++u) {
var l = Y(o[u]);
if (l) {
i = l.fileName, s = l.line;
break
}
}
a < 0 || s < 0 || !n || !i || n !== i || a >= s || (it = function (t) {
if (H.test(t)) return !0;
var e = Y(t);
return !!(e && e.fileName === n && a <= e.line && e.line <= s)
})
}
}
function P (t) {
this._parent = t, this._promisesCreated = 0;
var e = this._length = 1 + (void 0 === t ? 0 : t._length);
ot(this, P), e > 32 && this.uncycle()
}
var j, A, F, O = n._getDomain,
I = n._async,
N = t("./errors")
.Warning,
U = t("./util"),
R = U.canAttachTrace,
H = /[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,
W = /\((?:timers\.js):\d+:\d+\)/,
B = /[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,
q = null,
z = null,
V = !1,
G = !(0 == U.env("BLUEBIRD_DEBUG")),
$ = !(0 == U.env("BLUEBIRD_WARNINGS") || !G && !U.env("BLUEBIRD_WARNINGS")),
J = !(0 == U.env("BLUEBIRD_LONG_STACK_TRACES") || !G && !U.env("BLUEBIRD_LONG_STACK_TRACES")),
K = 0 != U.env("BLUEBIRD_W_FORGOTTEN_RETURN") && ($ || !!U.env("BLUEBIRD_W_FORGOTTEN_RETURN"));
n.prototype.suppressUnhandledRejections = function () {
var t = this._target();
t._bitField = t._bitField & -1048577 | 524288
}, n.prototype._ensurePossibleRejectionHandled = function () {
0 === (524288 & this._bitField) && (this._setRejectionIsUnhandled(), I.invokeLater(this._notifyUnhandledRejection, this, void 0))
}, n.prototype._notifyUnhandledRejectionIsHandled = function () {
L("rejectionHandled", j, void 0, this)
}, n.prototype._setReturnedNonUndefined = function () {
this._bitField = 268435456 | this._bitField
}, n.prototype._returnedNonUndefined = function () {
return 0 !== (268435456 & this._bitField)
}, n.prototype._notifyUnhandledRejection = function () {
if (this._isRejectionUnhandled()) {
var t = this._settledValue();
this._setUnhandledRejectionIsNotified(), L("unhandledRejection", A, t, this)
}
}, n.prototype._setUnhandledRejectionIsNotified = function () {
this._bitField = 262144 | this._bitField
}, n.prototype._unsetUnhandledRejectionIsNotified = function () {
this._bitField = this._bitField & -262145
}, n.prototype._isUnhandledRejectionNotified = function () {
return (262144 & this._bitField) > 0
}, n.prototype._setRejectionIsUnhandled = function () {
this._bitField = 1048576 | this._bitField
}, n.prototype._unsetRejectionIsUnhandled = function () {
this._bitField = this._bitField & -1048577, this._isUnhandledRejectionNotified() && (this._unsetUnhandledRejectionIsNotified(), this._notifyUnhandledRejectionIsHandled())
}, n.prototype._isRejectionUnhandled = function () {
return (1048576 & this._bitField) > 0
}, n.prototype._warn = function (t, e, n) {
return v(t, e, n || this)
}, n.onPossiblyUnhandledRejection = function (t) {
var e = O();
A = "function" == typeof t ? null === e ? t : U.domainBind(e, t) : void 0
}, n.onUnhandledRejectionHandled = function (t) {
var e = O();
j = "function" == typeof t ? null === e ? t : U.domainBind(e, t) : void 0
};
var X = function () {};
n.longStackTraces = function () {
if (I.haveItemsQueued() && !at.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");
if (!at.longStackTraces && E()) {
var t = n.prototype._captureStackTrace,
e = n.prototype._attachExtraTrace;
at.longStackTraces = !0, X = function () {
if (I.haveItemsQueued() && !at.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");
n.prototype._captureStackTrace = t, n.prototype._attachExtraTrace = e, i.deactivateLongStackTraces(), I.enableTrampoline(), at.longStackTraces = !1
}, n.prototype._captureStackTrace = f, n.prototype._attachExtraTrace = m, i.activateLongStackTraces(), I.disableTrampolineIfNecessary()
}
}, n.hasLongStackTraces = function () {
return at.longStackTraces && E()
};
var Q = function () {
try {
if ("function" == typeof CustomEvent) {
var t = new CustomEvent("CustomEvent");
return U.global.dispatchEvent(t),
function (t, e) {
var n = new CustomEvent(t.toLowerCase(), {
detail: e,
cancelable: !0
});
return !U.global.dispatchEvent(n)
}
}
if ("function" == typeof Event) {
var t = new Event("CustomEvent");
return U.global.dispatchEvent(t),
function (t, e) {
var n = new Event(t.toLowerCase(), {
cancelable: !0
});
return n.detail = e, !U.global.dispatchEvent(n)
}
}
var t = document.createEvent("CustomEvent");
return t.initCustomEvent("testingtheevent", !1, !0, {}), U.global.dispatchEvent(t),
function (t, e) {
var n = document.createEvent("CustomEvent");
return n.initCustomEvent(t.toLowerCase(), !1, !0, e), !U.global.dispatchEvent(n)
}
} catch (t) {}
return function () {
return !1
}
}(),
Z = function () {
return U.isNode ? function () {
return e.emit.apply(e, arguments)
} : U.global ? function (t) {
var e = "on" + t.toLowerCase(),
n = U.global[e];
return !!n && (n.apply(U.global, [].slice.call(arguments, 1)), !0)
} : function () {
return !1
}
}(),
tt = {
promiseCreated: r,
promiseFulfilled: r,
promiseRejected: r,
promiseResolved: r,
promiseCancelled: r,
promiseChained: function (t, e, n) {
return {
promise: e,
child: n
}
},
warning: function (t, e) {
return {
warning: e
}
},
unhandledRejection: function (t, e, n) {
return {
reason: e,
promise: n
}
},
rejectionHandled: r
},
et = function (t) {
var e = !1;
try {
e = Z.apply(null, arguments)
} catch (t) {
I.throwLater(t), e = !0
}
var n = !1;
try {
n = Q(t, tt[t].apply(null, arguments))
} catch (t) {
I.throwLater(t), n = !0
}
return n || e
};
n.config = function (t) {
if (t = Object(t), "longStackTraces" in t && (t.longStackTraces ? n.longStackTraces() : !t.longStackTraces && n.hasLongStackTraces() && X()), "warnings" in t) {
var e = t.warnings;
at.warnings = !!e, K = at.warnings, U.isObject(e) && "wForgottenReturn" in e && (K = !!e.wForgottenReturn)
}
if ("cancellation" in t && t.cancellation && !at.cancellation) {
if (I.haveItemsQueued()) throw new Error("cannot enable cancellation after promises are in use");
n.prototype._clearCancellationData = c, n.prototype._propagateFrom = d, n.prototype._onCancel = u, n.prototype._setOnCancel = l, n.prototype._attachCancellationCallback = s, n.prototype._execute = a, nt = d, at.cancellation = !0
}
"monitoring" in t && (t.monitoring && !at.monitoring ? (at.monitoring = !0, n.prototype._fireEvent = et) : !t.monitoring && at.monitoring && (at.monitoring = !1, n.prototype._fireEvent = o))
}, n.prototype._fireEvent = o, n.prototype._execute = function (t, e, n) {
try {
t(e, n)
} catch (t) {
return t
}
}, n.prototype._onCancel = function () {}, n.prototype._setOnCancel = function (t) {}, n.prototype._attachCancellationCallback = function (t) {}, n.prototype._captureStackTrace = function () {}, n.prototype._attachExtraTrace = function () {}, n.prototype._clearCancellationData = function () {}, n.prototype._propagateFrom = function (t, e) {};
var nt = p,
it = function () {
return !1
},
rt = /[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;
U.inherits(P, Error), i.CapturedTrace = P, P.prototype.uncycle = function () {
var t = this._length;
if (!(t < 2)) {
for (var e = [], n = {}, i = 0, r = this; void 0 !== r; ++i) e.push(r), r = r._parent;
t = this._length = i;
for (var i = t - 1; i >= 0; --i) {
var o = e[i].stack;
void 0 === n[o] && (n[o] = i)
}
for (var i = 0; i < t; ++i) {
var a = e[i].stack,
s = n[a];
if (void 0 !== s && s !== i) {
s > 0 && (e[s - 1]._parent = void 0, e[s - 1]._length = 1), e[i]._parent = void 0, e[i]._length = 1;
var u = i > 0 ? e[i - 1] : this;
s < t - 1 ? (u._parent = e[s + 1], u._parent.uncycle(), u._length = u._parent._length + 1) : (u._parent = void 0, u._length = 1);
for (var l = u._length + 1, c = i - 2; c >= 0; --c) e[c]._length = l, l++;
return
}
}
}
}, P.prototype.attachExtraTrace = function (t) {
if (!t.__stackCleaned__) {
this.uncycle();
for (var e = k(t), n = e.message, i = [e.stack], r = this; void 0 !== r;) i.push(M(r.stack.split("\n"))), r = r._parent;
w(i), y(i), U.notEnumerableProp(t, "stack", g(n, i)), U.notEnumerableProp(t, "__stackCleaned__", !0)
}
};
var ot = function () {
var t = /^\s*at\s*/,
e = function (t, e) {
return "string" == typeof t ? t : void 0 !== e.name && void 0 !== e.message ? e.toString() : x(e)
};
if ("number" == typeof Error.stackTraceLimit && "function" == typeof Error.captureStackTrace) {
Error.stackTraceLimit += 6, q = t, z = e;
var n = Error.captureStackTrace;
return it = function (t) {
return H.test(t)
},
function (t, e) {
Error.stackTraceLimit += 6, n(t, e), Error.stackTraceLimit -= 6
}
}
var i = new Error;
if ("string" == typeof i.stack && i.stack.split("\n")[0].indexOf("stackDetection@") >= 0) return q = /@/, z = e, V = !0,
function (t) {
t.stack = (new Error)
.stack
};
var r;
try {
throw new Error
} catch (t) {
r = "stack" in t
}
return "stack" in i || !r || "number" != typeof Error.stackTraceLimit ? (z = function (t, e) {
return "string" == typeof t ? t : "object" != typeof e && "function" != typeof e || void 0 === e.name || void 0 === e.message ? x(e) : e.toString()
}, null) : (q = t, z = e, function (t) {
Error.stackTraceLimit += 6;
try {
throw new Error
} catch (e) {
t.stack = e.stack
}
Error.stackTraceLimit -= 6
})
}([]);
"undefined" != typeof console && "undefined" != typeof console.warn && (F = function (t) {
console.warn(t)
}, U.isNode && e.stderr.isTTY ? F = function (t, e) {
var n = e ? "" : "";
console.warn(n + t + "\n")
} : U.isNode || "string" != typeof (new Error)
.stack || (F = function (t, e) {
console.warn("%c" + t, e ? "color: darkorange" : "color: red")
}));
var at = {
warnings: $,
longStackTraces: !1,
cancellation: !1,
monitoring: !1
};
return J && n.longStackTraces(), {
longStackTraces: function () {
return at.longStackTraces
},
warnings: function () {
return at.warnings
},
cancellation: function () {
return at.cancellation
},
monitoring: function () {
return at.monitoring
},
propagateFromFunction: function () {
return nt
},
boundValueFunction: function () {
return h
},
checkForgottenReturns: _,
setBounds: C,
warn: v,
deprecated: b,
CapturedTrace: P,
fireDomEvent: Q,
fireGlobalEvent: Z
}
}
}, {
"./errors": 12,
"./util": 36
}],
10: [function (t, e, n) {
e.exports = function (t) {
function e () {
return this.value
}
function n () {
throw this.reason
}
t.prototype.return = t.prototype.thenReturn = function (n) {
return n instanceof t && n.suppressUnhandledRejections(), this._then(e, void 0, void 0, {
value: n
}, void 0)
}, t.prototype.throw = t.prototype.thenThrow = function (t) {
return this._then(n, void 0, void 0, {
reason: t
}, void 0)
}, t.prototype.catchThrow = function (t) {
if (arguments.length <= 1) return this._then(void 0, n, void 0, {
reason: t
}, void 0);
var e = arguments[1],
i = function () {
throw e
};
return this.caught(t, i)
}, t.prototype.catchReturn = function (n) {
if (arguments.length <= 1) return n instanceof t && n.suppressUnhandledRejections(), this._then(void 0, e, void 0, {
value: n
}, void 0);
var i = arguments[1];
i instanceof t && i.suppressUnhandledRejections();
var r = function () {
return i
};
return this.caught(n, r)
}
}
}, {}],
11: [function (t, e, n) {
e.exports = function (t, e) {
function n () {
return o(this)
}
function i (t, n) {
return r(t, n, e, e)
}
var r = t.reduce,
o = t.all;
t.prototype.each = function (t) {
return r(this, t, e, 0)
._then(n, void 0, void 0, this, void 0)
}, t.prototype.mapSeries = function (t) {
return r(this, t, e, e)
}, t.each = function (t, i) {
return r(t, i, e, 0)
._then(n, void 0, void 0, t, void 0)
}, t.mapSeries = i
}
}, {}],
12: [function (t, e, n) {
function i (t, e) {
function n (i) {
return this instanceof n ? (d(this, "message", "string" == typeof i ? i : e), d(this, "name", t), void(Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : Error.call(this))) : new n(i)
}
return c(n, Error), n
}
function r (t) {
return this instanceof r ? (d(this, "name", "OperationalError"), d(this, "message", t), this.cause = t, this.isOperational = !0, void(t instanceof Error ? (d(this, "message", t.message), d(this, "stack", t.stack)) : Error.captureStackTrace && Error.captureStackTrace(this, this.constructor))) : new r(t)
}
var o, a, s = t("./es5"),
u = s.freeze,
l = t("./util"),
c = l.inherits,
d = l.notEnumerableProp,
p = i("Warning", "warning"),
h = i("CancellationError", "cancellation error"),
f = i("TimeoutError", "timeout error"),
m = i("AggregateError", "aggregate error");
try {
o = TypeError, a = RangeError
} catch (t) {
o = i("TypeError", "type error"), a = i("RangeError", "range error")
}
for (var _ = "join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "), b = 0; b < _.length; ++b) "function" == typeof Array.prototype[_[b]] && (m.prototype[_[b]] = Array.prototype[_[b]]);
s.defineProperty(m.prototype, "length", {
value: 0,
configurable: !1,
writable: !0,
enumerable: !0
}), m.prototype.isOperational = !0;
var v = 0;
m.prototype.toString = function () {
var t = Array(4 * v + 1)
.join(" "),
e = "\n" + t + "AggregateError of:\n";
v++, t = Array(4 * v + 1)
.join(" ");
for (var n = 0; n < this.length; ++n) {
for (var i = this[n] === this ? "[Circular AggregateError]" : this[n] + "", r = i.split("\n"), o = 0; o < r.length; ++o) r[o] = t + r[o];
i = r.join("\n"), e += i + "\n"
}
return v--, e
}, c(r, Error);
var g = Error.__BluebirdErrorTypes__;
g || (g = u({
CancellationError: h,
TimeoutError: f,
OperationalError: r,
RejectionError: r,
AggregateError: m
}), s.defineProperty(Error, "__BluebirdErrorTypes__", {
value: g,
writable: !1,
enumerable: !1,
configurable: !1
})), e.exports = {
Error: Error,
TypeError: o,
RangeError: a,
CancellationError: g.CancellationError,
OperationalError: g.OperationalError,
TimeoutError: g.TimeoutError,
AggregateError: g.AggregateError,
Warning: p
}
}, {
"./es5": 13,
"./util": 36
}],
13: [function (t, e, n) {
var i = function () {
return void 0 === this
}();
if (i) e.exports = {
freeze: Object.freeze,
defineProperty: Object.defineProperty,
getDescriptor: Object.getOwnPropertyDescriptor,
keys: Object.keys,
names: Object.getOwnPropertyNames,
getPrototypeOf: Object.getPrototypeOf,
isArray: Array.isArray,
isES5: i,
propertyIsWritable: function (t, e) {
var n = Object.getOwnPropertyDescriptor(t, e);
return !(n && !n.writable && !n.set)
}
};
else {
var r = {}.hasOwnProperty,
o = {}.toString,
a = {}.constructor.prototype,
s = function (t) {
var e = [];
for (var n in t) r.call(t, n) && e.push(n);
return e
},
u = function (t, e) {
return {
value: t[e]
}
},
l = function (t, e, n) {
return t[e] = n.value, t
},
c = function (t) {
return t
},
d = function (t) {
try {
return Object(t)
.constructor.prototype
} catch (t) {
return a
}
},
p = function (t) {
try {
return "[object Array]" === o.call(t)
} catch (t) {
return !1
}
};
e.exports = {
isArray: p,
keys: s,
names: s,
defineProperty: l,
getDescriptor: u,
freeze: c,
getPrototypeOf: d,
isES5: i,
propertyIsWritable: function () {
return !0
}
}
}
}, {}],
14: [function (t, e, n) {
e.exports = function (t, e) {
var n = t.map;
t.prototype.filter = function (t, i) {
return n(this, t, i, e)
}, t.filter = function (t, i, r) {
return n(t, i, r, e)
}
}
}, {}],
15: [function (t, e, n) {
e.exports = function (e, n) {
function i (t, e, n) {
this.promise = t, this.type = e, this.handler = n, this.called = !1, this.cancelPromise = null
}
function r (t) {
this.finallyHandler = t
}
function o (t, e) {
return null != t.cancelPromise && (arguments.length > 1 ? t.cancelPromise._reject(e) : t.cancelPromise._cancel(), t.cancelPromise = null, !0)
}
function a () {
return u.call(this, this.promise._target()
._settledValue())
}
function s (t) {
if (!o(this, t)) return d.e = t, d
}
function u (t) {
var i = this.promise,
u = this.handler;
if (!this.called) {
this.called = !0;
var l = this.isFinallyHandler() ? u.call(i._boundValue()) : u.call(i._boundValue(), t);
if (void 0 !== l) {
i._setReturnedNonUndefined();
var p = n(l, i);
if (p instanceof e) {
if (null != this.cancelPromise) {
if (p._isCancelled()) {
var h = new c("late cancellation observer");
return i._attachExtraTrace(h), d.e = h, d
}
p.isPending() && p._attachCancellationCallback(new r(this))
}
return p._then(a, s, void 0, this, void 0)
}
}
}
return i.isRejected() ? (o(this), d.e = t, d) : (o(this), t)
}
var l = t("./util"),
c = e.CancellationError,
d = l.errorObj;
return i.prototype.isFinallyHandler = function () {
return 0 === this.type
}, r.prototype._resultCancelled = function () {
o(this.finallyHandler)
}, e.prototype._passThrough = function (t, e, n, r) {
return "function" != typeof t ? this.then() : this._then(n, r, void 0, new i(this, e, t), void 0)
}, e.prototype.lastly = e.prototype.finally = function (t) {
return this._passThrough(t, 0, u, u)
}, e.prototype.tap = function (t) {
return this._passThrough(t, 1, u)
}, i
}
}, {
"./util": 36
}],
16: [function (t, e, n) {
e.exports = function (e, n, i, r, o, a) {
function s (t, n, i) {
for (var o = 0; o < n.length; ++o) {
i._pushContext();
var a = h(n[o])(t);
if (i._popContext(), a === p) {
i._pushContext();
var s = e.reject(p.e);
return i._popContext(), s
}
var u = r(a, i);
if (u instanceof e) return u
}
return null
}
function u (t, n, r, o) {
if (a.cancellation()) {
var s = new e(i),
u = this._finallyPromise = new e(i);
this._promise = s.lastly(function () {
return u
}), s._captureStackTrace(), s._setOnCancel(this)
} else {
var l = this._promise = new e(i);
l._captureStackTrace()
}
this._stack = o, this._generatorFunction = t, this._receiver = n, this._generator = void 0, this._yieldHandlers = "function" == typeof r ? [r].concat(f) : f, this._yieldedPromise = null, this._cancellationPhase = !1
}
var l = t("./errors"),
c = l.TypeError,
d = t("./util"),
p = d.errorObj,
h = d.tryCatch,
f = [];
d.inherits(u, o), u.prototype._isResolved = function () {
return null === this._promise
}, u.prototype._cleanup = function () {
this._promise = this._generator = null, a.cancellation() && null !== this._finallyPromise && (this._finallyPromise._fulfill(), this._finallyPromise = null)
}, u.prototype._promiseCancelled = function () {
if (!this._isResolved()) {
var t, n = "undefined" != typeof this._generator.return;
if (n) this._promise._pushContext(), t = h(this._generator.return)
.call(this._generator, void 0), this._promise._popContext();
else {
var i = new e.CancellationError("generator .return() sentinel");
e.coroutine.returnSentinel = i, this._promise._attachExtraTrace(i), this._promise._pushContext(), t = h(this._generator.throw)
.call(this._generator, i), this._promise._popContext()
}
this._cancellationPhase = !0, this._yieldedPromise = null, this._continue(t)
}
}, u.prototype._promiseFulfilled = function (t) {
this._yieldedPromise = null, this._promise._pushContext();
var e = h(this._generator.next)
.call(this._generator, t);
this._promise._popContext(), this._continue(e)
}, u.prototype._promiseRejected = function (t) {
this._yieldedPromise = null, this._promise._attachExtraTrace(t), this._promise._pushContext();
var e = h(this._generator.throw)
.call(this._generator, t);
this._promise._popContext(), this._continue(e)
}, u.prototype._resultCancelled = function () {
if (this._yieldedPromise instanceof e) {
var t = this._yieldedPromise;
this._yieldedPromise = null, t.cancel()
}
}, u.prototype.promise = function () {
return this._promise
}, u.prototype._run = function () {
this._generator = this._generatorFunction.call(this._receiver), this._receiver = this._generatorFunction = void 0, this._promiseFulfilled(void 0)
}, u.prototype._continue = function (t) {
var n = this._promise;
if (t === p) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._rejectCallback(t.e, !1);
var i = t.value;
if (t.done === !0) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._resolveCallback(i);
var o = r(i, this._promise);
if (!(o instanceof e) && (o = s(o, this._yieldHandlers, this._promise), null === o)) return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s", i) + "From coroutine:\n" + this._stack.split("\n")
.slice(1, -7)
.join("\n")));
o = o._target();
var a = o._bitField;
0 === (50397184 & a) ? (this._yieldedPromise = o, o._proxy(this, null)) : 0 !== (33554432 & a) ? e._async.invoke(this._promiseFulfilled, this, o._value()) : 0 !== (16777216 & a) ? e._async.invoke(this._promiseRejected, this, o._reason()) : this._promiseCancelled()
}, e.coroutine = function (t, e) {
if ("function" != typeof t) throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");
var n = Object(e)
.yieldHandler,
i = u,
r = (new Error)
.stack;
return function () {
var e = t.apply(this, arguments),
o = new i(void 0, void 0, n, r),
a = o.promise();
return o._generator = e, o._promiseFulfilled(void 0), a
}
}, e.coroutine.addYieldHandler = function (t) {
if ("function" != typeof t) throw new c("expecting a function but got " + d.classString(t));
f.push(t)
}, e.spawn = function (t) {
if (a.deprecated("Promise.spawn()", "Promise.coroutine()"), "function" != typeof t) return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");
var i = new u(t, this),
r = i.promise();
return i._run(e.spawn),
r
}
}
}, {
"./errors": 12,
"./util": 36
}],
17: [function (t, e, n) {
e.exports = function (e, n, i, r, o, a) {
var s = t("./util");
s.canEvaluate, s.tryCatch, s.errorObj;
e.join = function () {
var t, e = arguments.length - 1;
if (e > 0 && "function" == typeof arguments[e]) {
t = arguments[e];
var i
}
var r = [].slice.call(arguments);
t && r.pop();
var i = new n(r)
.promise();
return void 0 !== t ? i.spread(t) : i
}
}
}, {
"./util": 36
}],
18: [function (t, e, n) {
e.exports = function (e, n, i, r, o, a) {
function s (t, e, n, i) {
this.constructor$(t), this._promise._captureStackTrace();
var r = l();
this._callback = null === r ? e : c.domainBind(r, e), this._preservedValues = i === o ? new Array(this.length()) : null, this._limit = n, this._inFlight = 0, this._queue = [], h.invoke(this._asyncInit, this, void 0)
}
function u (t, n, r, o) {
if ("function" != typeof n) return i("expecting a function but got " + c.classString(n));
var a = 0;
if (void 0 !== r) {
if ("object" != typeof r || null === r) return e.reject(new TypeError("options argument must be an object but it is " + c.classString(r)));
if ("number" != typeof r.concurrency) return e.reject(new TypeError("'concurrency' must be a number but it is " + c.classString(r.concurrency)));
a = r.concurrency
}
return a = "number" == typeof a && isFinite(a) && a >= 1 ? a : 0, new s(t, n, a, o)
.promise()
}
var l = e._getDomain,
c = t("./util"),
d = c.tryCatch,
p = c.errorObj,
h = e._async;
c.inherits(s, n), s.prototype._asyncInit = function () {
this._init$(void 0, -2)
}, s.prototype._init = function () {}, s.prototype._promiseFulfilled = function (t, n) {
var i = this._values,
o = this.length(),
s = this._preservedValues,
u = this._limit;
if (n < 0) {
if (n = n * -1 - 1, i[n] = t, u >= 1 && (this._inFlight--, this._drainQueue(), this._isResolved())) return !0
} else {
if (u >= 1 && this._inFlight >= u) return i[n] = t, this._queue.push(n), !1;
null !== s && (s[n] = t);
var l = this._promise,
c = this._callback,
h = l._boundValue();
l._pushContext();
var f = d(c)
.call(h, t, n, o),
m = l._popContext();
if (a.checkForgottenReturns(f, m, null !== s ? "Promise.filter" : "Promise.map", l), f === p) return this._reject(f.e), !0;
var _ = r(f, this._promise);
if (_ instanceof e) {
_ = _._target();
var b = _._bitField;
if (0 === (50397184 & b)) return u >= 1 && this._inFlight++, i[n] = _, _._proxy(this, (n + 1) * -1), !1;
if (0 === (33554432 & b)) return 0 !== (16777216 & b) ? (this._reject(_._reason()), !0) : (this._cancel(), !0);
f = _._value()
}
i[n] = f
}
var v = ++this._totalResolved;
return v >= o && (null !== s ? this._filter(i, s) : this._resolve(i), !0)
}, s.prototype._drainQueue = function () {
for (var t = this._queue, e = this._limit, n = this._values; t.length > 0 && this._inFlight < e;) {
if (this._isResolved()) return;
var i = t.pop();
this._promiseFulfilled(n[i], i)
}
}, s.prototype._filter = function (t, e) {
for (var n = e.length, i = new Array(n), r = 0, o = 0; o < n; ++o) t[o] && (i[r++] = e[o]);
i.length = r, this._resolve(i)
}, s.prototype.preservedValues = function () {
return this._preservedValues
}, e.prototype.map = function (t, e) {
return u(this, t, e, null)
}, e.map = function (t, e, n, i) {
return u(t, e, n, i)
}
}
}, {
"./util": 36
}],
19: [function (t, e, n) {
e.exports = function (e, n, i, r, o) {
var a = t("./util"),
s = a.tryCatch;
e.method = function (t) {
if ("function" != typeof t) throw new e.TypeError("expecting a function but got " + a.classString(t));
return function () {
var i = new e(n);
i._captureStackTrace(), i._pushContext();
var r = s(t)
.apply(this, arguments),
a = i._popContext();
return o.checkForgottenReturns(r, a, "Promise.method", i), i._resolveFromSyncValue(r), i
}
}, e.attempt = e.try = function (t) {
if ("function" != typeof t) return r("expecting a function but got " + a.classString(t));
var i = new e(n);
i._captureStackTrace(), i._pushContext();
var u;
if (arguments.length > 1) {
o.deprecated("calling Promise.try with more than 1 argument");
var l = arguments[1],
c = arguments[2];
u = a.isArray(l) ? s(t)
.apply(c, l) : s(t)
.call(c, l)
} else u = s(t)();
var d = i._popContext();
return o.checkForgottenReturns(u, d, "Promise.try", i), i._resolveFromSyncValue(u), i
}, e.prototype._resolveFromSyncValue = function (t) {
t === a.errorObj ? this._rejectCallback(t.e, !1) : this._resolveCallback(t, !0)
}
}
}, {
"./util": 36
}],
20: [function (t, e, n) {
function i (t) {
return t instanceof Error && c.getPrototypeOf(t) === Error.prototype
}
function r (t) {
var e;
if (i(t)) {
e = new l(t), e.name = t.name, e.message = t.message, e.stack = t.stack;
for (var n = c.keys(t), r = 0; r < n.length; ++r) {
var o = n[r];
d.test(o) || (e[o] = t[o])
}
return e
}
return a.markAsOriginatingFromRejection(t), t
}
function o (t, e) {
return function (n, i) {
if (null !== t) {
if (n) {
var o = r(s(n));
t._attachExtraTrace(o), t._reject(o)
} else if (e) {
var a = [].slice.call(arguments, 1);
t._fulfill(a)
} else t._fulfill(i);
t = null
}
}
}
var a = t("./util"),
s = a.maybeWrapAsError,
u = t("./errors"),
l = u.OperationalError,
c = t("./es5"),
d = /^(?:name|message|stack|cause)$/;
e.exports = o
}, {
"./errors": 12,
"./es5": 13,
"./util": 36
}],
21: [function (t, e, n) {
e.exports = function (e) {
function n (t, e) {
var n = this;
if (!o.isArray(t)) return i.call(n, t, e);
var r = s(e)
.apply(n._boundValue(), [null].concat(t));
r === u && a.throwLater(r.e)
}
function i (t, e) {
var n = this,
i = n._boundValue(),
r = void 0 === t ? s(e)
.call(i, null) : s(e)
.call(i, null, t);
r === u && a.throwLater(r.e)
}
function r (t, e) {
var n = this;
if (!t) {
var i = new Error(t + "");
i.cause = t, t = i
}
var r = s(e)
.call(n._boundValue(), t);
r === u && a.throwLater(r.e)
}
var o = t("./util"),
a = e._async,
s = o.tryCatch,
u = o.errorObj;
e.prototype.asCallback = e.prototype.nodeify = function (t, e) {
if ("function" == typeof t) {
var o = i;
void 0 !== e && Object(e)
.spread && (o = n), this._then(o, r, void 0, this, t)
}
return this
}
}
}, {
"./util": 36
}],
22: [function (t, n, i) {
n.exports = function () {
function i () {}
function r (t, e) {
if ("function" != typeof e) throw new g("expecting a function but got " + f.classString(e));
if (t.constructor !== o) throw new g("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")
}
function o (t) {
this._bitField = 0, this._fulfillmentHandler0 = void 0, this._rejectionHandler0 = void 0, this._promise0 = void 0, this._receiver0 = void 0, t !== w && (r(this, t), this._resolveFromExecutor(t)), this._promiseCreated(), this._fireEvent("promiseCreated", this)
}
function a (t) {
this.promise._resolveCallback(t)
}
function s (t) {
this.promise._rejectCallback(t, !1)
}
function u (t) {
var e = new o(w);
e._fulfillmentHandler0 = t, e._rejectionHandler0 = t, e._promise0 = t, e._receiver0 = t
}
var l, c = function () {
return new g("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")
},
d = function () {
return new o.PromiseInspection(this._target())
},
p = function (t) {
return o.reject(new g(t))
},
h = {},
f = t("./util");
l = f.isNode ? function () {
var t = e.domain;
return void 0 === t && (t = null), t
} : function () {
return null
}, f.notEnumerableProp(o, "_getDomain", l);
var m = t("./es5"),
_ = t("./async"),
b = new _;
m.defineProperty(o, "_async", {
value: b
});
var v = t("./errors"),
g = o.TypeError = v.TypeError;
o.RangeError = v.RangeError;
var y = o.CancellationError = v.CancellationError;
o.TimeoutError = v.TimeoutError, o.OperationalError = v.OperationalError, o.RejectionError = v.OperationalError, o.AggregateError = v.AggregateError;
var w = function () {},
M = {},
T = {},
k = t("./thenables")(o, w),
S = t("./promise_array")(o, w, k, p, i),
L = t("./context")(o),
x = L.create,
D = t("./debuggability")(o, L),
E = (D.CapturedTrace, t("./finally")(o, k)),
Y = t("./catch_filter")(T),
C = t("./nodeback"),
P = f.errorObj,
j = f.tryCatch;
return o.prototype.toString = function () {
return "[object Promise]"
}, o.prototype.caught = o.prototype.catch = function (t) {
var e = arguments.length;
if (e > 1) {
var n, i = new Array(e - 1),
r = 0;
for (n = 0; n < e - 1; ++n) {
var o = arguments[n];
if (!f.isObject(o)) return p("expecting an object but got A catch statement predicate " + f.classString(o));
i[r++] = o
}
return i.length = r, t = arguments[n], this.then(void 0, Y(i, t, this))
}
return this.then(void 0, t)
}, o.prototype.reflect = function () {
return this._then(d, d, void 0, this, void 0)
}, o.prototype.then = function (t, e) {
if (D.warnings() && arguments.length > 0 && "function" != typeof t && "function" != typeof e) {
var n = ".then() only accepts functions but was passed: " + f.classString(t);
arguments.length > 1 && (n += ", " + f.classString(e)), this._warn(n)
}
return this._then(t, e, void 0, void 0, void 0)
}, o.prototype.done = function (t, e) {
var n = this._then(t, e, void 0, void 0, void 0);
n._setIsFinal()
}, o.prototype.spread = function (t) {
return "function" != typeof t ? p("expecting a function but got " + f.classString(t)) : this.all()
._then(t, void 0, void 0, M, void 0)
}, o.prototype.toJSON = function () {
var t = {
isFulfilled: !1,
isRejected: !1,
fulfillmentValue: void 0,
rejectionReason: void 0
};
return this.isFulfilled() ? (t.fulfillmentValue = this.value(), t.isFulfilled = !0) : this.isRejected() && (t.rejectionReason = this.reason(), t.isRejected = !0), t
}, o.prototype.all = function () {
return arguments.length > 0 && this._warn(".all() was passed arguments but it does not take any"), new S(this)
.promise()
}, o.prototype.error = function (t) {
return this.caught(f.originatesFromRejection, t)
}, o.getNewLibraryCopy = n.exports, o.is = function (t) {
return t instanceof o
}, o.fromNode = o.fromCallback = function (t) {
var e = new o(w);
e._captureStackTrace();
var n = arguments.length > 1 && !!Object(arguments[1])
.multiArgs,
i = j(t)(C(e, n));
return i === P && e._rejectCallback(i.e, !0), e._isFateSealed() || e._setAsyncGuaranteed(), e
}, o.all = function (t) {
return new S(t)
.promise()
}, o.cast = function (t) {
var e = k(t);
return e instanceof o || (e = new o(w), e._captureStackTrace(), e._setFulfilled(), e._rejectionHandler0 = t), e
}, o.resolve = o.fulfilled = o.cast, o.reject = o.rejected = function (t) {
var e = new o(w);
return e._captureStackTrace(), e._rejectCallback(t, !0), e
}, o.setScheduler = function (t) {
if ("function" != typeof t) throw new g("expecting a function but got " + f.classString(t));
return b.setScheduler(t)
}, o.prototype._then = function (t, e, n, i, r) {
var a = void 0 !== r,
s = a ? r : new o(w),
u = this._target(),
c = u._bitField;
a || (s._propagateFrom(this, 3), s._captureStackTrace(), void 0 === i && 0 !== (2097152 & this._bitField) && (i = 0 !== (50397184 & c) ? this._boundValue() : u === this ? void 0 : this._boundTo), this._fireEvent("promiseChained", this, s));
var d = l();
if (0 !== (50397184 & c)) {
var p, h, m = u._settlePromiseCtx;
0 !== (33554432 & c) ? (h = u._rejectionHandler0, p = t): 0
!==
(16777216 & c) ? (h = u._fulfillmentHandler0, p = e, u._unsetRejectionIsUnhandled()) : (m = u._settlePromiseLateCancellationObserver, h = new y("late cancellation observer"), u._attachExtraTrace(h), p = e), b.invoke(m, u, {
handler: null === d ? p : "function" == typeof p && f.domainBind(d, p),
promise: s,
receiver: i,
value: h
})
} else u._addCallbacks(t, e, s, i, d);
return s
}, o.prototype._length = function () {
return 65535 & this._bitField
}, o.prototype._isFateSealed = function () {
return 0 !== (117506048 & this._bitField)
}, o.prototype._isFollowing = function () {
return 67108864 === (67108864 & this._bitField)
}, o.prototype._setLength = function (t) {
this._bitField = this._bitField & -65536 | 65535 & t
}, o.prototype._setFulfilled = function () {
this._bitField = 33554432 | this._bitField, this._fireEvent("promiseFulfilled", this)
}, o.prototype._setRejected = function () {
this._bitField = 16777216 | this._bitField, this._fireEvent("promiseRejected", this)
}, o.prototype._setFollowing = function () {
this._bitField = 67108864 | this._bitField, this._fireEvent("promiseResolved", this)
}, o.prototype._setIsFinal = function () {
this._bitField = 4194304 | this._bitField
}, o.prototype._isFinal = function () {
return (4194304 & this._bitField) > 0
}, o.prototype._unsetCancelled = function () {
this._bitField = this._bitField & -65537
}, o.prototype._setCancelled = function () {
this._bitField = 65536 | this._bitField, this._fireEvent("promiseCancelled", this)
}, o.prototype._setWillBeCancelled = function () {
this._bitField = 8388608 | this._bitField
}, o.prototype._setAsyncGuaranteed = function () {
b.hasCustomScheduler() || (this._bitField = 134217728 | this._bitField)
}, o.prototype._receiverAt = function (t) {
var e = 0 === t ? this._receiver0 : this[4 * t - 4 + 3];
if (e !== h) return void 0 === e && this._isBound() ? this._boundValue() : e
}, o.prototype._promiseAt = function (t) {
return this[4 * t - 4 + 2]
}, o.prototype._fulfillmentHandlerAt = function (t) {
return this[4 * t - 4 + 0]
}, o.prototype._rejectionHandlerAt = function (t) {
return this[4 * t - 4 + 1]
}, o.prototype._boundValue = function () {}, o.prototype._migrateCallback0 = function (t) {
var e = (t._bitField, t._fulfillmentHandler0),
n = t._rejectionHandler0,
i = t._promise0,
r = t._receiverAt(0);
void 0 === r && (r = h), this._addCallbacks(e, n, i, r, null)
}, o.prototype._migrateCallbackAt = function (t, e) {
var n = t._fulfillmentHandlerAt(e),
i = t._rejectionHandlerAt(e),
r = t._promiseAt(e),
o = t._receiverAt(e);
void 0 === o && (o = h), this._addCallbacks(n, i, r, o, null)
}, o.prototype._addCallbacks = function (t, e, n, i, r) {
var o = this._length();
if (o >= 65531 && (o = 0, this._setLength(0)), 0 === o) this._promise0 = n, this._receiver0 = i, "function" == typeof t && (this._fulfillmentHandler0 = null === r ? t : f.domainBind(r, t)), "function" == typeof e && (this._rejectionHandler0 = null === r ? e : f.domainBind(r, e));
else {
var a = 4 * o - 4;
this[a + 2] = n, this[a + 3] = i, "function" == typeof t && (this[a + 0] = null === r ? t : f.domainBind(r, t)), "function" == typeof e && (this[a + 1] = null === r ? e : f.domainBind(r, e))
}
return this._setLength(o + 1), o
}, o.prototype._proxy = function (t, e) {
this._addCallbacks(void 0, void 0, e, t, null)
}, o.prototype._resolveCallback = function (t, e) {
if (0 === (117506048 & this._bitField)) {
if (t === this) return this._rejectCallback(c(), !1);
var n = k(t, this);
if (!(n instanceof o)) return this._fulfill(t);
e && this._propagateFrom(n, 2);
var i = n._target();
if (i === this) return void this._reject(c());
var r = i._bitField;
if (0 === (50397184 & r)) {
var a = this._length();
a > 0 && i._migrateCallback0(this);
for (var s = 1; s < a; ++s) i._migrateCallbackAt(this, s);
this._setFollowing(), this._setLength(0), this._setFollowee(i)
} else if (0 !== (33554432 & r)) this._fulfill(i._value());
else if (0 !== (16777216 & r)) this._reject(i._reason());
else {
var u = new y("late cancellation observer");
i._attachExtraTrace(u), this._reject(u)
}
}
}, o.prototype._rejectCallback = function (t, e, n) {
var i = f.ensureErrorObject(t),
r = i === t;
if (!r && !n && D.warnings()) {
var o = "a promise was rejected with a non-error: " + f.classString(t);
this._warn(o, !0)
}
this._attachExtraTrace(i, !!e && r), this._reject(t)
}, o.prototype._resolveFromExecutor = function (t) {
var e = this;
this._captureStackTrace(), this._pushContext();
var n = !0,
i = this._execute(t, function (t) {
e._resolveCallback(t)
}, function (t) {
e._rejectCallback(t, n)
});
n = !1, this._popContext(), void 0 !== i && e._rejectCallback(i, !0)
}, o.prototype._settlePromiseFromHandler = function (t, e, n, i) {
var r = i._bitField;
if (0 === (65536 & r)) {
i._pushContext();
var o;
e === M ? n && "number" == typeof n.length ? o = j(t)
.apply(this._boundValue(), n) : (o = P, o.e = new g("cannot .spread() a non-array: " + f.classString(n))) : o = j(t)
.call(e, n);
var a = i._popContext();
r = i._bitField, 0 === (65536 & r) && (o === T ? i._reject(n) : o === P ? i._rejectCallback(o.e, !1) : (D.checkForgottenReturns(o, a, "", i, this), i._resolveCallback(o)))
}
}, o.prototype._target = function () {
for (var t = this; t._isFollowing();) t = t._followee();
return t
}, o.prototype._followee = function () {
return this._rejectionHandler0
}, o.prototype._setFollowee = function (t) {
this._rejectionHandler0 = t
}, o.prototype._settlePromise = function (t, e, n, r) {
var a = t instanceof o,
s = this._bitField,
u = 0 !== (134217728 & s);
0 !== (65536 & s) ? (a && t._invokeInternalOnCancel(), n instanceof E && n.isFinallyHandler() ? (n.cancelPromise = t, j(e)
.call(n, r) === P && t._reject(P.e)) : e === d ? t._fulfill(d.call(n)) : n instanceof i ? n._promiseCancelled(t) : a || t instanceof S ? t._cancel() : n.cancel()) : "function" == typeof e ? a ? (u && t._setAsyncGuaranteed(), this._settlePromiseFromHandler(e, n, r, t)) : e.call(n, r, t) : n instanceof i ? n._isResolved() || (0 !== (33554432 & s) ? n._promiseFulfilled(r, t) : n._promiseRejected(r, t)) : a && (u && t._setAsyncGuaranteed(), 0 !== (33554432 & s) ? t._fulfill(r) : t._reject(r))
}, o.prototype._settlePromiseLateCancellationObserver = function (t) {
var e = t.handler,
n = t.promise,
i = t.receiver,
r = t.value;
"function" == typeof e ? n instanceof o ? this._settlePromiseFromHandler(e, i, r, n) : e.call(i, r, n) : n instanceof o && n._reject(r)
}, o.prototype._settlePromiseCtx = function (t) {
this._settlePromise(t.promise, t.handler, t.receiver, t.value)
}, o.prototype._settlePromise0 = function (t, e, n) {
var i = this._promise0,
r = this._receiverAt(0);
this._promise0 = void 0, this._receiver0 = void 0, this._settlePromise(i, t, r, e)
}, o.prototype._clearCallbackDataAtIndex = function (t) {
var e = 4 * t - 4;
this[e + 2] = this[e + 3] = this[e + 0] = this[e + 1] = void 0
}, o.prototype._fulfill = function (t) {
var e = this._bitField;
if (!((117506048 & e) >>> 16)) {
if (t === this) {
var n = c();
return this._attachExtraTrace(n), this._reject(n)
}
this._setFulfilled(), this._rejectionHandler0 = t, (65535 & e) > 0 && (0 !== (134217728 & e) ? this._settlePromises() : b.settlePromises(this))
}
}, o.prototype._reject = function (t) {
var e = this._bitField;
if (!((117506048 & e) >>> 16)) return this._setRejected(), this._fulfillmentHandler0 = t, this._isFinal() ? b.fatalError(t, f.isNode) : void((65535 & e) > 0 ? b.settlePromises(this) : this._ensurePossibleRejectionHandled())
}, o.prototype._fulfillPromises = function (t, e) {
for (var n = 1; n < t; n++) {
var i = this._fulfillmentHandlerAt(n),
r = this._promiseAt(n),
o = this._receiverAt(n);
this._clearCallbackDataAtIndex(n), this._settlePromise(r, i, o, e)
}
}, o.prototype._rejectPromises = function (t, e) {
for (var n = 1; n < t; n++) {
var i = this._rejectionHandlerAt(n),
r = this._promiseAt(n),
o = this._receiverAt(n);
this._clearCallbackDataAtIndex(n), this._settlePromise(r, i, o, e)
}
}, o.prototype._settlePromises = function () {
var t = this._bitField,
e = 65535 & t;
if (e > 0) {
if (0 !== (16842752 & t)) {
var n = this._fulfillmentHandler0;
this._settlePromise0(this._rejectionHandler0, n, t), this._rejectPromises(e, n)
} else {
var i = this._rejectionHandler0;
this._settlePromise0(this._fulfillmentHandler0, i, t), this._fulfillPromises(e, i)
}
this._setLength(0)
}
this._clearCancellationData()
}, o.prototype._settledValue = function () {
var t = this._bitField;
return 0 !== (33554432 & t) ? this._rejectionHandler0 : 0 !== (16777216 & t) ? this._fulfillmentHandler0 : void 0
}, o.defer = o.pending = function () {
D.deprecated("Promise.defer", "new Promise");
var t = new o(w);
return {
promise: t,
resolve: a,
reject: s
}
}, f.notEnumerableProp(o, "_makeSelfResolutionError", c), t("./method")(o, w, k, p, D), t("./bind")(o, w, k, D), t("./cancel")(o, S, p, D), t("./direct_resolve")(o), t("./synchronous_inspection")(o), t("./join")(o, S, k, w, b, l), o.Promise = o, o.version = "3.4.6", t("./map.js")(o, S, p, k, w, D), t("./call_get.js")(o), t("./using.js")(o, p, k, x, w, D), t("./timers.js")(o, w, D), t("./generators.js")(o, p, w, k, i, D), t("./nodeify.js")(o), t("./promisify.js")(o, w), t("./props.js")(o, S, k, p), t("./race.js")(o, w, k, p), t("./reduce.js")(o, S, p, k, w, D), t("./settle.js")(o, S, D), t("./some.js")(o, S, p), t("./filter.js")(o, w), t("./each.js")(o, w), t("./any.js")(o), f.toFastProperties(o), f.toFastProperties(o.prototype), u({
a: 1
}), u({
b: 2
}), u({
c: 3
}), u(1), u(function () {}), u(void 0), u(!1), u(new o(w)), D.setBounds(_.firstLineError, f.lastLineError), o
}
}, {
"./any.js": 1,
"./async": 2,
"./bind": 3,
"./call_get.js": 5,
"./cancel": 6,
"./catch_filter": 7,
"./context": 8,
"./debuggability": 9,
"./direct_resolve": 10,
"./each.js": 11,
"./errors": 12,
"./es5": 13,
"./filter.js": 14,
"./finally": 15,
"./generators.js": 16,
"./join": 17,
"./map.js": 18,
"./method": 19,
"./nodeback": 20,
"./nodeify.js": 21,
"./promise_array": 23,
"./promisify.js": 24,
"./props.js": 25,
"./race.js": 27,
"./reduce.js": 28,
"./settle.js": 30,
"./some.js": 31,
"./synchronous_inspection": 32,
"./thenables": 33,
"./timers.js": 34,
"./using.js": 35,
"./util": 36
}],
23: [function (t, e, n) {
e.exports = function (e, n, i, r, o) {
function a (t) {
switch (t) {
case -2:
return [];
case -3:
return {}
}
}
function s (t) {
var i = this._promise = new e(n);
t instanceof e && i._propagateFrom(t, 3), i._setOnCancel(this), this._values = t, this._length = 0, this._totalResolved = 0, this._init(void 0, -2)
}
var u = t("./util");
u.isArray;
return u.inherits(s, o), s.prototype.length = function () {
return this._length
}, s.prototype.promise = function () {
return this._promise
}, s.prototype._init = function t (n, o) {
var s = i(this._values, this._promise);
if (s instanceof e) {
s = s._target();
var l = s._bitField;
if (this._values = s, 0 === (50397184 & l)) return this._promise._setAsyncGuaranteed(), s._then(t, this._reject, void 0, this, o);
if (0 === (33554432 & l)) return 0 !== (16777216 & l) ? this._reject(s._reason()) : this._cancel();
s = s._value()
}
if (s = u.asArray(s), null === s) {
var c = r("expecting an array or an iterable object but got " + u.classString(s))
.reason();
return void this._promise._rejectCallback(c, !1)
}
return 0 === s.length ? void(o === -5 ? this._resolveEmptyArray() : this._resolve(a(o))) : void this._iterate(s)
}, s.prototype._iterate = function (t) {
var n = this.getActualLength(t.length);
this._length = n, this._values = this.shouldCopyValues() ? new Array(n) : this._values;
for (var r = this._promise, o = !1, a = null, s = 0; s < n; ++s) {
var u = i(t[s], r);
u instanceof e ? (u = u._target(), a = u._bitField): a = null, o ? null !== a && u.suppressUnhandledRejections() : null !== a ? 0 === (50397184 & a) ? (u._proxy(this, s), this._values[s] = u) : o = 0 !== (33554432 & a) ? this._promiseFulfilled(u._value(), s) : 0 !== (16777216 & a) ? this._promiseRejected(u._reason(), s) : this._promiseCancelled(s) : o = this._promiseFulfilled(u, s)
}
o || r._setAsyncGuaranteed()
}, s.prototype._isResolved = function () {
return null === this._values
}, s.prototype._resolve = function (t) {
this._values = null, this._promise._fulfill(t)
}, s.prototype._cancel = function () {
!this._isResolved() && this._promise._isCancellable() && (this._values = null, this._promise._cancel())
}, s.prototype._reject = function (t) {
this._values = null, this._promise._rejectCallback(t, !1)
}, s.prototype._promiseFulfilled = function (t, e) {
this._values[e] = t;
var n = ++this._totalResolved;
return n >= this._length && (this._resolve(this._values), !0)
}, s.prototype._promiseCancelled = function () {
return this._cancel(), !0
}, s.prototype._promiseRejected = function (t) {
return this._totalResolved++, this._reject(t), !0
}, s.prototype._resultCancelled = function () {
if (!this._isResolved()) {
var t = this._values;
if (this._cancel(), t instanceof e) t.cancel();
else
for (var n = 0; n < t.length; ++n) t[n] instanceof e && t[n].cancel()
}
}, s.prototype.shouldCopyValues = function () {
return !0
}, s.prototype.getActualLength = function (t) {
return t
}, s
}
}, {
"./util": 36
}],
24: [function (t, e, n) {
e.exports = function (e, n) {
function i (t) {
return !M.test(t)
}
function r (t) {
try {
return t.__isPromisified__ === !0
} catch (t) {
return !1
}
}
function o (t, e, n) {
var i = h.getDataPropertyOrDefault(t, e + n, y);
return !!i && r(i)
}
function a (t, e, n) {
for (var i = 0; i < t.length; i += 2) {
var r = t[i];
if (n.test(r))
for (var o = r.replace(n, ""), a = 0; a < t.length; a += 2)
if (t[a] === o) throw new v("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s", e))
}
}
function s (t, e, n, i) {
for (var s = h.inheritedDataKeys(t), u = [], l = 0; l < s.length; ++l) {
var c = s[l],
d = t[c],
p = i === T || T(c, d, t);
"function" != typeof d || r(d) || o(t, c, e) || !i(c, d, t, p) || u.push(c, d)
}
return a(u, e, n), u
}
function u (t, i, r, o, a, s) {
function u () {
var r = i;
i === p && (r = this);
var o = new e(n);
o._captureStackTrace();
var a = "string" == typeof c && this !== l ? this[c] : t,
u = f(o, s);
try {
a.apply(r, m(arguments, u))
} catch (t) {
o._rejectCallback(_(t), !0, !0)
}
return o._isFateSealed() || o._setAsyncGuaranteed(), o
}
var l = function () {
return this
}(),
c = t;
return "string" == typeof c && (t = o), h.notEnumerableProp(u, "__isPromisified__", !0), u
}
function l (t, e, n, i, r) {
for (var o = new RegExp(k(e) + "$"), a = s(t, e, o, n), u = 0, l = a.length; u < l; u += 2) {
var c = a[u],
d = a[u + 1],
f = c + e;
if (i === S) t[f] = S(c, p, c, d, e, r);
else {
var m = i(d, function () {
return S(c, p, c, d, e, r)
});
h.notEnumerableProp(m, "__isPromisified__", !0), t[f] = m
}
}
return h.toFastProperties(t), t
}
function c (t, e, n) {
return S(t, e, void 0, t, null, n)
}
var d, p = {},
h = t("./util"),
f = t("./nodeback"),
m = h.withAppended,
_ = h.maybeWrapAsError,
b = h.canEvaluate,
v = t("./errors")
.TypeError,
g = "Async",
y = {
__isPromisified__: !0
},
w = ["arity", "length", "name", "arguments", "caller", "callee", "prototype", "__isPromisified__"],
M = new RegExp("^(?:" + w.join("|") + ")$"),
T = function (t) {
return h.isIdentifier(t) && "_" !== t.charAt(0) && "constructor" !== t
},
k = function (t) {
return t.replace(/([$])/, "\\$")
},
S = b ? d : u;
e.promisify = function (t, e) {
if ("function" != typeof t) throw new v("expecting a function but got " + h.classString(t));
if (r(t)) return t;
e = Object(e);
var n = void 0 === e.context ? p : e.context,
o = !!e.multiArgs,
a = c(t, n, o);
return h.copyDescriptors(t, a, i), a
}, e.promisifyAll = function (t, e) {
if ("function" != typeof t && "object" != typeof t) throw new v("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");
e = Object(e);
var n = !!e.multiArgs,
i = e.suffix;
"string" != typeof i && (i = g);
var r = e.filter;
"function" != typeof r && (r = T);
var o = e.promisifier;
if ("function" != typeof o && (o = S), !h.isIdentifier(i)) throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");
for (var a = h.inheritedDataKeys(t), s = 0; s < a.length; ++s) {
var u = t[a[s]];
"constructor" !== a[s] && h.isClass(u) && (l(u.prototype, i, r, o, n), l(u, i, r, o, n))
}
return l(t, i, r, o, n)
}
}
}, {
"./errors": 12,
"./nodeback": 20,
"./util": 36
}],
25: [function (t, e, n) {
e.exports = function (e, n, i, r) {
function o (t) {
var e, n = !1;
if (void 0 !== s && t instanceof s) e = d(t), n = !0;
else {
var i = c.keys(t),
r = i.length;
e = new Array(2 * r);
for (var o = 0; o < r; ++o) {
var a = i[o];
e[o] = t[a], e[o + r] = a
}
}
this.constructor$(e), this._isMap = n, this._init$(void 0, -3)
}
function a (t) {
var n, a = i(t);
return l(a) ? (n = a instanceof e ? a._then(e.props, void 0, void 0, void 0, void 0) : new o(a)
.promise(), a instanceof e && n._propagateFrom(a, 2), n) : r("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")
}
var s, u = t("./util"),
l = u.isObject,
c = t("./es5");
"function" == typeof Map && (s = Map);
var d = function () {
function t (t, i) {
this[e] = t, this[e + n] = i, e++
}
var e = 0,
n = 0;
return function (i) {
n = i.size, e = 0;
var r = new Array(2 * i.size);
return i.forEach(t, r), r
}
}(),
p = function (t) {
for (var e = new s, n = t.length / 2 | 0, i = 0; i < n; ++i) {
var r = t[n + i],
o = t[i];
e.set(r, o)
}
return e
};
u.inherits(o, n), o.prototype._init = function () {}, o.prototype._promiseFulfilled = function (t, e) {
this._values[e] = t;
var n = ++this._totalResolved;
if (n >= this._length) {
var i;
if (this._isMap) i = p(this._values);
else {
i = {};
for (var r = this.length(), o = 0, a = this.length(); o < a; ++o) i[this._values[o + r]] = this._values[o]
}
return this._resolve(i), !0
}
return !1
}, o.prototype.shouldCopyValues = function () {
return !1
}, o.prototype.getActualLength = function (t) {
return t >> 1
}, e.prototype.props = function () {
return a(this)
}, e.props = function (t) {
return a(t)
}
}
}, {
"./es5": 13,
"./util": 36
}],
26: [function (t, e, n) {
function i (t, e, n, i, r) {
for (var o = 0; o < r; ++o) n[o + i] = t[o + e], t[o + e] = void 0
}
function r (t) {
this._capacity = t, this._length = 0, this._front = 0
}
r.prototype._willBeOverCapacity = function (t) {
return this._capacity < t
}, r.prototype._pushOne = function (t) {
var e = this.length();
this._checkCapacity(e + 1);
var n = this._front + e & this._capacity - 1;
this[n] = t, this._length = e + 1
}, r.prototype._unshiftOne = function (t) {
var e = this._capacity;
this._checkCapacity(this.length() + 1);
var n = this._front,
i = (n - 1 & e - 1 ^ e) - e;
this[i] = t, this._front = i, this._length = this.length() + 1
}, r.prototype.unshift = function (t, e, n) {
this._unshiftOne(n), this._unshiftOne(e), this._unshiftOne(t)
}, r.prototype.push = function (t, e, n) {
var i = this.length() + 3;
if (this._willBeOverCapacity(i)) return this._pushOne(t), this._pushOne(e), void this._pushOne(n);
var r = this._front + i - 3;
this._checkCapacity(i);
var o = this._capacity - 1;
this[r + 0 & o] = t, this[r + 1 & o] = e, this[r + 2 & o] = n, this._length = i
}, r.prototype.shift = function () {
var t = this._front,
e = this[t];
return this[t] = void 0, this._front = t + 1 & this._capacity - 1, this._length--, e
}, r.prototype.length = function () {
return this._length
}, r.prototype._checkCapacity = function (t) {
this._capacity < t && this._resizeTo(this._capacity << 1)
}, r.prototype._resizeTo = function (t) {
var e = this._capacity;
this._capacity = t;
var n = this._front,
r = this._length,
o = n + r & e - 1;
i(this, 0, this, e, o)
}, e.exports = r
}, {}],
27: [function (t, e, n) {
e.exports = function (e, n, i, r) {
function o (t, o) {
var u = i(t);
if (u instanceof e) return s(u);
if (t = a.asArray(t), null === t) return r("expecting an array or an iterable object but got " + a.classString(t));
var l = new e(n);
void 0 !== o && l._propagateFrom(o, 3);
for (var c = l._fulfill, d = l._reject, p = 0, h = t.length; p < h; ++p) {
var f = t[p];
(void 0 !== f || p in t) && e.cast(f)
._then(c, d, void 0, l, null)
}
return l
}
var a = t("./util"),
s = function (t) {
return t.then(function (e) {
return o(e, t)
})
};
e.race = function (t) {
return o(t, void 0)
}, e.prototype.race = function () {
return o(this, void 0)
}
}
}, {
"./util": 36
}],
28: [function (t, e, n) {
e.exports = function (e, n, i, r, o, a) {
function s (t, n, i, r) {
this.constructor$(t);
var a = p();
this._fn = null === a ? n : h.domainBind(a, n), void 0 !== i && (i = e.resolve(i), i._attachCancellationCallback(this)), this._initialValue = i, this._currentCancellable = null, r === o ? this._eachValues = Array(this._length) : 0 === r ? this._eachValues = null : this._eachValues = void 0, this._promise._captureStackTrace(), this._init$(void 0, -5)
}
function u (t, e) {
this.isFulfilled() ? e._resolve(t) : e._reject(t)
}
function l (t, e, n, r) {
if ("function" != typeof e) return i("expecting a function but got " + h.classString(e));
var o = new s(t, e, n, r);
return o.promise()
}
function c (t) {
this.accum = t, this.array._gotAccum(t);
var n = r(this.value, this.array._promise);
return n instanceof e ? (this.array._currentCancellable = n, n._then(d, void 0, void 0, this, void 0)) : d.call(this, n)
}
function d (t) {
var n = this.array,
i = n._promise,
r = f(n._fn);
i._pushContext();
var o;
o = void 0 !== n._eachValues ? r.call(i._boundValue(), t, this.index, this.length) : r.call(i._boundValue(), this.accum, t, this.index, this.length), o instanceof e && (n._currentCancellable = o);
var s = i._popContext();
return a.checkForgottenReturns(o, s, void 0 !== n._eachValues ? "Promise.each" : "Promise.reduce", i), o
}
var p = e._getDomain,
h = t("./util"),
f = h.tryCatch;
h.inherits(s, n), s.prototype._gotAccum = function (t) {
void 0 !== this._eachValues && null !== this._eachValues && t !== o && this._eachValues.push(t)
}, s.prototype._eachComplete = function (t) {
return null !== this._eachValues && this._eachValues.push(t), this._eachValues
}, s.prototype._init = function () {}, s.prototype._resolveEmptyArray = function () {
this._resolve(void 0 !== this._eachValues ? this._eachValues : this._initialValue)
}, s.prototype.shouldCopyValues = function () {
return !1
}, s.prototype._resolve = function (t) {
this._promise._resolveCallback(t), this._values = null
}, s.prototype._resultCancelled = function (t) {
return t === this._initialValue ? this._cancel() : void(this._isResolved() || (this._resultCancelled$(), this._currentCancellable instanceof e && this._currentCancellable.cancel(), this._initialValue instanceof e && this._initialValue.cancel()))
}, s.prototype._iterate = function (t) {
this._values = t;
var n, i, r = t.length;
if (void 0 !== this._initialValue ? (n = this._initialValue, i = 0) : (n = e.resolve(t[0]), i = 1), this._currentCancellable = n, !n.isRejected())
for (; i < r; ++i) {
var o = {
accum: null,
value: t[i],
index: i,
length: r,
array: this
};
n = n._then(c, void 0, void 0, o, void 0)
}
void 0 !== this._eachValues && (n = n._then(this._eachComplete, void 0, void 0, this, void 0)), n._then(u, u, void 0, n, this)
}, e.prototype.reduce = function (t, e) {
return l(this, t, e, null)
}, e.reduce = function (t, e, n, i) {
return l(t, e, n, i)
}
}
}, {
"./util": 36
}],
29: [function (t, n, o) {
var a, s = t("./util"),
u = function () {
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")
},
l = s.getNativePromise();
if (s.isNode && "undefined" == typeof MutationObserver) {
var c = i.setImmediate,
d = e.nextTick;
a = s.isRecentNode ? function (t) {
c.call(i, t)
} : function (t) {
d.call(e, t)
}
} else if ("function" == typeof l && "function" == typeof l.resolve) {
var p = l.resolve();
a = function (t) {
p.then(t)
}
} else a = "undefined" == typeof MutationObserver || "undefined" != typeof window && window.navigator && (window.navigator.standalone || window.cordova) ? "undefined" != typeof r ? function (t) {
r(t)
} : "undefined" != typeof setTimeout ? function (t) {
setTimeout(t, 0)
} : u : function () {
var t = document.createElement("div"),
e = {
attributes: !0
},
n = !1,
i = document.createElement("div"),
r = new MutationObserver(function () {
t.classList.toggle("foo"), n = !1
});
r.observe(i, e);
var o = function () {
n || (n = !0, i.classList.toggle("foo"))
};
return function (n) {
var i = new MutationObserver(function () {
i.disconnect(), n()
});
i.observe(t, e), o()
}
}();
n.exports = a
}, {
"./util": 36
}],
30: [function (t, e, n) {
e.exports = function (e, n, i) {
function r (t) {
this.constructor$(t)
}
var o = e.PromiseInspection,
a = t("./util");
a.inherits(r, n), r.prototype._promiseResolved = function (t, e) {
this._values[t] = e;
var n = ++this._totalResolved;
return n >= this._length && (this._resolve(this._values), !0)
}, r.prototype._promiseFulfilled = function (t, e) {
var n = new o;
return n._bitField = 33554432, n._settledValueField = t, this._promiseResolved(e, n)
}, r.prototype._promiseRejected = function (t, e) {
var n = new o;
return n._bitField = 16777216, n._settledValueField = t, this._promiseResolved(e, n)
}, e.settle = function (t) {
return i.deprecated(".settle()", ".reflect()"), new r(t)
.promise()
}, e.prototype.settle = function () {
return e.settle(this)
}
}
}, {
"./util": 36
}],
31: [function (t, e, n) {
e.exports = function (e, n, i) {
function r (t) {
this.constructor$(t), this._howMany = 0, this._unwrap = !1, this._initialized = !1
}
function o (t, e) {
if ((0 | e) !== e || e < 0) return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");
var n = new r(t),
o = n.promise();
return n.setHowMany(e), n.init(), o
}
var a = t("./util"),
s = t("./errors")
.RangeError,
u = t("./errors")
.AggregateError,
l = a.isArray,
c = {};
a.inherits(r, n), r.prototype._init = function () {
if (this._initialized) {
if (0 === this._howMany) return void this._resolve([]);
this._init$(void 0, -5);
var t = l(this._values);
!this._isResolved() && t && this._howMany > this._canPossiblyFulfill() && this._reject(this._getRangeError(this.length()));
}
}, r.prototype.init = function () {
this._initialized = !0, this._init()
}, r.prototype.setUnwrap = function () {
this._unwrap = !0
}, r.prototype.howMany = function () {
return this._howMany
}, r.prototype.setHowMany = function (t) {
this._howMany = t
}, r.prototype._promiseFulfilled = function (t) {
return this._addFulfilled(t), this._fulfilled() === this.howMany() && (this._values.length = this.howMany(), 1 === this.howMany() && this._unwrap ? this._resolve(this._values[0]) : this._resolve(this._values), !0)
}, r.prototype._promiseRejected = function (t) {
return this._addRejected(t), this._checkOutcome()
}, r.prototype._promiseCancelled = function () {
return this._values instanceof e || null == this._values ? this._cancel() : (this._addRejected(c), this._checkOutcome())
}, r.prototype._checkOutcome = function () {
if (this.howMany() > this._canPossiblyFulfill()) {
for (var t = new u, e = this.length(); e < this._values.length; ++e) this._values[e] !== c && t.push(this._values[e]);
return t.length > 0 ? this._reject(t) : this._cancel(), !0
}
return !1
}, r.prototype._fulfilled = function () {
return this._totalResolved
}, r.prototype._rejected = function () {
return this._values.length - this.length()
}, r.prototype._addRejected = function (t) {
this._values.push(t)
}, r.prototype._addFulfilled = function (t) {
this._values[this._totalResolved++] = t
}, r.prototype._canPossiblyFulfill = function () {
return this.length() - this._rejected()
}, r.prototype._getRangeError = function (t) {
var e = "Input array must contain at least " + this._howMany + " items but contains only " + t + " items";
return new s(e)
}, r.prototype._resolveEmptyArray = function () {
this._reject(this._getRangeError(0))
}, e.some = function (t, e) {
return o(t, e)
}, e.prototype.some = function (t) {
return o(this, t)
}, e._SomePromiseArray = r
}
}, {
"./errors": 12,
"./util": 36
}],
32: [function (t, e, n) {
e.exports = function (t) {
function e (t) {
void 0 !== t ? (t = t._target(), this._bitField = t._bitField, this._settledValueField = t._isFateSealed() ? t._settledValue() : void 0) : (this._bitField = 0, this._settledValueField = void 0)
}
e.prototype._settledValue = function () {
return this._settledValueField
};
var n = e.prototype.value = function () {
if (!this.isFulfilled()) throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");
return this._settledValue()
},
i = e.prototype.error = e.prototype.reason = function () {
if (!this.isRejected()) throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");
return this._settledValue()
},
r = e.prototype.isFulfilled = function () {
return 0 !== (33554432 & this._bitField)
},
o = e.prototype.isRejected = function () {
return 0 !== (16777216 & this._bitField)
},
a = e.prototype.isPending = function () {
return 0 === (50397184 & this._bitField)
},
s = e.prototype.isResolved = function () {
return 0 !== (50331648 & this._bitField)
};
e.prototype.isCancelled = function () {
return 0 !== (8454144 & this._bitField)
}, t.prototype.__isCancelled = function () {
return 65536 === (65536 & this._bitField)
}, t.prototype._isCancelled = function () {
return this._target()
.__isCancelled()
}, t.prototype.isCancelled = function () {
return 0 !== (8454144 & this._target()
._bitField)
}, t.prototype.isPending = function () {
return a.call(this._target())
}, t.prototype.isRejected = function () {
return o.call(this._target())
}, t.prototype.isFulfilled = function () {
return r.call(this._target())
}, t.prototype.isResolved = function () {
return s.call(this._target())
}, t.prototype.value = function () {
return n.call(this._target())
}, t.prototype.reason = function () {
var t = this._target();
return t._unsetRejectionIsUnhandled(), i.call(t)
}, t.prototype._value = function () {
return this._settledValue()
}, t.prototype._reason = function () {
return this._unsetRejectionIsUnhandled(), this._settledValue()
}, t.PromiseInspection = e
}
}, {}],
33: [function (t, e, n) {
e.exports = function (e, n) {
function i (t, i) {
if (c(t)) {
if (t instanceof e) return t;
var r = o(t);
if (r === l) {
i && i._pushContext();
var u = e.reject(r.e);
return i && i._popContext(), u
}
if ("function" == typeof r) {
if (a(t)) {
var u = new e(n);
return t._then(u._fulfill, u._reject, void 0, u, null), u
}
return s(t, r, i)
}
}
return t
}
function r (t) {
return t.then
}
function o (t) {
try {
return r(t)
} catch (t) {
return l.e = t, l
}
}
function a (t) {
try {
return d.call(t, "_promise0")
} catch (t) {
return !1
}
}
function s (t, i, r) {
function o (t) {
s && (s._resolveCallback(t), s = null)
}
function a (t) {
s && (s._rejectCallback(t, d, !0), s = null)
}
var s = new e(n),
c = s;
r && r._pushContext(), s._captureStackTrace(), r && r._popContext();
var d = !0,
p = u.tryCatch(i)
.call(t, o, a);
return d = !1, s && p === l && (s._rejectCallback(p.e, !0, !0), s = null), c
}
var u = t("./util"),
l = u.errorObj,
c = u.isObject,
d = {}.hasOwnProperty;
return i
}
}, {
"./util": 36
}],
34: [function (t, e, n) {
e.exports = function (e, n, i) {
function r (t) {
this.handle = t
}
function o (t) {
return clearTimeout(this.handle), t
}
function a (t) {
throw clearTimeout(this.handle), t
}
var s = t("./util"),
u = e.TimeoutError;
r.prototype._resultCancelled = function () {
clearTimeout(this.handle)
};
var l = function (t) {
return c(+this)
.thenReturn(t)
},
c = e.delay = function (t, o) {
var a, s;
return void 0 !== o ? (a = e.resolve(o)
._then(l, null, null, t, void 0), i.cancellation() && o instanceof e && a._setOnCancel(o)) : (a = new e(n), s = setTimeout(function () {
a._fulfill()
}, +t), i.cancellation() && a._setOnCancel(new r(s)), a._captureStackTrace()), a._setAsyncGuaranteed(), a
};
e.prototype.delay = function (t) {
return c(t, this)
};
var d = function (t, e, n) {
var i;
i = "string" != typeof e ? e instanceof Error ? e : new u("operation timed out") : new u(e), s.markAsOriginatingFromRejection(i), t._attachExtraTrace(i), t._reject(i), null != n && n.cancel()
};
e.prototype.timeout = function (t, e) {
t = +t;
var n, s, u = new r(setTimeout(function () {
n.isPending() && d(n, e, s)
}, t));
return i.cancellation() ? (s = this.then(), n = s._then(o, a, void 0, u, void 0), n._setOnCancel(u)) : n = this._then(o, a, void 0, u, void 0), n
}
}
}, {
"./util": 36
}],
35: [function (t, e, n) {
e.exports = function (e, n, i, r, o, a) {
function s (t) {
setTimeout(function () {
throw t
}, 0)
}
function u (t) {
var e = i(t);
return e !== t && "function" == typeof t._isDisposable && "function" == typeof t._getDisposer && t._isDisposable() && e._setDisposable(t._getDisposer()), e
}
function l (t, n) {
function r () {
if (a >= l) return c._fulfill();
var o = u(t[a++]);
if (o instanceof e && o._isDisposable()) {
try {
o = i(o._getDisposer()
.tryDispose(n), t.promise)
} catch (t) {
return s(t)
}
if (o instanceof e) return o._then(r, s, null, null, null)
}
r()
}
var a = 0,
l = t.length,
c = new e(o);
return r(), c
}
function c (t, e, n) {
this._data = t, this._promise = e, this._context = n
}
function d (t, e, n) {
this.constructor$(t, e, n)
}
function p (t) {
return c.isDisposer(t) ? (this.resources[this.index]._setDisposable(t), t.promise()) : t
}
function h (t) {
this.length = t, this.promise = null, this[t - 1] = null
}
var f = t("./util"),
m = t("./errors")
.TypeError,
_ = t("./util")
.inherits,
b = f.errorObj,
v = f.tryCatch,
g = {};
c.prototype.data = function () {
return this._data
}, c.prototype.promise = function () {
return this._promise
}, c.prototype.resource = function () {
return this.promise()
.isFulfilled() ? this.promise()
.value() : g
}, c.prototype.tryDispose = function (t) {
var e = this.resource(),
n = this._context;
void 0 !== n && n._pushContext();
var i = e !== g ? this.doDispose(e, t) : null;
return void 0 !== n && n._popContext(), this._promise._unsetDisposable(), this._data = null, i
}, c.isDisposer = function (t) {
return null != t && "function" == typeof t.resource && "function" == typeof t.tryDispose
}, _(d, c), d.prototype.doDispose = function (t, e) {
var n = this.data();
return n.call(t, t, e)
}, h.prototype._resultCancelled = function () {
for (var t = this.length, n = 0; n < t; ++n) {
var i = this[n];
i instanceof e && i.cancel()
}
}, e.using = function () {
var t = arguments.length;
if (t < 2) return n("you must pass at least 2 arguments to Promise.using");
var r = arguments[t - 1];
if ("function" != typeof r) return n("expecting a function but got " + f.classString(r));
var o, s = !0;
2 === t && Array.isArray(arguments[0]) ? (o = arguments[0], t = o.length, s = !1) : (o = arguments, t--);
for (var u = new h(t), d = 0; d < t; ++d) {
var m = o[d];
if (c.isDisposer(m)) {
var _ = m;
m = m.promise(), m._setDisposable(_)
} else {
var g = i(m);
g instanceof e && (m = g._then(p, null, null, {
resources: u,
index: d
}, void 0))
}
u[d] = m
}
for (var y = new Array(u.length), d = 0; d < y.length; ++d) y[d] = e.resolve(u[d])
.reflect();
var w = e.all(y)
.then(function (t) {
for (var e = 0; e < t.length; ++e) {
var n = t[e];
if (n.isRejected()) return b.e = n.error(), b;
if (!n.isFulfilled()) return void w.cancel();
t[e] = n.value()
}
M._pushContext(), r = v(r);
var i = s ? r.apply(void 0, t) : r(t),
o = M._popContext();
return a.checkForgottenReturns(i, o, "Promise.using", M), i
}),
M = w.lastly(function () {
var t = new e.PromiseInspection(w);
return l(u, t)
});
return u.promise = M, M._setOnCancel(u), M
}, e.prototype._setDisposable = function (t) {
this._bitField = 131072 | this._bitField, this._disposer = t
}, e.prototype._isDisposable = function () {
return (131072 & this._bitField) > 0
}, e.prototype._getDisposer = function () {
return this._disposer
}, e.prototype._unsetDisposable = function () {
this._bitField = this._bitField & -131073, this._disposer = void 0
}, e.prototype.disposer = function (t) {
if ("function" == typeof t) return new d(t, this, r());
throw new m
}
}
}, {
"./errors": 12,
"./util": 36
}],
36: [function (t, r, o) {
function a () {
try {
var t = P;
return P = null, t.apply(this, arguments)
} catch (t) {
return C.e = t, C
}
}
function s (t) {
return P = t, a
}
function u (t) {
return null == t || t === !0 || t === !1 || "string" == typeof t || "number" == typeof t
}
function l (t) {
return "function" == typeof t || "object" == typeof t && null !== t
}
function c (t) {
return u(t) ? new Error(g(t)) : t
}
function d (t, e) {
var n, i = t.length,
r = new Array(i + 1);
for (n = 0; n < i; ++n) r[n] = t[n];
return r[n] = e, r
}
function p (t, e, n) {
if (!E.isES5) return {}.hasOwnProperty.call(t, e) ? t[e] : void 0;
var i = Object.getOwnPropertyDescriptor(t, e);
return null != i ? null == i.get && null == i.set ? i.value : n : void 0
}
function h (t, e, n) {
if (u(t)) return t;
var i = {
value: n,
configurable: !0,
enumerable: !1,
writable: !0
};
return E.defineProperty(t, e, i), t
}
function f (t) {
throw t
}
function m (t) {
try {
if ("function" == typeof t) {
var e = E.names(t.prototype),
n = E.isES5 && e.length > 1,
i = e.length > 0 && !(1 === e.length && "constructor" === e[0]),
r = O.test(t + "") && E.names(t)
.length > 0;
if (n || i || r) return !0
}
return !1
} catch (t) {
return !1
}
}
function _ (t) {
function e () {}
e.prototype = t;
for (var n = 8; n--;) new e;
return t
}
function b (t) {
return I.test(t)
}
function v (t, e, n) {
for (var i = new Array(t), r = 0; r < t; ++r) i[r] = e + r + n;
return i
}
function g (t) {
try {
return t + ""
} catch (t) {
return "[no string representation]"
}
}
function y (t) {
return null !== t && "object" == typeof t && "string" == typeof t.message && "string" == typeof t.name
}
function w (t) {
try {
h(t, "isOperational", !0)
} catch (t) {}
}
function M (t) {
return null != t && (t instanceof Error.__BluebirdErrorTypes__.OperationalError || t.isOperational === !0)
}
function T (t) {
return y(t) && E.propertyIsWritable(t, "stack")
}
function k (t) {
return {}.toString.call(t)
}
function S (t, e, n) {
for (var i = E.names(t), r = 0; r < i.length; ++r) {
var o = i[r];
if (n(o)) try {
E.defineProperty(e, o, E.getDescriptor(t, o))
} catch (t) {}
}
}
function L (t, e) {
return H ? {
NODE_ENV: "production"
}[t] : e
}
function x () {
if ("function" == typeof n) try {
var t = new n(function () {});
if ("[object Promise]" === {}.toString.call(t)) return n
} catch (t) {}
}
function D (t, e) {
return t.bind(e)
}
var E = t("./es5"),
Y = "undefined" == typeof navigator,
C = {
e: {}
},
P, j = "undefined" != typeof self ? self : "undefined" != typeof window ? window : "undefined" != typeof i ? i : void 0 !== this ? this : null,
A = function (t, e) {
function n () {
this.constructor = t, this.constructor$ = e;
for (var n in e.prototype) i.call(e.prototype, n) && "$" !== n.charAt(n.length - 1) && (this[n + "$"] = e.prototype[n])
}
var i = {}.hasOwnProperty;
return n.prototype = e.prototype, t.prototype = new n, t.prototype
},
F = function () {
var t = [Array.prototype, Object.prototype, Function.prototype],
e = function (e) {
for (var n = 0; n < t.length; ++n)
if (t[n] === e) return !0;
return !1
};
if (E.isES5) {
var n = Object.getOwnPropertyNames;
return function (t) {
for (var i = [], r = Object.create(null); null != t && !e(t);) {
var o;
try {
o = n(t)
} catch (t) {
return i
}
for (var a = 0; a < o.length; ++a) {
var s = o[a];
if (!r[s]) {
r[s] = !0;
var u = Object.getOwnPropertyDescriptor(t, s);
null != u && null == u.get && null == u.set && i.push(s)
}
}
t = E.getPrototypeOf(t)
}
return i
}
}
var i = {}.hasOwnProperty;
return function (n) {
if (e(n)) return [];
var r = [];
t: for (var o in n)
if (i.call(n, o)) r.push(o);
else {
for (var a = 0; a < t.length; ++a)
if (i.call(t[a], o)) continue t;
r.push(o)
}
return r
}
}(),
O = /this\s*\.\s*\S+\s*=/,
I = /^[a-z$_][a-z$_0-9]*$/i,
N = function () {
return "stack" in new Error ? function (t) {
return T(t) ? t : new Error(g(t))
} : function (t) {
if (T(t)) return t;
try {
throw new Error(g(t))
} catch (t) {
return t
}
}
}(),
U = function (t) {
return E.isArray(t) ? t : null
};
if ("undefined" != typeof Symbol && Symbol.iterator) {
var R = "function" == typeof Array.from ? function (t) {
return Array.from(t)
} : function (t) {
for (var e, n = [], i = t[Symbol.iterator](); !(e = i.next())
.done;) n.push(e.value);
return n
};
U = function (t) {
return E.isArray(t) ? t : null != t && "function" == typeof t[Symbol.iterator] ? R(t) : null
}
}
var H = "undefined" != typeof e && "[object process]" === k(e)
.toLowerCase(),
W = {
isClass: m,
isIdentifier: b,
inheritedDataKeys: F,
getDataPropertyOrDefault: p,
thrower: f,
isArray: E.isArray,
asArray: U,
notEnumerableProp: h,
isPrimitive: u,
isObject: l,
isError: y,
canEvaluate: Y,
errorObj: C,
tryCatch: s,
inherits: A,
withAppended: d,
maybeWrapAsError: c,
toFastProperties: _,
filledRange: v,
toString: g,
canAttachTrace: T,
ensureErrorObject: N,
originatesFromRejection: M,
markAsOriginatingFromRejection: w,
classString: k,
copyDescriptors: S,
hasDevTools: "undefined" != typeof chrome && chrome && "function" == typeof chrome.loadTimes,
isNode: H,
env: L,
global: j,
getNativePromise: x,
domainBind: D
};
W.isRecentNode = W.isNode && function () {
var t = e.versions.node.split(".")
.map(Number);
return 0 === t[0] && t[1] > 10 || t[0] > 0
}(), W.isNode && W.toFastProperties(e);
try {
throw new Error
} catch (t) {
W.lastLineError = t
}
r.exports = W
}, {
"./es5": 13
}]
}, {}, [4])(4)
}), "undefined" != typeof window && null !== window ? window.P = window.Promise : "undefined" != typeof self && null !== self && (self.P = self.Promise)
})
.call(e, n(295), n(294), function () {
return this
}(), n(296)
.setImmediate)
}, function (t, e) {
function n () {
throw new Error("setTimeout has not been defined")
}
function i () {
throw new Error("clearTimeout has not been defined")
}
function r (t) {
if (c === setTimeout) return setTimeout(t, 0);
if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
try {
return c(t, 0)
} catch (e) {
try {
return c.call(null, t, 0)
} catch (e) {
return c.call(this, t, 0)
}
}
}
function o (t) {
if (d === clearTimeout) return clearTimeout(t);
if ((d === i || !d) && clearTimeout) return d = clearTimeout, clearTimeout(t);
try {
return d(t)
} catch (e) {
try {
return d.call(null, t)
} catch (e) {
return d.call(this, t)
}
}
}
function a () {
m && h && (m = !1, h.length ? f = h.concat(f) : _ = -1, f.length && s())
}
function s () {
if (!m) {
var t = r(a);
m = !0;
for (var e = f.length; e;) {
for (h = f, f = []; ++_ < e;) h && h[_].run();
_ = -1, e = f.length
}
h = null, m = !1, o(t)
}
}
function u (t, e) {
this.fun = t, this.array = e
}
function l () {}
var c, d, p = t.exports = {};
!function () {
try {
c = "function" == typeof setTimeout ? setTimeout : n
} catch (t) {
c = n
}
try {
d = "function" == typeof clearTimeout ? clearTimeout : i
} catch (t) {
d = i
}
}();
var h, f = [],
m = !1,
_ = -1;
p.nextTick = function (t) {
var e = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
f.push(new u(t, e)), 1 !== f.length || m || r(s)
}, u.prototype.run = function () {
this.fun.apply(null, this.array)
}, p.title = "browser", p.browser = !0, p.env = {}, p.argv = [], p.version = "", p.versions = {}, p.on = l, p.addListener = l, p.once = l, p.off = l, p.removeListener = l, p.removeAllListeners = l, p.emit = l, p.binding = function (t) {
throw new Error("process.binding is not supported")
}, p.cwd = function () {
return "/"
}, p.chdir = function (t) {
throw new Error("process.chdir is not supported")
}, p.umask = function () {
return 0
}
}, function (t, e, n) {
function i (t, e) {
this._id = t, this._clearFn = e
}
var r = Function.prototype.apply;
e.setTimeout = function () {
return new i(r.call(setTimeout, window, arguments), clearTimeout)
}, e.setInterval = function () {
return new i(r.call(setInterval, window, arguments), clearInterval)
}, e.clearTimeout = e.clearInterval = function (t) {
t && t.close()
}, i.prototype.unref = i.prototype.ref = function () {}, i.prototype.close = function () {
this._clearFn.call(window, this._id)
}, e.enroll = function (t, e) {
clearTimeout(t._idleTimeoutId), t._idleTimeout = e
}, e.unenroll = function (t) {
clearTimeout(t._idleTimeoutId), t._idleTimeout = -1
}, e._unrefActive = e.active = function (t) {
clearTimeout(t._idleTimeoutId);
var e = t._idleTimeout;
e >= 0 && (t._idleTimeoutId = setTimeout(function () {
t._onTimeout && t._onTimeout()
}, e))
}, n(297), e.setImmediate = setImmediate, e.clearImmediate = clearImmediate
}, function (t, e, n) {
(function (t, e) {
!function (t, n) {
function i (t) {
"function" != typeof t && (t = new Function("" + t));
for (var e = new Array(arguments.length - 1), n = 0; n < e.length; n++) e[n] = arguments[n + 1];
var i = {
callback: t,
args: e
};
return m[f] = i, h(f), f++
}
function r (t) {
delete m[t]
}
function o (t) {
var e = t.callback,
i = t.args;
switch (i.length) {
case 0:
e();
break;
case 1:
e(i[0]);
break;
case 2:
e(i[0], i[1]);
break;
case 3:
e(i[0], i[1], i[2]);
break;
default:
e.apply(n, i)
}
}
function a (t) {
if (_) setTimeout(a, 0, t);
else {
var e = m[t];
if (e) {
_ = !0;
try {
o(e)
} finally {
r(t), _ = !1
}
}
}
}
function s () {
h = function (t) {
e.nextTick(function () {
a(t)
})
}
}
function u () {
if (t.postMessage && !t.importScripts) {
var e = !0,
n = t.onmessage;
return t.onmessage = function () {
e = !1
}, t.postMessage("", "*"), t.onmessage = n, e
}
}
function l () {
var e = "setImmediate$" + Math.random() + "$",
n = function (n) {
n.source === t && "string" == typeof n.data && 0 === n.data.indexOf(e) && a(+n.data.slice(e.length))
};
t.addEventListener ? t.addEventListener("message", n, !1) : t.attachEvent("onmessage", n), h = function (n) {
t.postMessage(e + n, "*")
}
}
function c () {
var t = new MessageChannel;
t.port1.onmessage = function (t) {
var e = t.data;
a(e)
}, h = function (e) {
t.port2.postMessage(e)
}
}
function d () {
var t = b.documentElement;
h = function (e) {
var n = b.createElement("script");
n.onreadystatechange = function () {
a(e), n.onreadystatechange = null, t.removeChild(n), n = null
}, t.appendChild(n)
}
}
function p () {
h = function (t) {
setTimeout(a, 0, t)
}
}
if (!t.setImmediate) {
var h, f = 1,
m = {},
_ = !1,
b = t.document,
v = Object.getPrototypeOf && Object.getPrototypeOf(t);
v = v && v.setTimeout ? v : t, "[object process]" === {}.toString.call(t.process) ? s() : u() ? l() : t.MessageChannel ? c() : b && "onreadystatechange" in b.createElement("script") ? d() : p(), v.setImmediate = i, v.clearImmediate = r
}
}("undefined" == typeof self ? "undefined" == typeof t ? this : t : self)
})
.call(e, function () {
return this
}(), n(295))
}, function (t, e, n) {
n(299), t.exports = n(9)
.RegExp.escape
}, function (t, e, n) {
var i = n(8),
r = n(300)(/[\\^$*+?.()|[\]{}]/g, "\\$&");
i(i.S, "RegExp", {
escape: function (t) {
return r(t)
}
})
}, function (t, e) {
t.exports = function (t, e) {
var n = e === Object(e) ? function (t) {
return e[t]
} : e;
return function (e) {
return String(e)
.replace(t, n)
}
}
}, , , function (t, e) {
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
!function (t) {
function e (i) {
if (n[i]) return n[i].exports;
var r = n[i] = {
exports: {},
id: i,
loaded: !1
};
return t[i].call(r.exports, r, r.exports, e), r.loaded = !0, r.exports
}
var n = {};
return e.m = t, e.c = n, e.p = "", e(0)
}([function (t, e, n) {
!function (t) {
var e = n(1);
n(2), n(3), n(4), n(5), n(6), n(7), n(8), n(9), n(10), n(11), n(12), t(document)
.ready(function () {
e.initialize(), t(".js-masthead-search")
.mastheadSearch(), t(".js-menu-slider")
.menuSlider({
handler: ".js-menu-slider-handler",
wrapper: ".masthead"
}), t(".js-masthead-search")
.menuSlider({
handler: ".js-masthead-search-handler",
wrapper: ".masthead"
}), t(".js-masthead-search-tabs")
.tabs({
speed: 0
}), t(".js-dropdown")
.dropdowns(), t(".js-dropdown-selectable")
.dropdowns({
selectable: !0
}), t(".js-tabs")
.tabs(), t(".js-expandable")
.expandable({
speed: 200
}), t(".js-expandable-tags")
.expandable({
speed: 200,
lineHeight: 40
}), t(".js-textarea")
.textarea(), t(".js-animated-labels")
.animateLabels(), t(".js-ends-fader")
.endsFader(), t(".js-select-colours")
.selectColours(), t(".js-ellipsis-expander")
.ellipsisExpander(), t(".js-hoverable")
.hoverable()
})
}(jQuery)
}, function (t, e) {
t.exports = function () {
function t (t) {
if (this.options = {
selector: "*",
mouseEvents: ["click", "dblclick", "mousedown", "mouseup"],
usePolyfillIf: function () {
if ("Microsoft Internet Explorer" == navigator.appName) {
var t = navigator.userAgent;
if (null != t.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)) {
var e = parseFloat(RegExp.$1);
if (e < 11) return !0
}
}
return !1
}
}, t) {
var e = this;
$.each(t, function (t, n) {
e.options[t] = n
})
}
this.options.usePolyfillIf() && this.register_mouse_events()
}
return t.initialize = function (e) {
return null == t.singleton && (t.singleton = new t(e)), t.singleton
}, t.prototype.register_mouse_events = function () {
$(document)
.on(this.options.mouseEvents.join(" "), this.options.selector, function (t) {
if ("none" == $(this)
.css("pointer-events")) {
var e = $(this)
.css("display");
$(this)
.css("display", "none");
var n = document.elementFromPoint(t.clientX, t.clientY);
return e ? $(this)
.css("display", e) : $(this)
.css("display", ""), t.target = n, $(n)
.trigger(t), !1
}
return !0
})
}, t
}()
}, function (t, e) {
!function (t) {
function e (t) {
n.call(this), t.selectable && i.call(this)
}
function n () {
this.on("click", r.element, function (e) {
e.preventDefault();
var n = t(e.currentTarget),
i = t(e.currentTarget)
.next();
n.hasClass(r.active) ? (i.removeClass(r.active), n.removeClass(r.active)) : (this.find("." + r.active)
.removeClass(r.active), i.addClass(r.active), n.addClass(r.active))
}.bind(this)), t(document)
.on("click", function (e) {
t(e.target)
.closest(r.element)
.length || (this.find(r.element)
.removeClass(r.active), this.find(r.menu)
.removeClass(r.active))
}.bind(this))
}
function i () {
this.on("click", r.selectors, function (e) {
e.preventDefault();
var n = t(e.currentTarget);
n.addClass("selected")
.siblings()
.removeClass("selected");
var i = n.find(r.selectedIcon)
.clone();
i.text(n.find(r.selectedText)
.text()), this.find(r.element)
.attr("data-value", n.data("value"))
.html(i)
}.bind(this))
}
var r = {
element: ".with-nav, .with-dropdown",
menu: "ul",
selectors: "li",
selectedIcon: ".media-left span",
selectedText: ".media-body h5",
active: "active"
};
t.fn.dropdowns = function (n) {
return this.each(function () {
e.call(t(this), n || {})
})
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e (e) {
var i = t.extend({}, s, e);
this.data(i), this.each(function (e, r) {
n(t(r), i)
})
}
function n (e, n) {
e.on("click", u.link, a.bind(null, e, n)), setTimeout(function () {
i(e, n)
}, 100), t(window)
.on("resize", function () {
i(e, n)
})
}
function i (t, e) {
var n = t.find(u.content)[0].scrollHeight,
i = o(t, e);
r(t, n, i)
}
function r (t, e, n) {
e > n ? t.find('[data-expand="less"]')
.is(":visible") ? t.find(u.content)
.height("auto") : (t.find(u.content)
.height(n), t.find("[data-expand=more]")
.show()) : (t.find(u.content)
.height("auto"), t.find("[data-expand]")
.hide())
}
function o (e, n) {
var i, r, o;
return t(e)
.hasClass(u.hasTags) ? (i = e.find(u.content)[0].scrollHeight, r = e.find(u.tags), t(r)
.each(function (e, r) {
if (o = t(r)
.position()
.top, o > n.lineHeight * n.maxLines) return i = o, !1
})) : i = n.lineHeight * n.maxLines, i
}
function a (e, n, i) {
i.preventDefault();
var r = e.find(u.content)[0].scrollHeight,
a = o(e, n),
s = t(i.currentTarget);
"more" === s.data("expand") ? s.siblings(u.content)
.animate({
height: r + "px"
}, n.speed) : s.siblings(u.content)
.animate({
height: a + "px"
}, n.speed), s.hide()
.siblings(u.link)
.show()
}
var s = {
speed: 400,
lineHeight: 24,
maxLines: 4
},
u = {
content: ".expandable-content",
link: ".js-expandable-link",
hasTags: "js-has-tags",
tags: ".tag"
};
t.fn.expandable = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e (e, n) {
var i, r;
i = {
speed: 200,
nav: ".nav-tabs",
content: ".content-tabs",
activeClass: "active-tab",
disabledClass: "disabled-tab"
}, r = t.extend(!0, {}, i, n), this.options = function (e) {
return e ? t.extend(!0, r, e) : r
}, this.select = function (t) {
e.find(r.nav + ' [data-tab="' + t + '"]')
.addClass(r.activeClass)
.siblings()
.removeClass(r.activeClass), e.find(r.content + ' [data-tab="' + t + '"]')
.fadeIn(r.speed)
.siblings()
.hide(), e.find(r.content + ' [data-tab="' + t + '"] input.focus-default')
.first()
.focus()
}, e.find(r.nav + " [data-tab]")
.on("click", function (t) {
t.preventDefault(), t.currentTarget.classList.contains(r.disabledClass) || this.select(t.currentTarget.getAttribute("data-tab"))
}.bind(this))
}
t.fn.tabs = function (i) {
var r = "string" == typeof i ? i : void 0;
if (r) {
var o = [],
a = arguments.length > 1 ? Array.prototype.slice.call(arguments, 1) : void 0;
return this.each(function () {
var e = t(this)
.data("tabs");
return e ? void("function" == typeof e[r] ? o.push(e[r].apply(e, a)) : console.warn("Method '" + r + "' not defined in $.tabs")) : (console.warn("$.tabs not instantiated yet"), void o.push(void 0))
}), o.length > 1 ? o : o[0]
}
var s = "object" == ("undefined" == typeof i ? "undefined" : n(i)) ? i : void 0;
return this.each(function () {
var n = t(this),
i = n.data("tabs");
i || (i = new e(n, s), n.data("tabs", i))
})
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
this.each(function () {
n(this)
})
}
function n (e) {
t(e)
.on("input keyup change init", function () {
var e = t(this);
e.height("auto")
.height(e.prop("scrollHeight"))
}), t(e)
.trigger("init")
}
t.fn.textarea = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
n.call(this)
}
function n () {
t(i.element)
.each(function () {
"" !== t(this)
.val() && t(this)
.siblings(i.label)
.addClass(i.activeClass)
}), this.on("focusin click", i.element, function (e) {
t(e.currentTarget)
.siblings(i.label)
.addClass(i.activeClass), t(e.currentTarget)
.parent()
.addClass(i.activeClass)
}.bind(this)), this.on("focusout", i.element, function (e) {
t(e.currentTarget)
.parent()
.removeClass(i.activeClass), 0 === t(e.currentTarget)
.siblings(i.ignoreSelector)
.length && "" === t(e.currentTarget)
.val() && t(e.currentTarget)
.siblings(i.label)
.removeClass(i.activeClass)
}.bind(this)), this.on("input init", i.element, function (e) {
0 === t(e.currentTarget)
.siblings(i.ignoreSelector)
.length && ("" === t(e.currentTarget)
.val() ? t(e.currentTarget)
.siblings(i.label)
.removeClass(i.activeClass) : t(e.currentTarget)
.siblings(i.label)
.addClass(i.activeClass))
})
}
var i = {
element: "input, textarea",
label: "label",
activeClass: "focused",
ignoreSelector: ".tag",
errorClass: "has-error"
};
t.fn.animateLabels = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e (e) {
var o = t.extend({}, i, e),
a = this;
t(window)
.resize(function () {
t(window)
.width() > r.minWidth && (t(a)
.removeAttr("style"), t(e.handler)
.removeClass(i.activeClassName))
}), n.call(this, o)
}
function n (e) {
this.closest(e.wrapper)
.on("click", e.handler, function (n) {
t(n.target)
.hasClass(e.skipSiblingsClassName) || this.siblings(e.siblings)
.slideUp(e.slideSpeed), this.slideToggle(e.slideSpeed, function () {
var n = t(e.handler)
.hasClass(e.activeClassName);
n && this.find("input, textarea")
.first()
.focus()
}.bind(this)), t(e.handler)
.siblings()
.removeClass(e.activeClassName), t(e.handler)
.toggleClass(e.activeClassName)
}.bind(this)), this.hasClass(e.clickoutHandlerClassname) && t("html")
.on("click", function (n) {
var i = t(n.target);
i.closest(e.handler)
.length || i.closest("." + e.clickoutHandlerClassname)
.length || (this.slideUp(e.slideSpeed), t(e.handler)
.removeClass(e.activeClassName))
}.bind(this))
}
var i = {
wrapper: document,
handler: "button",
siblings: "nav",
slideSpeed: 300,
activeClassName: "active",
skipSiblingsClassName: "js-skip-siblings",
clickoutHandlerClassname: "js-masthead-search"
},
r = {
minWidth: 767
};
t.fn.menuSlider = function (n) {
return this.each(function () {
e.call(t(this), n)
})
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
n.call(this)
}
function n () {
var e = t(this)
.find(i.scrollableElement)
.last();
0 !== e.length && (e.position()
.left + e.outerWidth(!0) - i.errorFactor > t(this)
.find(i.scrollableWrapper)
.width() && t(this)
.addClass("transparent-right"), t(i.scrollableWrapper)
.scroll(function (e) {
var n = t(e.currentTarget)
.find(i.scrollableElement)
.first(),
r = t(e.currentTarget)
.find(i.scrollableElement)
.last();
n.position()
.left < 0 ? t(this)
.addClass("transparent-left") : t(this)
.removeClass("transparent-left"), r.position()
.left + r.outerWidth(!0) - i.errorFactor > t(this)
.width() ? t(this)
.addClass("transparent-right") : t(this)
.removeClass("transparent-right")
}.bind(this)))
}
var i = {
scrollableElement: "li",
scrollableWrapper: "ul",
errorFactor: 1
};
t.fn.endsFader = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
n.call(this)
}
function n () {
this.on("change", function () {
t(this)
.addClass(i.selectedOptionClass)
}.bind(this))
}
var i = {
selectedOptionClass: "selected"
};
t.fn.selectColours = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
var e = this;
e.each(function () {
var e = t(this);
if (!e.find(u.seeMoreSelector)
.length) {
var i = t('<div class="see-more">… <a>' + n("0") + "</a></div>")
.css("visibility", "hidden");
i.find("a")
.click(s), e.append(i)
}
})
}
function n (t) {
return u.text.replace(/%d/g, t)
}
function i (t) {
if (t.hasClass("expanded")) return !1;
var e = t.parent(),
n = e.width() + e.offset()
.left,
i = t.find(u.itemSelector + ":last");
if (!i.length) return !1;
var r = n <= i.offset()
.left + i.width();
return r
}
function r (e, n) {
for (var i = 0; i < e.length; i++) {
var r = t(e[i]);
if (r.offset()
.left > n) return i
}
return e.length
}
function o (t) {
var e = t.find(u.seeMoreSelector)
.offset()
.left,
n = t.find(u.itemSelector),
i = r(n, e + u.seperatorWidth);
return n.length - i + 1
}
function a () {
var e = this;
e.each(function () {
var e = t(this),
r = i(e);
if (e.find(u.seeMoreSelector)
.css("visibility", r ? "visible" : "hidden"), r) {
var a = o(e),
s = n(a);
e.find(u.seeMoreLinkSelector)
.text(s)
}
})
}
function s (e) {
e.preventDefault(), t(this)
.parent()
.hide()
.parent()
.addClass("expanded")
}
var u, l = {
itemSelector: "li",
seperatorWidth: 9,
text: "(+%d more)",
seeMoreSelector: ".see-more",
seeMoreLinkSelector: ".see-more a"
},
c = {};
t.fn.ellipsisExpander = function (n) {
return u = t.extend(!0, l, n), e.call(this), setTimeout(a.bind(this), 0), c[this.selector] = c[this.selector] || t(window)
.resize(a.bind(this)), this
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e () {
var t = this.find("input");
this.on("keyup", "input", function () {
t.not(this)
.val(this.value)
}), this.on("focus", "input", function () {
if ("function" == typeof this.setSelectionRange) {
var t = this.value.length || 0;
this.setSelectionRange(t, t)
}
})
}
t.fn.mastheadSearch = function () {
return this.each(function () {
e.call(t(this))
})
}
}(jQuery)
}, function (t, e) {
!function (t) {
function e (e) {
var i = t.extend({}, a, e);
this.data(i), this.each(function (e, r) {
n(t(r), i)
})
}
function n (e, n) {
t(window)
.on("resize", function () {
r(e), window.innerWidth < s.maxWindowWidth || i(e, n)
}), window.innerWidth > s.maxWindowWidth && i(e, n)
}
function i (e, n) {
var i = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
i ? (t(e)
.on("touchstart", function (i) {
var r = t(this);
return !!r.hasClass(s.hoverActive) || (o(e), t(e)
.find(s.content)
.fadeIn(n.fadeIn), r.addClass(s.hoverActive), t(s.hoverable)
.not(this)
.removeClass(s.hoverActive)
.find(s.content)
.fadeOut(n.fadeOut), i.preventDefault(), !1)
}), t(e)
.find(s.content)
.on("touchstart", function (t) {
t.stopPropagation()
}), t("body")
.on("touchstart", function () {
t(s.hoverable)
.removeClass(s.hoverActive)
.find(s.content)
.fadeOut()
})) : t(e)
.on("mouseenter", function (i) {
o(e), t(e)
.find(s.content)
.fadeIn(n.fadeIn)
})
.on("mouseleave", function () {
t(e)
.find(s.content)
.fadeOut(n.fadeOut)
})
}
function r (e) {
t(e)
.off(), t(e)
.find(s.content)
.off(), t("body")
.off("touchstart")
}
function o (e) {
var n = t(e)
.find(s.content),
i = -n.height();
t(e)[0].getBoundingClientRect()
.left + n.width() > window.innerWidth ? n.css({
top: i + "px",
right: 0,
left: "auto"
}) : n.css({
top: i + "px",
right: "auto",
bottom: "auto"
}), t(e)[0].getBoundingClientRect()
.top < n.height() ? n.css({
top: "auto",
bottom: i + "px",
padding: "10px 0 0 0",
margin: "0 0 -10px 0"
}) : n.css({
bottom: "auto",
padding: "0 0 10px 0",
margin: "-10px 0 0 0"
})
}
var a = {
fadeIn: 200,
fadeOut: 10
},
s = {
hoverable: ".js-hoverable",
content: ".js-hoverable-content",
maxWindowWidth: 480,
hoverActive: "js-hoverable-active"
};
t.fn.hoverable = function () {
return e.apply(this, arguments), this
}
}(jQuery)
}])
}, function (t, e, n) {
"use strict";
function i () {
this.attributes({
nextLink: void 0,
initialPath: WB_wombat_self_location.pathname.replace("network/", "") + "co-authors/"
}), this.getNextCoAuthors = r, this.after("initialize", function () {
this.on(document, "ui:co-authors:view-more", r), this.getNextCoAuthors()
})
}
function r () {
var t = this,
e = this.attr.nextLink || this.attr.initialPath;
s.get(e)
.then(function (e) {
t.attr.nextLink = e.headers.link ? o(e.headers.link)
.next : void 0, t.trigger("data:co-authors:list.success", {
profiles: e.data,
viewMore: Boolean(t.attr.nextLink)
})
})
.catch(function () {
t.trigger("data:co-authors:list.error")
})
}
function o (t) {
for (var e, n, i, r = t.split(","), o = {}, a = 0, s = r.length; a < s; a++) e = r[a].split(";"), n = e[0].replace(/[<>]/g, "")
.trim(), i = e[1].trim()
.split("=")[1].replace(/"/g, ""), o[i] = n;
return o
}
var a = n(305),
s = n(314);
t.exports = a.component(i)
}, function (t, e, n) {
var i, r;
i = [n(306), n(310), n(311), n(308), n(313), n(309), n(307)], r = function (t, e, n, i, r, o, a) {
return {
advice: t,
component: e,
compose: n,
debug: i,
logger: r,
registry: o,
utils: a
}
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r;
i = [n(307)], r = function (t) {
var e = {
around: function (t, e) {
return function () {
var n = 0,
i = arguments.length,
r = new Array(i + 1);
for (r[0] = t.bind(this); n < i; n++) r[n + 1] = arguments[n];
return e.apply(this, r)
}
},
before: function (t, e) {
var n = "function" == typeof e ? e : e.obj[e.fnName];
return function () {
return n.apply(this, arguments), t.apply(this, arguments)
}
},
after: function (t, e) {
var n = "function" == typeof e ? e : e.obj[e.fnName];
return function () {
var e = (t.unbound || t)
.apply(this, arguments);
return n.apply(this, arguments), e
}
},
withAdvice: function () {
["before", "after", "around"].forEach(function (n) {
this[n] = function (i, r) {
var o = i.trim()
.split(" ");
o.forEach(function (i) {
t.mutateProperty(this, i, function () {
return "function" == typeof this[i] ? this[i] = e[n](this[i], r) : this[i] = r, this[i]
})
}, this)
}
}, this)
}
};
return e
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
i = [n(308)], r = function (t) {
function e () {
var e = t.enabled && !Object.propertyIsEnumerable("getOwnPropertyDescriptor");
if (e) try {
Object.getOwnPropertyDescriptor(Object, "keys")
} catch (t) {
return !1
}
return e
}
var n = 100,
i = {
isDomObj: function (t) {
return !(!t.nodeType && t !== window)
},
toArray: function (t, e) {
e = e || 0;
for (var n = t.length, i = new Array(n - e), r = e; r < n; r++) i[r - e] = t[r];
return i
},
merge: function () {
var t = arguments.length,
e = new Array(t + 1);
if (0 === t) return {};
for (var n = 0; n < t; n++) e[n + 1] = arguments[n];
return e[0] = {}, e[e.length - 1] === !0 && (e.pop(), e.unshift(!0)), $.extend.apply(void 0, e)
},
push: function (t, e, n) {
return t && Object.keys(e || {})
.forEach(function (i) {
if (t[i] && n) throw new Error('utils.push attempted to overwrite "' + i + '" while running in protected mode');
"object" == o(t[i]) && "object" == o(e[i]) ? this.push(t[i], e[i]) : t[i] = e[i]
}, this), t
},
getEnumerableProperty: function (t, e) {
return t.propertyIsEnumerable(e) ? t[e] : void 0
},
compose: function () {
var t = arguments;
return function () {
for (var e = arguments, n = t.length - 1; n >= 0; n--) e = [t[n].apply(this, e)];
return e[0]
}
},
uniqueArray: function (t) {
for (var e = {}, n = [], i = 0, r = t.length; i < r; ++i) e.hasOwnProperty(t[i]) || (n.push(t[i]), e[t[i]] = 1);
return n
},
debounce: function (t, e, i) {
"number" != typeof e && (e = n);
var r, o;
return function () {
var n = this,
a = arguments,
s = function () {
r = null, i || (o = t.apply(n, a))
},
u = i && !r;
return r && clearTimeout(r), r = setTimeout(s, e), u && (o = t.apply(n, a)), o
}
},
throttle: function (t, e) {
"number" != typeof e && (e = n);
var i, r, o, a, s, u, l = this.debounce(function () {
s = a = !1
}, e);
return function () {
i = this, r = arguments;
var n = function () {
o = null, s && (u = t.apply(i, r)), l()
};
return o || (o = setTimeout(n, e)), a ? s = !0 : (a = !0, u = t.apply(i, r)), l(), u
}
},
countThen: function (t, e) {
return function () {
if (!--t) return e.apply(this, arguments)
}
},
delegate: function (t) {
return function (e, n) {
var i, r = $(e.target);
Object.keys(t)
.forEach(function (o) {
if (!e.isPropagationStopped() && (i = r.closest(o))
.length) return n = n || {}, e.currentTarget = n.el = i[0], t[o].apply(this, [e, n])
}, this)
}
},
once: function (t) {
var e, n;
return function () {
return e ? n : (e = !0, n = t.apply(this, arguments))
}
},
propertyWritability: function (t, n, i) {
e() && t.hasOwnProperty(n) && Object.defineProperty(t, n, {
writable: i
})
},
mutateProperty: function (t, n, i) {
var r;
return e() && t.hasOwnProperty(n) ? (r = Object.getOwnPropertyDescriptor(t, n)
.writable, Object.defineProperty(t, n, {
writable: !0
}), i.call(t), void Object.defineProperty(t, n, {
writable: r
})) : void i.call(t)
}
};
return i
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
i = [n(309)], r = function (t) {
function e (t, n, i) {
i = i || {};
var r = i.obj || window,
a = i.path || (r == window ? "window" : ""),
s = Object.keys(r);
s.forEach(function (i) {
(_[t] || t)(n, r, i) && console.log([a, ".", i].join(""), "->", ["(", o(r[i]), ")"].join(""), r[i]), "[object Object]" == Object.prototype.toString.call(r[i]) && r[i] != r && a.split(".")
.indexOf(i) == -1 && e(t, n, {
obj: r[i],
path: [a, i].join(".")
})
})
}
function n (t, n, i, r) {
n && ("undefined" == typeof i ? "undefined" : o(i)) != n ? console.error([i, "must be", n].join(" ")) : e(t, i, r)
}
function i (t, e) {
n("name", "string", t, e)
}
function r (t, e) {
n("nameContains", "string", t, e)
}
function a (t, e) {
n("type", "function", t, e)
}
function s (t, e) {
n("value", null, t, e)
}
function u (t, e) {
n("valueCoerced", null, t, e)
}
function l (t, n) {
e(t, null, n)
}
function c () {
var t = [].slice.call(arguments);
v.eventNames.length || (v.eventNames = b), v.actions = t.length ? t : b, f()
}
function d () {
var t = [].slice.call(arguments);
v.actions.length || (v.actions = b), v.eventNames = t.length ? t : b, f()
}
function p () {
v.actions = [], v.eventNames = [], f()
}
function h () {
v.actions = b, v.eventNames = b, f()
}
function f () {
try {
window.localStorage && (localStorage.setItem("logFilter_eventNames", v.eventNames), localStorage.setItem("logFilter_actions", v.actions))
} catch (t) {}
}
function m () {
var t, e;
try {
t = window.localStorage && localStorage.getItem("logFilter_eventNames"), e = window.localStorage && localStorage.getItem("logFilter_actions")
} catch (t) {
return
}
t && (v.eventNames = t), e && (v.actions = e), Object.keys(v)
.forEach(function (t) {
var e = v[t];
"string" == typeof e && e !== b && (v[t] = e ? e.split(",") : [])
})
}
var _ = {
name: function (t, e, n) {
return t == n
},
nameContains: function (t, e, n) {
return n.indexOf(t) > -1
},
type: function (t, e, n) {
return e[n] instanceof t
},
value: function (t, e, n) {
return e[n] === t
},
valueCoerced: function (t, e, n) {
return e[n] == t
}
},
b = "all",
v = {
eventNames: [],
actions: []
};
return {
enable: function (t) {
this.enabled = !!t, t && window.console && (console.info("Booting in DEBUG mode"), console.info("You can configure event logging with DEBUG.events.logAll()/logNone()/logByName()/logByAction()")), m(), window.DEBUG = this
},
warn: function () {
if (window.console) {
var t = console.warn || console.log,
e = [].slice.call(arguments);
e.unshift(this.toString() + ":"), t.apply(console, e)
}
},
registry: t,
find: {
byName: i,
byNameContains: r,
byType: a,
byValue: s,
byValueCoerced: u,
custom: l
},
events: {
logFilter: v,
logByAction: c,
logByName: d,
logAll: h,
logNone: p
}
}
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
i = [], r = function () {
function t (t, e) {
var n, i, r, a = e.length;
return "function" == typeof e[a - 1] && (a -= 1, r = e[a]), "object" == o(e[a - 1]) && (a -= 1), 2 == a ? (n = e[0], i = e[1]) : (n = t.node, i = e[0]), {
element: n,
type: i,
callback: r
}
}
function e (t, e) {
return t.element == e.element && t.type == e.type && (null == e.callback || t.callback == e.callback)
}
function n () {
function n (t) {
this.component = t, this.attachedTo = [], this.instances = {}, this.addInstance = function (t) {
var e = new i(t);
return this.instances[t.identity] = e, this.attachedTo.push(t.node), e
}, this.removeInstance = function (t) {
delete this.instances[t.identity];
var e = this.attachedTo.indexOf(t.node);
e > -1 && this.attachedTo.splice(e, 1), Object.keys(this.instances)
.length || r.removeComponentInfo(this)
}, this.isAttachedTo = function (t) {
return this.attachedTo.indexOf(t) > -1
}
}
function i (t) {
this.instance = t, this.events = [], this.addBind = function (t) {
this.events.push(t), r.events.push(t)
}, this.removeBind = function (t) {
for (var n, i = 0; n = this.events[i]; i++) e(n, t) && this.events.splice(i, 1)
}
}
var r = this;
(this.reset = function () {
this.components = [], this.allInstances = {}, this.events = []
})
.call(this), this.addInstance = function (t) {
var e = this.findComponentInfo(t);
e || (e = new n(t.constructor), this.components.push(e));
var i = e.addInstance(t);
return this.allInstances[t.identity] = i, e
}, this.removeInstance = function (t) {
var e = this.findComponentInfo(t);
e && e.removeInstance(t), delete this.allInstances[t.identity]
}, this.removeComponentInfo = function (t) {
var e = this.components.indexOf(t);
e > -1 && this.components.splice(e, 1)
}, this.findComponentInfo = function (t) {
for (var e, n = t.attachTo ? t : t.constructor, i = 0; e = this.components[i]; i++)
if (e.component === n) return e;
return null
}, this.findInstanceInfo = function (t) {
return this.allInstances[t.identity] || null
}, this.getBoundEventNames = function (t) {
return this.findInstanceInfo(t)
.events.map(function (t) {
return t.type
})
}, this.findInstanceInfoByNode = function (t) {
var e = [];
return Object.keys(this.allInstances)
.forEach(function (n) {
var i = this.allInstances[n];
i.instance.node === t && e.push(i)
}, this), e
}, this.on = function (e) {
for (var n, i = r.findInstanceInfo(this), o = arguments.length, a = 1, s = new Array(o - 1); a < o; a++) s[a - 1] = arguments[a];
if (i) {
n = e.apply(null, s), n && (s[s.length - 1] = n);
var u = t(this, s);
i.addBind(u)
}
}, this.off = function () {
var n = t(this, arguments),
i = r.findInstanceInfo(this);
i && i.removeBind(n);
for (var o, a = 0; o = r.events[a]; a++) e(o, n) && r.events.splice(a, 1)
}, r.trigger = function () {}, this.teardown = function () {
r.removeInstance(this)
}, this.withRegistration = function () {
this.after("initialize", function () {
r.addInstance(this)
}), this.around("on", r.on), this.after("off", r.off), window.DEBUG && (!1)
.enabled && this.after("trigger", r.trigger), this.after("teardown", {
obj: r,
fnName: "teardown"
})
}
}
return new n
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r;
i = [n(306), n(307), n(311), n(312), n(309), n(313), n(308)], r = function (t, e, n, i, r, o, a) {
function s () {
var t = r.findComponentInfo(this);
t && Object.keys(t.instances)
.forEach(function (e) {
var n = t.instances[e];
n && n.instance && n.instance.teardown()
})
}
function u (t) {
for (var n = arguments.length, i = new Array(n - 1), o = 1; o < n; o++) i[o - 1] = arguments[o];
if (!t) throw new Error("Component needs to be attachTo'd a jQuery object, native node or selector string");
var a = e.merge.apply(e, i),
s = r.findComponentInfo(this);
$(t)
.each(function (t, e) {
s && s.isAttachedTo(e) || (new this)
.initialize(e, a)
}.bind(this))
}
function l () {
var t = this.mixedIn || this.prototype.mixedIn || [];
return t.map(function (t) {
if (null == t.name) {
var e = t.toString()
.match(d);
return e && e[1] ? e[1] : ""
}
return p[t.name] ? "" : t.name
})
.filter(Boolean)
.join(", ")
}
function c () {
for (var d = arguments.length, p = new Array(d), h = 0; h < d; h++) p[h] = arguments[h];
var f = function () {};
return f.toString = f.prototype.toString = l, a.enabled && (f.describe = f.prototype.describe = f.toString()), f.attachTo = u, f.mixin = function () {
var t = c(),
i = Object.create(f.prototype);
return i.mixedIn = [].concat(f.prototype.mixedIn), i.defaults = e.merge(f.prototype.defaults), i.attrDef = f.prototype.attrDef, n.mixin(i, arguments), t.prototype = i, t.prototype.constructor = t, t
}, f.teardownAll = s, a.enabled && p.unshift(o), p.unshift(i, t.withAdvice, r.withRegistration), n.mixin(f.prototype, p), f
}
var d = /function (.*?)\s?\(/,
p = {
withBase: !0,
withLogging: !0
};
return c.teardownAll = function () {
r.components.slice()
.forEach(function (t) {
t.component.teardownAll()
}), r.reset()
}, c
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r;
i = [n(307)], r = function (t) {
function e (e, n) {
Object.keys(e)
.forEach(function (r) {
i.indexOf(r) < 0 && t.propertyWritability(e, r, n)
})
}
function n (t, n) {
t.mixedIn = Object.prototype.hasOwnProperty.call(t, "mixedIn") ? t.mixedIn : [];
for (var i = 0; i < n.length; i++) t.mixedIn.indexOf(n[i]) == -1 && (e(t, !1), n[i].call(t), t.mixedIn.push(n[i]));
e(t, !0)
}
var i = ["mixedIn", "attrDef"];
return {
mixin: n
}
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
i = [n(307), n(309), n(308)], r = function (t, e, n) {
function i (t) {
t && t.events.slice()
.forEach(function (t) {
var e = [t.type];
t.element && e.unshift(t.element), "function" == typeof t.callback && e.push(t.callback), this.off.apply(this, e)
}, t.instance)
}
function r (t, e) {
try {
window.postMessage(e, "*")
} catch (e) {
n.warn.call(this, ['Event "', t, '" was triggered with non-serializable data. ', "Flight recommends you avoid passing non-serializable data in events."].join(""))
}
}
function a (t) {
n.warn.call(this, ['Attribute "', t, '" defaults to an array or object. ', "Enclose this in a function to avoid sharing between component instances."].join(""))
}
function s (t) {
var e, i = [];
if (this.attr = new this.attrDef, n.enabled && window.console) {
for (var r in this.attrDef.prototype) i.push(r);
e = Object.keys(t);
for (var s = e.length - 1; s >= 0; s--)
if (i.indexOf(e[s]) == -1) {
n.warn.call(this, 'Passed unused attribute "' + e[s] + '".');
break
}
}
for (var r in this.attrDef.prototype) {
if ("undefined" == typeof t[r]) {
if (null === this.attr[r]) throw new Error('Required attribute "' + r + '" not specified in attachTo for component "' + this.toString() + '".');
n.enabled && "object" === o(this.attr[r]) && a.call(this, r)
} else this.attr[r] = t[r];
"function" == typeof this.attr[r] && (this.attr[r] = this.attr[r].call(this))
}
}
function u (t) {
n.enabled && n.warn.call(this, "defaultAttrs will be removed in a future version. Please use attributes.");
var e = Object.create(t);
for (var i in this.defaults) t.hasOwnProperty(i) || (e[i] = this.defaults[i], n.enabled && "object" === o(this.defaults[i]) && a.call(this, i));
this.attr = e, Object.keys(this.defaults || {})
.forEach(function (t) {
if (null === this.defaults[t] && null === this.attr[t]) throw new Error('Required attribute "' + t + '" not specified in attachTo for component "' + this.toString() + '".')
}, this)
}
function l (t) {
return function (e, n) {
$(e.target)
.trigger(t, n)
}
}
function c () {
this.trigger = function () {
var t, e, i, a, s, u = arguments.length - 1,
l = arguments[u];
return "string" == typeof l || l && l.defaultBehavior ||
(u--, i = l), 1 == u ? (t = $(arguments[0]), a = arguments[1]) :
(t = this.$node, a = arguments[0]), a.defaultBehavior &&
(s = a.defaultBehavior, a = $.Event(a.type)), e = a.type || a, n.enabled && window.postMessage && r.call(this, e, i), "object" == o(this.attr.eventData) && (i = $.extend(!0, {}, this.attr.eventData, i)), t.trigger(a || e, i), s && !a.isDefaultPrevented() && (this[s] || s)
.call(this, a, i), t
}, this.on = function () {
var e, n, i, r, a = arguments.length - 1,
s = arguments[a];
if (r = "object" == ("undefined" == typeof s ? "undefined" : o(s)) ? t.delegate(this.resolveDelegateRules(s)) : "string" == typeof s ? l(s) : s, 2 == a ? (e = $(arguments[0]), n = arguments[1]) : (e = this.$node, n = arguments[0]), "function" != typeof r && "object" != ("undefined" == typeof r ? "undefined" : o(r))) throw new Error('Unable to bind to "' + n + '" because the given callback is not a function or an object');
return i = r.bind(this), i.target = r, i.context = this, e.on(n, i), r.bound || (r.bound = []), r.bound.push(i), i
}, this.off = function () {
var t, n, i, r = arguments.length - 1;
if ("function" == typeof arguments[r] && (i = arguments[r], r -= 1), 1 == r ? (t = $(arguments[0]), n = arguments[1]) : (t = this.$node, n = arguments[0]), i) {
var o = i.target ? i.target.bound : i.bound || [];
o && o.some(function (t, e, n) {
if (t.context && this.identity == t.context.identity) return n.splice(e, 1), i = t, !0
}, this), t.off(n, i)
} else e.findInstanceInfo(this)
.events.forEach(function (e) {
n == e.type && t.off(n, e.callback)
});
return t
}, this.resolveDelegateRules = function (t) {
var e = {};
return Object.keys(t)
.forEach(function (n) {
if (!(n in this.attr)) throw new Error('Component "' + this.toString() + '" wants to listen on "' + n + '" but no such attribute was defined.');
e[this.attr[n]] = "string" == typeof t[n] ? l(t[n]) : t[n]
}, this), e
}, this.select = function (t) {
return this.$node.find(this.attr[t])
}, this.attributes = function (t) {
var e = function () {};
this.attrDef && (e.prototype = new this.attrDef);
for (var n in t) e.prototype[n] = t[n];
this.attrDef = e
}, this.defaultAttrs = function (e) {
t.push(this.defaults, e, !0) || (this.defaults = e)
}, this.initialize = function (t, e) {
if (e = e || {}, this.identity || (this.identity = d++), !t) throw new Error("Component needs a node");
return t.jquery ? (this.node = t[0], this.$node = t) : (this.node = t, this.$node = $(t)), this.attrDef ? s.call(this, e) : u.call(this, e), this
}, this.teardown = function () {
var t = e.findInstanceInfo(this);
t && i(t)
}
}
var d = 0;
return c
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
var i, r, o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
i = [n(307)], r = function (t) {
function e (t) {
var e = t.tagName ? t.tagName.toLowerCase() : t.toString(),
n = t.className ? "." + t.className : "",
i = e + n;
return t.tagName ? ["'", "'"].join(i) : i
}
function n (t, n, i) {
if (window.DEBUG && window.DEBUG.enabled) {
var a, s, u, l, c, d, p, h, f, m;
"function" == typeof i[i.length - 1] && (l = i.pop(), l = l.unbound || l), 1 == i.length ? (u = n.$node[0], s = i[0]): 2
!=
i.length || "object" != o(i[1]) || i[1].type ? (u = i[0], s = i[1], "trigger" == t && (c = i[2])) : (u = n.$node[0], s = i[0], "trigger" == t && (c = i[1])), a = "object" == ("undefined" == typeof s ? "undefined" : o(s)) ? s.type : s, d = window.DEBUG.events.logFilter, h = "all" == d.actions || d.actions.indexOf(t) > -1, p = function (t) {
return t.test ? t : new RegExp("^" + t.replace(/\*/g, ".*") + "$")
}, f = "all" == d.eventNames || d.eventNames.some(function (t) {
return p(t)
.test(a)
}), h && f && (m = [r[t], t, "[" + a + "]"], c && m.push(c), m.push(e(u)), m.push(n.constructor.describe.split(" ")
.slice(0, 3)
.join(" ")), console.groupCollapsed && "trigger" == t && console.groupCollapsed(t, a), Function.prototype.apply.call(console.info, console, m))
}
}
function i () {
this.before("trigger", function () {
n("trigger", this, t.toArray(arguments))
}), console.groupCollapsed && this.after("trigger", function () {
console.groupEnd()
}), this.before("on", function () {
n("on", this, t.toArray(arguments))
}), this.before("off", function () {
n("off", this, t.toArray(arguments))
})
}
var r = {
on: "<-",
trigger: "->",
off: "x "
};
return i
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}, function (t, e, n) {
t.exports = n(315)
}, function (t, e, n) {
(function (e) {
function i (t) {
var e = new a(t),
n = o(a.prototype.request, e);
return r.extend(n, a.prototype, e), r.extend(n, e), n
}
var r = n(316),
o = n(317),
a = n(318),
s = i();
s.Axios = a, s.create = function (t) {
return i(t)
}, s.all = function (t) {
return e.all(t)
}, s.spread = n(335), t.exports = s, t.exports.default = s
})
.call(e, n(294))
}, function (t, e, n) {
function i (t) {
return "[object Array]" === T.call(t)
}
function r (t) {
return "[object ArrayBuffer]" === T.call(t)
}
function o (t) {
return "undefined" != typeof FormData && t instanceof FormData
}
function a (t) {
var e;
return e = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && t.buffer instanceof ArrayBuffer
}
function s (t) {
return "string" == typeof t
}
function u (t) {
return "number" == typeof t
}
function l (t) {
return "undefined" == typeof t
}
function c (t) {
return null !== t && "object" == typeof t
}
function d (t) {
return "[object Date]" === T.call(t)
}
function p (t) {
return "[object File]" === T.call(t)
}
function h (t) {
return "[object Blob]" === T.call(t)
}
function f (t) {
return "[object Function]" === T.call(t)
}
function m (t) {
return c(t) && f(t.pipe)
}
function _ (t) {
return "undefined" != typeof URLSearchParams && t instanceof URLSearchParams
}
function b (t) {
return t.replace(/^\s*/, "")
.replace(/\s*$/, "")
}
function v () {
return "undefined" != typeof window && "undefined" != typeof document && "function" == typeof document.createElement
}
function g (t, e) {
if (null !== t && "undefined" != typeof t)
if ("object" == typeof t || i(t) || (t = [t]), i(t))
for (var n = 0, r = t.length; n < r; n++) e.call(null, t[n], n, t);
else
for (var o in t) t.hasOwnProperty(o) && e.call(null, t[o], o, t)
}
function y () {
function t (t, n) {
"object" == typeof e[n] && "object" == typeof t ? e[n] = y(e[n], t) : e[n] = t
}
for (var e = {}, n = 0, i = arguments.length; n < i; n++) g(arguments[n], t);
return e
}
function w (t, e, n) {
return g(e, function (e, i) {
n && "function" == typeof e ? t[i] = M(e, n) : t[i] = e
}), t
}
var M = n(317),
T = Object.prototype.toString;
t.exports = {
isArray: i,
isArrayBuffer: r,
isFormData: o,
isArrayBufferView: a,
isString: s,
isNumber: u,
isObject: c,
isUndefined: l,
isDate: d,
isFile: p,
isBlob: h,
isFunction: f,
isStream: m,
isURLSearchParams: _,
isStandardBrowserEnv: v,
forEach: g,
merge: y,
extend: w,
trim: b
}
}, function (t, e) {
t.exports = function (t, e) {
return function () {
for (var n = new Array(arguments.length), i = 0; i < n.length; i++) n[i] = arguments[i];
return t.apply(e, n)
}
}
}, function (t, e, n) {
(function (e) {
function i (t) {
this.defaults = o.merge(r, t), this.interceptors = {
request: new a,
response: new a
}
}
var r = n(319),
o = n(316),
a = n(321),
s = n(322),
u = n(333),
l = n(334);
i.prototype.request = function (t) {
"string" == typeof t && (t = o.merge({
url: arguments[0]
}, arguments[1])), t = o.merge(r, this.defaults, {
method: "get"
}, t), t.baseURL && !u(t.url) && (t.url = l(t.baseURL, t.url));
var n = [s, void 0],
i = e.resolve(t);
for (this.interceptors.request.forEach(function (t) {
n.unshift(t.fulfilled, t.rejected)
}), this.interceptors.response.forEach(function (t) {
n.push(t.fulfilled, t.rejected)
}); n.length;) i = i.then(n.shift(), n.shift());
return i
}, o.forEach(["delete", "get", "head"], function (t) {
i.prototype[t] = function (e, n) {
return this.request(o.merge(n || {}, {
method: t,
url: e
}))
}
}), o.forEach(["post", "put", "patch"], function (t) {
i.prototype[t] = function (e, n, i) {
return this.request(o.merge(i || {}, {
method: t,
url: e,
data: n
}))
}
}), t.exports = i
})
.call(e, n(294))
}, function (t, e, n) {
function i (t, e) {
!r.isUndefined(t) && r.isUndefined(t["Content-Type"]) && (t["Content-Type"] = e)
}
var r = n(316),
o = n(320),
a = /^\)\]\}',?\n/,
s = {
"Content-Type": "application/x-www-form-urlencoded"
};
t.exports = {
transformRequest: [function (t, e) {
return o(e, "Content-Type"), r.isFormData(t) || r.isArrayBuffer(t) || r.isStream(t) || r.isFile(t) || r.isBlob(t) ? t : r.isArrayBufferView(t) ? t.buffer : r.isURLSearchParams(t) ? (i(e, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : r.isObject(t) ? (i(e, "application/json;charset=utf-8"), JSON.stringify(t)) : t
}],
transformResponse: [function (t) {
if ("string" == typeof t) {
t = t.replace(a, "");
try {
t = JSON.parse(t)
} catch (t) {}
}
return t
}],
headers: {
common: {
Accept: "application/json, text/plain, */*"
},
patch: r.merge(s),
post: r.merge(s),
put: r.merge(s)
},
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
validateStatus: function (t) {
return t >= 200 && t < 300
}
}
}, function (t, e, n) {
var i = n(316);
t.exports = function (t, e) {
i.forEach(t, function (n, i) {
i !== e && i.toUpperCase() === e.toUpperCase() && (t[e] = n, delete t[i])
})
}
}, function (t, e, n) {
function i () {
this.handlers = []
}
var r = n(316);
i.prototype.use = function (t, e) {
return this.handlers.push({
fulfilled: t,
rejected: e
}), this.handlers.length - 1
}, i.prototype.eject = function (t) {
this.handlers[t] && (this.handlers[t] = null)
}, i.prototype.forEach = function (t) {
r.forEach(this.handlers, function (e) {
null !== e && t(e)
})
}, t.exports = i
}, function (t, e, n) {
(function (e, i) {
var r = n(316),
o = n(323);
t.exports = function (t) {
t.headers = t.headers || {}, t.data = o(t.data, t.headers, t.transformRequest), t.headers = r.merge(t.headers.common || {}, t.headers[t.method] || {}, t.headers || {}), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (e) {
delete t.headers[e]
});
var a;
return "function" == typeof t.adapter ? a = t.adapter : "undefined" != typeof XMLHttpRequest ? a = n(324) : "undefined" != typeof e && (a = n(324)), i.resolve(t)
.then(a)
.then(function (e) {
return e.data = o(e.data, e.headers, t.transformResponse), e
}, function (e) {
return e && e.response && (e.response.data = o(e.response.data, e.response.headers, t.transformResponse)), i.reject(e)
})
}
})
.call(e, n(295), n(294))
}, function (t, e, n) {
var i = n(316);
t.exports = function (t, e, n) {
return i.forEach(n, function (n) {
t = n(t, e)
}), t
}
}, function (t, e, n) {
(function (e) {
var i = n(316),
r = n(325),
o = n(328),
a = n(329),
s = n(330),
u = n(326),
l = "undefined" != typeof window && window.btoa || n(331);
t.exports = function (t) {
return new e(function (e, c) {
var d = t.data,
p = t.headers;
i.isFormData(d) && delete p["Content-Type"];
var h = new XMLHttpRequest,
f = "onreadystatechange",
m = !1;
if ("undefined" == typeof window || !window.XDomainRequest || "withCredentials" in h || s(t.url) || (h = new window.XDomainRequest, f = "onload", m = !0, h.onprogress = function () {}, h.ontimeout = function () {}), t.auth) {
var _ = t.auth.username || "",
b = t.auth.password || "";
p.Authorization = "Basic " + l(_ + ":" + b)
}
if (h.open(t.method.toUpperCase(), o(t.url, t.params, t.paramsSerializer), !0), h.timeout = t.timeout, h[f] = function () {
if (h && (4 === h.readyState || m) && 0 !== h.status) {
var n = "getAllResponseHeaders" in h ? a(h.getAllResponseHeaders()) : null,
i = t.responseType && "text" !== t.responseType ? h.response : h.responseText,
o = {
data: i,
status: 1223 === h.status ? 204 : h.status,
statusText: 1223 === h.status ? "No Content" : h.statusText,
headers: n,
config: t,
request: h
};
r(e, c, o), h = null
}
}, h.onerror = function () {
c(u("Network Error", t)), h = null
}, h.ontimeout = function () {
c(u("timeout of " + t.timeout + "ms exceeded", t, "ECONNABORTED")), h = null
}, i.isStandardBrowserEnv()) {
var v = n(332),
g = (t.withCredentials || s(t.url)) && t.xsrfCookieName ? v.read(t.xsrfCookieName) : void 0;
g && (p[t.xsrfHeaderName] = g)
}
if ("setRequestHeader" in h && i.forEach(p, function (t, e) {
"undefined" == typeof d && "content-type" === e.toLowerCase() ? delete p[e] : h.setRequestHeader(e, t)
}), t.withCredentials && (h.withCredentials = !0), t.responseType) try {
h.responseType = t.responseType
} catch (t) {
if ("json" !== h.responseType) throw t
}
"function" == typeof t.onDownloadProgress && h.addEventListener("progress", t.onDownloadProgress), "function" == typeof t.onUploadProgress && h.upload && h.upload.addEventListener("progress", t.onUploadProgress), void 0 === d && (d = null),
h.send(d)
})
}
})
.call(e, n(294))
}, function (t, e, n) {
var i = n(326);
t.exports = function (t, e, n) {
var r = n.config.validateStatus;
n.status && r && !r(n.status) ? e(i("Request failed with status code " + n.status, n.config, null, n)) : t(n)
}
}, function (t, e, n) {
var i = n(327);
t.exports = function (t, e, n, r) {
var o = new Error(t);
return i(o, e, n, r)
}
}, function (t, e) {
t.exports = function (t, e, n, i) {
return t.config = e, n && (t.code = n), t.response = i, t
}
}, function (t, e, n) {
function i (t) {
return encodeURIComponent(t)
.replace(/%40/gi, "@")
.replace(/%3A/gi, ":")
.replace(/%24/g, "$")
.replace(/%2C/gi, ",")
.replace(/%20/g, "+")
.replace(/%5B/gi, "[")
.replace(/%5D/gi, "]")
}
var r = n(316);
t.exports = function (t, e, n) {
if (!e) return t;
var o;
if (n) o = n(e);
else if (r.isURLSearchParams(e)) o = e.toString();
else {
var a = [];
r.forEach(e, function (t, e) {
null !== t && "undefined" != typeof t && (r.isArray(t) && (e += "[]"), r.isArray(t) || (t = [t]), r.forEach(t, function (t) {
r.isDate(t) ? t = t.toISOString() : r.isObject(t) && (t = JSON.stringify(t)), a.push(i(e) + "=" + i(t))
}))
}), o = a.join("&")
}
return o && (t += (t.indexOf("?") === -1 ? "?" : "&") + o), t
}
}, function (t, e, n) {
var i = n(316);
t.exports = function (t) {
var e, n, r, o = {};
return t ? (i.forEach(t.split("\n"), function (t) {
r = t.indexOf(":"), e = i.trim(t.substr(0, r))
.toLowerCase(), n = i.trim(t.substr(r + 1)), e && (o[e] = o[e] ? o[e] + ", " + n : n)
}), o) : o
}
}, function (t, e, n) {
var i = n(316);
t.exports = i.isStandardBrowserEnv() ? function () {
function t (t) {
var e = t;
return n && (r.setAttribute("href", e), e = r.href), r.setAttribute("href", e), {
href: r.href,
protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
host: r.host,
search: r.search ? r.search.replace(/^\?/, "") : "",
hash: r.hash ? r.hash.replace(/^#/, "") : "",
hostname: r.hostname,
port: r.port,
pathname: "/" === r.pathname.charAt(0) ? r.pathname : "/" + r.pathname
}
}
var e, n = /(msie|trident)/i.test(navigator.userAgent),
r = document.createElement("a");
return e = t(WB_wombat_self_location.href),
function (n) {
var r = i.isString(n) ? t(n) : n;
return r.protocol === e.protocol && r.host === e.host
}
}() : function () {
return function () {
return !0
}
}()
}, function (t, e) {
function n () {
this.message = "String contains an invalid character"
}
function i (t) {
for (var e, i, o = String(t), a = "", s = 0, u = r; o.charAt(0 | s) || (u = "=", s % 1); a += u.charAt(63 & e >> 8 - s % 1 * 8)) {
if (i = o.charCodeAt(s += .75), i > 255) throw new n;
e = e << 8 | i
}
return a
}
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
n.prototype = new Error, n.prototype.code = 5, n.prototype.name = "InvalidCharacterError", t.exports = i
}, function (t, e, n) {
var i = n(316);
t.exports = i.isStandardBrowserEnv() ? function () {
return {
write: function (t, e, n, r, o, a) {
var s = [];
s.push(t + "=" + encodeURIComponent(e)), i.isNumber(n) && s.push("expires=" + new Date(n)
.toGMTString()), i.isString(r) && s.push("path=" + r), i.isString(o) && s.push("domain=" + o), a === !0 && s.push("secure"), document.cookie = s.join("; ")
},
read: function (t) {
var e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
return e ? decodeURIComponent(e[3]) : null
},
remove: function (t) {
this.write(t, "", Date.now() - 864e5)
}
}
}() : function () {
return {
write: function () {},
read: function () {
return null
},
remove: function () {}
}
}()
}, function (t, e) {
t.exports = function (t) {
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)
}
}, function (t, e) {
t.exports = function (t, e) {
return t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "")
}
}, function (t, e) {
t.exports = function (t) {
return function (e) {
return t.apply(null, e)
}
}
}, function (t, e, n) {
function i () {
this.attributes({
step: 6,
limit: 6,
listSelector: ".follower-list ul",
loadingSelector: ".loading-co-authors",
viewMoreSelector: ".view-more",
viewMoreButtonSelector: ".view-more button"
}), this.enableViewMore = a, this.after("initialize", function () {
this.on("click", {
viewMoreButtonSelector: r
}), this.on(document, "data:co-authors:list.success", o), this.on(document, "data:co-authors:list.error", a)
})
}
function r () {
this.select("viewMoreButtonSelector")
.prop("disabled", !0), this.trigger("ui:co-authors:view-more")
}
function o (t, e) {
var n = e.profiles,
i = e.viewMore,
r = u.profiles.render({
profiles: n
}, l);
this.enableViewMore(), i || this.select("viewMoreSelector")
.remove(), this.select("listSelector")
.append(r), this.select("loadingSelector")
.remove()
}
function a () {
this.select("viewMoreButtonSelector")
.prop("disabled", !1)
}
var s = n(305),
u = {
profiles: n(337),
loading: n(341)
},
l = {
"partials/cards/network/co-authors/profile": n(342)
};
t.exports = s.component(i)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.s(i.f("profiles", t, e, 1), t, e, 0, 13, 111, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li class="co-author-network-list">'), i.b("\n" + n), i.b(i.rp("<partials/cards/network/co-authors/profile0", t, e, " ")), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.fl()
},
partials: {
"<partials/cards/network/co-authors/profile0": {
name: "partials/cards/network/co-authors/profile",
partials: {},
subs: {}
}
},
subs: {}
}, '{{#profiles}}\n <li class="co-author-network-list">\n {{>partials/cards/network/co-authors/profile}}\n </li>\n{{/profiles}}\n', i);
return t
}()
}, function (t, e, n) {
var i = n(339);
i.Template = n(340)
.Template, i.template = i.Template, t.exports = i
}, function (t, e, n) {
!function (t) {
function e (t) {
"}" === t.n.substr(t.n.length - 1) && (t.n = t.n.substring(0, t.n.length - 1))
}
function n (t) {
return t.trim ? t.trim() : t.replace(/^\s*|\s*$/g, "")
}
function i (t, e, n) {
if (e.charAt(n) != t.charAt(0)) return !1;
for (var i = 1, r = t.length; i < r; i++)
if (e.charAt(n + i) != t.charAt(i)) return !1;
return !0
}
function r (e, n, i, s) {
var u = [],
l = null,
c = null,
d = null;
for (c = i[i.length - 1]; e.length > 0;) {
if (d = e.shift(), c && "<" == c.tag && !(d.tag in w)) throw new Error("Illegal content in < super tag.");
if (t.tags[d.tag] <= t.tags.$ || o(d, s)) i.push(d), d.nodes = r(e, d.tag, i, s);
else {
if ("/" == d.tag) {
if (0 === i.length) throw new Error("Closing tag without opener: /" + d.n);
if (l = i.pop(), d.n != l.n && !a(d.n, l.n, s)) throw new Error("Nesting error: " + l.n + " vs. " + d.n);
return l.end = d.i, u
}
"\n" == d.tag && (d.last = 0 == e.length || "\n" == e[0].tag)
}
u.push(d)
}
if (i.length > 0) throw new Error("missing closing tag: " + i.pop()
.n);
return u
}
function o (t, e) {
for (var n = 0, i = e.length; n < i; n++)
if (e[n].o == t.n) return t.tag = "#", !0
}
function a (t, e, n) {
for (var i = 0, r = n.length; i < r; i++)
if (n[i].c == t && n[i].o == e) return !0
}
function s (t) {
var e = [];
for (var n in t) e.push('"' + l(n) + '": function(c,p,t,i) {' + t[n] + "}");
return "{ " + e.join(",") + " }"
}
function u (t) {
var e = [];
for (var n in t.partials) e.push('"' + l(n) + '":{name:"' + l(t.partials[n].name) + '", ' + u(t.partials[n]) + "}");
return "partials: {" + e.join(",") + "}, subs: " + s(t.subs)
}
function l (t) {
return t.replace(v, "\\\\")
.replace(m, '\\"')
.replace(_, "\\n")
.replace(b, "\\r")
.replace(g, "\\u2028")
.replace(y, "\\u2029")
}
function c (t) {
return ~t.indexOf(".") ? "d" : "f"
}
function d (t, e) {
var n = "<" + (e.prefix || ""),
i = n + t.n + M++;
return e.partials[i] = {
name: t.n,
partials: {}
}, e.code += 't.b(t.rp("' + l(i) + '",c,p,"' + (t.indent || "") + '"));', i
}
function p (t, e) {
e.code += "t.b(t.t(t." + c(t.n) + '("' + l(t.n) + '",c,p,0)));'
}
function h (t) {
return "t.b(" + t + ");"
}
var f = /\S/,
m = /\"/g,
_ = /\n/g,
b = /\r/g,
v = /\\/g,
g = /\u2028/,
y = /\u2029/;
t.tags = {
"#": 1,
"^": 2,
"<": 3,
$: 4,
"/": 5,
"!": 6,
">": 7,
"=": 8,
_v: 9,
"{": 10,
"&": 11,
_t: 12
}, t.scan = function (r, o) {
function a () {
v.length > 0 && (g.push({
tag: "_t",
text: new String(v)
}), v = "")
}
function s () {
for (var e = !0, n = M; n < g.length; n++)
if (e = t.tags[g[n].tag] < t.tags._v || "_t" == g[n].tag && null === g[n].text.match(f), !e) return !1;
return e
}
function u (t, e) {
if (a(), t && s())
for (var n, i = M; i < g.length; i++) g[i].text && ((n = g[i + 1]) && ">" == n.tag && (n.indent = g[i].text.toString()), g.splice(i, 1));
else e || g.push({
tag: "\n"
});
y = !1, M = g.length
}
function l (t, e) {
var i = "=" + k,
r = t.indexOf(i, e),
o = n(t.substring(t.indexOf("=", e) + 1, r))
.split(" ");
return T = o[0], k = o[o.length - 1], r + i.length - 1
}
var c = r.length,
d = 0,
p = 1,
h = 2,
m = d,
_ = null,
b = null,
v = "",
g = [],
y = !1,
w = 0,
M = 0,
T = "{{",
k = "}}";
for (o && (o = o.split(" "), T = o[0], k = o[1]), w = 0; w < c; w++) m == d ? i(T, r, w) ? (--w, a(), m = p) : "\n" == r.charAt(w) ? u(y) : v += r.charAt(w) : m == p ? (w += T.length - 1, b = t.tags[r.charAt(w + 1)], _ = b ? r.charAt(w + 1) : "_v", "=" == _ ? (w = l(r, w), m = d) : (b && w++, m = h), y = w) : i(k, r, w) ? (g.push({
tag: _,
n: n(v),
otag: T,
ctag: k,
i: "/" == _ ? y - T.length : w + k.length
}), v = "", w += k.length - 1, m = d, "{" == _ && ("}}" == k ? w++ : e(g[g.length - 1]))) : v += r.charAt(w);
return u(y, !0), g
};
var w = {
_t: !0,
"\n": !0,
$: !0,
"/": !0
};
t.stringify = function (e, n, i) {
return "{code: function (c,p,i) { " + t.wrapMain(e.code) + " }," + u(e) + "}"
};
var M = 0;
t.generate = function (e, n, i) {
M = 0;
var r = {
code: "",
subs: {},
partials: {}
};
return t.walk(e, r), i.asString ? this.stringify(r, n, i) : this.makeTemplate(r, n, i)
}, t.wrapMain = function (t) {
return 'var t=this;t.b(i=i||"");' + t + "return t.fl();"
}, t.template = t.Template, t.makeTemplate = function (t, e, n) {
var i = this.makePartials(t);
return i.code = new Function("c", "p", "i", this.wrapMain(t.code)), new this.template(i, e, this, n)
}, t.makePartials = function (t) {
var e, n = {
subs: {},
partials: t.partials,
name: t.name
};
for (e in n.partials) n.partials[e] = this.makePartials(n.partials[e]);
for (e in t.subs) n.subs[e] = new Function("c", "p", "t", "i", t.subs[e]);
return n
}, t.codegen = {
"#": function (e, n) {
n.code += "if(t.s(t." + c(e.n) + '("' + l(e.n) + '",c,p,1),c,p,0,' + e.i + "," + e.end + ',"' + e.otag + " " + e.ctag + '")){t.rs(c,p,function(c,p,t){', t.walk(e.nodes, n), n.code += "});c.pop();}"
},
"^": function (e, n) {
n.code += "if(!t.s(t." + c(e.n) + '("' + l(e.n) + '",c,p,1),c,p,1,0,0,"")){', t.walk(e.nodes, n), n.code += "};"
},
">": d,
"<": function (e, n) {
var i = {
partials: {},
code: "",
subs: {},
inPartial: !0
};
t.walk(e.nodes, i);
var r = n.partials[d(e, n)];
r.subs = i.subs, r.partials = i.partials
},
$: function (e, n) {
var i = {
subs: {},
code: "",
partials: n.partials,
prefix: e.n
};
t.walk(e.nodes, i), n.subs[e.n] = i.code, n.inPartial || (n.code += 't.sub("' + l(e.n) + '",c,p,i);')
},
"\n": function (t, e) {
e.code += h('"\\n"' + (t.last ? "" : " + i"))
},
_v: function (t, e) {
e.code += "t.b(t.v(t." + c(t.n) + '("' + l(t.n) + '",c,p,0)));'
},
_t: function (t, e) {
e.code += h('"' + l(t.text) + '"')
},
"{": p,
"&": p
}, t.walk = function (e, n) {
for (var i, r = 0, o = e.length; r < o; r++) i = t.codegen[e[r].tag], i && i(e[r], n);
return n
}, t.parse = function (t, e, n) {
return n = n || {}, r(t, "", [], n.sectionTags || [])
}, t.cache = {}, t.cacheKey = function (t, e) {
return [t, !!e.asString, !!e.disableLambda, e.delimiters, !!e.modelGet].join("||")
}, t.compile = function (e, n) {
n = n || {};
var i = t.cacheKey(e, n),
r = this.cache[i];
if (r) {
var o = r.partials;
for (var a in o) delete o[a].instance;
return r
}
return r = this.generate(this.parse(this.scan(e, n.delimiters), e, n), e, n), this.cache[i] = r
}
}(e)
}, function (t, e, n) {
!function (t) {
function e (t, e, n) {
var i;
return e && "object" == typeof e && (void 0 !== e[t] ? i = e[t] : n && e.get && "function" == typeof e.get && (i = e.get(t))), i
}
function n (t, e, n, i, r, o) {
function a () {}
function s () {}
a.prototype = t, s.prototype = t.subs;
var u, l = new a;
l.subs = new s, l.subsText = {}, l.buf = "", i = i || {}, l.stackSubs = i, l.subsText = o;
for (u in e) i[u] || (i[u] = e[u]);
for (u in i) l.subs[u] = i[u];
r = r || {}, l.stackPartials = r;
for (u in n) r[u] || (r[u] = n[u]);
for (u in r) l.partials[u] = r[u];
return l
}
function i (t) {
return String(null === t || void 0 === t ? "" : t)
}
function r (t) {
return t = i(t), c.test(t) ? t.replace(o, "&amp;")
.replace(a, "&lt;")
.replace(s, "&gt;")
.replace(u, "&#39;")
.replace(l, "&quot;") : t
}
t.Template = function (t, e, n, i) {
t = t || {}, this.r = t.code || this.r, this.c = n, this.options = i || {}, this.text = e || "", this.partials = t.partials || {}, this.subs = t.subs || {}, this.buf = ""
}, t.Template.prototype = {
r: function (t, e, n) {
return ""
},
v: r,
t: i,
render: function (t, e, n) {
return this.ri([t], e || {}, n)
},
ri: function (t, e, n) {
return this.r(t, e, n)
},
ep: function (t, e) {
var i = this.partials[t],
r = e[i.name];
if (i.instance && i.base == r) return i.instance;
if ("string" == typeof r) {
if (!this.c) throw new Error("No compiler available.");
r = this.c.compile(r, this.options)
}
if (!r) return null;
if (this.partials[t].base = r, i.subs) {
e.stackText || (e.stackText = {});
for (key in i.subs) e.stackText[key] || (e.stackText[key] = void 0 !== this.activeSub && e.stackText[this.activeSub] ? e.stackText[this.activeSub] : this.text);
r = n(r, i.subs, i.partials, this.stackSubs, this.stackPartials, e.stackText)
}
return this.partials[t].instance = r, r
},
rp: function (t, e, n, i) {
var r = this.ep(t, n);
return r ? r.ri(e, n, i) : ""
},
rs: function (t, e, n) {
var i = t[t.length - 1];
if (!d(i)) return void n(t, e, this);
for (var r = 0; r < i.length; r++) t.push(i[r]), n(t, e, this), t.pop()
},
s: function (t, e, n, i, r, o, a) {
var s;
return (!d(t) || 0 !== t.length) && ("function" == typeof t && (t = this.ms(t, e, n, i, r, o, a)), s = !!t, !i && s && e && e.push("object" == typeof t ? t : e[e.length - 1]), s)
},
d: function (t, n, i, r) {
var o, a = t.split("."),
s = this.f(a[0], n, i, r),
u = this.options.modelGet,
l = null;
if ("." === t && d(n[n.length - 2])) s = n[n.length - 1];
else
for (var c = 1; c < a.length; c++) o = e(a[c], s, u), void 0 !== o ? (l = s, s = o): s = "";
return !(r && !s) && (r || "function" != typeof s || (n.push(l), s = this.mv(s, n, i), n.pop()), s)
},
f: function (t, n, i, r) {
for (var o = !1, a = null, s = !1, u = this.options.modelGet, l = n.length - 1; l >= 0; l--)
if (a = n[l], o = e(t, a, u), void 0 !== o) {
s = !0;
break
}
return s ? (r || "function" != typeof o || (o = this.mv(o, n, i)), o) : !r && ""
},
ls: function (t, e, n, r, o) {
var a = this.options.delimiters;
return this.options.delimiters = o, this.b(this.ct(i(t.call(e, r)), e, n)), this.options.delimiters = a, !1
},
ct: function (t, e, n) {
if (this.options.disableLambda) throw new Error("Lambda features disabled.");
return this.c.compile(t, this.options)
.render(e, n)
},
b: function (t) {
this.buf += t
},
fl: function () {
var t = this.buf;
return this.buf = "", t
},
ms: function (t, e, n, i, r, o, a) {
var s, u = e[e.length - 1],
l = t.call(u);
return "function" == typeof l ? !!i || (s = this.activeSub && this.subsText && this.subsText[this.activeSub] ? this.subsText[this.activeSub] : this.text, this.ls(l, u, n, s.substring(r, o), a)) : l
},
mv: function (t, e, n) {
var r = e[e.length - 1],
o = t.call(r);
return "function" == typeof o ? this.ct(i(o.call(r)), r, n) : o
},
sub: function (t, e, n, i) {
var r = this.subs[t];
r && (this.activeSub = t, r(e, n, this, i), this.activeSub = !1)
}
};
var o = /&/g,
a = /</g,
s = />/g,
u = /\'/g,
l = /\"/g,
c = /[&<>\"\']/,
d = Array.isArray || function (t) {
return "[object Array]" === Object.prototype.toString.call(t)
}
}(e)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="loading">'), i.b("\n" + n), i.b(' <div class="bounce1"></div>'), i.b("\n" + n), i.b(' <div class="bounce2"></div>'), i.b("\n" + n), i.b(' <div class="bounce3"></div>'), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="loading">\n <div class="bounce1"></div>\n <div class="bounce2"></div>\n <div class="bounce3"></div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<a href="'), i.b(i.v(i.f("link", t, e, 0))), i.b('" title="'), i.b(i.v(i.f("first_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("last_name", t, e, 0))), i.b('">'), i.b("\n" + n), i.b(' <img src="'), i.b(i.v(i.d("squarePhoto.url", t, e, 0))), i.b('" alt="'), i.b(i.v(i.f("first_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("last_name", t, e, 0))), i.b('">'), i.b("\n" + n), i.b("</a>"), i.b("\n"), i.b("\n" + n), i.b('<div class="co-author-info'), i.s(i.f("ghost", t, e, 1), t, e, 0, 168, 188, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b(" co-author-no-follow")
}), t.pop()), i.b('">'), i.b("\n" + n), i.b(" <h5>"), i.b("\n" + n), i.b(' <a href="'), i.b(i.v(i.f("link", t, e, 0))), i.b('" title="'), i.b(i.v(i.f("first_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("last_name", t, e, 0))), i.b('">'), i.b(i.v(i.f("first_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("last_name", t, e, 0))), i.b("</a>"), i.b("\n"), i.b("\n" + n), i.s(i.f("commonPublications", t, e, 1), t, e, 0, 329, 491, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <span class="with-tooltip">'), i.b("\n" + n), i.b(" ("), i.b(i.v(i.f("commonPublications", t, e, 0))), i.b(")"), i.b("\n" + n), i.b(' <span class="tooltip small left">Total publications together</span>'), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n)
}), t.pop()), i.b(" </h5>"), i.b("\n"), i.b("\n" + n), i.b(" "), i.s(i.f("institution_details", t, e, 1), t, e, 0, 550, 618, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="co-author-institution" title="'), n.b(n.v(n.f("name", t, e, 0))), n.b('">'), n.b(n.v(n.f("name", t, e, 0))), n.b("</span>")
}), t.pop()), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.b("\n" + n), i.s(i.f("ghost", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.f("isViewer", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <button type="button" class="basic-link with-icon-after icon-followuser follow-states" data-state="'), i.b(i.v(i.f("followStatus", t, e, 0))), i.b('" data-profile-id="'), i.b(i.v(i.f("id", t, e, 0))), i.b('">'), i.b("\n" + n), i.b(' <span class="button-text-follow">Follow</span>'), i.b("\n" + n), i.b(' <span class="button-text-following">Following</span>'), i.b("\n" + n), i.b(' <span class="button-text-unfollow">Unfollow</span>'), i.b("\n" + n), i.b(' <span class="button-text-pending">Pending</span>'), i.b("\n" + n), i.b(' <span class="button-text-cancel">Cancel</span>'), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n)), i.fl()
},
partials: {},
subs: {}
}, '<a href="{{link}}" title="{{first_name}} {{last_name}}">\n <img src="{{squarePhoto.url}}" alt="{{first_name}} {{last_name}}">\n</a>\n\n<div class="co-author-info{{#ghost}} co-author-no-follow{{/ghost}}">\n <h5>\n <a href="{{link}}" title="{{first_name}} {{last_name}}">{{first_name}} {{last_name}}</a>\n\n {{#commonPublications}}\n <span class="with-tooltip">\n ({{commonPublications}})\n <span class="tooltip small left">Total publications together</span>\n </span>\n {{/commonPublications}}\n </h5>\n\n {{#institution_details}}<span class="co-author-institution" title="{{name}}">{{name}}</span>{{/institution_details}}\n</div>\n\n{{^ghost}}\n {{^isViewer}}\n <button type="button" class="basic-link with-icon-after icon-followuser follow-states" data-state="{{followStatus}}" data-profile-id="{{id}}">\n <span class="button-text-follow">Follow</span>\n <span class="button-text-following">Following</span>\n <span class="button-text-unfollow">Unfollow</span>\n <span class="button-text-pending">Pending</span>\n <span class="button-text-cancel">Cancel</span>\n </button>\n {{/isViewer}}\n{{/ghost}}\n', i);
return t
}()
}, , , function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.s(i.f("publicationsCount", t, e, 1), t, e, 0, 22, 279, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b("\n" + n), i.b(' <div class="publications-list '), i.s(i.f("isGhostProfile", t, e, 1), t, e, 0, 75, 80, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("ghost")
}), t.pop()), i.b(" "), i.s(i.f("limitedPublications", t, e, 1), t, e, 0, 124, 131, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("limited")
}), t.pop()), i.b('">'), i.b("\n" + n), i.s(i.f("authoredPublications", t, e, 1), t, e, 0, 187, 243, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b(n.rp("<partials/cards/publications/publication0", t, e, " "))
}), t.pop()), i.b(" </div>"), i.b("\n"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("publicationsCount", t, e, 1), t, e, 1, 0, 0, "") || (i.b("\n" + n), i.s(i.f("publicationsUnavailable", t, e, 1), t, e, 1, 0, 0, "") || (i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 386, 2114, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <p class="caption">Publications that are in the My Publications folder in your Library will appear here.</p>'), i.b("\n"), i.b("\n" + n), i.b(' <div class="wide center row">'), i.b("\n" + n), i.s(i.f("showScopusClaimLink", t, e, 1), t, e, 0, 571, 1290, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="column d-1-2 s-1-1 xs-1-1">'), i.b("\n" + n), i.b(' <div class="card-blank scopus-claim">'), i.b("\n" + n), i.b(' <p class="text-center empty-slate-title">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-downloadfolder"></span>'), i.b("\n" + n), i.b(" </p>"), i.b("\n"), i.b("\n" + n), i.b(' <p class="text-center with-button-inline">'), i.b("\n" + n), i.b(' <a href="/scopus-claim/authors/?routeTo='), i.s(i.f("urlencode", t, e, 1), t, e, 0, 950, 969, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("/profiles/"), n.b(n.v(n.f("slug", t, e, 0))), n.b("/")
}), t.pop()), i.b('" id="scopus-import" class="basic-link"><span>Import your publications from Scopus</span></a> in My Publications folder.'), i.b("\n" + n), i.b(" "), i.s(i.d("profile.scopus_author_ids", t, e, 1), t, e, 1, 0, 0, "") || i.b("You will also get Stats on these publications."), i.b("\n" + n), i.b(" </p>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.b(' <div class="column d-1-2 s-1-1 xs-1-1">'), i.b("\n" + n), i.b(' <div class="card-blank web-library">'), i.b("\n" + n), i.b(' <p class="text-center empty-slate-title">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-bookmark"></span>'), i.b("\n" + n), i.b(" </p>"), i.b("\n"), i.b("\n" + n), i.b(' <p class="text-center with-button-inline">'), i.b("\n" + n), i.b(' <a href="" data-modal="profile-modal-add-publications" class="basic-link"><span>Add a publication</span></a> to your profile and My Publications folder.'), i.b("\n" + n), i.b(" </p>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.s(i.f("havePublications", t, e, 1), t, e, 0, 1877, 2075, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="column d-1-1"><button class="basic-link with-icon-before icon-delete js-no-publications-yet" type="button"><span>I don\'t have any publications yet</span></button></div>'), i.b("\n" + n)
}), t.pop()), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <p class="info-inline with-icon-before">0 publications to display</p>'), i.b("\n" + n))), i.b("\n"), i.b("\n" + n), i.s(i.f("publicationsUnavailable", t, e, 1), t, e, 0, 2337, 2410, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <p><span class="spin-icon float-left"></span>&nbsp;Loading...</p>'), i.b("\n" + n)
}), t.pop()), i.b("\n" + n)), i.fl()
},
partials: {
"<partials/cards/publications/publication0": {
name: "partials/cards/publications/publication",
partials: {},
subs: {}
}
},
subs: {}
}, '{{#publicationsCount}}\n\n <div class="publications-list {{#isGhostProfile}}ghost{{/isGhostProfile}} {{#limitedPublications}}limited{{/limitedPublications}}">\n {{#authoredPublications}}\n {{>partials/cards/publications/publication}}\n {{/authoredPublications}}\n </div>\n\n{{/publicationsCount}}\n\n{{^publicationsCount}}\n\n {{^publicationsUnavailable}}\n {{#isViewingOwnProfile}}\n <p class="caption">Publications that are in the My Publications folder in your Library will appear here.</p>\n\n <div class="wide center row">\n {{#showScopusClaimLink}}\n <div class="column d-1-2 s-1-1 xs-1-1">\n <div class="card-blank scopus-claim">\n <p class="text-center empty-slate-title">\n <span class="with-icon-before icon-downloadfolder"></span>\n </p>\n\n <p class="text-center with-button-inline">\n <a href="/scopus-claim/authors/?routeTo={{#urlencode}}/profiles/{{slug}}/{{/urlencode}}" id="scopus-import" class="basic-link"><span>Import your publications from Scopus</span></a> in My Publications folder.\n {{^profile.scopus_author_ids}}You will also get Stats on these publications.{{/profile.scopus_author_ids}}\n </p>\n </div>\n </div>\n {{/showScopusClaimLink}}\n\n <div class="column d-1-2 s-1-1 xs-1-1">\n <div class="card-blank web-library">\n <p class="text-center empty-slate-title">\n <span class="with-icon-before icon-bookmark"></span>\n </p>\n\n <p class="text-center with-button-inline">\n <a href="" data-modal="profile-modal-add-publications" class="basic-link"><span>Add a publication</span></a> to your profile and My Publications folder.\n </p>\n </div>\n </div>\n\n {{#havePublications}}\n <div class="column d-1-1"><button class="basic-link with-icon-before icon-delete js-no-publications-yet" type="button"><span>I don\'t have any publications yet</span></button></div>\n {{/havePublications}}\n </div>\n {{/isViewingOwnProfile}}\n\n {{^isViewingOwnProfile}}\n <p class="info-inline with-icon-before">0 publications to display</p>\n {{/isViewingOwnProfile}}\n {{/publicationsUnavailable}}\n\n\n {{#publicationsUnavailable}}\n <p><span class="spin-icon float-left"></span>&nbsp;Loading...</p>\n {{/publicationsUnavailable}}\n\n{{/publicationsCount}}\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.s(i.f("isGhostProfile", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.f("limitedPublications", t, e, 1), t, e, 0, 46, 503, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="toggle-publications text-center">'), i.b("\n" + n), i.s(i.f("expandedPublications", t, e, 1), t, e, 0, 128, 255, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <button class="basic-link with-icon-before icon-navigateup">'), i.b("\n" + n), i.b(" <span>View less</span>"), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n)
}), t.pop()), i.s(i.f("expandedPublications", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <button class="basic-link with-icon-before icon-navigatedown">'), i.b("\n" + n), i.b(" <span>View all ("), i.b(i.v(i.f("publicationsCount", t, e, 0))), i.b(")</span>"), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n)), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isGhostProfile", t, e, 1), t, e, 0, 568, 928, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.s(i.f("limitedPublications", t, e, 1), t, e, 0, 595, 903, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="view-more-publications text-center">'), i.b("\n" + n), i.b(' <button class="basic-link with-icon-before icon-navigatedown">'), i.b("\n" + n), i.b(" <span>View more</span>"), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n), i.b(' <div class="publications-loading">'), i.b("\n" + n), i.b(' <div class="spin-icon"></div> <span>Loading</span>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n)
}), t.pop())
}), t.pop()), i.fl()
},
partials: {},
subs: {}
}, '{{^isGhostProfile}}\n {{#limitedPublications}}\n <div class="toggle-publications text-center">\n {{#expandedPublications}}\n <button class="basic-link with-icon-before icon-navigateup">\n <span>View less</span>\n </button>\n {{/expandedPublications}}\n {{^expandedPublications}}\n <button class="basic-link with-icon-before icon-navigatedown">\n <span>View all ({{publicationsCount}})</span>\n </button>\n {{/expandedPublications}}\n </div>\n {{/limitedPublications}}\n{{/isGhostProfile}}\n\n{{#isGhostProfile}}\n {{#limitedPublications}}\n <div class="view-more-publications text-center">\n <button class="basic-link with-icon-before icon-navigatedown">\n <span>View more</span>\n </button>\n <div class="publications-loading">\n <div class="spin-icon"></div> <span>Loading</span>\n </div>\n </div>\n {{/limitedPublications}}\n{{/isGhostProfile}}', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="publication" data-id="'), i.b(i.v(i.f("id", t, e, 0))), i.b('">'), i.b("\n" + n), i.b(' <div class="publication-details">'), i.b("\n" + n), i.b(" <section>"), i.b("\n" + n), i.b(" <h3>"), i.b("\n" + n), i.s(i.d("catalog.link", t, e, 1), t, e, 0, 129, 176, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <a href="'), i.b(i.v(i.d("catalog.link", t, e, 0))), i.b('">'), i.b("\n" + n)
}), t.pop()), i.b(" "), i.b(i.t(i.f("title", t, e, 0))), i.b("\n" + n), i.s(i.d("catalog.link", t, e, 1), t, e, 0, 239, 263, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" </a>"), i.b("\n" + n)
}), t.pop()), i.b(" </h3>"), i.b("\n" + n), i.s(i.d("authors.length", t, e, 1), t, e, 0, 318, 828, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="authors js-ellipsis-expander ellipsis-expander">'), i.b("\n" + n), i.b(" <ul>"), i.b("\n" + n), i.s(i.f("authors", t, e, 1), t, e, 0, 427, 778, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.s(i.f("authorId", t, e, 1), t, e, 0, 455, 626, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li><a title="'), i.b(i.v(i.f("last_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("first_initial", t, e, 0))), i.b('" href="/authors/'), i.b(i.v(i.f("authorId", t, e, 0))), i.b('" class="js-author-link">'), i.b(i.v(i.f("last_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("first_initial", t, e, 0))), i.b("</a></li>"), i.b("\n" + n)
}), t.pop()), i.s(i.f("authorId", t, e, 1), t, e, 1, 0, 0, "") || (i.b(" <li><span>"), i.b(i.v(i.f("last_name", t, e, 0))), i.b(" "), i.b(i.v(i.f("first_initial", t, e, 0))), i.b("</span></li>"), i.b("\n" + n))
}), t.pop()), i.b(" </ul>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.s(i.f("source", t, e, 1), t, e, 0, 865, 1022, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="publisher">'), i.b("\n" + n), i.b(' <span class="title">'), i.b(i.v(i.f("source", t, e, 0))), i.b("</span> "), i.s(i.f("year", t, e, 1), t, e, 0, 955, 991, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="year">('), n.b(n.v(n.f("year", t, e, 0))), n.b(")</span>")
}), t.pop()), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.b(" </section>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <ul class="publication-stats stats-with-bullet">'), i.b("\n" + n), i.b(' <li class="stat-box with-tooltip">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.s(i.d("catalog.reader_count", t, e, 1), t, e, 0, 1207, 1231, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b(n.v(n.d("catalog.reader_count", t, e, 0)))
}), t.pop()), i.b('">'), i.b("\n" + n), i.b(" "), i.s(i.d("catalog.reader_count", t, e, 1), t, e, 0, 1292, 1316, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b(n.v(n.d("catalog.reader_count", t, e, 0)))
}), t.pop()), i.b("\n" + n), i.b(" "), i.s(i.d("catalog.reader_count", t, e, 1), t, e, 1, 0, 0, "") || i.b("--"), i.b("\n" + n), i.b(" </data>"), i.b("\n" + n), i.b(' <p class="caption">Readers</p>'), i.b("\n" + n), i.b(' <span class="tooltip medium left">'), i.b("\n" + n), i.b(" "), i.s(i.d("catalog.reader_count", t, e, 1), t, e, 0, 1528, 1588, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("Mendeley users who have added this article to their library.")
}), t.pop()), i.b("\n" + n), i.b(" "), i.s(i.d("catalog.reader_count", t, e, 1), t, e, 1, 0, 0, "") || i.b("Readers not available. This publication is not currently accessible in the Mendeley catalog."), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n), i.b(" </ul>"), i.b("\n" + n), i.s(i.f("prefilled", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.f("isGhostProfile", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <div class="button-group-actions">'), i.b("\n" + n), i.b(' <div class="button-group">'), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <button type="button" class="basic-link button-state-async with-icon-before icon-plus js-save-reference">'), i.b("\n" + n), i.b(' <span class="button-text-default">Save</span>'), i.b("\n" + n), i.b(' <span class="button-text-success">Saved</span>'), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n)), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 2279, 2688, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <button type="button" data-modal="profile-modal-edit-publication" class="basic-link with-icon-before icon-write js-edit-pub">'), i.b("\n" + n), i.b(" <span>Edit details</span>"), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n), i.b(' <button type="button" data-modal="profile-modal-remove-publication" class="basic-link with-icon-before icon-trash js-remove-pub">'), i.b("\n" + n), i.b(" <span>Remove</span>"), i.b("\n" + n), i.b(" </button>"), i.b("\n" + n)
}), t.pop()), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.d("identifiers.doi", t, e, 1), t, e, 0, 2780, 3e3, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <a type="button" href="http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/dx.doi.org/'), i.b(i.v(i.d("identifiers.doi", t, e, 0))), i.b('" target="_blank" class="js-doi basic-link with-icon-before icon-upright">'), i.b("\n" + n), i.b(" <span>Full text</span>"), i.b("\n" + n), i.b(" </a>"), i.b("\n" + n)
}), t.pop()), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n)), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="publication" data-id="{{id}}">\n <div class="publication-details">\n <section>\n <h3>\n {{#catalog.link}}\n <a href="{{catalog.link}}">\n {{/catalog.link}}\n {{{title}}}\n {{#catalog.link}}\n </a>\n {{/catalog.link}}\n </h3>\n {{#authors.length}}\n <div class="authors js-ellipsis-expander ellipsis-expander">\n <ul>\n {{#authors}}\n {{#authorId}}\n <li><a title="{{last_name}} {{first_initial}}" href="/authors/{{authorId}}" class="js-author-link">{{last_name}} {{first_initial}}</a></li>\n {{/authorId}}\n {{^authorId}}\n <li><span>{{last_name}} {{first_initial}}</span></li>\n {{/authorId}}\n {{/authors}}\n </ul>\n </div>\n {{/authors.length}}\n {{#source}}\n <div class="publisher">\n <span class="title">{{source}}</span> {{#year}}<span class="year">({{year}})</span>{{/year}}\n </div>\n {{/source}}\n </section>\n </div>\n <ul class="publication-stats stats-with-bullet">\n <li class="stat-box with-tooltip">\n <data class="number" value="{{#catalog.reader_count}}{{catalog.reader_count}}{{/catalog.reader_count}}">\n {{#catalog.reader_count}}{{catalog.reader_count}}{{/catalog.reader_count}}\n {{^catalog.reader_count}}--{{/catalog.reader_count}}\n </data>\n <p class="caption">Readers</p>\n <span class="tooltip medium left">\n {{#catalog.reader_count}}Mendeley users who have added this article to their library.{{/catalog.reader_count}}\n {{^catalog.reader_count}}Readers not available. This publication is not currently accessible in the Mendeley catalog.{{/catalog.reader_count}}\n </span>\n </li>\n </ul>\n {{^prefilled}}\n {{^isGhostProfile}}\n <div class="button-group-actions">\n <div class="button-group">\n {{^isViewingOwnProfile}}\n <button type="button" class="basic-link button-state-async with-icon-before icon-plus js-save-reference">\n <span class="button-text-default">Save</span>\n <span class="button-text-success">Saved</span>\n </button>\n {{/isViewingOwnProfile}}\n {{#isViewingOwnProfile}}\n <button type="button" data-modal="profile-modal-edit-publication" class="basic-link with-icon-before icon-write js-edit-pub">\n <span>Edit details</span>\n </button>\n <button type="button" data-modal="profile-modal-remove-publication" class="basic-link with-icon-before icon-trash js-remove-pub">\n <span>Remove</span>\n </button>\n {{/isViewingOwnProfile}}\n {{^isViewingOwnProfile}}\n {{#identifiers.doi}}\n <a type="button" href="http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/dx.doi.org/{{identifiers.doi}}" target="_blank" class="js-doi basic-link with-icon-before icon-upright">\n <span>Full text</span>\n </a>\n {{/identifiers.doi}}\n {{/isViewingOwnProfile}}\n </div>\n </div>\n {{/isGhostProfile}}\n {{/prefilled}}\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(349),
r = window.Mendeley || {};
!function () {
var t = n(426),
e = t.init(),
o = r.webBaseUrl,
a = {
tagHtml: '<span class="tag"><span class="tag-text"></span> <a class="tag-remove with-icon-after icon-delete"></a></span>',
tagDelimiter: [",", ";"],
tagInputSelector: ".js-publication-tags"
};
if (e) {
n(573)(e.api), n(787)
.attachTo(document, e), n(788)
.attachTo("#profile-publications", e), n(792)
.attachTo("#scopus-feedback", e), n(794)
.attachTo(".claim-profile", e), n(795)
.claimWidgetWithWebBaseUrl("https://" + o)
.attachTo("#claim-widget", e), e.isViewingOwnProfile && (n(806)
.attachTo(document, e), n(807)("education")
.attachTo(document, e), n(807)("employment")
.attachTo(document, e), n(807)("editorships")
.attachTo(document, e), n(808)
.attachTo("#profile-connections", e), n(922)
.attachTo("#profile-completion", e), n(925)
.attachTo("#profile-modal-add-publications", $.extend({}, e, a)), n(931)
.attachTo("#profile-modal-remove-publication"), n(933)
.attachTo("#profile-modal-edit-publication", a), n(934)
.attachTo("#profile-modal-edit-publication, #profile-modal-add-publications"), n(936)
.attachTo("#confirm-modal"), n(937)
.attachTo("#profile-interests"), n(940)("education")
.attachTo("#profile-education"), n(940)("employment")
.attachTo("#profile-employment"), n(940)("editorships")
.attachTo("#profile-editorships"));
var s = i.transform.queryString(WB_wombat_self_location.search);
s.traceId && e.api.recommendations.trace({
reason: "profile_page_load",
trace: s.traceId
}), t.onComponentsInitialized()
}
}()
}, function (t, e, n) {
function i (t) {
return x((t.last_name || "") + " " + (t.first_name && t.first_name[0] || ""))
}
function r (t) {
return t ? t.split(/\n/)
.filter(function (t) {
return "" !== t.trim()
})
.map(function (t) {
var e = t.split(",");
return {
last_name: e.length > 1 ? e.slice(0, -1)
.join(",")
.trim() : e[0].trim(),
first_name: e.length >= 2 ? e.pop()
.trim() : ""
}
}) : []
}
function o (t) {
return L(D(t.substr(1)
.split("&")), function (t, e) {
return e = e.split("="), t[e.shift()] = e.join("=") || !0, t
}, {})
}
function a (t) {
var e = new Date(t);
return T.getMonths()[e.getUTCMonth()] + " " + e.getUTCFullYear()
}
function s () {
var t = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
return function () {
return t
}
}
function u () {
function t (t) {
return t.split("")
.join("\\W*")
}
var e = /\s+/;
return function (n, i, r, o) {
var a = S(Y(x(i)
.split(e), ["length"], [!1]), t),
s = new RegExp("(" + a.join("|") + ")", "gi"),
u = (r || "") + "$1" + (o || "");
return n.replace(s, u)
}
}
function l () {
var t = n(425);
return function (e) {
return t.hasOwnProperty(e) ? t[e] : e
}
}
function c (t, e, n) {
return t.map(function (t) {
var i = e.pending.indexOf(t.id) !== -1,
r = e.following.indexOf(t.id) !== -1,
o = t.id === n;
return t.position = P(t), t.squarePhoto = j(t.photos, 64), t.isViewer = o, t.followStatus = r ? "following" : i ? "pending" : "follow", t
})
}
function d (t, e) {
return e ? this.attr.api.followers.list({
follower: e,
status: t,
limit: 500
})
.then(function (t) {
return E(t.items, "followed_id")
})
.catch(function () {
return []
}) : k.resolve([])
}
function p (t) {
return t ? this.attr.api.followers.list({
followed: t,
status: "pending",
limit: 500
})
.then(function (t) {
return E(t.items, "follower_id")
})
.catch(function () {
return []
}) : k.resolve([])
}
function h (t) {
return t.map(function (t) {
return t.position = P(t), t.squarePhoto = j(t.photos, 64), t
})
}
function f (t, e) {
for (var n = []; n.length < e && n.length < t.length;) n.push(i(t[n.length]));
return t.length > e && n.push("et al."), n.join(", ")
}
function m (t) {
for (var e = []; e.length < t.length;) e.push((t[e.length].last_name || "") + ", " + (t[e.length].first_name || ""));
return e.join("\n")
}
function _ (t) {
return t.map(function (t) {
return t = C({}, t), t.first_initial = t.first_name ? t.first_name[0] : "", t
})
}
function b (t) {
return t.map(function (e, n) {
return e = C({}, e), e.is_last_author = n + 1 === t.length, e
})
}
function v (t, e) {
var n = e.reduce(function (t, e) {
return t[g(e.name)] = e.id, t
}, {});
return t.map(function (t) {
t = C({}, t);
var e = g(t.last_name + ", " + t.first_name);
if (e in n) t.authorId = n[e];
else {
var i = g(t.last_name + ", " + t.first_initial);
for (var r in n)
if (r.indexOf(i) !== -1) return t.authorId = n[r], t
}
return t
})
}
function g (t) {
return t.toLowerCase()
.replace(/ /g, "")
}
function y (t) {
var e = t.lastIndexOf("org/"),
n = t.lastIndexOf("doi:");
return e > n && e > -1 ? t = t.substr(e + 4) : e < n && n > -1 && (t = t.substr(n + 4)), t
}
function w (t, e, n, i) {
return t === i ? e + n : n * (-Math.pow(2, -10 * t / i) + 1) + e
}
function M (t, e, n, i) {
return 0 === t ? e : n * Math.pow(2, 10 * (t / i - 1)) + e
}
var T, k = n(294),
S = n(350),
L = n(398),
x = n(402),
D = n(409),
E = n(410),
Y = n(411),
C = n(416),
P = n(422),
j = n(424);
T = t.exports = {
transform: {
wrap: u(),
date: a,
country: l(),
queryString: o
},
easing: {
easeInExpo: M,
easeOutExpo: w
},
getMonths: s(),
transformNetworkProfile: c,
transformNetworkPendingProfile: h,
transformAuthorsToArray: r,
getViewerFolloweeIds: d,
getViewerPendingFollowedIds: p,
getAuthorsList: f,
getFullAuthorsList: m,
setAuthorInitialName: _,
setLastAuthor: b,
setAuthorIds: v,
sanitiseDoi: y
}
}, function (t, e, n) {
function i (t, e, n) {
var i = s(t) ? r : a;
return e = o(e, n, 3), i(t, e)
}
var r = n(351),
o = n(352),
a = n(392),
s = n(373);
t.exports = i
}, function (t, e) {
function n (t, e) {
for (var n = -1, i = t.length, r = Array(i); ++n < i;) r[n] = e(t[n], n, t);
return r
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
var i = typeof t;
return "function" == i ? void 0 === e ? t : a(t, e, n) : null == t ? s : "object" == i ? r(t) : void 0 === e ? u(t) : o(t, e)
}
var r = n(353),
o = n(381),
a = n(388),
s = n(389),
u = n(390);
t.exports = i
}, function (t, e, n) {
function i (t) {
var e = o(t);
if (1 == e.length && e[0][2]) {
var n = e[0][0],
i = e[0][1];
return function (t) {
return null != t && (t[n] === i && (void 0 !== i || n in a(t)))
}
}
return function (t) {
return r(t, e)
}
}
var r = n(354),
o = n(378),
a = n(377);
t.exports = i
}, function (t, e, n) {
function i (t, e, n) {
var i = e.length,
a = i,
s = !n;
if (null == t) return !a;
for (t = o(t); i--;) {
var u = e[i];
if (s && u[2] ? u[1] !== t[u[0]] : !(u[0] in t)) return !1
}
for (; ++i < a;) {
u = e[i];
var l = u[0],
c = t[l],
d = u[1];
if (s && u[2]) {
if (void 0 === c && !(l in t)) return !1
} else {
var p = n ? n(c, d, l) : void 0;
if (!(void 0 === p ? r(d, c, n, !0) : p)) return !1
}
}
return !0
}
var r = n(355),
o = n(377);
t.exports = i
}, function (t, e, n) {
function i (t, e, n, s, u, l) {
return t === e || (null == t || null == e || !o(t) && !a(e) ? t !== t && e !== e : r(t, e, i, n, s, u, l))
}
var r = n(356),
o = n(365),
a = n(366);
t.exports = i
}, function (t, e, n) {
function i (t, e, n, i, p, m, _) {
var b = s(t),
v = s(e),
g = c,
y = c;
b || (g = f.call(t), g == l ? g = d : g != d && (b = u(t))), v || (y = f.call(e), y == l ? y = d : y != d && (v = u(e)));
var w = g == d,
M = y == d,
T = g == y;
if (T && !b && !w) return o(t, e, g);
if (!p) {
var k = w && h.call(t, "__wrapped__"),
S = M && h.call(e, "__wrapped__");
if (k || S) return n(k ? t.value() : t, S ? e.value() : e, i, p, m, _)
}
if (!T) return !1;
m || (m = []), _ || (_ = []);
for (var L = m.length; L--;)
if (m[L] == t) return _[L] == e;
m.push(t), _.push(e);
var x = (b ? r : a)(t, e, n, i, p, m, _);
return m.pop(), _.pop(), x
}
var r = n(357),
o = n(359),
a = n(360),
s = n(373),
u = n(376),
l = "[object Arguments]",
c = "[object Array]",
d = "[object Object]",
p = Object.prototype,
h = p.hasOwnProperty,
f = p.toString;
t.exports = i
}, function (t, e, n) {
function i (t, e, n, i, o, a, s) {
var u = -1,
l = t.length,
c = e.length;
if (l != c && !(o && c > l)) return !1;
for (; ++u < l;) {
var d = t[u],
p = e[u],
h = i ? i(o ? p : d, o ? d : p, u) : void 0;
if (void 0 !== h) {
if (h) continue;
return !1
}
if (o) {
if (!r(e, function (t) {
return d === t || n(d, t, i, o, a, s)
})) return !1
} else if (d !== p && !n(d, p, i, o, a, s)) return !1
}
return !0
}
var r = n(358);
t.exports = i
}, function (t, e) {
function n (t, e) {
for (var n = -1, i = t.length; ++n < i;)
if (e(t[n], n, t)) return !0;
return !1
}
t.exports = n
}, function (t, e) {
function n (t, e, n) {
switch (n) {
case i:
case r:
return +t == +e;
case o:
return t.name == e.name && t.message == e.message;
case a:
return t != +t ? e != +e : t == +e;
case s:
case u:
return t == e + ""
}
return !1
}
var i = "[object Boolean]",
r = "[object Date]",
o = "[object Error]",
a = "[object Number]",
s = "[object RegExp]",
u = "[object String]";
t.exports = n
}, function (t, e, n) {
function i (t, e, n, i, o, s, u) {
var l = r(t),
c = l.length,
d = r(e),
p = d.length;
if (c != p && !o) return !1;
for (var h = c; h--;) {
var f = l[h];
if (!(o ? f in e : a.call(e, f))) return !1
}
for (var m = o; ++h < c;) {
f = l[h];
var _ = t[f],
b = e[f],
v = i ? i(o ? b : _, o ? _ : b, f) : void 0;
if (!(void 0 === v ? n(_, b, i, o, s, u) : v)) return !1;
m || (m = "constructor" == f)
}
if (!m) {
var g = t.constructor,
y = e.constructor;
if (g != y && "constructor" in t && "constructor" in e && !("function" == typeof g && g instanceof g && "function" == typeof y && y instanceof y)) return !1
}
return !0
}
var r = n(361),
o = Object.prototype,
a = o.hasOwnProperty;
t.exports = i
}, function (t, e, n) {
var i = n(362),
r = n(367),
o = n(365),
a = n(371),
s = i(Object, "keys"),
u = s ? function (t) {
var e = null == t ? void 0 : t.constructor;
return "function" == typeof e && e.prototype === t || "function" != typeof t && r(t) ? a(t) : o(t) ? s(t) : []
} : a;
t.exports = u
}, function (t, e, n) {
function i (t, e) {
var n = null == t ? void 0 : t[e];
return r(n) ? n : void 0
}
var r = n(363);
t.exports = i
}, function (t, e, n) {
function i (t) {
return null != t && (r(t) ? c.test(u.call(t)) : o(t) && a.test(t))
}
var r = n(364),
o = n(366),
a = /^\[object .+?Constructor\]$/,
s = Object.prototype,
u = Function.prototype.toString,
l = s.hasOwnProperty,
c = RegExp("^" + u.call(l)
.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&")
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
t.exports = i
}, function (t, e, n) {
function i (t) {
return r(t) && s.call(t) == o
}
var r = n(365),
o = "[object Function]",
a = Object.prototype,
s = a.toString;
t.exports = i
}, function (t, e) {
function n (t) {
var e = typeof t;
return !!t && ("object" == e || "function" == e)
}
t.exports = n
}, function (t, e) {
function n (t) {
return !!t && "object" == typeof t
}
t.exports = n
}, function (t, e, n) {
function i (t) {
return null != t && o(r(t))
}
var r = n(368),
o = n(370);
t.exports = i
}, function (t, e, n) {
var i = n(369),
r = i("length");
t.exports = r
}, function (t, e) {
function n (t) {
return function (e) {
return null == e ? void 0 : e[t]
}
}
t.exports = n
}, function (t, e) {
function n (t) {
return "number" == typeof t && t > -1 && t % 1 == 0 && t <= i
}
var i = 9007199254740991;
t.exports = n
}, function (t, e, n) {
function i (t) {
for (var e = u(t), n = e.length, i = n && t.length, l = !!i && s(i) && (o(t) || r(t)), d = -1, p = []; ++d < n;) {
var h = e[d];
(l && a(h, i) || c.call(t, h)) && p.push(h)
}
return p
}
var r = n(372),
o = n(373),
a = n(374),
s = n(370),
u = n(375),
l = Object.prototype,
c = l.hasOwnProperty;
t.exports = i
}, function (t, e, n) {
function i (t) {
return o(t) && r(t) && s.call(t, "callee") && !u.call(t, "callee")
}
var r = n(367),
o = n(366),
a = Object.prototype,
s = a.hasOwnProperty,
u = a.propertyIsEnumerable;
t.exports = i
}, function (t, e, n) {
var i = n(362),
r = n(370),
o = n(366),
a = "[object Array]",
s = Object.prototype,
u = s.toString,
l = i(Array, "isArray"),
c = l || function (t) {
return o(t) && r(t.length) && u.call(t) == a
};
t.exports = c
}, function (t, e) {
function n (t, e) {
return t = "number" == typeof t || i.test(t) ? +t : -1, e = null == e ? r : e, t > -1 && t % 1 == 0 && t < e
}
var i = /^\d+$/,
r = 9007199254740991;
t.exports = n
}, function (t, e, n) {
function i (t) {
if (null == t) return [];
u(t) || (t = Object(t));
var e = t.length;
e = e && s(e) && (o(t) || r(t)) && e || 0;
for (var n = t.constructor, i = -1, l = "function" == typeof n && n.prototype === t, d = Array(e), p = e > 0; ++i < e;) d[i] = i + "";
for (var h in t) p && a(h, e) || "constructor" == h && (l || !c.call(t, h)) || d.push(h);
return d
}
var r = n(372),
o = n(373),
a = n(374),
s = n(370),
u = n(365),
l = Object.prototype,
c = l.hasOwnProperty;
t.exports = i
}, function (t, e, n) {
function i (t) {
return o(t) && r(t.length) && !!E[C.call(t)]
}
var r = n(370),
o = n(366),
a = "[object Arguments]",
s = "[object Array]",
u = "[object Boolean]",
l = "[object Date]",
c = "[object Error]",
d = "[object Function]",
p = "[object Map]",
h = "[object Number]",
f = "[object Object]",
m = "[object RegExp]",
_ = "[object Set]",
b = "[object String]",
v = "[object WeakMap]",
g = "[object ArrayBuffer]",
y = "[object Float32Array]",
w = "[object Float64Array]",
M = "[object Int8Array]",
T = "[object Int16Array]",
k = "[object Int32Array]",
S = "[object Uint8Array]",
L = "[object Uint8ClampedArray]",
x = "[object Uint16Array]",
D = "[object Uint32Array]",
E = {};
E[y] = E[w] = E[M] = E[T] = E[k] = E[S] = E[L] = E[x] = E[D] = !0, E[a] = E[s] = E[g] = E[u] = E[l] = E[c] = E[d] = E[p] = E[h] = E[f] = E[m] = E[_] = E[b] = E[v] = !1;
var Y = Object.prototype,
C = Y.toString;
t.exports = i
}, function (t, e, n) {
function i (t) {
return r(t) ? t : Object(t)
}
var r = n(365);
t.exports = i
}, function (t, e, n) {
function i (t) {
for (var e = o(t), n = e.length; n--;) e[n][2] = r(e[n][1]);
return e
}
var r = n(379),
o = n(380);
t.exports = i
}, function (t, e, n) {
function i (t) {
return t === t && !r(t)
}
var r = n(365);
t.exports = i
}, function (t, e, n) {
function i (t) {
t = o(t);
for (var e = -1, n = r(t), i = n.length, a = Array(i); ++e < i;) {
var s = n[e];
a[e] = [s, t[s]]
}
return a
}
var r = n(361),
o = n(377);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
var n = s(t),
i = u(t) && l(e),
h = t + "";
return t = p(t),
function (s) {
if (null == s) return !1;
var u = h;
if (s = d(s), (n || !i) && !(u in s)) {
if (s = 1 == t.length ? s : r(s, a(t, 0, -1)), null == s) return !1;
u = c(t), s = d(s)
}
return s[u] === e ? void 0 !== e || u in s : o(e, s[u], void 0, !0)
}
}
var r = n(382),
o = n(355),
a = n(383),
s = n(373),
u = n(384),
l = n(379),
c = n(385),
d = n(377),
p = n(386);
t.exports = i
}, function (t, e, n) {
function i (t, e, n) {
if (null != t) {
void 0 !== n && n in r(t) && (e = [n]);
for (var i = 0, o = e.length; null != t && i < o;) t = t[e[i++]];
return i && i == o ? t : void 0
}
}
var r = n(377);
t.exports = i
}, function (t, e) {
function n (t, e, n) {
var i = -1,
r = t.length;
e = null == e ? 0 : +e || 0, e < 0 && (e = -e > r ? 0 : r + e), n = void 0 === n || n > r ? r : +n || 0, n < 0 && (n += r), r = e > n ? 0 : n - e >>> 0, e >>>= 0;
for (var o = Array(r); ++i < r;) o[i] = t[i + e];
return o
}
t.exports = n
}, function (t, e, n) {
function i (t, e) {
var n = typeof t;
if ("string" == n && s.test(t) || "number" == n) return !0;
if (r(t)) return !1;
var i = !a.test(t);
return i || null != e && t in o(e)
}
var r = n(373),
o = n(377),
a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
s = /^\w*$/;
t.exports = i
}, function (t, e) {
function n (t) {
var e = t ? t.length : 0;
return e ? t[e - 1] : void 0
}
t.exports = n
}, function (t, e, n) {
function i (t) {
if (o(t)) return t;
var e = [];
return r(t)
.replace(a, function (t, n, i, r) {
e.push(i ? r.replace(s, "$1") : n || t)
}), e
}
var r = n(387),
o = n(373),
a = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,
s = /\\(\\)?/g;
t.exports = i
}, function (t, e) {
function n (t) {
return null == t ? "" : t + ""
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
if ("function" != typeof t) return r;
if (void 0 === e) return t;
switch (n) {
case 1:
return function (n) {
return t.call(e, n)
};
case 3:
return function (n, i, r) {
return t.call(e, n, i, r)
};
case 4:
return function (n, i, r, o) {
return t.call(e, n, i, r, o)
};
case 5:
return function (n, i, r, o, a) {
return t.call(e, n, i, r, o, a)
}
}
return function () {
return t.apply(e, arguments)
}
}
var r = n(389);
t.exports = i
}, function (t, e) {
function n (t) {
return t
}
t.exports = n
}, function (t, e, n) {
function i (t) {
return a(t) ? r(t) : o(t)
}
var r = n(369),
o = n(391),
a = n(384);
t.exports = i
}, function (t, e, n) {
function i (t) {
var e = t + "";
return t = o(t),
function (n) {
return r(n, t, e)
}
}
var r = n(382),
o = n(386);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
var n = -1,
i = o(t) ? Array(t.length) : [];
return r(t, function (t, r, o) {
i[++n] = e(t, r, o)
}), i
}
var r = n(393),
o = n(367);
t.exports = i
}, function (t, e, n) {
var i = n(394),
r = n(397),
o = r(i);
t.exports = o
}, function (t, e, n) {
function i (t, e) {
return r(t, e, o)
}
var r = n(395),
o = n(361);
t.exports = i
}, function (t, e, n) {
var i = n(396),
r = i();
t.exports = r
}, function (t, e, n) {
function i (t) {
return function (e, n, i) {
for (var o = r(e), a = i(e), s = a.length, u = t ? s : -1; t ? u-- : ++u < s;) {
var l = a[u];
if (n(o[l], l, o) === !1) break
}
return e
}
}
var r = n(377);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
return function (n, i) {
var s = n ? r(n) : 0;
if (!o(s)) return t(n, i);
for (var u = e ? s : -1, l = a(n);
(e ? u-- : ++u < s) && i(l[u], u, l) !== !1;);
return n
}
}
var r = n(368),
o = n(370),
a = n(377);
t.exports = i
}, function (t, e, n) {
var i = n(399),
r = n(393),
o = n(400),
a = o(i, r);
t.exports = a
}, function (t, e) {
function n (t, e, n, i) {
var r = -1,
o = t.length;
for (i && o && (n = t[++r]); ++r < o;) n = e(n, t[r], r, t);
return n
}
t.exports = n
}, function (t, e, n) {
function i (t, e) {
return function (n, i, s, u) {
var l = arguments.length < 3;
return "function" == typeof i && void 0 === u && a(n) ? t(n, i, s, l) : o(n, r(i, u, 4), s, l, e)
}
}
var r = n(352),
o = n(401),
a = n(373);
t.exports = i
}, function (t, e) {
function n (t, e, n, i, r) {
return r(t, function (t, r, o) {
n = i ? (i = !1, t): e(n, t, r, o)
}), n
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
var i = t;
return (t = r(t)) ? (n ? s(i, e, n) : null == e) ? t.slice(u(t), l(t) + 1) : (e += "", t.slice(o(t, e), a(t, e) + 1)) : t
}
var r = n(387),
o = n(403),
a = n(404),
s = n(405),
u = n(406),
l = n(408);
t.exports = i
}, function (t, e) {
function n (t, e) {
for (var n = -1, i = t.length; ++n < i && e.indexOf(t.charAt(n)) > -1;);
return n
}
t.exports = n
}, function (t, e) {
function n (t, e) {
for (var n = t.length; n-- && e.indexOf(t.charAt(n)) > -1;);
return n
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
if (!a(n)) return !1;
var i = typeof e;
if ("number" == i ? r(n) && o(e, n.length) : "string" == i && e in n) {
var s = n[e];
return t === t ? t === s : s !== s
}
return !1
}
var r = n(367),
o = n(374),
a = n(365);
t.exports = i
}, function (t, e, n) {
function i (t) {
for (var e = -1, n = t.length; ++e < n && r(t.charCodeAt(e)););
return e
}
var r = n(407);
t.exports = i
}, function (t, e) {
function n (t) {
return t <= 160 && t >= 9 && t <= 13 || 32 == t || 160 == t || 5760 == t || 6158 == t || t >= 8192 && (t <= 8202 || 8232 == t || 8233 == t || 8239 == t || 8287 == t || 12288 == t || 65279 == t)
}
t.exports = n
}, function (t, e, n) {
function i (t) {
for (var e = t.length; e-- && r(t.charCodeAt(e)););
return e
}
var r = n(407);
t.exports = i
}, function (t, e) {
function n (t) {
for (var e = -1, n = t ? t.length : 0, i = -1, r = []; ++e < n;) {
var o = t[e];
o && (r[++i] = o)
}
return r
}
t.exports = n
}, function (t, e, n) {
function i (t, e) {
return r(t, o(e))
}
var r = n(350),
o = n(390);
t.exports = i
}, function (t, e, n) {
function i (t, e, n, i) {
return null == t ? [] : (i && a(e, n, i) && (n = void 0), o(e) || (e = null == e ? [] : [e]), o(n) || (n = null == n ? [] : [n]), r(t, e, n))
}
var r = n(412),
o = n(373),
a = n(405);
t.exports = i
}, function (t, e, n) {
function i (t, e, n) {
var i = -1;
e = r(e, function (t) {
return o(t)
});
var l = a(t, function (t) {
var n = r(e, function (e) {
return e(t)
});
return {
criteria: n,
index: ++i,
value: t
}
});
return s(l, function (t, e) {
return u(t, e, n)
})
}
var r = n(351),
o = n(352),
a = n(392),
s = n(413),
u = n(414);
t.exports = i
}, function (t, e) {
function n (t, e) {
var n = t.length;
for (t.sort(e); n--;) t[n] = t[n].value;
return t
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
for (var i = -1, o = t.criteria, a = e.criteria, s = o.length, u = n.length; ++i < s;) {
var l = r(o[i], a[i]);
if (l) {
if (i >= u) return l;
var c = n[i];
return l * ("asc" === c || c === !0 ? 1 : -1)
}
}
return t.index - e.index
}
var r = n(415);
t.exports = i
}, function (t, e) {
function n (t, e) {
if (t !== e) {
var n = null === t,
i = void 0 === t,
r = t === t,
o = null === e,
a = void 0 === e,
s = e === e;
if (t > e && !o || !r || n && !a && s || i && s) return 1;
if (t < e && !n || !s || o && !i && r || a && r) return -1
}
return 0
}
t.exports = n
}, function (t, e, n) {
var i = n(417),
r = n(418),
o = n(420),
a = o(function (t, e, n) {
return n ? i(t, e, n) : r(t, e)
});
t.exports = a
}, function (t, e, n) {
function i (t, e, n) {
for (var i = -1, o = r(e), a = o.length; ++i < a;) {
var s = o[i],
u = t[s],
l = n(u, e[s], s, t, e);
(l === l ? l === u : u !== u) && (void 0 !== u || s in t) || (t[s] = l)
}
return t
}
var r = n(361);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
return null == e ? t : r(e, o(e), t)
}
var r = n(419),
o = n(361);
t.exports = i
}, function (t, e) {
function n (t, e, n) {
n || (n = {});
for (var i = -1, r = e.length; ++i < r;) {
var o = e[i];
n[o] = t[o]
}
return n
}
t.exports = n
}, function (t, e, n) {
function i (t) {
return a(function (e, n) {
var i = -1,
a = null == e ? 0 : n.length,
s = a > 2 ? n[a - 2] : void 0,
u = a > 2 ? n[2] : void 0,
l = a > 1 ? n[a - 1] : void 0;
for ("function" == typeof s ? (s = r(s, l, 5), a -= 2) : (s = "function" == typeof l ? l : void 0, a -= s ? 1 : 0), u && o(n[0], n[1], u) && (s = a < 3 ? void 0 : s, a = 1); ++i < a;) {
var c = n[i];
c && t(e, c, s)
}
return e
})
}
var r = n(388),
o = n(405),
a = n(421);
t.exports = i
}, function (t, e) {
function n (t, e) {
if ("function" != typeof t) throw new TypeError(i);
return e = r(void 0 === e ? t.length - 1 : +e || 0, 0),
function () {
for (var n = arguments, i = -1, o = r(n.length - e, 0), a = Array(o); ++i < o;) a[i] = n[e + i];
switch (e) {
case 0:
return t.call(this, a);
case 1:
return t.call(this, n[0], a);
case 2:
return t.call(this, n[0], n[1], a)
}
var s = Array(e + 1);
for (i = -1; ++i < e;) s[i] = n[i];
return s[e] = a, t.apply(this, s)
}
}
var i = "Expected a function",
r = Math.max;
t.exports = n
}, function (t, e, n) {
var i = n(423);
t.exports = function (t) {
var e = void 0;
return t.institution = null, ["education", "employment"].forEach(function (n) {
var r = i(t[n] || []),
o = r[0];
o && !o.end_date && o.institution_details && o.institution_details.name && (t.institution = o.institution_details.name, t.institutionEntryId = o.id, t.institutionEntryType = n, "employment" === n && (e = o.position))
}), e
}
}, function (t, e, n) {
var i = n(411);
t.exports = function (t) {
var e = Date.now();
return i(t, [function (t) {
return Date.parse(t.end_date) || e
}, function (t) {
return Date.parse(t.start_date) || 0
}, function (t) {
try {
return t.institution_details.name
} catch (t) {
return !1
}
}], [!1, !1, !0])
}
}, function (t, e) {
t.exports = function (t, e) {
e = e || 256;
var n = t.filter(function (t) {
return t.height === e
})[0];
return n
}
}, function (t, e) {
t.exports = {
AF: "Afghanistan",
AX: "Aland Islands",
AL: "Albania",
DZ: "Algeria",
AS: "American Samoa",
AD: "Andorra",
AO: "Angola",
AI: "Anguilla",
AQ: "Antarctica",
AG: "Antigua And Barbuda",
AR: "Argentina",
AM: "Armenia",
AW: "Aruba",
AU: "Australia",
AT: "Austria",
AZ: "Azerbaijan",
BS: "Bahamas",
BH: "Bahrain",
BD: "Bangladesh",
BB: "Barbados",
BY: "Belarus",
BE: "Belgium",
BZ: "Belize",
BJ: "Benin",
BM: "Bermuda",
BT: "Bhutan",
BO: "Bolivia",
BA: "Bosnia And Herzegovina",
BW: "Botswana",
BV: "Bouvet Island",
BR: "Brazil",
IO: "British Indian Ocean Territory",
BN: "Brunei Darussalam",
BG: "Bulgaria",
BF: "Burkina Faso",
BI: "Burundi",
KH: "Cambodia",
CM: "Cameroon",
CA: "Canada",
CV: "Cape Verde",
KY: "Cayman Islands",
CF: "Central African Republic",
TD: "Chad",
CL: "Chile",
CN: "China",
CX: "Christmas Island",
CC: "Cocos (Keeling) Islands",
CO: "Colombia",
KM: "Comoros",
CG: "Congo",
CD: "Congo, Democratic Republic",
CK: "Cook Islands",
CR: "Costa Rica",
CI: "Cote D'Ivoire",
HR: "Croatia",
CU: "Cuba",
CY: "Cyprus",
CZ: "Czech Republic",
DK: "Denmark",
DJ: "Djibouti",
DM: "Dominica",
DO: "Dominican Republic",
EC: "Ecuador",
EG: "Egypt",
SV: "El Salvador",
GQ: "Equatorial Guinea",
ER: "Eritrea",
EE: "Estonia",
ET: "Ethiopia",
FK: "Falkland Islands (Malvinas)",
FO: "Faroe Islands",
FJ: "Fiji",
FI: "Finland",
FR: "France",
GF: "French Guiana",
PF: "French Polynesia",
TF: "French Southern Territories",
GA: "Gabon",
GM: "Gambia",
GE: "Georgia",
DE: "Germany",
GH: "Ghana",
GI: "Gibraltar",
GR: "Greece",
GL: "Greenland",
GD: "Grenada",
GP: "Guadeloupe",
GU: "Guam",
GT: "Guatemala",
GG: "Guernsey",
GN: "Guinea",
GW: "Guinea-Bissau",
GY: "Guyana",
HT: "Haiti",
HM: "Heard Island & Mcdonald Islands",
VA: "Holy See (Vatican City State)",
HN: "Honduras",
HK: "Hong Kong",
HU: "Hungary",
IS: "Iceland",
IN: "India",
ID: "Indonesia",
IR: "Iran, Islamic Republic Of",
IQ: "Iraq",
IE: "Ireland",
IM: "Isle Of Man",
IL: "Israel",
IT: "Italy",
JM: "Jamaica",
JP: "Japan",
JE: "Jersey",
JO: "Jordan",
KZ: "Kazakhstan",
KE: "Kenya",
KI: "Kiribati",
KR: "Korea",
KW: "Kuwait",
KG: "Kyrgyzstan",
LA: "Lao People's Democratic Republic",
LV: "Latvia",
LB: "Lebanon",
LS: "Lesotho",
LR: "Liberia",
LY: "Libyan Arab Jamahiriya",
LI: "Liechtenstein",
LT: "Lithuania",
LU: "Luxembourg",
MO: "Macao",
MK: "Macedonia",
MG: "Madagascar",
MW: "Malawi",
MY: "Malaysia",
MV: "Maldives",
ML: "Mali",
MT: "Malta",
MH: "Marshall Islands",
MQ: "Martinique",
MR: "Mauritania",
MU: "Mauritius",
YT: "Mayotte",
MX: "Mexico",
FM: "Micronesia, Federated States Of",
MD: "Moldova",
MC: "Monaco",
MN: "Mongolia",
ME: "Montenegro",
MS: "Montserrat",
MA: "Morocco",
MZ: "Mozambique",
MM: "Myanmar",
NA: "Namibia",
NR: "Nauru",
NP: "Nepal",
NL: "Netherlands",
AN: "Netherlands Antilles",
NC: "New Caledonia",
NZ: "New Zealand",
NI: "Nicaragua",
NE: "Niger",
NG: "Nigeria",
NU: "Niue",
NF: "Norfolk Island",
MP: "Northern Mariana Islands",
NO: "Norway",
OM: "Oman",
PK: "Pakistan",
PW: "Palau",
PS: "Palestinian Territory, Occupied",
PA: "Panama",
PG: "Papua New Guinea",
PY: "Paraguay",
PE: "Peru",
PH: "Philippines",
PN: "Pitcairn",
PL: "Poland",
PT: "Portugal",
PR: "Puerto Rico",
QA: "Qatar",
RE: "Reunion",
RO: "Romania",
RU: "Russian Federation",
RW: "Rwanda",
BL: "Saint Barthelemy",
SH: "Saint Helena",
KN: "Saint Kitts And Nevis",
LC: "Saint Lucia",
MF: "Saint Martin",
PM: "Saint Pierre And Miquelon",
VC: "Saint Vincent And Grenadines",
WS: "Samoa",
SM: "San Marino",
ST: "Sao Tome And Principe",
SA: "Saudi Arabia",
SN: "Senegal",
RS: "Serbia",
SC: "Seychelles",
SL: "Sierra Leone",
SG: "Singapore",
SK: "Slovakia",
SI: "Slovenia",
SB: "Solomon Islands",
SO: "Somalia",
ZA: "South Africa",
GS: "South Georgia And Sandwich Isl.",
ES: "Spain",
LK: "Sri Lanka",
SD: "Sudan",
SR: "Suriname",
SJ: "Svalbard And Jan Mayen",
SZ: "Swaziland",
SE: "Sweden",
CH: "Switzerland",
SY: "Syrian Arab Republic",
TW: "Taiwan",
TJ: "Tajikistan",
TZ: "Tanzania",
TH: "Thailand",
TL: "Timor-Leste",
TG: "Togo",
TK: "Tokelau",
TO: "Tonga",
TT: "Trinidad And Tobago",
TN: "Tunisia",
TR: "Turkey",
TM: "Turkmenistan",
TC: "Turks And Caicos Islands",
TV: "Tuvalu",
UG: "Uganda",
UA: "Ukraine",
AE: "United Arab Emirates",
GB: "United Kingdom",
US: "United States",
UM: "United States Outlying Islands",
UY: "Uruguay",
UZ: "Uzbekistan",
VU: "Vanuatu",
VE: "Venezuela",
VN: "Viet Nam",
VG: "Virgin Islands, British",
VI: "Virgin Islands, U.S.",
WF: "Wallis And Futuna",
EH: "Western Sahara",
YE: "Yemen",
ZM: "Zambia",
ZW: "Zimbabwe"
}
}, function (t, e, n) {
function i () {
if (n(303), n(500), n(501), a(".error-wrapper")
.length) return !1;
var t = o.Auth.authCodeFlow({
authenticateOnStart: !1,
apiAuthenticateUrl: function () {
var t = "/sign-in/?routeTo=" + encodeURIComponent(WB_wombat_self_location);
return WB_wombat_self_location = t
},
refreshAccessTokenUrl: "/profiles/refreshToken/"
}),
e = s.apiBaseUrl,
i = o({
authFlow: t,
baseUrl: /^https:\/\//.test(e) ? e : "https://" + e
}),
r = a.extend({
api: i,
auth: {
currentUserId: s.profileData.viewerId,
flow: t
},
authorsLimit: 6,
isViewingOwnProfile: s.profileData.viewerId === s.profileData.profileId,
currentUser: s.currentUser
}, s.profileData);
return a(".expandable-interests")
.expandable({
speed: 200,
lineHeight: 48,
maxLines: 4
}), a("body")
.scrollTo(), r.isViewingOwnProfile && r.currentUser && n(502)
.attachTo(document, r), n(518)
.attachTo(document, r), n(529)
.attachTo(document, r), n(530)
.attachTo(document, {
api: i,
clientId: s.apiClientId,
currentUserId: s.profileData.viewerId,
analytics: function () {
return function () {
"function" == typeof window.ga && window.ga.apply(window.ga, Array.prototype.slice.call(arguments))
}
}
}), n(533)
.attachTo(document, r), n(534)
.attachTo(document, r), n(535)
.attachTo(document, r), n(536)
.attachTo(document, r), n(539)
.attachTo(document, {
api: i
}), n(304)
.attachTo(document), n(540)
.attachTo(document), n(543)
.attachTo(document), n(545)
.attachTo("#profile-modal-photo-upload", r), n(554)
.attachTo(".masthead"), n(555)
.attachTo(document), n(556)
.attachTo("#profile-details, #profile-followers, #profile-followees, #profile-co-authors, #profile-privacy-restricted-view"), n(557)
.attachTo("#profile-details", r), n(558)
.attachTo("#profile-details"), n(563)
.attachTo("#profile-details", r), n(336)
.attachTo("#profile-co-authors"), n(566)
.attachTo(".autocomplete-institutions"), n(569)
.attachTo("#profile-modal-message"), n(570)
.attachTo("#profile-modal-photo-suggestions"), n(572)
.attachTo("#profile-modal-connect-orcid"), r
}
function r () {
document.body.className += " js-loaded", a(document)
.trigger("page:components.loaded"), a(document)
.trigger("data:tracking:profile.loaded", {
profile_id: s.profileData.profileId,
profile_url: WB_wombat_self_location.pathname
})
}
var o = n(427),
a = n(499),
s = window.Mendeley || {};
t.exports = {
init: i,
onComponentsInitialized: r
}
}, function (t, e, n) {
function i (t, e) {
Object.keys(o)
.forEach(function (n) {
t[n] = o[n](e)
}), Object.keys(a)
.forEach(function (n) {
a[n](t[n], e)
})
}
var r = n(428),
o = {
alerts: n(462),
applicationFeatures: n(464),
comments: n(465),
community: n(466),
education: n(467),
employment: n(468),
editorships: n(469),
events: n(470),
fileContent: n(471),
id: n(472),
likes: n(473),
messages: n(474),
metadataExtId: n(475),
news: n(476),
photos: n(477),
recentlyRead: n(478),
recommendations: n(479),
registeredInstitutionContracts: n(480),
registeredInstitutionMembers: n(481),
registeredInstitutionProducts: n(482),
registeredInstitutions: n(483),
signIn: n(484),
scopus: n(485),
subjectAreas: n(486)
},
a = {
documents: n(487),
followers: n(493),
groups: n(494),
metadata: n(495),
profiles: n(496)
};
t.exports = function (t) {
var e = r(t);
return i(e, t), e
}, t.exports.Auth = n(497), t.exports.Request = r.Request, t.exports.MimeTypes = n(463)
}, function (t, e, n) {
var i = n(429),
r = n(448),
o = n(433),
a = n(435);
t.exports = function (t) {
if (!t) throw new Error("Please pass an options object with an authFlow property");
if (t.baseUrl = t.baseUrl || "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/api.mendeley.com", t.authFlow = t.authFlow || {}, "function" != typeof t.authFlow) {
var e = t.authFlow;
t.authFlow = function () {
return e
}
}
if ("function" != typeof t.baseUrl) {
var n = t.baseUrl;
t.baseUrl = function () {
return n
}
}
return i(t)
}, t.exports.Auth = r, t.exports.Request = o, t.exports.MimeTypes = a
}, function (t, e, n) {
(function (e, i) {
function r (t) {
var e = {};
return Object.keys(u)
.forEach(function (n) {
e[n] = u[n](t)
}), e
}
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
},
a = n(430),
s = n(294);
s.config({
warnings: !1,
wForgottenReturn: !1
}), "object" === ("undefined" == typeof e ? "undefined" : o(e)) && e + "" == "[object process]" && (i.window = {});
var u = {
annotations: n(431),
catalog: n(436),
documents: n(437),
files: n(438),
folders: n(439),
followers: n(440),
groups: n(441),
institutions: n(442),
institutionTrees: n(443),
locations: n(444),
metadata: n(445),
profiles: n(446),
trash: n(447)
};
t.exports = function (t) {
var e = {};
return a(e, r(t)), e
}
})
.call(e, n(295), function () {
return this
}())
}, function (t, e) {
function n (t) {
if (null === t || void 0 === t) throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(t)
}
function i () {
try {
if (!Object.assign) return !1;
var t = new String("abc");
if (t[5] = "de", "5" === Object.getOwnPropertyNames(t)[0]) return !1;
for (var e = {}, n = 0; n < 10; n++) e["_" + String.fromCharCode(n)] = n;
var i = Object.getOwnPropertyNames(e)
.map(function (t) {
return e[t]
});
if ("0123456789" !== i.join("")) return !1;
var r = {};
return "abcdefghijklmnopqrst".split("")
.forEach(function (t) {
r[t] = t
}), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r))
.join("")
} catch (t) {
return !1
}
}
var r = Object.prototype.hasOwnProperty,
o = Object.prototype.propertyIsEnumerable;
t.exports = i() ? Object.assign : function (t, e) {
for (var i, a, s = n(t), u = 1; u < arguments.length; u++) {
i = Object(arguments[u]);
for (var l in i) r.call(i, l) && (s[l] = i[l]);
if (Object.getOwnPropertySymbols) {
a = Object.getOwnPropertySymbols(i);
for (var c = 0; c < a.length; c++) o.call(i, a[c]) && (s[a[c]] = i[a[c]])
}
}
return s
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/annotations/{id}",
args: ["id"],
headers: {
Accept: r.ANNOTATION
}
}),
patch: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/annotations/{id}",
args: ["id"],
headers: {
"Content-Type": r.ANNOTATION,
Accept: r.ANNOTATION
},
followLocation: !0
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/annotations",
headers: {
"Content-Type": r.ANNOTATION,
Accept: r.ANNOTATION
},
followLocation: !0
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/annotations/{id}",
args: ["id"]
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/annotations",
headers: {
Accept: r.ANNOTATION
},
responseFilter: i.paginationFilter
})
}
}
}, function (t, e, n) {
function i (t, e) {
return e
}
function r (t, e) {
return e.data
}
function o (t) {
return t.responseFilter = t.responseFilter || r, t.args = t.args || [], t.headers = t.headers || {}, t
}
function a (t) {
return t >= 200 && t < 400
}
function s (t) {
return t = o(t),
function () {
var e = Array.prototype.slice.call(arguments, 0),
n = p(t, e),
i = e[t.args.length],
r = {
method: t.method,
responseType: "json",
url: n,
headers: h(t.headers),
params: i
};
t.noFollow && (r.maxRedirects = 0, r.validateStatus = a);
var o = {
authFlow: t.authFlow()
};
return "GET" === t.method && (o.maxRetries = 1), m.create(r, o)
.send()
.then(t.responseFilter.bind(null, t))
}
}
function u (t) {
return t = o(t),
function () {
var e = Array.prototype.slice.call(arguments, 0),
n = p(t, e),
i = e[t.args.length],
r = {
method: t.method,
url: n,
headers: h(t.headers, i),
data: JSON.stringify(i)
},
o = {
authFlow: t.authFlow(),
followLocation: t.followLocation
};
return m.create(r, o)
.send()
.then(t.responseFilter.bind(null, t))
}
}
function l (t) {
return t = o(t),
function () {
var e, n = Array.prototype.slice.call(arguments, 0),
i = p(t, n),
r = n[0],
o = n[1],
a = _({}, h(d(t, r, o), t.method), t.headers);
"function" == typeof n[n.length - 1] && (e = n[n.length - 1]);
var s = {
method: t.method,
url: i,
headers: a,
data: r,
onUploadProgress: e,
onDownloadProgress: e
},
u = {
authFlow: t.authFlow()
};
return m.create(s, u)
.send()
.then(t.responseFilter.bind(null, t))
}
}
function c (t) {
return encodeURIComponent(t)
.replace(/'/g, "%27")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")
.replace(/\*/g, "%2A")
}
function d (t, e, n) {
var i = {
"Content-Type": e.type ? e.type : "application/octet-stream",
"Content-Disposition": "attachment; filename*=UTF-8''" + c(e.name)
};
if (t.linkType && n) {
var r = t.baseUrl(t.method, t.resource, t.headers);
switch (t.linkType) {
case "group":
i.Link = "<" + r + "/groups/" + n + '>; rel="group"';
break;
case "document":
i.Link = "<" + r + "/documents/" + n + '>; rel="document"'
}
}
return i
}
function p (t, e) {
var n = t.baseUrl(t.method, t.resource, t.headers);
if (!t.args.length) return n + t.resource;
var i = {};
return t.args.forEach(function (t, n) {
i[t] = e[n]
}), n + f(t.resource, i)
}
function h (t, e) {
for (var n in t) {
var i = t[n];
"function" == typeof i && (t[n] = i(e))
}
return t
}
function f (t, e) {
var n = t.match(/\{[a-z]+\}/gi);
return n.forEach(function (n) {
var i = n.replace(/[\{\}]/g, "");
if (!e.hasOwnProperty(i)) throw new Error("Endpoint requires " + i);
t = t.replace(n, e[i])
}), t
}
var m = n(433),
_ = n(430),
b = (n(294), n(434));
t.exports = {
passFilter: i,
requestFun: s,
requestWithDataFun: u,
requestWithFileFun: l,
paginationFilter: b.filter
}
}, function (t, e, n) {
function i (t, e) {
return new r(t, d({}, h, e))
}
function r (t, e) {
if (!e.authFlow) throw new Error("Please provide an authentication interface");
this.request = t, this.settings = e, this.retries = 0, this.authRetries = 0
}
function o (t) {
t = t || this.request;
var e = this.settings.authFlow.getToken();
if (!e) {
if (this.authRetries < this.settings.maxAuthRetries) return this.authRetries++, u.call(this);
throw this.settings.authFlow.authenticate(), new Error("maxAuthRetries exceeded")
}
for (var n in t.headers) null !== t.headers[n] && void 0 !== t.headers[n] || delete t.headers[n];
return t.headers = d({
Accept: ""
}, t.headers), t.headers.Authorization = "Bearer " + e, t.method = t.method.toLowerCase(), c.request(t)
.then(s.bind(this))
.catch(a.bind(this))
}
function a (t) {
if (!t.response) throw t;
switch (t.response.status) {
case 0:
case 504:
if (this.retries < this.settings.maxRetries) return this.retries++, this.send();
throw t;
case 401:
if (this.authRetries < this.settings.maxAuthRetries) return this.authRetries++, u.call(this);
throw this.settings.authFlow.authenticate(), t;
default:
throw t
}
}
function s (t) {
var e = t.headers.WB_wombat_self_location;
if (e && this.settings.followLocation && 201 === t.status) {
var n = {
method: "GET",
url: e,
responseType: "json"
};
return this.send(n)
}
return t.headers.link && "string" == typeof t.headers.link && (t.headers.link = l(t.headers.link)), t
}
function u () {
var t = this.settings.authFlow;
if (t._refreshTokenPromise) return t._refreshTokenPromise.then(function () {
return this.send()
}.bind(this));
var e = this.settings.authFlow.refreshToken();
if (e) {
var n = e.catch(function (e) {
delete t._refreshTokenPromise;
try {
this.settings.authFlow.authenticate()
} catch (t) {
throw e
}
}.bind(this))
.then(function () {
return delete t._refreshTokenPromise, this.send()
}.bind(this));
return t._refreshTokenPromise = n, n
}
return this.settings.authFlow.authenticate(), p.reject(new Error("No token"))
}
function l (t) {
for (var e, n, i, r = t.split(","), o = {}, a = 0, s = r.length; a < s; a++) e = r[a].split(";"), n = e[0].replace(/[<>]/g, "")
.trim(), i = e[1].trim()
.split("=")[1].replace(/"/g, ""), o[i] = n;
return o
}
var c = n(314),
d = n(430),
p = n(294),
h = {
authFlow: !1,
maxRetries: 0,
maxAuthRetries: 1,
followLocation: !1
};
r.prototype = {
send: o
}, t.exports = {
create: i
}
}, function (t, e, n) {
function i (t, e) {
var n = c({}, t);
return t.pageData && t.pageData.link && "object" === s(t.pageData.link) ? (l.forEach(function (i) {
var r = t.pageData.link[i];
r && (n[i] = o(r, e, t.pageData.headers))
}), n) : n
}
function r (t, e) {
var n = e.headers || {},
i = {
items: e.data || []
};
return i.total = i.items.length, n.hasOwnProperty("mendeley-count") && (i.total = parseInt(n["mendeley-count"], 10)), i.pageData = {
link: {},
headers: t.headers
}, n.link && l.forEach(function (e) {
n.link[e] && (i[e] = o(n.link[e], t.authFlow, t.headers, t.responseFilter), i.pageData.link[e] = n.link[e])
}), i
}
function o (t, e, n, i) {
var o = {
method: "GET",
responseType: "json",
url: t,
headers: a(n)
},
s = {
maxRetries: 1,
authFlow: e
};
"function" == typeof s.authFlow && (s.authFlow = e());
var l = {
headers: n,
authFlow: e,
responseFilter: i || r
};
return function () {
return u.create(o, s)
.send()
.then(l.responseFilter.bind(null, l))
}
}
function a (t, e) {
for (var n in t) {
var i = t[n];
"function" == typeof i && (t[n] = i(e))
}
return t
}
var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
},
u = n(433),
l = ["first", "previous", "next", "last"],
c = n(430);
t.exports = {
filter: r,
decorate: i
}
}, function (t, e) {
t.exports = {
ANNOTATION: "application/vnd.mendeley-annotation.1+json",
DOCUMENT: "application/vnd.mendeley-document.1+json",
DOCUMENT_CLONE: "application/vnd.mendeley-document-clone.1+json",
DOCUMENT_LOOKUP: "application/vnd.mendeley-document-lookup.1+json",
FILE: "application/vnd.mendeley-file.1+json",
FOLDER: "application/vnd.mendeley-folder.1+json",
FOLLOW: "application/vnd.mendeley-follow.1+json",
FOLLOW_REQUEST: "application/vnd.mendeley-follow-request.1+json",
FOLLOW_ACCEPT: "application/vnd.mendeley-follow-acceptance.1+json",
GROUP: "application/vnd.mendeley-group.1+json",
INSTITUTION: "application/vnd.mendeley-institution.1+json",
INSTITUTION_TREE: "application/vnd.mendeley-institution-tree.1+json",
LOCATION: "application/vnd.mendeley-location.1+json",
PROFILE: "application/vnd.mendeley-profiles.1+json",
PROFILE_UPDATE: "application/vnd.mendeley-profile-amendment.1+json"
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
search: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/catalog",
headers: {
Accept: r.DOCUMENT
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/catalog/{id}",
args: ["id"],
headers: {
Accept: r.DOCUMENT
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
var e = i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/documents",
headers: {
Accept: r.DOCUMENT
},
responseFilter: i.paginationFilter
}),
n = i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/folders/{id}/documents",
args: ["id"],
headers: {
Accept: r.DOCUMENT
},
responseFilter: i.paginationFilter
});
return {
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/documents",
headers: {
"Content-Type": r.DOCUMENT,
Accept: r.DOCUMENT
},
followLocation: !0
}),
createFromFile: i.requestWithFileFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/documents",
headers: {
Accept: r.DOCUMENT
}
}),
createFromFileInGroup: i.requestWithFileFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/documents",
linkType: "group",
headers: {
Accept: r.DOCUMENT
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/documents/{id}",
args: ["id"],
headers: {
Accept: r.DOCUMENT
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/documents/{id}",
args: ["id"],
headers: {
"Content-Type": r.DOCUMENT,
Accept: r.DOCUMENT
},
followLocation: !0
}),
clone: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/documents/{id}/actions/cloneTo",
args: ["id"],
headers: {
"Content-Type": r.DOCUMENT_CLONE,
Accept: r.DOCUMENT
},
followLocation: !0
}),
list: function (t) {
if (t && "undefined" != typeof t.folderId) {
var i = t.folderId,
r = {
limit: t.limit
};
return delete t.folderId, n.call(this, i, r)
}
return e.call(this, t)
},
search: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/search/documents",
headers: {
Accept: r.DOCUMENT
},
responseFilter: i.paginationFilter
}),
trash: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/documents/{id}/trash",
args: ["id"]
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
create: i.requestWithFileFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/files",
headers: {
Accept: r.FILE
},
linkType: "document"
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/files?document_id={id}",
args: ["id"],
headers: {
Accept: r.FILE
}
}),
retrieve: i.requestFun({
responseFilter: i.passFilter,
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/files/{id}",
args: ["id"],
noFollow: !0
}),
remove: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/files/{id}",
args: ["id"]
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/folders",
headers: {
"Content-Type": r.FOLDER,
Accept: r.FOLDER
},
followLocation: !0
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/folders/{id}",
args: ["id"],
headers: {
Accept: r.FOLDER
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/folders/{id}",
args: ["id"],
headers: {
"Content-Type": r.FOLDER,
Accept: r.FOLDER
},
followLocation: !0
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/folders/{id}",
args: ["id"]
}),
removeDocument: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/folders/{id}/documents/{docId}",
args: ["id", "docId"]
}),
addDocument: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/folders/{id}/documents",
args: ["id"],
headers: {
"Content-Type": r.DOCUMENT
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/folders",
headers: {
Accept: r.FOLDER
},
responseFilter: i.paginationFilter
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/followers",
headers: {
Accept: r.FOLLOW
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/followers",
headers: {
"Content-Type": r.FOLLOW_REQUEST,
Accept: r.FOLLOW
}
}),
remove: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/followers/{id}",
args: ["id"]
}),
accept: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/followers/{id}",
args: ["id"],
headers: {
"Content-Type": r.FOLLOW_ACCEPT,
Accept: r.FOLLOW
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/groups/{id}",
args: ["id"],
headers: {
Accept: r.GROUP
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/groups",
headers: {
Accept: r.GROUP
},
responseFilter: i.paginationFilter
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
search: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/institutions",
headers: {
Accept: r.INSTITUTION
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/institutions/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/institution_trees",
headers: {
Accept: r.INSTITUTION_TREE
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/institution_trees/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_TREE
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
search: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/locations",
headers: {
Accept: r.LOCATION
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/locations/{id}",
args: ["id"],
headers: {
Accept: r.LOCATION
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/metadata",
headers: {
Accept: r.DOCUMENT_LOOKUP
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
me: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/profiles/me",
headers: {
Accept: r.PROFILE
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/profiles/{id}",
args: ["id"],
headers: {
Accept: r.PROFILE
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/profiles/me",
headers: {
"Content-Type": r.PROFILE_UPDATE,
Accept: r.PROFILE
},
followLocation: !0
}),
retrieveByEmail: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/profiles?email={email}",
args: ["email"],
headers: {
Accept: r.PROFILE
}
}),
retrieveByLink: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/profiles?link={link}",
args: ["link"],
headers: {
Accept: r.PROFILE
}
}),
retrieveByIdentifier: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/profiles",
headers: {
Accept: r.PROFILE
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(435);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/trash/{id}",
args: ["id"],
headers: {
Accept: r.DOCUMENT
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/trash",
headers: {
Accept: r.DOCUMENT
},
responseFilter: i.paginationFilter
}),
restore: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/trash/{id}/restore",
args: ["id"]
}),
destroy: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/trash/{id}",
args: ["id"]
})
}
}
}, function (t, e, n) {
t.exports = {
implicitGrantFlow: n(449),
authCodeFlow: n(456),
authenticatedFlow: n(457),
clientCredentialsFlow: n(459),
refreshTokenFlow: n(461)
}
}, function (t, e, n) {
function i (t, e) {
var n = a.get(t, e),
i = (t.WB_wombat_self_location.hash || "")
.split("="),
r = null;
return "#access_token" === i[0] && (r = i[1]), r && !n ? (a.set(t, e, r), r) : !r && n ? n : r && n ? r !== n ? (a.set(t, e, r), r) : n : ""
}
var r = n(430),
o = n(450),
a = n(453),
s = n(454),
u = n(455);
t.exports = function (t) {
var e = r({}, {
win: window,
authenticateOnStart: !0,
accessTokenCookieName: s.ACCESS_TOKEN_COOKIE_NAME,
scope: s.OAUTH_DEFAULT_SCOPE,
clientId: !1,
redirectUrl: null,
apiAuthenticateUrl: function () {
return s.OAUTH_AUTHORISE_URL
},
onNotAuthenticated: function () {
a.clear(e.win, e.accessTokenCookieName), e.win.WB_wombat_self_location = e.apiAuthenticateUrl()
}
}, t);
u(e.clientId, "You must provide a clientId for implicit grant flow"), e.redirectUrl || (e.redirectUrl = e.win.WB_wombat_self_location.toString());
var n = e.apiAuthenticateUrl() + "?" + o.stringify({
client_id: e.clientId,
redirect_uri: e.redirectUrl,
scope: e.scope,
response_type: "token"
});
return e.apiAuthenticateUrl = function () {
return n
}, e.authenticateOnStart && !i(e.win, e.accessTokenCookieName) && e.onNotAuthenticated(), {
authenticate: e.onNotAuthenticated,
getToken: i.bind(null, e.win, e.accessTokenCookieName),
refreshToken: function () {
return !1
}
}
}
}, function (t, e, n) {
e.decode = e.parse = n(451), e.encode = e.stringify = n(452)
}, function (t, e) {
function n (t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
t.exports = function (t, e, i, r) {
e = e || "&", i = i || "=";
var o = {};
if ("string" != typeof t || 0 === t.length) return o;
var a = /\+/g;
t = t.split(e);
var s = 1e3;
r && "number" == typeof r.maxKeys && (s = r.maxKeys);
var u = t.length;
s > 0 && u > s && (u = s);
for (var l = 0; l < u; ++l) {
var c, d, p, h, f = t[l].replace(a, "%20"),
m = f.indexOf(i);
m >= 0 ? (c = f.substr(0, m), d = f.substr(m + 1)) : (c = f, d = ""), p = decodeURIComponent(c), h = decodeURIComponent(d), n(o, p) ? Array.isArray(o[p]) ? o[p].push(h) : o[p] = [o[p], h] : o[p] = h
}
return o
}
}, function (t, e) {
var n = function (t) {
switch (typeof t) {
case "string":
return t;
case "boolean":
return t ? "true" : "false";
case "number":
return isFinite(t) ? t : "";
default:
return ""
}
};
t.exports = function (t, e, i, r) {
return e = e || "&", i = i || "=", null === t && (t = void 0), "object" == typeof t ? Object.keys(t)
.map(function (r) {
var o = encodeURIComponent(n(r)) + i;
return Array.isArray(t[r]) ? t[r].map(function (t) {
return o + encodeURIComponent(n(t))
})
.join(e) : o + encodeURIComponent(n(t[r]))
})
.join(e) : r ? encodeURIComponent(n(r)) + i + encodeURIComponent(n(t)) : ""
}
}, function (t, e) {
t.exports = {
get: function (t, e) {
e += "=";
for (var n = t.document.cookie.split(";"), i = 0; i < n.length; i++) {
var r = n[i].toString()
.trim();
if (r.indexOf(e) !== -1) return r.substring(e.length, r.length)
}
return ""
},
set: function (t, e, n, i) {
var r = new Date;
r.setTime(r.getTime() + 60 * (i || 1) * 60 * 1e3);
var o = "expires=" + r.toUTCString();
t.document.cookie = e + "=" + n + "; " + o
},
clear: function (e, n) {
t.exports.set(e, n, "", -1)
}
}
}, function (t, e) {
t.exports = {
OAUTH_AUTHORISE_URL: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/api.mendeley.com/oauth/authorize",
OAUTH_TOKEN_URL: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/api.mendeley.com/oauth/token",
ACCESS_TOKEN_COOKIE_NAME: "accessToken",
OAUTH_DEFAULT_SCOPE: "all",
AUTHENTICATE_ON_START: !0
}
}, function (t, e) {
t.exports = function (t, e) {
if (!t) throw new Error(e)
}
}, function (t, e, n) {
var i = n(430),
r = n(314),
o = n(454),
a = n(453);
t.exports = function (t) {
var e = i({}, {
win: window,
authenticateOnStart: o.AUTHENTICATE_ON_START,
accessTokenCookieName: o.ACCESS_TOKEN_COOKIE_NAME,
scope: o.OAUTH_DEFAULT_SCOPE,
refreshAccessTokenUrl: void 0,
apiAuthenticateUrl: function () {
return "/login"
},
onNotAuthenticated: function () {
a.clear(e.win, e.accessTokenCookieName), e.win.WB_wombat_self_location = e.apiAuthenticateUrl()
}
}, t);
return e.authenticateOnStart && !a.get(e.win, e.accessTokenCookieName) && e.onNotAuthenticated(), "function" != typeof e.apiAuthenticateUrl && (e.apiAuthenticateUrl = function (t) {
return t
}.bind(null, e.apiAuthenticateUrl)), {
authenticate: e.onNotAuthenticated,
getToken: a.get.bind(null, e.win, e.accessTokenCookieName),
refreshToken: function () {
return !!e.refreshAccessTokenUrl && r.get(e.refreshAccessTokenUrl)
}
}
}
}, function (t, e, n) {
var i = n(458);
t.exports = function (t) {
return {
authenticate: function () {
throw new Error("Cannot authenticate")
},
getToken: function () {
return t
},
refreshToken: i
}
}
}, function (t, e) {
t.exports = function () {}
}, function (t, e, n) {
var i = n(430),
r = n(314),
o = n(460),
a = n(454),
s = n(455),
u = n(458);
t.exports = function (t) {
var e = i({}, {
tokenUrl: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/api.mendeley.com/oauth/token",
clientId: void 0,
clientSecret: void 0,
redirectUri: void 0,
scope: a.OAUTH_DEFAULT_SCOPE,
onAccessToken: u,
onNotAuthenticated: function () {
throw new Error("Cannot authenticate")
}
}, t);
return s(e.clientId, "You must provide a clientId for client credentials flow"), s(e.clientSecret, "You must provide a clientSecret for client credentials flow"), s(e.redirectUri, "You must provide a redirectUri for client credentials flow"), {
authenticate: e.onNotAuthenticated,
getToken: function () {
return e.accessToken
},
refreshToken: function () {
return r.post(e.tokenUrl, o({
grant_type: "client_credentials",
client_id: e.clientId,
client_secret: e.clientSecret,
redirect_uri: e.redirectUri,
scope: e.scope
}))
.then(function (t) {
var n = 1e3 * t.data.expires_in;
return e.accessToken = t.data.access_token, e.onAccessToken(e.accessToken, n), {
accessToken: e.accessToken,
expiresIn: n
}
})
}
}
}
}, function (t, e) {
t.exports = function (t, e) {
function n (t) {
return String(t)
.replace(u, encodeURIComponent)
.replace(/ /g, "+")
.replace(/[!'()~\*]/g, function (t) {
return "%" + t.charCodeAt()
.toString(16)
.slice(-2)
.toUpperCase()
})
}
function i (t) {
var n = Object.keys(t);
return e.sorted ? n.sort() : n
}
function r (t) {
return t.filter(function (t) {
return t
})
.join("&")
}
function o (t, e) {
return r(i(e)
.map(function (n) {
return s(t + "[" + n + "]", e[n])
}))
}
function a (t, e) {
return e.length ? r(e.map(function (e, n) {
return s(t + "[" + n + "]", e)
})) : n(t + "[]")
}
function s (t, i) {
var r = typeof i,
s = null;
return i === s ? s = e.ignorenull ? s : n(t) + "=" + s : /string|number|boolean/.test(r) ? s = n(t) + "=" + n(i) : Array.isArray(i) ? s = a(t, i) : "object" === r && (s = o(t, i)), s
}
var u = new RegExp(['(?:[\0-"-&+-}-퟿-￿]|', "[�-�][�-�]|[�-�](?![�-�])|", "(?:[^�-�]|^)[�-�])"].join(""), "g");
return e = "object" == typeof e ? e : {}, t && r(i(t)
.map(function (e) {
return s(e, t[e])
}))
}
}, function (t, e, n) {
var i = n(430),
r = n(314),
o = n(460),
a = n(454),
s = n(455),
u = n(458);
t.exports = function (t) {
var e = i({}, {
tokenUrl: a.OAUTH_TOKEN_URL,
clientId: void 0,
clientSecret: void 0,
refreshToken: void 0,
accessToken: void 0,
onAccessToken: u,
onRefreshToken: u,
onNotAuthenticated: u
}, t);
return s(e.clientId, "You must provide a clientId for refresh token flow"), s(e.clientSecret, "You must provide a clientSecret for refresh token flow"), s(e.refreshToken, "You must provide a refreshToken for refresh token flow"), {
authenticate: e.onNotAuthenticated,
getToken: function () {
return e.accessToken
},
refreshToken: function () {
return r.post(e.tokenUrl, o({
grant_type: "refresh_token",
client_id: e.clientId,
client_secret: e.clientSecret,
refresh_token: e.refreshToken
}))
.then(function (t) {
var n = 1e3 * t.data.expires_in;
return e.accessToken = t.data.access_token, e.refreshToken = t.data.refresh_token, e.onAccessToken(e.accessToken, n), e.onRefreshToken(e.refreshToken), {
refreshToken: e.refreshToken,
accessToken: e.accessToken,
expiresIn: n
}
})
}
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/alerts/v1",
headers: {
Accept: r.ALERT,
"Development-Token": t.devToken
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/alerts/v1",
headers: {
Accept: r.ALERT_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
acknowledgeAll: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/alerts/v1/actions/acknowledgeAll",
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(430),
r = n(428)
.MimeTypes;
t.exports = i(r, {
ALERT: "application/vnd.mendeley-alert+json",
ALERT_LIST: "application/vnd.mendeley-expanded-alert-list+json",
AUTHOR_PROFILE: "application/vnd.mendeley-author-profile.1+json",
BIBTEX: "application/x-bibtex",
COMMENT: "application/vnd.mendeley-comment+json",
COMMENT_UPDATE: "application/vnd.mendeley-comment-update+json",
COMMUNITY: "application/vnd.mendeley-community+json",
COMMUNITY_DOCUMENT_FILE: "application/vnd.mendeley-document-file+json",
COMMUNITY_DOCUMENT_LIST: "application/vnd.mendeley-community-document-list+json",
COMMUNITY_LIST: "application/vnd.mendeley-community-list+json",
COMMUNITY_MEMBER_LIST: "application/vnd.mendeley-community-member-list+json",
COMMUNITY_INVITATION_LIST: "application/vnd.mendeley-community-invitation-list+json",
CONTENT_TICKET: "application/vnd.mendeley-content-ticket.1+json",
EDITORSHIP: "application/vnd.mendeley-editorship.1+json",
EDITORSHIP_UPDATE: "application/vnd.mendeley-editorship-amendment.1+json",
EDUCATION: "application/vnd.mendeley-education.1+json",
EDUCATION_CUSTOM_INSTITUTION: "application/vnd.mendeley-education-custom-institution.1+json",
EDUCATION_UPDATE: "application/vnd.mendeley-education-amendment.1+json",
EMPLOYMENT: "application/vnd.mendeley-employment.1+json",
EMPLOYMENT_CUSTOM: "application/vnd.mendeley-employment-custom-institution.1+json",
EMPLOYMENT_UPDATE: "application/vnd.mendeley-employment-amendment.1+json",
ENDNOTE: "application/vnd.mendeley-endnote+xml",
EXPANDED_COMMENT_LIST: "application/vnd.mendeley-expanded-comment-list+json",
EXPANDED_LIKE_LIST: "application/vnd.mendeley-expanded-like-list+json",
EXTERNAL_APP_LINKS: "application/vnd.mendeley-new-external-application-link+json",
FEATURE: "application/vnd.mendeley-features.1+json",
FILE_CONTENT: "application/vnd.mendeley-file-content.1+json",
FOLLOWER_SUMMARY: "application/vnd.mendeley-follow-summary.1+json",
GROUP_CREATE: "application/vnd.mendeley-group+json",
GROUP_INVITATION: "application/vnd.mendeley-group-invitation+json",
GROUP_INVITATION_LIMIT: "application/vnd.mendeley-group-limits+json",
GROUP_INVITATION_RESPONSE_LIST: "application/vnd.mendeley-group-invitation-response-list+json",
GROUP_MEMBERSHIP: "application/vnd.mendeley-group-membership+json",
GROUP_USER_POST: "application/vnd.mendeley-group-user-post+json",
INSTITUTION_CONTRACT: "application/vnd.registered-institution-contract.1+json",
INSTITUTION_MEMBER: "application/vnd.registered-institution-member.1+json",
INSTITUTION_PRODUCT: "application/vnd.registered-institution-product.1+json",
JSON: "application/json",
JSON_PATCH: "application/json-patch+json",
LIBRARY_IMPORT_TASK: "application/vnd.mendeley-library-import-task+json",
LIBRARY_IMPORT_TASK_UPDATE: "application/vnd.mendeley-library-import-task-update+json",
MESSAGE: "application/vnd.mendeley-message.1+json",
MIGRATION_CONSENT: "application/vnd.mendeley-migration-consent+json",
NEW_EDITORSHIP: "application/vnd.mendeley-new-editorship.1+json",
NEW_EDUCATION: "application/vnd.mendeley-new-education.1+json",
NEW_EMPLOYMENT: "application/vnd.mendeley-new-employment.1+json",
NEW_PROFILE: "application/vnd.mendeley-new-profile.1+json",
NEW_USER_POST: "application/vnd.mendeley-new-user-post+json",
NEW_GROUP_USER_POST: "application/vnd.mendeley-new-group-user-post+json",
NEWS_ITEM_LIST: "application/vnd.mendeley-news-item-list+json",
NEWS_ITEMS_SHARE: "application/vnd.mendeley-news-items-share+json",
NEWS_ITEMS_SHARE_DOCUMENT: "application/vnd.mendeley-news-items-share-document+json",
NEWS_SHARER_LIST: "application/vnd.mendeley-news-sharer-list+json",
NONE: "application/none",
NULL: "",
ORCID_IMPORT: "application/vnd.mendeley-orcid-profile+xml",
PEOPLE_RECOMMENDATION: "application/vnd.mendeley-people-rec.1+json",
PLAIN_DOCUMENT: "application/vnd.mendeley-plain-document.1+json",
PROFILE_MIGRATION: "application/vnd.mendeley-profiles-migration.1+json",
PROFILE_SETTINGS: "application/vnd.mendeley-profile-settings+json",
RECENTLY_READ: "application/vnd.mendeley-recently-read.1+json",
RECOMMENDATION_FEEDBACK: "application/vnd.mendeley-rec-feedback.1+json",
RECOMMENDATION_TRACE: "application/vnd.mendeley-recommendation-trace.1+json",
REGISTERED_INSTITUTION: "application/vnd.registered-institution.1+json",
RIS: "application/vnd.mendeley-ris",
SIGN_IN_REQUEST: "application/vnd.mendeley-signin-request.1+json",
SIGN_IN_RESPONSE: "application/vnd.mendeley-signin-response.1+json",
SCOPUS_IMPORT: "application/vnd.mendeley-scopus-import+json",
SUBJECT_AREA: "application/vnd.mendeley-subject-area.1+json",
USER_POST: "application/vnd.mendeley-user-post+json"
})
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/application_features",
headers: {
Accept: r.FEATURE,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
isOn: function (t) {
return this.list()
.then(function (e) {
return e.items.some(function (e) {
return e.name === t
})
})
.catch(function () {
return !1
})
}
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/comments/v1",
headers: {
Accept: r.EXPANDED_COMMENT_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/comments/v1",
headers: {
Accept: r.COMMENT,
"Content-Type": r.COMMENT,
"Development-Token": t.devToken
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/comments/v1/{id}",
args: ["id"],
headers: {
Accept: r.COMMENT_UPDATE,
"Content-Type": r.COMMENT_UPDATE,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/comments/v1/{id}",
args: ["id"],
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/{id}",
args: ["id"],
headers: {
Accept: r.COMMUNITY,
"Development-Token": t.devToken
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1",
args: [],
headers: {
Accept: r.COMMUNITY_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
popular: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/popular",
args: [],
headers: {
Accept: r.COMMUNITY_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
members: {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/{id}/members",
args: ["id"],
headers: {
Accept: r.COMMUNITY_MEMBER_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
})
},
invitations: {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/invitations",
args: [],
headers: {
Accept: r.COMMUNITY_INVITATION_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
})
},
documents: {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/{id}/documents",
args: ["id"],
headers: {
Accept: r.COMMUNITY_DOCUMENT_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
file: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/communities/v1/document/{documentId}/file/{fileId}",
args: ["documentId", "fileId"],
headers: {
Accept: r.COMMUNITY_DOCUMENT_FILE,
"Development-Token": t.devToken
}
})
}
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/education",
headers: {
Accept: r.EDUCATION,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/education/{id}",
args: ["id"],
headers: {
Accept: r.EDUCATION,
"Development-Token": t.devToken
}
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/education",
headers: {
"Content-Type": r.NEW_EDUCATION,
Accept: r.EDUCATION,
"Development-Token": t.devToken
}
}),
createCustom: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/education",
headers: {
"Content-Type": r.EDUCATION_CUSTOM_INSTITUTION,
Accept: r.EDUCATION,
"Development-Token": t.devToken
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/education/{id}",
args: ["id"],
headers: {
"Content-Type": r.EDUCATION_UPDATE,
Accept: r.EDUCATION,
"Development-Token": t.devToken
}
}),
updateCustom: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/education/{id}",
args: ["id"],
headers: {
"Content-Type": r.EDUCATION_CUSTOM_INSTITUTION,
Accept: r.EDUCATION,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/education/{id}",
args: ["id"],
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/employment",
headers: {
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/employment/{id}",
args: ["id"],
headers: {
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
}
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/employment",
headers: {
"Content-Type": r.NEW_EMPLOYMENT,
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
}
}),
createCustom: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/employment",
headers: {
"Content-Type": r.EMPLOYMENT_CUSTOM,
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/employment/{id}",
args: ["id"],
headers: {
"Content-Type": r.EMPLOYMENT_UPDATE,
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
}
}),
updateCustom: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/employment/{id}",
args: ["id"],
headers: {
"Content-Type": r.EMPLOYMENT_CUSTOM,
Accept: r.EMPLOYMENT,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/employment/{id}",
args: ["id"],
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/editorship",
headers: {
Accept: r.EDITORSHIP,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/editorship/{id}",
args: ["id"],
headers: {
Accept: r.EDITORSHIP,
"Development-Token": t.devToken
}
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/editorship",
headers: {
"Content-Type": r.NEW_EDITORSHIP,
Accept: r.EDITORSHIP,
"Development-Token": t.devToken
}
}),
update: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/editorship/{id}",
args: ["id"],
headers: {
"Content-Type": r.EDITORSHIP_UPDATE,
Accept: r.EDITORSHIP,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/editorship/{id}",
args: ["id"],
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
emit: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/events",
headers: {
"Content-Type": r.JSON,
"Development-Token": t.devToken
}
}),
batch: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/events/_batch",
headers: {
"Content-Type": r.JSON,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
create: i.requestWithFileFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/file_content",
headers: {
Accept: r.CONTENT_TICKET,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
convert: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/ids/{id}",
args: ["id"],
headers: {
Accept: r.JSON,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/news_items/v1/{id}/likers",
args: ["id"],
headers: {
Accept: r.EXPANDED_LIKE_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/news_items/v1/{id}/likers",
args: ["id"],
headers: {
"Content-Type": r.NULL,
Accept: r.NULL,
"Development-Token": t.devToken
}
}),
delete: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/news_items/v1/{id}/likers/me",
args: ["id"],
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
send: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/messages",
headers: {
"Content-Type": r.MESSAGE,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
lookup: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/metadata/{identifier}",
args: ["identifier"],
headers: {
Accept: r.PLAIN_DOCUMENT,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
shareNewsItem: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/news_items/v1/actions/share",
headers: {
"Content-Type": r.NEWS_ITEMS_SHARE,
"Development-Token": t.devToken
}
}),
shareDocument: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/news_items/v1/actions/share",
headers: {
"Content-Type": r.NEWS_ITEMS_SHARE_DOCUMENT,
"Development-Token": t.devToken
}
}),
listOfSharers: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/news_items/v1/{id}/sharers",
args: ["id"],
headers: {
Accept: r.NEWS_SHARER_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/news_items/v2",
headers: {
Accept: r.NEWS_ITEM_LIST,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
postStatus: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/user_posts/v1",
headers: {
"Content-Type": r.NEW_USER_POST,
Accept: r.USER_POST,
"Development-Token": t.devToken
}
}),
postGroupStatus: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/group_user_posts/v1",
headers: {
"Content-Type": r.NEW_GROUP_USER_POST,
Accept: r.GROUP_USER_POST,
"Development-Token": t.devToken
}
}),
deleteStatus: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/user_posts/v1/{id}",
args: ["id"],
headers: {
"Content-Type": r.NULL,
Accept: r.NULL,
"Development-Token": t.devToken
}
}),
deleteGroupStatus: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/group_user_posts/v1/{id}",
args: ["id"],
headers: {
"Content-Type": r.NULL,
Accept: r.NULL,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432);
t.exports = function (t) {
return {
me: i.requestWithFileFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/photos/me",
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/recently_read",
headers: {
Accept: r.RECENTLY_READ,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/recently_read",
headers: {
"Content-Type": r.RECENTLY_READ,
Accept: r.RECENTLY_READ,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/recently_read",
headers: {
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
people: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/recommendations/people/{recommender}",
args: ["recommender"],
headers: {
Accept: r.PEOPLE_RECOMMENDATION,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
peopleFeedback: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/recommendations/people/action/feedback",
headers: {
"Content-Type": r.RECOMMENDATION_FEEDBACK,
"Development-Token": t.devToken
}
}),
documentFeedback: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/recommendations/action/feedback",
headers: {
"Content-Type": r.RECOMMENDATION_FEEDBACK,
"Development-Token": t.devToken
}
}),
trace: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/recommendations/trace",
headers: {
"Content-Type": r.RECOMMENDATION_TRACE,
Accept: r.RECOMMENDATION_TRACE,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/registered_institution_contracts",
headers: {
"Content-Type": r.INSTITUTION_CONTRACT,
Accept: r.INSTITUTION_CONTRACT,
"Development-Token": t.devToken
}
}),
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_contracts",
headers: {
Accept: r.INSTITUTION_CONTRACT,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_contracts/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_CONTRACT,
"Development-Token": t.devToken
}
}),
modify: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/registered_institution_contracts/{id}",
args: ["id"],
headers: {
"Content-Type": r.JSON_PATCH,
Accept: r.INSTITUTION_CONTRACT,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/registered_institution_contracts/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_CONTRACT,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_members",
headers: {
Accept: r.INSTITUTION_MEMBER,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/registered_institution_members",
headers: {
"Content-Type": r.INSTITUTION_MEMBER,
Accept: r.INSTITUTION_MEMBER,
"Development-Token": t.devToken
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_members/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_MEMBER,
"Development-Token": t.devToken
}
}),
modify: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/registered_institution_members/{id}",
args: ["id"],
headers: {
"Content-Type": r.JSON_PATCH,
Accept: r.INSTITUTION_MEMBER,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/registered_institution_members/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_MEMBER,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_products",
headers: {
Accept: r.INSTITUTION_PRODUCT,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/registered_institution_products",
headers: {
"Content-Type": r.INSTITUTION_PRODUCT,
Accept: r.INSTITUTION_PRODUCT,
"Development-Token": t.devToken
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institution_products/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_PRODUCT,
"Development-Token": t.devToken
}
}),
modify: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/registered_institution_products/{id}",
args: ["id"],
headers: {
"Content-Type": r.JSON_PATCH,
Accept: r.INSTITUTION_PRODUCT,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/registered_institution_products/{id}",
args: ["id"],
headers: {
Accept: r.INSTITUTION_PRODUCT,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
list: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institutions",
headers: {
Accept: r.REGISTERED_INSTITUTION,
"Development-Token": t.devToken
},
responseFilter: i.paginationFilter
}),
create: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/registered_institutions",
headers: {
"Content-Type": r.REGISTERED_INSTITUTION,
Accept: r.REGISTERED_INSTITUTION,
"Development-Token": t.devToken
}
}),
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/registered_institutions/{id}",
args: ["id"],
headers: {
Accept: r.REGISTERED_INSTITUTION,
"Development-Token": t.devToken
}
}),
modify: i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "PATCH",
resource: "/registered_institutions/{id}",
args: ["id"],
headers: {
"Content-Type": r.JSON_PATCH,
Accept: r.REGISTERED_INSTITUTION,
"Development-Token": t.devToken
}
}),
delete: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "DELETE",
resource: "/registered_institutions/{id}",
args: ["id"],
headers: {
Accept: r.REGISTERED_INSTITUTION,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return i.requestWithDataFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "POST",
resource: "/signin",
headers: {
Accept: r.SIGN_IN_RESPONSE,
"Content-Type": r.SIGN_IN_REQUEST
}
})
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
retrieveArticleAuthors: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/scopus/article_authors/{eid}",
args: ["eid"],
headers: {
Accept: r.JSON,
"Development-Token": t.devToken
}
}),
retrieveScopusAuthorSuggestions: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/scopus/suggestions/me?threshold={threshold}",
args: ["threshold"],
headers: {
Accept: r.JSON,
"Development-Token": t.devToken
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t) {
return {
retrieve: i.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: "/subject_areas",
headers: {
Accept: r.SUBJECT_AREA
}
})
}
}
}, function (t, e, n) {
var i = n(432),
r = n(488),
o = n(463);
t.exports = function (t, e) {
var n = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/documents",
headers: {
Accept: o.DOCUMENT,
"Development-Token": e.devToken
},
responseFilter: i.paginationFilter
}),
a = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/macro/folder_documents",
headers: {
Accept: o.DOCUMENT,
"Development-Token": e.devToken
},
responseFilter: i.paginationFilter
});
t.cloneFiles = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
responseFilter: function (t, e) {
return {
status: e.status
}
},
method: "POST",
resource: "/documents/{id}/actions/cloneFilesTo",
args: ["id"],
headers: {
"Content-Type": o.DOCUMENT,
Accept: o.JSON,
"Development-Token": e.devToken
},
followLocation: !0
}), t.importFromEndNote = i.requestWithFileFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
responseFilter: function (t, e) {
return {
location: e.headers.WB_wombat_self_location
}
},
method: "POST",
resource: "/documents/v1/tasks/library_import",
headers: {
"Content-Type": o.ENDNOTE,
"Development-Token": e.devToken
}
}), t.importFromRis = i.requestWithFileFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
responseFilter: function (t, e) {
return {
location: e.headers.WB_wombat_self_location
}
},
method: "POST",
resource: "/documents/v1/tasks/library_import",
headers: {
"Content-Type": o.RIS,
"Development-Token": e.devToken
}
}), t.importFromBibtex = i.requestWithFileFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
responseFilter: function (t, e) {
return {
location: e.headers.WB_wombat_self_location
}
},
method: "POST",
resource: "/documents/v1/tasks/library_import",
headers: {
"Content-Type": o.BIBTEX,
"Development-Token": e.devToken
}
}), t.importFromScopus = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/documents/v1/tasks/library_import",
headers: {
"Content-Type": o.SCOPUS_IMPORT,
"Development-Token": e.devToken
},
responseFilter: function (t, e) {
return e.headers
}
}), t.importFromOrcid = i.requestWithFileFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/documents/v1/tasks/library_import",
headers: {
"Content-Type": o.ORCID_IMPORT,
"Development-Token": e.devToken
},
responseFilter: function (t, e) {
return e.headers
}
}), t.getImportStatus = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/documents/v1/tasks/library_import/{id}",
args: ["id"],
headers: {
Accept: o.LIBRARY_IMPORT_TASK,
"Development-Token": e.devToken
}
});
var s = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "PATCH",
resource: "/documents/v1/tasks/library_import/{id}",
args: ["id"],
headers: {
"Content-Type": o.LIBRARY_IMPORT_TASK_UPDATE,
"Development-Token": e.devToken
}
});
t.cancelImport = function (t) {
return s.call(this, t, {
status: "cancelled"
})
}, t.pollImportStatusUntilComplete = function (t) {
return r.resolveTaskPromiseAndPoll({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
requestPromise: t,
pollHeaders: {
Accept: o.LIBRARY_IMPORT_TASK,
"Development-Token": e.devToken
},
pollingInterval: 2e3,
stoppingCondition: function (t) {
return !("in_progress" === t.status || "cancelling" === t.status)
}
})
}, t.list = function (t) {
var e = t && "undefined" != typeof t.folder_id ? a : n;
return e.call(this, t)
}
}
}, function (t, e, n) {
function i (t, e) {
return e.headers
}
function r (t) {
return function () {
return t.responseFilter = i, u.requestWithDataFun(t)
.apply(this, arguments)
.then(function (e) {
if (!e || !e.WB_wombat_self_location) throw new Error("No WB_wombat_self_location header");
var n = s(e.WB_wombat_self_location);
return a({
pollRequestFun: u.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: n
}),
stoppingCondition: t.stoppingCondition,
pollingInterval: t.pollingInterval
})
})
}
}
function o (t) {
return t.requestPromise.then(function (e) {
return t.pollRequestFun = u.requestFun({
authFlow: t.authFlow,
baseUrl: t.baseUrl,
method: "GET",
resource: s(e.WB_wombat_self_location),
headers: t.pollHeaders
}), a(t)
})
}
function a (t) {
var e = function (e) {
return t.stoppingCondition(e) ? l.resolve() : l.delay(t.pollingInterval)
.then(function () {
return a(t)
})
};
return t.pollRequestFun()
.then(e)
}
function s (t) {
var e = c(t);
return e.pathname + e.query + e.hash
}
var u = n(432),
l = n(294),
c = n(489);
t.exports = {
requestWithDataAndPollFun: r,
resolveTaskPromiseAndPoll: o
}
}, function (t, e, n) {
function i (t) {
var e = l.exec(t);
return {
protocol: e[1] ? e[1].toLowerCase() : "",
slashes: !!e[2],
rest: e[3]
}
}
function r (t, e) {
for (var n = (e || "/")
.split("/")
.slice(0, -1)
.concat(t.split("/")), i = n.length, r = n[i - 1], o = !1, a = 0; i--;) "." === n[i] ? n.splice(i, 1) : ".." === n[i] ? (n.splice(i, 1), a++) : a && (0 === i && (o = !0), n.splice(i, 1), a--);
return o && n.unshift(""), "." !== r && ".." !== r || n.push(""), n.join("/")
}
function o (t, e, n) {
if (!(this instanceof o)) return new o(t, e, n);
var l, d, p, h, f, m, _ = c.slice(),
b = typeof e,
v = this,
g = 0;
for ("object" !== b && "string" !== b && (n = e, e = null), n && "function" != typeof n && (n = u.parse), e = s(e), d = i(t || ""), l = !d.protocol && !d.slashes, v.slashes = d.slashes || l && e.slashes, v.protocol = d.protocol || e.protocol || "", t = d.rest, d.slashes || (_[2] = [/(.*)/, "pathname"]); g < _.length; g++) h = _[g], p = h[0], m = h[1], p !== p ? v[m] = t : "string" == typeof p ? ~(f = t.indexOf(p)) && ("number" == typeof h[2] ? (v[m] = t.slice(0, f), t = t.slice(f + h[2])) : (v[m] = t.slice(f), t = t.slice(0, f))) : (f = p.exec(t)) && (v[m] = f[1], t = t.slice(0, f.index)), v[m] = v[m] || (l && h[3] ? e[m] || "" : ""), h[4] && (v[m] = v[m].toLowerCase());
n && (v.query = n(v.query)), l && e.slashes && "/" !== v.pathname.charAt(0) && ("" !== v.pathname || "" !== e.pathname) && (v.pathname = r(v.pathname, e.pathname)), a(v.port, v.protocol) || (v.host = v.hostname, v.port = ""), v.username = v.password = "", v.auth && (h = v.auth.split(":"), v.username = h[0] || "", v.password = h[1] || ""), v.origin = v.protocol && v.host && "file:" !== v.protocol ? v.protocol + "//" + v.host : "null", v.href = v.toString()
}
var a = n(490),
s = n(491),
u = n(492),
l = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,
c = [
["#", "hash"],
["?", "query"],
["/", "pathname"],
["@", "auth", 1],
[NaN, "host", void 0, 1, 1],
[/:(\d+)$/, "port", void 0, 1],
[NaN, "hostname", void 0, 1, 1]
];
o.prototype.set = function (t, e, n) {
var i = this;
switch (t) {
case "query":
"string" == typeof e && e.length && (e = (n || u.parse)(e)), i[t] = e;
break;
case "port":
i[t] = e, a(e, i.protocol) ? e && (i.host = i.hostname + ":" + e) : (i.host = i.hostname, i[t] = "");
break;
case "hostname":
i[t] = e, i.port && (e += ":" + i.port), i.host = e;
break;
case "host":
i[t] = e, /:\d+$/.test(e) ? (e = e.split(":"), i.port = e.pop(), i.hostname = e.join(":")) : (i.hostname = e, i.port = "");
break;
case "protocol":
i.protocol = e.toLowerCase(), i.slashes = !n;
break;
case "pathname":
i.pathname = e.length && "/" !== e.charAt(0) ? "/" + e : e;
break;
default:
i[t] = e
}
for (var r = 0; r < c.length; r++) {
var o = c[r];
o[4] && (i[o[1]] = i[o[1]].toLowerCase())
}
return i.origin = i.protocol && i.host && "file:" !== i.protocol ? i.protocol + "//" + i.host : "null", i.href = i.toString(), i
}, o.prototype.toString = function (t) {
t && "function" == typeof t || (t = u.stringify);
var e, n = this,
i = n.protocol;
i && ":" !== i.charAt(i.length - 1) && (i += ":");
var r = i + (n.slashes ? "//" : "");
return n.username && (r += n.username, n.password && (r += ":" + n.password), r += "@"), r += n.host + n.pathname, e = "object" == typeof n.query ? t(n.query) : n.query, e && (r += "?" !== e.charAt(0) ? "?" + e : e), n.hash && (r += n.hash), r
}, o.extractProtocol = i, o.WB_wombat_self_location = s, o.qs = u, t.exports = o
}, function (t, e) {
t.exports = function (t, e) {
if (e = e.split(":")[0], t = +t, !t) return !1;
switch (e) {
case "http":
case "ws":
return 80 !== t;
case "https":
case "wss":
return 443 !== t;
case "ftp":
return 21 !== t;
case "gopher":
return 70 !== t;
case "file":
return !1
}
return 0 !== t
}
}, function (t, e, n) {
(function (e) {
var i, r = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
o = {
hash: 1,
query: 1
};
t.exports = function (t) {
t = t || e.WB_wombat_self_location || {}, i = i || n(489);
var a, s = {},
u = typeof t;
if ("blob:" === t.protocol) s = new i(unescape(t.pathname), {});
else if ("string" === u) {
s = new i(t, {});
for (a in o) delete s[a]
} else if ("object" === u) {
for (a in t) a in o || (s[a] = t[a]);
void 0 === s.slashes && (s.slashes = r.test(t.href))
}
return s
}
})
.call(e, function () {
return this
}())
}, function (t, e) {
function n (t) {
for (var e, n = /([^=?&]+)=?([^&]*)/g, i = {}; e = n.exec(t); i[decodeURIComponent(e[1])] = decodeURIComponent(e[2]));
return i
}
function i (t, e) {
e = e || "";
var n = [];
"string" != typeof e && (e = "?");
for (var i in t) r.call(t, i) && n.push(encodeURIComponent(i) + "=" + encodeURIComponent(t[i]));
return n.length ? e + n.join("&") : ""
}
var r = Object.prototype.hasOwnProperty;
e.stringify = i, e.parse = n
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t, e) {
t.profiles = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/macro/follower_summaries",
headers: {
Accept: r.FOLLOWER_SUMMARY,
"Development-Token": e.devToken
},
responseFilter: i.paginationFilter
})
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t, e) {
t.invitations = {
create: i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2/{groupId}/invitations",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.GROUP_INVITATION,
Accept: r.GROUP_INVITATION_RESPONSE_LIST
}
}),
accept: i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2/{groupId}/actions/accept_invitation",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NONE,
Accept: r.NONE
}
}),
decline: i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2/{groupId}/actions/decline_invitation",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NONE,
Accept: r.NONE
}
}),
limits: i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/groups/v2/{groupId}/limits",
args: ["groupId"],
headers: {
Accept: r.GROUP_INVITATION_LIMIT,
"Development-Token": e.devToken
}
})
}, t.create = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2",
headers: {
"Development-Token": e.devToken,
"Content-Type": r.GROUP_CREATE,
Accept: r.GROUP_CREATE
}
}), t.join = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2/{groupId}/members",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NONE,
Accept: r.NONE
}
}), t.follow = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/groups/v2/{groupId}/followers",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NONE,
Accept: r.NONE
}
}), t.unfollow = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "DELETE",
resource: "/groups/v2/{groupId}/followers",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NULL,
Accept: r.NONE
}
}), t.deleteAll = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "DELETE",
resource: "/groups/v2",
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NULL,
Accept: r.NONE
}
}), t.delete = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "DELETE",
resource: "/groups/v2/{groupId}",
args: ["groupId"],
headers: {
"Development-Token": e.devToken,
"Content-Type": r.NULL,
Accept: r.NONE
}
})
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t, e) {
t.extractMetadataFromFile = i.requestWithFileFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/metadata/action/extract",
headers: {
Accept: r.DOCUMENT,
"Development-Token": e.devToken
}
}), t.extractMetadataFromTicket = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/metadata/action/extract_from_ticket",
headers: {
"Content-Type": r.FILE_CONTENT,
Accept: r.DOCUMENT,
"Development-Token": e.devToken
}
})
}
}, function (t, e, n) {
var i = n(432),
r = n(463);
t.exports = function (t, e) {
t.create = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/profiles",
headers: {
"Content-Type": r.NEW_PROFILE,
"Development-Token": e.devToken
}
}), t.claimByAuthor = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/profiles/me/author_profiles",
headers: {
"Content-Type": r.AUTHOR_PROFILE,
"Development-Token": e.devToken
}
}), t.retrieveAuthorClaims = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/profiles/me/author_profiles",
headers: {
Accept: r.AUTHOR_PROFILE,
"Development-Token": e.devToken
}
}), t.revokeAuthorClaim = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "DELETE",
resource: "/profiles/me/author_profiles/{authorId}",
args: ["authorId"],
headers: {
"Content-Type": r.NULL,
"Development-Token": e.devToken
}
}), t.retrieveAuthorProfilesById = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/profiles/{id}/author_profiles",
args: ["id"],
headers: {
Accept: r.AUTHOR_PROFILE,
"Development-Token": e.devToken
}
}), t.retrieveMigrationConsents = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/profiles/v1/me/privacy_settings_migration_consents",
headers: {
Accept: r.MIGRATION_CONSENT,
"Development-Token": e.devToken
}
}), t.retrieveMigratable = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/profiles/me/migratable",
headers: {
Accept: r.PROFILE_MIGRATION,
"Development-Token": e.devToken
}
}), t.retrieveSettings = i.requestFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "GET",
resource: "/profiles/v1/me/settings",
headers: {
Accept: r.PROFILE_SETTINGS,
"Development-Token": e.devToken
}
}), t.updateSettings = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "PATCH",
resource: "/profiles/v1/me/settings",
headers: {
"Content-Type": r.PROFILE_SETTINGS,
Accept: r.PROFILE_SETTINGS,
"Development-Token": e.devToken
}
}), t.createExternalApplicationLink = i.requestWithDataFun({
authFlow: e.authFlow,
baseUrl: e.baseUrl,
method: "POST",
resource: "/profiles/v1/me/external_application_links",
headers: {
"Content-Type": r.EXTERNAL_APP_LINKS,
"Development-Token": e.devToken
}
})
}
}, function (t, e, n) {
var i = n(430),
r = n(428)
.Auth,
o = {
mssoFlow: n(498)
};
t.exports = i(r, o)
}, function (t, e, n) {
var i = n(430),
r = n(314),
o = (n(294), n(460)),
a = n(458),
s = n(455);
t.exports = function (t) {
var e = i({}, {
tokenUrl: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/api.mendeley.com/oauth/token",
clientId: void 0,
clientSecret: void 0,
msso: void 0,
accessToken: void 0,
scope: "all",
onAccessToken: a,
onNotAuthenticated: a
}, t || {});
return s(e.clientId, "You must provide a clientId for msso flow"), s(e.clientSecret, "You must provide a clientSecret for msso flow"), s(e.tokenUrl, "You must provide a tokenUrl for msso flow"), s(e.msso, "You must provide a msso token for msso flow"), {
authenticate: e.onNotAuthenticated,
getToken: function () {
return e.accessToken
},
refreshToken: function () {
return r.post(e.tokenUrl, o({
grant_type: "msso",
msso: encodeURIComponent(e.msso),
client_id: e.clientId,
client_secret: e.clientSecret,
scope: e.scope
}))
.then(function (t) {
var n = 1e3 * t.data.expires_in;
return e.accessToken = t.data.access_token, e.onAccessToken(e.accessToken, n), {
accessToken: e.accessToken,
expiresIn: n
}
})
}
}
}
}, function (t, e) {
t.exports = jQuery
}, function (t, e, n) {
var i, r;
/**
* jQuery serializeObject
* @copyright 2014, macek <paulmacek@gmail.com>
* @link https://github.com/macek/jquery-serialize-object
* @license BSD
* @version 2.5.0
*/
!function (o, a) {
i = [e, n(499)], r = function (t, e) {
return a(t, e)
}.apply(e, i), !(void 0 !== r && (t.exports = r))
}(this, function (t, e) {
function n (t, n) {
function r (t, e, n) {
return t[e] = n, t
}
function o (t, e) {
for (var n, o = t.match(i.key); void 0 !== (n = o.pop());)
if (i.push.test(n)) {
var s = a(t.replace(/\[\]$/, ""));
e = r([], s, e)
} else i.fixed.test(n) ? e = r([], n, e) : i.named.test(n) && (e = r({}, n, e));
return e
}
function a (t) {
return void 0 === h[t] && (h[t] = 0), h[t]++
}
function s (t) {
switch (e('[name="' + t.name + '"]', n)
.attr("type")) {
case "checkbox":
return "on" === t.value || t.value;
default:
return t.value
}
}
function u (e) {
if (!i.validate.test(e.name)) return this;
var n = o(e.name, s(e));
return p = t.extend(!0, p, n), this
}
function l (e) {
if (!t.isArray(e)) throw new Error("formSerializer.addPairs expects an Array");
for (var n = 0, i = e.length; n < i; n++) this.addPair(e[n]);
return this
}
function c () {
return p
}
function d () {
return JSON.stringify(c())
}
var p = {},
h = {};
this.addPair = u, this.addPairs = l, this.serialize = c, this.serializeJSON = d
}
var i = {
validate: /^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,
key: /[a-z0-9_]+|(?=\[\])/gi,
push: /^$/,
fixed: /^\d+$/,
named: /^[a-z0-9_]+$/i
};
return n.patterns = i, n.serializeObject = function () {
return new n(e, this)
.addPairs(this.serializeArray())
.serialize()
}, n.serializeJSON = function () {
return new n(e, this)
.addPairs(this.serializeArray())
.serializeJSON()
}, "undefined" != typeof e.fn && (e.fn.serializeObject = n.serializeObject, e.fn.serializeJSON = n.serializeJSON), t.FormSerializer = n, n
})
}, function (t, e) {
!function (t) {
function e () {
var e = t("html, body");
t(this)
.on("click", n.handler, function (i) {
i.preventDefault(), t(this)
.blur();
var r = t(this)
.attr("href"),
o = t(r)
.offset()
.top;
e.animate({
scrollTop: o
}, n.speed)
.promise()
.done(function () {
var e = t(i.currentTarget)
.data();
t(document)
.trigger("ui:scroll:finished." + e.type, e)
})
})
}
var n = {
handler: ".js-scroll",
speed: 500
};
t.fn.scrollTo = function () {
return e.call(this), this
}
}(jQuery)
}, function (t, e, n) {
function i () {
this.attributes({
api: !1,
currentUser: null
}), this.after("initialize", function () {
this.set = o.bind(this), t.exports.get = this.get = r.bind(this), this.on(document, "data:profile:update.success", a()), this.on(document, "data:photo:upload.success", a("photos")), this.on(document, "data:interests:update.success", a("research_interests_list")), this.on(document, "data:education:upsert.success", s("education")), this.on(document, "data:education:delete.success", u("education")), this.on(document, "data:employment:upsert.success", s("employment")), this.on(document, "data:employment:delete.success", u("employment")), this.on(document, "data:editorships:upsert.success", s("editorships")), this.on(document, "data:editorships:delete.success", u("editorships")), this.on(document, "page:components.loaded", function () {
this.trigger("store:profile:change")
})
})
}
function r () {
return d(this.attr.currentUser)
}
function o (t, e) {
"string" == typeof t ? this.attr.currentUser[t] = e : this.attr.currentUser = t, this.trigger("store:profile:change")
}
function a (t) {
return function (e, n) {
t ? this.set(t, n[t]) : this.set(n), this.trigger("data:tracking:profile.updated")
}
}
function s (t) {
return function (e, n) {
var i = this.get()[t] || [],
r = h(i, {
id: n.id
});
i[0 <= r ? r : i.length] = n, this.set(t, i), this.trigger("data:tracking:profile.updated")
}
}
function u (t) {
return function (e, n) {
this.set(t, p(this.get()[t], {
id: n.id
})), this.trigger("data:tracking:profile.updated")
}
}
var l = n(305),
c = n(503),
d = n(504),
p = n(512),
h = n(515);
t.exports = l.component(i, c)
}, function (t, e) {
function n () {
this.attributes({
auth: {
currentUserId: !1,
flow: !1
}
}), this.getCurrentUserId = function () {
return this.attr.auth.currentUserId
}, this.isLoggedIn = function () {
return Boolean(this.attr.auth.currentUserId)
},
this.requireLogin = function (t) {
return function () {
return this.isLoggedIn() ? t.apply(this, Array.prototype.slice.call(arguments)) :
(this.trigger("data:authentication.required"), this.attr.auth.flow.authenticate(), !1)
}
}
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
return "function" == typeof e ? r(t, !0, o(e, n, 3)) : r(t, !0)
}
var r = n(505),
o = n(388);
t.exports = i
}, function (t, e, n) {
function i (t, e, n, f, m, _, b) {
var g;
if (n && (g = m ? n(t, f, m) : n(t)), void 0 !== g) return g;
if (!p(t)) return t;
var y = d(t);
if (y) {
if (g = u(t), !e) return r(t, g)
} else {
var M = N.call(t),
T = M == v;
if (M != w && M != h && (!T || m)) return O[M] ? l(t, M, e) : m ? t : {};
if (g = c(T ? {} : t), !e) return a(g, t)
}
_ || (_ = []), b || (b = []);
for (var k = _.length; k--;)
if (_[k] == t) return b[k];
return _.push(t), b.push(g), (y ? o : s)(t, function (r, o) {
g[o] = i(r, e, n, o, t, _, b)
}), g
}
var r = n(506),
o = n(507),
a = n(418),
s = n(394),
u = n(508),
l = n(509),
c = n(511),
d = n(373),
p = n(365),
h = "[object Arguments]",
f = "[object Array]",
m = "[object Boolean]",
_ = "[object Date]",
b = "[object Error]",
v = "[object Function]",
g = "[object Map]",
y = "[object Number]",
w = "[object Object]",
M = "[object RegExp]",
T = "[object Set]",
k = "[object String]",
S = "[object WeakMap]",
L = "[object ArrayBuffer]",
x = "[object Float32Array]",
D = "[object Float64Array]",
E = "[object Int8Array]",
Y = "[object Int16Array]",
C = "[object Int32Array]",
P = "[object Uint8Array]",
j = "[object Uint8ClampedArray]",
A = "[object Uint16Array]",
F = "[object Uint32Array]",
O = {};
O[h] = O[f] = O[L] = O[m] = O[_] = O[x] = O[D] = O[E] = O[Y] = O[C] = O[y] = O[w] = O[M] = O[k] = O[P] = O[j] = O[A] = O[F] = !0, O[b] = O[v] = O[g] = O[T] = O[S] = !1;
var I = Object.prototype,
N = I.toString;
t.exports = i
}, function (t, e) {
function n (t, e) {
var n = -1,
i = t.length;
for (e || (e = Array(i)); ++n < i;) e[n] = t[n];
return e
}
t.exports = n
}, function (t, e) {
function n (t, e) {
for (var n = -1, i = t.length; ++n < i && e(t[n], n, t) !== !1;);
return t
}
t.exports = n
}, function (t, e) {
function n (t) {
var e = t.length,
n = new t.constructor(e);
return e && "string" == typeof t[0] && r.call(t, "index") && (n.index = t.index, n.input = t.input), n
}
var i = Object.prototype,
r = i.hasOwnProperty;
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
var i = t.constructor;
switch (e) {
case c:
return r(t);
case o:
case a:
return new i(+t);
case d:
case p:
case h:
case f:
case m:
case _:
case b:
case v:
case g:
var w = t.buffer;
return new i(n ? r(w) : w, t.byteOffset, t.length);
case s:
case l:
return new i(t);
case u:
var M = new i(t.source, y.exec(t));
M.lastIndex = t.lastIndex
}
return M
}
var r = n(510),
o = "[object Boolean]",
a = "[object Date]",
s = "[object Number]",
u = "[object RegExp]",
l = "[object String]",
c = "[object ArrayBuffer]",
d = "[object Float32Array]",
p = "[object Float64Array]",
h = "[object Int8Array]",
f = "[object Int16Array]",
m = "[object Int32Array]",
_ = "[object Uint8Array]",
b = "[object Uint8ClampedArray]",
v = "[object Uint16Array]",
g = "[object Uint32Array]",
y = /\w*$/;
t.exports = i
}, function (t, e) {
(function (e) {
function n (t) {
var e = new i(t.byteLength),
n = new r(e);
return n.set(new r(t)), e
}
var i = e.ArrayBuffer,
r = e.Uint8Array;
t.exports = n
})
.call(e, function () {
return this
}())
}, function (t, e) {
function n (t) {
var e = t.constructor;
return "function" == typeof e && e instanceof e || (e = Object), new e
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
var i = s(t) ? r : a;
return e = o(e, n, 3), i(t, function (t, n, i) {
return !e(t, n, i)
})
}
var r = n(513),
o = n(352),
a = n(514),
s = n(373);
t.exports = i
}, function (t, e) {
function n (t, e) {
for (var n = -1, i = t.length, r = -1, o = []; ++n < i;) {
var a = t[n];
e(a, n, t) && (o[++r] = a)
}
return o
}
t.exports = n
}, function (t, e, n) {
function i (t, e) {
var n = [];
return r(t, function (t, i, r) {
e(t, i, r) && n.push(t)
}), n
}
var r = n(393);
t.exports = i
}, function (t, e, n) {
var i = n(516),
r = i();
t.exports = r
}, function (t, e, n) {
function i (t) {
return function (e, n, i) {
return e && e.length ? (n = r(n, i, 3), o(e, n, t)) : -1
}
}
var r = n(352),
o = n(517);
t.exports = i
}, function (t, e) {
function n (t, e, n) {
for (var i = t.length, r = n ? i : -1; n ? r-- : ++r < i;)
if (e(t[r], r, t)) return r;
return -1
}
t.exports = n
}, function (t, e, n) {
function i () {
this.attributes({
api: !1,
profileId: !1,
authorsLimit: 6,
statisticsLoaded: !1,
statistics: {},
publications: {},
totalPublications: 0
}), this.after("initialize", function () {
this.setPublications = u.bind(this), this.transformType = f, this.transformPublication = h.bind(this), this.getPublicationsList = d.bind(this), this.sortAndGroupPublications = l, this.notifyStatisticsUpdate = m, this.getById = o, t.exports.getById = function (t) {
return M(this.getById(t))
}.bind(this), t.exports.get = this.get = r.bind(this), t.exports.count = this.count = a.bind(this), t.exports.types = this.types = s.bind(this), this.on(document, "data:publications:import.success", function () {
this.attr.statisticsLoaded = !1, this.getPublicationsList()
}), this.on(document, "data:publications:add.success data:publications:create.success", _), this.on(document, "data:publications:edit.success", b), this.on(document, "data:publications:remove.success", v), this.on(document, "data:publications:enhance.success", c), this.on(document, "data:publications:enhancements.complete", function () {
this.attr.statisticsLoaded = !0, this.notifyStatisticsUpdate()
}), this.getPublicationsList()
})
}
function r (t) {
return M(this.attr.publications[t || "all"])
}
function o (t) {
return E(this.attr.publications.all, {
id: t
})[0]
}
function a (t) {
return t = t || "all", "all" === t && this.attr.totalPublications > 0 ? this.attr.totalPublications : this.attr.publications[t] ? this.attr.publications[t].length : 0
}
function s (t) {
return T(x(w(this.attr.publications, this.transformType, t)), "name")
}
function u (t) {
this.sortAndGroupPublications(t), this.trigger("store:publications:init")
}
function l (t) {
var e = D(t, [p, "title"], [!1, !0]),
n = L(e, "type");
n.all = e, this.attr.publications = n;
for (var i in this.attr.publications) this.attr.publications[i].count = this.count(i)
}
function c (t, e) {
var n = this.getById(e.id);
e.stats && (this.attr.statistics[e.id] = e.stats), this.transformPublication(n, e.authors), this.trigger("store:publications:publication.enhanced", M(n)), this.attr.statisticsLoaded && this.notifyStatisticsUpdate()
}
function d () {
var t = this;
if (!this.attr.profileId) return this.trigger("store:publications:init");
var e = {
profile_id: this.attr.profileId,
authored: !0,
limit: 500,
order: "desc",
sort: "created",
view: "all"
};
this.attr.api.documents.list(e)
.then(function (t) {
return this.attr.totalPublications = t.total, t.items.map(this.transformPublication)
}.bind(this))
.then(this.setPublications)
.catch(function () {
return t.trigger("store:publications:set.error")
})
}
function p (t) {
return t.year || 0
}
function h (t, e) {
return t.id in this.attr.statistics && (t.catalog = this.attr.statistics[t.id]), t.authors && t.authors.length && (t.authorList = P(t.authors, this.attr.authorsLimit), t.authors = y.setAuthorInitialName(t.authors), t.authors = y.setLastAuthor(t.authors), e && e.length && (t.authors = y.setAuthorIds(t.authors, e))), t.identifiers && t.identifiers.doi && t.identifiers.doi.length && (t.identifiers.doi = y.sanitiseDoi(t.identifiers.doi)), t
}
function f (t, e) {
return {
type: e,
name: "all" === e ? "All" : j[e].displayName,
count: t.count,
active: e === this
}
}
function m () {
this.trigger("store:publications:statistics.change", {
publicationsCount: this.count(),
readersCount: Y(this.attr.statistics, function (t, e) {
return t + e.reader_count
}, 0)
})
}
function _ (t, e) {
e = this.transformPublication(e), this.attr.publications.all.unshift(e), this.sortAndGroupPublications(this.attr.publications.all), this.trigger("store:publications:publication.added", M(e)), this.notifyStatisticsUpdate()
}
function b (t, e) {
e = this.transformPublication(e);
var n = k(this.attr.publications.all, function (t) {
return e.id === t.id
});
this.attr.publications.all.splice(n, 1, e), this.sortAndGroupPublications(this.attr.publications.all), this.trigger("store:publications:publication.updated", M(e))
}
function v (t, e) {
C(this.attr.publications.all, function (t) {
return t.id === e.id
}), delete this.attr.statistics[e.id], this.attr.totalPublications > 0 && this.attr.totalPublications--, this.sortAndGroupPublications(this.attr.publications.all), this.trigger("store:publications:publication.deleted", e), this.notifyStatisticsUpdate()
}
var g = n(305),
y = n(349),
w = n(350),
M = n(504),
T = n(519),
k = n(515),
S = n(521),
L = n(523),
x = n(409),
D = n(411),
E = n(524),
Y = n(398),
C = n(525),
P = n(527),
j = S(n(528), "id");
t.exports = g.component(i)
}, function (t, e, n) {
function i (t, e, n) {
if (null == t) return [];
n && u(t, e, n) && (e = void 0);
var i = -1;
e = r(e, n, 3);
var l = o(t, function (t, n, r) {
return {
criteria: e(t, n, r),
index: ++i,
value: t
}
});
return a(l, s)
}
var r = n(352),
o = n(392),
a = n(413),
s = n(520),
u = n(405);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
return r(t.criteria, e.criteria) || t.index - e.index
}
var r = n(415);
t.exports = i
}, function (t, e, n) {
var i = n(522),
r = i(function (t, e, n) {
t[n] = e
});
t.exports = r
}, function (t, e, n) {
function i (t, e) {
return function (n, i, s) {
var u = e ? e() : {};
if (i = r(i, s, 3), a(n))
for (var l = -1, c = n.length; ++l < c;) {
var d = n[l];
t(u, d, i(d, l, n), n)
} else o(n, function (e, n, r) {
t(u, e, i(e, n, r), r)
});
return u
}
}
var r = n(352),
o = n(393),
a = n(373);
t.exports = i
}, function (t, e, n) {
var i = n(522),
r = Object.prototype,
o = r.hasOwnProperty,
a = i(function (t, e, n) {
o.call(t, n) ? t[n].push(e) : t[n] = [e]
});
t.exports = a
}, function (t, e, n) {
function i (t, e, n) {
var i = s(t) ? r : a;
return e = o(e, n, 3), i(t, e)
}
var r = n(513),
o = n(352),
a = n(514),
s = n(373);
t.exports = i
}, function (t, e, n) {
function i (t, e, n) {
var i = [];
if (!t || !t.length) return i;
var a = -1,
s = [],
u = t.length;
for (e = r(e, n, 3); ++a < u;) {
var l = t[a];
e(l, a, t) && (i.push(l), s.push(a))
}
return o(t, s), i
}
var r = n(352),
o = n(526);
t.exports = i
}, function (t, e, n) {
function i (t, e) {
for (var n = t ? e.length : 0; n--;) {
var i = e[n];
if (i != o && r(i)) {
var o = i;
a.call(t, i, 1)
}
}
return t
}
var r = n(374),
o = Array.prototype,
a = o.splice;
t.exports = i
}, function (t, e) {
t.exports = function (t, e) {
return t ? t.slice(0, e)
.map(function (t) {
return t.last_name ? t.last_name + (t.first_name ? " " + t.first_name.substring(0, 1) : "") : null
})
.filter(function (t) {
return Boolean(t)
})
.join(", ") + (t.length > e ? ", et al." : "") : ""
}
}, function (t, e) {
t.exports = [{
id: "journal",
displayName: "Journal Article",
fields: {
source: {
displayName: "Journal",
visibility: "visible"
},
volume: {
visibility: "visible"
},
issue: {
visibility: "visible"
},
city: {
visibility: "hidden"
},
publisher: {
visibility: "hidden"
},
"identifiers.arxiv": {
visibility: "visible"
},
"identifiers.pmid": {
visibility: "visible"
}
}
}, {
id: "book",
displayName: "Book",
fields: {
edition: {
visibility: "visible"
},
editors: {
visibility: "visible"
},
"identifiers.isbn": {
visibility: "visible"
}
}
}, {
id: "generic",
displayName: "Generic"
}, {
id: "book_section",
displayName: "Book Section",
fields: {
source: {
displayName: "Book",
visibility: "visible"
},
chapter: {
visibility: "visible"
},
edition: {
visibility: "visible"
},
editors: {
visibility: "visible"
},
"identifiers.isbn": {
visibility: "visible"
}
}
}, {
id: "conference_proceedings",
displayName: "Conference Proceedings",
fields: {
source: {
displayName: "Proc. Title",
visibility: "visible"
},
editors: {
visibility: "visible"
}
}
}, {
id: "working_paper",
displayName: "Working Paper",
fields: {
publisher: {
visibility: "hidden"
},
institution: {
visibility: "visible"
},
revision: {
visibility: "visible"
},
series: {
visibility: "visible"
}
}
}, {
id: "report",
displayName: "Report",
fields: {
publisher: {
visibility: "hidden"
},
institution: {
visibility: "visible"
}
}
}, {
id: "web_page",
displayName: "Web Page",
fields: {
source: {
visibility: "visible"
},
city: {
visibility: "hidden"
},
publisher: {
visibility: "hidden"
},
accessed: {
visibility: "visible"
}
}
}, {
id: "thesis",
displayName: "Thesis",
fields: {
city: {
visibility: "hidden"
},
publisher: {
visibility: "hidden"
},
institution: {
displayName: "University",
visibility: "visible"
}
}
}, {
id: "magazine_article",
displayName: "Magazine Article",
fields: {
source: {
visibility: "visible"
},
month: {
visibility: "visible"
},
publisher: {
visibility: "hidden"
}
}
}, {
id: "statute",
displayName: "Statute",
fields: {
source: {
visibility: "visible"
},
city: {
visibility: "hidden"
},
publisher: {
displayName: "Source"
},
revision: {
displayName: "Statute Number",
visibility: "visible"
}
}
}, {
id: "patent",
displayName: "Patent",
fields: {
authors: {
displayName: "Inventors"
},
city: {
visibility: "hidden"
},
publisher: {
displayName: "Issuer"
},
institution: {
visibility: "visible"
},
revision: {
visibility: "visible"
}
}
}, {
id: "newspaper_article",
displayName: "Newspaper Article",
fields: {
source: {
visibility: "visible"
},
month: {
visibility: "visible"
},
day: {
visibility: "visible"
},
publisher: {
visibility: "hidden"
}
}
}, {
id: "computer_program",
displayName: "Computer Program",
fields: {
revision: {
displayName: "Version",
visibility: "visible"
}
}
}, {
id: "hearing",
displayName: "Hearing",
fields: {}
}, {
id: "television_broadcast",
displayName: "Television Broadcast",
fields: {
authors: {
displayName: "Directors"
},
city: {
visibility: "hidden"
},
publisher: {
displayName: "Distributor"
}
}
}, {
id: "encyclopedia_article",
displayName: "Encyclopedia Article",
fields: {
source: {
displayName: "Encyclopedia",
visibility: "visible"
},
city: {
visibility: "hidden"
},
edition: {
visibility: "visible"
}
}
}, {
id: "case",
displayName: "Case",
fields: {
authors: {
displayName: "Reporter"
},
volume: {
visibility: "visible"
},
city: {
visibility: "hidden"
},
publisher: {
visibility: "hidden"
}
}
}, {
id: "film",
displayName: "Film",
fields: {
authors: {
displayName: "Directors"
},
city: {
visibility: "hidden"
},
publisher: {
displayName: "Distributor"
}
}
}, {
id: "bill",
displayName: "Bill",
fields: {
pages: {
displayName: "Code Pages"
},
publisher: {
displayName: "Legislative Body",
visibility: "visible"
}
}
}]
}, function (t, e, n) {
function i () {
this.attributes({
api: !1
}), this.after("initialize", function () {
this.startUpload = r.bind(this), this.on(document, "ui:photo:upload.init", this.requireLogin(r))
})
}
function r (t, e) {
return this.attr.api.photos.me(e)
.then(o.bind(this))
.catch(a.bind(this))
}
function o (t) {
this.trigger("data:photo:upload.success", {
photos: t
})
}
function a () {
this.trigger("data:photo:upload.error")
}
var s = n(305),
u = n(503);
t.exports = s.component(i, u)
}, function (t, e, n) {
function i () {
this.after("initialize", function () {
var t = this;
this.attr.photoStats = {
method: "N/A",
completed: "false"
}, this.attr.googleSuggestionStats = {
status: "N/A",
hasResults: "false",
suggestionsModalClosed: "false",
suggestedImageClicked: "false",
setAsPictureClicked: "false",
addManuallyClicked: "false"
}, this.attr.orcidStats = {
method: "import-orcid-profile",
completed: "false",
clickedConnectLink: "false"
}, this.on(document, "ui:orcid:import.init", function () {
t.attr.orcidStats.completed = "true", t.trigger("data:tracking:orcid.connectLink", t.attr.orcidStats), t.attr.orcidStats = Object.assign({}, t.attr.orcidStats)
}), this.on(document, "ui:orcid:import.option.selected", function (e, n) {
t.attr.orcidStats.method = n.option
}), this.on(document, "ui:photo:suggestions.success", function () {
t.attr.googleSuggestionStats.status = "success", t.attr.googleSuggestionStats.hasResults = "true"
}), this.on(document, "ui:photo:suggestions.empty", function () {
t.attr.googleSuggestionStats.status = "success"
}), this.on(document, "ui:photo:suggestions.error", function () {
t.attr.googleSuggestionStats.status = "error"
}), this.on(document, "ui:photo:suggestions.rejected", function () {
t.attr.googleSuggestionStats.addManuallyClicked = "true"
}), this.on(document, "ui:photo:suggestions.clicked", function () {
t.attr.googleSuggestionStats.suggestedImageClicked = "true"
}), this.on(document, "ui:photo:suggestion.selected", function () {
t.attr.googleSuggestionStats.setAsPictureClicked = "true", t.attr.photoStats.method = "Google Suggestions"
}), this.on(document, "data:photo:upload.success", function () {
t.attr.photoStats.completed = "true"
}), this.on(document, "data:photo:upload.error", function () {
t.attr.photoStats.completed = "false"
}), this.on(document, "ui:photo:upload.track.method", function (e, n) {
t.attr.photoStats.method = n.method
}), this.on(document, "uiModalRequested", function (e, n) {
"profile-modal-photo-upload" === n.id && (t.attr.photoStats.hasPhoto = !a(s.get())), "profile-modal-connect-orcid" === n.id && (t.attr.orcidStats.clickedConnectLink = "true")
}), this.on(document, "uiModalHidden", function (e, n) {
"profile-modal-photo-upload" === n.id && (t.trigger("data:tracking:profile.photoUpload", t.attr.photoStats), t.attr.photoStats = Object.assign({}, t.attr.photoStats)), "profile-modal-photo-suggestions" === n.id && (t.attr.googleSuggestionStats.suggestionsModalClosed = "true", t.trigger("data:tracking:google:photoSuggestions", t.attr.googleSuggestionStats), t.attr.googleSuggestionStats = Object.assign({}, t.attr.googleSuggestionStats))
}), this.on(document, "data:tracking:profile.loaded", this.createEventsEmitter("ProfilePageView")), this.on(document, "data:tracking:profile.updated", this.createOptimizelyEmitter("profileUpdated")), this.on(document, "data:profile:published:success", this.createEventsEmitter("PrefillProfilePublished")), this.on(document, "data:tracking:profile.photoUpload", this.createEventsEmitter("UploadProfilePhoto")), this.on(document, "data:tracking:google:photoSuggestions", this.createEventsEmitter("GooglePhotoSuggestions")), this.on(document, "data:tracking:orcid.connectLink", this.createEventsEmitter("OrcidConnectLinkTracking")), this.on(document, "data:tracking:prefill:claimed", this.createAnalyticsEmitter({
category: "profile-prefill",
label: "claim",
value: 1195,
action: "claimed"
})), this.on(document, "data:tracking:employment:form.opened", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "opened"
})), this.on(document, "data:tracking:employment:form.closed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "closed"
})), this.on(document, "data:tracking:employment:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:education:form.opened", this.createAnalyticsEmitter({
category: "profile-edit",
label: "education",
value: 1195,
action: "opened"
})), this.on(document, "data:tracking:education:form.closed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "education",
value: 1195,
action: "closed"
})), this.on(document, "data:tracking:education:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "education",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:editorships:form.opened", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "opened"
})), this.on(document, "data:tracking:editorships:form.closed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "closed"
})), this.on(document, "data:tracking:editorships:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "experience",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:profile:form.opened", this.createAnalyticsEmitter({
category: "profile-edit",
label: "main",
value: 1195,
action: "opened"
})), this.on(document, "data:tracking:profile:form.closed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "main",
value: 1195,
action: "closed"
})), this.on(document, "data:tracking:profile:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "main",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:about:form.opened", this.createAnalyticsEmitter({
category: "profile-edit",
label: "about",
value: 1195,
action: "opened"
})), this.on(document, "data:tracking:about:form.closed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "about",
value: 1195,
action: "closed"
})), this.on(document, "data:tracking:about:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "about",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:interests:added", this.createAnalyticsEmitter({
category: "profile-edit",
label: "interests",
value: 1195,
action: "added"
})), this.on(document, "data:tracking:interests:removed", this.createAnalyticsEmitter({
category: "profile-edit",
label: "interests",
value: 1195,
action: "removed"
})), this.on(document, "data:tracking:interests:form.saved", this.createAnalyticsEmitter({
category: "profile-edit",
label: "interests",
value: 1195,
action: "saved"
})), this.on(document, "data:tracking:interests:unsaved.leave", this.createAnalyticsEmitter({
category: "profile-edit",
label: "interests",
value: 1195,
action: "unsaved"
})), this.on(document, "data:tracking:publications:scopus.import", this.createAnalyticsEmitter({
category: "profile-publications",
label: "scopus-import",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:publications:doi", this.createAnalyticsEmitter({
category: "profile-publications",
label: "external-link-doi-publisher-page",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:publications:author-link", this.createAnalyticsEmitter({
category: "co-author-linking",
label: "link",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:completion:interests", this.createAnalyticsEmitter({
category: "profile-completion-widget",
label: "interests",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:completion:publications", this.createAnalyticsEmitter({
category: "profile-completion-widget",
label: "publications",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:completion:profile", this.createAnalyticsEmitter({
category: "profile-completion-widget",
label: "profile",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:completion:photo.upload", this.createAnalyticsEmitter({
category: "profile-completion-widget",
label: "photo-upload",
value: 1195,
action: "click"
})), this.on(document, "data:tracking:claim-widget:author-accepted", this.createAnalyticsEmitter({
category: "claim-widget",
label: "weblet-profiles",
value: 1195,
action: "author-accept"
})), this.on(document, "data:tracking:claim-widget:author-accepted-with-import", this.createAnalyticsEmitter({
category: "claim-widget",
label: "weblet-profiles",
value: 1195,
action: "author-accept-with-import"
})), this.on(document, "data:tracking:claim-widget:author-rejected", this.createAnalyticsEmitter({
category: "claim-widget",
label: "weblet-profiles",
value: 1195,
action: "author-reject"
})), this.on(document, "data:tracking:restricted:follow", this.createAnalyticsEmitter({
category: "restricted-follow",
label: "weblet-profiles",
value: 1195,
action: "click"
})), this.processQueue()
})
}
var r = n(305),
o = n(531),
a = n(532),
s = n(502);
t.exports = r.component(i, o)
}, function (t, e, n) {
(function (e) {
function n () {
this.attributes({
api: !1,
clientId: 0,
currentUserId: !1,
reiteration: 500,
events: [],
analytics: function () {
return window.ga || function () {}
},
optimizely: window.optimizely || []
}), this.before("initialize", function () {
this.sendEvent = a.bind(this), this.processQueue = s.bind(this), this.flushQueue = u.bind(this), this.createEventsEmitter = i.bind(this), this.createAnalyticsEmitter = o.bind(this), this.createOptimizelyEmitter = r.bind(this)
})
}
function i (t) {
return function (e, n) {
this.sendEvent({
name: t,
timestamp: Date.now(),
profile_uuid: this.attr.currentUserId,
origin: {
type: "WEB",
version: 1195,
identity: this.attr.clientId
},
properties: n
})
}
}
function r (t) {
return function () {
this.attr.optimizely.push(["trackEvent", t])
}
}
function o (t) {
var e = this,
n = t && t.category || "",
i = t && t.action || "",
r = t && t.label || "",
o = t && t.value || "";
return function () {
e.attr.analytics("send", "event", n, i, r, o)
}
}
function a (t) {
this.attr.events.push(t)
}
function s () {
this.flushQueue(), setTimeout(this.processQueue, this.attr.reiteration)
}
function u () {
var t = this;
if (this.attr.events.length > 0) {
var n = function () {
var n = t.attr.api.events.batch(t.attr.events);
return t.attr.events.length = 0, {
v: new e(function (t) {
return l(n, t)
})
}
}();
if ("object" === ("undefined" == typeof n ? "undefined" : c(n))) return n.v
}
return e.resolve()
}
function l (t, n, i) {
return "undefined" == typeof i && (i = n), e.resolve(t)
.then(function () {
return n()
})
.catch(function () {
return i()
})
}
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
} : function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
};
t.exports = n
})
.call(e, n(294))
}, function (t, e) {
t.exports = function (t) {
return !t.photos.reduce(function (t, e) {
return t ? t : e.original
}, !1)
}
}, function (t, e, n) {
function i () {
this.attributes({
api: !1,
auth: !1
}), this.after("initialize", function () {
this.on(document, "ui:profile:update.init", this.requireLogin(o)), this.on(document, "ui:profile:settingsHavePublications.init", this.requireLogin(l)), this.on(document, "ui:connections:scopus-unclaim.init", this.requireLogin(a))
})
}
function r (t) {
var e = {};
return Object.keys(f)
.forEach(function (n) {
"undefined" != typeof t[n] && (e[f[n]] = t[n])
}), e
}
function o (t, e) {
var n = r(e);
this.attr.api.profiles.update(n)
.then(s.bind(this))
.catch(u.bind(this, "data:profile:update.error"))
}
function a (t, e) {
var n = this;
this.attr.api.profiles.revokeAuthorClaim(e.authorId)
.then(function () {
n.trigger("data:profile:scopus-unclaim.success", e)
})
.catch(function () {
n.trigger("data:profile:scopus-unclaim.error", e)
})
}
function s (t) {
this.trigger("data:profile:update.success", t)
}
function u (t) {
this.trigger(t)
}
function l (t, e) {
this.attr.api.profiles.updateSettings({
misc: {
have_publications: e
}
})
.then(c.bind(this))
.catch(d.bind(this))
}
function c (t) {
this.trigger("data:profile:settingsHavePublications.success", t)
}
function d (t) {
this.trigger("data:profile:settingsHavePublications.error", t)
}
var p = n(305),
h = n(503),
f = {
firstName: "first_name",
lastName: "last_name",
title: "title",
location: "location_id",
biography: "biography"
};
t.exports = p.component(i, h)
}, function (t, e, n) {
function i () {
this.attributes({
api: !1
}), this.after("initialize", function () {
this.on(document, "ui:followers:follow.init", this.requireLogin(r)), this.on(document, "ui:followers:unfollow.init", this.requireLogin(o))
})
}
function r (t, e) {
s.call(this, e.profileId)
.then(l.bind(this, e.profileId))
.catch(d.bind(this, "data:followers:follow.error"))
}
function o (t, e) {
a.call(this, e.profileId, this.getCurrentUserId())
.then(u.bind(this))
.then(c.bind(this, e.profileId))
.catch(d.bind(this, "data:followers:unfollow.error"))
}
function a (t, e) {
var n = {
followed: t,
follower: e
};
return this.attr.api.followers.list(n)
.then(function (t) {
return !!t.items.length && t.items[0]
})
}
function s (t) {
return this.attr.api.followers.create({
followed: t
})
}
function u (t) {
return !!t && this.attr.api.followers.remove(t.id)
}
function l (t, e) {
var n = {
status: e.status,
profileId: t
};
this.trigger("data:followers:follow.success", n)
}
function c (t) {
var e = {
status: "follow",
profileId: t
};
this.trigger("data:followers:unfollow.success", e)
}
function d (t, e) {
401 === e.status ? this.trigger("data:authentication.required") : this.trigger(t)
}
var p = n(305),
h = n(503);
t.exports = p.component(i, h)
}, function (t, e, n) {
function i () {
this.attributes({
api: !1,
window: window
}), this.after("initialize", function () {
this.on(document, "ui:message:send.init", this.requireLogin(a)), this.on(document, "page:components.loaded", o)
})
}
function r (t) {
var e = {};
return e.to = t.to, e.subject = t.subject, e.content = t.message, e
}
function o () {
var t = d.transform.queryString(this.attr.WB_wombat_self_location.search);
"send-message" === t.action && this.requireLogin(function () {
this.trigger("uiModalRequested", {
id: "profile-modal-message"
})
}.bind(this))
.call(this)
}
function a (t, e) {
return this.attr.api.messages.send(r(e))
.then(s.bind(this))
.catch(u.bind(this))
}
function s () {
this.trigger("data:message:send.success")
}
function u (t) {
switch (t.status) {
case 403:
this.trigger("data:message:send.error.restricted");
break;
case 429:
this.trigger("data:message:send.error.limited");
break;
default:
this.trigger("data:message:send.error.generic")
}
}
var l = n(305),
c = n(503),
d = n(349);
t.exports = l.component(i, c)
}, function (t, e, n) {
function i () {
this.attributes({
api: !1,
auth: !1,
window: window,
authorIds: !1,
tries: 5,
delay: 1e3
}), this.after("initialize", function () {
this.attr.publications = n(518), this.uploadPublication = c.bind(this),
this.createPublicationsQueue = o, this.enhancePublication = a, this.getAuthorIds = s,
this.catalogLookup = u, this.lookup = l, this.on(document, "ui:publications:import.init", this.requireLogin(r)),
this.on(document, "store:publications:init", this.createPublicationsQueue),
this.on(document, "ui:publications:upload.init", this.requireLogin(b)),
this.on(document, "ui:publications:remove.init", this.requireLogin(v)),
this.on(document, "ui:publications:save-reference.init", this.requireLogin(w)),
this.on(document, "ui:publication:edit.init", this.requireLogin(k)),
this.on(document, "ui:publication:fetch.init", this.requireLogin(P)),
this.on(document, "ui:publication:create.init", this.requireLogin(D)),
this.on(document, "data:profile:claim-author.success", C),
this.on(document, "store:publications:publication.added store:publications:publication.updated", function (t, e) {
this.enhancePublication(e, {
retry: !0
})
})
})
}
function r () {
var t = this.attr.api.documents.importFromScopus({
scopus_author_ids: this.attr.authorIds.split(",")
});
this.attr.api.documents.pollImportStatusUntilComplete(t)
.then(p.bind(this))
.catch(m.bind(this))
}
function o () {
var t = N.queue(function (t, e) {
this.enhancePublication(t)
.finally(function () {
e()
})
}.bind(this), z);
t.drain = function () {
this.trigger("data:publications:enhancements.complete")
}.bind(this), t.push(this.attr.publications.get())
}
function a (t) {
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
retry: !1
},
n = {
id: t.id,
publication: t
};
return this.catalogLookup(n, e)
.then(s.bind(this))
.then(function (t) {
this.trigger("data:publications:enhance.success", t)
}.bind(this))
}
function s (t) {
var e = t.publication,
n = t.stats,
i = e.identifiers && e.identifiers.scopus || n && n.identifiers && n.identifiers.scopus;
return i ? this.attr.api.scopus.retrieveArticleAuthors(i)
.then(function (e) {
return t.authors = e,
t
})
.catch(function () {
return t
}) : U.resolve(t)
}
function u (t, e) {
var n = 0;
return l.call(this, t, n, e)
}
function l (t, e, n) {
var i = n.retry;
return this.attr.api.catalog.search({
view: "stats",
document_id: t.id
})
.then(function (e) {
return t.stats = e[0], t
})
.catch(function (n) {
return 404 === n.response.status && e < this.attr.tries && i === !0 ? (e++, U.delay(this.attr.delay)
.then(function () {
return l.call(this, t, e, {
retry: i
})
}.bind(this))) : t
}.bind(this))
}
function c (t) {
this.attr.api.documents.createFromFile(t, h.bind(this))
.then(d.bind(this))
.catch(_.bind(this))
}
function d (t) {
this.attr.api.documents.update(t.id, {
authored: !0
})
.then(f.bind(this))
.catch(_.bind(this))
}
function p (t) {
this.trigger("data:publications:import.success", t)
}
function h (t) {
this.trigger("data:publications:upload.progress", Math.floor(t.loaded / t.total * 100))
}
function f (t) {
this.trigger("data:publications:add.success", t)
}
function m () {
this.trigger("data:publications:import.error")
}
function _ (t) {
this.trigger("data:publications:upload.error", t)
}
function b (t, e) {
e.type && W.test(e.type) || e.name.substr(e.name.lastIndexOf(".") + 1) === H ? e.size && e.size < q ? (this.trigger("data:publications:upload.proceed", e), this.uploadPublication(e)) : this.trigger("data:publications:upload.error.size", e) : this.trigger("data:publications:upload.error.type", e)
}
function v (t, e) {
this.attr.api.documents.update(e.id, {
authored: !1
})
.then(g.bind(this))
.catch(y.bind(this))
}
function g (t) {
this.trigger("data:publications:remove.success", t)
}
function y () {
this.trigger("data:publications:remove.error")
}
function w (t, e) {
var n = e.id;
e.authored = !1, e.profile_id = "", e.id = "", this.attr.api.documents.create(e)
.then(M.bind(this, n))
.catch(T.bind(this))
}
function M (t) {
this.trigger("data:publications:save-reference.success", {
id: t
})
}
function T () {
this.trigger("data:publications:save-reference.error")
}
function k (t, e) {
this.attr.api.documents.update(e.id, S(e.fields))
.then(L.bind(this))
.catch(x.bind(this))
}
function S (t) {
var e = {};
return e.tags = [], t.each(function () {
"checkbox" === $(this)
.attr("type") ? e[this.name] = $(this)
.prop("checked") : "tags" === this.name ? (e[this.name] = e[this.name], e[this.name].push(this.value)) : "identifiers" === this.name ? (e[this.name] = e[this.name] || {}, e[this.name][$(this)
.data("identifier-type")
] = this.value) : "authors" === this.name ? e[this.name] = I.transformAuthorsToArray(this.value) : e[this.name] = this.value
}), e
}
function L (t) {
this.trigger("data:publications:edit.success", t)
}
function x () {
this.trigger("data:publications:edit.error")
}
function D (t, e) {
var n = S(e.fields);
n.authored = !0, n.type = "journal", this.attr.api.documents.create(n)
.then(E.bind(this, n))
.catch(Y.bind(this))
}
function E (t, e) {
this.trigger("data:publications:create.success", R(t, e))
}
function Y () {
this.trigger("data:publications:create.error")
}
function C (t, e) {
this.attr.authorIds = e
}
function P (t, e) {
this.attr.api.metadataExtId.lookup("doi", e)
.then(j.bind(this))
.catch(A.bind(this))
}
function j (t) {
this.trigger("data:publication:fetch.success", t)
}
function A () {
this.trigger("data:publication:fetch.error")
}
var F = n(305),
O = n(503),
I = n(349),
N = n(537),
U = n(294),
R = n(416),
H = "pdf",
W = /^application\/pdf$/i,
B = 250,
q = 1024 * B * 1024,
z = 6;
t.exports = F.component(i, O)
}, function (t, e, n) {
(function (t, n, i, r) {
!function (t, n) {
n(e)
}(this, function (e) {
function o (t, e, n) {
switch (n.length) {
case 0:
return t.call(e);
case 1:
return t.call(e, n[0]);
case 2:
return t.call(e, n[0], n[1]);
case 3:
return t.call(e, n[0], n[1], n[2])
}
return t.apply(e, n)
}
function a (t, e, n) {
return e = ae(void 0 === e ? t.length - 1 : e, 0),
function () {
for (var i = arguments, r = -1, a = ae(i.length - e, 0), s = Array(a); ++r < a;) s[r] = i[e + r];
r = -1;
for (var u = Array(e + 1); ++r < e;) u[r] = i[r];
return u[e] = n(s), o(t, this, u)
}
}
function s (t) {
return t
}
function u (t, e) {
return a(t, e, s)
}
function l (t) {
return u(function (e, n) {
var i = se(function (n, i) {
var r = this;
return t(e, function (t, e) {
t.apply(r, n.concat([e]))
}, i)
});
return n.length ? i.apply(this, n) : i
})
}
function c (t) {
var e = he.call(t, me),
n = t[me];
try {
t[me] = void 0;
var i = !0
} catch (t) {}
var r = fe.call(t);
return i && (e ? t[me] = n : delete t[me]), r
}
function d (t) {
return be.call(t)
}
function p (t) {
return null == t ? void 0 === t ? ge : ve : (t = Object(t), ye && ye in t ? c(t) : d(t))
}
function h (t) {
var e = typeof t;
return null != t && ("object" == e || "function" == e)
}
function f (t) {
if (!h(t)) return !1;
var e = p(t);
return e == Me || e == Te || e == we || e == ke
}
function m (t) {
return "number" == typeof t && t > -1 && t % 1 == 0 && t <= Se
}
function _ (t) {
return null != t && m(t.length) && !f(t)
}
function b () {}
function v (t) {
return function () {
if (null !== t) {
var e = t;
t = null, e.apply(this, arguments)
}
}
}
function g (t, e) {
for (var n = -1, i = Array(t); ++n < t;) i[n] = e(n);
return i
}
function y (t) {
return null != t && "object" == typeof t
}
function w (t) {
return y(t) && p(t) == De
}
function M () {
return !1
}
function T (t, e) {
return e = null == e ? Re : e, !!e && ("number" == typeof t || He.test(t)) && t > -1 && t % 1 == 0 && t < e
}
function k (t) {
return y(t) && m(t.length) && !!hn[p(t)]
}
function S (t) {
return function (e) {
return t(e)
}
}
function L (t, e) {
var n = je(t),
i = !n && Pe(t),
r = !n && !i && Ue(t),
o = !n && !i && !r && wn(t),
a = n || i || r || o,
s = a ? g(t.length, String) : [],
u = s.length;
for (var l in t) !e && !Tn.call(t, l) || a && ("length" == l || r && ("offset" == l || "parent" == l) || o && ("buffer" == l || "byteLength" == l || "byteOffset" == l) || T(l, u)) || s.push(l);
return s
}
function x (t) {
var e = t && t.constructor,
n = "function" == typeof e && e.prototype || kn;
return t === n
}
function D (t, e) {
return function (n) {
return t(e(n))
}
}
function E (t) {
if (!x(t)) return Sn(t);
var e = [];
for (var n in Object(t)) xn.call(t, n) && "constructor" != n && e.push(n);
return e
}
function Y (t) {
return _(t) ? L(t) : E(t)
}
function C (t) {
var e = -1,
n = t.length;
return function () {
return ++e < n ? {
value: t[e],
key: e
} : null
}
}
function P (t) {
var e = -1;
return function () {
var n = t.next();
return n.done ? null : (e++, {
value: n.value,
key: e
})
}
}
function j (t) {
var e = Y(t),
n = -1,
i = e.length;
return function () {
var r = e[++n];
return n < i ? {
value: t[r],
key: r
} : null
}
}
function A (t) {
if (_(t)) return C(t);
var e = xe(t);
return e ? P(e) : j(t)
}
function F (t) {
return function () {
if (null === t) throw new Error("Callback was already called.");
var e = t;
t = null, e.apply(this, arguments)
}
}
function O (t) {
return function (e, n, i) {
function r (t, e) {
if (u -= 1, t) s = !0, i(t);
else {
if (e === Dn || s && u <= 0) return s = !0, i(null);
o()
}
}
function o () {
for (; u < t && !s;) {
var e = a();
if (null === e) return s = !0, void(u <= 0 && i(null));
u += 1, n(e.value, e.key, F(r))
}
}
if (i = v(i || b), t <= 0 || !e) return i(null);
var a = A(e),
s = !1,
u = 0;
o()
}
}
function I (t, e, n, i) {
O(e)(t, n, i)
}
function N (t, e) {
return function (n, i, r) {
return t(n, e, i, r)
}
}
function U (t, e, n) {
function i (t) {
t ? n(t) : ++o === a && n(null)
}
n = v(n || b);
var r = 0,
o = 0,
a = t.length;
for (0 === a && n(null); r < a; r++) e(t[r], r, F(i))
}
function R (t) {
return function (e, n, i) {
return t(Yn, e, n, i)
}
}
function H (t, e, n, i) {
i = i || b, e = e || [];
var r = [],
o = 0;
t(e, function (t, e, i) {
var a = o++;
n(t, function (t, e) {
r[a] = e, i(t)
})
}, function (t) {
i(t, r)
})
}
function W (t) {
return function (e, n, i, r) {
return t(O(n), e, i, r)
}
}
function B (t) {
return se(function (e, n) {
var i;
try {
i = t.apply(this, e)
} catch (t) {
return n(t)
}
h(i) && "function" == typeof i.then ? i.then(function (t) {
n(null, t)
}, function (t) {
n(t.message ? t : new Error(t))
}) : n(null, i)
})
}
function q (t, e) {
for (var n = -1, i = null == t ? 0 : t.length; ++n < i && e(t[n], n, t) !== !1;);
return t
}
function z (t) {
return function (e, n, i) {
for (var r = -1, o = Object(e), a = i(e), s = a.length; s--;) {
var u = a[t ? s : ++r];
if (n(o[u], u, o) === !1) break
}
return e
}
}
function V (t, e) {
return t && In(t, e, Y)
}
function G (t, e, n, i) {
for (var r = t.length, o = n + (i ? 1 : -1); i ? o-- : ++o < r;)
if (e(t[o], o, t)) return o;
return -1
}
function $ (t) {
return t !== t
}
function J (t, e, n) {
for (var i = n - 1, r = t.length; ++i < r;)
if (t[i] === e) return i;
return -1
}
function K (t, e, n) {
return e === e ? J(t, e, n) : G(t, $, n)
}
function X (t, e) {
for (var n = -1, i = null == t ? 0 : t.length, r = Array(i); ++n < i;) r[n] = e(t[n], n, t);
return r
}
function Q (t) {
return "symbol" == typeof t || y(t) && p(t) == Un
}
function Z (t) {
if ("string" == typeof t) return t;
if (je(t)) return X(t, Z) + "";
if (Q(t)) return Wn ? Wn.call(t) : "";
var e = t + "";
return "0" == e && 1 / t == -Rn ? "-0" : e
}
function tt (t, e, n) {
var i = -1,
r = t.length;
e < 0 && (e = -e > r ? 0 : r + e), n = n > r ? r : n, n < 0 && (n += r), r = e > n ? 0 : n - e >>> 0, e >>>= 0;
for (var o = Array(r); ++i < r;) o[i] = t[i + e];
return o
}
function et (t, e, n) {
var i = t.length;
return n = void 0 === n ? i : n, !e && n >= i ? t : tt(t, e, n)
}
function nt (t, e) {
for (var n = t.length; n-- && K(e, t[n], 0) > -1;);
return n
}
function it (t, e) {
for (var n = -1, i = t.length; ++n < i && K(e, t[n], 0) > -1;);
return n
}
function rt (t) {
return t.split("")
}
function ot (t) {
return $n.test(t)
}
function at (t) {
return t.match(pi) || []
}
function st (t) {
return ot(t) ? at(t) : rt(t)
}
function ut (t) {
return null == t ? "" : Z(t)
}
function lt (t, e, n) {
if (t = ut(t), t && (n || void 0 === e)) return t.replace(hi, "");
if (!t || !(e = Z(e))) return t;
var i = st(t),
r = st(e),
o = it(i, r),
a = nt(i, r) + 1;
return et(i, o, a)
.join("")
}
function ct (t) {
return t = t.toString()
.replace(bi, ""), t = t.match(fi)[2].replace(" ", ""), t = t ? t.split(mi) : [], t = t.map(function (t) {
return lt(t.replace(_i, ""))
})
}
function dt (t, e) {
var n = {};
V(t, function (t, e) {
function i (e, n) {
var i = X(r, function (t) {
return e[t]
});
i.push(n), t.apply(null, i)
}
var r;
if (je(t)) r = t.slice(0, -1), t = t[t.length - 1], n[e] = r.concat(r.length > 0 ? i : t);
else if (1 === t.length) n[e] = t;
else {
if (r = ct(t), 0 === t.length && 0 === r.length) throw new Error("autoInject task functions require explicit parameters.");
r.pop(), n[e] = r.concat(i)
}
}), Nn(n, e)
}
function pt (t) {
setTimeout(t, 0)
}
function ht (t) {
return u(function (e, n) {
t(function () {
e.apply(null, n)
})
})
}
function ft () {
this.head = this.tail = null, this.length = 0
}
function mt (t, e) {
t.length = 1, t.head = t.tail = e
}
function _t (t, e, n) {
function i (t, e, n) {
if (null != n && "function" != typeof n) throw new Error("task callback must be a function");
if (s.started = !0, je(t) || (t = [t]), 0 === t.length && s.idle()) return yi(function () {
s.drain()
});
for (var i = 0, r = t.length; i < r; i++) {
var o = {
data: t[i],
callback: n || b
};
e ? s._tasks.unshift(o) : s._tasks.push(o)
}
yi(s.process)
}
function r (t) {
return u(function (e) {
o -= 1;
for (var n = 0, i = t.length; n < i; n++) {
var r = t[n],
u = K(a, r, 0);
u >= 0 && a.splice(u), r.callback.apply(r, e), null != e[0] && s.error(e[0], r.data)
}
o <= s.concurrency - s.buffer && s.unsaturated(), s.idle() && s.drain(), s.process()
})
}
if (null == e) e = 1;
else if (0 === e) throw new Error("Concurrency must not be zero");
var o = 0,
a = [],
s = {
_tasks: new ft,
concurrency: e,
payload: n,
saturated: b,
unsaturated: b,
buffer: e / 4,
empty: b,
drain: b,
error: b,
started: !1,
paused: !1,
push: function (t, e) {
i(t, !1, e)
},
kill: function () {
s.drain = b, s._tasks.empty()
},
unshift: function (t, e) {
i(t, !0, e)
},
process: function () {
for (; !s.paused && o < s.concurrency && s._tasks.length;) {
var e = [],
n = [],
i = s._tasks.length;
s.payload && (i = Math.min(i, s.payload));
for (var u = 0; u < i; u++) {
var l = s._tasks.shift();
e.push(l), n.push(l.data)
}
0 === s._tasks.length && s.empty(), o += 1, a.push(e[0]), o === s.concurrency && s.saturated();
var c = F(r(e));
t(n, c)
}
},
length: function () {
return s._tasks.length
},
running: function () {
return o
},
workersList: function () {
return a
},
idle: function () {
return s._tasks.length + o === 0
},
pause: function () {
s.paused = !0
},
resume: function () {
if (s.paused !== !1) {
s.paused = !1;
for (var t = Math.min(s.concurrency, s._tasks.length), e = 1; e <= t; e++) yi(s.process)
}
}
};
return s
}
function bt (t, e) {
return _t(t, 1, e)
}
function vt (t, e, n, i) {
i = v(i || b), Mi(t, function (t, i, r) {
n(e, t, function (t, n) {
e = n, r(t)
})
}, function (t) {
i(t, e)
})
}
function gt (t, e, n, i) {
var r = [];
t(e, function (t, e, i) {
n(t, function (t, e) {
r = r.concat(e || []), i(t)
})
}, function (t) {
i(t, r)
})
}
function yt (t) {
return function (e, n, i) {
return t(Mi, e, n, i)
}
}
function wt (t, e, n) {
return function (i, r, o, a) {
function s () {
a && a(null, n(!1))
}
function u (t, i, r) {
return a ? void o(t, function (i, s) {
a && (i || e(s)) ? (i ? a(i) : a(i, n(!0, t)), a = o = !1, r(i, Dn)) : r()
}) : r()
}
arguments.length > 3 ? (a = a || b, t(i, r, u, s)) : (a = o, a = a || b, o = r, t(i, u, s))
}
}
function Mt (t, e) {
return e
}
function Tt (t) {
return u(function (e, n) {
e.apply(null, n.concat([u(function (e, n) {
"object" == typeof console && (e ? console.error && console.error(e) : console[t] && q(n, function (e) {
console[t](e)
}))
})]))
})
}
function kt (t, e, n) {
function i (e, i) {
return e ? n(e) : i ? void t(r) : n(null)
}
n = F(n || b);
var r = u(function (t, r) {
return t ? n(t) : (r.push(i), void e.apply(this, r))
});
i(null, !0)
}
function St (t, e, n) {
n = F(n || b);
var i = u(function (r, o) {
return r ? n(r) : e.apply(this, o) ? t(i) : void n.apply(null, [null].concat(o))
});
t(i)
}
function Lt (t, e, n) {
St(t, function () {
return !e.apply(this, arguments)
}, n)
}
function xt (t, e, n) {
function i (e) {
return e ? n(e) : void t(r)
}
function r (t, r) {
return t ? n(t) : r ? void e(i) : n(null)
}
n = F(n || b), t(r)
}
function Dt (t) {
return function (e, n, i) {
return t(e, i)
}
}
function Et (t, e, n) {
Yn(t, Dt(e), n)
}
function Yt (t, e, n, i) {
O(e)(t, Dt(n), i)
}
function Ct (t) {
return se(function (e, n) {
var i = !0;
e.push(function () {
var t = arguments;
i ? yi(function () {
n.apply(null, t)
}) : n.apply(null, t)
}), t.apply(this, e), i = !1
})
}
function Pt (t) {
return !t
}
function jt (t) {
return function (e) {
return null == e ? void 0 : e[t]
}
}
function At (t, e, n, i) {
var r = new Array(e.length);
t(e, function (t, e, i) {
n(t, function (t, n) {
r[e] = !!n, i(t)
})
}, function (t) {
if (t) return i(t);
for (var n = [], o = 0; o < e.length; o++) r[o] && n.push(e[o]);
i(null, n)
})
}
function Ft (t, e, n, i) {
var r = [];
t(e, function (t, e, i) {
n(t, function (n, o) {
n ? i(n) : (o && r.push({
index: e,
value: t
}), i())
})
}, function (t) {
t ? i(t) : i(null, X(r.sort(function (t, e) {
return t.index - e.index
}), jt("value")))
})
}
function Ot (t, e, n, i) {
var r = _(e) ? At : Ft;
r(t, e, n, i || b)
}
function It (t, e) {
function n (t) {
return t ? i(t) : void r(n)
}
var i = F(e || b),
r = Ct(t);
n()
}
function Nt (t, e, n, i) {
i = v(i || b);
var r = {};
I(t, e, function (t, e, i) {
n(t, e, function (t, n) {
return t ? i(t) : (r[e] = n, void i())
})
}, function (t) {
i(t, r)
})
}
function Ut (t, e) {
return e in t
}
function Rt (t, e) {
var n = Object.create(null),
i = Object.create(null);
e = e || s;
var r = se(function (r, o) {
var a = e.apply(null, r);
Ut(n, a) ? yi(function () {
o.apply(null, n[a])
}) : Ut(i, a) ? i[a].push(o) : (i[a] = [o], t.apply(null, r.concat([u(function (t) {
n[a] = t;
var e = i[a];
delete i[a];
for (var r = 0, o = e.length; r < o; r++) e[r].apply(null, t)
})])))
});
return r.memo = n, r.unmemoized = t, r
}
function Ht (t, e, n) {
n = n || b;
var i = _(e) ? [] : {};
t(e, function (t, e, n) {
t(u(function (t, r) {
r.length <= 1 && (r = r[0]), i[e] = r, n(t)
}))
}, function (t) {
n(t, i)
})
}
function Wt (t, e) {
Ht(Yn, t, e)
}
function Bt (t, e, n) {
Ht(O(e), t, n)
}
function qt (t, e) {
if (e = v(e || b), !je(t)) return e(new TypeError("First argument to race must be an array of functions"));
if (!t.length) return e();
for (var n = 0, i = t.length; n < i; n++) t[n](e)
}
function zt (t, e, n, i) {
var r = zi.call(t)
.reverse();
vt(r, e, n, i)
}
function Vt (t) {
return se(function (e, n) {
return e.push(u(function (t, e) {
if (t) n(null, {
error: t
});
else {
var i = null;
1 === e.length ? i = e[0] : e.length > 1 && (i = e), n(null, {
value: i
})
}
})), t.apply(this, e)
})
}
function Gt (t, e, n, i) {
Ot(t, e, function (t, e) {
n(t, function (t, n) {
e(t, !n)
})
}, i)
}
function $t (t) {
var e;
return je(t) ? e = X(t, Vt) : (e = {}, V(t, function (t, n) {
e[n] = Vt.call(this, t)
})), e
}
function Jt (t) {
return function () {
return t
}
}
function Kt (t, e, n) {
function i (t, e) {
if ("object" == typeof e) t.times = +e.times || o, t.intervalFunc = "function" == typeof e.interval ? e.interval : Jt(+e.interval || a), t.errorFilter = e.errorFilter;
else {
if ("number" != typeof e && "string" != typeof e) throw new Error("Invalid arguments for async.retry");
t.times = +e || o
}
}
function r () {
e(function (t) {
t && u++ < s.times && ("function" != typeof s.errorFilter || s.errorFilter(t)) ? setTimeout(r, s.intervalFunc(u)) : n.apply(null, arguments)
})
}
var o = 5,
a = 0,
s = {
times: o,
intervalFunc: Jt(a)
};
if (arguments.length < 3 && "function" == typeof t ? (n = e || b, e = t) : (i(s, t), n = n || b), "function" != typeof e) throw new Error("Invalid arguments for async.retry");
var u = 1;
r()
}
function Xt (t, e) {
Ht(Mi, t, e)
}
function Qt (t, e, n) {
function i (t, e) {
var n = t.criteria,
i = e.criteria;
return n < i ? -1 : n > i ? 1 : 0
}
Cn(t, function (t, n) {
e(t, function (e, i) {
return e ? n(e) : void n(null, {
value: t,
criteria: i
})
})
}, function (t, e) {
return t ? n(t) : void n(null, X(e.sort(i), jt("value")))
})
}
function Zt (t, e, n) {
function i () {
s || (o.apply(null, arguments), clearTimeout(a))
}
function r () {
var e = t.name || "anonymous",
i = new Error('Callback function "' + e + '" timed out.');
i.code = "ETIMEDOUT", n && (i.info = n), s = !0, o(i)
}
var o, a, s = !1;
return se(function (n, s) {
o = s, a = setTimeout(r, e), t.apply(null, n.concat(i))
})
}
function te (t, e, n, i) {
for (var r = -1, o = tr(Zi((e - t) / (n || 1)), 0), a = Array(o); o--;) a[i ? o : ++r] = t, t += n;
return a
}
function ee (t, e, n, i) {
jn(te(0, t, 1), e, n, i)
}
function ne (t, e, n, i) {
3 === arguments.length && (i = n, n = e, e = je(t) ? [] : {}), i = v(i || b), Yn(t, function (t, i, r) {
n(e, t, i, r)
}, function (t) {
i(t, e)
})
}
function ie (t) {
return function () {
return (t.unmemoized || t)
.apply(null, arguments)
}
}
function re (t, e, n) {
if (n = F(n || b), !t()) return n(null);
var i = u(function (r, o) {
return r ? n(r) : t() ? e(i) : void n.apply(null, [null].concat(o))
});
e(i)
}
function oe (t, e, n) {
re(function () {
return !t.apply(this, arguments)
}, e, n)
}
var ae = Math.max,
se = function (t) {
return u(function (e) {
var n = e.pop();
t.call(this, e, n)
})
},
ue = "object" == typeof t && t && t.Object === Object && t,
le = "object" == typeof self && self && self.Object === Object && self,
ce = ue || le || Function("return this")(),
de = ce.Symbol,
pe = Object.prototype,
he = pe.hasOwnProperty,
fe = pe.toString,
me = de ? de.toStringTag : void 0,
_e = Object.prototype,
be = _e.toString,
ve = "[object Null]",
ge = "[object Undefined]",
ye = de ? de.toStringTag : void 0,
we = "[object AsyncFunction]",
Me = "[object Function]",
Te = "[object GeneratorFunction]",
ke = "[object Proxy]",
Se = 9007199254740991,
Le = "function" == typeof Symbol && Symbol.iterator,
xe = function (t) {
return Le && t[Le] && t[Le]()
},
De = "[object Arguments]",
Ee = Object.prototype,
Ye = Ee.hasOwnProperty,
Ce = Ee.propertyIsEnumerable,
Pe = w(function () {
return arguments
}()) ? w : function (t) {
return y(t) && Ye.call(t, "callee") && !Ce.call(t, "callee")
},
je = Array.isArray,
Ae = "object" == typeof e && e && !e.nodeType && e,
Fe = Ae && "object" == typeof n && n && !n.nodeType && n,
Oe = Fe && Fe.exports === Ae,
Ie = Oe ? ce.Buffer : void 0,
Ne = Ie ? Ie.isBuffer : void 0,
Ue = Ne || M,
Re = 9007199254740991,
He = /^(?:0|[1-9]\d*)$/,
We = "[object Arguments]",
Be = "[object Array]",
qe = "[object Boolean]",
ze = "[object Date]",
Ve = "[object Error]",
Ge = "[object Function]",
$e = "[object Map]",
Je = "[object Number]",
Ke = "[object Object]",
Xe = "[object RegExp]",
Qe = "[object Set]",
Ze = "[object String]",
tn = "[object WeakMap]",
en = "[object ArrayBuffer]",
nn = "[object DataView]",
rn = "[object Float32Array]",
on = "[object Float64Array]",
an = "[object Int8Array]",
sn = "[object Int16Array]",
un = "[object Int32Array]",
ln = "[object Uint8Array]",
cn = "[object Uint8ClampedArray]",
dn = "[object Uint16Array]",
pn = "[object Uint32Array]",
hn = {};
hn[rn] = hn[on] = hn[an] = hn[sn] = hn[un] = hn[ln] = hn[cn] = hn[dn] = hn[pn] = !0, hn[We] = hn[Be] = hn[en] = hn[qe] = hn[nn] = hn[ze] = hn[Ve] = hn[Ge] = hn[$e] = hn[Je] = hn[Ke] = hn[Xe] = hn[Qe] = hn[Ze] = hn[tn] = !1;
var fn, mn = "object" == typeof e && e && !e.nodeType && e,
_n = mn && "object" == typeof n && n && !n.nodeType && n,
bn = _n && _n.exports === mn,
vn = bn && ue.process,
gn = function () {
try {
return vn && vn.binding("util")
} catch (t) {}
}(),
yn = gn && gn.isTypedArray,
wn = yn ? S(yn) : k,
Mn = Object.prototype,
Tn = Mn.hasOwnProperty,
kn = Object.prototype,
Sn = D(Object.keys, Object),
Ln = Object.prototype,
xn = Ln.hasOwnProperty,
Dn = {},
En = N(I, 1 / 0),
Yn = function (t, e, n) {
var i = _(t) ? U : En;
i(t, e, n)
},
Cn = R(H),
Pn = l(Cn),
jn = W(H),
An = N(jn, 1),
Fn = l(An),
On = u(function (t, e) {
return u(function (n) {
return t.apply(null, e.concat(n))
})
}),
In = z(),
Nn = function (t, e, n) {
function i (t, e) {
g.push(function () {
s(t, e)
})
}
function r () {
if (0 === g.length && 0 === f) return n(null, h);
for (; g.length && f < e;) {
var t = g.shift();
t()
}
}
function o (t, e) {
var n = _[t];
n || (n = _[t] = []), n.push(e)
}
function a (t) {
var e = _[t] || [];
q(e, function (t) {
t()
}), r()
}
function s (t, e) {
if (!m) {
var i = F(u(function (e, i) {
if (f--, i.length <= 1 && (i = i[0]), e) {
var r = {};
V(h, function (t, e) {
r[e] = t
}), r[t] = i, m = !0, _ = [], n(e, r)
} else h[t] = i, a(t)
}));
f++;
var r = e[e.length - 1];
e.length > 1 ? r(h, i) : r(i)
}
}
function l () {
for (var t, e = 0; y.length;) t = y.pop(), e++, q(c(t), function (t) {
0 === --w[t] && y.push(t)
});
if (e !== p) throw new Error("async.auto cannot execute tasks due to a recursive dependency")
}
function c (e) {
var n = [];
return V(t, function (t, i) {
je(t) && K(t, e, 0) >= 0 && n.push(i)
}), n
}
"function" == typeof e && (n = e, e = null), n = v(n || b);
var d = Y(t),
p = d.length;
if (!p) return n(null);
e || (e = p);
var h = {},
f = 0,
m = !1,
_ = {},
g = [],
y = [],
w = {};
V(t, function (e, n) {
if (!je(e)) return i(n, [e]), void y.push(n);
var r = e.slice(0, e.length - 1),
a = r.length;
return 0 === a ? (i(n, e), void y.push(n)) : (w[n] = a, void q(r, function (s) {
if (!t[s]) throw new Error("async.auto task `" + n + "` has a non-existent dependency in " + r.join(", "));
o(s, function () {
a--, 0 === a && i(n, e)
})
}))
}), l(), r()
},
Un = "[object Symbol]",
Rn = 1 / 0,
Hn = de ? de.prototype : void 0,
Wn = Hn ? Hn.toString : void 0,
Bn = "\\ud800-\\udfff",
qn = "\\u0300-\\u036f\\ufe20-\\ufe23",
zn = "\\u20d0-\\u20f0",
Vn = "\\ufe0e\\ufe0f",
Gn = "\\u200d",
$n = RegExp("[" + Gn + Bn + qn + zn + Vn + "]"),
Jn = "\\ud800-\\udfff",
Kn = "\\u0300-\\u036f\\ufe20-\\ufe23",
Xn = "\\u20d0-\\u20f0",
Qn = "\\ufe0e\\ufe0f",
Zn = "[" + Jn + "]",
ti = "[" + Kn + Xn + "]",
ei = "\\ud83c[\\udffb-\\udfff]",
ni = "(?:" + ti + "|" + ei + ")",
ii = "[^" + Jn + "]",
ri = "(?:\\ud83c[\\udde6-\\uddff]){2}",
oi = "[\\ud800-\\udbff][\\udc00-\\udfff]",
ai = "\\u200d",
si = ni + "?",
ui = "[" + Qn + "]?",
li = "(?:" + ai + "(?:" + [ii, ri, oi].join("|") + ")" + ui + si + ")*",
ci = ui + si + li,
di = "(?:" + [ii + ti + "?", ti, ri, oi, Zn].join("|") + ")",
pi = RegExp(ei + "(?=" + ei + ")|" + di + ci, "g"),
hi = /^\s+|\s+$/g,
fi = /^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,
mi = /,/,
_i = /(=.+)?(\s*)$/,
bi = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,
vi = "function" == typeof i && i,
gi = "object" == typeof r && "function" == typeof r.nextTick;
fn = vi ? i : gi ? r.nextTick : pt;
var yi = ht(fn);
ft.prototype.removeLink = function (t) {
return t.prev ? t.prev.next = t.next : this.head = t.next, t.next ? t.next.prev = t.prev : this.tail = t.prev, t.prev = t.next = null, this.length -= 1, t
}, ft.prototype.empty = ft, ft.prototype.insertAfter = function (t, e) {
e.prev = t, e.next = t.next, t.next ? t.next.prev = e : this.tail = e, t.next = e, this.length += 1
}, ft.prototype.insertBefore = function (t, e) {
e.prev = t.prev, e.next = t, t.prev ? t.prev.next = e : this.head = e, t.prev = e, this.length += 1
}, ft.prototype.unshift = function (t) {
this.head ? this.insertBefore(this.head, t) : mt(this, t)
}, ft.prototype.push = function (t) {
this.tail ? this.insertAfter(this.tail, t) : mt(this, t)
}, ft.prototype.shift = function () {
return this.head && this.removeLink(this.head)
}, ft.prototype.pop = function () {
return this.tail && this.removeLink(this.tail)
};
var wi, Mi = N(I, 1),
Ti = u(function (t) {
return u(function (e) {
var n = this,
i = e[e.length - 1];
"function" == typeof i ? e.pop() : i = b, vt(t, e, function (t, e, i) {
e.apply(n, t.concat([u(function (t, e) {
i(t, e)
})]))
}, function (t, e) {
i.apply(n, [t].concat(e))
})
})
}),
ki = u(function (t) {
return Ti.apply(null, t.reverse())
}),
Si = R(gt),
Li = yt(gt),
xi = u(function (t) {
var e = [null].concat(t);
return se(function (t, n) {
return n.apply(this, e)
})
}),
Di = wt(Yn, s, Mt),
Ei = wt(I, s, Mt),
Yi = wt(Mi, s, Mt),
Ci = Tt("dir"),
Pi = N(Yt, 1),
ji = wt(Yn, Pt, Pt),
Ai = wt(I, Pt, Pt),
Fi = N(Ai, 1),
Oi = R(Ot),
Ii = W(Ot),
Ni = N(Ii, 1),
Ui = Tt("log"),
Ri = N(Nt, 1 / 0),
Hi = N(Nt, 1);
wi = gi ? r.nextTick : vi ? i : pt;
var Wi = ht(wi),
Bi = function (t, e) {
return _t(function (e, n) {
t(e[0], n)
}, e, 1)
},
qi = function (t, e) {
var n = Bi(t, e);
return n.push = function (t, e, i) {
if (null == i && (i = b), "function" != typeof i) throw new Error("task callback must be a function");
if (n.started = !0, je(t) || (t = [t]), 0 === t.length) return yi(function () {
n.drain()
});
e = e || 0;
for (var r = n._tasks.head; r && e >= r.priority;) r = r.next;
for (var o = 0, a = t.length; o < a; o++) {
var s = {
data: t[o],
priority: e,
callback: i
};
r ? n._tasks.insertBefore(r, s) : n._tasks.push(s)
}
yi(n.process)
}, delete n.unshift, n
},
zi = Array.prototype.slice,
Vi = R(Gt),
Gi = W(Gt),
$i = N(Gi, 1),
Ji = function (t, e) {
return e || (e = t, t = null), se(function (n, i) {
function r (t) {
e.apply(null, n.concat([t]))
}
t ? Kt(t, r, i) : Kt(r, i)
})
},
Ki = wt(Yn, Boolean, s),
Xi = wt(I, Boolean, s),
Qi = N(Xi, 1),
Zi = Math.ceil,
tr = Math.max,
er = N(ee, 1 / 0),
nr = N(ee, 1),
ir = function (t, e) {
function n (r) {
if (i === t.length) return e.apply(null, [null].concat(r));
var o = F(u(function (t, i) {
return t ? e.apply(null, [t].concat(i)) : void n(i)
}));
r.push(o);
var a = t[i++];
a.apply(null, r)
}
if (e = v(e || b), !je(t)) return e(new Error("First argument to waterfall must be an array of functions"));
if (!t.length) return e();
var i = 0;
n([])
},
rr = {
applyEach: Pn,
applyEachSeries: Fn,
apply: On,
asyncify: B,
auto: Nn,
autoInject: dt,
cargo: bt,
compose: ki,
concat: Si,
concatSeries: Li,
constant: xi,
detect: Di,
detectLimit: Ei,
detectSeries: Yi,
dir: Ci,
doDuring: kt,
doUntil: Lt,
doWhilst: St,
during: xt,
each: Et,
eachLimit: Yt,
eachOf: Yn,
eachOfLimit: I,
eachOfSeries: Mi,
eachSeries: Pi,
ensureAsync: Ct,
every: ji,
everyLimit: Ai,
everySeries: Fi,
filter: Oi,
filterLimit: Ii,
filterSeries: Ni,
forever: It,
log: Ui,
map: Cn,
mapLimit: jn,
mapSeries: An,
mapValues: Ri,
mapValuesLimit: Nt,
mapValuesSeries: Hi,
memoize: Rt,
nextTick: Wi,
parallel: Wt,
parallelLimit: Bt,
priorityQueue: qi,
queue: Bi,
race: qt,
reduce: vt,
reduceRight: zt,
reflect: Vt,
reflectAll: $t,
reject: Vi,
rejectLimit: Gi,
rejectSeries: $i,
retry: Kt,
retryable: Ji,
seq: Ti,
series: Xt,
setImmediate: yi,
some: Ki,
someLimit: Xi,
someSeries: Qi,
sortBy: Qt,
timeout: Zt,
times: er,
timesLimit: ee,
timesSeries: nr,
transform: ne,
unmemoize: ie,
until: oe,
waterfall: ir,
whilst: re,
all: ji,
any: Ki,
forEach: Et,
forEachSeries: Pi,
forEachLimit: Yt,
forEachOf: Yn,
forEachOfSeries: Mi,
forEachOfLimit: I,
inject: vt,
foldl: vt,
foldr: zt,
select: Oi,
selectLimit: Ii,
selectSeries: Ni,
wrapSync: B
};
e.default = rr, e.applyEach = Pn, e.applyEachSeries = Fn, e.apply = On, e.asyncify = B, e.auto = Nn, e.autoInject = dt, e.cargo = bt, e.compose = ki, e.concat = Si, e.concatSeries = Li, e.constant = xi, e.detect = Di, e.detectLimit = Ei, e.detectSeries = Yi, e.dir = Ci, e.doDuring = kt, e.doUntil = Lt, e.doWhilst = St, e.during = xt, e.each = Et, e.eachLimit = Yt, e.eachOf = Yn, e.eachOfLimit = I, e.eachOfSeries = Mi, e.eachSeries = Pi, e.ensureAsync = Ct, e.every = ji, e.everyLimit = Ai, e.everySeries = Fi, e.filter = Oi, e.filterLimit = Ii, e.filterSeries = Ni, e.forever = It, e.log = Ui, e.map = Cn, e.mapLimit = jn, e.mapSeries = An, e.mapValues = Ri, e.mapValuesLimit = Nt, e.mapValuesSeries = Hi, e.memoize = Rt, e.nextTick = Wi, e.parallel = Wt, e.parallelLimit = Bt, e.priorityQueue = qi, e.queue = Bi, e.race = qt, e.reduce = vt, e.reduceRight = zt, e.reflect = Vt, e.reflectAll = $t, e.reject = Vi, e.rejectLimit = Gi, e.rejectSeries = $i, e.retry = Kt, e.retryable = Ji, e.seq = Ti, e.series = Xt, e.setImmediate = yi, e.some = Ki, e.someLimit = Xi, e.someSeries = Qi, e.sortBy = Qt, e.timeout = Zt, e.times = er, e.timesLimit = ee, e.timesSeries = nr, e.transform = ne, e.unmemoize = ie, e.until = oe, e.waterfall = ir, e.whilst = re, e.all = ji, e.allLimit = Ai, e.allSeries = Fi, e.any = Ki, e.anyLimit = Xi, e.anySeries = Qi, e.find = Di, e.findLimit = Ei, e.findSeries = Yi, e.forEach = Et, e.forEachSeries = Pi, e.forEachLimit = Yt, e.forEachOf = Yn, e.forEachOfSeries = Mi, e.forEachOfLimit = I, e.inject = vt, e.foldl = vt, e.foldr = zt, e.select = Oi, e.selectLimit = Ii, e.selectSeries = Ni, e.wrapSync = B, Object.defineProperty(e, "__esModule", {
value: !0
})
})
})
.call(e, function () {
return this
}(), n(538)(t), n(296)
.setImmediate, n(295))
}, function (t, e) {
t.exports = function (t) {
return t.webpackPolyfill || (t.deprecate = function () {}, t.paths = [], t.children = [], t.webpackPolyfill = 1), t
}
}, function (t, e, n) {
function i () {
this.attributes({
api: !1
}), this.after("initialize", function () {
this.on(document, "ui:institutions:search.init", r)
})
}
function r (t, e) {
this.attr.api.institutions.search({
hint: e.query,
limit: 100
})
.then(function (t) {
this.trigger("data:institutions:search.success", {
suggestions: t,
query: e.query
})
}.bind(this))
}
var o = n(305);
t.exports = o.component(i)
}, function (t, e, n) {
function i () {
this.attributes({
w: 1,
h: 1,
xpos: .5,
confettiCount: 350,
duration: 15e3
}), this.after("initialize", function () {
this.step = l.bind(this), this.initConfetti = a.bind(this), this.showConfetti = o.bind(this), this.on(window, "resize", s), this.on(document, "keyup", r()), this.on(document, "mousemove", function (t) {
this.attr.xpos = t.pageX / this.attr.w
})
})
}
function r () {
var t = "";
return function (e) {
/113302022928$/.test(t += [e.which - 37]) && this.showConfetti()
}
}
function o () {
this.attr.canvas || this.initConfetti(), cancelAnimationFrame(this.attr.animation), clearTimeout(this.attr.lifetime), this.attr.canvas.show(), this.attr.stoped = !1, this.step(), window.scrollBy(0, 1), this.attr.lifetime = setTimeout(function () {
this.attr.stoped = !0, this.attr.canvas.hide()
}.bind(this), this.attr.duration)
}
function a () {
this.attr.canvas = $("<canvas />")
.appendTo("body"), this.attr.context = this.attr.canvas[0].getContext("2d"), this.attr.canvas.css({
left: 0,
pointerEvents: "none",
position: "fixed",
top: 0
}), s.call(this);
for (var t = this.attr.confetti = [], e = this.attr, n = this.attr.confettiCount; n--;) t.push(new c(e))
}
function s () {
if (this.attr.w = window.innerWidth, this.attr.h = window.innerHeight, this.attr.canvas) {
var t = this.attr.canvas[0];
t.width = window.innerWidth, t.height = window.innerHeight
}
}
function u (t, e, n, i, r) {
t.beginPath(), t.arc(e, n, i, 0, h, !1), t.fillStyle = r, t.fill()
}
function l () {
if (this.attr.context.clearRect(0, 0, this.attr.w, this.attr.h), !this.attr.stoped) {
for (var t = this.attr.confetti, e = t.length; e--;) t[e].draw();
this.attr.animation = requestAnimationFrame(this.step)
}
}
function c (t) {
this.attr = t, this.style = f[p(0, 4)], this.rgb = "rgba(" + this.style[0] + "," + this.style[1] + "," + this.style[2], this.r = p(2, 6), this.r2 = 2 * this.r, this.replace()
}
var d = n(305),
p = n(541),
h = 2 * Math.PI,
f = [
[85, 71, 106],
[174, 61, 99],
[219, 56, 83],
[244, 92, 68],
[248, 182, 70]
];
t.exports = d.component(i), window.requestAnimationFrame = function () {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (t) {
return window.setTimeout(t, 1e3 / 60)
}
}(), window.cancelAnimationFrame = function () {
return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || function (t) {
window.clearTimeout(t)
}
}(), c.prototype.replace = function () {
this.opacity = 0, this.dop = .05 * p(1, 4), this.x = p(-this.r2, this.attr.w - this.r2), this.y = p(-20, this.attr.h - this.r2), this.xmax = this.attr.w - this.r, this.ymax = this.attr.h - this.r, this.vx = p(0, 2) + 8 * this.attr.xpos - 5, this.vy = .7 * this.r + p(-1, 1)
}, c.prototype.draw = function () {
this.attr.stoped || (this.x += this.vx, this.y += this.vy, this.opacity += this.dop, this.opacity > 1 && (this.opacity = 1, this.dop *= -1), (this.opacity < 0 || this.y > this.ymax) && this.replace(), 0 < this.x && this.x < this.xmax || (this.x = (this.x + this.xmax) % this.xmax), u(this.attr.context, this.x, this.y, this.r, this.rgb + "," + this.opacity + ")"))
}
}, function (t, e, n) {
function i (t, e, n) {
n && o(t, e, n) && (e = n = void 0);
var i = null == t,
u = null == e;
if (null == n && (u && "boolean" == typeof t ? (n = t, t = 1): "boolean" == typeof e && (n = e, u = !0)),
i && u && (e = 1, u = !1), t = +t || 0, u ? (e = t, t = 0): e = +e || 0, n || t % 1 || e % 1
)
{
var l = s();
return a(t + l * (e - t + parseFloat("1e-" + ((l + "")
.length - 1))), e)
}
return r(t, e)
}
var r = n(542),
o = n(405),
a = Math.min,
s = Math.random;
t.exports = i
}, function (t, e) {
function n (t, e) {
return t + i(r() * (e - t + 1))
}
var i = Math.floor,
r = Math.random;
t.exports = n
}, function (t, e, n) {
function i () {
this.attributes({
contentSelector: ".flash-notifications",
errorBlockSelector: ".flash-notifications .error-block",
events: {
error: ["data:ghost:publications:list.error", "data:orcid:import.error", "ui:photo:upload.error.size", "ui:photo:upload.error.type", "ui:photo:upload:camera.error", "data:photo:upload.error", "data:followers:follow.error", "data:followers:unfollow.error", "data:co-authors:list.error", "data:profile:update.error", "data:profile:settingsHavePublications.error", "data:interests:update.error", "data:publications:import.error", "data:publications:remove.error", "data:publications:save-reference.error", "data:publications:edit.error", "data:publications:create.error", "data:publication:fetch.error", "data:education:upsert.error", "data:education:delete.error", "data:employment:upsert.error", "data:employment:delete.error", "data:editorships:upsert.error", "data:editorships:delete.error", "data:message:send.error.generic", "data:message:send.error.restricted", "data:message:send.error.limited", "data:profile:scopus-unclaim.error"],
warning: ["data:authentication.required"],
info: ["ui:followBack.pending"],
success: ["data:orcid:import.success", "ui:followBack.success", "data:photo:upload.success", "data:profile:update.success", "data:profile:settingsHavePublications.success", "data:interests:update.success", "data:education:upsert.success", "data:education:delete.success", "data:employment:upsert.success", "data:employment:delete.success", "data:editorships:upsert.success", "data:editorships:delete.success", "data:message:send.success", "data:publications:import.success", "data:publications:remove.success", "data:publications:edit.success", "data:publications:create.success", "data:publication:fetch.success", "data:profile:scopus-unclaim.success"]
},
speed: 300,
duration: 5e3
}), this.after("initialize", function () {
var t;
for (t in this.attr.events) this.attr.events[t].length && this.on(document, this.attr.events[t].join(" "), r.bind(this, t))
})
}
function r (t, e, n) {
var i = e.type.split(/:|-/)
.join("_") + "_" + e.namespace,
r = o(t, i, n);
"error" === t && this.select("errorBlockSelector")
.remove(), this.select("contentSelector")
.prepend(r), setTimeout(a(r, this.attr.speed), this.attr.duration)
}
function o (t, e, n) {
return n = n || {}, n[e] = !0, n.notificationType = t, $(u.render(n))
}
function a (t, e) {
var n = function () {
t.fadeOut(e, function () {
t.remove()
})
};
return n
}
var s = n(305),
u = n(544);
t.exports = s.component(i)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="'), i.b(i.v(i.f("notificationType", t, e, 0))), i.b('-block">'), i.b("\n" + n), i.b(' <p class="with-icon-before">'), i.b("\n" + n), i.s(i.f("data_ghost_publications_list_error", t, e, 1), t, e, 0, 115, 182, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Something went wrong!<br>"),
i.b("\n" + n), i.b(" Please try again later."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_orcid_import_success", t, e, 1), t, e, 0, 257, 1312, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.s(i.f("isConnectOnly", t, e, 1), t, e, 0, 282, 331, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your ORCID iD is now connected."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isConnectOnly", t, e, 1), t, e, 1, 0, 0, "") || (i.s(i.f("retreivedProfileInfo", t, e, 1), t, e, 0, 409, 986, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" The following information has been imported from ORCID:<br>"), i.b("\n" + n), i.s(i.f("biography", t, e, 1), t, e, 0, 506, 547, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Biography<br>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("education", t, e, 1), t, e, 0, 589, 630, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Education<br>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("employment", t, e, 1), t, e, 0, 673, 715, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Employment<br>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("keywords", t, e, 1), t, e, 0, 757, 797, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Keywords<br>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("works", t, e, 1), t, e, 0, 834, 871, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Works<br>"), i.b("\n" + n)
}), t.pop()), i.b(" If you are missing information, this could be because of your ORCID privacy settings."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("retreivedProfileInfo", t, e, 1), t, e, 1, 0, 0, "") || (i.b(" We have successfully connected your ORCID profile, but have been unable to import any profile information.<br>"), i.b("\n" + n), i.b(" This is usually because you have set your ORCID profile to be private."), i.b("\n" + n)))
}), t.pop()), i.b("\n" + n), i.s(i.f("data_orcid_import_error", t, e, 1), t, e, 0, 1376, 1487, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Something went wrong!<br>"), i.b("\n" + n), i.b(" Please try again later or contact Support if the problem continues."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("ui_photo_upload_error_size", t, e, 1), t, e, 0, 1552, 1631, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Image size is too large (max "), i.b(i.v(i.f("imageLimitMB", t, e, 0))), i.b("MB), please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("ui_photo_upload_error_type", t, e, 1), t, e, 0, 1699, 1764, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Only JPG and PNG files are allowed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("ui_photo_upload_camera_error", t, e, 1), t, e, 0, 1834, 1887, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" There was an error accessing your camera."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_photo_upload_success", t, e, 1), t, e, 0, 1956, 1995, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Photo updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_photo_upload_error", t, e, 1), t, e, 0, 2059, 2135, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your profile photo has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_update_error", t, e, 1), t, e, 0, 2199, 2269, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your profile has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_update_success", t, e, 1), t, e, 0, 2337, 2378, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Profile updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_settingsHavePublications_success", t, e, 1), t, e, 0, 2466, 2515, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your profile was successfully updated"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_settingsHavePublications_error", t, e, 1), t, e, 0, 2619, 2689, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your profile has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_interests_update_error", t, e, 1), t, e, 0, 2775, 2856, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your research interests has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_interests_update_success", t, e, 1), t, e, 0, 2928, 2980, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Research interests updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("ui_followBack_success", t, e, 1), t, e, 0, 3046, 3101, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Congratulations, you’re now following back!"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("ui_followBack_pending", t, e, 1), t, e, 0, 3159, 3194, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Awaiting user approval."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_followers_follow_error", t, e, 1), t, e, 0, 3258, 3329, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, following this profile has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_followers_unfollow_error", t, e, 1), t, e, 0, 3401, 3474, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, unfollowing this profile has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_co-authors_list_error", t, e, 1), t, e, 0, 3545, 3615, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, retrieving co-authors has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_message_send_error_generic", t, e, 1), t, e, 0, 3688, 3757, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, sending your message has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_message_send_error_limited", t, e, 1), t, e, 0, 3835, 3915, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, message not sent. You have exceeded your daily message limit."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_message_send_error_restricted", t, e, 1), t, e, 0, 3996, 4078, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, message not sent. The recipient has turned off email messaging."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_message_send_success", t, e, 1), t, e, 0, 4153, 4205, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your message has been sent successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_education_upsert_error", t, e, 1), t, e, 0, 4273, 4353, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your education history has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_education_delete_error", t, e, 1), t, e, 0, 4423, 4501, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, deleting your education entry has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_education_upsert_success", t, e, 1), t, e, 0, 4573, 4624, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Education history updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_education_delete_success", t, e, 1), t, e, 0, 4698, 4747, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Education entry deleted successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_employment_upsert_error", t, e, 1), t, e, 0, 4820, 4901, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your employment history has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_employment_delete_error", t, e, 1), t, e, 0, 4973, 5052, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, deleting your employment entry has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_employment_upsert_success", t, e, 1), t, e, 0, 5126, 5178, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Employment history updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_employment_delete_success", t, e, 1), t, e, 0, 5254, 5304, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Employment entry deleted successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_editorships_upsert_error", t, e, 1), t, e, 0, 5381, 5469, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your editorships history has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_editorships_delete_error", t, e, 1), t, e, 0, 5545, 5631, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, deleting your editorships entry has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_editorships_upsert_success", t, e, 1), t, e, 0, 5709, 5768, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Editorships history updated successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_editorships_delete_success", t, e, 1), t, e, 0, 5848, 5905, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Editorships entry deleted successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_import_success", t, e, 1), t, e, 0, 5984, 6046, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your publications have been imported successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_import_error", t, e, 1), t, e, 0, 6124, 6201, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, importing your publications have failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_remove_success", t, e, 1), t, e, 0, 6279, 6338, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your publication has been removed successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_edit_success", t, e, 1), t, e, 0, 6416, 6474, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your publication has been edited successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_remove_error", t, e, 1), t, e, 0, 6550, 6624, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, removing your publication has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_edit_error", t, e, 1), t, e, 0, 6698, 6773, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, editing your publication has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_reference_error", t, e, 1), t, e, 0, 6850, 6919, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, saving the reference has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_authentication_required", t, e, 1), t, e, 0, 6996, 7033, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Redirecting to sign-in..."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_create_success", t, e, 1), t, e, 0, 7109, 7168, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Your publication has been created successfully."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publications_create_error", t, e, 1), t, e, 0, 7246, 7320, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, creating your publication has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publication_fetch_success", t, e, 1), t, e, 0, 7396, 7438, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Metadata successfully fetched."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_publication_fetch_error", t, e, 1), t, e, 0, 7512, 7586, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, fetching your publication has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_scopus_unclaim_success", t, e, 1), t, e, 0, 7665, 7706, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Profile successfully updated."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("data_profile_scopus_unclaim_error", t, e, 1), t, e, 0, 7790, 7860, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Sorry, updating your profile has failed, please try again."), i.b("\n" + n)
}), t.pop()), i.b(" </p>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="{{notificationType}}-block">\n <p class="with-icon-before">\n {{#data_ghost_publications_list_error}}\n Something went wrong!<br>\n Please try again later.\n {{/data_ghost_publications_list_error}}\n\n {{#data_orcid_import_success}}\n {{#isConnectOnly}}\n Your ORCID iD is now connected.\n {{/isConnectOnly}}\n\n {{^isConnectOnly}}\n {{#retreivedProfileInfo}}\n The following information has been imported from ORCID:<br>\n {{#biography}}\n Biography<br>\n {{/biography}}\n\n {{#education}}\n Education<br>\n {{/education}}\n\n {{#employment}}\n Employment<br>\n {{/employment}}\n\n {{#keywords}}\n Keywords<br>\n {{/keywords}}\n\n {{#works}}\n Works<br>\n {{/works}}\n If you are missing information, this could be because of your ORCID privacy settings.\n {{/retreivedProfileInfo}}\n\n {{^retreivedProfileInfo}}\n We have successfully connected your ORCID profile, but have been unable to import any profile information.<br>\n This is usually because you have set your ORCID profile to be private.\n {{/retreivedProfileInfo}}\n {{/isConnectOnly}}\n {{/data_orcid_import_success}}\n\n {{#data_orcid_import_error}}\n Something went wrong!<br>\n Please try again later or contact Support if the problem continues.\n {{/data_orcid_import_error}}\n\n {{#ui_photo_upload_error_size}}\n Image size is too large (max {{imageLimitMB}}MB), please try again.\n {{/ui_photo_upload_error_size}}\n\n {{#ui_photo_upload_error_type}}\n Only JPG and PNG files are allowed, please try again.\n {{/ui_photo_upload_error_type}}\n\n {{#ui_photo_upload_camera_error}}\n There was an error accessing your camera.\n {{/ui_photo_upload_camera_error}}\n\n {{#data_photo_upload_success}}\n Photo updated successfully.\n {{/data_photo_upload_success}}\n\n {{#data_photo_upload_error}}\n Sorry, updating your profile photo has failed, please try again.\n {{/data_photo_upload_error}}\n\n {{#data_profile_update_error}}\n Sorry, updating your profile has failed, please try again.\n {{/data_profile_update_error}}\n\n {{#data_profile_update_success}}\n Profile updated successfully.\n {{/data_profile_update_success}}\n\n {{#data_profile_settingsHavePublications_success}}\n Your profile was successfully updated\n {{/data_profile_settingsHavePublications_success}}\n\n {{#data_profile_settingsHavePublications_error}}\n Sorry, updating your profile has failed, please try again.\n {{/data_profile_settingsHavePublications_error}}\n\n {{#data_interests_update_error}}\n Sorry, updating your research interests has failed, please try again.\n {{/data_interests_update_error}}\n\n {{#data_interests_update_success}}\n Research interests updated successfully.\n {{/data_interests_update_success}}\n\n {{#ui_followBack_success}}\n Congratulations, you’re now following back!\n {{/ui_followBack_success}}\n\n {{#ui_followBack_pending}}\n Awaiting user approval.\n {{/ui_followBack_pending}}\n\n {{#data_followers_follow_error}}\n Sorry, following this profile has failed, please try again.\n {{/data_followers_follow_error}}\n\n {{#data_followers_unfollow_error}}\n Sorry, unfollowing this profile has failed, please try again.\n {{/data_followers_unfollow_error}}\n\n {{#data_co-authors_list_error}}\n Sorry, retrieving co-authors has failed, please try again.\n {{/data_co-authors_list_error}}\n\n {{#data_message_send_error_generic}}\n Sorry, sending your message has failed, please try again.\n {{/data_message_send_error_generic}}\n\n {{#data_message_send_error_limited}}\n Sorry, message not sent. You have exceeded your daily message limit.\n {{/data_message_send_error_limited}}\n\n {{#data_message_send_error_restricted}}\n Sorry, message not sent. The recipient has turned off email messaging.\n {{/data_message_send_error_restricted}}\n\n {{#data_message_send_success}}\n Your message has been sent successfully.\n {{/data_message_send_success}}\n\n {{#data_education_upsert_error}}\n Sorry, updating your education history has failed, please try again.\n {{/data_education_upsert_error}}\n\n {{#data_education_delete_error}}\n Sorry, deleting your education entry has failed, please try again.\n {{/data_education_delete_error}}\n\n {{#data_education_upsert_success}}\n Education history updated successfully.\n {{/data_education_upsert_success}}\n\n {{#data_education_delete_success}}\n Education entry deleted successfully.\n {{/data_education_delete_success}}\n\n {{#data_employment_upsert_error}}\n Sorry, updating your employment history has failed, please try again.\n {{/data_employment_upsert_error}}\n\n {{#data_employment_delete_error}}\n Sorry, deleting your employment entry has failed, please try again.\n {{/data_employment_delete_error}}\n\n {{#data_employment_upsert_success}}\n Employment history updated successfully.\n {{/data_employment_upsert_success}}\n\n {{#data_employment_delete_success}}\n Employment entry deleted successfully.\n {{/data_employment_delete_success}}\n\n {{#data_editorships_upsert_error}}\n Sorry, updating your editorships history has failed, please try again.\n {{/data_editorships_upsert_error}}\n\n {{#data_editorships_delete_error}}\n Sorry, deleting your editorships entry has failed, please try again.\n {{/data_editorships_delete_error}}\n\n {{#data_editorships_upsert_success}}\n Editorships history updated successfully.\n {{/data_editorships_upsert_success}}\n\n {{#data_editorships_delete_success}}\n Editorships entry deleted successfully.\n {{/data_editorships_delete_success}}\n\n {{#data_publications_import_success}}\n Your publications have been imported successfully.\n {{/data_publications_import_success}}\n\n {{#data_publications_import_error}}\n Sorry, importing your publications have failed, please try again.\n {{/data_publications_import_error}}\n\n {{#data_publications_remove_success}}\n Your publication has been removed successfully.\n {{/data_publications_remove_success}}\n\n {{#data_publications_edit_success}}\n Your publication has been edited successfully.\n {{/data_publications_edit_success}}\n\n {{#data_publications_remove_error}}\n Sorry, removing your publication has failed, please try again.\n {{/data_publications_remove_error}}\n\n {{#data_publications_edit_error}}\n Sorry, editing your publication has failed, please try again.\n {{/data_publications_edit_error}}\n\n {{#data_publications_reference_error}}\n Sorry, saving the reference has failed, please try again.\n {{/data_publications_reference_error}}\n\n {{#data_authentication_required}}\n Redirecting to sign-in...\n {{/data_authentication_required}}\n\n {{#data_publications_create_success}}\n Your publication has been created successfully.\n {{/data_publications_create_success}}\n\n {{#data_publications_create_error}}\n Sorry, creating your publication has failed, please try again.\n {{/data_publications_create_error}}\n\n {{#data_publication_fetch_success}}\n Metadata successfully fetched.\n {{/data_publication_fetch_success}}\n\n {{#data_publication_fetch_error}}\n Sorry, fetching your publication has failed, please try again.\n {{/data_publication_fetch_error}}\n\n {{#data_profile_scopus_unclaim_success}}\n Profile successfully updated.\n {{/data_profile_scopus_unclaim_success}}\n\n {{#data_profile_scopus_unclaim_error}}\n Sorry, updating your profile has failed, please try again.\n {{/data_profile_scopus_unclaim_error}}\n </p>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
function i () {
this.attributes({
inputSelector: "[type=file]",
buttonSelector: "button",
canvasSelector: "canvas",
loadingSelector: ".js-loading",
setProfileImageSelector: ".js-set-profile-image",
canvasSize: 350,
window: window,
cropWrapperSelector: ".crop-wrapper",
imagePreviewSelector: ".file-preview",
rotateLeftSelector: ".js-rotate-left",
rotateRightSelector: ".js-rotate-right",
rotateIconsSelector: ".rotate-icons",
fileUploadTabSelector: 'li[data-tab="file"]',
fileUploadContentSelector: 'div[data-tab="file"]',
fileInputTriggerSelector: ".js-file-input-trigger",
recording: !0,
countdown: 0,
videoSelector: "video",
cameraTabSelector: 'li[data-tab="camera"]',
cameraContentSelector: 'div[data-tab="camera"]',
cameraFooterButtons: ".js-camera-buttons",
streamCanvasSelector: ".js-stream-canvas",
capturePhotoCanvasSelector: ".js-capture-photo-canvas",
takePhotoButtonSelector: ".js-take-photo",
retakePhotoButtonSelector: ".js-retake-photo",
cameraConsentSelector: ".camera-consent",
photoSuggestionCanvasSelector: "#photo-suggested"
}), this.after("initialize", function () {
var t = this;
S(), this.attr.toggleUsingCSS = !0, this.attr.handleEscapeKey = !0;
var e = this.attr.window.navigator,
i = e.getUserMedia || e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia || e.oGetUserMedia;
i && (this.getUserMedia = i.bind(e)), this.getUserMedia || (this.select("fileUploadTabSelector")
.hide(), this.select("cameraTabSelector")
.hide()), this.renderFrame = _.bind(this), this.onChange = l, this.imagePreview = d, this.uploadingStatus = w, this.drawImageToCanvas = p, this.takePhoto = b, this.initialiseCropper = T, this.initialiseRotateButtons = k, this.renderSuggestionCanvas = o, this.calculateResizedImage = a, this.checkPhotoUploadHash = L, this.checkforProfilePicture = x, this.showPhotoUploadModal = D, this.setAutoOpenModalCookie = E, this.on("change", {
inputSelector: l
}), this.on("click", {
fileUploadTabSelector: s,
fileInputTriggerSelector: c,
setProfileImageSelector: y,
cameraTabSelector: h,
takePhotoButtonSelector: v,
retakePhotoButtonSelector: h
}), this.on(document, "data:photo:upload.success data:photo:upload.error", function () {
t.close()
}), this.after("close", M), this.on(document, "ui:photo:suggestion.selected", r), this.initiatePhotoSuggestion = r.bind(this), this.attr.profile = n(502), this.on(document, "ui:photo:suggestions.empty ui:photo:suggestions.error", D), this.on(document, "ui:photo:suggestions.success", E), this.on(document, "page:components.loaded", function () {
"#add-photo" !== this.attr.WB_wombat_self_location.hash && this.checkforProfilePicture()
})
})
}
function r (t, e) {
var n = R.filePreview.render();
this.select("fileUploadContentSelector")
.html(n), this.select("loadingSelector")
.html(R.loading.render());
var i = this.select("imagePreviewSelector")
.get(0);
i.src = e.src, this.select("imagePreviewSelector")
.css("visibility", "hidden");
var r = new Image,
o = e.getAttribute("data-src");
r.onload = function () {
this.renderSuggestionCanvas(i, r), this.initialiseCropper(i), this.initialiseRotateButtons(), this.select("loadingSelector")
.html("")
}.bind(this), r.onerror = function () {
this.trigger("data:photo:upload.error")
}.bind(this), r.src = o
}
function o (t, e) {
if (e.naturalWidth >= 1e3) {
var n = this.select("photoSuggestionCanvasSelector")
.get(0),
i = n.getContext("2d"),
r = this.calculateResizedImage(e.naturalWidth, e.naturalHeight, 1e3, 1e3);
n.width = r.width, n.height = r.height, i.drawImage(e, 0, 0, r.width, r.height);
var o = n.toDataURL();
t.src = o
} else t.src = e.src
}
function a (t, e, n, i) {
var r = Math.min(n / t, i / e);
return t *= r, e *= r, {
width: t,
height: e
}
}
function s () {
var t = R.fileUpload.render();
g.call(this), this.select("fileUploadContentSelector")
.html(t)
}
function u () {
var t = R.camera.render();
this.select("cameraContentSelector")
.html(t)
}
function l (t) {
var e = t.target.files[0],
n = R.filePreview.render();
e && (e.type && F.test(e.type) ? e.size && e.size < I ? (this.select("fileUploadContentSelector")
.html(n), this.imagePreview(e), this.trigger("ui:photo:upload.track.method", {
method: "Upload Photo"
})) : this.trigger("ui:photo:upload.error.size", {
imageLimitMB: O
}) : this.trigger("ui:photo:upload.error.type"))
}
function c () {
this.select("inputSelector")
.trigger("click")
}
function d (t) {
var e = this.select("imagePreviewSelector")
.get(0),
n = new FileReader;
e.onload = function () {
this.initialiseCropper(e), this.initialiseRotateButtons()
}.bind(this), n.onloadend = function () {
e.src = n.result
}, n.readAsDataURL(t)
}
function p (t, e, n) {
var i = this.attr.canvasSize,
r = Math.min(e.width, e.height),
o = r,
a = 0,
s = 0;
e.width > e.height ? a = (e.width - e.height) / 2 : s = (e.height - e.width) / 2, n.save(), e.mirror && n.scale(-1, 1), n.drawImage(t, a, s, r, o, 0, 0, e.mirror ? -i : i, i), n.restore()
}
function h () {
s.call(this), this.attr.recording = !0, u.call(this), A ? f.call(this, A) : this.getUserMedia({
video: !0
}, f.bind(this), function () {
this.trigger("ui:photo:upload:camera.error")
}.bind(this)), this.trigger("ui:photo:upload.track.method", {
method: "Take Photo"
})
}
function f (t) {
var e = this.select("videoSelector")
.get(0);
A = t, this.select("buttonSelector")
.prop("disabled", !1), this.select("cameraConsentSelector")
.remove(), e.src = this.attr.window.URL.createObjectURL(t), this.attr.window.requestAnimationFrame(this.renderFrame)
}
function m () {
A && (A.getVideoTracks && A.getVideoTracks()[0].stop(), A.stop && A.stop()), A = null
}
function _ (t) {
var e = this.select("streamCanvasSelector")
.get(0)
.getContext("2d"),
n = this.select("videoSelector")
.get(0);
if (this.drawImageToCanvas(n, {
width: n.videoWidth,
height: n.videoHeight,
mirror: !0
}, e), this.attr.countdownStarted) {
this.attr.countdownTimestamp || (this.attr.countdownTimestamp = t);
var i = t - this.attr.countdownTimestamp,
r = i % 1e3,
o = P.easing.easeOutExpo(r, 72, 24, 1e3),
a = 3 - Math.floor(i / 1e3),
s = (1 - P.easing.easeInExpo(r, 0, 1, 1e3))
.toFixed(2);
a > 0 ? (e.save(), e.shadowColor = "rgba(50, 50, 50," + s + ")", e.shadowOffsetX = 0, e.shadowOffsetY = 1, e.shadowBlur = 3, e.font = Math.ceil(o) + 'px "Arial", sans-serif', e.textAlign = "center", e.textBaseline = "middle", e.fillStyle = "rgba(255, 255, 255," + s + ")", e.fillText(a, this.attr.canvasSize / 2, this.attr.canvasSize / 2), e.restore()) : (g.call(this), this.takePhoto())
}
this.attr.recording && this.attr.window.requestAnimationFrame(this.renderFrame)
}
function b () {
this.attr.recording = !1;
var t = this.select("capturePhotoCanvasSelector")
.get(0),
e = t.getContext("2d"),
n = this.select("videoSelector")
.get(0),
i = R.cameraPreviewButtons.render();
e.canvas.width = n.videoWidth, e.canvas.height = n.videoHeight, e.drawImage(n, 0, 0), this.select("streamCanvasSelector")
.addClass("flash"), this.select("cropWrapperSelector")
.css("visibility", "hidden"), this.initialiseCropper(t), this.initialiseRotateButtons(), this.select("cropWrapperSelector")
.addClass("flash"), setTimeout(function () {
this.select("cropWrapperSelector")
.css("visibility", "visible")
.removeClass("flash")
}.bind(this), 150), this.select("cameraFooterButtons")
.html(i)
}
function v () {
this.attr.countdownStarted = !0, this.select("buttonSelector")
.prop("disabled", !0)
}
function g () {
this.attr.countdownTimestamp = null, this.attr.countdownStarted = !1
}
function y () {
this.uploadingStatus(), this.cropper.getCroppedCanvas()
.toBlob(function (t) {
this.trigger("ui:photo:upload.init", t)
}.bind(this))
}
function w () {
this.select("loadingSelector")
.html(R.loading.render()), this.select("cropWrapperSelector")
.addClass("with-opacity"), this.select("buttonSelector")
.prop("disabled", !0), this.select("inputSelector")
.prop("disabled", !0)
}
function M () {
this.select("fileUploadTabSelector")
.trigger("click"), m(), s.call(this), u.call(this)
}
function T (t) {
var e = this.select("cropWrapperSelector");
e.height(e.width()), this.cropper = new j(t, {
aspectRatio: 1,
autoCropArea: .95,
center: !1,
checkCrossOrigin: !1,
dragMode: "move",
guides: !1,
highlight: !1,
minCropBoxWidth: 10,
modal: !1,
toggleDragModeOnDblclick: !1,
viewMode: 3
}), this.select("rotateIconsSelector")
.show()
}
function k () {
this.select("rotateLeftSelector")
.on("click", function () {
this.cropper.rotate(-90)
}.bind(this)), this.select("rotateRightSelector")
.on("click", function () {
this.cropper.rotate(90)
}.bind(this))
}
function S () {
HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", {
value: function (t, e, n) {
for (var i = atob(this.toDataURL(e, n)
.split(",")[1]), r = i.length, o = new window.Uint8Array(r), a = 0; a < r; a++) o[a] = i.charCodeAt(a);
t(new Blob([o], {
type: e || "image/png"
}))
}
})
}
function L () {
"#add-photo" === this.attr.WB_wombat_self_location.hash && this.show()
}
function x () {
var t = N(this.attr.profile.get()),
e = !this.getCookie("autoOpenModalShown");
t && e && this.trigger("ui:photo:suggestions.init")
}
function D () {
this.getCookie("autoOpenModalShown") || (this.show(), this.setAutoOpenModalCookie())
}
function E () {
document.cookie = "autoOpenModalShown=true;max-age=3600;path=/"
}
var Y = n(305),
C = n(546),
P = n(349),
j = n(547),
A = null,
F = /^image\/(png|jpe?g)$/i,
O = 4,
I = 1024 * O * 1024,
N = n(532),
U = n(548),
R = {
loading: n(341),
main: n(549),
fileUpload: n(550),
filePreview: n(551),
camera: n(552),
cameraPreviewButtons: n(553)
};
t.exports = Y.component(C, i, U)
}, function (t, e, n) {
var i;
i = function (t) {
function e () {
this.attributes({
dialogSelector: ".modal-content",
activeClass: "modal-is-active",
inactiveClass: "modal-is-inactive",
aboveClass: "modal-is-above",
toggleUsingCSS: !1,
autoOpen: !1,
handleEscapeKey: !1,
handleBackdrop: !0,
closeEnabled: !0,
closeBtnSelector: ".modal-close",
fullScreenEnabled: !0,
fullScreenClass: "modal-fullscreen",
fullScreenBtnSelector: ".modal-fullscreen-btn"
}), this.show = function (t, e) {
return e && e.id !== this.node.id ? void this.$node.removeClass(this.attr.aboveClass) : (this.attr.toggleUsingCSS || this.$node.show(), this.$node.removeClass(this.attr.inactiveClass), this.$node.addClass(this.attr.activeClass), this.$node.addClass(this.attr.aboveClass), this.$htmlElem.addClass(this.attr.activeClass), this.attr.handleEscapeKey && this.on(document, "keyup.flightmodal", this.handleEscapeKey), void this.trigger(document, "uiModalShown", {
id: this.node.id
}))
}, this.close = function (t, e) {
if (this.$node.removeClass(this.attr.aboveClass), t) {
if ("click" !== t.type && e && e.id !== this.node.id) return;
t.isDefaultPrevented() || t.preventDefault()
}
this.attr.toggleUsingCSS || this.$node.hide(), this.$node.removeClass(this.attr.activeClass), this.$node.addClass(this.attr.inactiveClass), this.$htmlElem.removeClass(this.attr.activeClass), this.attr.fullScreenEnabled && this.$node.removeClass(this.attr.fullScreenClass), this.trigger(document, "uiModalHidden", {
id: this.node.id
}), this.attr.handleEscapeKey && this.off(document, "keyup.flightmodal", this.handleEscapeKey)
}, this.handleEscapeKey = function (t) {
t && 27 === t.keyCode && this.trigger(document, "uiModalCloseRequested", {
id: this.node.id
})
}, this.closeBackdrop = function (t) {
this.attr.handleBackdrop && t.target.id === this.node.id && this.close()
}, this.toggleFullScreen = function (t, e) {
var n = "uiModalFullScreenEnabled";
t && !t.isDefaultPrevented() && t.preventDefault(), this.$node.toggleClass(this.attr.fullScreenClass), this.$node.hasClass(this.attr.fullScreenClass) || (n = "uiModalFullScreenDisabled"), this.trigger(document, n, {
id: this.node.id
})
}, this.teardownModal = function (t, e) {
e && e.id === this.node.id && this.teardown()
}, this.before("teardown", this.close), this.after("initialize", function () {
this.$htmlElem = $("html"), this.attr.autoOpen && this.show(), this.on(document, "uiModalRequested", this.show), this.on(document, "uiModalTeardownAll", this.teardown), this.on(document, "uiModalTeardown", this.teardownModal), this.attr.fullScreenEnabled && (this.on("click", {
fullScreenBtnSelector: this.toggleFullScreen
}), this.on(document, "uiModalToggleFullScreen", this.toggleFullScreen)), this.attr.closeEnabled && (this.on(document, "uiModalCloseRequested", this.close), this.on("click", {
closeBtnSelector: this.close
}), this.on("click", this.closeBackdrop))
})
}
return e
}.call(e, n, e, t), !(void 0 !== i && (t.exports = i))
}, function (t, e, n) {
var i, r;
/*!
* Cropper.js v0.7.2
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2015-2016 Fengyuan Chen
* Released under the MIT license
*
* Date: 2016-06-08T12:25:05.932Z
*/
!function (e, n) {
"object" == typeof t && "object" == typeof t.exports ? t.exports = e.document ? n(e, !0) : function (t) {
if (!t.document) throw new Error("Cropper requires a window with a document");
return n(t)
} : n(e)
}("undefined" != typeof window ? window : this, function (n, o) {
function a (t) {
return pe.call(t)
.slice(8, -1)
.toLowerCase()
}
function s (t) {
return "number" == typeof t && !isNaN(t)
}
function u (t) {
return "undefined" == typeof t
}
function l (t) {
return "object" == typeof t && null !== t
}
function c (t) {
var e, n;
if (!l(t)) return !1;
try {
return e = t.constructor, n = e.prototype, e && n && he.call(n, "isPrototypeOf")
} catch (t) {
return !1
}
}
function d (t) {
return "function" === a(t)
}
function p (t) {
return nt.isArray ? nt.isArray(t) : "array" === a(t)
}
function h (t, e) {
return e = e >= 0 ? e : 0, nt.from ? nt.from(t)
.slice(e) : fe.call(t, e)
}
function f (t) {
return "string" == typeof t && (t = t.trim ? t.trim() : t.replace(jt, "$1")), t
}
function m (t, e) {
var n, i;
if (t && d(e))
if (p(t) || s(t.length))
for (i = 0, n = t.length; i < n && e.call(t, t[i], i, t) !== !1; i++);
else if (l(t))
for (i in t)
if (t.hasOwnProperty(i) && e.call(t, t[i], i, t) === !1) break;
return t
}
function _ (t) {
var e;
if (arguments.length > 1) {
if (e = h(arguments), et.assign) return et.assign.apply(et, e);
e.shift(), m(e, function (e) {
m(e, function (e, n) {
t[n] = e
})
})
}
return t
}
function b (t, e) {
var n = h(arguments, 2);
return function () {
return t.apply(e, n.concat(h(arguments)))
}
}
function v (t, e) {
var n = t.style;
m(e, function (t, e) {
Ct.test(e) && s(t) && (t += "px"), n[e] = t
})
}
function g (t, e) {
return t.classList ? t.classList.contains(e) : t.className.indexOf(e) > -1
}
function y (t, e) {
var n;
return s(t.length) ? m(t, function (t) {
y(t, e)
}) : t.classList ? t.classList.add(e) : (n = f(t.className), void(n ? n.indexOf(e) < 0 && (t.className = n + " " + e) : t.className = e))
}
function w (t, e) {
return s(t.length) ? m(t, function (t) {
w(t, e)
}) : t.classList ? t.classList.remove(e) : void(t.className.indexOf(e) >= 0 && (t.className = t.className.replace(e, "")))
}
function M (t, e, n) {
return s(t.length) ? m(t, function (t) {
M(t, e, n)
}) : void(n ? y(t, e) : w(t, e))
}
function T (t) {
return t.replace(Nt, "$1-$2")
.toLowerCase()
}
function k (t, e) {
return l(t[e]) ? t[e] : t.dataset ? t.dataset[e] : t.getAttribute("data-" + T(e))
}
function S (t, e, n) {
l(n) ? t[e] = n : t.dataset ? t.dataset[e] = n : t.setAttribute("data-" + T(e), n)
}
function L (t, e) {
l(t[e]) ? delete t[e] : t.dataset ? delete t.dataset[e] : t.removeAttribute("data-" + T(e))
}
function x (t, e, n) {
var i = f(e)
.split(At);
return i.length > 1 ? m(i, function (e) {
x(t, e, n)
}) : void(t.removeEventListener ? t.removeEventListener(e, n, !1) : t.detachEvent && t.detachEvent("on" + e, n))
}
function D (t, e, n, i) {
var r = f(e)
.split(At),
o = n;
return r.length > 1 ? m(r, function (e) {
D(t, e, n)
}) : (i && (n = function () {
return x(t, e, n), o.apply(t, arguments)
}), void(t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent && t.attachEvent("on" + e, n)))
}
function E (t, e, n) {
var i;
return t.dispatchEvent ? (d(Event) && d(CustomEvent) ? i = u(n) ? new Event(e, {
bubbles: !0,
cancelable: !0
}) : new CustomEvent(e, {
detail: n,
bubbles: !0,
cancelable: !0
}) : u(n) ? (i = X.createEvent("Event"), i.initEvent(e, !0, !0)) : (i = X.createEvent("CustomEvent"), i.initCustomEvent(e, !0, !0, n)), t.dispatchEvent(i)) : t.fireEvent ? t.fireEvent("on" + e) : void 0
}
function Y (t) {
t.preventDefault ? t.preventDefault() : t.returnValue = !1
}
function C (t) {
var e, i = t || n.event;
return i.target || (i.target = i.srcElement || X), s(i.pageX) || (e = X.documentElement, i.pageX = i.clientX + (n.scrollX || e && e.scrollLeft || 0) - (e && e.clientLeft || 0), i.pageY = i.clientY + (n.scrollY || e && e.scrollTop || 0) - (e && e.clientTop || 0)), i
}
function P (t) {
var e = X.documentElement,
i = t.getBoundingClientRect();
return {
left: i.left + (n.scrollX || e && e.scrollLeft || 0) - (e && e.clientLeft || 0),
top: i.top + (n.scrollY || e && e.scrollTop || 0) - (e && e.clientTop || 0)
}
}
function j (t) {
var e = t.length,
n = 0,
i = 0;
return e && (m(t, function (t) {
n += t.pageX, i += t.pageY
}), n /= e, i /= e), {
pageX: n,
pageY: i
}
}
function A (t, e) {
return t.getElementsByTagName(e)
}
function F (t, e) {
return t.getElementsByClassName ? t.getElementsByClassName(e) : t.querySelectorAll("." + e)
}
function O (t) {
return X.createElement(t)
}
function I (t, e) {
t.appendChild(e)
}
function N (t) {
t.parentNode && t.parentNode.removeChild(t)
}
function U (t) {
for (; t.firstChild;) t.removeChild(t.firstChild)
}
function R (t) {
var e = t.match(Pt);
return e && (e[1] !== Q.protocol || e[2] !== Q.hostname || e[3] !== Q.port)
}
function H (t) {
var e = "timestamp=" + (new Date)
.getTime();
return t + (t.indexOf("?") === -1 ? "?" : "&") + e
}
function W (t, e) {
var n;
return t.naturalWidth && !ee ? e(t.naturalWidth, t.naturalHeight) : (n = O("img"), n.onload = function () {
e(this.width, this.height)
}, void(n.src = t.src))
}
function B (t) {
var e = [],
n = t.rotate,
i = t.scaleX,
r = t.scaleY;
return s(i) && s(r) && e.push("scale(" + i + "," + r + ")"), s(n) && e.push("rotate(" + n + "deg)"), e.length ? e.join(" ") : "none"
}
function q (t, e) {
var n, i, r = re(t.degree) % 180,
o = (r > 90 ? 180 - r : r) * ce / 180,
a = oe(o),
s = ae(o),
u = t.width,
l = t.height,
c = t.aspectRatio;
return e ? (n = u / (s + a / c), i = n / c) : (n = u * s + l * a, i = u * a + l * s), {
width: n,
height: i
}
}
function z (t, e) {
var n, i, r, o = O("canvas"),
a = o.getContext("2d"),
u = 0,
l = 0,
c = e.naturalWidth,
d = e.naturalHeight,
p = e.rotate,
h = e.scaleX,
f = e.scaleY,
m = s(h) && s(f) && (1 !== h || 1 !== f),
_ = s(p) && 0 !== p,
b = _ || m,
v = c * re(h || 1),
g = d * re(f || 1);
return m && (n = v / 2, i = g / 2), _ && (r = q({
width: v,
height: g,
degree: p
}), v = r.width, g = r.height, n = v / 2, i = g / 2), o.width = v, o.height = g, b && (u = -c / 2, l = -d / 2, a.save(), a.translate(n, i)), m && a.scale(h, f), _ && a.rotate(p * ce / 180), a.drawImage(t, le(u), le(l), le(c), le(d)), b && a.restore(), o
}
function V (t, e, n) {
var i = "",
r = e;
for (n += e; r < n; r++) i += me(t.getUint8(r));
return i
}
function G (t) {
var e, n, i, r, o, a, s, u, l, c, d = new DataView(t),
p = d.byteLength;
if (255 === d.getUint8(0) && 216 === d.getUint8(1))
for (l = 2; l < p;) {
if (255 === d.getUint8(l) && 225 === d.getUint8(l + 1)) {
s = l;
break
}
l++
}
if (s && (n = s + 4, i = s + 10, "Exif" === V(d, n, 4) && (a = d.getUint16(i), o = 18761 === a, (o || 19789 === a) && 42 === d.getUint16(i + 2, o) && (r = d.getUint32(i + 4, o), r >= 8 && (u = i + r)))), u)
for (p = d.getUint16(u, o), c = 0; c < p; c++)
if (l = u + 12 * c + 2, 274 === d.getUint16(l, o)) {
l += 8, e = d.getUint16(l, o), ee && d.setUint16(l, 1, o);
break
}
return e
}
function $ (t) {
var e, n = t.replace(Ot, ""),
i = atob(n),
r = i.length,
o = new tt(r),
a = new Uint8Array(o);
for (e = 0; e < r; e++) a[e] = i.charCodeAt(e);
return o
}
function J (t) {
var e, n = new Uint8Array(t),
i = n.length,
r = "";
for (e = 0; e < i; e++) r += me(n[e]);
return "data:image/jpeg;base64," + btoa(r)
}
function K (t, e) {
var n = this;
n.element = t, n.options = _({}, K.DEFAULTS, c(e) && e), n.ready = !1, n.built = !1, n.complete = !1, n.rotated = !1, n.cropped = !1, n.disabled = !1, n.replaced = !1, n.limited = !1, n.wheeling = !1, n.isImg = !1, n.originalUrl = "", n.canvasData = null, n.cropBoxData = null, n.previews = null, n.init()
}
var X = n.document,
Q = n.WB_wombat_self_location,
Z = n.navigator,
tt = n.ArrayBuffer,
et = n.Object,
nt = n.Array,
it = n.String,
rt = n.Number,
ot = n.Math,
at = "cropper",
st = at + "-modal",
ut = at + "-hide",
lt = at + "-hidden",
ct = at + "-invisible",
dt = at + "-move",
pt = at + "-crop",
ht = at + "-disabled",
ft = at + "-bg",
mt = "mousedown touchstart pointerdown MSPointerDown",
_t = "mousemove touchmove pointermove MSPointerMove",
bt = "mouseup touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",
vt = "wheel mousewheel DOMMouseScroll",
gt = "dblclick",
yt = "resize",
wt = "error",
Mt = "load",
Tt = "build",
kt = "built",
St = "cropstart",
Lt = "cropmove",
xt = "cropend",
Dt = "crop",
Et = "zoom",
Yt = /e|w|s|n|se|sw|ne|nw|all|crop|move|zoom/,
Ct = /width|height|left|top|marginLeft|marginTop/,
Pt = /^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i,
jt = /^\s+(.*)\s+$/,
At = /\s+/,
Ft = /^data\:/,
Ot = /^data\:([^\;]+)\;base64,/,
It = /^data\:image\/jpeg.*;base64,/,
Nt = /([a-z\d])([A-Z])/g,
Ut = "preview",
Rt = "action",
Ht = "e",
Wt = "w",
Bt = "s",
qt = "n",
zt = "se",
Vt = "sw",
Gt = "ne",
$t = "nw",
Jt = "all",
Kt = "crop",
Xt = "move",
Qt = "zoom",
Zt = "none",
te = !!X.createElement("canvas")
.getContext,
ee = Z && /(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(Z.userAgent),
ne = ot.min,
ie = ot.max,
re = ot.abs,
oe = ot.sin,
ae = ot.cos,
se = ot.sqrt,
ue = ot.round,
le = ot.floor,
ce = ot.PI,
de = et.prototype,
pe = de.toString,
he = de.hasOwnProperty,
fe = nt.prototype.slice,
me = it.fromCharCode;
K.prototype = {
constructor: K,
init: function () {
var t, e = this,
n = e.element,
i = n.tagName.toLowerCase();
if (!k(n, at)) {
if (S(n, at, e), "img" === i) {
if (e.isImg = !0, e.originalUrl = t = n.getAttribute("src"), !t) return;
t = n.src
} else "canvas" === i && te && (t = n.toDataURL());
e.load(t)
}
},
load: function (t) {
var e, n = this,
i = n.options,
r = n.element;
if (t && (d(i.build) && D(r, Tt, i.build, !0), E(r, Tt) !== !1)) {
if (n.url = t, n.imageData = {}, !i.checkOrientation || !tt) return n.clone();
if (Ft.test(t)) return It.test(t) ? n.read($(t)) : n.clone();
e = new XMLHttpRequest, e.onerror = e.onabort = function () {
n.clone()
}, e.onload = function () {
n.read(this.response)
}, i.checkCrossOrigin && R(t) && r.crossOrigin && (t = H(t)), e.open("get", t), e.responseType = "arraybuffer", e.send()
}
},
read: function (t) {
var e, n, i, r = this,
o = r.options,
a = G(t),
s = r.imageData;
if (a > 1) switch (r.url = J(t), a) {
case 2:
n = -1;
break;
case 3:
e = -180;
break;
case 4:
i = -1;
break;
case 5:
e = 90, i = -1;
break;
case 6:
e = 90;
break;
case 7:
e = 90, n = -1;
break;
case 8:
e = -90
}
o.rotatable && (s.rotate = e), o.scalable && (s.scaleX = n, s.scaleY = i), r.clone()
},
clone: function () {
var t, e, n, i, r, o = this,
a = o.element,
s = o.url;
o.options.checkCrossOrigin && R(s) && (t = a.crossOrigin, t ? e = s : (t = "anonymous", e = H(s))), o.crossOrigin = t, o.crossOriginUrl = e, n = O("img"), t && (n.crossOrigin = t), n.src = e || s, o.image = n, o._start = i = b(o.start, o), o._stop = r = b(o.stop, o), o.isImg ? a.complete ? o.start() : D(a, Mt, i) : (D(n, Mt, i), D(n, wt, r), y(n, ut), a.parentNode.insertBefore(n, a.nextSibling))
},
start: function (t) {
var e = this,
n = e.isImg ? e.element : e.image;
t && (x(n, Mt, e._start), x(n, wt, e._stop)), W(n, function (t, n) {
_(e.imageData, {
naturalWidth: t,
naturalHeight: n,
aspectRatio: t / n
}), e.ready = !0, e.build()
})
},
stop: function () {
var t = this,
e = t.image;
x(e, Mt, t._start), x(e, wt, t._stop), N(e), t.image = null
},
build: function () {
var t, e, n, i, r, o, a, s = this,
u = s.options,
l = s.element,
c = s.image;
s.ready && (s.built && s.unbuild(), e = O("div"), e.innerHTML = K.TEMPLATE, s.container = t = l.parentNode, s.cropper = n = F(e, "cropper-container")[0], s.canvas = i = F(n, "cropper-canvas")[0], s.dragBox = r = F(n, "cropper-drag-box")[0], s.cropBox = o = F(n, "cropper-crop-box")[0], s.viewBox = F(n, "cropper-view-box")[0], s.face = a = F(o, "cropper-face")[0], I(i, c), y(l, lt), t.insertBefore(n, l.nextSibling), s.isImg || w(c, ut), s.initPreview(), s.bind(), u.aspectRatio = ie(0, u.aspectRatio) || NaN, u.viewMode = ie(0, ne(3, ue(u.viewMode))) || 0, u.autoCrop ? (s.cropped = !0, u.modal && y(r, st)) : y(o, lt), u.guides || y(F(o, "cropper-dashed"), lt), u.center || y(F(o, "cropper-center"), lt), u.background && y(n, ft), u.highlight || y(a, ct), u.cropBoxMovable && (y(a, dt), S(a, Rt, Jt)), u.cropBoxResizable || (y(F(o, "cropper-line"), lt), y(F(o, "cropper-point"), lt)), s.setDragMode(u.dragMode), s.render(), s.built = !0, s.setData(u.data), setTimeout(function () {
d(u.built) && D(l, kt, u.built, !0), E(l, kt), E(l, Dt, s.getData()), s.complete = !0
}, 0))
},
unbuild: function () {
var t = this;
t.built && (t.built = !1, t.complete = !1, t.initialImageData = null, t.initialCanvasData = null, t.initialCropBoxData = null, t.containerData = null, t.canvasData = null, t.cropBoxData = null, t.unbind(), t.resetPreview(), t.previews = null, t.viewBox = null, t.cropBox = null, t.dragBox = null, t.canvas = null, t.container = null, N(t.cropper), t.cropper = null)
},
render: function () {
var t = this;
t.initContainer(), t.initCanvas(), t.initCropBox(), t.renderCanvas(), t.cropped && t.renderCropBox()
},
initContainer: function () {
var t, e = this,
n = e.options,
i = e.element,
r = e.container,
o = e.cropper;
y(o, lt), w(i, lt), e.containerData = t = {
width: ie(r.offsetWidth, rt(n.minContainerWidth) || 200),
height: ie(r.offsetHeight, rt(n.minContainerHeight) || 100)
}, v(o, {
width: t.width,
height: t.height
}), y(i, lt), w(o, lt)
},
initCanvas: function () {
var t, e = this,
n = e.options.viewMode,
i = e.containerData,
r = e.imageData,
o = 90 === re(r.rotate),
a = o ? r.naturalHeight : r.naturalWidth,
s = o ? r.naturalWidth : r.naturalHeight,
u = a / s,
l = i.width,
c = i.height;
i.height * u > i.width ? 3 === n ? l = i.height * u : c = i.width / u : 3 === n ? c = i.width / u : l = i.height * u, t = {
naturalWidth: a,
naturalHeight: s,
aspectRatio: u,
width: l,
height: c
}, t.oldLeft = t.left = (i.width - l) / 2, t.oldTop = t.top = (i.height - c) / 2, e.canvasData = t, e.limited = 1 === n || 2 === n, e.limitCanvas(!0, !0), e.initialImageData = _({}, r), e.initialCanvasData = _({}, t)
},
limitCanvas: function (t, e) {
var n, i, r, o, a = this,
s = a.options,
u = s.viewMode,
l = a.containerData,
c = a.canvasData,
d = c.aspectRatio,
p = a.cropBoxData,
h = a.cropped && p;
t && (n = rt(s.minCanvasWidth) || 0, i = rt(s.minCanvasHeight) || 0, u > 1 ? (n = ie(n, l.width), i = ie(i, l.height), 3 === u && (i * d > n ? n = i * d : i = n / d)) : u > 0 && (n ? n = ie(n, h ? p.width : 0) : i ? i = ie(i, h ? p.height : 0) : h && (n = p.width, i = p.height, i * d > n ? n = i * d : i = n / d)), n && i ? i * d > n ? i = n / d : n = i * d : n ? i = n / d : i && (n = i * d), c.minWidth = n, c.minHeight = i, c.maxWidth = 1 / 0, c.maxHeight = 1 / 0), e && (u ? (r = l.width - c.width, o = l.height - c.height, c.minLeft = ne(0, r), c.minTop = ne(0, o), c.maxLeft = ie(0, r), c.maxTop = ie(0, o), h && a.limited && (c.minLeft = ne(p.left, p.left + p.width - c.width), c.minTop = ne(p.top, p.top + p.height - c.height), c.maxLeft = p.left, c.maxTop = p.top, 2 === u && (c.width >= l.width && (c.minLeft = ne(0, r), c.maxLeft = ie(0, r)), c.height >= l.height && (c.minTop = ne(0, o), c.maxTop = ie(0, o))))) : (c.minLeft = -c.width, c.minTop = -c.height, c.maxLeft = l.width, c.maxTop = l.height))
},
renderCanvas: function (t) {
var e, n, i = this,
r = i.canvasData,
o = i.imageData,
a = o.rotate;
i.rotated && (i.rotated = !1, n = q({
width: o.width,
height: o.height,
degree: a
}), e = n.width / n.height, e !== r.aspectRatio && (r.left -= (n.width - r.width) / 2, r.top -= (n.height - r.height) / 2, r.width = n.width, r.height = n.height, r.aspectRatio = e, r.naturalWidth = o.naturalWidth, r.naturalHeight = o.naturalHeight, a % 180 && (n = q({
width: o.naturalWidth,
height: o.naturalHeight,
degree: a
}), r.naturalWidth = n.width, r.naturalHeight = n.height), i.limitCanvas(!0, !1))), (r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = ne(ie(r.width, r.minWidth), r.maxWidth), r.height = ne(ie(r.height, r.minHeight), r.maxHeight), i.limitCanvas(!1, !0), r.oldLeft = r.left = ne(ie(r.left, r.minLeft), r.maxLeft), r.oldTop = r.top = ne(ie(r.top, r.minTop), r.maxTop), v(i.canvas, {
width: r.width,
height: r.height,
left: r.left,
top: r.top
}), i.renderImage(), i.cropped && i.limited && i.limitCropBox(!0, !0), t && i.output()
},
renderImage: function (t) {
var e, n, i, r, o, a = this,
s = a.canvasData,
u = a.imageData;
u.rotate && (n = q({
width: s.width,
height: s.height,
degree: u.rotate,
aspectRatio: u.aspectRatio
}, !0), i = n.width, r = n.height, e = {
width: i,
height: r,
left: (s.width - i) / 2,
top: (s.height - r) / 2
}), _(u, e || {
width: s.width,
height: s.height,
left: 0,
top: 0
}), o = B(u), v(a.image, {
width: u.width,
height: u.height,
marginLeft: u.left,
marginTop: u.top,
WebkitTransform: o,
msTransform: o,
transform: o
}), t && a.output()
},
initCropBox: function () {
var t = this,
e = t.options,
n = e.aspectRatio,
i = rt(e.autoCropArea) || .8,
r = t.canvasData,
o = {
width: r.width,
height: r.height
};
n && (r.height * n > r.width ? o.height = o.width / n : o.width = o.height * n), t.cropBoxData = o, t.limitCropBox(!0, !0), o.width = ne(ie(o.width, o.minWidth), o.maxWidth), o.height = ne(ie(o.height, o.minHeight), o.maxHeight), o.width = ie(o.minWidth, o.width * i), o.height = ie(o.minHeight, o.height * i), o.oldLeft = o.left = r.left + (r.width - o.width) / 2, o.oldTop = o.top = r.top + (r.height - o.height) / 2, t.initialCropBoxData = _({}, o)
},
limitCropBox: function (t, e) {
var n, i, r, o, a = this,
s = a.options,
u = s.aspectRatio,
l = a.containerData,
c = a.canvasData,
d = a.cropBoxData,
p = a.limited;
t && (n = rt(s.minCropBoxWidth) || 0, i = rt(s.minCropBoxHeight) || 0, n = ne(n, l.width), i = ne(i, l.height), r = ne(l.width, p ? c.width : l.width), o = ne(l.height, p ? c.height : l.height), u && (n && i ? i * u > n ? i = n / u : n = i * u : n ? i = n / u : i && (n = i * u), o * u > r ? o = r / u : r = o * u), d.minWidth = ne(n, r), d.minHeight = ne(i, o), d.maxWidth = r, d.maxHeight = o), e && (p ? (d.minLeft = ie(0, c.left), d.minTop = ie(0, c.top), d.maxLeft = ne(l.width, c.left + c.width) - d.width, d.maxTop = ne(l.height, c.top + c.height) - d.height) : (d.minLeft = 0, d.minTop = 0, d.maxLeft = l.width - d.width, d.maxTop = l.height - d.height))
},
renderCropBox: function () {
var t = this,
e = t.options,
n = t.containerData,
i = t.cropBoxData;
(i.width > i.maxWidth || i.width < i.minWidth) && (i.left = i.oldLeft), (i.height > i.maxHeight || i.height < i.minHeight) && (i.top = i.oldTop), i.width = ne(ie(i.width, i.minWidth), i.maxWidth), i.height = ne(ie(i.height, i.minHeight), i.maxHeight), t.limitCropBox(!1, !0), i.oldLeft = i.left = ne(ie(i.left, i.minLeft), i.maxLeft), i.oldTop = i.top = ne(ie(i.top, i.minTop), i.maxTop), e.movable && e.cropBoxMovable && S(t.face, Rt, i.width === n.width && i.height === n.height ? Xt : Jt), v(t.cropBox, {
width: i.width,
height: i.height,
left: i.left,
top: i.top
}), t.cropped && t.limited && t.limitCanvas(!0, !0), t.disabled || t.output()
},
output: function () {
var t = this;
t.preview(), t.complete && E(t.element, Dt, t.getData())
},
initPreview: function () {
var t, e = this,
n = e.options.preview,
i = O("img"),
r = e.crossOrigin,
o = r ? e.crossOriginUrl : e.url;
r && (i.crossOrigin = r), i.src = o, I(e.viewBox, i), e.image2 = i, n && (e.previews = t = X.querySelectorAll(n), m(t, function (t) {
var e = O("img");
S(t, Ut, {
width: t.offsetWidth,
height: t.offsetHeight,
html: t.innerHTML
}), r && (e.crossOrigin = r), e.src = o, e.style.cssText = 'display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"', U(t), I(t, e)
}))
},
resetPreview: function () {
m(this.previews, function (t) {
var e = k(t, Ut);
v(t, {
width: e.width,
height: e.height
}), t.innerHTML = e.html, L(t, Ut)
})
},
preview: function () {
var t = this,
e = t.imageData,
n = t.canvasData,
i = t.cropBoxData,
r = i.width,
o = i.height,
a = e.width,
s = e.height,
u = i.left - n.left - e.left,
l = i.top - n.top - e.top,
c = B(e),
d = {
WebkitTransform: c,
msTransform: c,
transform: c
};
t.cropped && !t.disabled && (v(t.image2, _({
width: a,
height: s,
marginLeft: -u,
marginTop: -l
}, d)), m(t.previews, function (t) {
var e = k(t, Ut),
n = e.width,
i = e.height,
c = n,
p = i,
h = 1;
r && (h = n / r, p = o * h), o && p > i && (h = i / o, c = r * h, p = i), v(t, {
width: c,
height: p
}), v(A(t, "img")[0], _({
width: a * h,
height: s * h,
marginLeft: -u * h,
marginTop: -l * h
}, d))
}))
},
bind: function () {
var t = this,
e = t.options,
i = t.element,
r = t.cropper;
d(e.cropstart) && D(i, St, e.cropstart), d(e.cropmove) && D(i, Lt, e.cropmove), d(e.cropend) && D(i, xt, e.cropend), d(e.crop) && D(i, Dt, e.crop), d(e.zoom) && D(i, Et, e.zoom), D(r, mt, t._cropStart = b(t.cropStart, t)), e.zoomable && e.zoomOnWheel && D(r, vt, t._wheel = b(t.wheel, t)), e.toggleDragModeOnDblclick && D(r, gt, t._dblclick = b(t.dblclick, t)), D(X, _t, t._cropMove = b(t.cropMove, t)), D(X, bt, t._cropEnd = b(t.cropEnd, t)), e.responsive && D(n, yt, t._resize = b(t.resize, t))
},
unbind: function () {
var t = this,
e = t.options,
i = t.element,
r = t.cropper;
d(e.cropstart) && x(i, St, e.cropstart), d(e.cropmove) && x(i, Lt, e.cropmove), d(e.cropend) && x(i, xt, e.cropend), d(e.crop) && x(i, Dt, e.crop), d(e.zoom) && x(i, Et, e.zoom), x(r, mt, t._cropStart), e.zoomable && e.zoomOnWheel && x(r, vt, t._wheel), e.toggleDragModeOnDblclick && x(r, gt, t._dblclick), x(X, _t, t._cropMove), x(X, bt, t._cropEnd), e.responsive && x(n, yt, t._resize)
},
resize: function () {
var t, e, n, i = this,
r = i.options.restore,
o = i.container,
a = i.containerData;
!i.disabled && a && (n = o.offsetWidth / a.width, 1 === n && o.offsetHeight === a.height || (r && (t = i.getCanvasData(), e = i.getCropBoxData()), i.render(), r && (i.setCanvasData(m(t, function (e, i) {
t[i] = e * n
})), i.setCropBoxData(m(e, function (t, i) {
e[i] = t * n
})))))
},
dblclick: function () {
var t = this;
t.disabled || t.setDragMode(g(t.dragBox, pt) ? Xt : Kt)
},
wheel: function (t) {
var e = this,
n = C(t),
i = rt(e.options.wheelZoomRatio) || .1,
r = 1;
e.disabled || (Y(n), e.wheeling || (e.wheeling = !0, setTimeout(function () {
e.wheeling = !1
}, 50), n.deltaY ? r = n.deltaY > 0 ? 1 : -1 : n.wheelDelta ? r = -n.wheelDelta / 120 : n.detail && (r = n.detail > 0 ? 1 : -1), e.zoom(-r * i, n)))
},
cropStart: function (t) {
var e, n, i, r = this,
o = r.options,
a = C(t),
s = a.touches;
if (!r.disabled) {
if (s) {
if (e = s.length, e > 1) {
if (!o.zoomable || !o.zoomOnTouch || 2 !== e) return;
n = s[1], r.startX2 = n.pageX, r.startY2 = n.pageY, i = Qt
}
n = s[0]
}
if (i = i || k(a.target, Rt), Yt.test(i)) {
if (E(r.element, St, {
originalEvent: a,
action: i
}) === !1) return;
Y(a), r.action = i, r.cropping = !1, r.startX = n ? n.pageX : a.pageX, r.startY = n ? n.pageY : a.pageY, i === Kt && (r.cropping = !0, y(r.dragBox, st))
}
}
},
cropMove: function (t) {
var e, n, i = this,
r = i.options,
o = C(t),
a = o.touches,
s = i.action;
if (!i.disabled) {
if (a) {
if (e = a.length, e > 1) {
if (!r.zoomable || !r.zoomOnTouch || 2 !== e) return;
n = a[1], i.endX2 = n.pageX, i.endY2 = n.pageY
}
n = a[0]
}
if (s) {
if (E(i.element, Lt, {
originalEvent: o,
action: s
}) === !1) return;
Y(o), i.endX = n ? n.pageX : o.pageX, i.endY = n ? n.pageY : o.pageY, i.change(o.shiftKey, s === Qt ? o : null)
}
}
},
cropEnd: function (t) {
var e = this,
n = e.options,
i = C(t),
r = e.action;
e.disabled || r && (Y(i), e.cropping && (e.cropping = !1, M(e.dragBox, st, e.cropped && n.modal)), e.action = "", E(e.element, xt, {
originalEvent: i,
action: r
}))
},
change: function (t, e) {
var n, i, r = this,
o = r.options,
a = o.aspectRatio,
s = r.action,
u = r.containerData,
l = r.canvasData,
c = r.cropBoxData,
d = c.width,
p = c.height,
h = c.left,
f = c.top,
m = h + d,
_ = f + p,
b = 0,
v = 0,
g = u.width,
y = u.height,
M = !0;
switch (!a && t && (a = d && p ? d / p : 1), r.limited && (b = c.minLeft, v = c.minTop, g = b + ne(u.width, l.left + l.width), y = v + ne(u.height, l.top + l.height)), i = {
x: r.endX - r.startX,
y: r.endY - r.startY
}, a && (i.X = i.y * a, i.Y = i.x / a), s) {
case Jt:
h += i.x, f += i.y;
break;
case Ht:
if (i.x >= 0 && (m >= g || a && (f <= v || _ >= y))) {
M = !1;
break
}
d += i.x, a && (p = d / a, f -= i.Y / 2), d < 0 && (s = Wt, d = 0);
break;
case qt:
if (i.y <= 0 && (f <= v || a && (h <= b || m >= g))) {
M = !1;
break
}
p -= i.y, f += i.y, a && (d = p * a, h += i.X / 2), p < 0 && (s = Bt, p = 0);
break;
case Wt:
if (i.x <= 0 && (h <= b || a && (f <= v || _ >= y))) {
M = !1;
break
}
d -= i.x, h += i.x, a && (p = d / a, f += i.Y / 2), d < 0 && (s = Ht, d = 0);
break;
case Bt:
if (i.y >= 0 && (_ >= y || a && (h <= b || m >= g))) {
M = !1;
break
}
p += i.y, a && (d = p * a, h -= i.X / 2), p < 0 && (s = qt, p = 0);
break;
case Gt:
if (a) {
if (i.y <= 0 && (f <= v || m >= g)) {
M = !1;
break
}
p -= i.y, f += i.y, d = p * a
} else i.x >= 0 ? m < g ? d += i.x : i.y <= 0 && f <= v && (M = !1) : d += i.x, i.y <= 0 ? f > v && (p -= i.y, f += i.y) : (p -= i.y, f += i.y);
d < 0 && p < 0 ? (s = Vt, p = 0, d = 0) : d < 0 ? (s = $t, d = 0) : p < 0 && (s = zt, p = 0);
break;
case $t:
if (a) {
if (i.y <= 0 && (f <= v || h <= b)) {
M = !1;
break
}
p -= i.y, f += i.y, d = p * a, h += i.X
} else i.x <= 0 ? h > b ? (d -= i.x, h += i.x) : i.y <= 0 && f <= v && (M = !1) : (d -= i.x, h += i.x), i.y <= 0 ? f > v && (p -= i.y, f += i.y) : (p -= i.y, f += i.y);
d < 0 && p < 0 ? (s = zt, p = 0, d = 0) : d < 0 ? (s = Gt, d = 0) : p < 0 && (s = Vt, p = 0);
break;
case Vt:
if (a) {
if (i.x <= 0 && (h <= b || _ >= y)) {
M = !1;
break
}
d -= i.x, h += i.x, p = d / a
} else i.x <= 0 ? h > b ? (d -= i.x, h += i.x) : i.y >= 0 && _ >= y && (M = !1) : (d -= i.x, h += i.x), i.y >= 0 ? _ < y && (p += i.y) : p += i.y;
d < 0 && p < 0 ? (s = Gt, p = 0, d = 0) : d < 0 ? (s = zt, d = 0) : p < 0 && (s = $t, p = 0);
break;
case zt:
if (a) {
if (i.x >= 0 && (m >= g || _ >= y)) {
M = !1;
break
}
d += i.x, p = d / a
} else i.x >= 0 ? m < g ? d += i.x : i.y >= 0 && _ >= y && (M = !1) : d += i.x, i.y >= 0 ? _ < y && (p += i.y) : p += i.y;
d < 0 && p < 0 ? (s = $t, p = 0, d = 0) : d < 0 ? (s = Vt, d = 0) : p < 0 && (s = Gt, p = 0);
break;
case Xt:
r.move(i.x, i.y), M = !1;
break;
case Qt:
r.zoom(function (t, e, n, i) {
var r = se(t * t + e * e),
o = se(n * n + i * i);
return (o - r) / r
}(re(r.startX - r.startX2), re(r.startY - r.startY2), re(r.endX - r.endX2), re(r.endY - r.endY2)), e), r.startX2 = r.endX2, r.startY2 = r.endY2, M = !1;
break;
case Kt:
if (!i.x || !i.y) {
M = !1;
break
}
n = P(r.cropper), h = r.startX - n.left, f = r.startY - n.top, d = c.minWidth, p = c.minHeight, i.x > 0 ? s = i.y > 0 ? zt : Gt : i.x < 0 && (h -= d, s = i.y > 0 ? Vt : $t), i.y < 0 && (f -= p), r.cropped || (w(r.cropBox, lt), r.cropped = !0, r.limited && r.limitCropBox(!0, !0))
}
M && (c.width = d, c.height = p, c.left = h, c.top = f, r.action = s, r.renderCropBox()), r.startX = r.endX, r.startY = r.endY
},
crop: function () {
var t = this;
return t.built && !t.disabled && (t.cropped || (t.cropped = !0, t.limitCropBox(!0, !0), t.options.modal && y(t.dragBox, st), w(t.cropBox, lt)), t.setCropBoxData(t.initialCropBoxData)), t
},
reset: function () {
var t = this;
return t.built && !t.disabled && (t.imageData = _({}, t.initialImageData), t.canvasData = _({}, t.initialCanvasData), t.cropBoxData = _({}, t.initialCropBoxData), t.renderCanvas(), t.cropped && t.renderCropBox()), t
},
clear: function () {
var t = this;
return t.cropped && !t.disabled && (_(t.cropBoxData, {
left: 0,
top: 0,
width: 0,
height: 0
}), t.cropped = !1, t.renderCropBox(), t.limitCanvas(), t.renderCanvas(), w(t.dragBox, st), y(t.cropBox, lt)), t
},
replace: function (t, e) {
var n = this;
return !n.disabled && t && (n.isImg && (n.element.src = t), e ? (n.url = t, n.image.src = t, n.built && (n.image2.src = t, m(n.previews, function (e) {
A(e, "img")[0].src = t
}))) : (n.isImg && (n.replaced = !0), n.options.data = null, n.load(t))), n
},
enable: function () {
var t = this;
return t.built && (t.disabled = !1, w(t.cropper, ht)), t
},
disable: function () {
var t = this;
return t.built && (t.disabled = !0, y(t.cropper, ht)), t
},
destroy: function () {
var t = this,
e = t.element,
n = t.image;
return t.ready ? (t.isImg && t.replaced && (e.src = t.originalUrl), t.unbuild(), w(e, lt)) : t.isImg ? x(e, Mt, t.start) : n && N(n), L(e, at), t
},
move: function (t, e) {
var n = this,
i = n.canvasData;
return n.moveTo(u(t) ? t : i.left + rt(t), u(e) ? e : i.top + rt(e))
},
moveTo: function (t, e) {
var n = this,
i = n.canvasData,
r = !1;
return u(e) && (e = t), t = rt(t), e = rt(e), n.built && !n.disabled && n.options.movable && (s(t) && (i.left = t, r = !0), s(e) && (i.top = e, r = !0), r && n.renderCanvas(!0)), n
},
zoom: function (t, e) {
var n = this,
i = n.canvasData;
return t = rt(t), t = t < 0 ? 1 / (1 - t) : 1 + t, n.zoomTo(i.width * t / i.naturalWidth, e)
},
zoomTo: function (t, e) {
var n, i, r, o, a = this,
s = a.options,
u = a.canvasData,
l = u.width,
c = u.height,
d = u.naturalWidth,
p = u.naturalHeight;
if (t = rt(t), t >= 0 && a.built && !a.disabled && s.zoomable) {
if (n = d * t, i = p * t, E(a.element, Et, {
originalEvent: e,
oldRatio: l / d,
ratio: n / d
}) === !1) return a;
e ? (r = P(a.cropper), o = e.touches ? j(e.touches) : {
pageX: e.pageX,
pageY: e.pageY
}, u.left -= (n - l) * ((o.pageX - r.left - u.left) / l), u.top -= (i - c) * ((o.pageY - r.top - u.top) / c)) : (u.left -= (n - l) / 2, u.top -= (i - c) / 2), u.width = n, u.height = i, a.renderCanvas(!0)
}
return a
},
rotate: function (t) {
var e = this;
return e.rotateTo((e.imageData.rotate || 0) + rt(t))
},
rotateTo: function (t) {
var e = this;
return t = rt(t), s(t) && e.built && !e.disabled && e.options.rotatable && (e.imageData.rotate = t % 360, e.rotated = !0, e.renderCanvas(!0)), e
},
scale: function (t, e) {
var n = this,
i = n.imageData,
r = !1;
return u(e) && (e = t), t = rt(t), e = rt(e), n.built && !n.disabled && n.options.scalable && (s(t) && (i.scaleX = t, r = !0), s(e) && (i.scaleY = e, r = !0), r && n.renderImage(!0)), n
},
scaleX: function (t) {
var e = this,
n = e.imageData.scaleY;
return e.scale(t, s(n) ? n : 1)
},
scaleY: function (t) {
var e = this,
n = e.imageData.scaleX;
return e.scale(s(n) ? n : 1, t)
},
getData: function (t) {
var e, n, i = this,
r = i.options,
o = i.imageData,
a = i.canvasData,
s = i.cropBoxData;
return i.built && i.cropped ? (n = {
x: s.left - a.left,
y: s.top - a.top,
width: s.width,
height: s.height
}, e = o.width / o.naturalWidth, m(n, function (i, r) {
i /= e, n[r] = t ? ue(i) : i
})) : n = {
x: 0,
y: 0,
width: 0,
height: 0
}, r.rotatable && (n.rotate = o.rotate || 0), r.scalable && (n.scaleX = o.scaleX || 1, n.scaleY = o.scaleY || 1), n
},
setData: function (t) {
var e, n, i, r = this,
o = r.options,
a = r.imageData,
u = r.canvasData,
l = {};
return d(t) && (t = t.call(r.element)), r.built && !r.disabled && c(t) && (o.rotatable && s(t.rotate) && t.rotate !== a.rotate && (a.rotate = t.rotate, r.rotated = e = !0), o.scalable && (s(t.scaleX) && t.scaleX !== a.scaleX && (a.scaleX = t.scaleX, n = !0), s(t.scaleY) && t.scaleY !== a.scaleY && (a.scaleY = t.scaleY, n = !0)), e ? r.renderCanvas() : n && r.renderImage(), i = a.width / a.naturalWidth, s(t.x) && (l.left = t.x * i + u.left), s(t.y) && (l.top = t.y * i + u.top), s(t.width) && (l.width = t.width * i), s(t.height) && (l.height = t.height * i), r.setCropBoxData(l)), r
},
getContainerData: function () {
var t = this;
return t.built ? t.containerData : {}
},
getImageData: function () {
var t = this;
return t.ready ? t.imageData : {}
},
getCanvasData: function () {
var t = this,
e = t.canvasData,
n = {};
return t.built && m(["left", "top", "width", "height", "naturalWidth", "naturalHeight"], function (t) {
n[t] = e[t]
}), n
},
setCanvasData: function (t) {
var e = this,
n = e.canvasData,
i = n.aspectRatio;
return d(t) && (t = t.call(e.element)), e.built && !e.disabled && c(t) && (s(t.left) && (n.left = t.left), s(t.top) && (n.top = t.top), s(t.width) ? (n.width = t.width, n.height = t.width / i) : s(t.height) && (n.height = t.height, n.width = t.height * i), e.renderCanvas(!0)), e
},
getCropBoxData: function () {
var t, e = this,
n = e.cropBoxData;
return e.built && e.cropped && (t = {
left: n.left,
top: n.top,
width: n.width,
height: n.height
}), t || {}
},
setCropBoxData: function (t) {
var e, n, i = this,
r = i.cropBoxData,
o = i.options.aspectRatio;
return d(t) && (t = t.call(i.element)), i.built && i.cropped && !i.disabled && c(t) && (s(t.left) && (r.left = t.left), s(t.top) && (r.top = t.top), s(t.width) && (e = !0, r.width = t.width), s(t.height) && (n = !0, r.height = t.height), o && (e ? r.height = r.width / o : n && (r.width = r.height * o)), i.renderCropBox()), i
},
getCroppedCanvas: function (t) {
var e, n, i, r, o, a, s, u, l, d, p, h = this;
if (h.built && te) return h.cropped ? (c(t) || (t = {}), p = h.getData(), e = p.width, n = p.height, u = e / n, c(t) && (o = t.width, a = t.height, o ? (a = o / u, s = o / e): a && (o = a * u, s = a / n)), i = le(o || e), r = le(a || n), l = O("canvas"), l.width = i, l.height = r, d = l.getContext("2d"), t.fillColor && (d.fillStyle = t.fillColor, d.fillRect(0, 0, i, r)), d.drawImage.apply(d, function () {
var t, i, r, o, a, u, l = z(h.image, h.imageData),
c = l.width,
d = l.height,
f = h.canvasData,
m = [l],
_ = p.x + f.naturalWidth * (re(p.scaleX || 1) - 1) / 2,
b = p.y + f.naturalHeight * (re(p.scaleY || 1) - 1) / 2;
return _ <= -e || _ > c ? _ = t = r = a = 0 : _ <= 0 ? (r = -_, _ = 0, t = a = ne(c, e + _)): _
<=
c && (r = 0, t = a = ne(e, c - _)), t <= 0 || b <= -n || b > d ? b = i = o = u = 0 : b <= 0 ? (o = -b, b = 0, i = u = ne(d, n + b)): b
<=
d && (o = 0, i = u = ne(n, d - b)), m.push(le(_), le(b), le(t), le(i)), s && (r *= s, o *= s, a *= s, u *= s), a > 0 && u > 0 && m.push(le(r), le(o), le(a), le(u)), m
}.call(h)), l
) :
z(h.image, h.imageData)
},
setAspectRatio: function (t) {
var e = this,
n = e.options;
return e.disabled || u(t) || (n.aspectRatio = ie(0, t) || NaN, e.built && (e.initCropBox(), e.cropped && e.renderCropBox())), e
},
setDragMode: function (t) {
var e, n, i = this,
r = i.options,
o = i.dragBox,
a = i.face;
return i.ready && !i.disabled && (e = t === Kt, n = r.movable && t === Xt, t = e || n ? t : Zt, S(o, Rt, t), M(o, pt, e), M(o, dt, n), r.cropBoxMovable || (S(a, Rt, t), M(a, pt, e), M(a, dt, n))), i
}
}, K.DEFAULTS = {
viewMode: 0,
dragMode: "crop",
aspectRatio: NaN,
data: null,
preview: "",
responsive: !0,
restore: !0,
checkCrossOrigin: !0,
checkOrientation: !0,
modal: !0,
guides: !0,
center: !0,
highlight: !0,
background: !0,
autoCrop: !0,
autoCropArea: .8,
movable: !0,
rotatable: !0,
scalable: !0,
zoomable: !0,
zoomOnTouch: !0,
zoomOnWheel: !0,
wheelZoomRatio: .1,
cropBoxMovable: !0,
cropBoxResizable: !0,
toggleDragModeOnDblclick: !0,
minCanvasWidth: 0,
minCanvasHeight: 0,
minCropBoxWidth: 0,
minCropBoxHeight: 0,
minContainerWidth: 200,
minContainerHeight: 100,
build: null,
built: null,
cropstart: null,
cropmove: null,
cropend: null,
crop: null,
zoom: null
}, K.TEMPLATE = function (t, e) {
return e = e.split(","), t.replace(/\d+/g, function (t) {
return e[t]
})
}('<0 6="5-container"><0 6="5-wrap-9"><0 6="5-canvas"></0></0><0 6="5-drag-9"></0><0 6="5-crop-9"><1 6="5-view-9"></1><1 6="5-8 8-h"></1><1 6="5-8 8-v"></1><1 6="5-center"></1><1 6="5-face"></1><1 6="5-7 7-e" 3-2="e"></1><1 6="5-7 7-n" 3-2="n"></1><1 6="5-7 7-w" 3-2="w"></1><1 6="5-7 7-s" 3-2="s"></1><1 6="5-4 4-e" 3-2="e"></1><1 6="5-4 4-n" 3-2="n"></1><1 6="5-4 4-w" 3-2="w"></1><1 6="5-4 4-s" 3-2="s"></1><1 6="5-4 4-ne" 3-2="ne"></1><1 6="5-4 4-nw" 3-2="nw"></1><1 6="5-4 4-sw" 3-2="sw"></1><1 6="5-4 4-se" 3-2="se"></1></0></0>', "div,span,action,data,point,cropper,class,line,dashed,box");
var _e = n.Cropper;
return K.noConflict = function () {
return n.Cropper = _e, K
}, K.setDefaults = function (t) {
_(K.DEFAULTS, t)
}, i = [], r = function () {
return K
}.apply(e, i), !(void 0 !== r && (t.exports = r)), o || (n.Cropper = K), K
})
}, function (t, e) {
function n () {
this.getCookie = function (t) {
var e = new RegExp("(?:(?:^|.*;\\s*)" + t + "\\s*\\=\\s*([^;]*).*$)|^.*$");
return document.cookie.replace(e, "$1")
}, this.deleteCookie = function (t) {
document.cookie = t + "=; Path=/; domain=.mendeley.com; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"
}
}
t.exports = n
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="modal" id="profile-modal-photo-upload" data-size="m" data-effect="scale">'), i.b("\n" + n), i.b(' <div class="modal-content">'), i.b("\n" + n), i.b(' <div class="modal-header">'), i.b("\n" + n), i.b(" <h3>Add profile photo</h3>"), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="modal-body">'), i.b("\n" + n), i.b(' <div class="tabs js-tabs">'), i.b("\n"), i.b("\n" + n), i.b(' <ul class="nav-tabs">'), i.b("\n" + n), i.b(' <li class="active-tab" data-tab="file">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-picture">Upload Photo</span>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n), i.b(' <li data-tab="camera">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-camera">Take Photo</span>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n), i.b(" </ul>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="content-tabs">'), i.b("\n" + n), i.b(' <div data-tab="file">'), i.b("\n" + n), i.b(i.rp("<partials/modals/photo/file-upload0", t, e, " ")), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div data-tab="camera">'), i.b("\n" + n), i.b(i.rp("<partials/modals/photo/camera1", t, e, " ")), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <span class="font-icon-close modal-close with-icon-after icon-delete"></span>'), i.b("\n"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {
"<partials/modals/photo/file-upload0": {
name: "partials/modals/photo/file-upload",
partials: {},
subs: {}
},
"<partials/modals/photo/camera1": {
name: "partials/modals/photo/camera",
partials: {},
subs: {}
}
},
subs: {}
}, '<div class="modal" id="profile-modal-photo-upload" data-size="m" data-effect="scale">\n <div class="modal-content">\n <div class="modal-header">\n <h3>Add profile photo</h3>\n </div>\n\n <div class="modal-body">\n <div class="tabs js-tabs">\n\n <ul class="nav-tabs">\n <li class="active-tab" data-tab="file">\n <span class="with-icon-before icon-picture">Upload Photo</span>\n </li>\n <li data-tab="camera">\n <span class="with-icon-before icon-camera">Take Photo</span>\n </li>\n </ul>\n\n <div class="content-tabs">\n <div data-tab="file">\n {{>partials/modals/photo/file-upload}}\n </div>\n\n <div data-tab="camera">\n {{>partials/modals/photo/camera}}\n </div>\n </div>\n\n </div>\n <span class="font-icon-close modal-close with-icon-after icon-delete"></span>\n\n </div>\n </div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="row center">'), i.b("\n" + n), i.b(' <div class="column d-4-6 xs-1-1">'), i.b("\n" + n), i.b(' <div class="upload-wizard">'), i.b("\n" + n), i.b(' <form class="dropfile text-center">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-user"></span>'), i.b("\n" + n), i.b(" <p>Click to upload your photo or <br> simply drag it here</p>"), i.b("\n" + n), i.b(" <small>(For best results, use a photo bigger than 160 pixels)</small>"), i.b("\n" + n), i.b(' <input type="file" name="imgFile" accept="image/png, image/jpeg, image/gif" capture="camera">'), i.b("\n" + n), i.b(" </form>"), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="footer-buttons">'), i.b("\n" + n), i.b(' <button type="button" class="button-primary button-fluid js-file-input-trigger">Upload image</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="row center">\n <div class="column d-4-6 xs-1-1">\n <div class="upload-wizard">\n <form class="dropfile text-center">\n <span class="with-icon-before icon-user"></span>\n <p>Click to upload your photo or <br> simply drag it here</p>\n <small>(For best results, use a photo bigger than 160 pixels)</small>\n <input type="file" name="imgFile" accept="image/png, image/jpeg, image/gif" capture="camera">\n </form>\n </div>\n\n <div class="footer-buttons">\n <button type="button" class="button-primary button-fluid js-file-input-trigger">Upload image</button>\n </div>\n </div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="row center">'), i.b("\n" + n), i.b(' <div class="column d-4-6 xs-1-1 text-center">'), i.b("\n"), i.b("\n" + n), i.b(' <div class="photo-preview with-input-file-hidden">'), i.b("\n" + n), i.b(' <input type="file" name="imgFile" accept="image/png, image/jpeg, image/gif" capture="camera">'), i.b("\n"), i.b("\n" + n), i.b(' <div class="crop-wrapper"> <!-- Needed for cropping -->'), i.b("\n" + n), i.b(' <img src="" class="file-preview">'), i.b("\n" + n), i.b(' <canvas id="photo-suggested"></canvas>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="js-loading"></div>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="rotate-icons text-center">'), i.b("\n" + n), i.b(' <span class="js-rotate-left with-icon-before icon-replay"></span>'), i.b("\n" + n), i.b(' <span class="js-rotate-right with-icon-before icon-replay"></span>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="footer-buttons">'), i.b("\n" + n), i.b(' <div class="row">'), i.b("\n" + n), i.b(' <div class="column d-1-2">'), i.b("\n" + n), i.b(' <button class="button-secondary button-fluid js-file-input-trigger">Change image</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <div class="column d-1-2">'), i.b("\n" + n), i.b(' <button class="button-primary button-fluid js-set-profile-image">Set as profile picture</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="row center">\n <div class="column d-4-6 xs-1-1 text-center">\n\n <div class="photo-preview with-input-file-hidden">\n <input type="file" name="imgFile" accept="image/png, image/jpeg, image/gif" capture="camera">\n\n <div class="crop-wrapper"> <!-- Needed for cropping -->\n <img src="" class="file-preview">\n <canvas id="photo-suggested"></canvas>\n </div>\n\n <div class="js-loading"></div>\n </div>\n\n <div class="rotate-icons text-center">\n <span class="js-rotate-left with-icon-before icon-replay"></span>\n <span class="js-rotate-right with-icon-before icon-replay"></span>\n </div>\n\n <div class="footer-buttons">\n <div class="row">\n <div class="column d-1-2">\n <button class="button-secondary button-fluid js-file-input-trigger">Change image</button>\n </div>\n <div class="column d-1-2">\n <button class="button-primary button-fluid js-set-profile-image">Set as profile picture</button>\n </div>\n </div>\n </div>\n\n </div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="row center">'), i.b("\n" + n), i.b(' <div class="column d-4-6 xs-1-1">'), i.b("\n" + n), i.b(' <div class="camera-wrapper photo-preview">'), i.b("\n" + n), i.b(' <p class="text-center camera-consent">To take a photo,<br>please allow us access to your camera</p>'), i.b("\n" + n), i.b(' <video autoplay="true"></video>'), i.b("\n" + n), i.b(' <canvas class="js-stream-canvas" width="350" height="350"></canvas>'), i.b("\n"), i.b("\n" + n), i.b(' <div class="crop-wrapper"> <!-- Needed for cropping -->'), i.b("\n" + n), i.b(' <canvas class="js-capture-photo-canvas"></canvas>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n"), i.b("\n" + n), i.b(' <div class="js-loading"></div>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="rotate-icons text-center hidden">'), i.b("\n" + n), i.b(' <span class="js-rotate-left with-icon-before icon-replay"></span>'), i.b("\n" + n), i.b(' <span class="js-rotate-right with-icon-before icon-replay"></span>'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="footer-buttons js-camera-buttons">'), i.b("\n" + n), i.b(' <button type="button" disabled class="button-primary button-fluid js-take-photo">Take photo</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="row center">\n <div class="column d-4-6 xs-1-1">\n <div class="camera-wrapper photo-preview">\n <p class="text-center camera-consent">To take a photo,<br>please allow us access to your camera</p>\n <video autoplay="true"></video>\n <canvas class="js-stream-canvas" width="350" height="350"></canvas>\n\n <div class="crop-wrapper"> <!-- Needed for cropping -->\n <canvas class="js-capture-photo-canvas"></canvas>\n </div>\n\n\n <div class="js-loading"></div>\n </div>\n\n <div class="rotate-icons text-center hidden">\n <span class="js-rotate-left with-icon-before icon-replay"></span>\n <span class="js-rotate-right with-icon-before icon-replay"></span>\n </div>\n\n <div class="footer-buttons js-camera-buttons">\n <button type="button" disabled class="button-primary button-fluid js-take-photo">Take photo</button>\n </div>\n </div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="row">'), i.b("\n" + n), i.b(' <div class="column d-1-2">'), i.b("\n" + n), i.b(' <button class="button-secondary button-fluid js-retake-photo">Retake photo</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <div class="column d-1-2">'), i.b("\n" + n), i.b(' <button class="button-primary button-fluid js-set-profile-image">Set as profile picture</button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="row">\n <div class="column d-1-2">\n <button class="button-secondary button-fluid js-retake-photo">Retake photo</button>\n </div>\n <div class="column d-1-2">\n <button class="button-primary button-fluid js-set-profile-image">Set as profile picture</button>\n </div>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
function i () {
this.attributes({
imageSelector: ".small-image",
nameSelector: ".profile > a span",
linkSelector: ".profile > a"
}), this.after("initialize", function () {
this.on(document, "data:photo:upload.success", r), this.on(document, "data:profile:update.success", o)
})
}
function r (t, e) {
var n = s(e.photos, 48);
this.select("imageSelector")
.attr("src", n.url)
}
function o (t, e) {
var n = e.first_name + " " + e.last_name;
document.title = n, this.select("nameSelector")
.text(e.first_name), this.select("linkSelector")
.attr("href", e.link)
.attr("title", n)
}
var a = n(305),
s = n(424);
t.exports = a.component(i)
}, function (t, e, n) {
function i () {
this.attributes({
buttonSelector: "[data-modal]"
}), this.after("initialize", function () {
this.on("click", {
buttonSelector: r
})
})
}
function r (t) {
t.preventDefault();
var e = $(t.target)
.closest("[data-modal]");
this.trigger("uiModalTabSelected", {
tab: e.data("tab"),
modal: e.data("modal")
}), e.data("field") && this.trigger("uiModalFieldSelected", {
field: e.data("field"),
modal: e.data("modal")
}), this.trigger("uiModalRequested", {
id: e.data("modal")
}), this.trigger("data:tracking:profile:form.opened")
}
var o = n(305);
t.exports = o.component(i)
}, function (t, e, n) {
function i () {
this.attributes({
buttonSelector: ".follow-states",
isRestricted: "is-profile-restricted",
window: window
}), this.after("initialize", function () {
this.on("click", {
buttonSelector: r
}), this.on(document, "data:followers:follow.success data:followers:unfollow.success", o)
})
}
function r (t) {
var e = $(t.currentTarget),
n = e.attr("data-state"),
i = "following" === n || "pending" === n ? "ui:followers:unfollow.init" : "ui:followers:follow.init";
this.trigger(i, {
profileId: e.data("profile-id")
}), $(t.currentTarget)
.hasClass(this.attr.isRestricted) && (this.trigger("ui:followers:restricted.init", {
profileId: e.data("profile-id")
}), this.trigger("data:tracking:restricted:follow")), e.blur()
}
function o (t, e) {
var n = this.attr.buttonSelector + "[data-profile-id=" + e.profileId + "]";
this.$node.find(n)
.attr("data-state", e.status), this.$node.find("." + this.attr.isRestricted)
.length > 0 && "following" === e.status && this.attr.WB_wombat_self_location.reload(!0)
}
var a = n(305);
t.exports = a.component(i)
}, function (t, e, n) {
function i () {
this.attributes({
buttonSelector: ".follow-states",
window: window
}), this.after("initialize", function () {
this.autoFollowBack = r, this.on(document, "page:components.loaded", r), this.on(document, "data:followers:follow.success", o)
})
}
function r () {
var t = s.transform.queryString(this.attr.WB_wombat_self_location.search);
if ("follow-back" === t.action) {
l = !0;
var e = this.select("buttonSelector");
"follow" === e.attr("data-state") && this.trigger("ui:followers:follow.init", {
profileId: e.attr("data-profile-id")
})
}
}
function o (t, e) {
l === !0 && ("pending" === e.status ? this.trigger("ui:followBack.pending") : "following" === e.status && this.trigger("ui:followBack.success"), l = !1)
}
var a = n(305),
s = n(349),
u = n(503),
l = !1;
t.exports = a.component(i, u)
}, function (t, e, n) {
function i () {
this.attributes({
contentSelector: ".details-content",
editButtonSelector: "[data-edit]",
wrapperInputSelector: ".js-animated-labels",
saveButtonSelector: "button.save",
cancelButtonSelector: "button.close",
summaryWrapperSelector: ".summary",
summaryEditClass: "summary-edit",
contentPhotoSelector: ".details-photo",
window: window
}), this.after("initialize", function () {
this.attr.profile = n(502), this.on(document, "store:profile:change", r), this.on(document, "data:profile:update.success", r), this.on(document, "data:photo:upload.success", s), this.on("click", {
editButtonSelector: o,
cancelButtonSelector: r,
saveButtonSelector: a
})
})
}
function r (t) {
"click" === t.type && this.trigger("data:tracking:profile:form.closed");
var e = this.attr.profile.get(),
n = c(e),
i = d.content.render({
profile: e,
latestEmploymentPosition: n,
isViewingOwnProfile: !0
}),
r = p.exec(e.link),
o = p.exec(this.attr.WB_wombat_self_location.pathname);
if (this.select("summaryWrapperSelector")
.removeClass(this.attr.summaryEditClass), this.select("contentSelector")
.html(i), r && r[1] !== o[1] && this.attr.window.history) {
var a = "/profiles/" + r[1] + "/";
o && o[2] && (a += o[2] + "/"), this.attr.window.history.replaceState({}, null, a)
}
}
function o (t) {
var e = this.attr.profile.get(),
n = d.form.render({
profile: e
});
this.select("summaryWrapperSelector")
.addClass(this.attr.summaryEditClass), this.select("contentSelector")
.html(n), this.select("wrapperInputSelector")
.animateLabels(), this.$node.find("#" + $(t.currentTarget)
.data("field"))
.focus(), this.trigger("data:tracking:profile:form.opened")
}
function a (t) {
if (t.preventDefault(), this.validate()) {
$(t.target)
.parent()
.attr("disabled", !0);
var e = {},
n = this.$node.find("input, select, textarea");
n.each(function () {
e[this.name] = this.value
}), this.trigger("ui:profile:update.init", e), this.trigger("data:tracking:profile:form.saved")
}
}
function s (t, e) {
var n = l(e.photos, 256),
i = this.attr.profile.get(),
r = d.photo.render({
isViewingOwnProfile: !0,
isAdvisor: "advisor" === i.user_type,
profilePhoto: n
});
this.select("contentPhotoSelector")
.html(r), document.cookie = "onboardingPhotoAdded=1;max-age=3600;path=/"
}
var u = n(305),
l = n(424),
c = n(422),
d = {
content: n(559),
form: n(560),
photo: n(561)
},
p = /^.*\/?profiles\/([\w\-]+)\/?([\w\-]+)?\/?$/i,
h = n(562);
t.exports = u.component(i, h)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<div class="summary-nested">'), i.b("\n" + n), i.b(" <h1>"), i.b("\n" + n), i.b(" "), i.b(i.v(i.d("profile.first_name", t, e, 0))), i.b(" "), i.b(i.v(i.d("profile.last_name", t, e, 0))), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 108, 282, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="nowrap">&nbsp;<button data-edit="true" data-field="first-name" class="basic-link with-icon-before icon-write"><span class="xs-hidden">Edit</span></button></span>')
}), t.pop()), i.b("\n" + n), i.b(" </h1>"), i.b("\n"), i.b("\n" + n), i.b(' <ul class="bare-list bio-nested">'), i.b("\n" + n), i.s(i.d("profile.title", t, e, 1), t, e, 0, 413, 684, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" <li>"), i.b("\n" + n), i.b(" "), i.b(i.v(i.d("profile.title", t, e, 0))), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 474, 643, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="nowrap">&nbsp;<button data-edit="true" data-field="title" class="basic-link with-icon-before icon-write"><span class="xs-hidden">Edit</span></button></span>')
}), t.pop()), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.d("profile.title", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 755, 901, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" <li>"), i.b("\n" + n), i.b(' <button data-edit="true" data-field="title" class="basic-link link-text"><span>Add your title</span></button>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.d("profile.institution", t, e, 1), t, e, 0, 1025, 1945, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.s(i.f("latestEmploymentPosition", t, e, 1), t, e, 0, 1061, 1472, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" <li>"), i.b("\n" + n), i.b(" "), i.b(i.v(i.f("latestEmploymentPosition", t, e, 0))), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 1137, 1427, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="nowrap">&nbsp;<a class="basic-link with-icon-before icon-write js-scroll" href="#profile-'), n.b(n.v(n.d("profile.institutionEntryType", t, e, 0))), n.b('" data-id="'), n.b(n.v(n.d("profile.institutionEntryId", t, e, 0))), n.b('" data-type="'), n.b(n.v(n.d("profile.institutionEntryType", t, e, 0))), n.b('" data-field="position"><span class="xs-hidden">Edit</span></a></span>')
}), t.pop()), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.b(" <li>"), i.b("\n" + n), i.b(" "), i.b(i.v(i.d("profile.institution", t, e, 0))), i.b("\n" + n), i.b(" "), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 1578, 1904, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<span class="nowrap">&nbsp;<a class="basic-link with-icon-before icon-write js-scroll" href="#profile-'), n.b(n.v(n.d("profile.institutionEntryType", t, e, 0))), n.b('" data-id="'), n.b(n.v(n.d("profile.institutionEntryId", t, e, 0))), n.b('" data-type="'), n.b(n.v(n.d("profile.institutionEntryType", t, e, 0))), n.b('" data-field="institution-'), n.b(n.v(n.d("profile.institutionEntryType", t, e, 0))), n.b('"><span class="xs-hidden">Edit</span></a></span>')
}), t.pop()), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.d("profile.institution", t, e, 1), t, e, 1, 0, 0, "") || (i.s(i.f("latestEmploymentPosition", t, e, 1), t, e, 1, 0, 0, "") || i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 2058, 2243, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" <li>"), i.b("\n" + n), i.b(' <a class="basic-link link-text js-scroll" href="#profile-employment" data-type="employment" data-field="position"><span>Add your position</span></a>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 2331, 2533, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" <li>"), i.b("\n" + n), i.b(' <a class="basic-link link-text js-scroll" href="#profile-employment" data-type="employment" data-field="institution-employment"><span>Add your institution</span></a>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop())), i.b(" </ul>"), i.b("\n" + n), i.b("</div>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<div class="summary-nested">\n <h1>\n {{profile.first_name}} {{profile.last_name}}{{#isViewingOwnProfile}}<span class="nowrap">&nbsp;<button data-edit="true" data-field="first-name" class="basic-link with-icon-before icon-write"><span class="xs-hidden">Edit</span></button></span>{{/isViewingOwnProfile}}\n </h1>\n\n <ul class="bare-list bio-nested">\n {{!-- Academic degree / title --}}\n {{#profile.title}}\n <li>\n {{profile.title}}{{#isViewingOwnProfile}}<span class="nowrap">&nbsp;<button data-edit="true" data-field="title" class="basic-link with-icon-before icon-write"><span class="xs-hidden">Edit</span></button></span>{{/isViewingOwnProfile}}\n </li>\n {{/profile.title}}\n\n {{^profile.title}}\n {{#isViewingOwnProfile}}\n <li>\n <button data-edit="true" data-field="title" class="basic-link link-text"><span>Add your title</span></button>\n </li>\n {{/isViewingOwnProfile}}\n {{/profile.title}}\n\n {{!-- Latest position and institution --}}\n {{#profile.institution}}\n {{#latestEmploymentPosition}}\n <li>\n {{latestEmploymentPosition}}{{#isViewingOwnProfile}}<span class="nowrap">&nbsp;<a class="basic-link with-icon-before icon-write js-scroll" href="#profile-{{profile.institutionEntryType}}" data-id="{{profile.institutionEntryId}}" data-type="{{profile.institutionEntryType}}" data-field="position"><span class="xs-hidden">Edit</span></a></span>{{/isViewingOwnProfile}}\n </li>\n {{/latestEmploymentPosition}}\n\n <li>\n {{profile.institution}}\n {{#isViewingOwnProfile}}<span class="nowrap">&nbsp;<a class="basic-link with-icon-before icon-write js-scroll" href="#profile-{{profile.institutionEntryType}}" data-id="{{profile.institutionEntryId}}" data-type="{{profile.institutionEntryType}}" data-field="institution-{{profile.institutionEntryType}}"><span class="xs-hidden">Edit</span></a></span>{{/isViewingOwnProfile}}\n </li>\n {{/profile.institution}}\n\n {{^profile.institution}} {{^latestEmploymentPosition}}\n {{#isViewingOwnProfile}}\n <li>\n <a class="basic-link link-text js-scroll" href="#profile-employment" data-type="employment" data-field="position"><span>Add your position</span></a>\n </li>\n {{/isViewingOwnProfile}}\n {{/latestEmploymentPosition}}\n\n {{#isViewingOwnProfile}}\n <li>\n <a class="basic-link link-text js-scroll" href="#profile-employment" data-type="employment" data-field="institution-employment"><span>Add your institution</span></a>\n </li>\n {{/isViewingOwnProfile}}\n {{/profile.institution}}\n </ul>\n</div>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b("<h3>Edit your profile</h3>"), i.b("\n"), i.b("\n" + n), i.b("<form>"), i.b("\n" + n), i.b(' <div class="input-wrap js-animated-labels">'), i.b("\n" + n), i.b(' <label for="first-name">First name</label>'), i.b("\n" + n), i.b(' <input type="text" id="first-name" name="firstName" value="'), i.b(i.v(i.d("profile.first_name", t, e, 0))), i.b('" data-pattern="\\S">'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <div class="error-message hidden" data-for="first-name" data-error-empty="First name is required." data-error-invalid="First name is required."></div>'), i.b("\n"), i.b("\n" + n), i.b(' <div class="input-wrap js-animated-labels">'), i.b("\n" + n), i.b(' <label for="last-name">Last name (family name)</label>'), i.b("\n" + n), i.b(' <input type="text" id="last-name" name="lastName" value="'), i.b(i.v(i.d("profile.last_name", t, e, 0))), i.b('" data-pattern="\\S">'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b(' <div class="error-message hidden" data-for="last-name" data-error-empty="Last name is required." data-error-invalid="Last name is required."></div>'), i.b("\n"), i.b("\n" + n), i.b(' <div class="input-wrap js-animated-labels">'), i.b("\n" + n), i.b(' <label for="title">Academic Degree/Title (e.g. PHD)</label>'), i.b("\n" + n), i.b(' <input type="text" id="title" name="title" value="'), i.b(i.v(i.d("profile.title", t, e, 0))), i.b('" maxlength="50">'), i.b("\n" + n), i.b(" </div>"), i.b("\n"), i.b("\n" + n), i.b(' <div class="float-right button-group">'), i.b("\n" + n), i.b(' <button type="button" class="basic-link with-icon-before icon-delete close"><span>Cancel</span></button>'), i.b("\n" + n), i.b(' <button type="submit" class="button-primary with-icon-after icon-navigateright save"><span>Save</span></button>'), i.b("\n" + n), i.b(" </div>"), i.b("\n" + n), i.b("</form>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<h3>Edit your profile</h3>\n\n<form>\n <div class="input-wrap js-animated-labels">\n <label for="first-name">First name</label>\n <input type="text" id="first-name" name="firstName" value="{{profile.first_name}}" data-pattern="\\S">\n </div>\n <div class="error-message hidden" data-for="first-name" data-error-empty="First name is required." data-error-invalid="First name is required."></div>\n\n <div class="input-wrap js-animated-labels">\n <label for="last-name">Last name (family name)</label>\n <input type="text" id="last-name" name="lastName" value="{{profile.last_name}}" data-pattern="\\S">\n </div>\n <div class="error-message hidden" data-for="last-name" data-error-empty="Last name is required." data-error-invalid="Last name is required."></div>\n\n <div class="input-wrap js-animated-labels">\n <label for="title">Academic Degree/Title (e.g. PHD)</label>\n <input type="text" id="title" name="title" value="{{profile.title}}" maxlength="50">\n </div>\n\n <div class="float-right button-group">\n <button type="button" class="basic-link with-icon-before icon-delete close"><span>Cancel</span></button>\n <button type="submit" class="button-primary with-icon-after icon-navigateright save"><span>Save</span></button>\n </div>\n</form>\n', i);
return t
}()
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 24, 760, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <div class="image-box image-upload '), i.s(i.f("isAwaitingPhoto", t, e, 1), t, e, 0, 82, 96, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("image-awaiting")
}), t.pop()), i.b('" data-modal="profile-modal-photo-upload">'), i.b("\n" + n), i.b(' <span class="image-cta">'), i.b("\n" + n), i.b(' <span class="with-icon-before icon-camera"></span>'), i.b("\n" + n), i.b(' <span class="image-text">'), i.b("\n" + n), i.b(" "), i.s(i.f("isAwaitingPhoto", t, e, 1), t, e, 0, 313, 330, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b("Add profile photo")
}), t.pop()), i.b("\n" + n), i.b(" "), i.s(i.f("isAwaitingPhoto", t, e, 1), t, e, 1, 0, 0, "") || i.b("Edit profile photo"), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n), i.b(" </span>"), i.b("\n"), i.b("\n" + n), i.s(i.f("isAwaitingPhoto", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <img src="'), i.b(i.v(i.d("profilePhoto.url", t, e, 0))), i.b('" alt="Profile Picture" class="large-image">'), i.b("\n" + n)), i.b("\n" + n), i.s(i.f("isAdvisor", t, e, 1), t, e, 0, 601, 736, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <img class="advisor-icon" src="\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/static.mendeley.com/weblet-profiles/build/1195/images/advisor.svg" alt="Mendeley Advisor">'), i.b("\n" + n)
}), t.pop()), i.b(" </div>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 1, 0, 0, "") || (i.b(' <div class="image-box">'), i.b("\n" + n), i.b(' <img src="'), i.b(i.v(i.d("profilePhoto.url", t, e, 0))), i.b('" alt="Profile Picture" class="large-image">'), i.b("\n"), i.b("\n" + n), i.s(i.f("isAdvisor", t, e, 1), t, e, 0, 935, 1070, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <img class="advisor-icon" src="\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/static.mendeley.com/weblet-profiles/build/1195/images/advisor.svg" alt="Mendeley Advisor">'), i.b("\n" + n)
}), t.pop()), i.b(" </div>"), i.b("\n" + n)), i.fl()
},
partials: {},
subs: {}
}, '{{#isViewingOwnProfile}}\n <div class="image-box image-upload {{#isAwaitingPhoto}}image-awaiting{{/isAwaitingPhoto}}" data-modal="profile-modal-photo-upload">\n <span class="image-cta">\n <span class="with-icon-before icon-camera"></span>\n <span class="image-text">\n {{#isAwaitingPhoto}}Add profile photo{{/isAwaitingPhoto}}\n {{^isAwaitingPhoto}}Edit profile photo{{/isAwaitingPhoto}}\n </span>\n </span>\n\n {{^isAwaitingPhoto}}\n <img src="{{profilePhoto.url}}" alt="Profile Picture" class="large-image">\n {{/isAwaitingPhoto}}\n\n {{#isAdvisor}}\n <img class="advisor-icon" src="\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/static.mendeley.com/weblet-profiles/build/1195/images/advisor.svg" alt="Mendeley Advisor">\n {{/isAdvisor}}\n </div>\n{{/isViewingOwnProfile}}\n\n{{^isViewingOwnProfile}}\n <div class="image-box">\n <img src="{{profilePhoto.url}}" alt="Profile Picture" class="large-image">\n\n {{#isAdvisor}}\n <img class="advisor-icon" src="\/\/wayback.archive-it.org\/8130\/20161215231904\/https:\/\/static.mendeley.com/weblet-profiles/build/1195/images/advisor.svg" alt="Mendeley Advisor">\n {{/isAdvisor}}\n </div>\n{{/isViewingOwnProfile}}\n', i);
return t
}()
}, function (t, e, n) {
var i;
i = function (t) {
function e () {
this.attributes({
errorEmptyDataAttr: "error-empty",
errorInvalidDataAttr: "error-invalid",
errorMessageSelector: ".error-message",
inputSelector: "[data-pattern]:visible:enabled",
errorClass: "has-error",
successClass: "has-success",
overrideClass: "js-parent-override",
validationFunctions: {},
events: []
}), this.after("initialize", function () {
function t (t) {
this.on(t, {
inputSelector: function (t) {
i.call(this, 0, t.target)
}
})
}
this.validate = n, this.getValue = o, this.setErrorMessage = r.bind(this), this.on("change", {
inputSelector: function (t) {
i.call(this, 0, t.target)
}
}), this.on("keyup", {
inputSelector: function (t) {
$(t.target)
.parent()
.hasClass(this.attr.errorClass) && i.call(this, 0, t.target)
}
}), t.apply(this, this.attr.events)
})
}
function n () {
return this.select("errorMessageSelector")
.hide(), this.select("inputSelector")
.each(i.bind(this)), 0 === this.$node.find("." + this.attr.errorClass)
.length
}
function i (t, e) {
var n = $(e),
i = this.attr.successClass,
o = n.data("pattern") || "",
a = n.attr("name"),
s = this.getValue(n),
u = $(this.attr.errorMessageSelector + '[data-for="' + e.id + '"]')
.data(this.attr.errorEmptyDataAttr);
if (!s && u) r.call(this, e, this.attr.errorEmptyDataAttr), i = this.attr.errorClass;
else if (this.attr.validationFunctions[a]) this.attr.validationFunctions[a](n) || (r.call(this, e, this.attr.errorInvalidDataAttr), i = this.attr.errorClass);
else switch (o.charAt(0)) {
case "@":
s !== this.getValue(this.$node.find("#" + o.substr(1))) && (r.call(this, e, this.attr.errorInvalidDataAttr), i = this.attr.errorClass);
break;
default:
new RegExp(o)
.test(s) || (r.call(this, e, this.attr.errorInvalidDataAttr), i = this.attr.errorClass)
}
i === this.attr.successClass && $(this.attr.errorMessageSelector + '[data-for="' + e.id + '"]')
.hide(), n.hasClass(this.attr.overrideClass) ? n.removeClass(this.attr.errorClass + " " + this.attr.successClass)
.addClass(i) : n.parent()
.removeClass(this.attr.errorClass + " " + this.attr.successClass)
.addClass(i)
}
function r (t, e) {
var n = $(this.attr.errorMessageSelector + '[data-for="' + t.id + '"]'),
i = n.data(e);
n.text(i)
.show()
}
function o (t) {
return t.val()
}
return e
}.call(e, n, e, t), !(void 0 !== i && (t.exports = i))
}, function (t, e, n) {
function i () {
this.attributes({
hIndex: 0,
publicationCitations: 0,
contentSelector: ".statistics-content",
isViewingOwnProfile: !1,
followersCount: 0,
followeesCount: 0,
readersCount: 0,
publicationsCount: 0
}), this.after("initialize", function () {
this.on(document, "store:publications:statistics.change", r)
})
}
function r (t, e) {
this.attr.publicationsCount = a(e.publicationsCount), this.attr.readersCount = a(e.readersCount), this.select("contentSelector")
.html(s.render(this.attr))
}
var o = n(305),
a = n(564),
s = n(565);
t.exports = o.component(i)
}, function (t, e) {
var n = 1e6,
i = 1e6,
r = 1e5,
o = 1e3;
t.exports = function (t) {
var e = 0;
return t >= n ? (e = Number((t / i)
.toFixed(2)), "undefined" != typeof e.toLocaleString && (e = e.toLocaleString()), e + "M") : t >= r ? (e = Math.round(t / o), "undefined" != typeof e.toLocaleString && (e = e.toLocaleString()), e + "K") : t
}
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<ul class="stat-group clearfix">'), i.b("\n" + n), i.s(i.f("hIndex", t, e, 1), t, e, 0, 46, 735, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li class="stat-box with-tooltip stat-hindex" tabindex="0">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.b(i.v(i.f("hIndex", t, e, 0))), i.b('">'), i.b(i.v(i.f("hIndex", t, e, 0))), i.b("</data>"), i.b("\n" + n), i.b(' <p class="caption">h-index</p>'), i.b("\n" + n), i.b(' <span class="tooltip right medium" role="tooltip">'), i.b("\n" + n), i.b(" Impact measure calculated by Scopus using these publications and citation counts."), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n), i.b(" </li>"), i.b("\n"), i.b("\n" + n), i.b(' <li class="stat-box with-tooltip stat-citations" tabindex="0">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.b(i.v(i.f("publicationCitations", t, e, 0))), i.b('">'), i.b(i.v(i.f("publicationCitations", t, e, 0))), i.b("</data>"), i.b("\n" + n), i.b(' <p class="caption">Citations</p>'), i.b("\n" + n), i.b(' <span class="tooltip right medium" role="tooltip">'), i.b("\n" + n), i.b(" Number of citations received by these publications in Scopus."), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("hIndex", t, e, 1), t, e, 1, 0, 0, "") || (i.s(i.f("publicationsCount", t, e, 1), t, e, 0, 788, 1871, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li class="stat-box with-tooltip stat-readers" tabindex="0">'), i.b("\n" + n), i.b(" "), i.s(i.f("readersCount", t, e, 1), t, e, 0, 883, 952, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<data class="number" value="'), n.b(n.v(n.f("readersCount", t, e, 0))), n.b('">'), n.b(n.v(n.f("readersCount", t, e, 0))), n.b("</data>")
}), t.pop()), i.b("\n" + n), i.b(" "), i.s(i.f("readersCount", t, e, 1), t, e, 1, 0, 0, "") || i.b('<data class="number" value="--">--</data>'), i.b("\n" + n), i.b(' <p class="caption">Readers</p>'), i.b("\n" + n), i.b(' <span class="tooltip right medium" role="tooltip">'), i.b("\n" + n), i.b(" Number of times these publications have been added to libraries on Mendeley."), i.b("\n" + n), i.b(" </span>"), i.b("\n" + n), i.b(" </li>"), i.b("\n"), i.b("\n" + n), i.b(' <li class="stat-box with-tooltip stat-publications" tabindex="0">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.b(i.v(i.f("publicationsCount", t, e, 0))), i.b('">'), i.b(i.v(i.f("publicationsCount", t, e, 0))), i.b("</data>"), i.b("\n" + n), i.b(' <p class="caption">Publications</p>'), i.b("\n" + n), i.b(' <span class="tooltip right medium" role="tooltip">'), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 0, 1575, 1660, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(" Number of items in your My Publications folder on Mendeley."), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("isViewingOwnProfile", t, e, 1), t, e, 1, 0, 0, "") || (i.b(" Number of items in this person’s My Publications folder on Mendeley."), i.b("\n" + n)), i.b(" </span>"), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("publicationsCount", t, e, 1), t, e, 1, 0, 0, "") || (i.s(i.f("followersCount", t, e, 1), t, e, 0, 1947, 2153, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li class="stat-box stat-followers" tabindex="0">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.b(i.v(i.f("followersCount", t, e, 0))), i.b('">'), i.b(i.v(i.f("followersCount", t, e, 0))), i.b("</data>"), i.b("\n" + n), i.b(' <p class="caption">Followers</p>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()), i.b("\n" + n), i.s(i.f("followeesCount", t, e, 1), t, e, 0, 2199, 2405, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <li class="stat-box stat-followees" tabindex="0">'), i.b("\n" + n), i.b(' <data class="number" value="'), i.b(i.v(i.f("followeesCount", t, e, 0))), i.b('">'), i.b(i.v(i.f("followeesCount", t, e, 0))), i.b("</data>"), i.b("\n" + n), i.b(' <p class="caption">Following</p>'), i.b("\n" + n), i.b(" </li>"), i.b("\n" + n)
}), t.pop()))), i.b("</ul>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<ul class="stat-group clearfix">\n {{#hIndex}}\n <li class="stat-box with-tooltip stat-hindex" tabindex="0">\n <data class="number" value="{{hIndex}}">{{hIndex}}</data>\n <p class="caption">h-index</p>\n <span class="tooltip right medium" role="tooltip">\n Impact measure calculated by Scopus using these publications and citation counts.\n </span>\n </li>\n\n <li class="stat-box with-tooltip stat-citations" tabindex="0">\n <data class="number" value="{{publicationCitations}}">{{publicationCitations}}</data>\n <p class="caption">Citations</p>\n <span class="tooltip right medium" role="tooltip">\n Number of citations received by these publications in Scopus.\n </span>\n </li>\n {{/hIndex}}\n\n {{^hIndex}}\n {{#publicationsCount}}\n <li class="stat-box with-tooltip stat-readers" tabindex="0">\n {{#readersCount}}<data class="number" value="{{readersCount}}">{{readersCount}}</data>{{/readersCount}}\n {{^readersCount}}<data class="number" value="--">--</data>{{/readersCount}}\n <p class="caption">Readers</p>\n <span class="tooltip right medium" role="tooltip">\n Number of times these publications have been added to libraries on Mendeley.\n </span>\n </li>\n\n <li class="stat-box with-tooltip stat-publications" tabindex="0">\n <data class="number" value="{{publicationsCount}}">{{publicationsCount}}</data>\n <p class="caption">Publications</p>\n <span class="tooltip right medium" role="tooltip">\n {{#isViewingOwnProfile}}\n Number of items in your My Publications folder on Mendeley.\n {{/isViewingOwnProfile}}\n\n {{^isViewingOwnProfile}}\n Number of items in this person’s My Publications folder on Mendeley.\n {{/isViewingOwnProfile}}\n </span>\n </li>\n {{/publicationsCount}}\n\n {{^publicationsCount}}\n {{#followersCount}}\n <li class="stat-box stat-followers" tabindex="0">\n <data class="number" value="{{followersCount}}">{{followersCount}}</data>\n <p class="caption">Followers</p>\n </li>\n {{/followersCount}}\n\n {{#followeesCount}}\n <li class="stat-box stat-followees" tabindex="0">\n <data class="number" value="{{followeesCount}}">{{followeesCount}}</data>\n <p class="caption">Following</p>\n </li>\n {{/followeesCount}}\n {{/publicationsCount}}\n {{/hIndex}}\n</ul>\n', i);
return t
}()
}, function (t, e, n) {
function i () {
this.attributes({
requestEvent: "ui:institutions:search.init",
responseEvent: "data:institutions:search.success",
inputSelector: 'input[name="institution_field"]',
topPositionSelector: "> :first-child",
secondaryInput: {
value: "id",
selector: 'input[name="institution"]'
},
minQueryLength: 3,
delayDataRequest: 30,
suggestionItemTemplate: function () {
return r
},
suggestionValueSelector: ".name",
suppressFailedSubstrings: !1,
allowTabSelectedEntry: !0,
noResultsTemplate: c,
hideNoResultsOnBlur: !1,
institutionWebsiteInputSelector: 'input[name="website"]',
institutionWebsiteWrapperSelector: ".js-institution-website",
institutionWebsiteLinkSelector: ".js-enter-institution-website"
}), this.after("initialize", function () {
this.on("change", {
inputSelector: a
}), this.on("mousedown", {
institutionWebsiteLinkSelector: o
}), this.select("institutionWebsiteInputSelector")
.val() && (this.attr.noResultsTemplate = !1)
})
}
function r (t, e) {
var n = u.render({
id: t.id,
name: s.transform.wrap(t.name, e, "<strong>", "</strong>"),
city: t.city.replace("\\'", "'"),
state: t.state.replace("\\'", "'"),
country: s.transform.country(t.country)
});
return n
}
function o (t) {
t.preventDefault(), this.select("institutionWebsiteWrapperSelector")
.removeClass("hidden"), this.attr.noResultsTemplate = !1
}
function a (t, e) {
var n = this.select("institutionWebsiteWrapperSelector");
e && e.id && !n.hasClass("hidden") && (n.addClass("hidden"), this.attr.noResultsTemplate = c)
}
var s = n(349),
u = n(567),
l = n(568),
c = '<div class="no-results">Institution name is not found. Please help us to improve our records by <button class="basic-link js-enter-institution-website" onclick="return false">providing your institution\'s website</button>.</div>';
t.exports = l.mixin(i)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.b('<li data-id="'), i.b(i.v(i.f("id", t, e, 0))), i.b('">'), i.b("\n" + n), i.b(' <span class="name">'), i.b(i.t(i.f("name", t, e, 0))), i.b("</span>"), i.b("\n" + n), i.b(' <small class="meta">'), i.b(i.v(i.f("city", t, e, 0))), i.b(", "), i.s(i.f("state", t, e, 1), t, e, 0, 102, 112, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b(n.v(n.f("state", t, e, 0))), n.b(",")
}), t.pop()), i.b(" "), i.b(i.v(i.f("country", t, e, 0))), i.b("</small>"), i.b("\n" + n), i.b("</li>"), i.b("\n"), i.fl()
},
partials: {},
subs: {}
}, '<li data-id="{{id}}">\n <span class="name">{{&name}}</span>\n <small class="meta">{{city}}, {{#state}}{{state}},{{/state}} {{country}}</small>\n</li>\n', i);
return t
}()
}, function (t, e, n) {
var i;
i = function (t) {
function e () {
this.attributes({
requestEvent: "uiDataRequested",
responseEvent: "dataReceived",
minQueryLength: 1,
maxCacheResults: 100,
delayDataRequest: 100,
hasSuggestionsClass: "has-suggestions",
activeClass: "active",
inputSelector: "input[type=text]",
secondaryInput: {
selector: !1,
value: !1
},
suggestionItemSelector: "li",
suggestionValueSelector: "",
widthSelector: "input[type=text]",
topPositionSelector: !1,
suggestionListWrapper: '<ul class="suggestions"></ul>',
suggestionItemTemplate: "<li />",
noResultsTemplate: !1,
postFilter: !1,
suppressFailedSubstrings: !0,
allowTabSelectedEntry: !1
}), this.after("initialize", function () {
this.$suggestions = $(this.attr.suggestionListWrapper)
.appendTo(this.$node)
.hide(), this.$input = this.$node.find(this.attr.inputSelector)
.attr("autocomplete", "off"), this.$noResultsMessage = !1, this.on(document, this.attr.responseEvent, p), this.on("focusout", u), this.on("keydown", c), this.on("keyup", d), this.on("cut copy paste", {
inputSelector: function () {
setTimeout(function () {
d.call(this, {
keyCode: null
})
}.bind(this), 1)
}
}), this.on("click", {
suggestionItemSelector: r
}), this.on("mouseover", {
suggestionItemSelector: function (t) {
var e = this.attr.activeClass;
$(t.currentTarget)
.addClass(e)
.siblings()
.removeClass(e)
}
}), this.on("mousedown", {
suggestionItemSelector: function (t) {
this.off("focusout"), this.$input.on("change.suppress", i)
}
}), this.on("mouseup", {
suggestionItemSelector: function (t) {
this.on("focusout", u), this.$input.off("change.suppress"), this.selectActiveSuggestion()
}
}), this.scrollIntoView = l, this.cacheResult = o, this.getCached = a, this.hasNoResults = s, this.selectActiveSuggestion = r, this.showSuggestions = h, this.removeSuggestions = _, this.showNoResults = f, this.removeNoResults = b, this.setSizeAndPosition = m, this.addSecondaryValue = v, this.removeSecondaryValue = g, this.lastVal = this.$input.val(), this.awaiting = !1, this.resultCache = [], this.delayTimeoutId = !1
})
}
function i (t) {
t.preventDefault(), t.stopPropagation()
}
function r () {
var t, e = this.attr.suggestionItemSelector + "." + this.attr.activeClass,
n = this.$node.find(e);
t = this.attr.suggestionValueSelector ? n.find(this.attr.suggestionValueSelector)
.text() : n.text(), this.$input.val(t)
.trigger("change", n.data()), this.addSecondaryValue(n), this.removeSuggestions()
}
function o (t) {
this.getCached(t.query) || (this.resultCache.length > this.attr.maxCacheResults && this.resultCache.pop(), this.resultCache.unshift(t))
}
function a (t) {
return this.resultCache.filter(function (e) {
return e.query === t
})
.pop()
}
function s (t) {
var e = this.getCached(t);
return !(!e || !e.suggestions || 0 !== e.suggestions.length) || !!(t.length > this.attr.minQueryLength && this.attr.suppressFailedSubstrings) && this.hasNoResults(t.substring(0, t.length - 1))
}
function u (t) {
clearTimeout(this.delayTimeoutId), this.removeSuggestions(), this.removeNoResults()
}
function l (t) {
var e = t.parent();
if ("visible" !== e.css("overflow")) {
var n = 0 | e.height(),
i = 0 | e.scrollTop(),
r = i + n,
o = t.index(),
a = 0;
e.children()
.each(function (t, e) {
return !(t >= o) && void(a += $(e)
.outerHeight(!0))
});
var s = a + t.outerHeight(!0);
a > r || s > r ? e.scrollTop(s - n) : (a < i || s < i) && e.scrollTop(a)
}
}
function c (t) {
if (13 === t.keyCode && this.$suggestions.is(":visible")) return void i(t);
if ((38 === t.keyCode || 40 === t.keyCode) && this.$suggestions.is(":visible")) {
i(t);
var e = this.$suggestions.children("." + this.attr.activeClass)
.first(),
n = e[40 === t.keyCode ? "next" : "prev"]();
return void(n.length && (n.addClass(this.attr.activeClass)
.siblings()
.removeClass(this.attr.activeClass), l(n)))
}
return 9 === t.keyCode && this.$suggestions.is(":visible") && this.attr.allowTabSelectedEntry ? void i(t) : 40 !== t.keyCode || this.$suggestions.is(":visible") ? void 0 : (i(t), this.lastVal = "", void this.trigger("keyup"))
}
function d (t) {
var e = $.trim(this.$input.val());
if (27 === t.keyCode) this.trigger("focusout");
else if (13 === t.keyCode && this.$suggestions.is(":visible")) i(t), this.selectActiveSuggestion();
else if (9 === t.keyCode && this.$suggestions.is(":visible") && this.attr.allowTabSelectedEntry) i(t), this.selectActiveSuggestion();
else if (!e || this.hasNoResults(e)) this.removeSuggestions(), this.removeNoResults(), this.removeSecondaryValue(), e && this.showNoResults(e);
else if (e !== this.lastVal && e.length >= this.attr.minQueryLength) {
this.removeSecondaryValue(), this.awaiting = !0;
var n = this.getCached(e);
n ? this.trigger(this.attr.responseEvent, n) : this.attr.delayDataRequest ? (clearTimeout(this.delayTimeoutId), this.delayTimeoutId = setTimeout(function () {
this.trigger(this.attr.requestEvent, {
query: e
})
}.bind(this), this.attr.delayDataRequest)) : this.trigger(this.attr.requestEvent, {
query: e
})
}
this.lastVal = e
}
function p (t, e) {
if (!this.awaiting) return !1;
this.cacheResult(e);
var n = $.trim(this.$input.val());
return ("undefined" == typeof e.query || e.query === n) && (this.removeSuggestions(), this.removeNoResults(), this.showSuggestions(e.suggestions, e.query) || this.showNoResults(e.query), void(this.awaiting = !1))
}
function h (t, e) {
var n, i, r, o = this.attr.suggestionItemTemplate;
return !!t.length && (t.forEach(function (t) {
("function" != typeof this.attr.postFilter || this.attr.postFilter(t, e)) && ("string" == typeof o ? n = $(o)
.text(t) : (r = "string" == typeof t ? {
value: t
} : t, n = o(r, e)), i = $(n)
.appendTo(this.$suggestions), i.data(r))
}.bind(this)), !!this.$suggestions.children()
.length && (this.$node.addClass(this.attr.hasSuggestionsClass), this.$suggestions.children()
.eq(0)
.addClass(this.attr.activeClass), this.setSizeAndPosition(this.$suggestions), !0))
}
function f (t) {
if (!this.attr.noResultsTemplate) return !1;
var e, n = this.attr.noResultsTemplate;
return e = "function" == typeof n ? n(t) : n, this.$noResultsMessage = $(e)
.appendTo(this.$node), this.setSizeAndPosition(this.$noResultsMessage), !0
}
function m (t) {
var e = this.attr.topPositionSelector ? this.select("topPositionSelector")
.height() : this.$node.height(),
n = this.attr.widthSelector ? this.select("widthSelector")
.outerWidth() : this.$node.outerWidth();
t.css("width", n)
.css("top", e)
.show()
.scrollTop(0)
}
function _ () {
this.$node.removeClass(this.attr.hasSuggestionsClass), this.$suggestions.children()
.remove(), this.$suggestions.hide()
}
function b () {
this.$noResultsMessage && this.$noResultsMessage.remove()
}
function v (t) {
var e = this.attr.secondaryInput;
e && e.selector && e.value && this.$node.find(e.selector)
.val(t.data(e.value))
}
function g () {
var t = this.attr.secondaryInput;
t && t.selector && this.$node.find(t.selector)
.val("")
}
var y = n(310);
return y(e)
}.call(e, n, e, t), !(void 0 !== i && (t.exports = i))
}, function (t, e, n) {
function i () {
this.attributes({
apiError: "#api-error-message",
sendButtonSelector: "button.modal-send",
cancelButtonSelector: "button.modal-close",
closeIconSelector: "span.modal-close"
}), this.after("initialize", function () {
this.attr.toggleUsingCSS = !0, this.attr.handleEscapeKey = !0, this.attr.inputSelector = "[data-pattern]:visible", this.attr.errorClass = "has-error", this.attr.successClass = "", this.on("click", {
sendButtonSelector: o,
cancelButtonSelector: r,
closeIconSelector: r
}), this.on(document, "data:message:send.success", a), this.modalReset = r.bind(this), this.clearErrorMessages = s.bind(this)
})
}
function r () {
this.clearErrorMessages(), this.$node.find("form")
.trigger("reset")
.find(this.attr.inputSelector)
.each(function () {
$(this)
.focusin()
.focusout()
})
}
function o (t) {
t.preventDefault();
var e = {},
n = this.$node.find("input, textarea");
e.to = this.$node.data("profile-id"), n.each(function () {
e[this.name] = this.value
}), this.validate() && this.trigger("ui:message:send.init", e)
}
function a () {
this.modalReset(), this.clearErrorMessages(), this.trigger("uiModalCloseRequested", {
id: this.node.id
})
}
function s () {
this.select("errorMessageSelector")
.text(""), this.select("inputSelector")
.parent()
.removeClass(this.attr.errorClass)
}
var u = n(305),
l = n(546),
c = n(562);
t.exports = u.component(i, l, c)
}, function (t, e, n) {
function i () {
this.attributes({
selectedPhotoClass: "selected",
photoSuggestionsContentSelector: ".photo-suggestions-content",
closeIconSelector: "span.modal-close",
photoSelector: ".photo-suggestions-content img",
buttonSetPhotoSelector: ".js-set-suggested-photo",
imageUploadSelector: ".custom-image-upload",
termsConditionsSelector: ".js-terms-conditions",
termsConditionsTextSelector: ".js-terms-conditions-text",
photoUploadModalSelector: "profile-modal-photo-upload"
}), this.after("initialize", function () {
var t = this;
this.attr.toggleUsingCSS = !0, this.attr.handleEscapeKey = !0, this.onSuccess = o.bind(this), this.onError = s.bind(this), this.photoSuggestionsRequest = r.bind(this), this.selectPhoto = u.bind(this), this.showCropView = l.bind(this), this.showUploadPhotoModal = c.bind(this), this.on("click", {
closeIconSelector: this.close,
photoSelector: this.selectPhoto,
imageUploadSelector: function (e) {
return t.showUploadPhotoModal(e, !0)
},
buttonSetPhotoSelector: this.showCropView,
termsConditionsSelector: d
}), this.on(document, "ui:photo:suggestions.init", this.photoSuggestionsRequest)
})
}
function r () {
this.select("buttonSetPhotoSelector")
.attr("disabled", "disabled"), $.ajax({
url: WB_wombat_self_location.pathname + "photo-suggestions/",
success: this.onSuccess,
error: this.onError
})
}
function o (t) {
if (t.length) {
var e = f.render({
images: t
});
this.select("photoSuggestionsContentSelector")
.html(e), "objectFit" in document.documentElement.style == !1 && a(), this.show(), this.trigger("ui:photo:suggestions.success", t)
} else this.trigger("ui:photo:suggestions.empty")
}
function a () {
Array.prototype.forEach.call(document.querySelectorAll("img[data-object-fit]"), function (t) {
(t.runtimeStyle || t.style)
.background = 'url("' + t.src + '") no-repeat 50%/' + (t.currentStyle ? t.currentStyle["object-fit"] : t.getAttribute("data-object-fit")), t.src = "data:image/svg+xml,%3Csvg xmlns='http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/2000/svg' width='" + t.width + "' height='" + t.height + "'%3E%3C/svg%3E"
})
}
function s (t) {
this.trigger("ui:photo:suggestions.error", t)
}
function u (t) {
this.trigger("ui:photo:suggestions.clicked"), this.select("photoSelector")
.removeClass(this.attr.selectedPhotoClass), $(t.currentTarget)
.addClass(this.attr.selectedPhotoClass), this.select("buttonSetPhotoSelector")
.removeAttr("disabled")
}
function l () {
var t = this.select("photoSuggestionsContentSelector")
.find(".selected")[0];
this.trigger("ui:photo:suggestion.selected", t), this.showUploadPhotoModal()
}
function c (t, e) {
e && this.trigger("ui:photo:suggestions.rejected"), this.close(), this.trigger("uiModalRequested", {
id: this.attr.photoUploadModalSelector
})
}
function d () {
this.select("termsConditionsTextSelector")
.toggle()
}
var p = n(305),
h = n(546),
f = n(571);
t.exports = p.component(i, h)
}, function (t, e, n) {
var i = n(338);
t.exports = function () {
var t = new i.Template({
code: function (t, e, n) {
var i = this;
return i.b(n = n || ""), i.s(i.d("images.length", t, e, 1), t, e, 0, 18, 170, "{{ }}") && (i.rs(t, e, function (t, e, i) {
i.b(' <ul class="text-center">'), i.b("\n" + n), i.b(" "), i.s(i.f("images", t, e, 1), t, e, 0, 61, 150, "{{ }}") && (i.rs(t, e, function (t, e, n) {
n.b('<li><img data-object-fit="cover" src="'), n.b(n.v(n.f("thumbnailLink", t, e, 0))), n.b('" data-src="'), n.b(n.v(n.f("link", t, e, 0))), n.b('" alt=""></li>')
}), t.pop()), i.b("\n" + n), i.b(" </ul>"), i.b("\n" + n)
}), t.pop()), i.fl()
},
partials: {},
subs: {}
}, '{{#images.length}}\n <ul class="text-center">\n {{#images}}<li><img data-object-fit="cover" src="{{thumbnailLink}}" data-src="{{link}}" alt=""></li>{{/images}}\n </ul>\n{{/images.length}}', i);
return t
}()
}, function (t, e, n) {
function i () {
this.attributes({
connectButtonSelector: "a.modal-connect",
orcidImportTypeSelector: "input:radio[name=orcidtype]:checked",
window: window
}), this.after("initialize", function () {
this.attr.toggleUsingCSS = !0, this.attr.handleEscapeKey = !0, this.checkOrcidSuccessHash = r, this.checkImportStatus = s, this.on("click", {
connectButtonSelector: o
}), this.on("change", {
orcidImportTypeSelector: a
}), this.checkOrcidSuccessHash()
})
}
function r () {
if ("#orcid-import-success" === this.attr.WB_wombat_self_location.hash) {
var t, e = this.getCookie("importStatusModel");
e ? (t = JSON.parse(decodeURIComponent(e)), t.retreivedProfileInfo = this.checkImportStatus(t), this.trigger("data:orcid:import.success", t), this.deleteCookie("importStatusModel")) : this.trigger("data:orcid:import.error")
} else "#orcid-import-error" === this.attr.WB_wombat_self_location.hash && this.trigger("data:orcid:import.error")
}
function o () {
var t = this.select("orcidImportTypeSelector")
.val();
this.attr.window.document.cookie = "orcidtype=" + t + ";max-age=3600;path=/", this.trigger("ui:orcid:import.init")
}
function a (t) {
var e = $(t.currentTarget)
.val(),
n = this.select("connectButtonSelector")
.attr("href");
this.trigger("ui:orcid:import.option.selected", {
option: e
}), "import-orcid-id" === e ? this.select("connectButtonSelector")
.attr("href", n.replace(/scope=[^&]+/, "scope=/authenticate /person/update")) : this.select("connectButtonSelector")
.attr("href", n.replace(/scope=[^&]+/, "scope=/read-limited /person/update"))
}
function s (t) {
return Object.keys(t)
.some(function (e) {
return t[e] === !0
})
}
var u = n(305),
l = n(546),
c = n(562),
d = n(548);
t.exports = u.component(i, l, c, d)
}, function (t, e, n) {
var i = n(574),
r = n(600)
.render,
o = n(737),
a = n(764)
.Provider,
s = n(783);
t.exports = function (t) {
var e = window.__PRELOADED_STATE__,
n = o(e, t);
null !== document.getElementById("profile-biography") && r(i.createElement(a, {
store: n
}, i.createElement(s, null)), document.getElementById("profile-biography"))
}
}, function (t, e, n) {
t.exports = n(575)
}, function (t, e, n) {
var i = n(430),
r = n(576),
o = n(589),
a = n(592),
s = n(593),
u = n(595),
l = n(580),
c = n(596),
d = n(598),
p = n(599),
h = (n(582), l.createElement),
f = l.createFactory,
m = l.cloneElement,
_ = i,
b = {
Children: {
map: r.map,
forEach: r.forEach,
count: r.count,
toArray: r.toArray,
only: p
},
Component: o,
PureComponent: a,
createElement: h,
cloneElement: m,
isValidElement: l.isValidElement,
PropTypes: c,
createClass: s.createClass,
createFactory: f,
createMixin: function (t) {
return t
},
DOM: u,
version: d,
__spread: _
};
t.exports = b
}, function (t, e, n) {
function i (t) {
return ("" + t)
.replace(y, "$&/")
}
function r (t, e) {
this.func = t, this.context = e, this.count = 0
}
function o (t, e, n) {
var i = t.func,
r = t.context;
i.call(r, e, t.count++)
}
function a (t, e, n) {
if (null == t) return t;
var i = r.getPooled(e, n);
b(t, o, i), r.release(i)
}
function s (t, e, n, i) {
this.result = t, this.keyPrefix = e, this.func = n, this.context = i, this.count = 0
}
function u (t, e, n) {
var r = t.result,
o = t.keyPrefix,
a = t.func,
s = t.context,
u = a.call(s, e, t.count++);
Array.isArray(u) ? l(u, r, n, _.thatReturnsArgument) : null != u && (m.isValidElement(u) && (u = m.cloneAndReplaceKey(u, o + (!u.key || e && e.key === u.key ? "" : i(u.key) + "/") + n)), r.push(u))
}
function l (t, e, n, r, o) {
var a = "";
null != n && (a = i(n) + "/");
var l = s.getPooled(e, a, r, o);
b(t, u, l), s.release(l)
}
function c (t, e, n) {
if (null == t) return t;
var i = [];
return l(t, i, null, e, n), i
}
function d (t, e, n) {
return null
}
function p (t, e) {
return b(t, d, null)
}
function h (t) {
var e = [];
return l(t, e, null, _.thatReturnsArgument), e
}
var f = n(577),
m = n(580),
_ = n(583),
b = n(586),
v = f.twoArgumentPooler,
g = f.fourArgumentPooler,
y = /\/+/g;
r.prototype.destructor = function () {
this.func = null, this.context = null, this.count = 0
}, f.addPoolingTo(r, v), s.prototype.destructor = function () {
this.result = null, this.keyPrefix = null, this.func = null, this.context = null, this.count = 0
}, f.addPoolingTo(s, g);
var w = {
forEach: a,
map: c,
mapIntoWithKeyPrefixInternal: l,
count: p,
toArray: h
};
t.exports = w
}, function (t, e, n) {
var i = n(578),
r = (n(579), function (t) {
var e = this;
if (e.instancePool.length) {
var n = e.instancePool.pop();
return e.call(n, t), n
}
return new e(t)
}),
o = function (t, e) {
var n = this;
if (n.instancePool.length) {
var i = n.instancePool.pop();
return n.call(i, t, e), i
}
return new n(t, e)
},
a = function (t, e, n) {
var i = this;
if (i.instancePool.length) {
var r = i.instancePool.pop();
return i.call(r, t, e, n), r
}
return new i(t, e, n)
},
s = function (t, e, n, i) {
var r = this;
if (r.instancePool.length) {
var o = r.instancePool.pop();
return r.call(o, t, e, n, i), o
}
return new r(t, e, n, i)
},
u = function (t, e, n, i, r) {
var o = this;
if (o.instancePool.length) {
var a = o.instancePool.pop();
return o.call(a, t, e, n, i, r), a
}
return new o(t, e, n, i, r)
},
l = function (t) {
var e = this;
t instanceof e ? void 0 : i("25"), t.destructor(), e.instancePool.length < e.poolSize && e.instancePool.push(t)
},
c = 10,
d = r,
p = function (t, e) {
var n = t;
return n.instancePool = [], n.getPooled = e || d, n.poolSize || (n.poolSize = c), n.release = l, n
},
h = {
addPoolingTo: p,
oneArgumentPooler: r,
twoArgumentPooler: o,
threeArgumentPooler: a,
fourArgumentPooler: s,
fiveArgumentPooler: u
};
t.exports = h
}, function (t, e) {
function n (t) {
for (var e = arguments.length - 1, n = "Minified React error #" + t + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + t, i = 0; i < e; i++) n += "&args[]=" + encodeURIComponent(arguments[i + 1]);
n += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
var r = new Error(n);
throw r.name = "Invariant Violation", r.framesToPop = 1, r
}
t.exports = n
}, function (t, e, n) {
function i (t, e, n, i, r, o, a, s) {
if (!t) {
var u;
if (void 0 === e) u = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else {
var l = [n, i, r, o, a, s],
c = 0;
u = new Error(e.replace(/%s/g, function () {
return l[c++]
})), u.name = "Invariant Violation"
}
throw u.framesToPop = 1, u
}
}
t.exports = i
}, function (t, e, n) {
function i (t) {
return void 0 !== t.ref
}
function r (t) {
return void 0 !== t.key
}
var o = n(430),
a = n(581),
s = (n(582), n(584), Object.prototype.hasOwnProperty),
u = n(585),
l = {
key: !0,
ref: !0,
__self: !0,
__source: !0
},
c = function (t, e, n, i, r, o, a) {
var s = {
$$typeof: u,
type: t,
key: e,
ref: n,
props: a,
_owner: o
};
return s
};
c.createElement = function (t, e, n) {
var o, u = {},
d = null,
p = null,
h = null,
f = null;
if (null != e) {
i(e) && (p = e.ref), r(e) && (d = "" + e.key), h = void 0 === e.__self ? null : e.__self, f = void 0 === e.__source ? null : e.__source;
for (o in e) s.call(e, o) && !l.hasOwnProperty(o) && (u[o] = e[o])
}
var m = arguments.length - 2;
if (1 === m) u.children = n;
else if (m > 1) {
for (var _ = Array(m), b = 0; b < m; b++) _[b] = arguments[b + 2];
u.children = _
}
if (t && t.defaultProps) {
var v = t.defaultProps;
for (o in v) void 0 === u[o] && (u[o] = v[o])
}
return c(t, d, p, h, f, a.current, u)
}, c.createFactory = function (t) {
var e = c.createElement.bind(null, t);
return e.type = t, e
}, c.cloneAndReplaceKey = function (t, e) {
var n = c(t.type, e, t.ref, t._self, t._source, t._owner, t.props);
return n
}, c.cloneElement = function (t, e, n) {
var u, d = o({}, t.props),
p = t.key,
h = t.ref,
f = t._self,
m = t._source,
_ = t._owner;
if (null != e) {
i(e) && (h = e.ref, _ = a.current), r(e) && (p = "" + e.key);
var b;
t.type && t.type.defaultProps && (b = t.type.defaultProps);
for (u in e) s.call(e, u) && !l.hasOwnProperty(u) && (void 0 === e[u] && void 0 !== b ? d[u] = b[u] : d[u] = e[u])
}
var v = arguments.length - 2;
if (1 === v) d.children = n;
else if (v > 1) {
for (var g = Array(v), y = 0; y < v; y++) g[y] = arguments[y + 2];
d.children = g
}
return c(t.type, p, h, f, m, _, d)
}, c.isValidElement = function (t) {
return "object" == typeof t && null !== t && t.$$typeof === u
}, t.exports = c
}, function (t, e) {
var n = {
current: null
};
t.exports = n
}, function (t, e, n) {
var i = n(583),
r = i;
t.exports = r
}, function (t, e) {
function n (t) {
return function () {
return t
}
}
var i = function () {};
i.thatReturns = n, i.thatReturnsFalse = n(!1), i.thatReturnsTrue = n(!0), i.thatReturnsNull = n(null), i.thatReturnsThis = function () {
return this
}, i.thatReturnsArgument = function (t) {
return t
}, t.exports = i
}, function (t, e, n) {
var i = !1;
t.exports = i
}, function (t, e) {
var n = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
t.exports = n
}, function (t, e, n) {
function i (t, e) {
return t && "object" == typeof t && null != t.key ? l.escape(t.key) : e.toString(36)
}
function r (t, e, n, o) {
var p = typeof t;
if ("undefined" !== p && "boolean" !== p || (t = null), null === t || "string" === p || "number" === p || "object" === p && t.$$typeof === s) return n(o, t, "" === e ? c + i(t, 0) : e), 1;
var h, f, m = 0,
_ = "" === e ? c : e + d;
if (Array.isArray(t))
for (var b = 0; b < t.length; b++) h = t[b], f = _ + i(h, b), m += r(h, f, n, o);
else {
var v = u(t);
if (v) {
var g, y = v.call(t);
if (v !== t.entries)
for (var w = 0; !(g = y.next())
.done;) h = g.value, f = _ + i(h, w++), m += r(h, f, n, o);
else
for (; !(g = y.next())
.done;) {
var M = g.value;
M && (h = M[1], f = _ + l.escape(M[0]) + d + i(h, 0), m += r(h, f, n, o))
}
} else if ("object" === p) {
var T = "",
k = String(t);
a("31", "[object Object]" === k ? "object with keys {" + Object.keys(t)
.join(", ") + "}" : k, T)
}
}
return m
}
function o (t, e, n) {
return null == t ? 0 : r(t, "", e, n)
}
var a = n(578),
s = (n(581), n(585)),
u = n(587),
l = (n(579), n(588)),
c = (n(582), "."),
d = ":";
t.exports = o
}, function (t, e) {
function n (t) {
var e = t && (i && t[i] || t[r]);
if ("function" == typeof e) return e
}
var i = "function" == typeof Symbol && Symbol.iterator,
r = "@@iterator";
t.exports = n
}, function (t, e) {
function n (t) {
var e = /[=:]/g,
n = {
"=": "=0",
":": "=2"
},
i = ("" + t)
.replace(e, function (t) {
return n[t]
});
return "$" + i
}
function i (t) {
var e = /(=0|=2)/g,
n = {
"=0": "=",
"=2": ":"
},
i = "." === t[0] && "$" === t[1] ? t.substring(2) : t.substring(1);
return ("" + i)
.replace(e, function (t) {
return n[t]
})
}
var r = {
escape: n,
unescape: i
};
t.exports = r
}, function (t, e, n) {
function i (t, e, n) {
this.props = t, this.context = e, this.refs = a, this.updater = n || o
}
var r = n(578),
o = n(590),
a = (n(584), n(591));
n(579), n(582);
i.prototype.isReactComponent = {}, i.prototype.setState = function (t, e) {
"object" != typeof t && "function" != typeof t && null != t ? r("85") : void 0, this.updater.enqueueSetState(this, t), e && this.updater.enqueueCallback(this, e, "setState")
}, i.prototype.forceUpdate = function (t) {
this.updater.enqueueForceUpdate(this), t && this.updater.enqueueCallback(this, t, "forceUpdate")
};
t.exports = i
}, function (t, e, n) {
function i (t, e) {}
var r = (n(582), {
isMounted: function (t) {
return !1
},
enqueueCallback: function (t, e) {},
enqueueForceUpdate: function (t) {
i(t, "forceUpdate")
},
enqueueReplaceState: function (t, e) {
i(t, "replaceState")
},
enqueueSetState: function (t, e) {
i(t, "setState")
}
});
t.exports = r
}, function (t, e, n) {
var i = {};
t.exports = i
}, function (t, e, n) {
function i (t, e, n) {
this.props = t, this.context = e, this.refs = u, this.updater = n || s
}
function r () {}
var o = n(430),
a = n(589),
s = n(590),
u = n(591);
r.prototype = a.prototype, i.prototype = new r, i.prototype.constructor = i, o(i.prototype, a.prototype), i.prototype.isPureReactComponent = !0, t.exports = i
}, function (t, e, n) {
function i (t) {
return t
}
function r (t, e) {
var n = y.hasOwnProperty(e) ? y[e] : null;
M.hasOwnProperty(e) && ("OVERRIDE_BASE" !== n ? p("73", e) : void 0), t && ("DEFINE_MANY" !== n && "DEFINE_MANY_MERGED" !== n ? p("74", e) : void 0)
}
function o (t, e) {
if (e) {
"function" == typeof e ? p("75") : void 0, m.isValidElement(e) ? p("76") : void 0;
var n = t.prototype,
i = n.__reactAutoBindPairs;
e.hasOwnProperty(v) && w.mixins(t, e.mixins);
for (var o in e)
if (e.hasOwnProperty(o) && o !== v) {
var a = e[o],
s = n.hasOwnProperty(o);
if (r(s, o), w.hasOwnProperty(o)) w[o](t, a);
else {
var c = y.hasOwnProperty(o),
d = "function" == typeof a,
h = d && !c && !s && e.autobind !== !1;
if (h) i.push(o, a), n[o] = a;
else if (s) {
var f = y[o];
!c || "DEFINE_MANY_MERGED" !== f && "DEFINE_MANY" !== f ? p("77", f, o) : void 0, "DEFINE_MANY_MERGED" === f ? n[o] = u(n[o], a) : "DEFINE_MANY" === f && (n[o] = l(n[o], a))
} else n[o] = a
}
}
} else;
}
function a (t, e) {
if (e)
for (var n in e) {
var i = e[n];
if (e.hasOwnProperty(n)) {
var r = n in w;
r ? p("78", n) : void 0;
var o = n in t;
o ? p("79", n) : void 0, t[n] = i
}
}
}
function s (t, e) {
t && e && "object" == typeof t && "object" == typeof e ? void 0 : p("80");
for (var n in e) e.hasOwnProperty(n) && (void 0 !== t[n] ? p("81", n) : void 0, t[n] = e[n]);
return t
}
function u (t, e) {
return function () {
var n = t.apply(this, arguments),
i = e.apply(this, arguments);
if (null == n) return i;
if (null == i) return n;
var r = {};
return s(r, n), s(r, i), r
}
}
function l (t, e) {
return function () {
t.apply(this, arguments), e.apply(this, arguments)
}
}
function c (t, e) {
var n = e.bind(t);
return n
}
function d (t) {
for (var e = t.__reactAutoBindPairs, n = 0; n < e.length; n += 2) {
var i = e[n],
r = e[n + 1];
t[i] = c(t, r)
}
}
var p = n(578),
h = n(430),
f = n(589),
m = n(580),
_ = (n(594), n(590)),
b = n(591),
v = (n(579), n(582), "mixins"),
g = [],
y = {
mixins: "DEFINE_MANY",
statics: "DEFINE_MANY",
propTypes: "DEFINE_MANY",
contextTypes: "DEFINE_MANY",
childContextTypes: "DEFINE_MANY",
getDefaultProps: "DEFINE_MANY_MERGED",
getInitialState: "DEFINE_MANY_MERGED",
getChildContext: "DEFINE_MANY_MERGED",
render: "DEFINE_ONCE",
componentWillMount: "DEFINE_MANY",
componentDidMount: "DEFINE_MANY",
componentWillReceiveProps: "DEFINE_MANY",
shouldComponentUpdate: "DEFINE_ONCE",
componentWillUpdate: "DEFINE_MANY",
componentDidUpdate: "DEFINE_MANY",
componentWillUnmount: "DEFINE_MANY",
updateComponent: "OVERRIDE_BASE"
},
w = {
displayName: function (t, e) {
t.displayName = e
},
mixins: function (t, e) {
if (e)
for (var n = 0; n < e.length; n++) o(t, e[n])
},
childContextTypes: function (t, e) {
t.childContextTypes = h({}, t.childContextTypes, e)
},
contextTypes: function (t, e) {
t.contextTypes = h({}, t.contextTypes, e)
},
getDefaultProps: function (t, e) {
t.getDefaultProps ? t.getDefaultProps = u(t.getDefaultProps, e) : t.getDefaultProps = e
},
propTypes: function (t, e) {
t.propTypes = h({}, t.propTypes, e)
},
statics: function (t, e) {
a(t, e)
},
autobind: function () {}
},
M = {
replaceState: function (t, e) {
this.updater.enqueueReplaceState(this, t), e && this.updater.enqueueCallback(this, e, "replaceState")
},
isMounted: function () {
return this.updater.isMounted(this)
}
},
T = function () {};
h(T.prototype, f.prototype, M);
var k = {
createClass: function (t) {
var e = i(function (t, n, i) {
this.__reactAutoBindPairs.length && d(this), this.props = t, this.context = n, this.refs = b, this.updater = i || _, this.state = null;
var r = this.getInitialState ? this.getInitialState() : null;
"object" != typeof r || Array.isArray(r) ? p("82", e.displayName || "ReactCompositeComponent") : void 0, this.state = r
});
e.prototype = new T, e.prototype.constructor = e, e.prototype.__reactAutoBindPairs = [], g.forEach(o.bind(null, e)), o(e, t), e.getDefaultProps && (e.defaultProps = e.getDefaultProps()), e.prototype.render ? void 0 : p("83");
for (var n in y) e.prototype[n] || (e.prototype[n] = null);
return e
},
injection: {
injectMixin: function (t) {
g.push(t)
}
}
};
t.exports = k
}, function (t, e, n) {
var i = {};
t.exports = i
}, function (t, e, n) {
var i = n(580),
r = i.createFactory,
o = {
a: r("a"),
abbr: r("abbr"),
address: r("address"),
area: r("area"),
article: r("article"),
aside: r("aside"),
audio: r("audio"),
b: r("b"),
base: r("base"),
bdi: r("bdi"),
bdo: r("bdo"),
big: r("big"),
blockquote: r("blockquote"),
body: r("body"),
br: r("br"),
button: r("button"),
canvas: r("canvas"),
caption: r("caption"),
cite: r("cite"),
code: r("code"),
col: r("col"),
colgroup: r("colgroup"),
data: r("data"),
datalist: r("datalist"),
dd: r("dd"),
del: r("del"),
details: r("details"),
dfn: r("dfn"),
dialog: r("dialog"),
div: r("div"),
dl: r("dl"),
dt: r("dt"),
em: r("em"),
embed: r("embed"),
fieldset: r("fieldset"),
figcaption: r("figcaption"),
figure: r("figure"),
footer: r("footer"),
form: r("form"),
h1: r("h1"),
h2: r("h2"),
h3: r("h3"),
h4: r("h4"),
h5: r("h5"),
h6: r("h6"),
head: r("head"),
header: r("header"),
hgroup: r("hgroup"),
hr: r("hr"),
html: r("html"),
i: r("i"),
iframe: r("iframe"),
img: r("img"),
input: r("input"),
ins: r("ins"),
kbd: r("kbd"),
keygen: r("keygen"),
label: r("label"),
legend: r("legend"),
li: r("li"),
link: r("link"),
main: r("main"),
map: r("map"),
mark: r("mark"),
menu: r("menu"),
menuitem: r("menuitem"),
meta: r("meta"),
meter: r("meter"),
nav: r("nav"),
noscript: r("noscript"),
object: r("object"),
ol: r("ol"),
optgroup: r("optgroup"),
option: r("option"),
output: r("output"),
p: r("p"),
param: r("param"),
picture: r("picture"),
pre: r("pre"),
progress: r("progress"),
q: r("q"),
rp: r("rp"),
rt: r("rt"),
ruby: r("ruby"),
s: r("s"),
samp: r("samp"),
script: r("script"),
section: r("section"),
select: r("select"),
small: r("small"),
source: r("source"),
span: r("span"),
strong: r("strong"),
style: r("style"),
sub: r("sub"),
summary: r("summary"),
sup: r("sup"),
table: r("table"),
tbody: r("tbody"),
td: r("td"),
textarea: r("textarea"),
tfoot: r("tfoot"),
th: r("th"),
thead: r("thead"),
time: r("time"),
title: r("title"),
tr: r("tr"),
track: r("track"),
u: r("u"),
ul: r("ul"),
var: r("var"),
video: r("video"),
wbr: r("wbr"),
circle: r("circle"),
clipPath: r("clipPath"),
defs: r("defs"),
ellipse: r("ellipse"),
g: r("g"),
image: r("image"),
line: r("line"),
linearGradient: r("linearGradient"),
mask: r("mask"),
path: r("path"),
pattern: r("pattern"),
polygon: r("polygon"),
polyline: r("polyline"),
radialGradient: r("radialGradient"),
rect: r("rect"),
stop: r("stop"),
svg: r("svg"),
text: r("text"),
tspan: r("tspan")
};
t.exports = o
}, function (t, e, n) {
function i (t, e) {
return t === e ? 0 !== t || 1 / t === 1 / e : t !== t && e !== e
}
function r (t) {
this.message = t, this.stack = ""
}
function o (t) {
function e (e, n, i, o, a, s, u) {
o = o || L, s = s || i;
if (null == n[i]) {
var l = M[a];
return e ? new r(null === n[i] ? "The " + l + " `" + s + "` is marked as required " + ("in `" + o + "`, but its value is `null`.") : "The " + l + " `" + s + "` is marked as required in " + ("`" + o + "`, but its value is `undefined`.")) : null
}
return t(n, i, o, a, s)
}
var n = e.bind(null, !1);
return n.isRequired = e.bind(null, !0), n
}
function a (t) {
function e (e, n, i, o, a, s) {
var u = e[n],
l = v(u);
if (l !== t) {
var c = M[o],
d = g(u);
return new r("Invalid " + c + " `" + a + "` of type " + ("`" + d + "` supplied to `" + i + "`, expected ") + ("`" + t + "`."))
}
return null
}
return o(e)
}
function s () {
return o(k.thatReturns(null))
}
function u (t) {
function e (e, n, i, o, a) {
if ("function" != typeof t) return new r("Property `" + a + "` of component `" + i + "` has invalid PropType notation inside arrayOf.");
var s = e[n];
if (!Array.isArray(s)) {
var u = M[o],
l = v(s);
return new r("Invalid " + u + " `" + a + "` of type " + ("`" + l + "` supplied to `" + i + "`, expected an array."))
}
for (var c = 0; c < s.length; c++) {
var d = t(s, c, i, o, a + "[" + c + "]", T);
if (d instanceof Error) return d
}
return null
}
return o(e)
}
function l () {
function t (t, e, n, i, o) {
var a = t[e];
if (!w.isValidElement(a)) {
var s = M[i],
u = v(a);
return new r("Invalid " + s + " `" + o + "` of type " + ("`" + u + "` supplied to `" + n + "`, expected a single ReactElement."))
}
return null
}
return o(t)
}
function c (t) {
function e (e, n, i, o, a) {
if (!(e[n] instanceof t)) {
var s = M[o],
u = t.name || L,
l = y(e[n]);
return new r("Invalid " + s + " `" + a + "` of type " + ("`" + l + "` supplied to `" + i + "`, expected ") + ("instance of `" + u + "`."))
}
return null
}
return o(e)
}
function d (t) {
function e (e, n, o, a, s) {
for (var u = e[n], l = 0; l < t.length; l++)
if (i(u, t[l])) return null;
var c = M[a],
d = JSON.stringify(t);
return new r("Invalid " + c + " `" + s + "` of value `" + u + "` " + ("supplied to `" + o + "`, expected one of " + d + "."))
}
return Array.isArray(t) ? o(e) : k.thatReturnsNull
}
function p (t) {
function e (e, n, i, o, a) {
if ("function" != typeof t) return new r("Property `" + a + "` of component `" + i + "` has invalid PropType notation inside objectOf.");
var s = e[n],
u = v(s);
if ("object" !== u) {
var l = M[o];
return new r("Invalid " + l + " `" + a + "` of type " + ("`" + u + "` supplied to `" + i + "`, expected an object."))
}
for (var c in s)
if (s.hasOwnProperty(c)) {
var d = t(s, c, i, o, a + "." + c, T);
if (d instanceof Error) return d
}
return null
}
return o(e)
}
function h (t) {
function e (e, n, i, o, a) {
for (var s = 0; s < t.length; s++) {
var u = t[s];
if (null == u(e, n, i, o, a, T)) return null
}
var l = M[o];
return new r("Invalid " + l + " `" + a + "` supplied to " + ("`" + i + "`."))
}
return Array.isArray(t) ? o(e) : k.thatReturnsNull
}
function f () {
function t (t, e, n, i, o) {
if (!_(t[e])) {
var a = M[i];
return new r("Invalid " + a + " `" + o + "` supplied to " + ("`" + n + "`, expected a ReactNode."))
}
return null
}
return o(t)
}
function m (t) {
function e (e, n, i, o, a) {
var s = e[n],
u = v(s);
if ("object" !== u) {
var l = M[o];
return new r("Invalid " + l + " `" + a + "` of type `" + u + "` " + ("supplied to `" + i + "`, expected `object`."))
}
for (var c in t) {
var d = t[c];
if (d) {
var p = d(s, c, i, o, a + "." + c, T);
if (p) return p
}
}
return null
}
return o(e)
}
function _ (t) {
switch (typeof t) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !t;
case "object":
if (Array.isArray(t)) return t.every(_);
if (null === t || w.isValidElement(t)) return !0;
var e = S(t);
if (!e) return !1;
var n, i = e.call(t);
if (e !== t.entries) {
for (; !(n = i.next())
.done;)
if (!_(n.value)) return !1
} else
for (; !(n = i.next())
.done;) {
var r = n.value;
if (r && !_(r[1])) return !1
}
return !0;
default:
return !1
}
}
function b (t, e) {
return "symbol" === t || ("Symbol" === e["@@toStringTag"] || "function" == typeof Symbol && e instanceof Symbol)
}
function v (t) {
var e = typeof t;
return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : b(e, t) ? "symbol" : e
}
function g (t) {
var e = v(t);
if ("object" === e) {
if (t instanceof Date) return "date";
if (t instanceof RegExp) return "regexp"
}
return e
}
function y (t) {
return t.constructor && t.constructor.name ? t.constructor.name : L
}
var w = n(580),
M = n(594),
T = n(597),
k = n(583),
S = n(587),
L = (n(582), "<<anonymous>>"),
x = {
array: a("array"),
bool: a("boolean"),
func: a("function"),
number: a("number"),
object: a("object"),
string: a("string"),
symbol: a("symbol"),
any: s(),
arrayOf: u,
element: l(),
instanceOf: c,
node: f(),
objectOf: p,
oneOf: d,
oneOfType: h,
shape: m
};
r.prototype = Error.prototype, t.exports = x
}, function (t, e) {
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
t.exports = n
}, function (t, e) {
t.exports = "15.4.1"
}, function (t, e, n) {
function i (t) {
return o.isValidElement(t) ? void 0 : r("143"), t
}
var r = n(578),
o = n(580);
n(579);
t.exports = i
}, function (t, e, n) {
t.exports = n(601)
}, function (t, e, n) {
var i = n(602),
r = n(606),
o = n(728),
a = n(627),
s = n(624),
u = n(733),
l = n(734),
c = n(735),
d = n(736);
n(582);
r.inject();
var p = {
findDOMNode: l,
render: o.render,
unmountComponentAtNode: o.unmountComponentAtNode,
version: u,
unstable_batchedUpdates: s.batchedUpdates,
unstable_renderSubtreeIntoContainer: d
};
"undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
ComponentTree: {
getClosestInstanceFromNode: i.getClosestInstanceFromNode,
getNodeFromInstance: function (t) {
return t._renderedComponent && (t = c(t)), t ? i.getNodeFromInstance(t) : null
}
},
Mount: o,
Reconciler: a
});
t.exports = p
}, function (t, e, n) {
function i (t) {
for (var e; e = t._renderedComponent;) t = e;
return t
}
function r (t, e) {
var n = i(t);
n._hostNode = e, e[m] = n
}
function o (t) {
var e = t._hostNode;
e && (delete e[m], t._hostNode = null)
}
function a (t, e) {
if (!(t._flags & f.hasCachedChildNodes)) {
var n = t._renderedChildren,
o = e.firstChild;
t: for (var a in n)
if (n.hasOwnProperty(a)) {
var s = n[a],
u = i(s)
._domID;
if (0 !== u) {
for (; null !== o; o = o.nextSibling)
if (1 === o.nodeType && o.getAttribute(h) === String(u) || 8 === o.nodeType && o.nodeValue === " react-text: " + u + " " || 8 === o.nodeType && o.nodeValue === " react-empty: " + u + " ") {
r(s, o);
continue t
}
c("32", u)
}
}
t._flags |= f.hasCachedChildNodes
}
}
function s (t) {
if (t[m]) return t[m];
for (var e = []; !t[m];) {
if (e.push(t), !t.parentNode) return null;
t = t.parentNode
}
for (var n, i; t && (i = t[m]); t = e.pop()) n = i, e.length && a(i, t);
return n
}
function u (t) {
var e = s(t);
return null != e && e._hostNode === t ? e : null
}
function l (t) {
if (void 0 === t._hostNode ? c("33") : void 0, t._hostNode) return t._hostNode;
for (var e = []; !t._hostNode;) e.push(t), t._hostParent ? void 0 : c("34"), t = t._hostParent;
for (; e.length; t = e.pop()) a(t, t._hostNode);
return t._hostNode
}
var c = n(603),
d = n(604),
p = n(605),
h = (n(579), d.ID_ATTRIBUTE_NAME),
f = p,
m = "__reactInternalInstance$" + Math.random()
.toString(36)
.slice(2),
_ = {
getClosestInstanceFromNode: s,
getInstanceFromNode: u,
getNodeFromInstance: l,
precacheChildNodes: a,
precacheNode: r,
uncacheNode: o
};
t.exports = _
}, function (t, e) {
function n (t) {
for (var e = arguments.length - 1, n = "Minified React error #" + t + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + t, i = 0; i < e; i++) n += "&args[]=" + encodeURIComponent(arguments[i + 1]);
n += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
var r = new Error(n);
throw r.name = "Invariant Violation", r.framesToPop = 1, r
}
t.exports = n
}, function (t, e, n) {
function i (t, e) {
return (t & e) === e
}
var r = n(603),
o = (n(579), {
MUST_USE_PROPERTY: 1,
HAS_BOOLEAN_VALUE: 4,
HAS_NUMERIC_VALUE: 8,
HAS_POSITIVE_NUMERIC_VALUE: 24,
HAS_OVERLOADED_BOOLEAN_VALUE: 32,
injectDOMPropertyConfig: function (t) {
var e = o,
n = t.Properties || {},
a = t.DOMAttributeNamespaces || {},
u = t.DOMAttributeNames || {},
l = t.DOMPropertyNames || {},
c = t.DOMMutationMethods || {};
t.isCustomAttribute && s._isCustomAttributeFunctions.push(t.isCustomAttribute);
for (var d in n) {
s.properties.hasOwnProperty(d) ? r("48", d) : void 0;
var p = d.toLowerCase(),
h = n[d],
f = {
attributeName: p,
attributeNamespace: null,
propertyName: d,
mutationMethod: null,
mustUseProperty: i(h, e.MUST_USE_PROPERTY),
hasBooleanValue: i(h, e.HAS_BOOLEAN_VALUE),
hasNumericValue: i(h, e.HAS_NUMERIC_VALUE),
hasPositiveNumericValue: i(h, e.HAS_POSITIVE_NUMERIC_VALUE),
hasOverloadedBooleanValue: i(h, e.HAS_OVERLOADED_BOOLEAN_VALUE)
};
if (f.hasBooleanValue + f.hasNumericValue + f.hasOverloadedBooleanValue <= 1 ? void 0 : r("50", d), u.hasOwnProperty(d)) {
var m = u[d];
f.attributeName = m
}
a.hasOwnProperty(d) && (f.attributeNamespace = a[d]), l.hasOwnProperty(d) && (f.propertyName = l[d]), c.hasOwnProperty(d) && (f.mutationMethod = c[d]), s.properties[d] = f
}
}
}),
a = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",
s = {
ID_ATTRIBUTE_NAME: "data-reactid",
ROOT_ATTRIBUTE_NAME: "data-reactroot",
ATTRIBUTE_NAME_START_CHAR: a,
ATTRIBUTE_NAME_CHAR: a + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",
properties: {},
getPossibleStandardName: null,
_isCustomAttributeFunctions: [],
isCustomAttribute: function (t) {
for (var e = 0; e < s._isCustomAttributeFunctions.length; e++) {
var n = s._isCustomAttributeFunctions[e];
if (n(t)) return !0
}
return !1
},
injection: o
};
t.exports = s
}, function (t, e) {
var n = {
hasCachedChildNodes: 1
};
t.exports = n
}, function (t, e, n) {
function i () {
T || (T = !0, v.EventEmitter.injectReactEventListener(b), v.EventPluginHub.injectEventPluginOrder(s), v.EventPluginUtils.injectComponentTree(p), v.EventPluginUtils.injectTreeTraversal(f), v.EventPluginHub.injectEventPluginsByName({
SimpleEventPlugin: M,
EnterLeaveEventPlugin: u,
ChangeEventPlugin: a,
SelectEventPlugin: w,
BeforeInputEventPlugin: o
}), v.HostComponent.injectGenericComponentClass(d), v.HostComponent.injectTextComponentClass(m), v.DOMProperty.injectDOMPropertyConfig(r), v.DOMProperty.injectDOMPropertyConfig(l), v.DOMProperty.injectDOMPropertyConfig(y), v.EmptyComponent.injectEmptyComponentFactory(function (t) {
return new h(t)
}), v.Updates.injectReconcileTransaction(g), v.Updates.injectBatchingStrategy(_), v.Component.injectEnvironment(c))
}
var r = n(607),
o = n(608),
a = n(623),
s = n(635),
u = n(636),
l = n(641),
c = n(642),
d = n(655),
p = n(602),
h = n(699),
f = n(700),
m = n(701),
_ = n(702),
b = n(703),
v = n(706),
g = n(707),
y = n(715),
w = n(716),
M = n(717),
T = !1;
t.exports = {
inject: i
}
}, function (t, e) {
var n = {
Properties: {
"aria-current": 0,
"aria-details": 0,
"aria-disabled": 0,
"aria-hidden": 0,
"aria-invalid": 0,
"aria-keyshortcuts": 0,
"aria-label": 0,
"aria-roledescription": 0,
"aria-autocomplete": 0,
"aria-checked": 0,
"aria-expanded": 0,
"aria-haspopup": 0,
"aria-level": 0,
"aria-modal": 0,
"aria-multiline": 0,
"aria-multiselectable": 0,
"aria-orientation": 0,
"aria-placeholder": 0,
"aria-pressed": 0,
"aria-readonly": 0,
"aria-required": 0,
"aria-selected": 0,
"aria-sort": 0,
"aria-valuemax": 0,
"aria-valuemin": 0,
"aria-valuenow": 0,
"aria-valuetext": 0,
"aria-atomic": 0,
"aria-busy": 0,
"aria-live": 0,
"aria-relevant": 0,
"aria-dropeffect": 0,
"aria-grabbed": 0,
"aria-activedescendant": 0,
"aria-colcount": 0,
"aria-colindex": 0,
"aria-colspan": 0,
"aria-controls": 0,
"aria-describedby": 0,
"aria-errormessage": 0,
"aria-flowto": 0,
"aria-labelledby": 0,
"aria-owns": 0,
"aria-posinset": 0,
"aria-rowcount": 0,
"aria-rowindex": 0,
"aria-rowspan": 0,
"aria-setsize": 0
},
DOMAttributeNames: {},
DOMPropertyNames: {}
};
t.exports = n
}, function (t, e, n) {
function i () {
var t = window.opera;
return "object" == typeof t && "function" == typeof t.version && parseInt(t.version(), 10) <= 12
}
function r (t) {
return (t.ctrlKey || t.altKey || t.metaKey) && !(t.ctrlKey && t.altKey)
}
function o (t) {
switch (t) {
case "topCompositionStart":
return L.compositionStart;
case "topCompositionEnd":
return L.compositionEnd;
case "topCompositionUpdate":
return L.compositionUpdate
}
}
function a (t, e) {
return "topKeyDown" === t && e.keyCode === g
}
function s (t, e) {
switch (t) {
case "topKeyUp":
return v.indexOf(e.keyCode) !== -1;
case "topKeyDown":
return e.keyCode !== g;
case "topKeyPress":
case "topMouseDown":
case "topBlur":
return !0;
default:
return !1
}
}
function u (t) {
var e = t.detail;
return "object" == typeof e && "data" in e ? e.data : null
}
function l (t, e, n, i) {
var r, l;
if (y ? r = o(t) : D ? s(t, n) && (r = L.compositionEnd) : a(t, n) && (r = L.compositionStart), !r) return null;
T && (D || r !== L.compositionStart ? r === L.compositionEnd && D && (l = D.getData()) : D = m.getPooled(i));
var c = _.getPooled(r, e, n, i);
if (l) c.data = l;
else {
var d = u(n);
null !== d && (c.data = d)
}
return h.accumulateTwoPhaseDispatches(c), c
}
function c (t, e) {
switch (t) {
case "topCompositionEnd":
return u(e);
case "topKeyPress":
var n = e.which;
return n !== k ? null : (x = !0, S);
case "topTextInput":
var i = e.data;
return i === S && x ? null : i;
default:
return null
}
}
function d (t, e) {
if (D) {
if ("topCompositionEnd" === t || !y && s(t, e)) {
var n = D.getData();
return m.release(D), D = null, n
}
return null
}
switch (t) {
case "topPaste":
return null;
case "topKeyPress":
return e.which && !r(e) ? String.fromCharCode(e.which) : null;
case "topCompositionEnd":
return T ? null : e.data;
default:
return null
}
}
function p (t, e, n, i) {
var r;
if (r = M ? c(t, n) : d(t, n), !r) return null;
var o = b.getPooled(L.beforeInput, e, n, i);
return o.data = r, h.accumulateTwoPhaseDispatches(o), o
}
var h = n(609),
f = n(616),
m = n(617),
_ = n(620),
b = n(622),
v = [9, 13, 27, 32],
g = 229,
y = f.canUseDOM && "CompositionEvent" in window,
w = null;
f.canUseDOM && "documentMode" in document && (w = document.documentMode);
var M = f.canUseDOM && "TextEvent" in window && !w && !i(),
T = f.canUseDOM && (!y || w && w > 8 && w <= 11),
k = 32,
S = String.fromCharCode(k),
L = {
beforeInput: {
phasedRegistrationNames: {
bubbled: "onBeforeInput",
captured: "onBeforeInputCapture"
},
dependencies: ["topCompositionEnd", "topKeyPress", "topTextInput", "topPaste"]
},
compositionEnd: {
phasedRegistrationNames: {
bubbled: "onCompositionEnd",
captured: "onCompositionEndCapture"
},
dependencies: ["topBlur", "topCompositionEnd", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown"]
},
compositionStart: {
phasedRegistrationNames: {
bubbled: "onCompositionStart",
captured: "onCompositionStartCapture"
},
dependencies: ["topBlur", "topCompositionStart", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown"]
},
compositionUpdate: {
phasedRegistrationNames: {
bubbled: "onCompositionUpdate",
captured: "onCompositionUpdateCapture"
},
dependencies: ["topBlur", "topCompositionUpdate", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown"]
}
},
x = !1,
D = null,
E = {
eventTypes: L,
extractEvents: function (t, e, n, i) {
return [l(t, e, n, i), p(t, e, n, i)]
}
};
t.exports = E
}, function (t, e, n) {
function i (t, e, n) {
var i = e.dispatchConfig.phasedRegistrationNames[n];
return b(t, i)
}
function r (t, e, n) {
var r = i(t, n, e);
r && (n._dispatchListeners = m(n._dispatchListeners, r), n._dispatchInstances = m(n._dispatchInstances, t))
}
function o (t) {
t && t.dispatchConfig.phasedRegistrationNames && f.traverseTwoPhase(t._targetInst, r, t)
}
function a (t) {
if (t && t.dispatchConfig.phasedRegistrationNames) {
var e = t._targetInst,
n = e ? f.getParentInstance(e) : null;
f.traverseTwoPhase(n, r, t)
}
}
function s (t, e, n) {
if (n && n.dispatchConfig.registrationName) {
var i = n.dispatchConfig.registrationName,
r = b(t, i);
r && (n._dispatchListeners = m(n._dispatchListeners, r), n._dispatchInstances = m(n._dispatchInstances, t))
}
}
function u (t) {
t && t.dispatchConfig.registrationName && s(t._targetInst, null, t)
}
function l (t) {
_(t, o)
}
function c (t) {
_(t, a)
}
function d (t, e, n, i) {
f.traverseEnterLeave(n, i, s, t, e)
}
function p (t) {
_(t, u)
}
var h = n(610),
f = n(612),
m = n(614),
_ = n(615),
b = (n(582), h.getListener),
v = {
accumulateTwoPhaseDispatches: l,
accumulateTwoPhaseDispatchesSkipTarget: c,
accumulateDirectDispatches: p,
accumulateEnterLeaveDispatches: d
};
t.exports = v
}, function (t, e, n) {
function i (t) {
return "button" === t || "input" === t || "select" === t || "textarea" === t
}
function r (t, e, n) {
switch (t) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
return !(!n.disabled || !i(e));
default:
return !1
}
}
var o = n(603),
a = n(611),
s = n(612),
u = n(613),
l = n(614),
c = n(615),
d = (n(579), {}),
p = null,
h = function (t, e) {
t && (s.executeDispatchesInOrder(t, e), t.isPersistent() || t.constructor.release(t))
},
f = function (t) {
return h(t, !0)
},
m = function (t) {
return h(t, !1)
},
_ = function (t) {
return "." + t._rootNodeID
},
b = {
injection: {
injectEventPluginOrder: a.injectEventPluginOrder,
injectEventPluginsByName: a.injectEventPluginsByName
},
putListener: function (t, e, n) {
"function" != typeof n ? o("94", e, typeof n) : void 0;
var i = _(t),
r = d[e] || (d[e] = {});
r[i] = n;
var s = a.registrationNameModules[e];
s && s.didPutListener && s.didPutListener(t, e, n)
},
getListener: function (t, e) {
var n = d[e];
if (r(e, t._currentElement.type, t._currentElement.props)) return null;
var i = _(t);
return n && n[i]
},
deleteListener: function (t, e) {
var n = a.registrationNameModules[e];
n && n.willDeleteListener && n.willDeleteListener(t, e);
var i = d[e];
if (i) {
var r = _(t);
delete i[r]
}
},
deleteAllListeners: function (t) {
var e = _(t);
for (var n in d)
if (d.hasOwnProperty(n) && d[n][e]) {
var i = a.registrationNameModules[n];
i && i.willDeleteListener && i.willDeleteListener(t, n), delete d[n][e]
}
},
extractEvents: function (t, e, n, i) {
for (var r, o = a.plugins, s = 0; s < o.length; s++) {
var u = o[s];
if (u) {
var c = u.extractEvents(t, e, n, i);
c && (r = l(r, c))
}
}
return r
},
enqueueEvents: function (t) {
t && (p = l(p, t))
},
processEventQueue: function (t) {
var e = p;
p = null, t ? c(e, f) : c(e, m), p ? o("95") : void 0, u.rethrowCaughtError()
},
__purge: function () {
d = {}
},
__getListenerBank: function () {
return d
}
};
t.exports = b
}, function (t, e, n) {
function i () {
if (s)
for (var t in u) {
var e = u[t],
n = s.indexOf(t);
if (n > -1 ? void 0 : a("96", t), !l.plugins[n]) {
e.extractEvents ? void 0 : a("97", t), l.plugins[n] = e;
var i = e.eventTypes;
for (var o in i) r(i[o], e, o) ? void 0 : a("98", o, t)
}
}
}
function r (t, e, n) {
l.eventNameDispatchConfigs.hasOwnProperty(n) ? a("99", n) : void 0, l.eventNameDispatchConfigs[n] = t;
var i = t.phasedRegistrationNames;
if (i) {
for (var r in i)
if (i.hasOwnProperty(r)) {
var s = i[r];
o(s, e, n)
}
return !0
}
return !!t.registrationName && (o(t.registrationName, e, n), !0)
}
function o (t, e, n) {
l.registrationNameModules[t] ? a("100", t) : void 0, l.registrationNameModules[t] = e, l.registrationNameDependencies[t] = e.eventTypes[n].dependencies
}
var a = n(603),
s = (n(579), null),
u = {},
l = {
plugins: [],
eventNameDispatchConfigs: {},
registrationNameModules: {},
registrationNameDependencies: {},
possibleRegistrationNames: null,
injectEventPluginOrder: function (t) {
s ? a("101") : void 0, s = Array.prototype.slice.call(t), i()
},
injectEventPluginsByName: function (t) {
var e = !1;
for (var n in t)
if (t.hasOwnProperty(n)) {
var r = t[n];
u.hasOwnProperty(n) && u[n] === r || (u[n] ? a("102", n) : void 0, u[n] = r, e = !0)
}
e && i()
},
getPluginModuleForEvent: function (t) {
var e = t.dispatchConfig;
if (e.registrationName) return l.registrationNameModules[e.registrationName] || null;
if (void 0 !== e.phasedRegistrationNames) {
var n = e.phasedRegistrationNames;
for (var i in n)
if (n.hasOwnProperty(i)) {
var r = l.registrationNameModules[n[i]];
if (r) return r
}
}
return null
},
_resetEventPlugins: function () {
s = null;
for (var t in u) u.hasOwnProperty(t) && delete u[t];
l.plugins.length = 0;
var e = l.eventNameDispatchConfigs;
for (var n in e) e.hasOwnProperty(n) && delete e[n];
var i = l.registrationNameModules;
for (var r in i) i.hasOwnProperty(r) && delete i[r]
}
};
t.exports = l
}, function (t, e, n) {
function i (t) {
return "topMouseUp" === t || "topTouchEnd" === t || "topTouchCancel" === t
}
function r (t) {
return "topMouseMove" === t || "topTouchMove" === t
}
function o (t) {
return "topMouseDown" === t || "topTouchStart" === t
}
function a (t, e, n, i) {
var r = t.type || "unknown-event";
t.currentTarget = b.getNodeFromInstance(i), e ? m.invokeGuardedCallbackWithCatch(r, n, t) : m.invokeGuardedCallback(r, n, t), t.currentTarget = null
}
function s (t, e) {
var n = t._dispatchListeners,
i = t._dispatchInstances;
if (Array.isArray(n))
for (var r = 0; r < n.length && !t.isPropagationStopped(); r++) a(t, e, n[r], i[r]);
else n && a(t, e, n, i);
t._dispatchListeners = null, t._dispatchInstances = null
}
function u (t) {
var e = t._dispatchListeners,
n = t._dispatchInstances;
if (Array.isArray(e)) {
for (var i = 0; i < e.length && !t.isPropagationStopped(); i++)
if (e[i](t, n[i])) return n[i]
} else if (e && e(t, n)) return n;
return null
}
function l (t) {
var e = u(t);
return t._dispatchInstances = null, t._dispatchListeners = null, e
}
function c (t) {
var e = t._dispatchListeners,
n = t._dispatchInstances;
Array.isArray(e) ? f("103") : void 0, t.currentTarget = e ? b.getNodeFromInstance(n) : null;
var i = e ? e(t) : null;
return t.currentTarget = null, t._dispatchListeners = null, t._dispatchInstances = null, i
}
function d (t) {
return !!t._dispatchListeners
}
var p, h, f = n(603),
m = n(613),
_ = (n(579), n(582), {
injectComponentTree: function (t) {
p = t
},
injectTreeTraversal: function (t) {
h = t
}
}),
b = {
isEndish: i,
isMoveish: r,
isStartish: o,
executeDirectDispatch: c,
executeDispatchesInOrder: s,
executeDispatchesInOrderStopAtTrue: l,
hasDispatches: d,
getInstanceFromNode: function (t) {
return p.getInstanceFromNode(t)
},
getNodeFromInstance: function (t) {
return p.getNodeFromInstance(t)
},
isAncestor: function (t, e) {
return h.isAncestor(t, e)
},
getLowestCommonAncestor: function (t, e) {
return h.getLowestCommonAncestor(t, e)
},
getParentInstance: function (t) {
return h.getParentInstance(t)
},
traverseTwoPhase: function (t, e, n) {
return h.traverseTwoPhase(t, e, n)
},
traverseEnterLeave: function (t, e, n, i, r) {
return h.traverseEnterLeave(t, e, n, i, r)
},
injection: _
};
t.exports = b
}, function (t, e, n) {
function i (t, e, n) {
try {
e(n)
} catch (t) {
null === r && (r = t)
}
}
var r = null,
o = {
invokeGuardedCallback: i,
invokeGuardedCallbackWithCatch: i,
rethrowCaughtError: function () {
if (r) {
var t = r;
throw r = null, t
}
}
};
t.exports = o
}, function (t, e, n) {
function i (t, e) {
return null == e ? r("30") : void 0, null == t ? e : Array.isArray(t) ? Array.isArray(e) ? (t.push.apply(t, e), t) : (t.push(e), t) : Array.isArray(e) ? [t].concat(e) : [t, e]
}
var r = n(603);
n(579);
t.exports = i
}, function (t, e) {
function n (t, e, n) {
Array.isArray(t) ? t.forEach(e, n) : t && e.call(n, t)
}
t.exports = n
}, function (t, e) {
var n = !("undefined" == typeof window || !window.document || !window.document.createElement),
i = {
canUseDOM: n,
canUseWorkers: "undefined" != typeof Worker,
canUseEventListeners: n && !(!window.addEventListener && !window.attachEvent),
canUseViewport: n && !!window.screen,
isInWorker: !n
};
t.exports = i
}, function (t, e, n) {
function i (t) {
this._root = t, this._startText = this.getText(), this._fallbackText = null
}
var r = n(430),
o = n(618),
a = n(619);
r(i.prototype, {
destructor: function () {
this._root = null, this._startText = null, this._fallbackText = null
},
getText: function () {
return "value" in this._root ? this._root.value : this._root[a()]
},
getData: function () {
if (this._fallbackText) return this._fallbackText;
var t, e, n = this._startText,
i = n.length,
r = this.getText(),
o = r.length;
for (t = 0; t < i && n[t] === r[t]; t++);
var a = i - t;
for (e = 1; e <= a && n[i - e] === r[o - e]; e++);
var s = e > 1 ? 1 - e : void 0;
return this._fallbackText = r.slice(t, s), this._fallbackText
}
}), o.addPoolingTo(i), t.exports = i
}, function (t, e, n) {
var i = n(603),
r = (n(579), function (t) {
var e = this;
if (e.instancePool.length) {
var n = e.instancePool.pop();
return e.call(n, t), n
}
return new e(t)
}),
o = function (t, e) {
var n = this;
if (n.instancePool.length) {
var i = n.instancePool.pop();
return n.call(i, t, e), i
}
return new n(t, e)
},
a = function (t, e, n) {
var i = this;
if (i.instancePool.length) {
var r = i.instancePool.pop();
return i.call(r, t, e, n), r
}
return new i(t, e, n)
},
s = function (t, e, n, i) {
var r = this;
if (r.instancePool.length) {
var o = r.instancePool.pop();
return r.call(o, t, e, n, i), o
}
return new r(t, e, n, i)
},
u = function (t, e, n, i, r) {
var o = this;
if (o.instancePool.length) {
var a = o.instancePool.pop();
return o.call(a, t, e, n, i, r), a
}
return new o(t, e, n, i, r)
},
l = function (t) {
var e = this;
t instanceof e ? void 0 : i("25"), t.destructor(), e.instancePool.length < e.poolSize && e.instancePool.push(t)
},
c = 10,
d = r,
p = function (t, e) {
var n = t;
return n.instancePool = [], n.getPooled = e || d, n.poolSize || (n.poolSize = c), n.release = l, n
},
h = {
addPoolingTo: p,
oneArgumentPooler: r,
twoArgumentPooler: o,
threeArgumentPooler: a,
fourArgumentPooler: s,
fiveArgumentPooler: u
};
t.exports = h
}, function (t, e, n) {
function i () {
return !o && r.canUseDOM && (o = "textContent" in document.documentElement ? "textContent" : "innerText"), o
}
var r = n(616),
o = null;
t.exports = i
}, function (t, e, n) {
function i (t, e, n, i) {
return r.call(this, t, e, n, i)
}
var r = n(621),
o = {
data: null
};
r.augmentClass(i, o), t.exports = i
}, function (t, e, n) {
function i (t, e, n, i) {
this.dispatchConfig = t, this._targetInst = e, this.nativeEvent = n;
var r = this.constructor.Interface;
for (var o in r)
if (r.hasOwnProperty(o)) {
var s = r[o];
s ? this[o] = s(n) : "target" === o ? this.target = i : this[o] = n[o]
}
var u = null != n.defaultPrevented ? n.defaultPrevented : n.returnValue === !1;
return u ? this.isDefaultPrevented = a.thatReturnsTrue : this.isDefaultPrevented = a.thatReturnsFalse, this.isPropagationStopped = a.thatReturnsFalse, this
}
var r = n(430),
o = n(618),
a = n(583),
s = (n(582), "function" == typeof Proxy, ["dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances"]),
u = {
type: null,
target: null,
currentTarget: a.thatReturnsNull,
eventPhase: null,
bubbles: null,
cancelable: null,
timeStamp: function (t) {
return t.timeStamp || Date.now()
},
defaultPrevented: null,
isTrusted: null
};
r(i.prototype, {
preventDefault: function () {
this.defaultPrevented = !0;
var t = this.nativeEvent;
t && (t.preventDefault ? t.preventDefault() : "unknown" != typeof t.returnValue && (t.returnValue = !1), this.isDefaultPrevented = a.thatReturnsTrue)
},
stopPropagation: function () {
var t = this.nativeEvent;
t && (t.stopPropagation ? t.stopPropagation() : "unknown" != typeof t.cancelBubble && (t.cancelBubble = !0), this.isPropagationStopped = a.thatReturnsTrue)
},
persist: function () {
this.isPersistent = a.thatReturnsTrue
},
isPersistent: a.thatReturnsFalse,
destructor: function () {
var t = this.constructor.Interface;
for (var e in t) this[e] = null;
for (var n = 0; n < s.length; n++) this[s[n]] = null
}
}), i.Interface = u, i.augmentClass = function (t, e) {
var n = this,
i = function () {};
i.prototype = n.prototype;
var a = new i;
r(a, t.prototype), t.prototype = a, t.prototype.constructor = t, t.Interface = r({}, n.Interface, e), t.augmentClass = n.augmentClass, o.addPoolingTo(t, o.fourArgumentPooler)
}, o.addPoolingTo(i, o.fourArgumentPooler), t.exports = i
}, function (t, e, n) {
function i (t, e, n, i) {
return r.call(this, t, e, n, i)
}
var r = n(621),
o = {
data: null
};
r.augmentClass(i, o), t.exports = i
}, function (t, e, n) {
function i (t) {
var e = t.nodeName && t.nodeName.toLowerCase();
return "select" === e || "input" === e && "file" === t.type
}
function r (t) {
var e = T.getPooled(x.change, E, t, k(t));
g.accumulateTwoPhaseDispatches(e), M.batchedUpdates(o, e)
}
function o (t) {
v.enqueueEvents(t), v.processEventQueue(!1)
}
function a (t, e) {
D = t, E = e, D.attachEvent("onchange", r)
}
function s () {
D && (D.detachEvent("onchange", r), D = null, E = null)
}
function u (t, e) {
if ("topChange" === t) return e
}
function l (t, e, n) {
"topFocus" === t ? (s(), a(e, n)) : "topBlur" === t && s()
}
function c (t, e) {
D = t, E = e, Y = t.value, C = Object.getOwnPropertyDescriptor(t.constructor.prototype, "value"), Object.defineProperty(D, "value", A), D.attachEvent ? D.attachEvent("onpropertychange", p) : D.addEventListener("propertychange", p, !1)
}
function d () {
D && (delete D.value, D.detachEvent ? D.detachEvent("onpropertychange", p) : D.removeEventListener("propertychange", p, !1), D = null, E = null, Y = null, C = null)
}
function p (t) {
if ("value" === t.propertyName) {
var e = t.srcElement.value;
e !== Y && (Y = e, r(t))
}
}
function h (t, e) {
if ("topInput" === t) return e
}
function f (t, e, n) {
"topFocus" === t ? (d(), c(e, n)) : "topBlur" === t && d()
}
function m (t, e) {
if (("topSelectionChange" === t || "topKeyUp" === t || "topKeyDown" === t) && D && D.value !== Y) return Y = D.value, E
}
function _ (t) {
return t.nodeName && "input" === t.nodeName.toLowerCase() && ("checkbox" === t.type || "radio" === t.type)
}
function b (t, e) {
if ("topClick" === t) return e
}
var v = n(610),
g = n(609),
y = n(616),
w = n(602),
M = n(624),
T = n(621),
k = n(632),
S = n(633),
L = n(634),
x = {
change: {
phasedRegistrationNames: {
bubbled: "onChange",
captured: "onChangeCapture"
},
dependencies: ["topBlur", "topChange", "topClick", "topFocus", "topInput", "topKeyDown", "topKeyUp", "topSelectionChange"]
}
},
D = null,
E = null,
Y = null,
C = null,
P = !1;
y.canUseDOM && (P = S("change") && (!document.documentMode || document.documentMode > 8));
var j = !1;
y.canUseDOM && (j = S("input") && (!document.documentMode || document.documentMode > 11));
var A = {
get: function () {
return C.get.call(this)
},
set: function (t) {
Y = "" + t, C.set.call(this, t)
}
},
F = {
eventTypes: x,
extractEvents: function (t, e, n, r) {
var o, a, s = e ? w.getNodeFromInstance(e) : window;
if (i(s) ? P ? o = u : a = l : L(s) ? j ? o = h : (o = m, a = f): _(s) && (o = b), o) {
var c = o(t, e);
if (c) {
var d = T.getPooled(x.change, c, n, r);
return d.type = "change", g.accumulateTwoPhaseDispatches(d), d
}
}
a && a(t, s, e)
}
};
t.exports = F
}, function (t, e, n) {
function i () {
x.ReactReconcileTransaction && w ? void 0 : c("123")
}
function r () {
this.reinitializeTransaction(), this.dirtyComponentsLength = null, this.callbackQueue = p.getPooled(), this.reconcileTransaction = x.ReactReconcileTransaction.getPooled(!0)
}
function o (t, e, n, r, o, a) {
return i(), w.batchedUpdates(t, e, n, r, o, a)
}
function a (t, e) {
return t._mountOrder - e._mountOrder
}
function s (t) {
var e = t.dirtyComponentsLength;
e !== b.length ? c("124", e, b.length) : void 0, b.sort(a), v++;
for (var n = 0; n < e; n++) {
var i = b[n],
r = i._pendingCallbacks;
i._pendingCallbacks = null;
var o;
if (f.logTopLevelRenders) {
var s = i;
i._currentElement.type.isReactTopLevelWrapper && (s = i._renderedComponent), o = "React update: " + s.getName(), console.time(o)
}
if (m.performUpdateIfNecessary(i, t.reconcileTransaction, v), o && console.timeEnd(o), r)
for (var u = 0; u < r.length; u++) t.callbackQueue.enqueue(r[u], i.getPublicInstance())
}
}
function u (t) {
return i(), w.isBatchingUpdates ? (b.push(t), void(null == t._updateBatchNumber && (t._updateBatchNumber = v + 1))) : void w.batchedUpdates(u, t)
}
function l (t, e) {
w.isBatchingUpdates ? void 0 : c("125"), g.enqueue(t, e), y = !0
}
var c = n(603),
d = n(430),
p = n(625),
h = n(618),
f = n(626),
m = n(627),
_ = n(631),
b = (n(579), []),
v = 0,
g = p.getPooled(),
y = !1,
w = null,
M = {
initialize: function () {
this.dirtyComponentsLength = b.length
},
close: function () {
this.dirtyComponentsLength !== b.length ? (b.splice(0, this.dirtyComponentsLength), S()) : b.length = 0
}
},
T = {
initialize: function () {
this.callbackQueue.reset()
},
close: function () {
this.callbackQueue.notifyAll()
}
},
k = [M, T];
d(r.prototype, _, {
getTransactionWrappers: function () {
return k
},
destructor: function () {
this.dirtyComponentsLength = null, p.release(this.callbackQueue), this.callbackQueue = null, x.ReactReconcileTransaction.release(this.reconcileTransaction), this.reconcileTransaction = null
},
perform: function (t, e, n) {
return _.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, t, e, n)
}
}), h.addPoolingTo(r);
var S = function () {
for (; b.length || y;) {
if (b.length) {
var t = r.getPooled();
t.perform(s, null, t), r.release(t)
}
if (y) {
y = !1;
var e = g;
g = p.getPooled(), e.notifyAll(), p.release(e)
}
}
},
L = {
injectReconcileTransaction: function (t) {
t ? void 0 : c("126"), x.ReactReconcileTransaction = t
},
injectBatchingStrategy: function (t) {
t ? void 0 : c("127"), "function" != typeof t.batchedUpdates ? c("128") : void 0, "boolean" != typeof t.isBatchingUpdates ? c("129") : void 0, w = t
}
},
x = {
ReactReconcileTransaction: null,
batchedUpdates: o,
enqueueUpdate: u,
flushBatchedUpdates: S,
injection: L,
asap: l
};
t.exports = x
}, function (t, e, n) {
function i (t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}
var r = n(603),
o = n(618),
a = (n(579), function () {
function t (e) {
i(this, t), this._callbacks = null, this._contexts = null, this._arg = e
}
return t.prototype.enqueue = function (t, e) {
this._callbacks = this._callbacks || [], this._callbacks.push(t), this._contexts = this._contexts || [], this._contexts.push(e)
}, t.prototype.notifyAll = function () {
var t = this._callbacks,
e = this._contexts,
n = this._arg;
if (t && e) {
t.length !== e.length ? r("24") : void 0, this._callbacks = null, this._contexts = null;
for (var i = 0; i < t.length; i++) t[i].call(e[i], n);
t.length = 0, e.length = 0
}
}, t.prototype.checkpoint = function () {
return this._callbacks ? this._callbacks.length : 0
}, t.prototype.rollback = function (t) {
this._callbacks && this._contexts && (this._callbacks.length = t, this._contexts.length = t)
}, t.prototype.reset = function () {
this._callbacks = null, this._contexts = null
}, t.prototype.destructor = function () {
this.reset()
}, t
}());
t.exports = o.addPoolingTo(a)
}, function (t, e) {
var n = {
logTopLevelRenders: !1
};
t.exports = n
}, function (t, e, n) {
function i () {
r.attachRefs(this, this._currentElement)
}
var r = n(628),
o = (n(630), n(582), {
mountComponent: function (t, e, n, r, o, a) {
var s = t.mountComponent(e, n, r, o, a);
return t._currentElement && null != t._currentElement.ref && e.getReactMountReady()
.enqueue(i, t), s
},
getHostNode: function (t) {
return t.getHostNode()
},
unmountComponent: function (t, e) {
r.detachRefs(t, t._currentElement), t.unmountComponent(e)
},
receiveComponent: function (t, e, n, o) {
var a = t._currentElement;
if (e !== a || o !== t._context) {
var s = r.shouldUpdateRefs(a, e);
s && r.detachRefs(t, a), t.receiveComponent(e, n, o), s && t._currentElement && null != t._currentElement.ref && n.getReactMountReady()
.enqueue(i, t)
}
},
performUpdateIfNecessary: function (t, e, n) {
t._updateBatchNumber === n && t.performUpdateIfNecessary(e)
}
});
t.exports = o
}, function (t, e, n) {
function i (t, e, n) {
"function" == typeof t ? t(e.getPublicInstance()) : o.addComponentAsRefTo(e, t, n)
}
function r (t, e, n) {
"function" == typeof t ? t(null) : o.removeComponentAsRefFrom(e, t, n)
}
var o = n(629),
a = {};
a.attachRefs = function (t, e) {
if (null !== e && "object" == typeof e) {
var n = e.ref;
null != n && i(n, t, e._owner)
}
}, a.shouldUpdateRefs = function (t, e) {
var n = null,
i = null;
null !== t && "object" == typeof t && (n = t.ref, i = t._owner);
var r = null,
o = null;
return null !== e && "object" == typeof e && (r = e.ref, o = e._owner), n !== r || "string" == typeof r && o !== i
}, a.detachRefs = function (t, e) {
if (null !== e && "object" == typeof e) {
var n = e.ref;
null != n && r(n, t, e._owner)
}
}, t.exports = a
}, function (t, e, n) {
function i (t) {
return !(!t || "function" != typeof t.attachRef || "function" != typeof t.detachRef)
}
var r = n(603),
o = (n(579), {
addComponentAsRefTo: function (t, e, n) {
i(n) ? void 0 : r("119"), n.attachRef(e, t)
},
removeComponentAsRefFrom: function (t, e, n) {
i(n) ? void 0 : r("120");
var o = n.getPublicInstance();
o && o.refs[e] === t.getPublicInstance() && n.detachRef(e)
}
});
t.exports = o
}, function (t, e, n) {
var i = null;
t.exports = {
debugTool: i
}
}, function (t, e, n) {
var i = n(603),
r = (n(579), {}),
o = {
reinitializeTransaction: function () {
this.transactionWrappers = this.getTransactionWrappers(), this.wrapperInitData ? this.wrapperInitData.length = 0 : this.wrapperInitData = [], this._isInTransaction = !1
},
_isInTransaction: !1,
getTransactionWrappers: null,
isInTransaction: function () {
return !!this._isInTransaction
},
perform: function (t, e, n, r, o, a, s, u) {
this.isInTransaction() ? i("27") : void 0;
var l, c;
try {
this._isInTransaction = !0, l = !0, this.initializeAll(0), c = t.call(e, n, r, o, a, s, u), l = !1
} finally {
try {
if (l) try {
this.closeAll(0)
} catch (t) {} else this.closeAll(0)
} finally {
this._isInTransaction = !1
}
}
return c
},
initializeAll: function (t) {
for (var e = this.transactionWrappers, n = t; n < e.length; n++) {
var i = e[n];
try {
this.wrapperInitData[n] = r, this.wrapperInitData[n] = i.initialize ? i.initialize.call(this) : null
} finally {
if (this.wrapperInitData[n] === r) try {
this.initializeAll(n + 1)
} catch (t) {}
}
}
},
closeAll: function (t) {
this.isInTransaction() ? void 0 : i("28");
for (var e = this.transactionWrappers, n = t; n < e.length; n++) {
var o, a = e[n],
s = this.wrapperInitData[n];
try {
o = !0, s !== r && a.close && a.close.call(this, s), o = !1
} finally {
if (o) try {
this.closeAll(n + 1)
} catch (t) {}
}
}
this.wrapperInitData.length = 0
}
};
t.exports = o
}, function (t, e) {
function n (t) {
var e = t.target || t.srcElement || window;
return e.correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e
}
t.exports = n
}, function (t, e, n) {
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/
function i (t, e) {
if (!o.canUseDOM || e && !("addEventListener" in document)) return !1;
var n = "on" + t,
i = n in document;
if (!i) {
var a = document.createElement("div");
a.setAttribute(n, "return;"), i = "function" == typeof a[n]
}
return !i && r && "wheel" === t && (i = document.implementation.hasFeature("Events.wheel", "3.0")), i
}
var r, o = n(616);
o.canUseDOM && (r = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0), t.exports = i
}, function (t, e) {
function n (t) {
var e = t && t.nodeName && t.nodeName.toLowerCase();
return "input" === e ? !!i[t.type] : "textarea" === e
}
var i = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0
};
t.exports = n
}, function (t, e) {
var n = ["ResponderEventPlugin", "SimpleEventPlugin", "TapEventPlugin", "EnterLeaveEventPlugin", "ChangeEventPlugin", "SelectEventPlugin", "BeforeInputEventPlugin"];
t.exports = n
}, function (t, e, n) {
var i = n(609),
r = n(602),
o = n(637),
a = {
mouseEnter: {
registrationName: "onMouseEnter",
dependencies: ["topMouseOut", "topMouseOver"]
},
mouseLeave: {
registrationName: "onMouseLeave",
dependencies: ["topMouseOut", "topMouseOver"]
}
},
s = {
eventTypes: a,
extractEvents: function (t, e, n, s) {
if ("topMouseOver" === t && (n.relatedTarget || n.fromElement)) return null;
if ("topMouseOut" !== t && "topMouseOver" !== t) return null;
var u;
if (s.window === s) u = s;
else {
var l = s.ownerDocument;
u = l ? l.defaultView || l.parentWindow : window
}
var c, d;
if ("topMouseOut" === t) {
c = e;
var p = n.relatedTarget || n.toElement;
d = p ? r.getClosestInstanceFromNode(p) : null
} else c = null, d = e;
if (c === d) return null;
var h = null == c ? u : r.getNodeFromInstance(c),
f = null == d ? u : r.getNodeFromInstance(d),
m = o.getPooled(a.mouseLeave, c, n, s);
m.type = "mouseleave", m.target = h, m.relatedTarget = f;
var _ = o.getPooled(a.mouseEnter, d, n, s);
return _.type = "mouseenter", _.target = f, _.relatedTarget = h, i.accumulateEnterLeaveDispatches(m, _, c, d), [m, _]
}
};
t.exports = s
}, function (t, e, n) {
function i (t, e, n, i) {
return r.call(this, t, e, n, i)
}
var r = n(638),
o = n(639),
a = n(640),
s = {
screenX: null,
screenY: null,
clientX: null,
clientY: null,
ctrlKey: null,
shiftKey: null,
altKey: null,
metaKey: null,
getModifierState: a,
button: function (t) {
var e = t.button;
return "which" in t ? e : 2 === e ? 2 : 4 === e ? 1 : 0
},
buttons: null,
relatedTarget: function (t) {
return t.relatedTarget || (t.fromElement === t.srcElement ? t.toElement : t.fromElement)
},
pageX: function (t) {
return "pageX" in t ? t.pageX : t.clientX + o.currentScrollLeft
},
pageY: function (t) {
return "pageY" in t ? t.pageY : t.clientY + o.currentScrollTop
}
};
r.augmentClass(i, s), t.exports = i
}, function (t, e, n) {
function i (t, e, n, i) {
return r.call(this, t, e, n, i)
}
var r = n(621),
o = n(632),
a = {
view: function (t) {
if (t.view) return t.view;
var e = o(t);
if (e.window === e) return e;
var n = e.ownerDocument;
return n ? n.defaultView || n.parentWindow : window
},
detail: function (t) {
return t.detail || 0
}
};
r.augmentClass(i, a), t.exports = i
}, function (t, e) {
var n = {
currentScrollLeft: 0,
currentScrollTop: 0,
refreshScrollValues: function (t) {
n.currentScrollLeft = t.x, n.currentScrollTop = t.y
}
};
t.exports = n
}, function (t, e) {
function n (t) {
var e = this,
n = e.nativeEvent;
if (n.getModifierState) return n.getModifierState(t);
var i = r[t];
return !!i && !!n[i]
}
function i (t) {
return n
}
var r = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
t.exports = i
}, function (t, e, n) {
var i = n(604),
r = i.injection.MUST_USE_PROPERTY,
o = i.injection.HAS_BOOLEAN_VALUE,
a = i.injection.HAS_NUMERIC_VALUE,
s = i.injection.HAS_POSITIVE_NUMERIC_VALUE,
u = i.injection.HAS_OVERLOADED_BOOLEAN_VALUE,
l = {
isCustomAttribute: RegExp.prototype.test.bind(new RegExp("^(data|aria)-[" + i.ATTRIBUTE_NAME_CHAR + "]*$")),
Properties: {
accept: 0,
acceptCharset: 0,
accessKey: 0,
action: 0,
allowFullScreen: o,
allowTransparency: 0,
alt: 0,
as: 0,
async: o,
autoComplete: 0,
autoPlay: o,
capture: o,
cellPadding: 0,
cellSpacing: 0,
charSet: 0,
challenge: 0,
checked: r | o,
cite: 0,
classID: 0,
className: 0,
cols: s,
colSpan: 0,
content: 0,
contentEditable: 0,
contextMenu: 0,
controls: o,
coords: 0,
crossOrigin: 0,
data: 0,
dateTime: 0,
default: o,
defer: o,
dir: 0,
disabled: o,
download: u,
draggable: 0,
encType: 0,
form: 0,
formAction: 0,
formEncType: 0,
formMethod: 0,
formNoValidate: o,
formTarget: 0,
frameBorder: 0,
headers: 0,
height: 0,
hidden: o,
high: 0,
href: 0,
hrefLang: 0,
htmlFor: 0,
httpEquiv: 0,
icon: 0,
id: 0,
inputMode: 0,
integrity: 0,
is: 0,
keyParams: 0,
keyType: 0,
kind: 0,
label: 0,
lang: 0,
list: 0,
loop: o,
low: 0,
manifest: 0,
marginHeight: 0,
marginWidth: 0,
max: 0,
maxLength: 0,
media: 0,
mediaGroup: 0,
method: 0,
min: 0,
minLength: 0,
multiple: r | o,
muted: r | o,
name: 0,
nonce: 0,
noValidate: o,
open: o,
optimum: 0,
pattern: 0,
placeholder: 0,
playsInline: o,
poster: 0,
preload: 0,
profile: 0,
radioGroup: 0,
readOnly: o,
referrerPolicy: 0,
rel: 0,
required: o,
reversed: o,
role: 0,
rows: s,
rowSpan: a,
sandbox: 0,
scope: 0,
scoped: o,
scrolling: 0,
seamless: o,
selected: r | o,
shape: 0,
size: s,
sizes: 0,
span: s,
spellCheck: 0,
src: 0,
srcDoc: 0,
srcLang: 0,
srcSet: 0,
start: a,
step: 0,
style: 0,
summary: 0,
tabIndex: 0,
target: 0,
title: 0,
type: 0,
useMap: 0,
value: 0,
width: 0,
wmode: 0,
wrap: 0,
about: 0,
datatype: 0,
inlist: 0,
prefix: 0,
property: 0,
resource: 0,
typeof: 0,
vocab: 0,
autoCapitalize: 0,
autoCorrect: 0,
autoSave: 0,
color: 0,
itemProp: 0,
itemScope: o,
itemType: 0,
itemID: 0,
itemRef: 0,
results: 0,
security: 0,
unselectable: 0
},
DOMAttributeNames: {
acceptCharset: "accept-charset",
className: "class",
htmlFor: "for",
httpEquiv: "http-equiv"
},
DOMPropertyNames: {}
};
t.exports = l
}, function (t, e, n) {
var i = n(643),
r = n(654),
o = {
processChildrenUpdates: r.dangerouslyProcessChildrenUpdates,
replaceNodeWithMarkup: i.dangerouslyReplaceNodeWithMarkup
};
t.exports = o
}, function (t, e, n) {
function i (t, e) {
return Array.isArray(e) && (e = e[1]), e ? e.nextSibling : t.firstChild
}
function r (t, e, n) {
c.insertTreeBefore(t, e, n)
}
function o (t, e, n) {
Array.isArray(e) ? s(t, e[0], e[1], n) : m(t, e, n)
}
function a (t, e) {
if (Array.isArray(e)) {
var n = e[1];
e = e[0], u(t, e, n), t.removeChild(n)
}
t.removeChild(e)
}
function s (t, e, n, i) {
for (var r = e; ;) {
var o = r.nextSibling;
if (m(t, r, i), r === n) break;
r = o
}
}
function u (t, e, n) {
for (; ;) {
var i = e.nextSibling;
if (i === n) break;
t.removeChild(i)
}
}
function l (t, e, n) {
var i = t.parentNode,
r = t.nextSibling;
r === e ? n && m(i, document.createTextNode(n), r) : n ? (f(r, n), u(i, r, e)) : u(i, t, e)
}
var c = n(644),
d = n(650),
p = (n(602), n(630), n(647)),
h = n(646),
f = n(648),
m = p(function (t, e, n) {
t.insertBefore(e, n)
}),
_ = d.dangerouslyReplaceNodeWithMarkup,
b = {
dangerouslyReplaceNodeWithMarkup: _,
replaceDelimitedText: l,
processUpdates: function (t, e) {
for (var n = 0; n < e.length; n++) {
var s = e[n];
switch (s.type) {
case "INSERT_MARKUP":
r(t, s.content, i(t, s.afterNode));
break;
case "MOVE_EXISTING":
o(t, s.fromNode, i(t, s.afterNode));
break;
case "SET_MARKUP":
h(t, s.content);
break;
case "TEXT_CONTENT":
f(t, s.content);
break;
case "REMOVE_NODE":
a(t, s.fromNode)
}
}
}
};
t.exports = b
}, function (t, e, n) {
function i (t) {
if (_) {
var e = t.node,
n = t.children;
if (n.length)
for (var i = 0; i < n.length; i++) b(e, n[i], null);
else null != t.html ? d(e, t.html) : null != t.text && h(e, t.text)
}
}
function r (t, e) {
t.parentNode.replaceChild(e.node, t), i(e)
}
function o (t, e) {
_ ? t.children.push(e) : t.node.appendChild(e.node)
}
function a (t, e) {
_ ? t.html = e : d(t.node, e)
}
function s (t, e) {
_ ? t.text = e : h(t.node, e)
}
function u () {
return this.node.nodeName
}
function l (t) {
return {
node: t,
children: [],
html: null,
text: null,
toString: u
}
}
var c = n(645),
d = n(646),
p = n(647),
h = n(648),
f = 1,
m = 11,
_ = "undefined" != typeof document && "number" == typeof document.documentMode || "undefined" != typeof navigator && "string" == typeof navigator.userAgent && /\bEdge\/\d/.test(navigator.userAgent),
b = p(function (t, e, n) {
e.node.nodeType === m || e.node.nodeType === f && "object" === e.node.nodeName.toLowerCase() && (null == e.node.namespaceURI || e.node.namespaceURI === c.html) ? (i(e), t.insertBefore(e.node, n)) : (t.insertBefore(e.node, n), i(e))
});
l.insertTreeBefore = b, l.replaceChildWithTree = r, l.queueChild = o, l.queueHTML = a, l.queueText = s, t.exports = l
}, function (t, e) {
var n = {
html: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/1999/xhtml",
mathml: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/1998/Math/MathML",
svg: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/2000/svg"
};
t.exports = n
}, function (t, e, n) {
var i, r = n(616),
o = n(645),
a = /^[ \r\n\t\f]/,
s = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,
u = n(647),
l = u(function (t, e) {
if (t.namespaceURI !== o.svg || "innerHTML" in t) t.innerHTML = e;
else {
i = i || document.createElement("div"), i.innerHTML = "<svg>" + e + "</svg>";
for (var n = i.firstChild; n.firstChild;) t.appendChild(n.firstChild)
}
});
if (r.canUseDOM) {
var c = document.createElement("div");
c.innerHTML = " ", "" === c.innerHTML && (l = function (t, e) {
if (t.parentNode && t.parentNode.replaceChild(t, t), a.test(e) || "<" === e[0] && s.test(e)) {
t.innerHTML = String.fromCharCode(65279) + e;
var n = t.firstChild;
1 === n.data.length ? t.removeChild(n) : n.deleteData(0, 1)
} else t.innerHTML = e
}), c = null
}
t.exports = l
}, function (t, e) {
var n = function (t) {
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function (e, n, i, r) {
MSApp.execUnsafeLocalFunction(function () {
return t(e, n, i, r)
})
} : t
};
t.exports = n
}, function (t, e, n) {
var i = n(616),
r = n(649),
o = n(646),
a = function (t, e) {
if (e) {
var n = t.firstChild;
if (n && n === t.lastChild && 3 === n.nodeType) return void(n.nodeValue = e)
}
t.textContent = e
};
i.canUseDOM && ("textContent" in document.documentElement || (a = function (t, e) {
return 3 === t.nodeType ? void(t.nodeValue = e) : void o(t, r(e))
})), t.exports = a
}, function (t, e) {
function n (t) {
var e = "" + t,
n = r.exec(e);
if (!n) return e;
var i, o = "",
a = 0,
s = 0;
for (a = n.index; a < e.length; a++) {
switch (e.charCodeAt(a)) {
case 34:
i = "&quot;";
break;
case 38:
i = "&amp;";
break;
case 39:
i = "&#x27;";
break;
case 60:
i = "&lt;";
break;
case 62:
i = "&gt;";
break;
default:
continue
}
s !== a && (o += e.substring(s, a)), s = a + 1, o += i
}
return s !== a ? o + e.substring(s, a) : o
}
function i (t) {
return "boolean" == typeof t || "number" == typeof t ? "" + t : n(t)
}
var r = /["'&<>]/;
t.exports = i
}, function (t, e, n) {
var i = n(603),
r = n(644),
o = n(616),
a = n(651),
s = n(583),
u = (n(579), {
dangerouslyReplaceNodeWithMarkup: function (t, e) {
if (o.canUseDOM ? void 0 : i("56"), e ? void 0 : i("57"), "HTML" === t.nodeName ? i("58") : void 0, "string" == typeof e) {
var n = a(e, s)[0];
t.parentNode.replaceChild(n, t)
} else r.replaceChildWithTree(t, e)
}
});
t.exports = u
}, function (t, e, n) {
function i (t) {
var e = t.match(c);
return e && e[1].toLowerCase()
}
function r (t, e) {
var n = l;
l ? void 0 : u(!1);
var r = i(t),
o = r && s(r);
if (o) {
n.innerHTML = o[1] + t + o[2];
for (var c = o[0]; c--;) n = n.lastChild
} else n.innerHTML = t;
var d = n.getElementsByTagName("script");
d.length && (e ? void 0 : u(!1), a(d)
.forEach(e));
for (var p = Array.from(n.childNodes); n.lastChild;) n.removeChild(n.lastChild);
return p
}
var o = n(616),
a = n(652),
s = n(653),
u = n(579),
l = o.canUseDOM ? document.createElement("div") : null,
c = /^\s*<(\w+)/;
t.exports = r
}, function (t, e, n) {
function i (t) {
var e = t.length;
if (Array.isArray(t) || "object" != typeof t && "function" != typeof t ? a(!1) : void 0, "number" != typeof e ? a(!1) : void 0, 0 === e || e - 1 in t ? void 0 : a(!1), "function" == typeof t.callee ? a(!1) : void 0, t.hasOwnProperty) try {
return Array.prototype.slice.call(t)
} catch (t) {}
for (var n = Array(e), i = 0; i < e; i++) n[i] = t[i];
return n
}
function r (t) {
return !!t && ("object" == typeof t || "function" == typeof t) && "length" in t && !("setInterval" in t) && "number" != typeof t.nodeType && (Array.isArray(t) || "callee" in t || "item" in t)
}
function o (t) {
return r(t) ? Array.isArray(t) ? t.slice() : i(t) : [t]
}
var a = n(579);
t.exports = o
}, function (t, e, n) {
function i (t) {
return a ? void 0 : o(!1), p.hasOwnProperty(t) || (t = "*"), s.hasOwnProperty(t) || ("*" === t ? a.innerHTML = "<link />" : a.innerHTML = "<" + t + "></" + t + ">", s[t] = !a.firstChild), s[t] ? p[t] : null
}
var r = n(616),
o = n(579),
a = r.canUseDOM ? document.createElement("div") : null,
s = {},
u = [1, '<select multiple="true">', "</select>"],
l = [1, "<table>", "</table>"],
c = [3, "<table><tbody><tr>", "</tr></tbody></table>"],
d = [1, '<svg xmlns="http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/2000/svg">', "</svg>"],
p = {
"*": [1, "?<div>", "</div>"],
area: [1, "<map>", "</map>"],
col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
legend: [1, "<fieldset>", "</fieldset>"],
param: [1, "<object>", "</object>"],
tr: [2, "<table><tbody>", "</tbody></table>"],
optgroup: u,
option: u,
caption: l,
colgroup: l,
tbody: l,
tfoot: l,
thead: l,
td: c,
th: c
},
h = ["circle", "clipPath", "defs", "ellipse", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "text", "tspan"];
h.forEach(function (t) {
p[t] = d, s[t] = !0
}), t.exports = i
}, function (t, e, n) {
var i = n(643),
r = n(602),
o = {
dangerouslyProcessChildrenUpdates: function (t, e) {
var n = r.getNodeFromInstance(t);
i.processUpdates(n, e)
}
};
t.exports = o
}, function (t, e, n) {
function i (t) {
if (t) {
var e = t._currentElement._owner || null;
if (e) {
var n = e.getName();
if (n) return " This DOM node was rendered by `" + n + "`."
}
}
return ""
}
function r (t, e) {
e && ($[t._tag] && (null != e.children || null != e.dangerouslySetInnerHTML ? m("137", t._tag, t._currentElement._owner ? " Check the render method of " + t._currentElement._owner.getName() + "." : "") : void 0), null != e.dangerouslySetInnerHTML && (null != e.children ? m("60") : void 0, "object" == typeof e.dangerouslySetInnerHTML && W in e.dangerouslySetInnerHTML ? void 0 : m("61")), null != e.style && "object" != typeof e.style ? m("62", i(t)) : void 0)
}
function o (t, e, n, i) {
if (!(i instanceof j)) {
var r = t._hostContainerInfo,
o = r._node && r._node.nodeType === q,
s = o ? r._node : r._ownerDocument;
N(e, s), i.getReactMountReady()
.enqueue(a, {
inst: t,
registrationName: e,
listener: n
})
}
}
function a () {
var t = this;
T.putListener(t.inst, t.registrationName, t.listener)
}
function s () {
var t = this;
D.postMountWrapper(t)
}
function u () {
var t = this;
C.postMountWrapper(t)
}
function l () {
var t = this;
E.postMountWrapper(t)
}
function c () {
var t = this;
t._rootNodeID ? void 0 : m("63");
var e = I(t);
switch (e ? void 0 : m("64"), t._tag) {
case "iframe":
case "object":
t._wrapperState.listeners = [S.trapBubbledEvent("topLoad", "load", e)];
break;
case "video":
case "audio":
t._wrapperState.listeners = [];
for (var n in z) z.hasOwnProperty(n) && t._wrapperState.listeners.push(S.trapBubbledEvent(n, z[n], e));
break;
case "source":
t._wrapperState.listeners = [S.trapBubbledEvent("topError", "error", e)];
break;
case "img":
t._wrapperState.listeners = [S.trapBubbledEvent("topError", "error", e), S.trapBubbledEvent("topLoad", "load", e)];
break;
case "form":
t._wrapperState.listeners = [S.trapBubbledEvent("topReset", "reset", e), S.trapBubbledEvent("topSubmit", "submit", e)];
break;
case "input":
case "select":
case "textarea":
t._wrapperState.listeners = [S.trapBubbledEvent("topInvalid", "invalid", e)]
}
}
function d () {
Y.postUpdateWrapper(this)
}
function p (t) {
X.call(K, t) || (J.test(t) ? void 0 : m("65", t), K[t] = !0)
}
function h (t, e) {
return t.indexOf("-") >= 0 || null != e.is
}
function f (t) {
var e = t.type;
p(e), this._currentElement = t, this._tag = e.toLowerCase(), this._namespaceURI = null, this._renderedChildren = null, this._previousStyle = null, this._previousStyleCopy = null, this._hostNode = null, this._hostParent = null, this._rootNodeID = 0, this._domID = 0, this._hostContainerInfo = null, this._wrapperState = null, this._topLevelWrapper = null, this._flags = 0
}
var m = n(603),
_ = n(430),
b = n(656),
v = n(658),
g = n(644),
y = n(645),
w = n(604),
M = n(666),
T = n(610),
k = n(611),
S = n(668),
L = n(605),
x = n(602),
D = n(671),
E = n(674),
Y = n(675),
C = n(676),
P = (n(630), n(677)),
j = n(695),
A = (n(583), n(649)),
F = (n(579), n(633), n(684), n(698), n(582), L),
O = T.deleteListener,
I = x.getNodeFromInstance,
N = S.listenTo,
U = k.registrationNameModules,
R = {
string: !0,
number: !0
},
H = "style",
W = "__html",
B = {
children: null,
dangerouslySetInnerHTML: null,
suppressContentEditableWarning: null
},
q = 11,
z = {
topAbort: "abort",
topCanPlay: "canplay",
topCanPlayThrough: "canplaythrough",
topDurationChange: "durationchange",
topEmptied: "emptied",
topEncrypted: "encrypted",
topEnded: "ended",
topError: "error",
topLoadedData: "loadeddata",
topLoadedMetadata: "loadedmetadata",
topLoadStart: "loadstart",
topPause: "pause",
topPlay: "play",
topPlaying: "playing",
topProgress: "progress",
topRateChange: "ratechange",
topSeeked: "seeked",
topSeeking: "seeking",
topStalled: "stalled",
topSuspend: "suspend",
topTimeUpdate: "timeupdate",
topVolumeChange: "volumechange",
topWaiting: "waiting"
},
V = {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
},
G = {
listing: !0,
pre: !0,
textarea: !0
},
$ = _({
menuitem: !0
}, V),
J = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
K = {},
X = {}.hasOwnProperty,
Q = 1;
f.displayName = "ReactDOMComponent", f.Mixin = {
mountComponent: function (t, e, n, i) {
this._rootNodeID = Q++, this._domID = n._idCounter++, this._hostParent = e, this._hostContainerInfo = n;
var o = this._currentElement.props;
switch (this._tag) {
case "audio":
case "form":
case "iframe":
case "img":
case "link":
case "object":
case "source":
case "video":
this._wrapperState = {
listeners: null
}, t.getReactMountReady()
.enqueue(c, this);
break;
case "input":
D.mountWrapper(this, o, e), o = D.getHostProps(this, o), t.getReactMountReady()
.enqueue(c, this);
break;
case "option":
E.mountWrapper(this, o, e), o = E.getHostProps(this, o);
break;
case "select":
Y.mountWrapper(this, o, e), o = Y.getHostProps(this, o), t.getReactMountReady()
.enqueue(c, this);
break;
case "textarea":
C.mountWrapper(this, o, e), o = C.getHostProps(this, o), t.getReactMountReady()
.enqueue(c, this)
}
r(this, o);
var a, d;
null != e ? (a = e._namespaceURI, d = e._tag): n._tag
&&
(a = n._namespaceURI, d = n._tag), (null == a || a === y.svg && "foreignobject" === d) && (a = y.html), a === y.html && ("svg" === this._tag ? a = y.svg : "math" === this._tag && (a = y.mathml)), this._namespaceURI = a;
var p;
if (t.useCreateElement) {
var h, f = n._ownerDocument;
if (a === y.html)
if ("script" === this._tag) {
var m = f.createElement("div"),
_ = this._currentElement.type;
m.innerHTML = "<" + _ + "></" + _ + ">", h = m.removeChild(m.firstChild)
} else h = o.is ? f.createElement(this._currentElement.type, o.is) : f.createElement(this._currentElement.type);
else h = WB_CreateElementNS(a, this._currentElement.type);
x.precacheNode(this, h), this._flags |= F.hasCachedChildNodes, this._hostParent || M.setAttributeForRoot(h), this._updateDOMProperties(null, o, t);
var v = g(h);
this._createInitialChildren(t, o, i, v), p = v
} else {
var w = this._createOpenTagMarkupAndPutListeners(t, o),
T = this._createContentMarkup(t, o, i);
p = !T && V[this._tag] ? w + "/>" : w + ">" + T + "</" + this._currentElement.type + ">"
}
switch (this._tag) {
case "input":
t.getReactMountReady()
.enqueue(s, this), o.autoFocus && t.getReactMountReady()
.enqueue(b.focusDOMComponent, this);
break;
case "textarea":
t.getReactMountReady()
.enqueue(u, this), o.autoFocus && t.getReactMountReady()
.enqueue(b.focusDOMComponent, this);
break;
case "select":
o.autoFocus && t.getReactMountReady()
.enqueue(b.focusDOMComponent, this);
break;
case "button":
o.autoFocus && t.getReactMountReady()
.enqueue(b.focusDOMComponent, this);
break;
case "option":
t.getReactMountReady()
.enqueue(l, this)
}
return p
},
_createOpenTagMarkupAndPutListeners: function (t, e) {
var n = "<" + this._currentElement.type;
for (var i in e)
if (e.hasOwnProperty(i)) {
var r = e[i];
if (null != r)
if (U.hasOwnProperty(i)) r && o(this, i, r, t);
else {
i === H && (r && (r = this._previousStyleCopy = _({}, e.style)), r = v.createMarkupForStyles(r, this));
var a = null;
null != this._tag && h(this._tag, e) ? B.hasOwnProperty(i) || (a = M.createMarkupForCustomAttribute(i, r)) : a = M.createMarkupForProperty(i, r), a && (n += " " + a)
}
}
return t.renderToStaticMarkup ? n : (this._hostParent || (n += " " + M.createMarkupForRoot()), n += " " + M.createMarkupForID(this._domID))
},
_createContentMarkup: function (t, e, n) {
var i = "",
r = e.dangerouslySetInnerHTML;
if (null != r) null != r.__html && (i = r.__html);
else {
var o = R[typeof e.children] ? e.children : null,
a = null != o ? null : e.children;
if (null != o) i = A(o);
else if (null != a) {
var s = this.mountChildren(a, t, n);
i = s.join("")
}
}
return G[this._tag] && "\n" === i.charAt(0) ? "\n" + i : i
},
_createInitialChildren: function (t, e, n, i) {
var r = e.dangerouslySetInnerHTML;
if (null != r) null != r.__html && g.queueHTML(i, r.__html);
else {
var o = R[typeof e.children] ? e.children : null,
a = null != o ? null : e.children;
if (null != o) g.queueText(i, o);
else if (null != a)
for (var s = this.mountChildren(a, t, n), u = 0; u < s.length; u++) g.queueChild(i, s[u])
}
},
receiveComponent: function (t, e, n) {
var i = this._currentElement;
this._currentElement = t, this.updateComponent(e, i, t, n)
},
updateComponent: function (t, e, n, i) {
var o = e.props,
a = this._currentElement.props;
switch (this._tag) {
case "input":
o = D.getHostProps(this, o), a = D.getHostProps(this, a);
break;
case "option":
o = E.getHostProps(this, o), a = E.getHostProps(this, a);
break;
case "select":
o = Y.getHostProps(this, o), a = Y.getHostProps(this, a);
break;
case "textarea":
o = C.getHostProps(this, o), a = C.getHostProps(this, a)
}
switch (r(this, a), this._updateDOMProperties(o, a, t), this._updateDOMChildren(o, a, t, i), this._tag) {
case "input":
D.updateWrapper(this);
break;
case "textarea":
C.updateWrapper(this);
break;
case "select":
t.getReactMountReady()
.enqueue(d, this)
}
},
_updateDOMProperties: function (t, e, n) {
var i, r, a;
for (i in t)
if (!e.hasOwnProperty(i) && t.hasOwnProperty(i) && null != t[i])
if (i === H) {
var s = this._previousStyleCopy;
for (r in s) s.hasOwnProperty(r) && (a = a || {}, a[r] = "");
this._previousStyleCopy = null
} else U.hasOwnProperty(i) ? t[i] && O(this, i) : h(this._tag, t) ? B.hasOwnProperty(i) || M.deleteValueForAttribute(I(this), i) : (w.properties[i] || w.isCustomAttribute(i)) && M.deleteValueForProperty(I(this), i);
for (i in e) {
var u = e[i],
l = i === H ? this._previousStyleCopy : null != t ? t[i] : void 0;
if (e.hasOwnProperty(i) && u !== l && (null != u || null != l))
if (i === H)
if (u ? u = this._previousStyleCopy = _({}, u) : this._previousStyleCopy = null, l) {
for (r in l) !l.hasOwnProperty(r) || u && u.hasOwnProperty(r) || (a = a || {}, a[r] = "");
for (r in u) u.hasOwnProperty(r) && l[r] !== u[r] && (a = a || {}, a[r] = u[r])
} else a = u;
else if (U.hasOwnProperty(i)) u ? o(this, i, u, n) : l && O(this, i);
else if (h(this._tag, e)) B.hasOwnProperty(i) || M.setValueForAttribute(I(this), i, u);
else if (w.properties[i] || w.isCustomAttribute(i)) {
var c = I(this);
null != u ? M.setValueForProperty(c, i, u) : M.deleteValueForProperty(c, i)
}
}
a && v.setValueForStyles(I(this), a, this)
},
_updateDOMChildren: function (t, e, n, i) {
var r = R[typeof t.children] ? t.children : null,
o = R[typeof e.children] ? e.children : null,
a = t.dangerouslySetInnerHTML && t.dangerouslySetInnerHTML.__html,
s = e.dangerouslySetInnerHTML && e.dangerouslySetInnerHTML.__html,
u = null != r ? null : t.children,
l = null != o ? null : e.children,
c = null != r || null != a,
d = null != o || null != s;
null != u && null == l ? this.updateChildren(null, n, i) : c && !d && this.updateTextContent(""), null != o ? r !== o && this.updateTextContent("" + o) : null != s ? a !== s && this.updateMarkup("" + s) : null != l && this.updateChildren(l, n, i)
},
getHostNode: function () {
return I(this)
},
unmountComponent: function (t) {
switch (this._tag) {
case "audio":
case "form":
case "iframe":
case "img":
case "link":
case "object":
case "source":
case "video":
var e = this._wrapperState.listeners;
if (e)
for (var n = 0; n < e.length; n++) e[n].remove();
break;
case "html":
case "head":
case "body":
m("66", this._tag)
}
this.unmountChildren(t), x.uncacheNode(this), T.deleteAllListeners(this), this._rootNodeID = 0, this._domID = 0, this._wrapperState = null
},
getPublicInstance: function () {
return I(this)
}
}, _(f.prototype, f.Mixin, P.Mixin), t.exports = f
}, function (t, e, n) {
var i = n(602),
r = n(657),
o = {
focusDOMComponent: function () {
r(i.getNodeFromInstance(this))
}
};
t.exports = o
}, function (t, e) {
function n (t) {
try {
t.focus()
} catch (t) {}
}
t.exports = n
}, function (t, e, n) {
var i = n(659),
r = n(616),
o = (n(630), n(660), n(662)),
a = n(663),
s = n(665),
u = (n(582), s(function (t) {
return a(t)
})),
l = !1,
c = "cssFloat";
if (r.canUseDOM) {
var d = document.createElement("div")
.style;
try {
d.font = ""
} catch (t) {
l = !0
}
void 0 === document.documentElement.style.cssFloat && (c = "styleFloat")
}
var p = {
createMarkupForStyles: function (t, e) {
var n = "";
for (var i in t)
if (t.hasOwnProperty(i)) {
var r = t[i];
null != r && (n += u(i) + ":", n += o(i, r, e) + ";")
}
return n || null
},
setValueForStyles: function (t, e, n) {
var r = t.style;
for (var a in e)
if (e.hasOwnProperty(a)) {
var s = o(a, e[a], n);
if ("float" !== a && "cssFloat" !== a || (a = c), s) r[a] = s;
else {
var u = l && i.shorthandPropertyExpansions[a];
if (u)
for (var d in u) r[d] = "";
else r[a] = ""
}
}
}
};
t.exports = p
}, function (t, e) {
function n (t, e) {
return t + e.charAt(0)
.toUpperCase() + e.substring(1)
}
var i = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridRow: !0,
gridColumn: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
},
r = ["Webkit", "ms", "Moz", "O"];
Object.keys(i)
.forEach(function (t) {
r.forEach(function (e) {
i[n(e, t)] = i[t]
})
});
var o = {
background: {
backgroundAttachment: !0,
backgroundColor: !0,
backgroundImage: !0,
backgroundPositionX: !0,
backgroundPositionY: !0,
backgroundRepeat: !0
},
backgroundPosition: {
backgroundPositionX: !0,
backgroundPositionY: !0
},
border: {
borderWidth: !0,
borderStyle: !0,
borderColor: !0
},
borderBottom: {
borderBottomWidth: !0,
borderBottomStyle: !0,
borderBottomColor: !0
},
borderLeft: {
borderLeftWidth: !0,
borderLeftStyle: !0,
borderLeftColor: !0
},
borderRight: {
borderRightWidth: !0,
borderRightStyle: !0,
borderRightColor: !0
},
borderTop: {
borderTopWidth: !0,
borderTopStyle: !0,
borderTopColor: !0
},
font: {
fontStyle: !0,
fontVariant: !0,
fontWeight: !0,
fontSize: !0,
lineHeight: !0,
fontFamily: !0
},
outline: {
outlineWidth: !0,
outlineStyle: !0,
outlineColor: !0
}
},
a = {
isUnitlessNumber: i,
shorthandPropertyExpansions: o
};
t.exports = a
}, function (t, e, n) {
function i (t) {
return r(t.replace(o, "ms-"))
}
var r = n(661),
o = /^-ms-/;
t.exports = i
}, function (t, e) {
function n (t) {
return t.replace(i, function (t, e) {
return e.toUpperCase()
})
}
var i = /-(.)/g;
t.exports = n
}, function (t, e, n) {
function i (t, e, n) {
var i = null == e || "boolean" == typeof e || "" === e;
if (i) return "";
var r = isNaN(e);
if (r || 0 === e || o.hasOwnProperty(t) && o[t]) return "" + e;
if ("string" == typeof e) {
e = e.trim()
}
return e + "px"
}
var r = n(659),
o = (n(582), r.isUnitlessNumber);
t.exports = i
}, function (t, e, n) {
function i (t) {
return r(t)
.replace(o, "-ms-")
}
var r = n(664),
o = /^ms-/;
t.exports = i
}, function (t, e) {
function n (t) {
return t.replace(i, "-$1")
.toLowerCase()
}
var i = /([A-Z])/g;
t.exports = n
}, function (t, e) {
function n (t) {
var e = {};
return function (n) {
return e.hasOwnProperty(n) || (e[n] = t.call(this, n)), e[n]
}
}
t.exports = n
}, function (t, e, n) {
function i (t) {
return !!l.hasOwnProperty(t) || !u.hasOwnProperty(t) && (s.test(t) ? (l[t] = !0, !0) : (u[t] = !0, !1))
}
function r (t, e) {
return null == e || t.hasBooleanValue && !e || t.hasNumericValue && isNaN(e) || t.hasPositiveNumericValue && e < 1 || t.hasOverloadedBooleanValue && e === !1
}
var o = n(604),
a = (n(602), n(630), n(667)),
s = (n(582), new RegExp("^[" + o.ATTRIBUTE_NAME_START_CHAR + "][" + o.ATTRIBUTE_NAME_CHAR + "]*$")),
u = {},
l = {},
c = {
createMarkupForID: function (t) {
return o.ID_ATTRIBUTE_NAME + "=" + a(t)
},
setAttributeForID: function (t, e) {
t.setAttribute(o.ID_ATTRIBUTE_NAME, e)
},
createMarkupForRoot: function () {
return o.ROOT_ATTRIBUTE_NAME + '=""'
},
setAttributeForRoot: function (t) {
t.setAttribute(o.ROOT_ATTRIBUTE_NAME, "")
},
createMarkupForProperty: function (t, e) {
var n = o.properties.hasOwnProperty(t) ? o.properties[t] : null;
if (n) {
if (r(n, e)) return "";
var i = n.attributeName;
return n.hasBooleanValue || n.hasOverloadedBooleanValue && e === !0 ? i + '=""' : i + "=" + a(e)
}
return o.isCustomAttribute(t) ? null == e ? "" : t + "=" + a(e) : null
},
createMarkupForCustomAttribute: function (t, e) {
return i(t) && null != e ? t + "=" + a(e) : ""
},
setValueForProperty: function (t, e, n) {
var i = o.properties.hasOwnProperty(e) ? o.properties[e] : null;
if (i) {
var a = i.mutationMethod;
if (a) a(t, n);
else {
if (r(i, n)) return void this.deleteValueForProperty(t, e);
if (i.mustUseProperty) t[i.propertyName] = n;
else {
var s = i.attributeName,
u = i.attributeNamespace;
u ? t.setAttributeNS(u, s, "" + n) : i.hasBooleanValue || i.hasOverloadedBooleanValue && n === !0 ? t.setAttribute(s, "") : t.setAttribute(s, "" + n)
}
}
} else if (o.isCustomAttribute(e)) return void c.setValueForAttribute(t, e, n)
},
setValueForAttribute: function (t, e, n) {
if (i(e)) {
null == n ? t.removeAttribute(e) : t.setAttribute(e, "" + n)
}
},
deleteValueForAttribute: function (t, e) {
t.removeAttribute(e)
},
deleteValueForProperty: function (t, e) {
var n = o.properties.hasOwnProperty(e) ? o.properties[e] : null;
if (n) {
var i = n.mutationMethod;
if (i) i(t, void 0);
else if (n.mustUseProperty) {
var r = n.propertyName;
n.hasBooleanValue ? t[r] = !1 : t[r] = ""
} else t.removeAttribute(n.attributeName)
} else o.isCustomAttribute(e) && t.removeAttribute(e)
}
};
t.exports = c
}, function (t, e, n) {
function i (t) {
return '"' + r(t) + '"'
}
var r = n(649);
t.exports = i
}, function (t, e, n) {
function i (t) {
return Object.prototype.hasOwnProperty.call(t, m) || (t[m] = h++, d[t[m]] = {}), d[t[m]]
}
var r, o = n(430),
a = n(611),
s = n(669),
u = n(639),
l = n(670),
c = n(633),
d = {},
p = !1,
h = 0,
f = {
topAbort: "abort",
topAnimationEnd: l("animationend") || "animationend",
topAnimationIteration: l("animationiteration") || "animationiteration",
topAnimationStart: l("animationstart") || "animationstart",
topBlur: "blur",
topCanPlay: "canplay",
topCanPlayThrough: "canplaythrough",
topChange: "change",
topClick: "click",
topCompositionEnd: "compositionend",
topCompositionStart: "compositionstart",
topCompositionUpdate: "compositionupdate",
topContextMenu: "contextmenu",
topCopy: "copy",
topCut: "cut",
topDoubleClick: "dblclick",
topDrag: "drag",
topDragEnd: "dragend",
topDragEnter: "dragenter",
topDragExit: "dragexit",
topDragLeave: "dragleave",
topDragOver: "dragover",
topDragStart: "dragstart",
topDrop: "drop",
topDurationChange: "durationchange",
topEmptied: "emptied",
topEncrypted: "encrypted",
topEnded: "ended",
topError: "error",
topFocus: "focus",
topInput: "input",
topKeyDown: "keydown",
topKeyPress: "keypress",
topKeyUp: "keyup",
topLoadedData: "loadeddata",
topLoadedMetadata: "loadedmetadata",
topLoadStart: "loadstart",
topMouseDown: "mousedown",
topMouseMove: "mousemove",
topMouseOut: "mouseout",
topMouseOver: "mouseover",
topMouseUp: "mouseup",
topPaste: "paste",
topPause: "pause",
topPlay: "play",
topPlaying: "playing",
topProgress: "progress",
topRateChange: "ratechange",
topScroll: "scroll",
topSeeked: "seeked",
topSeeking: "seeking",
topSelectionChange: "selectionchange",
topStalled: "stalled",
topSuspend: "suspend",
topTextInput: "textInput",
topTimeUpdate: "timeupdate",
topTouchCancel: "touchcancel",
topTouchEnd: "touchend",
topTouchMove: "touchmove",
topTouchStart: "touchstart",
topTransitionEnd: l("transitionend") || "transitionend",
topVolumeChange: "volumechange",
topWaiting: "waiting",
topWheel: "wheel"
},
m = "_reactListenersID" + String(Math.random())
.slice(2),
_ = o({}, s, {
ReactEventListener: null,
injection: {
injectReactEventListener: function (t) {
t.setHandleTopLevel(_.handleTopLevel), _.ReactEventListener = t
}
},
setEnabled: function (t) {
_.ReactEventListener && _.ReactEventListener.setEnabled(t)
},
isEnabled: function () {
return !(!_.ReactEventListener || !_.ReactEventListener.isEnabled())
},
listenTo: function (t, e) {
for (var n = e, r = i(n), o = a.registrationNameDependencies[t], s = 0; s < o.length; s++) {
var u = o[s];
r.hasOwnProperty(u) && r[u] || ("topWheel" === u ? c("wheel") ? _.ReactEventListener.trapBubbledEvent("topWheel", "wheel", n) : c("mousewheel") ? _.ReactEventListener.trapBubbledEvent("topWheel", "mousewheel", n) : _.ReactEventListener.trapBubbledEvent("topWheel", "DOMMouseScroll", n) : "topScroll" === u ? c("scroll", !0) ? _.ReactEventListener.trapCapturedEvent("topScroll", "scroll", n) : _.ReactEventListener.trapBubbledEvent("topScroll", "scroll", _.ReactEventListener.WINDOW_HANDLE) : "topFocus" === u || "topBlur" === u ? (c("focus", !0) ? (_.ReactEventListener.trapCapturedEvent("topFocus", "focus", n), _.ReactEventListener.trapCapturedEvent("topBlur", "blur", n)) : c("focusin") && (_.ReactEventListener.trapBubbledEvent("topFocus", "focusin", n), _.ReactEventListener.trapBubbledEvent("topBlur", "focusout", n)), r.topBlur = !0, r.topFocus = !0) : f.hasOwnProperty(u) && _.ReactEventListener.trapBubbledEvent(u, f[u], n), r[u] = !0)
}
},
trapBubbledEvent: function (t, e, n) {
return _.ReactEventListener.trapBubbledEvent(t, e, n)
},
trapCapturedEvent: function (t, e, n) {
return _.ReactEventListener.trapCapturedEvent(t, e, n)
},
supportsEventPageXY: function () {
if (!document.createEvent) return !1;
var t = document.createEvent("MouseEvent");
return null != t && "pageX" in t
},
ensureScrollValueMonitoring: function () {
if (void 0 === r && (r = _.supportsEventPageXY()), !r && !p) {
var t = u.refreshScrollValues;
_.ReactEventListener.monitorScrollValue(t), p = !0
}
}
});
t.exports = _
}, function (t, e, n) {
function i (t) {
r.enqueueEvents(t), r.processEventQueue(!1)
}
var r = n(610),
o = {
handleTopLevel: function (t, e, n, o) {
var a = r.extractEvents(t, e, n, o);
i(a)
}
};
t.exports = o
}, function (t, e, n) {
function i (t, e) {
var n = {};
return n[t.toLowerCase()] = e.toLowerCase(), n["Webkit" + t] = "webkit" + e, n["Moz" + t] = "moz" + e, n["ms" + t] = "MS" + e, n["O" + t] = "o" + e.toLowerCase(), n
}
function r (t) {
if (s[t]) return s[t];
if (!a[t]) return t;
var e = a[t];
for (var n in e)
if (e.hasOwnProperty(n) && n in u) return s[t] = e[n];
return ""
}
var o = n(616),
a = {
animationend: i("Animation", "AnimationEnd"),
animationiteration: i("Animation", "AnimationIteration"),
animationstart: i("Animation", "AnimationStart"),
transitionend: i("Transition", "TransitionEnd")
},
s = {},
u = {};
o.canUseDOM && (u = document.createElement("div")
.style, "AnimationEvent" in window || (delete a.animationend.animation, delete a.animationiteration.animation, delete a.animationstart.animation), "TransitionEvent" in window || delete a.transitionend.transition),
t.exports = r
}, function (t, e, n) {
function i () {
this._rootNodeID && d.updateWrapper(this)
}
function r (t) {
var e = this._currentElement.props,
n = u.executeOnChange(e, t);
c.asap(i, this);
var r = e.name;
if ("radio" === e.type && null != r) {
for (var a = l.getNodeFromInstance(this), s = a; s.parentNode;) s = s.parentNode;
for (var d = s.querySelectorAll("input[name=" + JSON.stringify("" + r) + '][type="radio"]'), p = 0; p < d.length; p++) {
var h = d[p];
if (h !== a && h.form === a.form) {
var f = l.getInstanceFromNode(h);
f ? void 0 : o("90"), c.asap(i, f)
}
}
}
return n
}
var o = n(603),
a = n(430),
s = n(666),
u = n(672),
l = n(602),
c = n(624),
d = (n(579), n(582), {
getHostProps: function (t, e) {
var n = u.getValue(e),
i = u.getChecked(e),
r = a({
type: void 0,
step: void 0,
min: void 0,
max: void 0
}, e, {
defaultChecked: void 0,
defaultValue: void 0,
value: null != n ? n : t._wrapperState.initialValue,
checked: null != i ? i : t._wrapperState.initialChecked,
onChange: t._wrapperState.onChange
});
return r
},
mountWrapper: function (t, e) {
var n = e.defaultValue;
t._wrapperState = {
initialChecked: null != e.checked ? e.checked : e.defaultChecked,
initialValue: null != e.value ? e.value : n,
listeners: null,
onChange: r.bind(t)
}
},
updateWrapper: function (t) {
var e = t._currentElement.props,
n = e.checked;
null != n && s.setValueForProperty(l.getNodeFromInstance(t), "checked", n || !1);
var i = l.getNodeFromInstance(t),
r = u.getValue(e);
if (null != r) {
var o = "" + r;
o !== i.value && (i.value = o)
} else null == e.value && null != e.defaultValue && (i.defaultValue = "" + e.defaultValue), null == e.checked && null != e.defaultChecked && (i.defaultChecked = !!e.defaultChecked)
},
postMountWrapper: function (t) {
var e = t._currentElement.props,
n = l.getNodeFromInstance(t);
switch (e.type) {
case "submit":
case "reset":
break;
case "color":
case "date":
case "datetime":
case "datetime-local":
case "month":
case "time":
case "week":
n.value = "", n.value = n.defaultValue;
break;
default:
n.value = n.value
}
var i = n.name;
"" !== i && (n.name = ""), n.defaultChecked = !n.defaultChecked, n.defaultChecked = !n.defaultChecked, "" !== i && (n.name = i)
}
});
t.exports = d
}, function (t, e, n) {
function i (t) {
null != t.checkedLink && null != t.valueLink ? s("87") : void 0
}
function r (t) {
i(t), null != t.value || null != t.onChange ? s("88") : void 0
}
function o (t) {
i(t), null != t.checked || null != t.onChange ? s("89") : void 0
}
function a (t) {
if (t) {
var e = t.getName();
if (e) return " Check the render method of `" + e + "`."
}
return ""
}
var s = n(603),
u = n(575),
l = n(673),
c = (n(579), n(582), {
button: !0,
checkbox: !0,
image: !0,
hidden: !0,
radio: !0,
reset: !0,
submit: !0
}),
d = {
value: function (t, e, n) {
return !t[e] || c[t.type] || t.onChange || t.readOnly || t.disabled ? null : new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")
},
checked: function (t, e, n) {
return !t[e] || t.onChange || t.readOnly || t.disabled ? null : new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")
},
onChange: u.PropTypes.func
},
p = {},
h = {
checkPropTypes: function (t, e, n) {
for (var i in d) {
if (d.hasOwnProperty(i)) var r = d[i](e, i, t, "prop", null, l);
if (r instanceof Error && !(r.message in p)) {
p[r.message] = !0;
a(n)
}
}
},
getValue: function (t) {
return t.valueLink ? (r(t), t.valueLink.value) : t.value
},
getChecked: function (t) {
return t.checkedLink ? (o(t), t.checkedLink.value) : t.checked
},
executeOnChange: function (t, e) {
return t.valueLink ? (r(t), t.valueLink.requestChange(e.target.value)) : t.checkedLink ? (o(t), t.checkedLink.requestChange(e.target.checked)) : t.onChange ? t.onChange.call(void 0, e) : void 0
}
};
t.exports = h
}, function (t, e) {
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
t.exports = n
}, function (t, e, n) {
function i (t) {
var e = "";
return o.Children.forEach(t, function (t) {
null != t && ("string" == typeof t || "number" == typeof t ? e += t : u || (u = !0))
}), e
}
var r = n(430),
o = n(575),
a = n(602),
s = n(675),
u = (n(582), !1),
l = {
mountWrapper: function (t, e, n) {
var r = null;
if (null != n) {
var o = n;
"optgroup" === o._tag && (o = o._hostParent), null != o && "select" === o._tag && (r = s.getSelectValueContext(o))
}
var a = null;
if (null != r) {
var u;
if (u = null != e.value ? e.value + "" : i(e.children), a = !1, Array.isArray(r)) {
for (var l = 0; l < r.length; l++)
if ("" + r[l] === u) {
a = !0;
break
}
} else a = "" + r === u
}
t._wrapperState = {
selected: a
}
},
postMountWrapper: function (t) {
var e = t._currentElement.props;
if (null != e.value) {
var n = a.getNodeFromInstance(t);
n.setAttribute("value", e.value)
}
},
getHostProps: function (t, e) {
var n = r({
selected: void 0,
children: void 0
}, e);
null != t._wrapperState.selected && (n.selected = t._wrapperState.selected);
var o = i(e.children);
return o && (n.children = o), n
}
};
t.exports = l
}, function (t, e, n) {
function i () {
if (this._rootNodeID && this._wrapperState.pendingUpdate) {
this._wrapperState.pendingUpdate = !1;
var t = this._currentElement.props,
e = s.getValue(t);
null != e && r(this, Boolean(t.multiple), e)
}
}
function r (t, e, n) {
var i, r, o = u.getNodeFromInstance(t)
.options;
if (e) {
for (i = {}, r = 0; r < n.length; r++) i["" + n[r]] = !0;
for (r = 0; r < o.length; r++) {
var a = i.hasOwnProperty(o[r].value);
o[r].selected !== a && (o[r].selected = a)
}
} else {
for (i = "" + n, r = 0; r < o.length; r++)
if (o[r].value === i) return void(o[r].selected = !0);
o.length && (o[0].selected = !0)
}
}
function o (t) {
var e = this._currentElement.props,
n = s.executeOnChange(e, t);
return this._rootNodeID && (this._wrapperState.pendingUpdate = !0), l.asap(i, this), n
}
var a = n(430),
s = n(672),
u = n(602),
l = n(624),
c = (n(582), !1),
d = {
getHostProps: function (t, e) {
return a({}, e, {
onChange: t._wrapperState.onChange,
value: void 0
})
},
mountWrapper: function (t, e) {
var n = s.getValue(e);
t._wrapperState = {
pendingUpdate: !1,
initialValue: null != n ? n : e.defaultValue,
listeners: null,
onChange: o.bind(t),
wasMultiple: Boolean(e.multiple)
}, void 0 === e.value || void 0 === e.defaultValue || c || (c = !0)
},
getSelectValueContext: function (t) {
return t._wrapperState.initialValue
},
postUpdateWrapper: function (t) {
var e = t._currentElement.props;
t._wrapperState.initialValue = void 0;
var n = t._wrapperState.wasMultiple;
t._wrapperState.wasMultiple = Boolean(e.multiple);
var i = s.getValue(e);
null != i ? (t._wrapperState.pendingUpdate = !1, r(t, Boolean(e.multiple), i)) : n !== Boolean(e.multiple) && (null != e.defaultValue ? r(t, Boolean(e.multiple), e.defaultValue) : r(t, Boolean(e.multiple), e.multiple ? [] : ""))
}
};
t.exports = d
}, function (t, e, n) {
function i () {
this._rootNodeID && c.updateWrapper(this)
}
function r (t) {
var e = this._currentElement.props,
n = s.executeOnChange(e, t);
return l.asap(i, this), n
}
var o = n(603),
a = n(430),
s = n(672),
u = n(602),
l = n(624),
c = (n(579), n(582), {
getHostProps: function (t, e) {
null != e.dangerouslySetInnerHTML ? o("91") : void 0;
var n = a({}, e, {
value: void 0,
defaultValue: void 0,
children: "" + t._wrapperState.initialValue,
onChange: t._wrapperState.onChange
});
return n
},
mountWrapper: function (t, e) {
var n = s.getValue(e),
i = n;
if (null == n) {
var a = e.defaultValue,
u = e.children;
null != u && (null != a ? o("92") : void 0, Array.isArray(u) && (u.length <= 1 ? void 0 : o("93"), u = u[0]), a = "" + u), null == a && (a = ""), i = a
}
t._wrapperState = {
initialValue: "" + i,
listeners: null,
onChange: r.bind(t)
}
},
updateWrapper: function (t) {
var e = t._currentElement.props,
n = u.getNodeFromInstance(t),
i = s.getValue(e);
if (null != i) {
var r = "" + i;
r !== n.value && (n.value = r), null == e.defaultValue && (n.defaultValue = r)
}
null != e.defaultValue && (n.defaultValue = e.defaultValue)
},
postMountWrapper: function (t) {
var e = u.getNodeFromInstance(t);
e.value = e.textContent
}
});
t.exports = c
}, function (t, e, n) {
function i (t, e, n) {
return {
type: "INSERT_MARKUP",
content: t,
fromIndex: null,
fromNode: null,
toIndex: n,
afterNode: e
}
}
function r (t, e, n) {
return {
type: "MOVE_EXISTING",
content: null,
fromIndex: t._mountIndex,
fromNode: p.getHostNode(t),
toIndex: n,
afterNode: e
}
}
function o (t, e) {
return {
type: "REMOVE_NODE",
content: null,
fromIndex: t._mountIndex,
fromNode: e,
toIndex: null,
afterNode: null
}
}
function a (t) {
return {
type: "SET_MARKUP",
content: t,
fromIndex: null,
fromNode: null,
toIndex: null,
afterNode: null
}
}
function s (t) {
return {
type: "TEXT_CONTENT",
content: t,
fromIndex: null,
fromNode: null,
toIndex: null,
afterNode: null
}
}
function u (t, e) {
return e && (t = t || [], t.push(e)), t
}
function l (t, e) {
d.processChildrenUpdates(t, e)
}
var c = n(603),
d = n(678),
p = (n(679), n(630), n(581), n(627)),
h = n(680),
f = (n(583), n(694)),
m = (n(579), {
Mixin: {
_reconcilerInstantiateChildren: function (t, e, n) {
return h.instantiateChildren(t, e, n)
},
_reconcilerUpdateChildren: function (t, e, n, i, r, o) {
var a, s = 0;
return a = f(e, s), h.updateChildren(t, a, n, i, r, this, this._hostContainerInfo, o, s), a
},
mountChildren: function (t, e, n) {
var i = this._reconcilerInstantiateChildren(t, e, n);
this._renderedChildren = i;
var r = [],
o = 0;
for (var a in i)
if (i.hasOwnProperty(a)) {
var s = i[a],
u = 0,
l = p.mountComponent(s, e, this, this._hostContainerInfo, n, u);
s._mountIndex = o++, r.push(l)
}
return r
},
updateTextContent: function (t) {
var e = this._renderedChildren;
h.unmountChildren(e, !1);
for (var n in e) e.hasOwnProperty(n) && c("118");
var i = [s(t)];
l(this, i)
},
updateMarkup: function (t) {
var e = this._renderedChildren;
h.unmountChildren(e, !1);
for (var n in e) e.hasOwnProperty(n) && c("118");
var i = [a(t)];
l(this, i)
},
updateChildren: function (t, e, n) {
this._updateChildren(t, e, n)
},
_updateChildren: function (t, e, n) {
var i = this._renderedChildren,
r = {},
o = [],
a = this._reconcilerUpdateChildren(i, t, o, r, e, n);
if (a || i) {
var s, c = null,
d = 0,
h = 0,
f = 0,
m = null;
for (s in a)
if (a.hasOwnProperty(s)) {
var _ = i && i[s],
b = a[s];
_ === b ? (c = u(c, this.moveChild(_, m, d, h)), h = Math.max(_._mountIndex, h), _._mountIndex = d) : (_ && (h = Math.max(_._mountIndex, h)), c = u(c, this._mountChildAtIndex(b, o[f], m, d, e, n)), f++), d++, m = p.getHostNode(b)
}
for (s in r) r.hasOwnProperty(s) && (c = u(c, this._unmountChild(i[s], r[s])));
c && l(this, c), this._renderedChildren = a
}
},
unmountChildren: function (t) {
var e = this._renderedChildren;
h.unmountChildren(e, t), this._renderedChildren = null
},
moveChild: function (t, e, n, i) {
if (t._mountIndex < i) return r(t, e, n)
},
createChild: function (t, e, n) {
return i(n, e, t._mountIndex)
},
removeChild: function (t, e) {
return o(t, e)
},
_mountChildAtIndex: function (t, e, n, i, r, o) {
return t._mountIndex = i, this.createChild(t, n, e)
},
_unmountChild: function (t, e) {
var n = this.removeChild(t, e);
return t._mountIndex = null, n
}
}
});
t.exports = m
}, function (t, e, n) {
var i = n(603),
r = (n(579), !1),
o = {
replaceNodeWithMarkup: null,
processChildrenUpdates: null,
injection: {
injectEnvironment: function (t) {
r ? i("104") : void 0, o.replaceNodeWithMarkup = t.replaceNodeWithMarkup, o.processChildrenUpdates = t.processChildrenUpdates, r = !0
}
}
};
t.exports = o
}, function (t, e) {
var n = {
remove: function (t) {
t._reactInternalInstance = void 0
},
get: function (t) {
return t._reactInternalInstance
},
has: function (t) {
return void 0 !== t._reactInternalInstance
},
set: function (t, e) {
t._reactInternalInstance = e
}
};
t.exports = n
}, function (t, e, n) {
(function (e) {
function i (t, e, n, i) {
var r = void 0 === t[n];
null != e && r && (t[n] = o(e, !0))
}
var r = n(627),
o = n(681),
a = (n(689), n(685)),
s = n(690),
u = (n(582), {
instantiateChildren: function (t, e, n, r) {
if (null == t) return null;
var o = {};
return s(t, i, o), o
},
updateChildren: function (t, e, n, i, s, u, l, c, d) {
if (e || t) {
var p, h;
for (p in e)
if (e.hasOwnProperty(p)) {
h = t && t[p];
var f = h && h._currentElement,
m = e[p];
if (null != h && a(f, m)) r.receiveComponent(h, m, s, c), e[p] = h;
else {
h && (i[p] = r.getHostNode(h), r.unmountComponent(h, !1));
var _ = o(m, !0);
e[p] = _;
var b = r.mountComponent(_, s, u, l, c, d);
n.push(b)
}
}
for (p in t) !t.hasOwnProperty(p) || e && e.hasOwnProperty(p) || (h = t[p], i[p] = r.getHostNode(h), r.unmountComponent(h, !1))
}
},
unmountChildren: function (t, e) {
for (var n in t)
if (t.hasOwnProperty(n)) {
var i = t[n];
r.unmountComponent(i, e)
}
}
});
t.exports = u
})
.call(e, n(295))
}, function (t, e, n) {
function i (t) {
if (t) {
var e = t.getName();
if (e) return " Check the render method of `" + e + "`."
}
return ""
}
function r (t) {
return "function" == typeof t && "undefined" != typeof t.prototype && "function" == typeof t.prototype.mountComponent && "function" == typeof t.prototype.receiveComponent
}
function o (t, e) {
var n;
if (null === t || t === !1) n = l.create(o);
else if ("object" == typeof t) {
var s = t;
!s || "function" != typeof s.type && "string" != typeof s.type ? a("130", null == s.type ? s.type : typeof s.type, i(s._owner)) : void 0, "string" == typeof s.type ? n = c.createInternalComponent(s) : r(s.type) ? (n = new s.type(s), n.getHostNode || (n.getHostNode = n.getNativeNode)) : n = new d(s)
} else "string" == typeof t || "number" == typeof t ? n = c.createInstanceForText(t) : a("131", typeof t);
return n._mountIndex = 0, n._mountImage = null, n
}
var a = n(603),
s = n(430),
u = n(682),
l = n(686),
c = n(687),
d = (n(688), n(579), n(582), function (t) {
this.construct(t)
});
s(d.prototype, u, {
_instantiateReactComponent: o
}), t.exports = o
}, function (t, e, n) {
function i (t) {}
function r (t, e) {}
function o (t) {
return !(!t.prototype || !t.prototype.isReactComponent)
}
function a (t) {
return !(!t.prototype || !t.prototype.isPureReactComponent)
}
var s = n(603),
u = n(430),
l = n(575),
c = n(678),
d = n(581),
p = n(613),
h = n(679),
f = (n(630), n(683)),
m = n(627),
_ = n(591),
b = (n(579), n(684)),
v = n(685),
g = (n(582), {
ImpureClass: 0,
PureClass: 1,
StatelessFunctional: 2
});
i.prototype.render = function () {
var t = h.get(this)
._currentElement.type,
e = t(this.props, this.context, this.updater);
return r(t, e), e
};
var y = 1,
w = {
construct: function (t) {
this._currentElement = t, this._rootNodeID = 0, this._compositeType = null, this._instance = null, this._hostParent = null, this._hostContainerInfo = null, this._updateBatchNumber = null, this._pendingElement = null, this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1, this._renderedNodeType = null, this._renderedComponent = null, this._context = null, this._mountOrder = 0, this._topLevelWrapper = null, this._pendingCallbacks = null, this._calledComponentWillUnmount = !1
},
mountComponent: function (t, e, n, u) {
this._context = u, this._mountOrder = y++, this._hostParent = e, this._hostContainerInfo = n;
var c, d = this._currentElement.props,
p = this._processContext(u),
f = this._currentElement.type,
m = t.getUpdateQueue(),
b = o(f),
v = this._constructComponent(b, d, p, m);
b || null != v && null != v.render ? a(f) ? this._compositeType = g.PureClass : this._compositeType = g.ImpureClass : (c = v, r(f, c), null === v || v === !1 || l.isValidElement(v) ? void 0 : s("105", f.displayName || f.name || "Component"), v = new i(f), this._compositeType = g.StatelessFunctional);
v.props = d, v.context = p, v.refs = _, v.updater = m, this._instance = v, h.set(v, this);
var w = v.state;
void 0 === w && (v.state = w = null), "object" != typeof w || Array.isArray(w) ? s("106", this.getName() || "ReactCompositeComponent") : void 0, this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1;
var M;
return M = v.unstable_handleError ? this.performInitialMountWithErrorHandling(c, e, n, t, u) : this.performInitialMount(c, e, n, t, u), v.componentDidMount && t.getReactMountReady()
.enqueue(v.componentDidMount, v), M
},
_constructComponent: function (t, e, n, i) {
return this._constructComponentWithoutOwner(t, e, n, i)
},
_constructComponentWithoutOwner: function (t, e, n, i) {
var r = this._currentElement.type;
return t ? new r(e, n, i) : r(e, n, i)
},
performInitialMountWithErrorHandling: function (t, e, n, i, r) {
var o, a = i.checkpoint();
try {
o = this.performInitialMount(t, e, n, i, r)
} catch (s) {
i.rollback(a), this._instance.unstable_handleError(s), this._pendingStateQueue && (this._instance.state = this._processPendingState(this._instance.props, this._instance.context)), a = i.checkpoint(), this._renderedComponent.unmountComponent(!0), i.rollback(a), o = this.performInitialMount(t, e, n, i, r)
}
return o
},
performInitialMount: function (t, e, n, i, r) {
var o = this._instance,
a = 0;
o.componentWillMount && (o.componentWillMount(), this._pendingStateQueue && (o.state = this._processPendingState(o.props, o.context))), void 0 === t && (t = this._renderValidatedComponent());
var s = f.getType(t);
this._renderedNodeType = s;
var u = this._instantiateReactComponent(t, s !== f.EMPTY);
this._renderedComponent = u;
var l = m.mountComponent(u, i, e, n, this._processChildContext(r), a);
return l
},
getHostNode: function () {
return m.getHostNode(this._renderedComponent)
},
unmountComponent: function (t) {
if (this._renderedComponent) {
var e = this._instance;
if (e.componentWillUnmount && !e._calledComponentWillUnmount)
if (e._calledComponentWillUnmount = !0, t) {
var n = this.getName() + ".componentWillUnmount()";
p.invokeGuardedCallback(n, e.componentWillUnmount.bind(e))
} else e.componentWillUnmount();
this._renderedComponent && (m.unmountComponent(this._renderedComponent, t), this._renderedNodeType = null, this._renderedComponent = null, this._instance = null), this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1, this._pendingCallbacks = null, this._pendingElement = null, this._context = null, this._rootNodeID = 0, this._topLevelWrapper = null, h.remove(e)
}
},
_maskContext: function (t) {
var e = this._currentElement.type,
n = e.contextTypes;
if (!n) return _;
var i = {};
for (var r in n) i[r] = t[r];
return i
},
_processContext: function (t) {
var e = this._maskContext(t);
return e
},
_processChildContext: function (t) {
var e, n = this._currentElement.type,
i = this._instance;
if (i.getChildContext && (e = i.getChildContext()), e) {
"object" != typeof n.childContextTypes ? s("107", this.getName() || "ReactCompositeComponent") : void 0;
for (var r in e) r in n.childContextTypes ? void 0 : s("108", this.getName() || "ReactCompositeComponent", r);
return u({}, t, e)
}
return t
},
_checkContextTypes: function (t, e, n) {},
receiveComponent: function (t, e, n) {
var i = this._currentElement,
r = this._context;
this._pendingElement = null, this.updateComponent(e, i, t, r, n)
},
performUpdateIfNecessary: function (t) {
null != this._pendingElement ? m.receiveComponent(this, this._pendingElement, t, this._context) : null !== this._pendingStateQueue || this._pendingForceUpdate ? this.updateComponent(t, this._currentElement, this._currentElement, this._context, this._context) : this._updateBatchNumber = null
},
updateComponent: function (t, e, n, i, r) {
var o = this._instance;
null == o ? s("136", this.getName() || "ReactCompositeComponent") : void 0;
var a, u = !1;
this._context === r ? a = o.context : (a = this._processContext(r), u = !0);
var l = e.props,
c = n.props;
e !== n && (u = !0), u && o.componentWillReceiveProps && o.componentWillReceiveProps(c, a);
var d = this._processPendingState(c, a),
p = !0;
this._pendingForceUpdate || (o.shouldComponentUpdate ? p = o.shouldComponentUpdate(c, d, a) : this._compositeType === g.PureClass && (p = !b(l, c) || !b(o.state, d))), this._updateBatchNumber = null, p ? (this._pendingForceUpdate = !1, this._performComponentUpdate(n, c, d, a, t, r)) : (this._currentElement = n, this._context = r, o.props = c, o.state = d, o.context = a)
},
_processPendingState: function (t, e) {
var n = this._instance,
i = this._pendingStateQueue,
r = this._pendingReplaceState;
if (this._pendingReplaceState = !1, this._pendingStateQueue = null, !i) return n.state;
if (r && 1 === i.length) return i[0];
for (var o = u({}, r ? i[0] : n.state), a = r ? 1 : 0; a < i.length; a++) {
var s = i[a];
u(o, "function" == typeof s ? s.call(n, o, t, e) : s)
}
return o
},
_performComponentUpdate: function (t, e, n, i, r, o) {
var a, s, u, l = this._instance,
c = Boolean(l.componentDidUpdate);
c && (a = l.props, s = l.state, u = l.context), l.componentWillUpdate && l.componentWillUpdate(e, n, i), this._currentElement = t, this._context = o, l.props = e, l.state = n, l.context = i, this._updateRenderedComponent(r, o), c && r.getReactMountReady()
.enqueue(l.componentDidUpdate.bind(l, a, s, u), l)
},
_updateRenderedComponent: function (t, e) {
var n = this._renderedComponent,
i = n._currentElement,
r = this._renderValidatedComponent(),
o = 0;
if (v(i, r)) m.receiveComponent(n, r, t, this._processChildContext(e));
else {
var a = m.getHostNode(n);
m.unmountComponent(n, !1);
var s = f.getType(r);
this._renderedNodeType = s;
var u = this._instantiateReactComponent(r, s !== f.EMPTY);
this._renderedComponent = u;
var l = m.mountComponent(u, t, this._hostParent, this._hostContainerInfo, this._processChildContext(e), o);
this._replaceNodeWithMarkup(a, l, n)
}
},
_replaceNodeWithMarkup: function (t, e, n) {
c.replaceNodeWithMarkup(t, e, n)
},
_renderValidatedComponentWithoutOwnerOrContext: function () {
var t, e = this._instance;
return t = e.render()
},
_renderValidatedComponent: function () {
var t;
if (this._compositeType !== g.StatelessFunctional) {
d.current = this;
try {
t = this._renderValidatedComponentWithoutOwnerOrContext()
} finally {
d.current = null
}
} else t = this._renderValidatedComponentWithoutOwnerOrContext();
return null === t || t === !1 || l.isValidElement(t) ? void 0 : s("109", this.getName() || "ReactCompositeComponent"), t
},
attachRef: function (t, e) {
var n = this.getPublicInstance();
null == n ? s("110") : void 0;
var i = e.getPublicInstance(),
r = n.refs === _ ? n.refs = {} : n.refs;
r[t] = i
},
detachRef: function (t) {
var e = this.getPublicInstance()
.refs;
delete e[t]
},
getName: function () {
var t = this._currentElement.type,
e = this._instance && this._instance.constructor;
return t.displayName || e && e.displayName || t.name || e && e.name || null
},
getPublicInstance: function () {
var t = this._instance;
return this._compositeType === g.StatelessFunctional ? null : t
},
_instantiateReactComponent: null
};
t.exports = w
}, function (t, e, n) {
var i = n(603),
r = n(575),
o = (n(579), {
HOST: 0,
COMPOSITE: 1,
EMPTY: 2,
getType: function (t) {
return null === t || t === !1 ? o.EMPTY : r.isValidElement(t) ? "function" == typeof t.type ? o.COMPOSITE : o.HOST : void i("26", t)
}
});
t.exports = o
}, function (t, e) {
function n (t, e) {
return t === e ? 0 !== t || 0 !== e || 1 / t === 1 / e : t !== t && e !== e
}
function i (t, e) {
if (n(t, e)) return !0;
if ("object" != typeof t || null === t || "object" != typeof e || null === e) return !1;
var i = Object.keys(t),
o = Object.keys(e);
if (i.length !== o.length) return !1;
for (var a = 0; a < i.length; a++)
if (!r.call(e, i[a]) || !n(t[i[a]], e[i[a]])) return !1;
return !0
}
var r = Object.prototype.hasOwnProperty;
t.exports = i
}, function (t, e) {
function n (t, e) {
var n = null === t || t === !1,
i = null === e || e === !1;
if (n || i) return n === i;
var r = typeof t,
o = typeof e;
return "string" === r || "number" === r ? "string" === o || "number" === o : "object" === o && t.type === e.type && t.key === e.key
}
t.exports = n
}, function (t, e) {
var n, i = {
injectEmptyComponentFactory: function (t) {
n = t
}
},
r = {
create: function (t) {
return n(t)
}
};
r.injection = i, t.exports = r
}, function (t, e, n) {
function i (t) {
return u ? void 0 : a("111", t.type), new u(t)
}
function r (t) {
return new c(t)
}
function o (t) {
return t instanceof c
}
var a = n(603),
s = n(430),
u = (n(579), null),
l = {},
c = null,
d = {
injectGenericComponentClass: function (t) {
u = t
},
injectTextComponentClass: function (t) {
c = t
},
injectComponentClasses: function (t) {
s(l, t)
}
},
p = {
createInternalComponent: i,
createInstanceForText: r,
isTextComponent: o,
injection: d
};
t.exports = p
}, function (t, e) {
function n () {
return i++
}
var i = 1;
t.exports = n
}, function (t, e) {
function n (t) {
var e = /[=:]/g,
n = {
"=": "=0",
":": "=2"
},
i = ("" + t)
.replace(e, function (t) {
return n[t]
});
return "$" + i
}
function i (t) {
var e = /(=0|=2)/g,
n = {
"=0": "=",
"=2": ":"
},
i = "." === t[0] && "$" === t[1] ? t.substring(2) : t.substring(1);
return ("" + i)
.replace(e, function (t) {
return n[t]
})
}
var r = {
escape: n,
unescape: i
};
t.exports = r
}, function (t, e, n) {
function i (t, e) {
return t && "object" == typeof t && null != t.key ? l.escape(t.key) : e.toString(36)
}
function r (t, e, n, o) {
var p = typeof t;
if ("undefined" !== p && "boolean" !== p || (t = null), null === t || "string" === p || "number" === p || "object" === p && t.$$typeof === s) return n(o, t, "" === e ? c + i(t, 0) : e), 1;
var h, f, m = 0,
_ = "" === e ? c : e + d;
if (Array.isArray(t))
for (var b = 0; b < t.length; b++) h = t[b], f = _ + i(h, b), m += r(h, f, n, o);
else {
var v = u(t);
if (v) {
var g, y = v.call(t);
if (v !== t.entries)
for (var w = 0; !(g = y.next())
.done;) h = g.value, f = _ + i(h, w++), m += r(h, f, n, o);
else
for (; !(g = y.next())
.done;) {
var M = g.value;
M && (h = M[1], f = _ + l.escape(M[0]) + d + i(h, 0), m += r(h, f, n, o))
}
} else if ("object" === p) {
var T = "",
k = String(t);
a("31", "[object Object]" === k ? "object with keys {" + Object.keys(t)
.join(", ") + "}" : k, T)
}
}
return m
}
function o (t, e, n) {
return null == t ? 0 : r(t, "", e, n)
}
var a = n(603),
s = (n(581), n(691)),
u = n(692),
l = (n(579), n(689)),
c = (n(582), "."),
d = ":";
t.exports = o
}, function (t, e) {
var n = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
t.exports = n
}, function (t, e) {
function n (t) {
var e = t && (i && t[i] || t[r]);
if ("function" == typeof e) return e
}
var i = "function" == typeof Symbol && Symbol.iterator,
r = "@@iterator";
t.exports = n
}, function (t, e, n) {
function i (t) {
var e = Function.prototype.toString,
n = Object.prototype.hasOwnProperty,
i = RegExp("^" + e.call(n)
.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&")
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
try {
var r = e.call(t);
return i.test(r)
} catch (t) {
return !1
}
}
function r (t) {
var e = l(t);
if (e) {
var n = e.childIDs;
c(t), n.forEach(r)
}
}
function o (t, e, n) {
return "\n in " + (t || "Unknown") + (e ? " (at " + e.fileName.replace(/^.*[\\\/]/, "") + ":" + e.lineNumber + ")" : n ? " (created by " + n + ")" : "")
}
function a (t) {
return null == t ? "#empty" : "string" == typeof t || "number" == typeof t ? "#text" : "string" == typeof t.type ? t.type : t.type.displayName || t.type.name || "Unknown"
}
function s (t) {
var e, n = S.getDisplayName(t),
i = S.getElement(t),
r = S.getOwnerID(t);
return r && (e = S.getDisplayName(r)), o(n, i && i._source, e)
}
var u, l, c, d, p, h, f, m = n(578),
_ = n(581),
b = (n(579), n(582), "function" == typeof Array.from && "function" == typeof Map && i(Map) && null != Map.prototype && "function" == typeof Map.prototype.keys && i(Map.prototype.keys) && "function" == typeof Set && i(Set) && null != Set.prototype && "function" == typeof Set.prototype.keys && i(Set.prototype.keys));
if (b) {
var v = new Map,
g = new Set;
u = function (t, e) {
v.set(t, e)
}, l = function (t) {
return v.get(t)
}, c = function (t) {
v.delete(t)
}, d = function () {
return Array.from(v.keys())
}, p = function (t) {
g.add(t)
}, h = function (t) {
g.delete(t)
}, f = function () {
return Array.from(g.keys())
}
} else {
var y = {},
w = {},
M = function (t) {
return "." + t
},
T = function (t) {
return parseInt(t.substr(1), 10)
};
u = function (t, e) {
var n = M(t);
y[n] = e
}, l = function (t) {
var e = M(t);
return y[e]
}, c = function (t) {
var e = M(t);
delete y[e]
}, d = function () {
return Object.keys(y)
.map(T)
}, p = function (t) {
var e = M(t);
w[e] = !0
}, h = function (t) {
var e = M(t);
delete w[e]
}, f = function () {
return Object.keys(w)
.map(T)
}
}
var k = [],
S = {
onSetChildren: function (t, e) {
var n = l(t);
n ? void 0 : m("144"), n.childIDs = e;
for (var i = 0; i < e.length; i++) {
var r = e[i],
o = l(r);
o ? void 0 : m("140"), null == o.childIDs && "object" == typeof o.element && null != o.element ? m("141") : void 0, o.isMounted ? void 0 : m("71"), null == o.parentID && (o.parentID = t), o.parentID !== t ? m("142", r, o.parentID, t) : void 0
}
},
onBeforeMountComponent: function (t, e, n) {
var i = {
element: e,
parentID: n,
text: null,
childIDs: [],
isMounted: !1,
updateCount: 0
};
u(t, i)
},
onBeforeUpdateComponent: function (t, e) {
var n = l(t);
n && n.isMounted && (n.element = e)
},
onMountComponent: function (t) {
var e = l(t);
e ? void 0 : m("144"), e.isMounted = !0;
var n = 0 === e.parentID;
n && p(t)
},
onUpdateComponent: function (t) {
var e = l(t);
e && e.isMounted && e.updateCount++
},
onUnmountComponent: function (t) {
var e = l(t);
if (e) {
e.isMounted = !1;
var n = 0 === e.parentID;
n && h(t)
}
k.push(t)
},
purgeUnmountedComponents: function () {
if (!S._preventPurging) {
for (var t = 0; t < k.length; t++) {
var e = k[t];
r(e)
}
k.length = 0
}
},
isMounted: function (t) {
var e = l(t);
return !!e && e.isMounted
},
getCurrentStackAddendum: function (t) {
var e = "";
if (t) {
var n = a(t),
i = t._owner;
e += o(n, t._source, i && i.getName())
}
var r = _.current,
s = r && r._debugID;
return e += S.getStackAddendumByID(s)
},
getStackAddendumByID: function (t) {
for (var e = ""; t;) e += s(t), t = S.getParentID(t);
return e
},
getChildIDs: function (t) {
var e = l(t);
return e ? e.childIDs : []
},
getDisplayName: function (t) {
var e = S.getElement(t);
return e ? a(e) : null
},
getElement: function (t) {
var e = l(t);
return e ? e.element : null
},
getOwnerID: function (t) {
var e = S.getElement(t);
return e && e._owner ? e._owner._debugID : null
},
getParentID: function (t) {
var e = l(t);
return e ? e.parentID : null
},
getSource: function (t) {
var e = l(t),
n = e ? e.element : null,
i = null != n ? n._source : null;
return i
},
getText: function (t) {
var e = S.getElement(t);
return "string" == typeof e ? e : "number" == typeof e ? "" + e : null
},
getUpdateCount: function (t) {
var e = l(t);
return e ? e.updateCount : 0
},
getRootIDs: f,
getRegisteredIDs: d
};
t.exports = S
}, function (t, e, n) {
(function (e) {
function i (t, e, n, i) {
if (t && "object" == typeof t) {
var r = t,
o = void 0 === r[n];
o && null != e && (r[n] = e)
}
}
function r (t, e) {
if (null == t) return t;
var n = {};
return o(t, i, n), n
}
var o = (n(689), n(690));
n(582);
t.exports = r
})
.call(e, n(295))
}, function (t, e, n) {
function i (t) {
this.reinitializeTransaction(), this.renderToStaticMarkup = t, this.useCreateElement = !1, this.updateQueue = new s(this)
}
var r = n(430),
o = n(618),
a = n(631),
s = (n(630), n(696)),
u = [],
l = {
enqueue: function () {}
},
c = {
getTransactionWrappers: function () {
return u
},
getReactMountReady: function () {
return l
},
getUpdateQueue: function () {
return this.updateQueue
},
destructor: function () {},
checkpoint: function () {},
rollback: function () {}
};
r(i.prototype, a, c), o.addPoolingTo(i), t.exports = i
}, function (t, e, n) {
function i (t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}
function r (t, e) {}
var o = n(697),
a = (n(582), function () {
function t (e) {
i(this, t), this.transaction = e
}
return t.prototype.isMounted = function (t) {
return !1
}, t.prototype.enqueueCallback = function (t, e, n) {
this.transaction.isInTransaction() && o.enqueueCallback(t, e, n)
}, t.prototype.enqueueForceUpdate = function (t) {
this.transaction.isInTransaction() ? o.enqueueForceUpdate(t) : r(t, "forceUpdate")
}, t.prototype.enqueueReplaceState = function (t, e) {
this.transaction.isInTransaction() ? o.enqueueReplaceState(t, e) : r(t, "replaceState")
}, t.prototype.enqueueSetState = function (t, e) {
this.transaction.isInTransaction() ? o.enqueueSetState(t, e) : r(t, "setState")
}, t
}());
t.exports = a
}, function (t, e, n) {
function i (t) {
u.enqueueUpdate(t)
}
function r (t) {
var e = typeof t;
if ("object" !== e) return e;
var n = t.constructor && t.constructor.name || e,
i = Object.keys(t);
return i.length > 0 && i.length < 20 ? n + " (keys: " + i.join(", ") + ")" : n
}
function o (t, e) {
var n = s.get(t);
if (!n) {
return null
}
return n
}
var a = n(603),
s = (n(581), n(679)),
u = (n(630), n(624)),
l = (n(579), n(582), {
isMounted: function (t) {
var e = s.get(t);
return !!e && !!e._renderedComponent
},
enqueueCallback: function (t, e, n) {
l.validateCallback(e, n);
var r = o(t);
return r ? (r._pendingCallbacks ? r._pendingCallbacks.push(e) : r._pendingCallbacks = [e], void i(r)) : null
},
enqueueCallbackInternal: function (t, e) {
t._pendingCallbacks ? t._pendingCallbacks.push(e) : t._pendingCallbacks = [e], i(t)
},
enqueueForceUpdate: function (t) {
var e = o(t, "forceUpdate");
e && (e._pendingForceUpdate = !0, i(e))
},
enqueueReplaceState: function (t, e) {
var n = o(t, "replaceState");
n && (n._pendingStateQueue = [e], n._pendingReplaceState = !0, i(n))
},
enqueueSetState: function (t, e) {
var n = o(t, "setState");
if (n) {
var r = n._pendingStateQueue || (n._pendingStateQueue = []);
r.push(e), i(n)
}
},
enqueueElementInternal: function (t, e, n) {
t._pendingElement = e, t._context = n, i(t)
},
validateCallback: function (t, e) {
t && "function" != typeof t ? a("122", e, r(t)) : void 0
}
});
t.exports = l
}, function (t, e, n) {
var i = (n(430), n(583)),
r = (n(582), i);
t.exports = r
}, function (t, e, n) {
var i = n(430),
r = n(644),
o = n(602),
a = function (t) {
this._currentElement = null, this._hostNode = null, this._hostParent = null, this._hostContainerInfo = null, this._domID = 0
};
i(a.prototype, {
mountComponent: function (t, e, n, i) {
var a = n._idCounter++;
this._domID = a, this._hostParent = e, this._hostContainerInfo = n;
var s = " react-empty: " + this._domID + " ";
if (t.useCreateElement) {
var u = n._ownerDocument,
l = u.createComment(s);
return o.precacheNode(this, l), r(l)
}
return t.renderToStaticMarkup ? "" : "<!--" + s + "-->"
},
receiveComponent: function () {},
getHostNode: function () {
return o.getNodeFromInstance(this)
},
unmountComponent: function () {
o.uncacheNode(this)
}
}), t.exports = a
}, function (t, e, n) {
function i (t, e) {
"_hostNode" in t ? void 0 : u("33"), "_hostNode" in e ? void 0 : u("33");
for (var n = 0, i = t; i; i = i._hostParent) n++;
for (var r = 0, o = e; o; o = o._hostParent) r++;
for (; n - r > 0;) t = t._hostParent, n--;
for (; r - n > 0;) e = e._hostParent, r--;
for (var a = n; a--;) {
if (t === e) return t;
t = t._hostParent, e = e._hostParent
}
return null
}
function r (t, e) {
"_hostNode" in t ? void 0 : u("35"), "_hostNode" in e ? void 0 : u("35");
for (; e;) {
if (e === t) return !0;
e = e._hostParent
}
return !1
}
function o (t) {
return "_hostNode" in t ? void 0 : u("36"), t._hostParent
}
function a (t, e, n) {
for (var i = []; t;) i.push(t), t = t._hostParent;
var r;
for (r = i.length; r-- > 0;) e(i[r], "captured", n);
for (r = 0; r < i.length; r++) e(i[r], "bubbled", n)
}
function s (t, e, n, r, o) {
for (var a = t && e ? i(t, e) : null, s = []; t && t !== a;) s.push(t), t = t._hostParent;
for (var u = []; e && e !== a;) u.push(e), e = e._hostParent;
var l;
for (l = 0; l < s.length; l++) n(s[l], "bubbled", r);
for (l = u.length; l-- > 0;) n(u[l], "captured", o)
}
var u = n(603);
n(579);
t.exports = {
isAncestor: r,
getLowestCommonAncestor: i,
getParentInstance: o,
traverseTwoPhase: a,
traverseEnterLeave: s
}
}, function (t, e, n) {
var i = n(603),
r = n(430),
o = n(643),
a = n(644),
s = n(602),
u = n(649),
l = (n(579), n(698), function (t) {
this._currentElement = t, this._stringText = "" + t, this._hostNode = null, this._hostParent = null, this._domID = 0, this._mountIndex = 0, this._closingComment = null, this._commentNodes = null
});
r(l.prototype, {
mountComponent: function (t, e, n, i) {
var r = n._idCounter++,
o = " react-text: " + r + " ",
l = " /react-text ";
if (this._domID = r, this._hostParent = e, t.useCreateElement) {
var c = n._ownerDocument,
d = c.createComment(o),
p = c.createComment(l),
h = a(c.createDocumentFragment());
return a.queueChild(h, a(d)), this._stringText && a.queueChild(h, a(c.createTextNode(this._stringText))), a.queueChild(h, a(p)), s.precacheNode(this, d), this._closingComment = p, h
}
var f = u(this._stringText);
return t.renderToStaticMarkup ? f : "<!--" + o + "-->" + f + "<!--" + l + "-->";
},
receiveComponent: function (t, e) {
if (t !== this._currentElement) {
this._currentElement = t;
var n = "" + t;
if (n !== this._stringText) {
this._stringText = n;
var i = this.getHostNode();
o.replaceDelimitedText(i[0], i[1], n)
}
}
},
getHostNode: function () {
var t = this._commentNodes;
if (t) return t;
if (!this._closingComment)
for (var e = s.getNodeFromInstance(this), n = e.nextSibling; ;) {
if (null == n ? i("67", this._domID) : void 0, 8 === n.nodeType && " /react-text " === n.nodeValue) {
this._closingComment = n;
break
}
n = n.nextSibling
}
return t = [this._hostNode, this._closingComment], this._commentNodes = t, t
},
unmountComponent: function () {
this._closingComment = null, this._commentNodes = null, s.uncacheNode(this)
}
}), t.exports = l
}, function (t, e, n) {
function i () {
this.reinitializeTransaction()
}
var r = n(430),
o = n(624),
a = n(631),
s = n(583),
u = {
initialize: s,
close: function () {
p.isBatchingUpdates = !1
}
},
l = {
initialize: s,
close: o.flushBatchedUpdates.bind(o)
},
c = [l, u];
r(i.prototype, a, {
getTransactionWrappers: function () {
return c
}
});
var d = new i,
p = {
isBatchingUpdates: !1,
batchedUpdates: function (t, e, n, i, r, o) {
var a = p.isBatchingUpdates;
return p.isBatchingUpdates = !0, a ? t(e, n, i, r, o) : d.perform(t, null, e, n, i, r, o)
}
};
t.exports = p
}, function (t, e, n) {
function i (t) {
for (; t._hostParent;) t = t._hostParent;
var e = d.getNodeFromInstance(t),
n = e.parentNode;
return d.getClosestInstanceFromNode(n)
}
function r (t, e) {
this.topLevelType = t, this.nativeEvent = e, this.ancestors = []
}
function o (t) {
var e = h(t.nativeEvent),
n = d.getClosestInstanceFromNode(e),
r = n;
do t.ancestors.push(r), r = r && i(r); while (r);
for (var o = 0; o < t.ancestors.length; o++) n = t.ancestors[o], m._handleTopLevel(t.topLevelType, n, t.nativeEvent, h(t.nativeEvent))
}
function a (t) {
var e = f(window);
t(e)
}
var s = n(430),
u = n(704),
l = n(616),
c = n(618),
d = n(602),
p = n(624),
h = n(632),
f = n(705);
s(r.prototype, {
destructor: function () {
this.topLevelType = null, this.nativeEvent = null, this.ancestors.length = 0
}
}), c.addPoolingTo(r, c.twoArgumentPooler);
var m = {
_enabled: !0,
_handleTopLevel: null,
WINDOW_HANDLE: l.canUseDOM ? window : null,
setHandleTopLevel: function (t) {
m._handleTopLevel = t
},
setEnabled: function (t) {
m._enabled = !!t
},
isEnabled: function () {
return m._enabled
},
trapBubbledEvent: function (t, e, n) {
return n ? u.listen(n, e, m.dispatchEvent.bind(null, t)) : null
},
trapCapturedEvent: function (t, e, n) {
return n ? u.capture(n, e, m.dispatchEvent.bind(null, t)) : null
},
monitorScrollValue: function (t) {
var e = a.bind(null, t);
u.listen(window, "scroll", e)
},
dispatchEvent: function (t, e) {
if (m._enabled) {
var n = r.getPooled(t, e);
try {
p.batchedUpdates(o, n)
} finally {
r.release(n)
}
}
}
};
t.exports = m
}, function (t, e, n) {
var i = n(583),
r = {
listen: function (t, e, n) {
return t.addEventListener ? (t.addEventListener(e, n, !1), {
remove: function () {
t.removeEventListener(e, n, !1)
}
}) : t.attachEvent ? (t.attachEvent("on" + e, n), {
remove: function () {
t.detachEvent("on" + e, n)
}
}) : void 0
},
capture: function (t, e, n) {
return t.addEventListener ? (t.addEventListener(e, n, !0), {
remove: function () {
t.removeEventListener(e, n, !0)
}
}) : {
remove: i
}
},
registerDefault: function () {}
};
t.exports = r
}, function (t, e) {
function n (t) {
return t === window ? {
x: window.pageXOffset || document.documentElement.scrollLeft,
y: window.pageYOffset || document.documentElement.scrollTop
} : {
x: t.scrollLeft,
y: t.scrollTop
}
}
t.exports = n
}, function (t, e, n) {
var i = n(604),
r = n(610),
o = n(612),
a = n(678),
s = n(686),
u = n(668),
l = n(687),
c = n(624),
d = {
Component: a.injection,
DOMProperty: i.injection,
EmptyComponent: s.injection,
EventPluginHub: r.injection,
EventPluginUtils: o.injection,
EventEmitter: u.injection,
HostComponent: l.injection,
Updates: c.injection
};
t.exports = d
}, function (t, e, n) {
function i (t) {
this.reinitializeTransaction(), this.renderToStaticMarkup = !1, this.reactMountReady = o.getPooled(null), this.useCreateElement = t
}
var r = n(430),
o = n(625),
a = n(618),
s = n(668),
u = n(708),
l = (n(630), n(631)),
c = n(697),
d = {
initialize: u.getSelectionInformation,
close: u.restoreSelection
},
p = {
initialize: function () {
var t = s.isEnabled();
return s.setEnabled(!1), t
},
close: function (t) {
s.setEnabled(t)
}
},
h = {
initialize: function () {
this.reactMountReady.reset()
},
close: function () {
this.reactMountReady.notifyAll()
}
},
f = [d, p, h],
m = {
getTransactionWrappers: function () {
return f
},
getReactMountReady: function () {
return this.reactMountReady
},
getUpdateQueue: function () {
return c
},
checkpoint: function () {
return this.reactMountReady.checkpoint()
},
rollback: function (t) {
this.reactMountReady.rollback(t)
},
destructor: function () {
o.release(this.reactMountReady), this.reactMountReady = null
}
};
r(i.prototype, l, m), a.addPoolingTo(i), t.exports = i
}, function (t, e, n) {
function i (t) {
return o(document.documentElement, t)
}
var r = n(709),
o = n(711),
a = n(657),
s = n(714),
u = {
hasSelectionCapabilities: function (t) {
var e = t && t.nodeName && t.nodeName.toLowerCase();
return e && ("input" === e && "text" === t.type || "textarea" === e || "true" === t.contentEditable)
},
getSelectionInformation: function () {
var t = s();
return {
focusedElem: t,
selectionRange: u.hasSelectionCapabilities(t) ? u.getSelection(t) : null
}
},
restoreSelection: function (t) {
var e = s(),
n = t.focusedElem,
r = t.selectionRange;
e !== n && i(n) && (u.hasSelectionCapabilities(n) && u.setSelection(n, r), a(n))
},
getSelection: function (t) {
var e;
if ("selectionStart" in t) e = {
start: t.selectionStart,
end: t.selectionEnd
};
else if (document.selection && t.nodeName && "input" === t.nodeName.toLowerCase()) {
var n = document.selection.createRange();
n.parentElement() === t && (e = {
start: -n.moveStart("character", -t.value.length),
end: -n.moveEnd("character", -t.value.length)
})
} else e = r.getOffsets(t);
return e || {
start: 0,
end: 0
}
},
setSelection: function (t, e) {
var n = e.start,
i = e.end;
if (void 0 === i && (i = n), "selectionStart" in t) t.selectionStart = n, t.selectionEnd = Math.min(i, t.value.length);
else if (document.selection && t.nodeName && "input" === t.nodeName.toLowerCase()) {
var o = t.createTextRange();
o.collapse(!0), o.moveStart("character", n), o.moveEnd("character", i - n), o.select()
} else r.setOffsets(t, e)
}
};
t.exports = u
}, function (t, e, n) {
function i (t, e, n, i) {
return t === n && e === i
}
function r (t) {
var e = document.selection,
n = e.createRange(),
i = n.text.length,
r = n.duplicate();
r.moveToElementText(t), r.setEndPoint("EndToStart", n);
var o = r.text.length,
a = o + i;
return {
start: o,
end: a
}
}
function o (t) {
var e = window.getSelection && window.getSelection();
if (!e || 0 === e.rangeCount) return null;
var n = e.anchorNode,
r = e.anchorOffset,
o = e.focusNode,
a = e.focusOffset,
s = e.getRangeAt(0);
try {
s.startContainer.nodeType, s.endContainer.nodeType
} catch (t) {
return null
}
var u = i(e.anchorNode, e.anchorOffset, e.focusNode, e.focusOffset),
l = u ? 0 : s.toString()
.length,
c = s.cloneRange();
c.selectNodeContents(t), c.setEnd(s.startContainer, s.startOffset);
var d = i(c.startContainer, c.startOffset, c.endContainer, c.endOffset),
p = d ? 0 : c.toString()
.length,
h = p + l,
f = document.createRange();
f.setStart(n, r), f.setEnd(o, a);
var m = f.collapsed;
return {
start: m ? h : p,
end: m ? p : h
}
}
function a (t, e) {
var n, i, r = document.selection.createRange()
.duplicate();
void 0 === e.end ? (n = e.start, i = n): e.start
>
e.end ? (n = e.end, i = e.start) : (n = e.start, i = e.end), r.moveToElementText(t), r.moveStart("character", n), r.setEndPoint("EndToStart", r), r.moveEnd("character", i - n), r.select()
}
function s (t, e) {
if (window.getSelection) {
var n = window.getSelection(),
i = t[c()].length,
r = Math.min(e.start, i),
o = void 0 === e.end ? r : Math.min(e.end, i);
if (!n.extend && r > o) {
var a = o;
o = r, r = a
}
var s = l(t, r),
u = l(t, o);
if (s && u) {
var d = document.createRange();
d.setStart(s.node, s.offset), n.removeAllRanges(), r > o ? (n.addRange(d), n.extend(u.node, u.offset)) : (d.setEnd(u.node, u.offset), n.addRange(d))
}
}
}
var u = n(616),
l = n(710),
c = n(619),
d = u.canUseDOM && "selection" in document && !("getSelection" in window),
p = {
getOffsets: d ? r : o,
setOffsets: d ? a : s
};
t.exports = p
}, function (t, e) {
function n (t) {
for (; t && t.firstChild;) t = t.firstChild;
return t
}
function i (t) {
for (; t;) {
if (t.nextSibling) return t.nextSibling;
t = t.parentNode
}
}
function r (t, e) {
for (var r = n(t), o = 0, a = 0; r;) {
if (3 === r.nodeType) {
if (a = o + r.textContent.length, o <= e && a >= e) return {
node: r,
offset: e - o
};
o = a
}
r = n(i(r))
}
}
t.exports = r
}, function (t, e, n) {
function i (t, e) {
return !(!t || !e) && (t === e || !r(t) && (r(e) ? i(t, e.parentNode) : "contains" in t ? t.contains(e) : !!t.compareDocumentPosition && !!(16 & t.compareDocumentPosition(e))))
}
var r = n(712);
t.exports = i
}, function (t, e, n) {
function i (t) {
return r(t) && 3 == t.nodeType
}
var r = n(713);
t.exports = i
}, function (t, e) {
function n (t) {
return !(!t || !("function" == typeof Node ? t instanceof Node : "object" == typeof t && "number" == typeof t.nodeType && "string" == typeof t.nodeName))
}
t.exports = n
}, function (t, e) {
function n () {
if ("undefined" == typeof document) return null;
try {
return document.activeElement || document.body
} catch (t) {
return document.body
}
}
t.exports = n
}, function (t, e) {
var n = {
xlink: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/1999/xlink",
xml: "http:\/\/wayback.archive-it.org\/8130\/20161215231904\/http:\/\/www.w3.org/XML/1998/namespace"
},
i = {
accentHeight: "accent-height",
accumulate: 0,
additive: 0,
alignmentBaseline: "alignment-baseline",
allowReorder: "allowReorder",
alphabetic: 0,
amplitude: 0,
arabicForm: "arabic-form",
ascent: 0,
attributeName: "attributeName",
attributeType: "attributeType",
autoReverse: "autoReverse",
azimuth: 0,
baseFrequency: "baseFrequency",
baseProfile: "baseProfile",
baselineShift: "baseline-shift",
bbox: 0,
begin: 0,
bias: 0,
by: 0,
calcMode: "calcMode",
capHeight: "cap-height",
clip: 0,
clipPath: "clip-path",
clipRule: "clip-rule",
clipPathUnits: "clipPathUnits",
colorInterpolation: "color-interpolation",
colorInterpolationFilters: "color-interpolation-filters",
colorProfile: "color-profile",
colorRendering: "color-rendering",
contentScriptType: "contentScriptType",
contentStyleType: "contentStyleType",
cursor: 0,
cx: 0,
cy: 0,
d: 0,
decelerate: 0,
descent: 0,
diffuseConstant: "diffuseConstant",
direction: 0,
display: 0,
divisor: 0,
dominantBaseline: "dominant-baseline",
dur: 0,
dx: 0,
dy: 0,
edgeMode: "edgeMode",
elevation: 0,
enableBackground: "enable-background",
end: 0,
exponent: 0,
externalResourcesRequired: "externalResourcesRequired",
fill: 0,
fillOpacity: "fill-opacity",
fillRule: "fill-rule",
filter: 0,
filterRes: "filterRes",
filterUnits: "filterUnits",
floodColor: "flood-color",
floodOpacity: "flood-opacity",
focusable: 0,
fontFamily: "font-family",
fontSize: "font-size",
fontSizeAdjust: "font-size-adjust",
fontStretch: "font-stretch",
fontStyle: "font-style",
fontVariant: "font-variant",
fontWeight: "font-weight",
format: 0,
from: 0,
fx: 0,
fy: 0,
g1: 0,
g2: 0,
glyphName: "glyph-name",
glyphOrientationHorizontal: "glyph-orientation-horizontal",
glyphOrientationVertical: "glyph-orientation-vertical",
glyphRef: "glyphRef",
gradientTransform: "gradientTransform",
gradientUnits: "gradientUnits",
hanging: 0,
horizAdvX: "horiz-adv-x",
horizOriginX: "horiz-origin-x",
ideographic: 0,
imageRendering: "image-rendering",
in: 0,
in2: 0,
intercept: 0,
k: 0,
k1: 0,
k2: 0,
k3: 0,
k4: 0,
kernelMatrix: "kernelMatrix",
kernelUnitLength: "kernelUnitLength",
kerning: 0,
keyPoints: "keyPoints",
keySplines: "keySplines",
keyTimes: "keyTimes",
lengthAdjust: "lengthAdjust",
letterSpacing: "letter-spacing",
lightingColor: "lighting-color",
limitingConeAngle: "limitingConeAngle",
local: 0,
markerEnd: "marker-end",
markerMid: "marker-mid",
markerStart: "marker-start",
markerHeight: "markerHeight",
markerUnits: "markerUnits",
markerWidth: "markerWidth",
mask: 0,
maskContentUnits: "maskContentUnits",
maskUnits: "maskUnits",
mathematical: 0,
mode: 0,
numOctaves: "numOctaves",
offset: 0,
opacity: 0,
operator: 0,
order: 0,
orient: 0,
orientation: 0,
origin: 0,
overflow: 0,
overlinePosition: "overline-position",
overlineThickness: "overline-thickness",
paintOrder: "paint-order",
panose1: "panose-1",
pathLength: "pathLength",
patternContentUnits: "patternContentUnits",
patternTransform: "patternTransform",
patternUnits: "patternUnits",
pointerEvents: "pointer-events",
points: 0,
pointsAtX: "pointsAtX",
pointsAtY: "pointsAtY",
pointsAtZ: "pointsAtZ",
preserveAlpha: "preserveAlpha",
preserveAspectRatio: "preserveAspectRatio",
primitiveUnits: "primitiveUnits",
r: 0,
radius: 0,
refX: "refX",
refY: "refY",
renderingIntent: "rendering-intent",
repeatCount: "repeatCount",
repeatDur: "repeatDur",
requiredExtensions: "requiredExtensions",
requiredFeatures: "requiredFeatures",
restart: 0,
result: 0,
rotate: 0,
rx: 0,
ry: 0,
scale: 0,
seed: 0,
shapeRendering: "shape-rendering",
slope: 0,
spacing: 0,
specularConstant: "specularConstant",
specularExponent: "specularExponent",
speed: 0,
spreadMethod: "spreadMethod",
startOffset: "startOffset",
stdDeviation: "stdDeviation",
stemh: 0,
stemv: 0,
stitchTiles: "stitchTiles",
stopColor: "stop-color",
stopOpacity: "stop-opacity",
strikethroughPosition: "strikethrough-position",
strikethroughThickness: "strikethrough-thickness",
string: 0,
stroke: 0,
strokeDasharray: "stroke-dasharray",
strokeDashoffset: "stroke-dashoffset",
strokeLinecap: "stroke-linecap",
strokeLinejoin: "stroke-linejoin",
strokeMiterlimit: "stroke-miterlimit",
strokeOpacity: "stroke-opacity",
strokeWidth: "stroke-width",
surfaceScale: "surfaceScale",
systemLanguage: "systemLanguage",
tableValues: "tableValues",
targetX: "targetX",
ta
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment