Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! function(e) {
- function t(i) {
- if (n[i]) return n[i].exports;
- var o = n[i] = {
- i: i,
- l: !1,
- exports: {}
- };
- return e[i].call(o.exports, o, o.exports, t), o.l = !0, o.exports
- }
- var n = {};
- t.m = e, t.c = n, t.d = function(e, n, i) {
- t.o(e, n) || Object.defineProperty(e, n, {
- configurable: !1,
- enumerable: !0,
- get: i
- })
- }, t.n = function(e) {
- var n = e && e.__esModule ? function() {
- return e.default
- } : function() {
- return e
- };
- return t.d(n, "a", n), n
- }, t.o = function(e, t) {
- return Object.prototype.hasOwnProperty.call(e, t)
- }, t.p = "", t(t.s = 174)
- }([, , function(e, t, n) {
- var i, o;
- /*!
- * jQuery JavaScript Library v3.1.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2016-09-22T22:30Z
- */
- ! function(t, n) {
- "use strict";
- "object" == typeof e && "object" == typeof e.exports ? e.exports = t.document ? n(t, !0) : function(e) {
- if (!e.document) throw new Error("jQuery requires a window with a document");
- return n(e)
- } : n(t)
- }("undefined" != typeof window ? window : this, function(n, r) {
- "use strict";
- function a(e, t) {
- t = t || re;
- var n = t.createElement("script");
- n.text = e, t.head.appendChild(n).parentNode.removeChild(n)
- }
- function s(e) {
- var t = !!e && "length" in e && e.length,
- n = ge.type(e);
- return "function" !== n && !ge.isWindow(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e)
- }
- function c(e, t, n) {
- return ge.isFunction(t) ? ge.grep(e, function(e, i) {
- return !!t.call(e, i, e) !== n
- }) : t.nodeType ? ge.grep(e, function(e) {
- return e === t !== n
- }) : "string" != typeof t ? ge.grep(e, function(e) {
- return le.call(t, e) > -1 !== n
- }) : Ne.test(t) ? ge.filter(t, e, n) : (t = ge.filter(t, e), ge.grep(e, function(e) {
- return le.call(t, e) > -1 !== n && 1 === e.nodeType
- }))
- }
- function u(e, t) {
- for (;
- (e = e[t]) && 1 !== e.nodeType;);
- return e
- }
- function l(e) {
- var t = {};
- return ge.each(e.match(Oe) || [], function(e, n) {
- t[n] = !0
- }), t
- }
- function d(e) {
- return e
- }
- function f(e) {
- throw e
- }
- function p(e, t, n) {
- var i;
- try {
- e && ge.isFunction(i = e.promise) ? i.call(e).done(t).fail(n) : e && ge.isFunction(i = e.then) ? i.call(e, t, n) : t.call(void 0, e)
- } catch (e) {
- n.call(void 0, e)
- }
- }
- function h() {
- re.removeEventListener("DOMContentLoaded", h), n.removeEventListener("load", h), ge.ready()
- }
- function m() {
- this.expando = ge.expando + m.uid++
- }
- function v(e) {
- return "true" === e || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : Re.test(e) ? JSON.parse(e) : e)
- }
- function g(e, t, n) {
- var i;
- if (void 0 === n && 1 === e.nodeType)
- if (i = "data-" + t.replace(qe, "-$&").toLowerCase(), "string" == typeof(n = e.getAttribute(i))) {
- try {
- n = v(n)
- } catch (e) {}
- Fe.set(e, t, n)
- } else n = void 0;
- return n
- }
- function y(e, t, n, i) {
- var o, r = 1,
- a = 20,
- s = i ? function() {
- return i.cur()
- } : function() {
- return ge.css(e, t, "")
- },
- c = s(),
- u = n && n[3] || (ge.cssNumber[t] ? "" : "px"),
- l = (ge.cssNumber[t] || "px" !== u && +c) && He.exec(ge.css(e, t));
- if (l && l[3] !== u) {
- u = u || l[3], n = n || [], l = +c || 1;
- do {
- r = r || ".5", l /= r, ge.style(e, t, l + u)
- } while (r !== (r = s() / c) && 1 !== r && --a)
- }
- return n && (l = +l || +c || 0, o = n[1] ? l + (n[1] + 1) * n[2] : +n[2], i && (i.unit = u, i.start = l, i.end = o)), o
- }
- function b(e) {
- var t, n = e.ownerDocument,
- i = e.nodeName,
- o = We[i];
- return o || (t = n.body.appendChild(n.createElement(i)), o = ge.css(t, "display"), t.parentNode.removeChild(t), "none" === o && (o = "block"), We[i] = o, o)
- }
- function w(e, t) {
- for (var n, i, o = [], r = 0, a = e.length; r < a; r++) i = e[r], i.style && (n = i.style.display, t ? ("none" === n && (o[r] = Pe.get(i, "display") || null, o[r] || (i.style.display = "")), "" === i.style.display && Be(i) && (o[r] = b(i))) : "none" !== n && (o[r] = "none", Pe.set(i, "display", n)));
- for (r = 0; r < a; r++) null != o[r] && (e[r].style.display = o[r]);
- return e
- }
- function _(e, t) {
- var n;
- return n = void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t || "*") : void 0 !== e.querySelectorAll ? e.querySelectorAll(t || "*") : [], void 0 === t || t && ge.nodeName(e, t) ? ge.merge([e], n) : n
- }
- function x(e, t) {
- for (var n = 0, i = e.length; n < i; n++) Pe.set(e[n], "globalEval", !t || Pe.get(t[n], "globalEval"))
- }
- function k(e, t, n, i, o) {
- for (var r, a, s, c, u, l, d = t.createDocumentFragment(), f = [], p = 0, h = e.length; p < h; p++)
- if ((r = e[p]) || 0 === r)
- if ("object" === ge.type(r)) ge.merge(f, r.nodeType ? [r] : r);
- else if (Ke.test(r)) {
- for (a = a || d.appendChild(t.createElement("div")), s = (Ye.exec(r) || ["", ""])[1].toLowerCase(), c = Xe[s] || Xe._default, a.innerHTML = c[1] + ge.htmlPrefilter(r) + c[2], l = c[0]; l--;) a = a.lastChild;
- ge.merge(f, a.childNodes), a = d.firstChild, a.textContent = ""
- } else f.push(t.createTextNode(r));
- for (d.textContent = "", p = 0; r = f[p++];)
- if (i && ge.inArray(r, i) > -1) o && o.push(r);
- else if (u = ge.contains(r.ownerDocument, r), a = _(d.appendChild(r), "script"), u && x(a), n)
- for (l = 0; r = a[l++];) Ge.test(r.type || "") && n.push(r);
- return d
- }
- function j() {
- return !0
- }
- function C() {
- return !1
- }
- function E() {
- try {
- return re.activeElement
- } catch (e) {}
- }
- function N(e, t, n, i, o, r) {
- var a, s;
- if ("object" == typeof t) {
- "string" != typeof n && (i = i || n, n = void 0);
- for (s in t) N(e, s, n, i, t[s], r);
- return e
- }
- if (null == i && null == o ? (o = n, i = n = void 0) : null == o && ("string" == typeof n ? (o = i, i = void 0) : (o = i, i = n, n = void 0)), !1 === o) o = C;
- else if (!o) return e;
- return 1 === r && (a = o, o = function(e) {
- return ge().off(e), a.apply(this, arguments)
- }, o.guid = a.guid || (a.guid = ge.guid++)), e.each(function() {
- ge.event.add(this, t, o, i, n)
- })
- }
- function S(e, t) {
- return ge.nodeName(e, "table") && ge.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e : e
- }
- function T(e) {
- return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e
- }
- function A(e) {
- var t = rt.exec(e.type);
- return t ? e.type = t[1] : e.removeAttribute("type"), e
- }
- function I(e, t) {
- var n, i, o, r, a, s, c, u;
- if (1 === t.nodeType) {
- if (Pe.hasData(e) && (r = Pe.access(e), a = Pe.set(t, r), u = r.events)) {
- delete a.handle, a.events = {};
- for (o in u)
- for (n = 0, i = u[o].length; n < i; n++) ge.event.add(t, o, u[o][n])
- }
- Fe.hasData(e) && (s = Fe.access(e), c = ge.extend({}, s), Fe.set(t, c))
- }
- }
- function O(e, t) {
- var n = t.nodeName.toLowerCase();
- "input" === n && Je.test(e.type) ? t.checked = e.checked : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue)
- }
- function D(e, t, n, i) {
- t = ce.apply([], t);
- var o, r, s, c, u, l, d = 0,
- f = e.length,
- p = f - 1,
- h = t[0],
- m = ge.isFunction(h);
- if (m || f > 1 && "string" == typeof h && !ve.checkClone && ot.test(h)) return e.each(function(o) {
- var r = e.eq(o);
- m && (t[0] = h.call(this, o, r.html())), D(r, t, n, i)
- });
- if (f && (o = k(t, e[0].ownerDocument, !1, e, i), r = o.firstChild, 1 === o.childNodes.length && (o = r), r || i)) {
- for (s = ge.map(_(o, "script"), T), c = s.length; d < f; d++) u = o, d !== p && (u = ge.clone(u, !0, !0), c && ge.merge(s, _(u, "script"))), n.call(e[d], u, d);
- if (c)
- for (l = s[s.length - 1].ownerDocument, ge.map(s, A), d = 0; d < c; d++) u = s[d], Ge.test(u.type || "") && !Pe.access(u, "globalEval") && ge.contains(l, u) && (u.src ? ge._evalUrl && ge._evalUrl(u.src) : a(u.textContent.replace(at, ""), l))
- }
- return e
- }
- function M(e, t, n) {
- for (var i, o = t ? ge.filter(t, e) : e, r = 0; null != (i = o[r]); r++) n || 1 !== i.nodeType || ge.cleanData(_(i)), i.parentNode && (n && ge.contains(i.ownerDocument, i) && x(_(i, "script")), i.parentNode.removeChild(i));
- return e
- }
- function $(e, t, n) {
- var i, o, r, a, s = e.style;
- return n = n || ut(e), n && (a = n.getPropertyValue(t) || n[t], "" !== a || ge.contains(e.ownerDocument, e) || (a = ge.style(e, t)), !ve.pixelMarginRight() && ct.test(a) && st.test(t) && (i = s.width, o = s.minWidth, r = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = i, s.minWidth = o, s.maxWidth = r)), void 0 !== a ? a + "" : a
- }
- function L(e, t) {
- return {
- get: function() {
- return e() ? void delete this.get : (this.get = t).apply(this, arguments)
- }
- }
- }
- function P(e) {
- if (e in ht) return e;
- for (var t = e[0].toUpperCase() + e.slice(1), n = pt.length; n--;)
- if ((e = pt[n] + t) in ht) return e
- }
- function F(e, t, n) {
- var i = He.exec(t);
- return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : t
- }
- function R(e, t, n, i, o) {
- var r, a = 0;
- for (r = n === (i ? "border" : "content") ? 4 : "width" === t ? 1 : 0; r < 4; r += 2) "margin" === n && (a += ge.css(e, n + Ve[r], !0, o)), i ? ("content" === n && (a -= ge.css(e, "padding" + Ve[r], !0, o)), "margin" !== n && (a -= ge.css(e, "border" + Ve[r] + "Width", !0, o))) : (a += ge.css(e, "padding" + Ve[r], !0, o), "padding" !== n && (a += ge.css(e, "border" + Ve[r] + "Width", !0, o)));
- return a
- }
- function q(e, t, n) {
- var i, o = !0,
- r = ut(e),
- a = "border-box" === ge.css(e, "boxSizing", !1, r);
- if (e.getClientRects().length && (i = e.getBoundingClientRect()[t]), i <= 0 || null == i) {
- if (i = $(e, t, r), (i < 0 || null == i) && (i = e.style[t]), ct.test(i)) return i;
- o = a && (ve.boxSizingReliable() || i === e.style[t]), i = parseFloat(i) || 0
- }
- return i + R(e, t, n || (a ? "border" : "content"), o, r) + "px"
- }
- function U(e, t, n, i, o) {
- return new U.prototype.init(e, t, n, i, o)
- }
- function H() {
- vt && (n.requestAnimationFrame(H), ge.fx.tick())
- }
- function V() {
- return n.setTimeout(function() {
- mt = void 0
- }), mt = ge.now()
- }
- function B(e, t) {
- var n, i = 0,
- o = {
- height: e
- };
- for (t = t ? 1 : 0; i < 4; i += 2 - t) n = Ve[i], o["margin" + n] = o["padding" + n] = e;
- return t && (o.opacity = o.width = e), o
- }
- function z(e, t, n) {
- for (var i, o = (Y.tweeners[t] || []).concat(Y.tweeners["*"]), r = 0, a = o.length; r < a; r++)
- if (i = o[r].call(n, t, e)) return i
- }
- function W(e, t, n) {
- var i, o, r, a, s, c, u, l, d = "width" in t || "height" in t,
- f = this,
- p = {},
- h = e.style,
- m = e.nodeType && Be(e),
- v = Pe.get(e, "fxshow");
- n.queue || (a = ge._queueHooks(e, "fx"), null == a.unqueued && (a.unqueued = 0, s = a.empty.fire, a.empty.fire = function() {
- a.unqueued || s()
- }), a.unqueued++, f.always(function() {
- f.always(function() {
- a.unqueued--, ge.queue(e, "fx").length || a.empty.fire()
- })
- }));
- for (i in t)
- if (o = t[i], gt.test(o)) {
- if (delete t[i], r = r || "toggle" === o, o === (m ? "hide" : "show")) {
- if ("show" !== o || !v || void 0 === v[i]) continue;
- m = !0
- }
- p[i] = v && v[i] || ge.style(e, i)
- }
- if ((c = !ge.isEmptyObject(t)) || !ge.isEmptyObject(p)) {
- d && 1 === e.nodeType && (n.overflow = [h.overflow, h.overflowX, h.overflowY], u = v && v.display, null == u && (u = Pe.get(e, "display")), l = ge.css(e, "display"), "none" === l && (u ? l = u : (w([e], !0), u = e.style.display || u, l = ge.css(e, "display"), w([e]))), ("inline" === l || "inline-block" === l && null != u) && "none" === ge.css(e, "float") && (c || (f.done(function() {
- h.display = u
- }), null == u && (l = h.display, u = "none" === l ? "" : l)), h.display = "inline-block")), n.overflow && (h.overflow = "hidden", f.always(function() {
- h.overflow = n.overflow[0], h.overflowX = n.overflow[1], h.overflowY = n.overflow[2]
- })), c = !1;
- for (i in p) c || (v ? "hidden" in v && (m = v.hidden) : v = Pe.access(e, "fxshow", {
- display: u
- }), r && (v.hidden = !m), m && w([e], !0), f.done(function() {
- m || w([e]), Pe.remove(e, "fxshow");
- for (i in p) ge.style(e, i, p[i])
- })), c = z(m ? v[i] : 0, i, f), i in v || (v[i] = c.start, m && (c.end = c.start, c.start = 0))
- }
- }
- function J(e, t) {
- var n, i, o, r, a;
- for (n in e)
- if (i = ge.camelCase(n), o = t[i], r = e[n], ge.isArray(r) && (o = r[1], r = e[n] = r[0]), n !== i && (e[i] = r, delete e[n]), (a = ge.cssHooks[i]) && "expand" in a) {
- r = a.expand(r), delete e[i];
- for (n in r) n in e || (e[n] = r[n], t[n] = o)
- } else t[i] = o
- }
- function Y(e, t, n) {
- var i, o, r = 0,
- a = Y.prefilters.length,
- s = ge.Deferred().always(function() {
- delete c.elem
- }),
- c = function() {
- if (o) return !1;
- for (var t = mt || V(), n = Math.max(0, u.startTime + u.duration - t), i = n / u.duration || 0, r = 1 - i, a = 0, c = u.tweens.length; a < c; a++) u.tweens[a].run(r);
- return s.notifyWith(e, [u, r, n]), r < 1 && c ? n : (s.resolveWith(e, [u]), !1)
- },
- u = s.promise({
- elem: e,
- props: ge.extend({}, t),
- opts: ge.extend(!0, {
- specialEasing: {},
- easing: ge.easing._default
- }, n),
- originalProperties: t,
- originalOptions: n,
- startTime: mt || V(),
- duration: n.duration,
- tweens: [],
- createTween: function(t, n) {
- var i = ge.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
- return u.tweens.push(i), i
- },
- stop: function(t) {
- var n = 0,
- i = t ? u.tweens.length : 0;
- if (o) return this;
- for (o = !0; n < i; n++) u.tweens[n].run(1);
- return t ? (s.notifyWith(e, [u, 1, 0]), s.resolveWith(e, [u, t])) : s.rejectWith(e, [u, t]), this
- }
- }),
- l = u.props;
- for (J(l, u.opts.specialEasing); r < a; r++)
- if (i = Y.prefilters[r].call(u, e, l, u.opts)) return ge.isFunction(i.stop) && (ge._queueHooks(u.elem, u.opts.queue).stop = ge.proxy(i.stop, i)), i;
- return ge.map(l, z, u), ge.isFunction(u.opts.start) && u.opts.start.call(e, u), ge.fx.timer(ge.extend(c, {
- elem: e,
- anim: u,
- queue: u.opts.queue
- })), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
- }
- function G(e) {
- return (e.match(Oe) || []).join(" ")
- }
- function X(e) {
- return e.getAttribute && e.getAttribute("class") || ""
- }
- function K(e, t, n, i) {
- var o;
- if (ge.isArray(t)) ge.each(t, function(t, o) {
- n || St.test(e) ? i(e, o) : K(e + "[" + ("object" == typeof o && null != o ? t : "") + "]", o, n, i)
- });
- else if (n || "object" !== ge.type(t)) i(e, t);
- else
- for (o in t) K(e + "[" + o + "]", t[o], n, i)
- }
- function Q(e) {
- return function(t, n) {
- "string" != typeof t && (n = t, t = "*");
- var i, o = 0,
- r = t.toLowerCase().match(Oe) || [];
- if (ge.isFunction(n))
- for (; i = r[o++];) "+" === i[0] ? (i = i.slice(1) || "*", (e[i] = e[i] || []).unshift(n)) : (e[i] = e[i] || []).push(n)
- }
- }
- function Z(e, t, n, i) {
- function o(s) {
- var c;
- return r[s] = !0, ge.each(e[s] || [], function(e, s) {
- var u = s(t, n, i);
- return "string" != typeof u || a || r[u] ? a ? !(c = u) : void 0 : (t.dataTypes.unshift(u), o(u), !1)
- }), c
- }
- var r = {},
- a = e === qt;
- return o(t.dataTypes[0]) || !r["*"] && o("*")
- }
- function ee(e, t) {
- var n, i, o = ge.ajaxSettings.flatOptions || {};
- for (n in t) void 0 !== t[n] && ((o[n] ? e : i || (i = {}))[n] = t[n]);
- return i && ge.extend(!0, e, i), e
- }
- function te(e, t, n) {
- for (var i, o, r, a, s = e.contents, c = e.dataTypes;
- "*" === c[0];) c.shift(), void 0 === i && (i = e.mimeType || t.getResponseHeader("Content-Type"));
- if (i)
- for (o in s)
- if (s[o] && s[o].test(i)) {
- c.unshift(o);
- break
- }
- if (c[0] in n) r = c[0];
- else {
- for (o in n) {
- if (!c[0] || e.converters[o + " " + c[0]]) {
- r = o;
- break
- }
- a || (a = o)
- }
- r = r || a
- }
- if (r) return r !== c[0] && c.unshift(r), n[r]
- }
- function ne(e, t, n, i) {
- var o, r, a, s, c, u = {},
- l = e.dataTypes.slice();
- if (l[1])
- for (a in e.converters) u[a.toLowerCase()] = e.converters[a];
- for (r = l.shift(); r;)
- if (e.responseFields[r] && (n[e.responseFields[r]] = t), !c && i && e.dataFilter && (t = e.dataFilter(t, e.dataType)), c = r, r = l.shift())
- if ("*" === r) r = c;
- else if ("*" !== c && c !== r) {
- if (!(a = u[c + " " + r] || u["* " + r]))
- for (o in u)
- if (s = o.split(" "), s[1] === r && (a = u[c + " " + s[0]] || u["* " + s[0]])) {
- !0 === a ? a = u[o] : !0 !== u[o] && (r = s[0], l.unshift(s[1]));
- break
- }
- if (!0 !== a)
- if (a && e.throws) t = a(t);
- else try {
- t = a(t)
- } catch (e) {
- return {
- state: "parsererror",
- error: a ? e : "No conversion from " + c + " to " + r
- }
- }
- }
- return {
- state: "success",
- data: t
- }
- }
- function ie(e) {
- return ge.isWindow(e) ? e : 9 === e.nodeType && e.defaultView
- }
- var oe = [],
- re = n.document,
- ae = Object.getPrototypeOf,
- se = oe.slice,
- ce = oe.concat,
- ue = oe.push,
- le = oe.indexOf,
- de = {},
- fe = de.toString,
- pe = de.hasOwnProperty,
- he = pe.toString,
- me = he.call(Object),
- ve = {},
- ge = function(e, t) {
- return new ge.fn.init(e, t)
- },
- ye = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
- be = /^-ms-/,
- we = /-([a-z])/g,
- _e = function(e, t) {
- return t.toUpperCase()
- };
- ge.fn = ge.prototype = {
- jquery: "3.1.1",
- constructor: ge,
- length: 0,
- toArray: function() {
- return se.call(this)
- },
- get: function(e) {
- return null == e ? se.call(this) : e < 0 ? this[e + this.length] : this[e]
- },
- pushStack: function(e) {
- var t = ge.merge(this.constructor(), e);
- return t.prevObject = this, t
- },
- each: function(e) {
- return ge.each(this, e)
- },
- map: function(e) {
- return this.pushStack(ge.map(this, function(t, n) {
- return e.call(t, n, t)
- }))
- },
- slice: function() {
- return this.pushStack(se.apply(this, arguments))
- },
- first: function() {
- return this.eq(0)
- },
- last: function() {
- return this.eq(-1)
- },
- eq: function(e) {
- var t = this.length,
- n = +e + (e < 0 ? t : 0);
- return this.pushStack(n >= 0 && n < t ? [this[n]] : [])
- },
- end: function() {
- return this.prevObject || this.constructor()
- },
- push: ue,
- sort: oe.sort,
- splice: oe.splice
- }, ge.extend = ge.fn.extend = function() {
- var e, t, n, i, o, r, a = arguments[0] || {},
- s = 1,
- c = arguments.length,
- u = !1;
- for ("boolean" == typeof a && (u = a, a = arguments[s] || {}, s++), "object" == typeof a || ge.isFunction(a) || (a = {}), s === c && (a = this, s--); s < c; s++)
- if (null != (e = arguments[s]))
- for (t in e) n = a[t], i = e[t], a !== i && (u && i && (ge.isPlainObject(i) || (o = ge.isArray(i))) ? (o ? (o = !1, r = n && ge.isArray(n) ? n : []) : r = n && ge.isPlainObject(n) ? n : {}, a[t] = ge.extend(u, r, i)) : void 0 !== i && (a[t] = i));
- return a
- }, ge.extend({
- expando: "jQuery" + ("3.1.1" + Math.random()).replace(/\D/g, ""),
- isReady: !0,
- error: function(e) {
- throw new Error(e)
- },
- noop: function() {},
- isFunction: function(e) {
- return "function" === ge.type(e)
- },
- isArray: Array.isArray,
- isWindow: function(e) {
- return null != e && e === e.window
- },
- isNumeric: function(e) {
- var t = ge.type(e);
- return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e))
- },
- isPlainObject: function(e) {
- var t, n;
- return !(!e || "[object Object]" !== fe.call(e)) && (!(t = ae(e)) || "function" == typeof(n = pe.call(t, "constructor") && t.constructor) && he.call(n) === me)
- },
- isEmptyObject: function(e) {
- var t;
- for (t in e) return !1;
- return !0
- },
- type: function(e) {
- return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? de[fe.call(e)] || "object" : typeof e
- },
- globalEval: function(e) {
- a(e)
- },
- camelCase: function(e) {
- return e.replace(be, "ms-").replace(we, _e)
- },
- nodeName: function(e, t) {
- return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
- },
- each: function(e, t) {
- var n, i = 0;
- if (s(e))
- for (n = e.length; i < n && !1 !== t.call(e[i], i, e[i]); i++);
- else
- for (i in e)
- if (!1 === t.call(e[i], i, e[i])) break;
- return e
- },
- trim: function(e) {
- return null == e ? "" : (e + "").replace(ye, "")
- },
- makeArray: function(e, t) {
- var n = t || [];
- return null != e && (s(Object(e)) ? ge.merge(n, "string" == typeof e ? [e] : e) : ue.call(n, e)), n
- },
- inArray: function(e, t, n) {
- return null == t ? -1 : le.call(t, e, n)
- },
- merge: function(e, t) {
- for (var n = +t.length, i = 0, o = e.length; i < n; i++) e[o++] = t[i];
- return e.length = o, e
- },
- grep: function(e, t, n) {
- for (var i = [], o = 0, r = e.length, a = !n; o < r; o++) !t(e[o], o) !== a && i.push(e[o]);
- return i
- },
- map: function(e, t, n) {
- var i, o, r = 0,
- a = [];
- if (s(e))
- for (i = e.length; r < i; r++) null != (o = t(e[r], r, n)) && a.push(o);
- else
- for (r in e) null != (o = t(e[r], r, n)) && a.push(o);
- return ce.apply([], a)
- },
- guid: 1,
- proxy: function(e, t) {
- var n, i, o;
- if ("string" == typeof t && (n = e[t], t = e, e = n), ge.isFunction(e)) return i = se.call(arguments, 2), o = function() {
- return e.apply(t || this, i.concat(se.call(arguments)))
- }, o.guid = e.guid = e.guid || ge.guid++, o
- },
- now: Date.now,
- support: ve
- }), "function" == typeof Symbol && (ge.fn[Symbol.iterator] = oe[Symbol.iterator]), ge.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(e, t) {
- de["[object " + t + "]"] = t.toLowerCase()
- });
- var xe =
- /*!
- * Sizzle CSS Selector Engine v2.3.3
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-08-08
- */
- function(e) {
- function t(e, t, n, i) {
- var o, r, a, s, c, l, f, p = t && t.ownerDocument,
- h = t ? t.nodeType : 9;
- if (n = n || [], "string" != typeof e || !e || 1 !== h && 9 !== h && 11 !== h) return n;
- if (!i && ((t ? t.ownerDocument || t : R) !== I && A(t), t = t || I, D)) {
- if (11 !== h && (c = me.exec(e)))
- if (o = c[1]) {
- if (9 === h) {
- if (!(a = t.getElementById(o))) return n;
- if (a.id === o) return n.push(a), n
- } else if (p && (a = p.getElementById(o)) && P(t, a) && a.id === o) return n.push(a), n
- } else {
- if (c[2]) return X.apply(n, t.getElementsByTagName(e)), n;
- if ((o = c[3]) && w.getElementsByClassName && t.getElementsByClassName) return X.apply(n, t.getElementsByClassName(o)), n
- }
- if (w.qsa && !B[e + " "] && (!M || !M.test(e))) {
- if (1 !== h) p = t, f = e;
- else if ("object" !== t.nodeName.toLowerCase()) {
- for ((s = t.getAttribute("id")) ? s = s.replace(be, we) : t.setAttribute("id", s = F), l = j(e), r = l.length; r--;) l[r] = "#" + s + " " + d(l[r]);
- f = l.join(","), p = ve.test(e) && u(t.parentNode) || t
- }
- if (f) try {
- return X.apply(n, p.querySelectorAll(f)), n
- } catch (e) {} finally {
- s === F && t.removeAttribute("id")
- }
- }
- }
- return E(e.replace(re, "$1"), t, n, i)
- }
- function n() {
- function e(n, i) {
- return t.push(n + " ") > _.cacheLength && delete e[t.shift()], e[n + " "] = i
- }
- var t = [];
- return e
- }
- function i(e) {
- return e[F] = !0, e
- }
- function o(e) {
- var t = I.createElement("fieldset");
- try {
- return !!e(t)
- } catch (e) {
- return !1
- } finally {
- t.parentNode && t.parentNode.removeChild(t), t = null
- }
- }
- function r(e, t) {
- for (var n = e.split("|"), i = n.length; i--;) _.attrHandle[n[i]] = t
- }
- function a(e, t) {
- var n = t && e,
- i = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex;
- if (i) return i;
- if (n)
- for (; n = n.nextSibling;)
- if (n === t) return -1;
- return e ? 1 : -1
- }
- function s(e) {
- return function(t) {
- return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && xe(t) === e : t.disabled === e : "label" in t && t.disabled === e
- }
- }
- function c(e) {
- return i(function(t) {
- return t = +t, i(function(n, i) {
- for (var o, r = e([], n.length, t), a = r.length; a--;) n[o = r[a]] && (n[o] = !(i[o] = n[o]))
- })
- })
- }
- function u(e) {
- return e && void 0 !== e.getElementsByTagName && e
- }
- function l() {}
- function d(e) {
- for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
- return i
- }
- function f(e, t, n) {
- var i = t.dir,
- o = t.next,
- r = o || i,
- a = n && "parentNode" === r,
- s = U++;
- return t.first ? function(t, n, o) {
- for (; t = t[i];)
- if (1 === t.nodeType || a) return e(t, n, o);
- return !1
- } : function(t, n, c) {
- var u, l, d, f = [q, s];
- if (c) {
- for (; t = t[i];)
- if ((1 === t.nodeType || a) && e(t, n, c)) return !0
- } else
- for (; t = t[i];)
- if (1 === t.nodeType || a)
- if (d = t[F] || (t[F] = {}), l = d[t.uniqueID] || (d[t.uniqueID] = {}), o && o === t.nodeName.toLowerCase()) t = t[i] || t;
- else {
- if ((u = l[r]) && u[0] === q && u[1] === s) return f[2] = u[2];
- if (l[r] = f, f[2] = e(t, n, c)) return !0
- } return !1
- }
- }
- function p(e) {
- return e.length > 1 ? function(t, n, i) {
- for (var o = e.length; o--;)
- if (!e[o](t, n, i)) return !1;
- return !0
- } : e[0]
- }
- function h(e, n, i) {
- for (var o = 0, r = n.length; o < r; o++) t(e, n[o], i);
- return i
- }
- function m(e, t, n, i, o) {
- for (var r, a = [], s = 0, c = e.length, u = null != t; s < c; s++)(r = e[s]) && (n && !n(r, i, o) || (a.push(r), u && t.push(s)));
- return a
- }
- function v(e, t, n, o, r, a) {
- return o && !o[F] && (o = v(o)), r && !r[F] && (r = v(r, a)), i(function(i, a, s, c) {
- var u, l, d, f = [],
- p = [],
- v = a.length,
- g = i || h(t || "*", s.nodeType ? [s] : s, []),
- y = !e || !i && t ? g : m(g, f, e, s, c),
- b = n ? r || (i ? e : v || o) ? [] : a : y;
- if (n && n(y, b, s, c), o)
- for (u = m(b, p), o(u, [], s, c), l = u.length; l--;)(d = u[l]) && (b[p[l]] = !(y[p[l]] = d));
- if (i) {
- if (r || e) {
- if (r) {
- for (u = [], l = b.length; l--;)(d = b[l]) && u.push(y[l] = d);
- r(null, b = [], u, c)
- }
- for (l = b.length; l--;)(d = b[l]) && (u = r ? Q(i, d) : f[l]) > -1 && (i[u] = !(a[u] = d))
- }
- } else b = m(b === a ? b.splice(v, b.length) : b), r ? r(null, a, b, c) : X.apply(a, b)
- })
- }
- function g(e) {
- for (var t, n, i, o = e.length, r = _.relative[e[0].type], a = r || _.relative[" "], s = r ? 1 : 0, c = f(function(e) {
- return e === t
- }, a, !0), u = f(function(e) {
- return Q(t, e) > -1
- }, a, !0), l = [function(e, n, i) {
- var o = !r && (i || n !== N) || ((t = n).nodeType ? c(e, n, i) : u(e, n, i));
- return t = null, o
- }]; s < o; s++)
- if (n = _.relative[e[s].type]) l = [f(p(l), n)];
- else {
- if (n = _.filter[e[s].type].apply(null, e[s].matches), n[F]) {
- for (i = ++s; i < o && !_.relative[e[i].type]; i++);
- return v(s > 1 && p(l), s > 1 && d(e.slice(0, s - 1).concat({
- value: " " === e[s - 2].type ? "*" : ""
- })).replace(re, "$1"), n, s < i && g(e.slice(s, i)), i < o && g(e = e.slice(i)), i < o && d(e))
- }
- l.push(n)
- }
- return p(l)
- }
- function y(e, n) {
- var o = n.length > 0,
- r = e.length > 0,
- a = function(i, a, s, c, u) {
- var l, d, f, p = 0,
- h = "0",
- v = i && [],
- g = [],
- y = N,
- b = i || r && _.find.TAG("*", u),
- w = q += null == y ? 1 : Math.random() || .1,
- x = b.length;
- for (u && (N = a === I || a || u); h !== x && null != (l = b[h]); h++) {
- if (r && l) {
- for (d = 0, a || l.ownerDocument === I || (A(l), s = !D); f = e[d++];)
- if (f(l, a || I, s)) {
- c.push(l);
- break
- }
- u && (q = w)
- }
- o && ((l = !f && l) && p--, i && v.push(l))
- }
- if (p += h, o && h !== p) {
- for (d = 0; f = n[d++];) f(v, g, a, s);
- if (i) {
- if (p > 0)
- for (; h--;) v[h] || g[h] || (g[h] = Y.call(c));
- g = m(g)
- }
- X.apply(c, g), u && !i && g.length > 0 && p + n.length > 1 && t.uniqueSort(c)
- }
- return u && (q = w, N = y), v
- };
- return o ? i(a) : a
- }
- var b, w, _, x, k, j, C, E, N, S, T, A, I, O, D, M, $, L, P, F = "sizzle" + 1 * new Date,
- R = e.document,
- q = 0,
- U = 0,
- H = n(),
- V = n(),
- B = n(),
- z = function(e, t) {
- return e === t && (T = !0), 0
- },
- W = {}.hasOwnProperty,
- J = [],
- Y = J.pop,
- G = J.push,
- X = J.push,
- K = J.slice,
- Q = function(e, t) {
- for (var n = 0, i = e.length; n < i; n++)
- if (e[n] === t) return n;
- return -1
- },
- Z = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
- ee = "[\\x20\\t\\r\\n\\f]",
- te = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
- ne = "\\[" + ee + "*(" + te + ")(?:" + ee + "*([*^$|!~]?=)" + ee + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + te + "))|)" + ee + "*\\]",
- ie = ":(" + te + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + ne + ")*)|.*)\\)|)",
- oe = new RegExp(ee + "+", "g"),
- re = new RegExp("^" + ee + "+|((?:^|[^\\\\])(?:\\\\.)*)" + ee + "+$", "g"),
- ae = new RegExp("^" + ee + "*," + ee + "*"),
- se = new RegExp("^" + ee + "*([>+~]|" + ee + ")" + ee + "*"),
- ce = new RegExp("=" + ee + "*([^\\]'\"]*?)" + ee + "*\\]", "g"),
- ue = new RegExp(ie),
- le = new RegExp("^" + te + "$"),
- de = {
- ID: new RegExp("^#(" + te + ")"),
- CLASS: new RegExp("^\\.(" + te + ")"),
- TAG: new RegExp("^(" + te + "|[*])"),
- ATTR: new RegExp("^" + ne),
- PSEUDO: new RegExp("^" + ie),
- CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ee + "*(even|odd|(([+-]|)(\\d*)n|)" + ee + "*(?:([+-]|)" + ee + "*(\\d+)|))" + ee + "*\\)|)", "i"),
- bool: new RegExp("^(?:" + Z + ")$", "i"),
- needsContext: new RegExp("^" + ee + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ee + "*((?:-\\d)?\\d*)" + ee + "*\\)|)(?=[^-]|$)", "i")
- },
- fe = /^(?:input|select|textarea|button)$/i,
- pe = /^h\d$/i,
- he = /^[^{]+\{\s*\[native \w/,
- me = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- ve = /[+~]/,
- ge = new RegExp("\\\\([\\da-f]{1,6}" + ee + "?|(" + ee + ")|.)", "ig"),
- ye = function(e, t, n) {
- var i = "0x" + t - 65536;
- return i !== i || n ? t : i < 0 ? String.fromCharCode(i + 65536) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320)
- },
- be = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- we = function(e, t) {
- return t ? "\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e
- },
- _e = function() {
- A()
- },
- xe = f(function(e) {
- return !0 === e.disabled && ("form" in e || "label" in e)
- }, {
- dir: "parentNode",
- next: "legend"
- });
- try {
- X.apply(J = K.call(R.childNodes), R.childNodes), J[R.childNodes.length].nodeType
- } catch (e) {
- X = {
- apply: J.length ? function(e, t) {
- G.apply(e, K.call(t))
- } : function(e, t) {
- for (var n = e.length, i = 0; e[n++] = t[i++];);
- e.length = n - 1
- }
- }
- }
- w = t.support = {}, k = t.isXML = function(e) {
- var t = e && (e.ownerDocument || e).documentElement;
- return !!t && "HTML" !== t.nodeName
- }, A = t.setDocument = function(e) {
- var t, n, i = e ? e.ownerDocument || e : R;
- return i !== I && 9 === i.nodeType && i.documentElement ? (I = i, O = I.documentElement, D = !k(I), R !== I && (n = I.defaultView) && n.top !== n && (n.addEventListener ? n.addEventListener("unload", _e, !1) : n.attachEvent && n.attachEvent("onunload", _e)), w.attributes = o(function(e) {
- return e.className = "i", !e.getAttribute("className")
- }), w.getElementsByTagName = o(function(e) {
- return e.appendChild(I.createComment("")), !e.getElementsByTagName("*").length
- }), w.getElementsByClassName = he.test(I.getElementsByClassName), w.getById = o(function(e) {
- return O.appendChild(e).id = F, !I.getElementsByName || !I.getElementsByName(F).length
- }), w.getById ? (_.filter.ID = function(e) {
- var t = e.replace(ge, ye);
- return function(e) {
- return e.getAttribute("id") === t
- }
- }, _.find.ID = function(e, t) {
- if (void 0 !== t.getElementById && D) {
- var n = t.getElementById(e);
- return n ? [n] : []
- }
- }) : (_.filter.ID = function(e) {
- var t = e.replace(ge, ye);
- return function(e) {
- var n = void 0 !== e.getAttributeNode && e.getAttributeNode("id");
- return n && n.value === t
- }
- }, _.find.ID = function(e, t) {
- if (void 0 !== t.getElementById && D) {
- var n, i, o, r = t.getElementById(e);
- if (r) {
- if ((n = r.getAttributeNode("id")) && n.value === e) return [r];
- for (o = t.getElementsByName(e), i = 0; r = o[i++];)
- if ((n = r.getAttributeNode("id")) && n.value === e) return [r]
- }
- return []
- }
- }), _.find.TAG = w.getElementsByTagName ? function(e, t) {
- return void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e) : w.qsa ? t.querySelectorAll(e) : void 0
- } : function(e, t) {
- var n, i = [],
- o = 0,
- r = t.getElementsByTagName(e);
- if ("*" === e) {
- for (; n = r[o++];) 1 === n.nodeType && i.push(n);
- return i
- }
- return r
- }, _.find.CLASS = w.getElementsByClassName && function(e, t) {
- if (void 0 !== t.getElementsByClassName && D) return t.getElementsByClassName(e)
- }, $ = [], M = [], (w.qsa = he.test(I.querySelectorAll)) && (o(function(e) {
- O.appendChild(e).innerHTML = "<a id='" + F + "'></a><select id='" + F + "-\r\\' msallowcapture=''><option selected=''></option></select>", e.querySelectorAll("[msallowcapture^='']").length && M.push("[*^$]=" + ee + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || M.push("\\[" + ee + "*(?:value|" + Z + ")"), e.querySelectorAll("[id~=" + F + "-]").length || M.push("~="), e.querySelectorAll(":checked").length || M.push(":checked"), e.querySelectorAll("a#" + F + "+*").length || M.push(".#.+[+~]")
- }), o(function(e) {
- e.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
- var t = I.createElement("input");
- t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && M.push("name" + ee + "*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && M.push(":enabled", ":disabled"), O.appendChild(e).disabled = !0, 2 !== e.querySelectorAll(":disabled").length && M.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), M.push(",.*:")
- })), (w.matchesSelector = he.test(L = O.matches || O.webkitMatchesSelector || O.mozMatchesSelector || O.oMatchesSelector || O.msMatchesSelector)) && o(function(e) {
- w.disconnectedMatch = L.call(e, "*"), L.call(e, "[s!='']:x"), $.push("!=", ie)
- }), M = M.length && new RegExp(M.join("|")), $ = $.length && new RegExp($.join("|")), t = he.test(O.compareDocumentPosition), P = t || he.test(O.contains) ? function(e, t) {
- var n = 9 === e.nodeType ? e.documentElement : e,
- i = t && t.parentNode;
- return e === i || !(!i || 1 !== i.nodeType || !(n.contains ? n.contains(i) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(i)))
- } : function(e, t) {
- if (t)
- for (; t = t.parentNode;)
- if (t === e) return !0;
- return !1
- }, z = t ? function(e, t) {
- if (e === t) return T = !0, 0;
- var n = !e.compareDocumentPosition - !t.compareDocumentPosition;
- return n || (n = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1, 1 & n || !w.sortDetached && t.compareDocumentPosition(e) === n ? e === I || e.ownerDocument === R && P(R, e) ? -1 : t === I || t.ownerDocument === R && P(R, t) ? 1 : S ? Q(S, e) - Q(S, t) : 0 : 4 & n ? -1 : 1)
- } : function(e, t) {
- if (e === t) return T = !0, 0;
- var n, i = 0,
- o = e.parentNode,
- r = t.parentNode,
- s = [e],
- c = [t];
- if (!o || !r) return e === I ? -1 : t === I ? 1 : o ? -1 : r ? 1 : S ? Q(S, e) - Q(S, t) : 0;
- if (o === r) return a(e, t);
- for (n = e; n = n.parentNode;) s.unshift(n);
- for (n = t; n = n.parentNode;) c.unshift(n);
- for (; s[i] === c[i];) i++;
- return i ? a(s[i], c[i]) : s[i] === R ? -1 : c[i] === R ? 1 : 0
- }, I) : I
- }, t.matches = function(e, n) {
- return t(e, null, null, n)
- }, t.matchesSelector = function(e, n) {
- if ((e.ownerDocument || e) !== I && A(e), n = n.replace(ce, "='$1']"), w.matchesSelector && D && !B[n + " "] && (!$ || !$.test(n)) && (!M || !M.test(n))) try {
- var i = L.call(e, n);
- if (i || w.disconnectedMatch || e.document && 11 !== e.document.nodeType) return i
- } catch (e) {}
- return t(n, I, null, [e]).length > 0
- }, t.contains = function(e, t) {
- return (e.ownerDocument || e) !== I && A(e), P(e, t)
- }, t.attr = function(e, t) {
- (e.ownerDocument || e) !== I && A(e);
- var n = _.attrHandle[t.toLowerCase()],
- i = n && W.call(_.attrHandle, t.toLowerCase()) ? n(e, t, !D) : void 0;
- return void 0 !== i ? i : w.attributes || !D ? e.getAttribute(t) : (i = e.getAttributeNode(t)) && i.specified ? i.value : null
- }, t.escape = function(e) {
- return (e + "").replace(be, we)
- }, t.error = function(e) {
- throw new Error("Syntax error, unrecognized expression: " + e)
- }, t.uniqueSort = function(e) {
- var t, n = [],
- i = 0,
- o = 0;
- if (T = !w.detectDuplicates, S = !w.sortStable && e.slice(0), e.sort(z), T) {
- for (; t = e[o++];) t === e[o] && (i = n.push(o));
- for (; i--;) e.splice(n[i], 1)
- }
- return S = null, e
- }, x = t.getText = function(e) {
- var t, n = "",
- i = 0,
- o = e.nodeType;
- if (o) {
- if (1 === o || 9 === o || 11 === o) {
- if ("string" == typeof e.textContent) return e.textContent;
- for (e = e.firstChild; e; e = e.nextSibling) n += x(e)
- } else if (3 === o || 4 === o) return e.nodeValue
- } else
- for (; t = e[i++];) n += x(t);
- return n
- }, _ = t.selectors = {
- cacheLength: 50,
- createPseudo: i,
- match: de,
- attrHandle: {},
- find: {},
- relative: {
- ">": {
- dir: "parentNode",
- first: !0
- },
- " ": {
- dir: "parentNode"
- },
- "+": {
- dir: "previousSibling",
- first: !0
- },
- "~": {
- dir: "previousSibling"
- }
- },
- preFilter: {
- ATTR: function(e) {
- return e[1] = e[1].replace(ge, ye), e[3] = (e[3] || e[4] || e[5] || "").replace(ge, ye), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
- },
- CHILD: function(e) {
- return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || t.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && t.error(e[0]), e
- },
- PSEUDO: function(e) {
- var t, n = !e[6] && e[2];
- return de.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && ue.test(n) && (t = j(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3))
- }
- },
- filter: {
- TAG: function(e) {
- var t = e.replace(ge, ye).toLowerCase();
- return "*" === e ? function() {
- return !0
- } : function(e) {
- return e.nodeName && e.nodeName.toLowerCase() === t
- }
- },
- CLASS: function(e) {
- var t = H[e + " "];
- return t || (t = new RegExp("(^|" + ee + ")" + e + "(" + ee + "|$)")) && H(e, function(e) {
- return t.test("string" == typeof e.className && e.className || void 0 !== e.getAttribute && e.getAttribute("class") || "")
- })
- },
- ATTR: function(e, n, i) {
- return function(o) {
- var r = t.attr(o, e);
- return null == r ? "!=" === n : !n || (r += "", "=" === n ? r === i : "!=" === n ? r !== i : "^=" === n ? i && 0 === r.indexOf(i) : "*=" === n ? i && r.indexOf(i) > -1 : "$=" === n ? i && r.slice(-i.length) === i : "~=" === n ? (" " + r.replace(oe, " ") + " ").indexOf(i) > -1 : "|=" === n && (r === i || r.slice(0, i.length + 1) === i + "-"))
- }
- },
- CHILD: function(e, t, n, i, o) {
- var r = "nth" !== e.slice(0, 3),
- a = "last" !== e.slice(-4),
- s = "of-type" === t;
- return 1 === i && 0 === o ? function(e) {
- return !!e.parentNode
- } : function(t, n, c) {
- var u, l, d, f, p, h, m = r !== a ? "nextSibling" : "previousSibling",
- v = t.parentNode,
- g = s && t.nodeName.toLowerCase(),
- y = !c && !s,
- b = !1;
- if (v) {
- if (r) {
- for (; m;) {
- for (f = t; f = f[m];)
- if (s ? f.nodeName.toLowerCase() === g : 1 === f.nodeType) return !1;
- h = m = "only" === e && !h && "nextSibling"
- }
- return !0
- }
- if (h = [a ? v.firstChild : v.lastChild], a && y) {
- for (f = v, d = f[F] || (f[F] = {}), l = d[f.uniqueID] || (d[f.uniqueID] = {}), u = l[e] || [], p = u[0] === q && u[1], b = p && u[2], f = p && v.childNodes[p]; f = ++p && f && f[m] || (b = p = 0) || h.pop();)
- if (1 === f.nodeType && ++b && f === t) {
- l[e] = [q, p, b];
- break
- }
- } else if (y && (f = t, d = f[F] || (f[F] = {}), l = d[f.uniqueID] || (d[f.uniqueID] = {}), u = l[e] || [], p = u[0] === q && u[1], b = p), !1 === b)
- for (;
- (f = ++p && f && f[m] || (b = p = 0) || h.pop()) && ((s ? f.nodeName.toLowerCase() !== g : 1 !== f.nodeType) || !++b || (y && (d = f[F] || (f[F] = {}), l = d[f.uniqueID] || (d[f.uniqueID] = {}), l[e] = [q, b]), f !== t)););
- return (b -= o) === i || b % i == 0 && b / i >= 0
- }
- }
- },
- PSEUDO: function(e, n) {
- var o, r = _.pseudos[e] || _.setFilters[e.toLowerCase()] || t.error("unsupported pseudo: " + e);
- return r[F] ? r(n) : r.length > 1 ? (o = [e, e, "", n], _.setFilters.hasOwnProperty(e.toLowerCase()) ? i(function(e, t) {
- for (var i, o = r(e, n), a = o.length; a--;) i = Q(e, o[a]), e[i] = !(t[i] = o[a])
- }) : function(e) {
- return r(e, 0, o)
- }) : r
- }
- },
- pseudos: {
- not: i(function(e) {
- var t = [],
- n = [],
- o = C(e.replace(re, "$1"));
- return o[F] ? i(function(e, t, n, i) {
- for (var r, a = o(e, null, i, []), s = e.length; s--;)(r = a[s]) && (e[s] = !(t[s] = r))
- }) : function(e, i, r) {
- return t[0] = e, o(t, null, r, n), t[0] = null, !n.pop()
- }
- }),
- has: i(function(e) {
- return function(n) {
- return t(e, n).length > 0
- }
- }),
- contains: i(function(e) {
- return e = e.replace(ge, ye),
- function(t) {
- return (t.textContent || t.innerText || x(t)).indexOf(e) > -1
- }
- }),
- lang: i(function(e) {
- return le.test(e || "") || t.error("unsupported lang: " + e), e = e.replace(ge, ye).toLowerCase(),
- function(t) {
- var n;
- do {
- if (n = D ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-")
- } while ((t = t.parentNode) && 1 === t.nodeType);
- return !1
- }
- }),
- target: function(t) {
- var n = e.location && e.location.hash;
- return n && n.slice(1) === t.id
- },
- root: function(e) {
- return e === O
- },
- focus: function(e) {
- return e === I.activeElement && (!I.hasFocus || I.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
- },
- enabled: s(!1),
- disabled: s(!0),
- checked: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && !!e.checked || "option" === t && !!e.selected
- },
- selected: function(e) {
- return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected
- },
- empty: function(e) {
- for (e = e.firstChild; e; e = e.nextSibling)
- if (e.nodeType < 6) return !1;
- return !0
- },
- parent: function(e) {
- return !_.pseudos.empty(e)
- },
- header: function(e) {
- return pe.test(e.nodeName)
- },
- input: function(e) {
- return fe.test(e.nodeName)
- },
- button: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && "button" === e.type || "button" === t
- },
- text: function(e) {
- var t;
- return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase())
- },
- first: c(function() {
- return [0]
- }),
- last: c(function(e, t) {
- return [t - 1]
- }),
- eq: c(function(e, t, n) {
- return [n < 0 ? n + t : n]
- }),
- even: c(function(e, t) {
- for (var n = 0; n < t; n += 2) e.push(n);
- return e
- }),
- odd: c(function(e, t) {
- for (var n = 1; n < t; n += 2) e.push(n);
- return e
- }),
- lt: c(function(e, t, n) {
- for (var i = n < 0 ? n + t : n; --i >= 0;) e.push(i);
- return e
- }),
- gt: c(function(e, t, n) {
- for (var i = n < 0 ? n + t : n; ++i < t;) e.push(i);
- return e
- })
- }
- }, _.pseudos.nth = _.pseudos.eq;
- for (b in {
- radio: !0,
- checkbox: !0,
- file: !0,
- password: !0,
- image: !0
- }) _.pseudos[b] = function(e) {
- return function(t) {
- return "input" === t.nodeName.toLowerCase() && t.type === e
- }
- }(b);
- for (b in {
- submit: !0,
- reset: !0
- }) _.pseudos[b] = function(e) {
- return function(t) {
- var n = t.nodeName.toLowerCase();
- return ("input" === n || "button" === n) && t.type === e
- }
- }(b);
- return l.prototype = _.filters = _.pseudos, _.setFilters = new l, j = t.tokenize = function(e, n) {
- var i, o, r, a, s, c, u, l = V[e + " "];
- if (l) return n ? 0 : l.slice(0);
- for (s = e, c = [], u = _.preFilter; s;) {
- i && !(o = ae.exec(s)) || (o && (s = s.slice(o[0].length) || s), c.push(r = [])), i = !1, (o = se.exec(s)) && (i = o.shift(), r.push({
- value: i,
- type: o[0].replace(re, " ")
- }), s = s.slice(i.length));
- for (a in _.filter) !(o = de[a].exec(s)) || u[a] && !(o = u[a](o)) || (i = o.shift(), r.push({
- value: i,
- type: a,
- matches: o
- }), s = s.slice(i.length));
- if (!i) break
- }
- return n ? s.length : s ? t.error(e) : V(e, c).slice(0)
- }, C = t.compile = function(e, t) {
- var n, i = [],
- o = [],
- r = B[e + " "];
- if (!r) {
- for (t || (t = j(e)), n = t.length; n--;) r = g(t[n]), r[F] ? i.push(r) : o.push(r);
- r = B(e, y(o, i)), r.selector = e
- }
- return r
- }, E = t.select = function(e, t, n, i) {
- var o, r, a, s, c, l = "function" == typeof e && e,
- f = !i && j(e = l.selector || e);
- if (n = n || [], 1 === f.length) {
- if (r = f[0] = f[0].slice(0), r.length > 2 && "ID" === (a = r[0]).type && 9 === t.nodeType && D && _.relative[r[1].type]) {
- if (!(t = (_.find.ID(a.matches[0].replace(ge, ye), t) || [])[0])) return n;
- l && (t = t.parentNode), e = e.slice(r.shift().value.length)
- }
- for (o = de.needsContext.test(e) ? 0 : r.length; o-- && (a = r[o], !_.relative[s = a.type]);)
- if ((c = _.find[s]) && (i = c(a.matches[0].replace(ge, ye), ve.test(r[0].type) && u(t.parentNode) || t))) {
- if (r.splice(o, 1), !(e = i.length && d(r))) return X.apply(n, i), n;
- break
- }
- }
- return (l || C(e, f))(i, t, !D, n, !t || ve.test(e) && u(t.parentNode) || t), n
- }, w.sortStable = F.split("").sort(z).join("") === F, w.detectDuplicates = !!T, A(), w.sortDetached = o(function(e) {
- return 1 & e.compareDocumentPosition(I.createElement("fieldset"))
- }), o(function(e) {
- return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
- }) || r("type|href|height|width", function(e, t, n) {
- if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
- }), w.attributes && o(function(e) {
- return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
- }) || r("value", function(e, t, n) {
- if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue
- }), o(function(e) {
- return null == e.getAttribute("disabled")
- }) || r(Z, function(e, t, n) {
- var i;
- if (!n) return !0 === e[t] ? t.toLowerCase() : (i = e.getAttributeNode(t)) && i.specified ? i.value : null
- }), t
- }(n);
- ge.find = xe, ge.expr = xe.selectors, ge.expr[":"] = ge.expr.pseudos, ge.uniqueSort = ge.unique = xe.uniqueSort, ge.text = xe.getText, ge.isXMLDoc = xe.isXML, ge.contains = xe.contains, ge.escapeSelector = xe.escape;
- var ke = function(e, t, n) {
- for (var i = [], o = void 0 !== n;
- (e = e[t]) && 9 !== e.nodeType;)
- if (1 === e.nodeType) {
- if (o && ge(e).is(n)) break;
- i.push(e)
- }
- return i
- },
- je = function(e, t) {
- for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
- return n
- },
- Ce = ge.expr.match.needsContext,
- Ee = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,
- Ne = /^.[^:#\[\.,]*$/;
- ge.filter = function(e, t, n) {
- var i = t[0];
- return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === i.nodeType ? ge.find.matchesSelector(i, e) ? [i] : [] : ge.find.matches(e, ge.grep(t, function(e) {
- return 1 === e.nodeType
- }))
- }, ge.fn.extend({
- find: function(e) {
- var t, n, i = this.length,
- o = this;
- if ("string" != typeof e) return this.pushStack(ge(e).filter(function() {
- for (t = 0; t < i; t++)
- if (ge.contains(o[t], this)) return !0
- }));
- for (n = this.pushStack([]), t = 0; t < i; t++) ge.find(e, o[t], n);
- return i > 1 ? ge.uniqueSort(n) : n
- },
- filter: function(e) {
- return this.pushStack(c(this, e || [], !1))
- },
- not: function(e) {
- return this.pushStack(c(this, e || [], !0))
- },
- is: function(e) {
- return !!c(this, "string" == typeof e && Ce.test(e) ? ge(e) : e || [], !1).length
- }
- });
- var Se, Te = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
- (ge.fn.init = function(e, t, n) {
- var i, o;
- if (!e) return this;
- if (n = n || Se, "string" == typeof e) {
- if (!(i = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : Te.exec(e)) || !i[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e);
- if (i[1]) {
- if (t = t instanceof ge ? t[0] : t, ge.merge(this, ge.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : re, !0)), Ee.test(i[1]) && ge.isPlainObject(t))
- for (i in t) ge.isFunction(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
- return this
- }
- return o = re.getElementById(i[2]), o && (this[0] = o, this.length = 1), this
- }
- return e.nodeType ? (this[0] = e, this.length = 1, this) : ge.isFunction(e) ? void 0 !== n.ready ? n.ready(e) : e(ge) : ge.makeArray(e, this)
- }).prototype = ge.fn, Se = ge(re);
- var Ae = /^(?:parents|prev(?:Until|All))/,
- Ie = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
- ge.fn.extend({
- has: function(e) {
- var t = ge(e, this),
- n = t.length;
- return this.filter(function() {
- for (var e = 0; e < n; e++)
- if (ge.contains(this, t[e])) return !0
- })
- },
- closest: function(e, t) {
- var n, i = 0,
- o = this.length,
- r = [],
- a = "string" != typeof e && ge(e);
- if (!Ce.test(e))
- for (; i < o; i++)
- for (n = this[i]; n && n !== t; n = n.parentNode)
- if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && ge.find.matchesSelector(n, e))) {
- r.push(n);
- break
- }
- return this.pushStack(r.length > 1 ? ge.uniqueSort(r) : r)
- },
- index: function(e) {
- return e ? "string" == typeof e ? le.call(ge(e), this[0]) : le.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
- },
- add: function(e, t) {
- return this.pushStack(ge.uniqueSort(ge.merge(this.get(), ge(e, t))))
- },
- addBack: function(e) {
- return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
- }
- }), ge.each({
- parent: function(e) {
- var t = e.parentNode;
- return t && 11 !== t.nodeType ? t : null
- },
- parents: function(e) {
- return ke(e, "parentNode")
- },
- parentsUntil: function(e, t, n) {
- return ke(e, "parentNode", n)
- },
- next: function(e) {
- return u(e, "nextSibling")
- },
- prev: function(e) {
- return u(e, "previousSibling")
- },
- nextAll: function(e) {
- return ke(e, "nextSibling")
- },
- prevAll: function(e) {
- return ke(e, "previousSibling")
- },
- nextUntil: function(e, t, n) {
- return ke(e, "nextSibling", n)
- },
- prevUntil: function(e, t, n) {
- return ke(e, "previousSibling", n)
- },
- siblings: function(e) {
- return je((e.parentNode || {}).firstChild, e)
- },
- children: function(e) {
- return je(e.firstChild)
- },
- contents: function(e) {
- return e.contentDocument || ge.merge([], e.childNodes)
- }
- }, function(e, t) {
- ge.fn[e] = function(n, i) {
- var o = ge.map(this, t, n);
- return "Until" !== e.slice(-5) && (i = n), i && "string" == typeof i && (o = ge.filter(i, o)), this.length > 1 && (Ie[e] || ge.uniqueSort(o), Ae.test(e) && o.reverse()), this.pushStack(o)
- }
- });
- var Oe = /[^\x20\t\r\n\f]+/g;
- ge.Callbacks = function(e) {
- e = "string" == typeof e ? l(e) : ge.extend({}, e);
- var t, n, i, o, r = [],
- a = [],
- s = -1,
- c = function() {
- for (o = e.once, i = t = !0; a.length; s = -1)
- for (n = a.shift(); ++s < r.length;) !1 === r[s].apply(n[0], n[1]) && e.stopOnFalse && (s = r.length, n = !1);
- e.memory || (n = !1), t = !1, o && (r = n ? [] : "")
- },
- u = {
- add: function() {
- return r && (n && !t && (s = r.length - 1, a.push(n)), function t(n) {
- ge.each(n, function(n, i) {
- ge.isFunction(i) ? e.unique && u.has(i) || r.push(i) : i && i.length && "string" !== ge.type(i) && t(i)
- })
- }(arguments), n && !t && c()), this
- },
- remove: function() {
- return ge.each(arguments, function(e, t) {
- for (var n;
- (n = ge.inArray(t, r, n)) > -1;) r.splice(n, 1), n <= s && s--
- }), this
- },
- has: function(e) {
- return e ? ge.inArray(e, r) > -1 : r.length > 0
- },
- empty: function() {
- return r && (r = []), this
- },
- disable: function() {
- return o = a = [], r = n = "", this
- },
- disabled: function() {
- return !r
- },
- lock: function() {
- return o = a = [], n || t || (r = n = ""), this
- },
- locked: function() {
- return !!o
- },
- fireWith: function(e, n) {
- return o || (n = n || [], n = [e, n.slice ? n.slice() : n], a.push(n), t || c()), this
- },
- fire: function() {
- return u.fireWith(this, arguments), this
- },
- fired: function() {
- return !!i
- }
- };
- return u
- }, ge.extend({
- Deferred: function(e) {
- var t = [
- ["notify", "progress", ge.Callbacks("memory"), ge.Callbacks("memory"), 2],
- ["resolve", "done", ge.Callbacks("once memory"), ge.Callbacks("once memory"), 0, "resolved"],
- ["reject", "fail", ge.Callbacks("once memory"), ge.Callbacks("once memory"), 1, "rejected"]
- ],
- i = "pending",
- o = {
- state: function() {
- return i
- },
- always: function() {
- return r.done(arguments).fail(arguments), this
- },
- catch: function(e) {
- return o.then(null, e)
- },
- pipe: function() {
- var e = arguments;
- return ge.Deferred(function(n) {
- ge.each(t, function(t, i) {
- var o = ge.isFunction(e[i[4]]) && e[i[4]];
- r[i[1]](function() {
- var e = o && o.apply(this, arguments);
- e && ge.isFunction(e.promise) ? e.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[i[0] + "With"](this, o ? [e] : arguments)
- })
- }), e = null
- }).promise()
- },
- then: function(e, i, o) {
- function r(e, t, i, o) {
- return function() {
- var s = this,
- c = arguments,
- u = function() {
- var n, u;
- if (!(e < a)) {
- if ((n = i.apply(s, c)) === t.promise()) throw new TypeError("Thenable self-resolution");
- u = n && ("object" == typeof n || "function" == typeof n) && n.then, ge.isFunction(u) ? o ? u.call(n, r(a, t, d, o), r(a, t, f, o)) : (a++, u.call(n, r(a, t, d, o), r(a, t, f, o), r(a, t, d, t.notifyWith))) : (i !== d && (s = void 0, c = [n]), (o || t.resolveWith)(s, c))
- }
- },
- l = o ? u : function() {
- try {
- u()
- } catch (n) {
- ge.Deferred.exceptionHook && ge.Deferred.exceptionHook(n, l.stackTrace), e + 1 >= a && (i !== f && (s = void 0, c = [n]), t.rejectWith(s, c))
- }
- };
- e ? l() : (ge.Deferred.getStackHook && (l.stackTrace = ge.Deferred.getStackHook()), n.setTimeout(l))
- }
- }
- var a = 0;
- return ge.Deferred(function(n) {
- t[0][3].add(r(0, n, ge.isFunction(o) ? o : d, n.notifyWith)), t[1][3].add(r(0, n, ge.isFunction(e) ? e : d)), t[2][3].add(r(0, n, ge.isFunction(i) ? i : f))
- }).promise()
- },
- promise: function(e) {
- return null != e ? ge.extend(e, o) : o
- }
- },
- r = {};
- return ge.each(t, function(e, n) {
- var a = n[2],
- s = n[5];
- o[n[1]] = a.add, s && a.add(function() {
- i = s
- }, t[3 - e][2].disable, t[0][2].lock), a.add(n[3].fire), r[n[0]] = function() {
- return r[n[0] + "With"](this === r ? void 0 : this, arguments), this
- }, r[n[0] + "With"] = a.fireWith
- }), o.promise(r), e && e.call(r, r), r
- },
- when: function(e) {
- var t = arguments.length,
- n = t,
- i = Array(n),
- o = se.call(arguments),
- r = ge.Deferred(),
- a = function(e) {
- return function(n) {
- i[e] = this, o[e] = arguments.length > 1 ? se.call(arguments) : n, --t || r.resolveWith(i, o)
- }
- };
- if (t <= 1 && (p(e, r.done(a(n)).resolve, r.reject), "pending" === r.state() || ge.isFunction(o[n] && o[n].then))) return r.then();
- for (; n--;) p(o[n], a(n), r.reject);
- return r.promise()
- }
- });
- var De = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
- ge.Deferred.exceptionHook = function(e, t) {
- n.console && n.console.warn && e && De.test(e.name) && n.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t)
- }, ge.readyException = function(e) {
- n.setTimeout(function() {
- throw e
- })
- };
- var Me = ge.Deferred();
- ge.fn.ready = function(e) {
- return Me.then(e).catch(function(e) {
- ge.readyException(e)
- }), this
- }, ge.extend({
- isReady: !1,
- readyWait: 1,
- holdReady: function(e) {
- e ? ge.readyWait++ : ge.ready(!0)
- },
- ready: function(e) {
- (!0 === e ? --ge.readyWait : ge.isReady) || (ge.isReady = !0, !0 !== e && --ge.readyWait > 0 || Me.resolveWith(re, [ge]))
- }
- }), ge.ready.then = Me.then, "complete" === re.readyState || "loading" !== re.readyState && !re.documentElement.doScroll ? n.setTimeout(ge.ready) : (re.addEventListener("DOMContentLoaded", h), n.addEventListener("load", h));
- var $e = function(e, t, n, i, o, r, a) {
- var s = 0,
- c = e.length,
- u = null == n;
- if ("object" === ge.type(n)) {
- o = !0;
- for (s in n) $e(e, t, s, n[s], !0, r, a)
- } else if (void 0 !== i && (o = !0, ge.isFunction(i) || (a = !0), u && (a ? (t.call(e, i), t = null) : (u = t, t = function(e, t, n) {
- return u.call(ge(e), n)
- })), t))
- for (; s < c; s++) t(e[s], n, a ? i : i.call(e[s], s, t(e[s], n)));
- return o ? e : u ? t.call(e) : c ? t(e[0], n) : r
- },
- Le = function(e) {
- return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType
- };
- m.uid = 1, m.prototype = {
- cache: function(e) {
- var t = e[this.expando];
- return t || (t = {}, Le(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, {
- value: t,
- configurable: !0
- }))), t
- },
- set: function(e, t, n) {
- var i, o = this.cache(e);
- if ("string" == typeof t) o[ge.camelCase(t)] = n;
- else
- for (i in t) o[ge.camelCase(i)] = t[i];
- return o
- },
- get: function(e, t) {
- return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][ge.camelCase(t)]
- },
- access: function(e, t, n) {
- return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t)
- },
- remove: function(e, t) {
- var n, i = e[this.expando];
- if (void 0 !== i) {
- if (void 0 !== t) {
- ge.isArray(t) ? t = t.map(ge.camelCase) : (t = ge.camelCase(t), t = t in i ? [t] : t.match(Oe) || []), n = t.length;
- for (; n--;) delete i[t[n]]
- }(void 0 === t || ge.isEmptyObject(i)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando])
- }
- },
- hasData: function(e) {
- var t = e[this.expando];
- return void 0 !== t && !ge.isEmptyObject(t)
- }
- };
- var Pe = new m,
- Fe = new m,
- Re = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- qe = /[A-Z]/g;
- ge.extend({
- hasData: function(e) {
- return Fe.hasData(e) || Pe.hasData(e)
- },
- data: function(e, t, n) {
- return Fe.access(e, t, n)
- },
- removeData: function(e, t) {
- Fe.remove(e, t)
- },
- _data: function(e, t, n) {
- return Pe.access(e, t, n)
- },
- _removeData: function(e, t) {
- Pe.remove(e, t)
- }
- }), ge.fn.extend({
- data: function(e, t) {
- var n, i, o, r = this[0],
- a = r && r.attributes;
- if (void 0 === e) {
- if (this.length && (o = Fe.get(r), 1 === r.nodeType && !Pe.get(r, "hasDataAttrs"))) {
- for (n = a.length; n--;) a[n] && (i = a[n].name, 0 === i.indexOf("data-") && (i = ge.camelCase(i.slice(5)), g(r, i, o[i])));
- Pe.set(r, "hasDataAttrs", !0)
- }
- return o
- }
- return "object" == typeof e ? this.each(function() {
- Fe.set(this, e)
- }) : $e(this, function(t) {
- var n;
- if (r && void 0 === t) {
- if (void 0 !== (n = Fe.get(r, e))) return n;
- if (void 0 !== (n = g(r, e))) return n
- } else this.each(function() {
- Fe.set(this, e, t)
- })
- }, null, t, arguments.length > 1, null, !0)
- },
- removeData: function(e) {
- return this.each(function() {
- Fe.remove(this, e)
- })
- }
- }), ge.extend({
- queue: function(e, t, n) {
- var i;
- if (e) return t = (t || "fx") + "queue", i = Pe.get(e, t), n && (!i || ge.isArray(n) ? i = Pe.access(e, t, ge.makeArray(n)) : i.push(n)), i || []
- },
- dequeue: function(e, t) {
- t = t || "fx";
- var n = ge.queue(e, t),
- i = n.length,
- o = n.shift(),
- r = ge._queueHooks(e, t),
- a = function() {
- ge.dequeue(e, t)
- };
- "inprogress" === o && (o = n.shift(), i--), o && ("fx" === t && n.unshift("inprogress"), delete r.stop, o.call(e, a, r)), !i && r && r.empty.fire()
- },
- _queueHooks: function(e, t) {
- var n = t + "queueHooks";
- return Pe.get(e, n) || Pe.access(e, n, {
- empty: ge.Callbacks("once memory").add(function() {
- Pe.remove(e, [t + "queue", n])
- })
- })
- }
- }), ge.fn.extend({
- queue: function(e, t) {
- var n = 2;
- return "string" != typeof e && (t = e, e = "fx", n--), arguments.length < n ? ge.queue(this[0], e) : void 0 === t ? this : this.each(function() {
- var n = ge.queue(this, e, t);
- ge._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && ge.dequeue(this, e)
- })
- },
- dequeue: function(e) {
- return this.each(function() {
- ge.dequeue(this, e)
- })
- },
- clearQueue: function(e) {
- return this.queue(e || "fx", [])
- },
- promise: function(e, t) {
- var n, i = 1,
- o = ge.Deferred(),
- r = this,
- a = this.length,
- s = function() {
- --i || o.resolveWith(r, [r])
- };
- for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; a--;)(n = Pe.get(r[a], e + "queueHooks")) && n.empty && (i++, n.empty.add(s));
- return s(), o.promise(t)
- }
- });
- var Ue = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
- He = new RegExp("^(?:([+-])=|)(" + Ue + ")([a-z%]*)$", "i"),
- Ve = ["Top", "Right", "Bottom", "Left"],
- Be = function(e, t) {
- return e = t || e, "none" === e.style.display || "" === e.style.display && ge.contains(e.ownerDocument, e) && "none" === ge.css(e, "display")
- },
- ze = function(e, t, n, i) {
- var o, r, a = {};
- for (r in t) a[r] = e.style[r], e.style[r] = t[r];
- o = n.apply(e, i || []);
- for (r in t) e.style[r] = a[r];
- return o
- },
- We = {};
- ge.fn.extend({
- show: function() {
- return w(this, !0)
- },
- hide: function() {
- return w(this)
- },
- toggle: function(e) {
- return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
- Be(this) ? ge(this).show() : ge(this).hide()
- })
- }
- });
- var Je = /^(?:checkbox|radio)$/i,
- Ye = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i,
- Ge = /^$|\/(?:java|ecma)script/i,
- Xe = {
- option: [1, "<select multiple='multiple'>", "</select>"],
- thead: [1, "<table>", "</table>"],
- col: [2, "<table><colgroup>", "</colgroup></table>"],
- tr: [2, "<table><tbody>", "</tbody></table>"],
- td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
- _default: [0, "", ""]
- };
- Xe.optgroup = Xe.option, Xe.tbody = Xe.tfoot = Xe.colgroup = Xe.caption = Xe.thead, Xe.th = Xe.td;
- var Ke = /<|&#?\w+;/;
- ! function() {
- var e = re.createDocumentFragment(),
- t = e.appendChild(re.createElement("div")),
- n = re.createElement("input");
- n.setAttribute("type", "radio"), n.setAttribute("checked", "checked"), n.setAttribute("name", "t"), t.appendChild(n), ve.checkClone = t.cloneNode(!0).cloneNode(!0).lastChild.checked, t.innerHTML = "<textarea>x</textarea>", ve.noCloneChecked = !!t.cloneNode(!0).lastChild.defaultValue
- }();
- var Qe = re.documentElement,
- Ze = /^key/,
- et = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- tt = /^([^.]*)(?:\.(.+)|)/;
- ge.event = {
- global: {},
- add: function(e, t, n, i, o) {
- var r, a, s, c, u, l, d, f, p, h, m, v = Pe.get(e);
- if (v)
- for (n.handler && (r = n, n = r.handler, o = r.selector), o && ge.find.matchesSelector(Qe, o), n.guid || (n.guid = ge.guid++), (c = v.events) || (c = v.events = {}), (a = v.handle) || (a = v.handle = function(t) {
- return void 0 !== ge && ge.event.triggered !== t.type ? ge.event.dispatch.apply(e, arguments) : void 0
- }), t = (t || "").match(Oe) || [""], u = t.length; u--;) s = tt.exec(t[u]) || [], p = m = s[1], h = (s[2] || "").split(".").sort(), p && (d = ge.event.special[p] || {}, p = (o ? d.delegateType : d.bindType) || p, d = ge.event.special[p] || {}, l = ge.extend({
- type: p,
- origType: m,
- data: i,
- handler: n,
- guid: n.guid,
- selector: o,
- needsContext: o && ge.expr.match.needsContext.test(o),
- namespace: h.join(".")
- }, r), (f = c[p]) || (f = c[p] = [], f.delegateCount = 0, d.setup && !1 !== d.setup.call(e, i, h, a) || e.addEventListener && e.addEventListener(p, a)), d.add && (d.add.call(e, l), l.handler.guid || (l.handler.guid = n.guid)), o ? f.splice(f.delegateCount++, 0, l) : f.push(l), ge.event.global[p] = !0)
- },
- remove: function(e, t, n, i, o) {
- var r, a, s, c, u, l, d, f, p, h, m, v = Pe.hasData(e) && Pe.get(e);
- if (v && (c = v.events)) {
- for (t = (t || "").match(Oe) || [""], u = t.length; u--;)
- if (s = tt.exec(t[u]) || [], p = m = s[1], h = (s[2] || "").split(".").sort(), p) {
- for (d = ge.event.special[p] || {}, p = (i ? d.delegateType : d.bindType) || p, f = c[p] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), a = r = f.length; r--;) l = f[r], !o && m !== l.origType || n && n.guid !== l.guid || s && !s.test(l.namespace) || i && i !== l.selector && ("**" !== i || !l.selector) || (f.splice(r, 1), l.selector && f.delegateCount--, d.remove && d.remove.call(e, l));
- a && !f.length && (d.teardown && !1 !== d.teardown.call(e, h, v.handle) || ge.removeEvent(e, p, v.handle), delete c[p])
- } else
- for (p in c) ge.event.remove(e, p + t[u], n, i, !0);
- ge.isEmptyObject(c) && Pe.remove(e, "handle events")
- }
- },
- dispatch: function(e) {
- var t, n, i, o, r, a, s = ge.event.fix(e),
- c = new Array(arguments.length),
- u = (Pe.get(this, "events") || {})[s.type] || [],
- l = ge.event.special[s.type] || {};
- for (c[0] = s, t = 1; t < arguments.length; t++) c[t] = arguments[t];
- if (s.delegateTarget = this, !l.preDispatch || !1 !== l.preDispatch.call(this, s)) {
- for (a = ge.event.handlers.call(this, s, u), t = 0;
- (o = a[t++]) && !s.isPropagationStopped();)
- for (s.currentTarget = o.elem, n = 0;
- (r = o.handlers[n++]) && !s.isImmediatePropagationStopped();) s.rnamespace && !s.rnamespace.test(r.namespace) || (s.handleObj = r, s.data = r.data, void 0 !== (i = ((ge.event.special[r.origType] || {}).handle || r.handler).apply(o.elem, c)) && !1 === (s.result = i) && (s.preventDefault(), s.stopPropagation()));
- return l.postDispatch && l.postDispatch.call(this, s), s.result
- }
- },
- handlers: function(e, t) {
- var n, i, o, r, a, s = [],
- c = t.delegateCount,
- u = e.target;
- if (c && u.nodeType && !("click" === e.type && e.button >= 1))
- for (; u !== this; u = u.parentNode || this)
- if (1 === u.nodeType && ("click" !== e.type || !0 !== u.disabled)) {
- for (r = [], a = {}, n = 0; n < c; n++) i = t[n], o = i.selector + " ", void 0 === a[o] && (a[o] = i.needsContext ? ge(o, this).index(u) > -1 : ge.find(o, this, null, [u]).length), a[o] && r.push(i);
- r.length && s.push({
- elem: u,
- handlers: r
- })
- }
- return u = this, c < t.length && s.push({
- elem: u,
- handlers: t.slice(c)
- }), s
- },
- addProp: function(e, t) {
- Object.defineProperty(ge.Event.prototype, e, {
- enumerable: !0,
- configurable: !0,
- get: ge.isFunction(t) ? function() {
- if (this.originalEvent) return t(this.originalEvent)
- } : function() {
- if (this.originalEvent) return this.originalEvent[e]
- },
- set: function(t) {
- Object.defineProperty(this, e, {
- enumerable: !0,
- configurable: !0,
- writable: !0,
- value: t
- })
- }
- })
- },
- fix: function(e) {
- return e[ge.expando] ? e : new ge.Event(e)
- },
- special: {
- load: {
- noBubble: !0
- },
- focus: {
- trigger: function() {
- if (this !== E() && this.focus) return this.focus(), !1
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if (this === E() && this.blur) return this.blur(), !1
- },
- delegateType: "focusout"
- },
- click: {
- trigger: function() {
- if ("checkbox" === this.type && this.click && ge.nodeName(this, "input")) return this.click(), !1
- },
- _default: function(e) {
- return ge.nodeName(e.target, "a")
- }
- },
- beforeunload: {
- postDispatch: function(e) {
- void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)
- }
- }
- }
- }, ge.removeEvent = function(e, t, n) {
- e.removeEventListener && e.removeEventListener(t, n)
- }, ge.Event = function(e, t) {
- if (!(this instanceof ge.Event)) return new ge.Event(e, t);
- e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? j : C, this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget) : this.type = e, t && ge.extend(this, t), this.timeStamp = e && e.timeStamp || ge.now(), this[ge.expando] = !0
- }, ge.Event.prototype = {
- constructor: ge.Event,
- isDefaultPrevented: C,
- isPropagationStopped: C,
- isImmediatePropagationStopped: C,
- isSimulated: !1,
- preventDefault: function() {
- var e = this.originalEvent;
- this.isDefaultPrevented = j, e && !this.isSimulated && e.preventDefault()
- },
- stopPropagation: function() {
- var e = this.originalEvent;
- this.isPropagationStopped = j, e && !this.isSimulated && e.stopPropagation()
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
- this.isImmediatePropagationStopped = j, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation()
- }
- }, ge.each({
- altKey: !0,
- bubbles: !0,
- cancelable: !0,
- changedTouches: !0,
- ctrlKey: !0,
- detail: !0,
- eventPhase: !0,
- metaKey: !0,
- pageX: !0,
- pageY: !0,
- shiftKey: !0,
- view: !0,
- char: !0,
- charCode: !0,
- key: !0,
- keyCode: !0,
- button: !0,
- buttons: !0,
- clientX: !0,
- clientY: !0,
- offsetX: !0,
- offsetY: !0,
- pointerId: !0,
- pointerType: !0,
- screenX: !0,
- screenY: !0,
- targetTouches: !0,
- toElement: !0,
- touches: !0,
- which: function(e) {
- var t = e.button;
- return null == e.which && Ze.test(e.type) ? null != e.charCode ? e.charCode : e.keyCode : !e.which && void 0 !== t && et.test(e.type) ? 1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0 : e.which
- }
- }, ge.event.addProp), ge.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
- }, function(e, t) {
- ge.event.special[e] = {
- delegateType: t,
- bindType: t,
- handle: function(e) {
- var n, i = this,
- o = e.relatedTarget,
- r = e.handleObj;
- return o && (o === i || ge.contains(i, o)) || (e.type = r.origType, n = r.handler.apply(this, arguments), e.type = t), n
- }
- }
- }), ge.fn.extend({
- on: function(e, t, n, i) {
- return N(this, e, t, n, i)
- },
- one: function(e, t, n, i) {
- return N(this, e, t, n, i, 1)
- },
- off: function(e, t, n) {
- var i, o;
- if (e && e.preventDefault && e.handleObj) return i = e.handleObj, ge(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
- if ("object" == typeof e) {
- for (o in e) this.off(o, t, e[o]);
- return this
- }
- return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = C), this.each(function() {
- ge.event.remove(this, e, n, t)
- })
- }
- });
- var nt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
- it = /<script|<style|<link/i,
- ot = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rt = /^true\/(.*)/,
- at = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
- ge.extend({
- htmlPrefilter: function(e) {
- return e.replace(nt, "<$1></$2>")
- },
- clone: function(e, t, n) {
- var i, o, r, a, s = e.cloneNode(!0),
- c = ge.contains(e.ownerDocument, e);
- if (!(ve.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || ge.isXMLDoc(e)))
- for (a = _(s), r = _(e), i = 0, o = r.length; i < o; i++) O(r[i], a[i]);
- if (t)
- if (n)
- for (r = r || _(e), a = a || _(s), i = 0, o = r.length; i < o; i++) I(r[i], a[i]);
- else I(e, s);
- return a = _(s, "script"), a.length > 0 && x(a, !c && _(e, "script")), s
- },
- cleanData: function(e) {
- for (var t, n, i, o = ge.event.special, r = 0; void 0 !== (n = e[r]); r++)
- if (Le(n)) {
- if (t = n[Pe.expando]) {
- if (t.events)
- for (i in t.events) o[i] ? ge.event.remove(n, i) : ge.removeEvent(n, i, t.handle);
- n[Pe.expando] = void 0
- }
- n[Fe.expando] && (n[Fe.expando] = void 0)
- }
- }
- }), ge.fn.extend({
- detach: function(e) {
- return M(this, e, !0)
- },
- remove: function(e) {
- return M(this, e)
- },
- text: function(e) {
- return $e(this, function(e) {
- return void 0 === e ? ge.text(this) : this.empty().each(function() {
- 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = e)
- })
- }, null, e, arguments.length)
- },
- append: function() {
- return D(this, arguments, function(e) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- S(this, e).appendChild(e)
- }
- })
- },
- prepend: function() {
- return D(this, arguments, function(e) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var t = S(this, e);
- t.insertBefore(e, t.firstChild)
- }
- })
- },
- before: function() {
- return D(this, arguments, function(e) {
- this.parentNode && this.parentNode.insertBefore(e, this)
- })
- },
- after: function() {
- return D(this, arguments, function(e) {
- this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
- })
- },
- empty: function() {
- for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (ge.cleanData(_(e, !1)), e.textContent = "");
- return this
- },
- clone: function(e, t) {
- return e = null != e && e, t = null == t ? e : t, this.map(function() {
- return ge.clone(this, e, t)
- })
- },
- html: function(e) {
- return $e(this, function(e) {
- var t = this[0] || {},
- n = 0,
- i = this.length;
- if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
- if ("string" == typeof e && !it.test(e) && !Xe[(Ye.exec(e) || ["", ""])[1].toLowerCase()]) {
- e = ge.htmlPrefilter(e);
- try {
- for (; n < i; n++) t = this[n] || {}, 1 === t.nodeType && (ge.cleanData(_(t, !1)), t.innerHTML = e);
- t = 0
- } catch (e) {}
- }
- t && this.empty().append(e)
- }, null, e, arguments.length)
- },
- replaceWith: function() {
- var e = [];
- return D(this, arguments, function(t) {
- var n = this.parentNode;
- ge.inArray(this, e) < 0 && (ge.cleanData(_(this)), n && n.replaceChild(t, this))
- }, e)
- }
- }), ge.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
- }, function(e, t) {
- ge.fn[e] = function(e) {
- for (var n, i = [], o = ge(e), r = o.length - 1, a = 0; a <= r; a++) n = a === r ? this : this.clone(!0), ge(o[a])[t](n), ue.apply(i, n.get());
- return this.pushStack(i)
- }
- });
- var st = /^margin/,
- ct = new RegExp("^(" + Ue + ")(?!px)[a-z%]+$", "i"),
- ut = function(e) {
- var t = e.ownerDocument.defaultView;
- return t && t.opener || (t = n), t.getComputedStyle(e)
- };
- ! function() {
- function e() {
- if (s) {
- s.style.cssText = "box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%", s.innerHTML = "", Qe.appendChild(a);
- var e = n.getComputedStyle(s);
- t = "1%" !== e.top, r = "2px" === e.marginLeft, i = "4px" === e.width, s.style.marginRight = "50%", o = "4px" === e.marginRight, Qe.removeChild(a), s = null
- }
- }
- var t, i, o, r, a = re.createElement("div"),
- s = re.createElement("div");
- s.style && (s.style.backgroundClip = "content-box", s.cloneNode(!0).style.backgroundClip = "", ve.clearCloneStyle = "content-box" === s.style.backgroundClip, a.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", a.appendChild(s), ge.extend(ve, {
- pixelPosition: function() {
- return e(), t
- },
- boxSizingReliable: function() {
- return e(), i
- },
- pixelMarginRight: function() {
- return e(), o
- },
- reliableMarginLeft: function() {
- return e(), r
- }
- }))
- }();
- var lt = /^(none|table(?!-c[ea]).+)/,
- dt = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- },
- ft = {
- letterSpacing: "0",
- fontWeight: "400"
- },
- pt = ["Webkit", "Moz", "ms"],
- ht = re.createElement("div").style;
- ge.extend({
- cssHooks: {
- opacity: {
- get: function(e, t) {
- if (t) {
- var n = $(e, "opacity");
- return "" === n ? "1" : n
- }
- }
- }
- },
- cssNumber: {
- animationIterationCount: !0,
- columnCount: !0,
- fillOpacity: !0,
- flexGrow: !0,
- flexShrink: !0,
- fontWeight: !0,
- lineHeight: !0,
- opacity: !0,
- order: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {
- float: "cssFloat"
- },
- style: function(e, t, n, i) {
- if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
- var o, r, a, s = ge.camelCase(t),
- c = e.style;
- if (t = ge.cssProps[s] || (ge.cssProps[s] = P(s) || s), a = ge.cssHooks[t] || ge.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (o = a.get(e, !1, i)) ? o : c[t];
- r = typeof n, "string" === r && (o = He.exec(n)) && o[1] && (n = y(e, t, o), r = "number"), null != n && n === n && ("number" === r && (n += o && o[3] || (ge.cssNumber[s] ? "" : "px")), ve.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (c[t] = "inherit"), a && "set" in a && void 0 === (n = a.set(e, n, i)) || (c[t] = n))
- }
- },
- css: function(e, t, n, i) {
- var o, r, a, s = ge.camelCase(t);
- return t = ge.cssProps[s] || (ge.cssProps[s] = P(s) || s), a = ge.cssHooks[t] || ge.cssHooks[s], a && "get" in a && (o = a.get(e, !0, n)), void 0 === o && (o = $(e, t, i)), "normal" === o && t in ft && (o = ft[t]), "" === n || n ? (r = parseFloat(o), !0 === n || isFinite(r) ? r || 0 : o) : o
- }
- }), ge.each(["height", "width"], function(e, t) {
- ge.cssHooks[t] = {
- get: function(e, n, i) {
- if (n) return !lt.test(ge.css(e, "display")) || e.getClientRects().length && e.getBoundingClientRect().width ? q(e, t, i) : ze(e, dt, function() {
- return q(e, t, i)
- })
- },
- set: function(e, n, i) {
- var o, r = i && ut(e),
- a = i && R(e, t, i, "border-box" === ge.css(e, "boxSizing", !1, r), r);
- return a && (o = He.exec(n)) && "px" !== (o[3] || "px") && (e.style[t] = n, n = ge.css(e, t)), F(e, n, a)
- }
- }
- }), ge.cssHooks.marginLeft = L(ve.reliableMarginLeft, function(e, t) {
- if (t) return (parseFloat($(e, "marginLeft")) || e.getBoundingClientRect().left - ze(e, {
- marginLeft: 0
- }, function() {
- return e.getBoundingClientRect().left
- })) + "px"
- }), ge.each({
- margin: "",
- padding: "",
- border: "Width"
- }, function(e, t) {
- ge.cssHooks[e + t] = {
- expand: function(n) {
- for (var i = 0, o = {}, r = "string" == typeof n ? n.split(" ") : [n]; i < 4; i++) o[e + Ve[i] + t] = r[i] || r[i - 2] || r[0];
- return o
- }
- }, st.test(e) || (ge.cssHooks[e + t].set = F)
- }), ge.fn.extend({
- css: function(e, t) {
- return $e(this, function(e, t, n) {
- var i, o, r = {},
- a = 0;
- if (ge.isArray(t)) {
- for (i = ut(e), o = t.length; a < o; a++) r[t[a]] = ge.css(e, t[a], !1, i);
- return r
- }
- return void 0 !== n ? ge.style(e, t, n) : ge.css(e, t)
- }, e, t, arguments.length > 1)
- }
- }), ge.Tween = U, U.prototype = {
- constructor: U,
- init: function(e, t, n, i, o, r) {
- this.elem = e, this.prop = n, this.easing = o || ge.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = i, this.unit = r || (ge.cssNumber[n] ? "" : "px")
- },
- cur: function() {
- var e = U.propHooks[this.prop];
- return e && e.get ? e.get(this) : U.propHooks._default.get(this)
- },
- run: function(e) {
- var t, n = U.propHooks[this.prop];
- return this.options.duration ? this.pos = t = ge.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : U.propHooks._default.set(this), this
- }
- }, U.prototype.init.prototype = U.prototype, U.propHooks = {
- _default: {
- get: function(e) {
- var t;
- return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = ge.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0)
- },
- set: function(e) {
- ge.fx.step[e.prop] ? ge.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[ge.cssProps[e.prop]] && !ge.cssHooks[e.prop] ? e.elem[e.prop] = e.now : ge.style(e.elem, e.prop, e.now + e.unit)
- }
- }
- }, U.propHooks.scrollTop = U.propHooks.scrollLeft = {
- set: function(e) {
- e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
- }
- }, ge.easing = {
- linear: function(e) {
- return e
- },
- swing: function(e) {
- return .5 - Math.cos(e * Math.PI) / 2
- },
- _default: "swing"
- }, ge.fx = U.prototype.init, ge.fx.step = {};
- var mt, vt, gt = /^(?:toggle|show|hide)$/,
- yt = /queueHooks$/;
- ge.Animation = ge.extend(Y, {
- tweeners: {
- "*": [function(e, t) {
- var n = this.createTween(e, t);
- return y(n.elem, e, He.exec(t), n), n
- }]
- },
- tweener: function(e, t) {
- ge.isFunction(e) ? (t = e, e = ["*"]) : e = e.match(Oe);
- for (var n, i = 0, o = e.length; i < o; i++) n = e[i], Y.tweeners[n] = Y.tweeners[n] || [], Y.tweeners[n].unshift(t)
- },
- prefilters: [W],
- prefilter: function(e, t) {
- t ? Y.prefilters.unshift(e) : Y.prefilters.push(e)
- }
- }), ge.speed = function(e, t, n) {
- var i = e && "object" == typeof e ? ge.extend({}, e) : {
- complete: n || !n && t || ge.isFunction(e) && e,
- duration: e,
- easing: n && t || t && !ge.isFunction(t) && t
- };
- return ge.fx.off || re.hidden ? i.duration = 0 : "number" != typeof i.duration && (i.duration in ge.fx.speeds ? i.duration = ge.fx.speeds[i.duration] : i.duration = ge.fx.speeds._default), null != i.queue && !0 !== i.queue || (i.queue = "fx"), i.old = i.complete, i.complete = function() {
- ge.isFunction(i.old) && i.old.call(this), i.queue && ge.dequeue(this, i.queue)
- }, i
- }, ge.fn.extend({
- fadeTo: function(e, t, n, i) {
- return this.filter(Be).css("opacity", 0).show().end().animate({
- opacity: t
- }, e, n, i)
- },
- animate: function(e, t, n, i) {
- var o = ge.isEmptyObject(e),
- r = ge.speed(t, n, i),
- a = function() {
- var t = Y(this, ge.extend({}, e), r);
- (o || Pe.get(this, "finish")) && t.stop(!0)
- };
- return a.finish = a, o || !1 === r.queue ? this.each(a) : this.queue(r.queue, a)
- },
- stop: function(e, t, n) {
- var i = function(e) {
- var t = e.stop;
- delete e.stop, t(n)
- };
- return "string" != typeof e && (n = t, t = e, e = void 0), t && !1 !== e && this.queue(e || "fx", []), this.each(function() {
- var t = !0,
- o = null != e && e + "queueHooks",
- r = ge.timers,
- a = Pe.get(this);
- if (o) a[o] && a[o].stop && i(a[o]);
- else
- for (o in a) a[o] && a[o].stop && yt.test(o) && i(a[o]);
- for (o = r.length; o--;) r[o].elem !== this || null != e && r[o].queue !== e || (r[o].anim.stop(n), t = !1, r.splice(o, 1));
- !t && n || ge.dequeue(this, e)
- })
- },
- finish: function(e) {
- return !1 !== e && (e = e || "fx"), this.each(function() {
- var t, n = Pe.get(this),
- i = n[e + "queue"],
- o = n[e + "queueHooks"],
- r = ge.timers,
- a = i ? i.length : 0;
- for (n.finish = !0, ge.queue(this, e, []), o && o.stop && o.stop.call(this, !0), t = r.length; t--;) r[t].elem === this && r[t].queue === e && (r[t].anim.stop(!0), r.splice(t, 1));
- for (t = 0; t < a; t++) i[t] && i[t].finish && i[t].finish.call(this);
- delete n.finish
- })
- }
- }), ge.each(["toggle", "show", "hide"], function(e, t) {
- var n = ge.fn[t];
- ge.fn[t] = function(e, i, o) {
- return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(B(t, !0), e, i, o)
- }
- }), ge.each({
- slideDown: B("show"),
- slideUp: B("hide"),
- slideToggle: B("toggle"),
- fadeIn: {
- opacity: "show"
- },
- fadeOut: {
- opacity: "hide"
- },
- fadeToggle: {
- opacity: "toggle"
- }
- }, function(e, t) {
- ge.fn[e] = function(e, n, i) {
- return this.animate(t, e, n, i)
- }
- }), ge.timers = [], ge.fx.tick = function() {
- var e, t = 0,
- n = ge.timers;
- for (mt = ge.now(); t < n.length; t++)(e = n[t])() || n[t] !== e || n.splice(t--, 1);
- n.length || ge.fx.stop(), mt = void 0
- }, ge.fx.timer = function(e) {
- ge.timers.push(e), e() ? ge.fx.start() : ge.timers.pop()
- }, ge.fx.interval = 13, ge.fx.start = function() {
- vt || (vt = n.requestAnimationFrame ? n.requestAnimationFrame(H) : n.setInterval(ge.fx.tick, ge.fx.interval))
- }, ge.fx.stop = function() {
- n.cancelAnimationFrame ? n.cancelAnimationFrame(vt) : n.clearInterval(vt), vt = null
- }, ge.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- }, ge.fn.delay = function(e, t) {
- return e = ge.fx ? ge.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, i) {
- var o = n.setTimeout(t, e);
- i.stop = function() {
- n.clearTimeout(o)
- }
- })
- },
- function() {
- var e = re.createElement("input"),
- t = re.createElement("select"),
- n = t.appendChild(re.createElement("option"));
- e.type = "checkbox", ve.checkOn = "" !== e.value, ve.optSelected = n.selected, e = re.createElement("input"), e.value = "t", e.type = "radio", ve.radioValue = "t" === e.value
- }();
- var bt, wt = ge.expr.attrHandle;
- ge.fn.extend({
- attr: function(e, t) {
- return $e(this, ge.attr, e, t, arguments.length > 1)
- },
- removeAttr: function(e) {
- return this.each(function() {
- ge.removeAttr(this, e)
- })
- }
- }), ge.extend({
- attr: function(e, t, n) {
- var i, o, r = e.nodeType;
- if (3 !== r && 8 !== r && 2 !== r) return void 0 === e.getAttribute ? ge.prop(e, t, n) : (1 === r && ge.isXMLDoc(e) || (o = ge.attrHooks[t.toLowerCase()] || (ge.expr.match.bool.test(t) ? bt : void 0)), void 0 !== n ? null === n ? void ge.removeAttr(e, t) : o && "set" in o && void 0 !== (i = o.set(e, n, t)) ? i : (e.setAttribute(t, n + ""), n) : o && "get" in o && null !== (i = o.get(e, t)) ? i : (i = ge.find.attr(e, t), null == i ? void 0 : i))
- },
- attrHooks: {
- type: {
- set: function(e, t) {
- if (!ve.radioValue && "radio" === t && ge.nodeName(e, "input")) {
- var n = e.value;
- return e.setAttribute("type", t), n && (e.value = n), t
- }
- }
- }
- },
- removeAttr: function(e, t) {
- var n, i = 0,
- o = t && t.match(Oe);
- if (o && 1 === e.nodeType)
- for (; n = o[i++];) e.removeAttribute(n)
- }
- }), bt = {
- set: function(e, t, n) {
- return !1 === t ? ge.removeAttr(e, n) : e.setAttribute(n, n), n
- }
- }, ge.each(ge.expr.match.bool.source.match(/\w+/g), function(e, t) {
- var n = wt[t] || ge.find.attr;
- wt[t] = function(e, t, i) {
- var o, r, a = t.toLowerCase();
- return i || (r = wt[a], wt[a] = o, o = null != n(e, t, i) ? a : null, wt[a] = r), o
- }
- });
- var _t = /^(?:input|select|textarea|button)$/i,
- xt = /^(?:a|area)$/i;
- ge.fn.extend({
- prop: function(e, t) {
- return $e(this, ge.prop, e, t, arguments.length > 1)
- },
- removeProp: function(e) {
- return this.each(function() {
- delete this[ge.propFix[e] || e]
- })
- }
- }), ge.extend({
- prop: function(e, t, n) {
- var i, o, r = e.nodeType;
- if (3 !== r && 8 !== r && 2 !== r) return 1 === r && ge.isXMLDoc(e) || (t = ge.propFix[t] || t, o = ge.propHooks[t]), void 0 !== n ? o && "set" in o && void 0 !== (i = o.set(e, n, t)) ? i : e[t] = n : o && "get" in o && null !== (i = o.get(e, t)) ? i : e[t]
- },
- propHooks: {
- tabIndex: {
- get: function(e) {
- var t = ge.find.attr(e, "tabindex");
- return t ? parseInt(t, 10) : _t.test(e.nodeName) || xt.test(e.nodeName) && e.href ? 0 : -1
- }
- }
- },
- propFix: {
- for: "htmlFor",
- class: "className"
- }
- }), ve.optSelected || (ge.propHooks.selected = {
- get: function(e) {
- var t = e.parentNode;
- return t && t.parentNode && t.parentNode.selectedIndex, null
- },
- set: function(e) {
- var t = e.parentNode;
- t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex)
- }
- }), ge.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
- ge.propFix[this.toLowerCase()] = this
- }), ge.fn.extend({
- addClass: function(e) {
- var t, n, i, o, r, a, s, c = 0;
- if (ge.isFunction(e)) return this.each(function(t) {
- ge(this).addClass(e.call(this, t, X(this)))
- });
- if ("string" == typeof e && e)
- for (t = e.match(Oe) || []; n = this[c++];)
- if (o = X(n), i = 1 === n.nodeType && " " + G(o) + " ") {
- for (a = 0; r = t[a++];) i.indexOf(" " + r + " ") < 0 && (i += r + " ");
- s = G(i), o !== s && n.setAttribute("class", s)
- }
- return this
- },
- removeClass: function(e) {
- var t, n, i, o, r, a, s, c = 0;
- if (ge.isFunction(e)) return this.each(function(t) {
- ge(this).removeClass(e.call(this, t, X(this)))
- });
- if (!arguments.length) return this.attr("class", "");
- if ("string" == typeof e && e)
- for (t = e.match(Oe) || []; n = this[c++];)
- if (o = X(n), i = 1 === n.nodeType && " " + G(o) + " ") {
- for (a = 0; r = t[a++];)
- for (; i.indexOf(" " + r + " ") > -1;) i = i.replace(" " + r + " ", " ");
- s = G(i), o !== s && n.setAttribute("class", s)
- }
- return this
- },
- toggleClass: function(e, t) {
- var n = typeof e;
- return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : ge.isFunction(e) ? this.each(function(n) {
- ge(this).toggleClass(e.call(this, n, X(this), t), t)
- }) : this.each(function() {
- var t, i, o, r;
- if ("string" === n)
- for (i = 0, o = ge(this), r = e.match(Oe) || []; t = r[i++];) o.hasClass(t) ? o.removeClass(t) : o.addClass(t);
- else void 0 !== e && "boolean" !== n || (t = X(this), t && Pe.set(this, "__className__", t), this.setAttribute && this.setAttribute("class", t || !1 === e ? "" : Pe.get(this, "__className__") || ""))
- })
- },
- hasClass: function(e) {
- var t, n, i = 0;
- for (t = " " + e + " "; n = this[i++];)
- if (1 === n.nodeType && (" " + G(X(n)) + " ").indexOf(t) > -1) return !0;
- return !1
- }
- });
- var kt = /\r/g;
- ge.fn.extend({
- val: function(e) {
- var t, n, i, o = this[0]; {
- if (arguments.length) return i = ge.isFunction(e), this.each(function(n) {
- var o;
- 1 === this.nodeType && (o = i ? e.call(this, n, ge(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : ge.isArray(o) && (o = ge.map(o, function(e) {
- return null == e ? "" : e + ""
- })), (t = ge.valHooks[this.type] || ge.valHooks[this.nodeName.toLowerCase()]) && "set" in t && void 0 !== t.set(this, o, "value") || (this.value = o))
- });
- if (o) return (t = ge.valHooks[o.type] || ge.valHooks[o.nodeName.toLowerCase()]) && "get" in t && void 0 !== (n = t.get(o, "value")) ? n : (n = o.value, "string" == typeof n ? n.replace(kt, "") : null == n ? "" : n)
- }
- }
- }), ge.extend({
- valHooks: {
- option: {
- get: function(e) {
- var t = ge.find.attr(e, "value");
- return null != t ? t : G(ge.text(e))
- }
- },
- select: {
- get: function(e) {
- var t, n, i, o = e.options,
- r = e.selectedIndex,
- a = "select-one" === e.type,
- s = a ? null : [],
- c = a ? r + 1 : o.length;
- for (i = r < 0 ? c : a ? r : 0; i < c; i++)
- if (n = o[i], (n.selected || i === r) && !n.disabled && (!n.parentNode.disabled || !ge.nodeName(n.parentNode, "optgroup"))) {
- if (t = ge(n).val(), a) return t;
- s.push(t)
- }
- return s
- },
- set: function(e, t) {
- for (var n, i, o = e.options, r = ge.makeArray(t), a = o.length; a--;) i = o[a], (i.selected = ge.inArray(ge.valHooks.option.get(i), r) > -1) && (n = !0);
- return n || (e.selectedIndex = -1), r
- }
- }
- }
- }), ge.each(["radio", "checkbox"], function() {
- ge.valHooks[this] = {
- set: function(e, t) {
- if (ge.isArray(t)) return e.checked = ge.inArray(ge(e).val(), t) > -1
- }
- }, ve.checkOn || (ge.valHooks[this].get = function(e) {
- return null === e.getAttribute("value") ? "on" : e.value
- })
- });
- var jt = /^(?:focusinfocus|focusoutblur)$/;
- ge.extend(ge.event, {
- trigger: function(e, t, i, o) {
- var r, a, s, c, u, l, d, f = [i || re],
- p = pe.call(e, "type") ? e.type : e,
- h = pe.call(e, "namespace") ? e.namespace.split(".") : [];
- if (a = s = i = i || re, 3 !== i.nodeType && 8 !== i.nodeType && !jt.test(p + ge.event.triggered) && (p.indexOf(".") > -1 && (h = p.split("."), p = h.shift(), h.sort()), u = p.indexOf(":") < 0 && "on" + p, e = e[ge.expando] ? e : new ge.Event(p, "object" == typeof e && e), e.isTrigger = o ? 2 : 3, e.namespace = h.join("."), e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = i), t = null == t ? [e] : ge.makeArray(t, [e]), d = ge.event.special[p] || {}, o || !d.trigger || !1 !== d.trigger.apply(i, t))) {
- if (!o && !d.noBubble && !ge.isWindow(i)) {
- for (c = d.delegateType || p, jt.test(c + p) || (a = a.parentNode); a; a = a.parentNode) f.push(a), s = a;
- s === (i.ownerDocument || re) && f.push(s.defaultView || s.parentWindow || n)
- }
- for (r = 0;
- (a = f[r++]) && !e.isPropagationStopped();) e.type = r > 1 ? c : d.bindType || p, l = (Pe.get(a, "events") || {})[e.type] && Pe.get(a, "handle"), l && l.apply(a, t), (l = u && a[u]) && l.apply && Le(a) && (e.result = l.apply(a, t), !1 === e.result && e.preventDefault());
- return e.type = p, o || e.isDefaultPrevented() || d._default && !1 !== d._default.apply(f.pop(), t) || !Le(i) || u && ge.isFunction(i[p]) && !ge.isWindow(i) && (s = i[u], s && (i[u] = null), ge.event.triggered = p, i[p](), ge.event.triggered = void 0, s && (i[u] = s)), e.result
- }
- },
- simulate: function(e, t, n) {
- var i = ge.extend(new ge.Event, n, {
- type: e,
- isSimulated: !0
- });
- ge.event.trigger(i, null, t)
- }
- }), ge.fn.extend({
- trigger: function(e, t) {
- return this.each(function() {
- ge.event.trigger(e, t, this)
- })
- },
- triggerHandler: function(e, t) {
- var n = this[0];
- if (n) return ge.event.trigger(e, t, n, !0)
- }
- }), ge.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function(e, t) {
- ge.fn[t] = function(e, n) {
- return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
- }
- }), ge.fn.extend({
- hover: function(e, t) {
- return this.mouseenter(e).mouseleave(t || e)
- }
- }), ve.focusin = "onfocusin" in n, ve.focusin || ge.each({
- focus: "focusin",
- blur: "focusout"
- }, function(e, t) {
- var n = function(e) {
- ge.event.simulate(t, e.target, ge.event.fix(e))
- };
- ge.event.special[t] = {
- setup: function() {
- var i = this.ownerDocument || this,
- o = Pe.access(i, t);
- o || i.addEventListener(e, n, !0), Pe.access(i, t, (o || 0) + 1)
- },
- teardown: function() {
- var i = this.ownerDocument || this,
- o = Pe.access(i, t) - 1;
- o ? Pe.access(i, t, o) : (i.removeEventListener(e, n, !0), Pe.remove(i, t))
- }
- }
- });
- var Ct = n.location,
- Et = ge.now(),
- Nt = /\?/;
- ge.parseXML = function(e) {
- var t;
- if (!e || "string" != typeof e) return null;
- try {
- t = (new n.DOMParser).parseFromString(e, "text/xml")
- } catch (e) {
- t = void 0
- }
- return t && !t.getElementsByTagName("parsererror").length || ge.error("Invalid XML: " + e), t
- };
- var St = /\[\]$/,
- Tt = /\r?\n/g,
- At = /^(?:submit|button|image|reset|file)$/i,
- It = /^(?:input|select|textarea|keygen)/i;
- ge.param = function(e, t) {
- var n, i = [],
- o = function(e, t) {
- var n = ge.isFunction(t) ? t() : t;
- i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n)
- };
- if (ge.isArray(e) || e.jquery && !ge.isPlainObject(e)) ge.each(e, function() {
- o(this.name, this.value)
- });
- else
- for (n in e) K(n, e[n], t, o);
- return i.join("&")
- }, ge.fn.extend({
- serialize: function() {
- return ge.param(this.serializeArray())
- },
- serializeArray: function() {
- return this.map(function() {
- var e = ge.prop(this, "elements");
- return e ? ge.makeArray(e) : this
- }).filter(function() {
- var e = this.type;
- return this.name && !ge(this).is(":disabled") && It.test(this.nodeName) && !At.test(e) && (this.checked || !Je.test(e))
- }).map(function(e, t) {
- var n = ge(this).val();
- return null == n ? null : ge.isArray(n) ? ge.map(n, function(e) {
- return {
- name: t.name,
- value: e.replace(Tt, "\r\n")
- }
- }) : {
- name: t.name,
- value: n.replace(Tt, "\r\n")
- }
- }).get()
- }
- });
- var Ot = /%20/g,
- Dt = /#.*$/,
- Mt = /([?&])_=[^&]*/,
- $t = /^(.*?):[ \t]*([^\r\n]*)$/gm,
- Lt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- Pt = /^(?:GET|HEAD)$/,
- Ft = /^\/\//,
- Rt = {},
- qt = {},
- Ut = "*/".concat("*"),
- Ht = re.createElement("a");
- Ht.href = Ct.href, ge.extend({
- active: 0,
- lastModified: {},
- etag: {},
- ajaxSettings: {
- url: Ct.href,
- type: "GET",
- isLocal: Lt.test(Ct.protocol),
- global: !0,
- processData: !0,
- async: !0,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- accepts: {
- "*": Ut,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
- converters: {
- "* text": String,
- "text html": !0,
- "text json": JSON.parse,
- "text xml": ge.parseXML
- },
- flatOptions: {
- url: !0,
- context: !0
- }
- },
- ajaxSetup: function(e, t) {
- return t ? ee(ee(e, ge.ajaxSettings), t) : ee(ge.ajaxSettings, e)
- },
- ajaxPrefilter: Q(Rt),
- ajaxTransport: Q(qt),
- ajax: function(e, t) {
- function i(e, t, i, s) {
- var u, f, p, w, _, x = t;
- l || (l = !0, c && n.clearTimeout(c), o = void 0, a = s || "", k.readyState = e > 0 ? 4 : 0, u = e >= 200 && e < 300 || 304 === e, i && (w = te(h, k, i)), w = ne(h, w, k, u), u ? (h.ifModified && (_ = k.getResponseHeader("Last-Modified"), _ && (ge.lastModified[r] = _), (_ = k.getResponseHeader("etag")) && (ge.etag[r] = _)), 204 === e || "HEAD" === h.type ? x = "nocontent" : 304 === e ? x = "notmodified" : (x = w.state, f = w.data, p = w.error, u = !p)) : (p = x, !e && x || (x = "error", e < 0 && (e = 0))), k.status = e, k.statusText = (t || x) + "", u ? g.resolveWith(m, [f, x, k]) : g.rejectWith(m, [k, x, p]), k.statusCode(b), b = void 0, d && v.trigger(u ? "ajaxSuccess" : "ajaxError", [k, h, u ? f : p]), y.fireWith(m, [k, x]), d && (v.trigger("ajaxComplete", [k, h]), --ge.active || ge.event.trigger("ajaxStop")))
- }
- "object" == typeof e && (t = e, e = void 0), t = t || {};
- var o, r, a, s, c, u, l, d, f, p, h = ge.ajaxSetup({}, t),
- m = h.context || h,
- v = h.context && (m.nodeType || m.jquery) ? ge(m) : ge.event,
- g = ge.Deferred(),
- y = ge.Callbacks("once memory"),
- b = h.statusCode || {},
- w = {},
- _ = {},
- x = "canceled",
- k = {
- readyState: 0,
- getResponseHeader: function(e) {
- var t;
- if (l) {
- if (!s)
- for (s = {}; t = $t.exec(a);) s[t[1].toLowerCase()] = t[2];
- t = s[e.toLowerCase()]
- }
- return null == t ? null : t
- },
- getAllResponseHeaders: function() {
- return l ? a : null
- },
- setRequestHeader: function(e, t) {
- return null == l && (e = _[e.toLowerCase()] = _[e.toLowerCase()] || e, w[e] = t), this
- },
- overrideMimeType: function(e) {
- return null == l && (h.mimeType = e), this
- },
- statusCode: function(e) {
- var t;
- if (e)
- if (l) k.always(e[k.status]);
- else
- for (t in e) b[t] = [b[t], e[t]];
- return this
- },
- abort: function(e) {
- var t = e || x;
- return o && o.abort(t), i(0, t), this
- }
- };
- if (g.promise(k), h.url = ((e || h.url || Ct.href) + "").replace(Ft, Ct.protocol + "//"), h.type = t.method || t.type || h.method || h.type, h.dataTypes = (h.dataType || "*").toLowerCase().match(Oe) || [""], null == h.crossDomain) {
- u = re.createElement("a");
- try {
- u.href = h.url, u.href = u.href, h.crossDomain = Ht.protocol + "//" + Ht.host != u.protocol + "//" + u.host
- } catch (e) {
- h.crossDomain = !0
- }
- }
- if (h.data && h.processData && "string" != typeof h.data && (h.data = ge.param(h.data, h.traditional)), Z(Rt, h, t, k), l) return k;
- d = ge.event && h.global, d && 0 == ge.active++ && ge.event.trigger("ajaxStart"), h.type = h.type.toUpperCase(), h.hasContent = !Pt.test(h.type), r = h.url.replace(Dt, ""), h.hasContent ? h.data && h.processData && 0 === (h.contentType || "").indexOf("application/x-www-form-urlencoded") && (h.data = h.data.replace(Ot, "+")) : (p = h.url.slice(r.length), h.data && (r += (Nt.test(r) ? "&" : "?") + h.data, delete h.data), !1 === h.cache && (r = r.replace(Mt, "$1"), p = (Nt.test(r) ? "&" : "?") + "_=" + Et++ + p), h.url = r + p), h.ifModified && (ge.lastModified[r] && k.setRequestHeader("If-Modified-Since", ge.lastModified[r]), ge.etag[r] && k.setRequestHeader("If-None-Match", ge.etag[r])), (h.data && h.hasContent && !1 !== h.contentType || t.contentType) && k.setRequestHeader("Content-Type", h.contentType), k.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + Ut + "; q=0.01" : "") : h.accepts["*"]);
- for (f in h.headers) k.setRequestHeader(f, h.headers[f]);
- if (h.beforeSend && (!1 === h.beforeSend.call(m, k, h) || l)) return k.abort();
- if (x = "abort", y.add(h.complete), k.done(h.success), k.fail(h.error), o = Z(qt, h, t, k)) {
- if (k.readyState = 1, d && v.trigger("ajaxSend", [k, h]), l) return k;
- h.async && h.timeout > 0 && (c = n.setTimeout(function() {
- k.abort("timeout")
- }, h.timeout));
- try {
- l = !1, o.send(w, i)
- } catch (e) {
- if (l) throw e;
- i(-1, e)
- }
- } else i(-1, "No Transport");
- return k
- },
- getJSON: function(e, t, n) {
- return ge.get(e, t, n, "json")
- },
- getScript: function(e, t) {
- return ge.get(e, void 0, t, "script")
- }
- }), ge.each(["get", "post"], function(e, t) {
- ge[t] = function(e, n, i, o) {
- return ge.isFunction(n) && (o = o || i, i = n, n = void 0), ge.ajax(ge.extend({
- url: e,
- type: t,
- dataType: o,
- data: n,
- success: i
- }, ge.isPlainObject(e) && e))
- }
- }), ge._evalUrl = function(e) {
- return ge.ajax({
- url: e,
- type: "GET",
- dataType: "script",
- cache: !0,
- async: !1,
- global: !1,
- throws: !0
- })
- }, ge.fn.extend({
- wrapAll: function(e) {
- var t;
- return this[0] && (ge.isFunction(e) && (e = e.call(this[0])), t = ge(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
- for (var e = this; e.firstElementChild;) e = e.firstElementChild;
- return e
- }).append(this)), this
- },
- wrapInner: function(e) {
- return ge.isFunction(e) ? this.each(function(t) {
- ge(this).wrapInner(e.call(this, t))
- }) : this.each(function() {
- var t = ge(this),
- n = t.contents();
- n.length ? n.wrapAll(e) : t.append(e)
- })
- },
- wrap: function(e) {
- var t = ge.isFunction(e);
- return this.each(function(n) {
- ge(this).wrapAll(t ? e.call(this, n) : e)
- })
- },
- unwrap: function(e) {
- return this.parent(e).not("body").each(function() {
- ge(this).replaceWith(this.childNodes)
- }), this
- }
- }), ge.expr.pseudos.hidden = function(e) {
- return !ge.expr.pseudos.visible(e)
- }, ge.expr.pseudos.visible = function(e) {
- return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length)
- }, ge.ajaxSettings.xhr = function() {
- try {
- return new n.XMLHttpRequest
- } catch (e) {}
- };
- var Vt = {
- 0: 200,
- 1223: 204
- },
- Bt = ge.ajaxSettings.xhr();
- ve.cors = !!Bt && "withCredentials" in Bt, ve.ajax = Bt = !!Bt, ge.ajaxTransport(function(e) {
- var t, i;
- if (ve.cors || Bt && !e.crossDomain) return {
- send: function(o, r) {
- var a, s = e.xhr();
- if (s.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields)
- for (a in e.xhrFields) s[a] = e.xhrFields[a];
- e.mimeType && s.overrideMimeType && s.overrideMimeType(e.mimeType), e.crossDomain || o["X-Requested-With"] || (o["X-Requested-With"] = "XMLHttpRequest");
- for (a in o) s.setRequestHeader(a, o[a]);
- t = function(e) {
- return function() {
- t && (t = i = s.onload = s.onerror = s.onabort = s.onreadystatechange = null, "abort" === e ? s.abort() : "error" === e ? "number" != typeof s.status ? r(0, "error") : r(s.status, s.statusText) : r(Vt[s.status] || s.status, s.statusText, "text" !== (s.responseType || "text") || "string" != typeof s.responseText ? {
- binary: s.response
- } : {
- text: s.responseText
- }, s.getAllResponseHeaders()))
- }
- }, s.onload = t(), i = s.onerror = t("error"), void 0 !== s.onabort ? s.onabort = i : s.onreadystatechange = function() {
- 4 === s.readyState && n.setTimeout(function() {
- t && i()
- })
- }, t = t("abort");
- try {
- s.send(e.hasContent && e.data || null)
- } catch (e) {
- if (t) throw e
- }
- },
- abort: function() {
- t && t()
- }
- }
- }), ge.ajaxPrefilter(function(e) {
- e.crossDomain && (e.contents.script = !1)
- }), ge.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function(e) {
- return ge.globalEval(e), e
- }
- }
- }), ge.ajaxPrefilter("script", function(e) {
- void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET")
- }), ge.ajaxTransport("script", function(e) {
- if (e.crossDomain) {
- var t, n;
- return {
- send: function(i, o) {
- t = ge("<script>").prop({
- charset: e.scriptCharset,
- src: e.url
- }).on("load error", n = function(e) {
- t.remove(), n = null, e && o("error" === e.type ? 404 : 200, e.type)
- }), re.head.appendChild(t[0])
- },
- abort: function() {
- n && n()
- }
- }
- }
- });
- var zt = [],
- Wt = /(=)\?(?=&|$)|\?\?/;
- ge.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- var e = zt.pop() || ge.expando + "_" + Et++;
- return this[e] = !0, e
- }
- }), ge.ajaxPrefilter("json jsonp", function(e, t, i) {
- var o, r, a, s = !1 !== e.jsonp && (Wt.test(e.url) ? "url" : "string" == typeof e.data && 0 === (e.contentType || "").indexOf("application/x-www-form-urlencoded") && Wt.test(e.data) && "data");
- if (s || "jsonp" === e.dataTypes[0]) return o = e.jsonpCallback = ge.isFunction(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, s ? e[s] = e[s].replace(Wt, "$1" + o) : !1 !== e.jsonp && (e.url += (Nt.test(e.url) ? "&" : "?") + e.jsonp + "=" + o), e.converters["script json"] = function() {
- return a || ge.error(o + " was not called"), a[0]
- }, e.dataTypes[0] = "json", r = n[o], n[o] = function() {
- a = arguments
- }, i.always(function() {
- void 0 === r ? ge(n).removeProp(o) : n[o] = r, e[o] && (e.jsonpCallback = t.jsonpCallback, zt.push(o)), a && ge.isFunction(r) && r(a[0]), a = r = void 0
- }), "script"
- }), ve.createHTMLDocument = function() {
- var e = re.implementation.createHTMLDocument("").body;
- return e.innerHTML = "<form></form><form></form>", 2 === e.childNodes.length
- }(), ge.parseHTML = function(e, t, n) {
- if ("string" != typeof e) return [];
- "boolean" == typeof t && (n = t, t = !1);
- var i, o, r;
- return t || (ve.createHTMLDocument ? (t = re.implementation.createHTMLDocument(""), i = t.createElement("base"), i.href = re.location.href, t.head.appendChild(i)) : t = re), o = Ee.exec(e), r = !n && [], o ? [t.createElement(o[1])] : (o = k([e], t, r), r && r.length && ge(r).remove(), ge.merge([], o.childNodes))
- }, ge.fn.load = function(e, t, n) {
- var i, o, r, a = this,
- s = e.indexOf(" ");
- return s > -1 && (i = G(e.slice(s)), e = e.slice(0, s)), ge.isFunction(t) ? (n = t, t = void 0) : t && "object" == typeof t && (o = "POST"), a.length > 0 && ge.ajax({
- url: e,
- type: o || "GET",
- dataType: "html",
- data: t
- }).done(function(e) {
- r = arguments, a.html(i ? ge("<div>").append(ge.parseHTML(e)).find(i) : e)
- }).always(n && function(e, t) {
- a.each(function() {
- n.apply(this, r || [e.responseText, t, e])
- })
- }), this
- }, ge.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
- ge.fn[t] = function(e) {
- return this.on(t, e)
- }
- }), ge.expr.pseudos.animated = function(e) {
- return ge.grep(ge.timers, function(t) {
- return e === t.elem
- }).length
- }, ge.offset = {
- setOffset: function(e, t, n) {
- var i, o, r, a, s, c, u, l = ge.css(e, "position"),
- d = ge(e),
- f = {};
- "static" === l && (e.style.position = "relative"), s = d.offset(), r = ge.css(e, "top"), c = ge.css(e, "left"), u = ("absolute" === l || "fixed" === l) && (r + c).indexOf("auto") > -1, u ? (i = d.position(), a = i.top, o = i.left) : (a = parseFloat(r) || 0, o = parseFloat(c) || 0), ge.isFunction(t) && (t = t.call(e, n, ge.extend({}, s))), null != t.top && (f.top = t.top - s.top + a), null != t.left && (f.left = t.left - s.left + o), "using" in t ? t.using.call(e, f) : d.css(f)
- }
- }, ge.fn.extend({
- offset: function(e) {
- if (arguments.length) return void 0 === e ? this : this.each(function(t) {
- ge.offset.setOffset(this, e, t)
- });
- var t, n, i, o, r = this[0];
- if (r) return r.getClientRects().length ? (i = r.getBoundingClientRect(), i.width || i.height ? (o = r.ownerDocument, n = ie(o), t = o.documentElement, {
- top: i.top + n.pageYOffset - t.clientTop,
- left: i.left + n.pageXOffset - t.clientLeft
- }) : i) : {
- top: 0,
- left: 0
- }
- },
- position: function() {
- if (this[0]) {
- var e, t, n = this[0],
- i = {
- top: 0,
- left: 0
- };
- return "fixed" === ge.css(n, "position") ? t = n.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), ge.nodeName(e[0], "html") || (i = e.offset()), i = {
- top: i.top + ge.css(e[0], "borderTopWidth", !0),
- left: i.left + ge.css(e[0], "borderLeftWidth", !0)
- }), {
- top: t.top - i.top - ge.css(n, "marginTop", !0),
- left: t.left - i.left - ge.css(n, "marginLeft", !0)
- }
- }
- },
- offsetParent: function() {
- return this.map(function() {
- for (var e = this.offsetParent; e && "static" === ge.css(e, "position");) e = e.offsetParent;
- return e || Qe
- })
- }
- }), ge.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function(e, t) {
- var n = "pageYOffset" === t;
- ge.fn[e] = function(i) {
- return $e(this, function(e, i, o) {
- var r = ie(e);
- if (void 0 === o) return r ? r[t] : e[i];
- r ? r.scrollTo(n ? r.pageXOffset : o, n ? o : r.pageYOffset) : e[i] = o
- }, e, i, arguments.length)
- }
- }), ge.each(["top", "left"], function(e, t) {
- ge.cssHooks[t] = L(ve.pixelPosition, function(e, n) {
- if (n) return n = $(e, t), ct.test(n) ? ge(e).position()[t] + "px" : n
- })
- }), ge.each({
- Height: "height",
- Width: "width"
- }, function(e, t) {
- ge.each({
- padding: "inner" + e,
- content: t,
- "": "outer" + e
- }, function(n, i) {
- ge.fn[i] = function(o, r) {
- var a = arguments.length && (n || "boolean" != typeof o),
- s = n || (!0 === o || !0 === r ? "margin" : "border");
- return $e(this, function(t, n, o) {
- var r;
- return ge.isWindow(t) ? 0 === i.indexOf("outer") ? t["inner" + e] : t.document.documentElement["client" + e] : 9 === t.nodeType ? (r = t.documentElement, Math.max(t.body["scroll" + e], r["scroll" + e], t.body["offset" + e], r["offset" + e], r["client" + e])) : void 0 === o ? ge.css(t, n, s) : ge.style(t, n, o, s)
- }, t, a ? o : void 0, a)
- }
- })
- }), ge.fn.extend({
- bind: function(e, t, n) {
- return this.on(e, null, t, n)
- },
- unbind: function(e, t) {
- return this.off(e, null, t)
- },
- delegate: function(e, t, n, i) {
- return this.on(t, e, n, i)
- },
- undelegate: function(e, t, n) {
- return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
- }
- }), ge.parseJSON = JSON.parse, i = [], void 0 !== (o = function() {
- return ge
- }.apply(t, i)) && (e.exports = o);
- var Jt = n.jQuery,
- Yt = n.$;
- return ge.noConflict = function(e) {
- return n.$ === ge && (n.$ = Yt), e && n.jQuery === ge && (n.jQuery = Jt), ge
- }, r || (n.jQuery = n.$ = ge), ge
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(7),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window._,
- s = {
- promotion_video: !0,
- click_follow_button: !0,
- adblock: !0,
- bcs: !0,
- homescreen_prompt: !0,
- daisuki_dragonball: !0,
- right_stuf: !0,
- amazon: !0,
- cdjapan: !0
- },
- c = o.default.get("MALHLOGSESSID");
- e.exports = {
- actionLog: function(e) {
- var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- if (!(e in s)) throw "#{action} is nonavailable action name";
- return t._browser_id = c, t._action = e, r.ajax({
- url: "/static/logging.html",
- data: t,
- cache: !1
- })
- },
- actionList: a.keys(s)
- }
- }, , function(e, t) {
- function n() {
- throw new Error("setTimeout has not been defined")
- }
- function i() {
- throw new Error("clearTimeout has not been defined")
- }
- function o(e) {
- if (l === setTimeout) return setTimeout(e, 0);
- if ((l === n || !l) && setTimeout) return l = setTimeout, setTimeout(e, 0);
- try {
- return l(e, 0)
- } catch (t) {
- try {
- return l.call(null, e, 0)
- } catch (t) {
- return l.call(this, e, 0)
- }
- }
- }
- function r(e) {
- if (d === clearTimeout) return clearTimeout(e);
- if ((d === i || !d) && clearTimeout) return d = clearTimeout, clearTimeout(e);
- try {
- return d(e)
- } catch (t) {
- try {
- return d.call(null, e)
- } catch (t) {
- return d.call(this, e)
- }
- }
- }
- function a() {
- m && p && (m = !1, p.length ? h = p.concat(h) : v = -1, h.length && s())
- }
- function s() {
- if (!m) {
- var e = o(a);
- m = !0;
- for (var t = h.length; t;) {
- for (p = h, h = []; ++v < t;) p && p[v].run();
- v = -1, t = h.length
- }
- p = null, m = !1, r(e)
- }
- }
- function c(e, t) {
- this.fun = e, this.array = t
- }
- function u() {}
- var l, d, f = e.exports = {};
- ! function() {
- try {
- l = "function" == typeof setTimeout ? setTimeout : n
- } catch (e) {
- l = n
- }
- try {
- d = "function" == typeof clearTimeout ? clearTimeout : i
- } catch (e) {
- d = i
- }
- }();
- var p, h = [],
- m = !1,
- v = -1;
- f.nextTick = function(e) {
- var t = new Array(arguments.length - 1);
- if (arguments.length > 1)
- for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
- h.push(new c(e, t)), 1 !== h.length || m || o(s)
- }, c.prototype.run = function() {
- this.fun.apply(null, this.array)
- }, f.title = "browser", f.browser = !0, f.env = {}, f.argv = [], f.version = "", f.versions = {}, f.on = u, f.addListener = u, f.once = u, f.off = u, f.removeListener = u, f.removeAllListeners = u, f.emit = u, f.binding = function(e) {
- throw new Error("process.binding is not supported")
- }, f.cwd = function() {
- return "/"
- }, f.chdir = function(e) {
- throw new Error("process.chdir is not supported")
- }, f.umask = function() {
- return 0
- }
- }, function(e, t) {
- var n;
- n = function() {
- return this
- }();
- try {
- n = n || Function("return this")() || (0, eval)("this")
- } catch (e) {
- "object" == typeof window && (n = window)
- }
- e.exports = n
- }, function(e, t, n) {
- var i, o;
- ! function(r) {
- var a = !1;
- if (i = r, void 0 !== (o = "function" == typeof i ? i.call(t, n, t, e) : i) && (e.exports = o), a = !0, e.exports = r(), a = !0, !a) {
- var s = window.Cookies,
- c = window.Cookies = r();
- c.noConflict = function() {
- return window.Cookies = s, c
- }
- }
- }(function() {
- function e() {
- for (var e = 0, t = {}; e < arguments.length; e++) {
- var n = arguments[e];
- for (var i in n) t[i] = n[i]
- }
- return t
- }
- function t(n) {
- function i(t, o, r) {
- var a;
- if ("undefined" != typeof document) {
- if (arguments.length > 1) {
- if (r = e({
- path: "/"
- }, i.defaults, r), "number" == typeof r.expires) {
- var s = new Date;
- s.setMilliseconds(s.getMilliseconds() + 864e5 * r.expires), r.expires = s
- }
- try {
- a = JSON.stringify(o), /^[\{\[]/.test(a) && (o = a)
- } catch (e) {}
- return o = n.write ? n.write(o, t) : encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), t = encodeURIComponent(String(t)), t = t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent), t = t.replace(/[\(\)]/g, escape), document.cookie = [t, "=", o, r.expires ? "; expires=" + r.expires.toUTCString() : "", r.path ? "; path=" + r.path : "", r.domain ? "; domain=" + r.domain : "", r.secure ? "; secure" : ""].join("")
- }
- t || (a = {});
- for (var c = document.cookie ? document.cookie.split("; ") : [], u = /(%[0-9A-Z]{2})+/g, l = 0; l < c.length; l++) {
- var d = c[l].split("="),
- f = d.slice(1).join("=");
- '"' === f.charAt(0) && (f = f.slice(1, -1));
- try {
- var p = d[0].replace(u, decodeURIComponent);
- if (f = n.read ? n.read(f, p) : n(f, p) || f.replace(u, decodeURIComponent), this.json) try {
- f = JSON.parse(f)
- } catch (e) {}
- if (t === p) {
- a = f;
- break
- }
- t || (a[p] = f)
- } catch (e) {}
- }
- return a
- }
- }
- return i.set = i, i.get = function(e) {
- return i.call(i, e)
- }, i.getJSON = function() {
- return i.apply({
- json: !0
- }, [].slice.call(arguments))
- }, i.defaults = {}, i.remove = function(t, n) {
- i(t, "", e(n, {
- expires: -1
- }))
- }, i.withConverter = t, i
- }
- return t(function() {})
- })
- }, , , , , , , function(e, t, n) {
- /**
- * vuex v2.1.1
- * (c) 2016 Evan You
- * @license MIT
- */
- ! function(t, n) {
- e.exports = n()
- }(0, function() {
- "use strict";
- function e(e) {
- x && (e._devtoolHook = x, x.emit("vuex:init", e), x.on("vuex:travel-to-state", function(t) {
- e.replaceState(t)
- }), e.subscribe(function(e, t) {
- x.emit("vuex:mutation", e, t)
- }))
- }
- function t(e) {
- function t() {
- var e = this.$options;
- e.store ? this.$store = e.store : e.parent && e.parent.$store && (this.$store = e.parent.$store)
- }
- if (Number(e.version.split(".")[0]) >= 2) {
- var n = e.config._lifecycleHooks.indexOf("init") > -1;
- e.mixin(n ? {
- init: t
- } : {
- beforeCreate: t
- })
- } else {
- var i = e.prototype._init;
- e.prototype._init = function(e) {
- void 0 === e && (e = {}), e.init = e.init ? [t].concat(e.init) : t, i.call(this, e)
- }
- }
- }
- function n(e) {
- return Array.isArray(e) ? e.map(function(e) {
- return {
- key: e,
- val: e
- }
- }) : Object.keys(e).map(function(t) {
- return {
- key: t,
- val: e[t]
- }
- })
- }
- function i(e) {
- return function(t, n) {
- return "string" != typeof t ? (n = t, t = "") : "/" !== t.charAt(t.length - 1) && (t += "/"), e(t, n)
- }
- }
- function o(e, t) {
- console.error("[vuex] module namespace not found in " + e + "(): " + t)
- }
- function r(e, t) {
- Object.keys(e).forEach(function(n) {
- return t(e[n], n)
- })
- }
- function a(e) {
- return null !== e && "object" == typeof e
- }
- function s(e) {
- return e && "function" == typeof e.then
- }
- function c(e, t) {
- if (!e) throw new Error("[vuex] " + t)
- }
- function u(e, t) {
- if (e.update(t), t.modules)
- for (var n in t.modules) {
- if (!e.getChild(n)) return void console.warn("[vuex] trying to add a new module '" + n + "' on hot reloading, manual reload is needed");
- u(e.getChild(n), t.modules[n])
- }
- }
- function l(e) {
- e._actions = Object.create(null), e._mutations = Object.create(null), e._wrappedGetters = Object.create(null), e._modulesNamespaceMap = Object.create(null);
- var t = e.state;
- f(e, t, [], e._modules.root, !0), d(e, t)
- }
- function d(e, t) {
- var n = e._vm;
- e.getters = {};
- var i = e._wrappedGetters,
- o = {};
- r(i, function(t, n) {
- o[n] = function() {
- return t(e)
- }, Object.defineProperty(e.getters, n, {
- get: function() {
- return e._vm[n]
- },
- enumerable: !0
- })
- });
- var a = A.config.silent;
- A.config.silent = !0, e._vm = new A({
- data: {
- state: t
- },
- computed: o
- }), A.config.silent = a, e.strict && y(e), n && (e._withCommit(function() {
- n.state = null
- }), A.nextTick(function() {
- return n.$destroy()
- }))
- }
- function f(e, t, n, i, o) {
- var r = !n.length,
- a = e._modules.getNamespace(n);
- if (a && (e._modulesNamespaceMap[a] = i), !r && !o) {
- var s = b(t, n.slice(0, -1)),
- c = n[n.length - 1];
- e._withCommit(function() {
- A.set(s, c, i.state)
- })
- }
- var u = i.context = p(e, a);
- i.forEachMutation(function(t, i) {
- m(e, a + i, t, n)
- }), i.forEachAction(function(t, i) {
- v(e, a + i, t, u, n)
- }), i.forEachGetter(function(t, i) {
- g(e, a + i, t, u, n)
- }), i.forEachChild(function(i, r) {
- f(e, t, n.concat(r), i, o)
- })
- }
- function p(e, t) {
- var n = "" === t,
- i = {
- dispatch: n ? e.dispatch : function(n, i, o) {
- var r = w(n, i, o),
- a = r.payload,
- s = r.options,
- c = r.type;
- return s && s.root || (c = t + c, e._actions[c]) ? e.dispatch(c, a) : void console.error("[vuex] unknown local action type: " + r.type + ", global type: " + c)
- },
- commit: n ? e.commit : function(n, i, o) {
- var r = w(n, i, o),
- a = r.payload,
- s = r.options,
- c = r.type;
- if (!(s && s.root || (c = t + c, e._mutations[c]))) return void console.error("[vuex] unknown local mutation type: " + r.type + ", global type: " + c);
- e.commit(c, a, s)
- }
- };
- return Object.defineProperty(i, "getters", {
- get: n ? function() {
- return e.getters
- } : function() {
- return h(e, t)
- }
- }), i
- }
- function h(e, t) {
- var n = {},
- i = t.length;
- return Object.keys(e.getters).forEach(function(o) {
- if (o.slice(0, i) === t) {
- var r = o.slice(i);
- Object.defineProperty(n, r, {
- get: function() {
- return e.getters[o]
- },
- enumerable: !0
- })
- }
- }), n
- }
- function m(e, t, n, i) {
- (e._mutations[t] || (e._mutations[t] = [])).push(function(t) {
- n(b(e.state, i), t)
- })
- }
- function v(e, t, n, i, o) {
- (e._actions[t] || (e._actions[t] = [])).push(function(t, r) {
- var a = n({
- dispatch: i.dispatch,
- commit: i.commit,
- getters: i.getters,
- state: b(e.state, o),
- rootGetters: e.getters,
- rootState: e.state
- }, t, r);
- return s(a) || (a = Promise.resolve(a)), e._devtoolHook ? a.catch(function(t) {
- throw e._devtoolHook.emit("vuex:error", t), t
- }) : a
- })
- }
- function g(e, t, n, i, o) {
- if (e._wrappedGetters[t]) return void console.error("[vuex] duplicate getter key: " + t);
- e._wrappedGetters[t] = function(e) {
- return n(b(e.state, o), i.getters, e.state, e.getters)
- }
- }
- function y(e) {
- e._vm.$watch("state", function() {
- c(e._committing, "Do not mutate vuex store state outside mutation handlers.")
- }, {
- deep: !0,
- sync: !0
- })
- }
- function b(e, t) {
- return t.length ? t.reduce(function(e, t) {
- return e[t]
- }, e) : e
- }
- function w(e, t, n) {
- return a(e) && e.type && (n = t, t = e, e = e.type), {
- type: e,
- payload: t,
- options: n
- }
- }
- function _(e) {
- if (A) return void console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");
- A = e, t(A)
- }
- var x = "undefined" != typeof window && window.__VUE_DEVTOOLS_GLOBAL_HOOK__,
- k = i(function(e, t) {
- var i = {};
- return n(t).forEach(function(t) {
- var n = t.key,
- r = t.val;
- i[n] = function() {
- var t = this.$store.state,
- n = this.$store.getters;
- if (e) {
- var i = this.$store._modulesNamespaceMap[e];
- if (!i) return void o("mapState", e);
- t = i.state, n = i.context.getters
- }
- return "function" == typeof r ? r.call(this, t, n) : t[r]
- }
- }), i
- }),
- j = i(function(e, t) {
- var i = {};
- return n(t).forEach(function(t) {
- var n = t.key,
- o = t.val;
- o = e + o, i[n] = function() {
- for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
- return this.$store.commit.apply(this.$store, [o].concat(e))
- }
- }), i
- }),
- C = i(function(e, t) {
- var i = {};
- return n(t).forEach(function(t) {
- var n = t.key,
- o = t.val;
- o = e + o, i[n] = function() {
- return o in this.$store.getters || console.error("[vuex] unknown getter: " + o), this.$store.getters[o]
- }
- }), i
- }),
- E = i(function(e, t) {
- var i = {};
- return n(t).forEach(function(t) {
- var n = t.key,
- o = t.val;
- o = e + o, i[n] = function() {
- for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
- return this.$store.dispatch.apply(this.$store, [o].concat(e))
- }
- }), i
- }),
- N = function(e, t) {
- this.runtime = t, this._children = Object.create(null), this._rawModule = e
- },
- S = {
- state: {},
- namespaced: {}
- };
- S.state.get = function() {
- return this._rawModule.state || {}
- }, S.namespaced.get = function() {
- return !!this._rawModule.namespaced
- }, N.prototype.addChild = function(e, t) {
- this._children[e] = t
- }, N.prototype.removeChild = function(e) {
- delete this._children[e]
- }, N.prototype.getChild = function(e) {
- return this._children[e]
- }, N.prototype.update = function(e) {
- this._rawModule.namespaced = e.namespaced, e.actions && (this._rawModule.actions = e.actions), e.mutations && (this._rawModule.mutations = e.mutations), e.getters && (this._rawModule.getters = e.getters)
- }, N.prototype.forEachChild = function(e) {
- r(this._children, e)
- }, N.prototype.forEachGetter = function(e) {
- this._rawModule.getters && r(this._rawModule.getters, e)
- }, N.prototype.forEachAction = function(e) {
- this._rawModule.actions && r(this._rawModule.actions, e)
- }, N.prototype.forEachMutation = function(e) {
- this._rawModule.mutations && r(this._rawModule.mutations, e)
- }, Object.defineProperties(N.prototype, S);
- var T = function(e) {
- var t = this;
- this.root = new N(e, !1), e.modules && r(e.modules, function(e, n) {
- t.register([n], e, !1)
- })
- };
- T.prototype.get = function(e) {
- return e.reduce(function(e, t) {
- return e.getChild(t)
- }, this.root)
- }, T.prototype.getNamespace = function(e) {
- var t = this.root;
- return e.reduce(function(e, n) {
- return t = t.getChild(n), e + (t.namespaced ? n + "/" : "")
- }, "")
- }, T.prototype.update = function(e) {
- u(this.root, e)
- }, T.prototype.register = function(e, t, n) {
- var i = this;
- void 0 === n && (n = !0);
- var o = this.get(e.slice(0, -1)),
- a = new N(t, n);
- o.addChild(e[e.length - 1], a), t.modules && r(t.modules, function(t, o) {
- i.register(e.concat(o), t, n)
- })
- }, T.prototype.unregister = function(e) {
- var t = this.get(e.slice(0, -1)),
- n = e[e.length - 1];
- t.getChild(n).runtime && t.removeChild(n)
- };
- var A, I = function(t) {
- var n = this;
- void 0 === t && (t = {}), c(A, "must call Vue.use(Vuex) before creating a store instance."), c("undefined" != typeof Promise, "vuex requires a Promise polyfill in this browser.");
- var i = t.state;
- void 0 === i && (i = {});
- var o = t.plugins;
- void 0 === o && (o = []);
- var r = t.strict;
- void 0 === r && (r = !1), this._committing = !1, this._actions = Object.create(null), this._mutations = Object.create(null), this._wrappedGetters = Object.create(null), this._modules = new T(t), this._modulesNamespaceMap = Object.create(null), this._subscribers = [], this._watcherVM = new A;
- var a = this,
- s = this,
- u = s.dispatch,
- l = s.commit;
- this.dispatch = function(e, t) {
- return u.call(a, e, t)
- }, this.commit = function(e, t, n) {
- return l.call(a, e, t, n)
- }, this.strict = r, f(this, i, [], this._modules.root), d(this, i), o.concat(e).forEach(function(e) {
- return e(n)
- })
- },
- O = {
- state: {}
- };
- return O.state.get = function() {
- return this._vm.$data.state
- }, O.state.set = function(e) {
- c(!1, "Use store.replaceState() to explicit replace store state.")
- }, I.prototype.commit = function(e, t, n) {
- var i = this,
- o = w(e, t, n),
- r = o.type,
- a = o.payload,
- s = o.options,
- c = {
- type: r,
- payload: a
- },
- u = this._mutations[r];
- if (!u) return void console.error("[vuex] unknown mutation type: " + r);
- this._withCommit(function() {
- u.forEach(function(e) {
- e(a)
- })
- }), this._subscribers.forEach(function(e) {
- return e(c, i.state)
- }), s && s.silent && console.warn("[vuex] mutation type: " + r + ". Silent option has been removed. Use the filter functionality in the vue-devtools")
- }, I.prototype.dispatch = function(e, t) {
- var n = w(e, t),
- i = n.type,
- o = n.payload,
- r = this._actions[i];
- return r ? r.length > 1 ? Promise.all(r.map(function(e) {
- return e(o)
- })) : r[0](o) : void console.error("[vuex] unknown action type: " + i)
- }, I.prototype.subscribe = function(e) {
- var t = this._subscribers;
- return t.indexOf(e) < 0 && t.push(e),
- function() {
- var n = t.indexOf(e);
- n > -1 && t.splice(n, 1)
- }
- }, I.prototype.watch = function(e, t, n) {
- var i = this;
- return c("function" == typeof e, "store.watch only accepts a function."), this._watcherVM.$watch(function() {
- return e(i.state, i.getters)
- }, t, n)
- }, I.prototype.replaceState = function(e) {
- var t = this;
- this._withCommit(function() {
- t._vm.state = e
- })
- }, I.prototype.registerModule = function(e, t) {
- "string" == typeof e && (e = [e]), c(Array.isArray(e), "module path must be a string or an Array."), this._modules.register(e, t), f(this, this.state, e, this._modules.get(e)), d(this, this.state)
- }, I.prototype.unregisterModule = function(e) {
- var t = this;
- "string" == typeof e && (e = [e]), c(Array.isArray(e), "module path must be a string or an Array."), this._modules.unregister(e), this._withCommit(function() {
- var n = b(t.state, e.slice(0, -1));
- A.delete(n, e[e.length - 1])
- }), l(this)
- }, I.prototype.hotUpdate = function(e) {
- this._modules.update(e), l(this)
- }, I.prototype._withCommit = function(e) {
- var t = this._committing;
- this._committing = !0, e(), this._committing = t
- }, Object.defineProperties(I.prototype, O), "undefined" != typeof window && window.Vue && _(window.Vue), {
- Store: I,
- install: _,
- version: "2.1.1",
- mapState: k,
- mapMutations: j,
- mapGetters: C,
- mapActions: E
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = i("#alljs").data("params"); - 1 === navigator.userAgent.indexOf("Googlebot") && o.is_request_bot_filter_log && i.ajax({
- url: o.origin_url + "/log/bot_filter.php",
- type: "POST",
- cache: !1
- })
- }, function(e, t, n) {
- "use strict";
- function i(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var o = n(17),
- r = i(o),
- a = n(3),
- s = i(a);
- (0, window.$)(function() {
- function e() {
- document.head.innerHTML = "", document.body.innerHTML = ""
- }
- window.MAL.magia && window.MAL.madoka || (s.default.actionLog("bcs", {
- hostname: document.location.hostname,
- reason: "madoka magica doesn't exist"
- }), e());
- var t = new r.default("SHA-256", "TEXT");
- t.setHMACKey(window.MAL.madoka, "TEXT"), t.update(document.location.hostname), t.getHMAC("HEX") !== window.MAL.magia && (s.default.actionLog("bcs", {
- hostname: document.location.hostname,
- reason: "not match hostname"
- }), e())
- })
- }, function(e, t, n) {
- "use strict";
- var i;
- ! function(o) {
- function r(e, t, n) {
- var i, o, r, a, s, c, u, l, g, y = 0,
- b = [],
- w = 0,
- _ = !1,
- x = [],
- k = [],
- j = !1,
- C = !1;
- if (n = n || {}, i = n.encoding || "UTF8", g = n.numRounds || 1, r = v(t, i), g !== parseInt(g, 10) || 1 > g) throw Error("numRounds must a integer >= 1");
- if ("SHA-1" === e) s = 512, c = H, u = V, a = 160, l = function(e) {
- return e.slice()
- };
- else if (0 === e.lastIndexOf("SHA-", 0))
- if (c = function(t, n) {
- return B(t, n, e)
- }, u = function(t, n, i, o) {
- var r, a;
- if ("SHA-224" === e || "SHA-256" === e) r = 15 + (n + 65 >>> 9 << 4), a = 16;
- else {
- if ("SHA-384" !== e && "SHA-512" !== e) throw Error("Unexpected error in SHA-2 implementation");
- r = 31 + (n + 129 >>> 10 << 5), a = 32
- }
- for (; t.length <= r;) t.push(0);
- for (t[n >>> 5] |= 128 << 24 - n % 32, n += i, t[r] = 4294967295 & n, t[r - 1] = n / 4294967296 | 0, i = t.length, n = 0; n < i; n += a) o = B(t.slice(n, n + a), o, e);
- if ("SHA-224" === e) t = [o[0], o[1], o[2], o[3], o[4], o[5], o[6]];
- else if ("SHA-256" === e) t = o;
- else if ("SHA-384" === e) t = [o[0].a, o[0].b, o[1].a, o[1].b, o[2].a, o[2].b, o[3].a, o[3].b, o[4].a, o[4].b, o[5].a, o[5].b];
- else {
- if ("SHA-512" !== e) throw Error("Unexpected error in SHA-2 implementation");
- t = [o[0].a, o[0].b, o[1].a, o[1].b, o[2].a, o[2].b, o[3].a, o[3].b, o[4].a, o[4].b, o[5].a, o[5].b, o[6].a, o[6].b, o[7].a, o[7].b]
- }
- return t
- }, l = function(e) {
- return e.slice()
- }, "SHA-224" === e) s = 512, a = 224;
- else if ("SHA-256" === e) s = 512, a = 256;
- else if ("SHA-384" === e) s = 1024, a = 384;
- else {
- if ("SHA-512" !== e) throw Error("Chosen SHA variant is not supported");
- s = 1024, a = 512
- } else {
- if (0 !== e.lastIndexOf("SHA3-", 0) && 0 !== e.lastIndexOf("SHAKE", 0)) throw Error("Chosen SHA variant is not supported");
- var E = 6;
- if (c = z, l = function(e) {
- var t, n = [];
- for (t = 0; 5 > t; t += 1) n[t] = e[t].slice();
- return n
- }, "SHA3-224" === e) s = 1152, a = 224;
- else if ("SHA3-256" === e) s = 1088, a = 256;
- else if ("SHA3-384" === e) s = 832, a = 384;
- else if ("SHA3-512" === e) s = 576, a = 512;
- else if ("SHAKE128" === e) s = 1344, a = -1, E = 31, C = !0;
- else {
- if ("SHAKE256" !== e) throw Error("Chosen SHA variant is not supported");
- s = 1088, a = -1, E = 31, C = !0
- }
- u = function(e, t, n, i, o) {
- n = s;
- var r, a = E,
- c = [],
- u = n >>> 5,
- l = 0,
- d = t >>> 5;
- for (r = 0; r < d && t >= n; r += u) i = z(e.slice(r, r + u), i), t -= n;
- for (e = e.slice(r), t %= n; e.length < u;) e.push(0);
- for (r = t >>> 3, e[r >> 2] ^= a << 24 - r % 4 * 8, e[u - 1] ^= 128, i = z(e, i); 32 * c.length < o && (e = i[l % 5][l / 5 | 0], c.push((255 & e.b) << 24 | (65280 & e.b) << 8 | (16711680 & e.b) >> 8 | e.b >>> 24), !(32 * c.length >= o));) c.push((255 & e.a) << 24 | (65280 & e.a) << 8 | (16711680 & e.a) >> 8 | e.a >>> 24), 0 == 64 * (l += 1) % n && z(null, i);
- return c
- }
- }
- o = U(e), this.setHMACKey = function(t, n, r) {
- var l;
- if (!0 === _) throw Error("HMAC key already set");
- if (!0 === j) throw Error("Cannot set HMAC key after calling update");
- if (!0 === C) throw Error("SHAKE is not supported for HMAC");
- if (i = (r || {}).encoding || "UTF8", n = v(n, i)(t), t = n.binLen, n = n.value, l = s >>> 3, r = l / 4 - 1, l < t / 8) {
- for (n = u(n, t, 0, U(e), a); n.length <= r;) n.push(0);
- n[r] &= 4294967040
- } else if (l > t / 8) {
- for (; n.length <= r;) n.push(0);
- n[r] &= 4294967040
- }
- for (t = 0; t <= r; t += 1) x[t] = 909522486 ^ n[t], k[t] = 1549556828 ^ n[t];
- o = c(x, o), y = s, _ = !0
- }, this.update = function(e) {
- var t, n, i, a = 0,
- u = s >>> 5;
- for (t = r(e, b, w), e = t.binLen, n = t.value, t = e >>> 5, i = 0; i < t; i += u) a + s <= e && (o = c(n.slice(i, i + u), o), a += s);
- y += a, b = n.slice(a >>> 5), w = e % s, j = !0
- }, this.getHash = function(t, n) {
- var i, r, s, c;
- if (!0 === _) throw Error("Cannot call getHash after setting HMAC key");
- if (s = m(n), !0 === C) {
- if (-1 === s.shakeLen) throw Error("shakeLen must be specified in options");
- a = s.shakeLen
- }
- switch (t) {
- case "HEX":
- i = function(e) {
- return d(e, a, s)
- };
- break;
- case "B64":
- i = function(e) {
- return f(e, a, s)
- };
- break;
- case "BYTES":
- i = function(e) {
- return p(e, a)
- };
- break;
- case "ARRAYBUFFER":
- try {
- r = new ArrayBuffer(0)
- } catch (e) {
- throw Error("ARRAYBUFFER not supported by this environment")
- }
- i = function(e) {
- return h(e, a)
- };
- break;
- default:
- throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER")
- }
- for (c = u(b.slice(), w, y, l(o), a), r = 1; r < g; r += 1) !0 === C && 0 != a % 32 && (c[c.length - 1] &= 4294967040 << 24 - a % 32), c = u(c, a, 0, U(e), a);
- return i(c)
- }, this.getHMAC = function(t, n) {
- var i, r, v, g;
- if (!1 === _) throw Error("Cannot call getHMAC without first setting HMAC key");
- switch (v = m(n), t) {
- case "HEX":
- i = function(e) {
- return d(e, a, v)
- };
- break;
- case "B64":
- i = function(e) {
- return f(e, a, v)
- };
- break;
- case "BYTES":
- i = function(e) {
- return p(e, a)
- };
- break;
- case "ARRAYBUFFER":
- try {
- i = new ArrayBuffer(0)
- } catch (e) {
- throw Error("ARRAYBUFFER not supported by this environment")
- }
- i = function(e) {
- return h(e, a)
- };
- break;
- default:
- throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER")
- }
- return r = u(b.slice(), w, y, l(o), a), g = c(k, U(e)), g = u(r, a, s, g, a), i(g)
- }
- }
- function a(e, t) {
- this.a = e, this.b = t
- }
- function s(e, t, n) {
- var i, o, r, a, s, c = e.length;
- if (t = t || [0], n = n || 0, s = n >>> 3, 0 != c % 2) throw Error("String of HEX type must be in byte increments");
- for (i = 0; i < c; i += 2) {
- if (o = parseInt(e.substr(i, 2), 16), isNaN(o)) throw Error("String of HEX type contains invalid characters");
- for (a = (i >>> 1) + s, r = a >>> 2; t.length <= r;) t.push(0);
- t[r] |= o << 8 * (3 - a % 4)
- }
- return {
- value: t,
- binLen: 4 * c + n
- }
- }
- function c(e, t, n) {
- var i, o, r, a, s = [],
- s = t || [0];
- for (n = n || 0, o = n >>> 3, i = 0; i < e.length; i += 1) t = e.charCodeAt(i), a = i + o, r = a >>> 2, s.length <= r && s.push(0), s[r] |= t << 8 * (3 - a % 4);
- return {
- value: s,
- binLen: 8 * e.length + n
- }
- }
- function u(e, t, n) {
- var i, o, r, a, s, c, u = [],
- l = 0,
- u = t || [0];
- if (n = n || 0, t = n >>> 3, -1 === e.search(/^[a-zA-Z0-9=+\/]+$/)) throw Error("Invalid character in base-64 string");
- if (o = e.indexOf("="), e = e.replace(/\=/g, ""), -1 !== o && o < e.length) throw Error("Invalid '=' found in base-64 string");
- for (o = 0; o < e.length; o += 4) {
- for (s = e.substr(o, 4), r = a = 0; r < s.length; r += 1) i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(s[r]), a |= i << 18 - 6 * r;
- for (r = 0; r < s.length - 1; r += 1) {
- for (c = l + t, i = c >>> 2; u.length <= i;) u.push(0);
- u[i] |= (a >>> 16 - 8 * r & 255) << 8 * (3 - c % 4), l += 1
- }
- }
- return {
- value: u,
- binLen: 8 * l + n
- }
- }
- function l(e, t, n) {
- var i, o, r, a = [],
- a = t || [0];
- for (n = n || 0, i = n >>> 3, t = 0; t < e.byteLength; t += 1) r = t + i, o = r >>> 2, a.length <= o && a.push(0), a[o] |= e[t] << 8 * (3 - r % 4);
- return {
- value: a,
- binLen: 8 * e.byteLength + n
- }
- }
- function d(e, t, n) {
- var i = "";
- t /= 8;
- var o, r;
- for (o = 0; o < t; o += 1) r = e[o >>> 2] >>> 8 * (3 - o % 4), i += "0123456789abcdef".charAt(r >>> 4 & 15) + "0123456789abcdef".charAt(15 & r);
- return n.outputUpper ? i.toUpperCase() : i
- }
- function f(e, t, n) {
- var i, o, r, a = "",
- s = t / 8;
- for (i = 0; i < s; i += 3)
- for (o = i + 1 < s ? e[i + 1 >>> 2] : 0, r = i + 2 < s ? e[i + 2 >>> 2] : 0, r = (e[i >>> 2] >>> 8 * (3 - i % 4) & 255) << 16 | (o >>> 8 * (3 - (i + 1) % 4) & 255) << 8 | r >>> 8 * (3 - (i + 2) % 4) & 255, o = 0; 4 > o; o += 1) a += 8 * i + 6 * o <= t ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r >>> 6 * (3 - o) & 63) : n.b64Pad;
- return a
- }
- function p(e, t) {
- var n, i, o = "",
- r = t / 8;
- for (n = 0; n < r; n += 1) i = e[n >>> 2] >>> 8 * (3 - n % 4) & 255, o += String.fromCharCode(i);
- return o
- }
- function h(e, t) {
- var n, i = t / 8,
- o = new ArrayBuffer(i);
- for (n = 0; n < i; n += 1) o[n] = e[n >>> 2] >>> 8 * (3 - n % 4) & 255;
- return o
- }
- function m(e) {
- var t = {
- outputUpper: !1,
- b64Pad: "=",
- shakeLen: -1
- };
- if (e = e || {}, t.outputUpper = e.outputUpper || !1, !0 === e.hasOwnProperty("b64Pad") && (t.b64Pad = e.b64Pad), !0 === e.hasOwnProperty("shakeLen")) {
- if (0 != e.shakeLen % 8) throw Error("shakeLen must be a multiple of 8");
- t.shakeLen = e.shakeLen
- }
- if ("boolean" != typeof t.outputUpper) throw Error("Invalid outputUpper formatting option");
- if ("string" != typeof t.b64Pad) throw Error("Invalid b64Pad formatting option");
- return t
- }
- function v(e, t) {
- var n;
- switch (t) {
- case "UTF8":
- case "UTF16BE":
- case "UTF16LE":
- break;
- default:
- throw Error("encoding must be UTF8, UTF16BE, or UTF16LE")
- }
- switch (e) {
- case "HEX":
- n = s;
- break;
- case "TEXT":
- n = function(e, n, i) {
- var o, r, a, s, c, u = [],
- l = [],
- d = 0,
- u = n || [0];
- if (n = i || 0, a = n >>> 3, "UTF8" === t)
- for (o = 0; o < e.length; o += 1)
- for (i = e.charCodeAt(o), l = [], 128 > i ? l.push(i) : 2048 > i ? (l.push(192 | i >>> 6), l.push(128 | 63 & i)) : 55296 > i || 57344 <= i ? l.push(224 | i >>> 12, 128 | i >>> 6 & 63, 128 | 63 & i) : (o += 1, i = 65536 + ((1023 & i) << 10 | 1023 & e.charCodeAt(o)), l.push(240 | i >>> 18, 128 | i >>> 12 & 63, 128 | i >>> 6 & 63, 128 | 63 & i)), r = 0; r < l.length; r += 1) {
- for (c = d + a, s = c >>> 2; u.length <= s;) u.push(0);
- u[s] |= l[r] << 8 * (3 - c % 4), d += 1
- } else if ("UTF16BE" === t || "UTF16LE" === t)
- for (o = 0; o < e.length; o += 1) {
- for (i = e.charCodeAt(o), "UTF16LE" === t && (r = 255 & i, i = r << 8 | i >>> 8), c = d + a, s = c >>> 2; u.length <= s;) u.push(0);
- u[s] |= i << 8 * (2 - c % 4), d += 2
- }
- return {
- value: u,
- binLen: 8 * d + n
- }
- };
- break;
- case "B64":
- n = u;
- break;
- case "BYTES":
- n = c;
- break;
- case "ARRAYBUFFER":
- try {
- n = new ArrayBuffer(0)
- } catch (e) {
- throw Error("ARRAYBUFFER not supported by this environment")
- }
- n = l;
- break;
- default:
- throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER")
- }
- return n
- }
- function g(e, t) {
- return e << t | e >>> 32 - t
- }
- function y(e, t) {
- return 32 < t ? (t -= 32, new a(e.b << t | e.a >>> 32 - t, e.a << t | e.b >>> 32 - t)) : 0 !== t ? new a(e.a << t | e.b >>> 32 - t, e.b << t | e.a >>> 32 - t) : e
- }
- function b(e, t) {
- return e >>> t | e << 32 - t
- }
- function w(e, t) {
- var n = null,
- n = new a(e.a, e.b);
- return n = 32 >= t ? new a(n.a >>> t | n.b << 32 - t & 4294967295, n.b >>> t | n.a << 32 - t & 4294967295) : new a(n.b >>> t - 32 | n.a << 64 - t & 4294967295, n.a >>> t - 32 | n.b << 64 - t & 4294967295)
- }
- function _(e, t) {
- return 32 >= t ? new a(e.a >>> t, e.b >>> t | e.a << 32 - t & 4294967295) : new a(0, e.a >>> t - 32)
- }
- function x(e, t, n) {
- return e & t ^ ~e & n
- }
- function k(e, t, n) {
- return new a(e.a & t.a ^ ~e.a & n.a, e.b & t.b ^ ~e.b & n.b)
- }
- function j(e, t, n) {
- return e & t ^ e & n ^ t & n
- }
- function C(e, t, n) {
- return new a(e.a & t.a ^ e.a & n.a ^ t.a & n.a, e.b & t.b ^ e.b & n.b ^ t.b & n.b)
- }
- function E(e) {
- return b(e, 2) ^ b(e, 13) ^ b(e, 22)
- }
- function N(e) {
- var t = w(e, 28),
- n = w(e, 34);
- return e = w(e, 39), new a(t.a ^ n.a ^ e.a, t.b ^ n.b ^ e.b)
- }
- function S(e) {
- return b(e, 6) ^ b(e, 11) ^ b(e, 25)
- }
- function T(e) {
- var t = w(e, 14),
- n = w(e, 18);
- return e = w(e, 41), new a(t.a ^ n.a ^ e.a, t.b ^ n.b ^ e.b)
- }
- function A(e) {
- return b(e, 7) ^ b(e, 18) ^ e >>> 3
- }
- function I(e) {
- var t = w(e, 1),
- n = w(e, 8);
- return e = _(e, 7), new a(t.a ^ n.a ^ e.a, t.b ^ n.b ^ e.b)
- }
- function O(e) {
- return b(e, 17) ^ b(e, 19) ^ e >>> 10
- }
- function D(e) {
- var t = w(e, 19),
- n = w(e, 61);
- return e = _(e, 6), new a(t.a ^ n.a ^ e.a, t.b ^ n.b ^ e.b)
- }
- function M(e, t) {
- var n = (65535 & e) + (65535 & t);
- return ((e >>> 16) + (t >>> 16) + (n >>> 16) & 65535) << 16 | 65535 & n
- }
- function $(e, t, n, i) {
- var o = (65535 & e) + (65535 & t) + (65535 & n) + (65535 & i);
- return ((e >>> 16) + (t >>> 16) + (n >>> 16) + (i >>> 16) + (o >>> 16) & 65535) << 16 | 65535 & o
- }
- function L(e, t, n, i, o) {
- var r = (65535 & e) + (65535 & t) + (65535 & n) + (65535 & i) + (65535 & o);
- return ((e >>> 16) + (t >>> 16) + (n >>> 16) + (i >>> 16) + (o >>> 16) + (r >>> 16) & 65535) << 16 | 65535 & r
- }
- function P(e, t) {
- var n, i, o;
- return n = (65535 & e.b) + (65535 & t.b), i = (e.b >>> 16) + (t.b >>> 16) + (n >>> 16), o = (65535 & i) << 16 | 65535 & n, n = (65535 & e.a) + (65535 & t.a) + (i >>> 16), i = (e.a >>> 16) + (t.a >>> 16) + (n >>> 16), new a((65535 & i) << 16 | 65535 & n, o)
- }
- function F(e, t, n, i) {
- var o, r, s;
- return o = (65535 & e.b) + (65535 & t.b) + (65535 & n.b) + (65535 & i.b), r = (e.b >>> 16) + (t.b >>> 16) + (n.b >>> 16) + (i.b >>> 16) + (o >>> 16), s = (65535 & r) << 16 | 65535 & o, o = (65535 & e.a) + (65535 & t.a) + (65535 & n.a) + (65535 & i.a) + (r >>> 16), r = (e.a >>> 16) + (t.a >>> 16) + (n.a >>> 16) + (i.a >>> 16) + (o >>> 16), new a((65535 & r) << 16 | 65535 & o, s)
- }
- function R(e, t, n, i, o) {
- var r, s, c;
- return r = (65535 & e.b) + (65535 & t.b) + (65535 & n.b) + (65535 & i.b) + (65535 & o.b), s = (e.b >>> 16) + (t.b >>> 16) + (n.b >>> 16) + (i.b >>> 16) + (o.b >>> 16) + (r >>> 16), c = (65535 & s) << 16 | 65535 & r, r = (65535 & e.a) + (65535 & t.a) + (65535 & n.a) + (65535 & i.a) + (65535 & o.a) + (s >>> 16), s = (e.a >>> 16) + (t.a >>> 16) + (n.a >>> 16) + (i.a >>> 16) + (o.a >>> 16) + (r >>> 16), new a((65535 & s) << 16 | 65535 & r, c)
- }
- function q(e) {
- var t, n = 0,
- i = 0;
- for (t = 0; t < arguments.length; t += 1) n ^= arguments[t].b, i ^= arguments[t].a;
- return new a(i, n)
- }
- function U(e) {
- var t, n = [];
- if ("SHA-1" === e) n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
- else if (0 === e.lastIndexOf("SHA-", 0)) switch (n = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428], t = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], e) {
- case "SHA-224":
- break;
- case "SHA-256":
- n = t;
- break;
- case "SHA-384":
- n = [new a(3418070365, n[0]), new a(1654270250, n[1]), new a(2438529370, n[2]), new a(355462360, n[3]), new a(1731405415, n[4]), new a(41048885895, n[5]), new a(3675008525, n[6]), new a(1203062813, n[7])];
- break;
- case "SHA-512":
- n = [new a(t[0], 4089235720), new a(t[1], 2227873595), new a(t[2], 4271175723), new a(t[3], 1595750129), new a(t[4], 2917565137), new a(t[5], 725511199), new a(t[6], 4215389547), new a(t[7], 327033209)];
- break;
- default:
- throw Error("Unknown SHA variant")
- } else {
- if (0 !== e.lastIndexOf("SHA3-", 0) && 0 !== e.lastIndexOf("SHAKE", 0)) throw Error("No SHA variants supported");
- for (e = 0; 5 > e; e += 1) n[e] = [new a(0, 0), new a(0, 0), new a(0, 0), new a(0, 0), new a(0, 0)]
- }
- return n
- }
- function H(e, t) {
- var n, i, o, r, a, s, c, u = [];
- for (n = t[0], i = t[1], o = t[2], r = t[3], a = t[4], c = 0; 80 > c; c += 1) u[c] = 16 > c ? e[c] : g(u[c - 3] ^ u[c - 8] ^ u[c - 14] ^ u[c - 16], 1), s = 20 > c ? L(g(n, 5), i & o ^ ~i & r, a, 1518500249, u[c]) : 40 > c ? L(g(n, 5), i ^ o ^ r, a, 1859775393, u[c]) : 60 > c ? L(g(n, 5), j(i, o, r), a, 2400959708, u[c]) : L(g(n, 5), i ^ o ^ r, a, 3395469782, u[c]), a = r, r = o, o = g(i, 30), i = n, n = s;
- return t[0] = M(n, t[0]), t[1] = M(i, t[1]), t[2] = M(o, t[2]), t[3] = M(r, t[3]), t[4] = M(a, t[4]), t
- }
- function V(e, t, n, i) {
- var o;
- for (o = 15 + (t + 65 >>> 9 << 4); e.length <= o;) e.push(0);
- for (e[t >>> 5] |= 128 << 24 - t % 32, t += n, e[o] = 4294967295 & t, e[o - 1] = t / 4294967296 | 0, t = e.length, o = 0; o < t; o += 16) i = H(e.slice(o, o + 16), i);
- return i
- }
- function B(e, t, n) {
- var i, o, r, s, c, u, l, d, f, p, h, m, v, g, y, b, w, _, q, U, H, V, B, z = [];
- if ("SHA-224" === n || "SHA-256" === n) p = 64, m = 1, V = Number, v = M, g = $, y = L, b = A, w = O, _ = E, q = S, H = j, U = x, B = W;
- else {
- if ("SHA-384" !== n && "SHA-512" !== n) throw Error("Unexpected error in SHA-2 implementation");
- p = 80, m = 2, V = a, v = P, g = F, y = R, b = I, w = D, _ = N, q = T, H = C, U = k, B = J
- }
- for (n = t[0], i = t[1], o = t[2], r = t[3], s = t[4], c = t[5], u = t[6], l = t[7], h = 0; h < p; h += 1) 16 > h ? (f = h * m, d = e.length <= f ? 0 : e[f], f = e.length <= f + 1 ? 0 : e[f + 1], z[h] = new V(d, f)) : z[h] = g(w(z[h - 2]), z[h - 7], b(z[h - 15]), z[h - 16]), d = y(l, q(s), U(s, c, u), B[h], z[h]), f = v(_(n), H(n, i, o)), l = u, u = c, c = s, s = v(r, d), r = o, o = i, i = n, n = v(d, f);
- return t[0] = v(n, t[0]), t[1] = v(i, t[1]), t[2] = v(o, t[2]), t[3] = v(r, t[3]), t[4] = v(s, t[4]), t[5] = v(c, t[5]), t[6] = v(u, t[6]), t[7] = v(l, t[7]), t
- }
- function z(e, t) {
- var n, i, o, r, s = [],
- c = [];
- if (null !== e)
- for (i = 0; i < e.length; i += 2) t[(i >>> 1) % 5][(i >>> 1) / 5 | 0] = q(t[(i >>> 1) % 5][(i >>> 1) / 5 | 0], new a((255 & e[i + 1]) << 24 | (65280 & e[i + 1]) << 8 | (16711680 & e[i + 1]) >>> 8 | e[i + 1] >>> 24, (255 & e[i]) << 24 | (65280 & e[i]) << 8 | (16711680 & e[i]) >>> 8 | e[i] >>> 24));
- for (n = 0; 24 > n; n += 1) {
- for (r = U("SHA3-"), i = 0; 5 > i; i += 1) s[i] = q(t[i][0], t[i][1], t[i][2], t[i][3], t[i][4]);
- for (i = 0; 5 > i; i += 1) c[i] = q(s[(i + 4) % 5], y(s[(i + 1) % 5], 1));
- for (i = 0; 5 > i; i += 1)
- for (o = 0; 5 > o; o += 1) t[i][o] = q(t[i][o], c[i]);
- for (i = 0; 5 > i; i += 1)
- for (o = 0; 5 > o; o += 1) r[o][(2 * i + 3 * o) % 5] = y(t[i][o], Y[i][o]);
- for (i = 0; 5 > i; i += 1)
- for (o = 0; 5 > o; o += 1) t[i][o] = q(r[i][o], new a(~r[(i + 1) % 5][o].a & r[(i + 2) % 5][o].a, ~r[(i + 1) % 5][o].b & r[(i + 2) % 5][o].b));
- t[0][0] = q(t[0][0], G[n])
- }
- return t
- }
- var W, J, Y, G;
- W = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298], J = [new a(W[0], 3609767458), new a(W[1], 602891725), new a(W[2], 3964484399), new a(W[3], 2173295548), new a(W[4], 4081628472), new a(W[5], 3053834265), new a(W[6], 2937671579), new a(W[7], 3664609560), new a(W[8], 2734883394), new a(W[9], 1164996542), new a(W[10], 1323610764), new a(W[11], 3590304994), new a(W[12], 4068182383), new a(W[13], 991336113), new a(W[14], 633803317), new a(W[15], 3479774868), new a(W[16], 2666613458), new a(W[17], 944711139), new a(W[18], 2341262773), new a(W[19], 2007800933), new a(W[20], 1495990901), new a(W[21], 1856431235), new a(W[22], 3175218132), new a(W[23], 2198950837), new a(W[24], 3999719339), new a(W[25], 766784016), new a(W[26], 2566594879), new a(W[27], 3203337956), new a(W[28], 1034457026), new a(W[29], 2466948901), new a(W[30], 3758326383), new a(W[31], 168717936), new a(W[32], 1188179964), new a(W[33], 1546045734), new a(W[34], 1522805485), new a(W[35], 2643833823), new a(W[36], 2343527390), new a(W[37], 1014477480), new a(W[38], 1206759142), new a(W[39], 344077627), new a(W[40], 1290863460), new a(W[41], 3158454273), new a(W[42], 3505952657), new a(W[43], 106217008), new a(W[44], 3606008344), new a(W[45], 1432725776), new a(W[46], 1467031594), new a(W[47], 851169720), new a(W[48], 3100823752), new a(W[49], 1363258195), new a(W[50], 3750685593), new a(W[51], 3785050280), new a(W[52], 3318307427), new a(W[53], 3812723403), new a(W[54], 2003034995), new a(W[55], 3602036899), new a(W[56], 1575990012), new a(W[57], 1125592928), new a(W[58], 2716904306), new a(W[59], 442776044), new a(W[60], 593698344), new a(W[61], 3733110249), new a(W[62], 2999351573), new a(W[63], 3815920427), new a(3391569614, 3928383900), new a(3515267271, 566280711), new a(3940187606, 3454069534), new a(4118630271, 4000239992), new a(116418474, 1914138554), new a(174292421, 2731055270), new a(289380356, 3203993006), new a(460393269, 320620315), new a(685471733, 587496836), new a(852142971, 1086792851), new a(1017036298, 365543100), new a(1126000580, 2618297676), new a(1288033470, 3409855158), new a(1501505948, 4234509866), new a(1607167915, 987167468), new a(1816402316, 1246189591)], G = [new a(0, 1), new a(0, 32898), new a(2147483648, 32906), new a(2147483648, 2147516416), new a(0, 32907), new a(0, 2147483649), new a(2147483648, 2147516545), new a(2147483648, 32777), new a(0, 138), new a(0, 136), new a(0, 2147516425), new a(0, 2147483658), new a(0, 2147516555), new a(2147483648, 139), new a(2147483648, 32905), new a(2147483648, 32771), new a(2147483648, 32770), new a(2147483648, 128), new a(0, 32778), new a(2147483648, 2147483658), new a(2147483648, 2147516545), new a(2147483648, 32896), new a(0, 2147483649), new a(2147483648, 2147516424)], Y = [
- [0, 36, 3, 41, 18],
- [1, 44, 10, 45, 2],
- [62, 6, 43, 15, 61],
- [28, 55, 25, 21, 56],
- [27, 20, 39, 8, 14]
- ], void 0 !== (i = function() {
- return r
- }.call(t, n, t, e)) && (e.exports = i)
- }()
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-share-button-tracking").on("click", function() {
- var e = i(this);
- window.ga("send", "social", {
- socialNetwork: e.data("ga-network"),
- socialAction: "share",
- socialTarget: location.href,
- screenName: e.data("ga-screen")
- })
- })
- })
- }, function(e, t) {
- ! function(t, n) {
- var i = function(e, t) {
- "use strict";
- if (t.getElementsByClassName) {
- var n, i = t.documentElement,
- o = e.Date,
- r = e.HTMLPictureElement,
- a = e.addEventListener,
- s = e.setTimeout,
- c = e.requestAnimationFrame || s,
- u = e.requestIdleCallback,
- l = /^picture$/i,
- d = ["load", "error", "lazyincluded", "_lazyloaded"],
- f = {},
- p = Array.prototype.forEach,
- h = function(e, t) {
- return f[t] || (f[t] = new RegExp("(\\s|^)" + t + "(\\s|$)")), f[t].test(e.getAttribute("class") || "") && f[t]
- },
- m = function(e, t) {
- h(e, t) || e.setAttribute("class", (e.getAttribute("class") || "").trim() + " " + t)
- },
- v = function(e, t) {
- var n;
- (n = h(e, t)) && e.setAttribute("class", (e.getAttribute("class") || "").replace(n, " "))
- },
- g = function(e, t, n) {
- var i = n ? "addEventListener" : "removeEventListener";
- n && g(e, t), d.forEach(function(n) {
- e[i](n, t)
- })
- },
- y = function(e, n, i, o, r) {
- var a = t.createEvent("CustomEvent");
- return a.initCustomEvent(n, !o, !r, i || {}), e.dispatchEvent(a), a
- },
- b = function(t, i) {
- var o;
- !r && (o = e.picturefill || n.pf) ? o({
- reevaluate: !0,
- elements: [t]
- }) : i && i.src && (t.src = i.src)
- },
- w = function(e, t) {
- return (getComputedStyle(e, null) || {})[t]
- },
- _ = function(e, t, i) {
- for (i = i || e.offsetWidth; i < n.minSize && t && !e._lazysizesWidth;) i = t.offsetWidth, t = t.parentNode;
- return i
- },
- x = function() {
- var e, n, i = [],
- o = function() {
- var t;
- for (e = !0, n = !1; i.length;) t = i.shift(), t[0].apply(t[1], t[2]);
- e = !1
- },
- r = function(r) {
- e ? r.apply(this, arguments) : (i.push([r, this, arguments]), n || (n = !0, (t.hidden ? s : c)(o)))
- };
- return r._lsFlush = o, r
- }(),
- k = function(e, t) {
- return t ? function() {
- x(e)
- } : function() {
- var t = this,
- n = arguments;
- x(function() {
- e.apply(t, n)
- })
- }
- },
- j = function(e) {
- var t, n = 0,
- i = 666,
- r = function() {
- t = !1, n = o.now(), e()
- },
- a = u ? function() {
- u(r, {
- timeout: i
- }), 666 !== i && (i = 666)
- } : k(function() {
- s(r)
- }, !0);
- return function(e) {
- var r;
- (e = !0 === e) && (i = 44), t || (t = !0, r = 125 - (o.now() - n), r < 0 && (r = 0), e || r < 9 && u ? a() : s(a, r))
- }
- },
- C = function(e) {
- var t, n, i = function() {
- t = null, e()
- },
- r = function() {
- var e = o.now() - n;
- e < 99 ? s(r, 99 - e) : (u || i)(i)
- };
- return function() {
- n = o.now(), t || (t = s(r, 99))
- }
- },
- E = function() {
- var r, c, u, d, f, _, E, S, T, A, I, O, D, M, $, L = /^img$/i,
- P = /^iframe$/i,
- F = "onscroll" in e && !/glebot/.test(navigator.userAgent),
- R = 0,
- q = 0,
- U = -1,
- H = function(e) {
- q--, e && e.target && g(e.target, H), (!e || q < 0 || !e.target) && (q = 0)
- },
- V = function(e, n) {
- var o, r = e,
- a = "hidden" == w(t.body, "visibility") || "hidden" != w(e, "visibility");
- for (T -= n, O += n, A -= n, I += n; a && (r = r.offsetParent) && r != t.body && r != i;)(a = (w(r, "opacity") || 1) > 0) && "visible" != w(r, "overflow") && (o = r.getBoundingClientRect(), a = I > o.left && A < o.right && O > o.top - 1 && T < o.bottom + 1);
- return a
- },
- B = function() {
- var e, o, a, s, l, d, p, h, m;
- if ((f = n.loadMode) && q < 8 && (e = r.length)) {
- o = 0, U++, null == M && ("expand" in n || (n.expand = i.clientHeight > 500 && i.clientWidth > 500 ? 500 : 370), D = n.expand, M = D * n.expFactor), R < M && q < 1 && U > 2 && f > 2 && !t.hidden ? (R = M, U = 0) : R = f > 1 && U > 1 && q < 6 ? D : 0;
- for (; o < e; o++)
- if (r[o] && !r[o]._lazyRace)
- if (F)
- if ((h = r[o].getAttribute("data-expand")) && (d = 1 * h) || (d = R), m !== d && (E = innerWidth + d * $, S = innerHeight + d, p = -1 * d, m = d), a = r[o].getBoundingClientRect(), (O = a.bottom) >= p && (T = a.top) <= S && (I = a.right) >= p * $ && (A = a.left) <= E && (O || I || A || T) && (u && q < 3 && !h && (f < 3 || U < 4) || V(r[o], d))) {
- if (Q(r[o]), l = !0, q > 9) break
- } else !l && u && !s && q < 4 && U < 4 && f > 2 && (c[0] || n.preloadAfterLoad) && (c[0] || !h && (O || I || A || T || "auto" != r[o].getAttribute(n.sizesAttr))) && (s = c[0] || r[o]);
- else Q(r[o]);
- s && !l && Q(s)
- }
- },
- z = j(B),
- W = function(e) {
- m(e.target, n.loadedClass), v(e.target, n.loadingClass), g(e.target, Y)
- },
- J = k(W),
- Y = function(e) {
- J({
- target: e.target
- })
- },
- G = function(e, t) {
- try {
- e.contentWindow.location.replace(t)
- } catch (n) {
- e.src = t
- }
- },
- X = function(e) {
- var t, i, o = e.getAttribute(n.srcsetAttr);
- (t = n.customMedia[e.getAttribute("data-media") || e.getAttribute("media")]) && e.setAttribute("media", t), o && e.setAttribute("srcset", o), t && (i = e.parentNode, i.insertBefore(e.cloneNode(), e), i.removeChild(e))
- },
- K = k(function(e, t, i, o, r) {
- var a, c, u, f, h, w;
- (h = y(e, "lazybeforeunveil", t)).defaultPrevented || (o && (i ? m(e, n.autosizesClass) : e.setAttribute("sizes", o)), c = e.getAttribute(n.srcsetAttr), a = e.getAttribute(n.srcAttr), r && (u = e.parentNode, f = u && l.test(u.nodeName || "")), w = t.firesLoad || "src" in e && (c || a || f), h = {
- target: e
- }, w && (g(e, H, !0), clearTimeout(d), d = s(H, 2500), m(e, n.loadingClass), g(e, Y, !0)), f && p.call(u.getElementsByTagName("source"), X), c ? e.setAttribute("srcset", c) : a && !f && (P.test(e.nodeName) ? G(e, a) : e.src = a), (c || f) && b(e, {
- src: a
- })), x(function() {
- e._lazyRace && delete e._lazyRace, v(e, n.lazyClass), w && !e.complete || (w ? H(h) : q--, W(h))
- })
- }),
- Q = function(e) {
- var t, i = L.test(e.nodeName),
- o = i && (e.getAttribute(n.sizesAttr) || e.getAttribute("sizes")),
- r = "auto" == o;
- (!r && u || !i || !e.src && !e.srcset || e.complete || h(e, n.errorClass)) && (t = y(e, "lazyunveilread").detail, r && N.updateElem(e, !0, e.offsetWidth), e._lazyRace = !0, q++, K(e, t, r, o, i))
- },
- Z = function() {
- if (!u) {
- if (o.now() - _ < 999) return void s(Z, 999);
- var e = C(function() {
- n.loadMode = 3, z()
- });
- u = !0, n.loadMode = 3, z(), a("scroll", function() {
- 3 == n.loadMode && (n.loadMode = 2), e()
- }, !0)
- }
- };
- return {
- _: function() {
- _ = o.now(), r = t.getElementsByClassName(n.lazyClass), c = t.getElementsByClassName(n.lazyClass + " " + n.preloadClass), $ = n.hFac, a("scroll", z, !0), a("resize", z, !0), e.MutationObserver ? new MutationObserver(z).observe(i, {
- childList: !0,
- subtree: !0,
- attributes: !0
- }) : (i.addEventListener("DOMNodeInserted", z, !0), i.addEventListener("DOMAttrModified", z, !0), setInterval(z, 999)), a("hashchange", z, !0), ["focus", "mouseover", "click", "load", "transitionend", "animationend", "webkitAnimationEnd"].forEach(function(e) {
- t.addEventListener(e, z, !0)
- }), /d$|^c/.test(t.readyState) ? Z() : (a("load", Z), t.addEventListener("DOMContentLoaded", z), s(Z, 2e4)), r.length ? B() : z()
- },
- checkElems: z,
- unveil: Q
- }
- }(),
- N = function() {
- var e, i = k(function(e, t, n, i) {
- var o, r, a;
- if (e._lazysizesWidth = i, i += "px", e.setAttribute("sizes", i), l.test(t.nodeName || ""))
- for (o = t.getElementsByTagName("source"), r = 0, a = o.length; r < a; r++) o[r].setAttribute("sizes", i);
- n.detail.dataAttr || b(e, n.detail)
- }),
- o = function(e, t, n) {
- var o, r = e.parentNode;
- r && (n = _(e, r, n), o = y(e, "lazybeforesizes", {
- width: n,
- dataAttr: !!t
- }), o.defaultPrevented || (n = o.detail.width) && n !== e._lazysizesWidth && i(e, r, o, n))
- },
- r = function() {
- var t, n = e.length;
- if (n)
- for (t = 0; t < n; t++) o(e[t])
- },
- s = C(r);
- return {
- _: function() {
- e = t.getElementsByClassName(n.autosizesClass), a("resize", s)
- },
- checkElems: s,
- updateElem: o
- }
- }(),
- S = function() {
- S.i || (S.i = !0, N._(), E._())
- };
- return function() {
- var t, i = {
- lazyClass: "lazyload",
- loadedClass: "lazyloaded",
- loadingClass: "lazyloading",
- preloadClass: "lazypreload",
- errorClass: "lazyerror",
- autosizesClass: "lazyautosizes",
- srcAttr: "data-src",
- srcsetAttr: "data-srcset",
- sizesAttr: "data-sizes",
- minSize: 40,
- customMedia: {},
- init: !0,
- expFactor: 1.5,
- hFac: .8,
- loadMode: 2
- };
- n = e.lazySizesConfig || e.lazysizesConfig || {};
- for (t in i) t in n || (n[t] = i[t]);
- e.lazySizesConfig = n, s(function() {
- n.init && S()
- })
- }(), {
- cfg: n,
- autoSizer: N,
- loader: E,
- init: S,
- uP: b,
- aC: m,
- rC: v,
- hC: h,
- fire: y,
- gW: _,
- rAF: x
- }
- }
- }(t, t.document);
- t.lazySizes = i, "object" == typeof e && e.exports && (e.exports = i)
- }(window)
- }, , function(e, t, n) {
- "use strict";
- function i(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var o = function() {
- function e(e, t) {
- for (var n = 0; n < t.length; n++) {
- var i = t[n];
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i)
- }
- }
- return function(t, n, i) {
- return n && e(t.prototype, n), i && e(t, i), t
- }
- }(),
- r = n(2),
- a = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(r),
- s = (0, a.default)('meta[name="csrf_token"]').attr("content"),
- c = function() {
- function e() {
- i(this, e)
- }
- return o(e, null, [{
- key: "getToken",
- value: function() {
- return s
- }
- }, {
- key: "injectTokenToForm",
- value: function(e) {
- var t = (0, a.default)(e);
- t.attr("method") && "GET" !== t.attr("method").toUpperCase() && !t.find("input[name=csrf_token]").length && t.append((0, a.default)("<input>").attr({
- type: "hidden",
- name: "csrf_token",
- value: s
- }))
- }
- }]), e
- }();
- t.default = c
- }, , , , , , , function(e, t, n) {
- "use strict";
- function i() {
- var e = window.$;
- e(document).ready(function() {
- e(".url2embed").url2embed(o)
- })
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = i;
- var o = t.DEFAULT_URL2EMBED_OPTIONS = {
- defaultWidth: 600,
- defaultAspect: 1.78,
- defaultAlign: "center",
- predefined: {
- "embed-left": {
- align: "left"
- },
- "embed-right": {
- align: "right"
- }
- }
- }
- }, function(e, t, n) {
- "use strict";
- function i() {
- u || (u = !0, a.each(["anime", "manga", "character", "person", "club", "user", "news", "featured", "forum", "separator"], function(e) {
- s.component("incremental-result-item-" + e, {
- template: r("#incremental-result-item-" + e).text(),
- props: ["item", "url", "focus"],
- computed: {
- mediaTypeWithStartYear: function() {
- return this.item.payload.start_year > 0 ? this.item.payload.media_type + ", " + this.item.payload.start_year : this.item.payload.media_type
- }
- }
- })
- }))
- }
- function o(e, t) {
- i(), r(e).find(".incrementalSearchResultList").css({
- left: t.resultPosition.left,
- top: t.resultPosition.top,
- width: t.resultPosition.width
- });
- var n = r(e + " input[type='text'][name='" + t.query + "']"),
- o = n.val() || "";
- n.removeAttr("value");
- var u = void 0,
- l = new s({
- el: e,
- data: {
- keyword: o,
- items: [],
- isFocused: !1,
- selection: -1,
- type: t.type ? t.type : "anime",
- isRequesting: !1
- },
- watch: {
- keyword: function(e) {
- if (this.selection = -1, "" === e) return this.abortRequest(), void(this.items = []);
- this.executeRequest()
- },
- type: function() {
- this.keyword.length > 0 && (this.selection = -1, this.items = [], this.executeRequest())
- }
- },
- methods: {
- abortRequest: function() {
- this.isRequesting && (u.abort(), this.isRequesting = !1)
- },
- executeRequest: function() {
- this.abortRequest(), this.isRequesting = !0, u = r.ajax({
- url: "/search/prefix.json",
- type: "GET",
- data: {
- type: this.type,
- keyword: this.keyword,
- v: c
- },
- dataType: "json",
- cache: !0,
- timeout: 1e4
- }).done(function(e) {
- var t = [],
- n = e.categories;
- a.each(n, function(e) {
- e.type !== l.type && t.push({
- type: "separator",
- name: e.type
- }), t = t.concat(e.items)
- }), l.items = t
- }).always(function() {
- l.isRequesting = !1
- })
- },
- resolveComponent: function(e) {
- return "incremental-result-item-" + e.type
- },
- moveSelection: function(e) {
- var t = this.items.length + 1,
- n = this.selection;
- do {
- n = (n + e + 1 + t) % t - 1
- } while (-1 !== n && "separator" === this.items[n].type);
- this.selection = n
- },
- generateItemPageUrl: function(e) {
- return "separator" === e.type ? "" : t.generateItemPageUrl ? t.generateItemPageUrl(e) : e.url + (-1 !== e.url.indexOf("?") ? "&" : "?") + "q=" + encodeURIComponent(this.keyword)
- },
- jump: function() {
- return this.abortRequest(), -1 !== this.selection ? (location.href = this.generateItemPageUrl(this.items[this.selection]), !0) : (this.canSearch && (location.href = this.resultPageUrl), !1)
- }
- },
- computed: {
- showResult: function() {
- return this.isFocused && (this.showViewAllLink || this.items.length > 0)
- },
- showViewAllLink: function() {
- return this.canSearch && t.showViewAllLink
- },
- canSearch: function() {
- return encodeURIComponent(this.keyword).replace(/%../g, "x").length >= 3
- },
- resultPageUrl: function() {
- if (this.isFocused, !0) {
- return {
- all: "/search/all?",
- anime: "/anime.php?",
- manga: "/manga.php?",
- character: "/character.php?",
- person: "/people.php?",
- club: "/clubs.php?",
- user: "/users.php?",
- news: "/news/search?",
- featured: "/featured/search?",
- forum: "/forum/search?"
- }[this.type] + t.generateResultPageParams(this.type, this.keyword)
- }
- }
- }
- });
- return l
- }
- var r = window.$,
- a = window._,
- s = window.sVue,
- c = 1,
- u = !1;
- e.exports = {
- initializeVueModel: o
- }
- }, function(e, t, n) {
- "use strict";
- (function(t, n) {
- /*!
- * Vue.js v2.1.10
- * (c) 2014-2017 Evan You
- * Released under the MIT License.
- */
- function i(e) {
- return null == e ? "" : "object" == typeof e ? JSON.stringify(e, null, 2) : String(e)
- }
- function o(e) {
- var t = parseFloat(e);
- return isNaN(t) ? e : t
- }
- function r(e, t) {
- for (var n = Object.create(null), i = e.split(","), o = 0; o < i.length; o++) n[i[o]] = !0;
- return t ? function(e) {
- return n[e.toLowerCase()]
- } : function(e) {
- return n[e]
- }
- }
- function a(e, t) {
- if (e.length) {
- var n = e.indexOf(t);
- if (n > -1) return e.splice(n, 1)
- }
- }
- function s(e, t) {
- return uo.call(e, t)
- }
- function c(e) {
- return "string" == typeof e || "number" == typeof e
- }
- function u(e) {
- var t = Object.create(null);
- return function(n) {
- return t[n] || (t[n] = e(n))
- }
- }
- function l(e, t) {
- function n(n) {
- var i = arguments.length;
- return i ? i > 1 ? e.apply(t, arguments) : e.call(t, n) : e.call(t)
- }
- return n._length = e.length, n
- }
- function d(e, t) {
- t = t || 0;
- for (var n = e.length - t, i = new Array(n); n--;) i[n] = e[n + t];
- return i
- }
- function f(e, t) {
- for (var n in t) e[n] = t[n];
- return e
- }
- function p(e) {
- return null !== e && "object" == typeof e
- }
- function h(e) {
- return vo.call(e) === go
- }
- function m(e) {
- for (var t = {}, n = 0; n < e.length; n++) e[n] && f(t, e[n]);
- return t
- }
- function v() {}
- function g(e) {
- return e.reduce(function(e, t) {
- return e.concat(t.staticKeys || [])
- }, []).join(",")
- }
- function y(e, t) {
- var n = p(e),
- i = p(t);
- return n && i ? JSON.stringify(e) === JSON.stringify(t) : !n && !i && String(e) === String(t)
- }
- function b(e, t) {
- for (var n = 0; n < e.length; n++)
- if (y(e[n], t)) return n;
- return -1
- }
- function w(e) {
- var t = (e + "").charCodeAt(0);
- return 36 === t || 95 === t
- }
- function _(e, t, n, i) {
- Object.defineProperty(e, t, {
- value: n,
- enumerable: !!i,
- writable: !0,
- configurable: !0
- })
- }
- function x(e) {
- if (!_o.test(e)) {
- var t = e.split(".");
- return function(e) {
- for (var n = 0; n < t.length; n++) {
- if (!e) return;
- e = e[t[n]]
- }
- return e
- }
- }
- }
- function k(e) {
- return /native code/.test(e.toString())
- }
- function j(e) {
- Fo.target && Ro.push(Fo.target), Fo.target = e
- }
- function C() {
- Fo.target = Ro.pop()
- }
- function E(e, t) {
- e.__proto__ = t
- }
- function N(e, t, n) {
- for (var i = 0, o = n.length; i < o; i++) {
- var r = n[i];
- _(e, r, t[r])
- }
- }
- function S(e, t) {
- if (p(e)) {
- var n;
- return s(e, "__ob__") && e.__ob__ instanceof Bo ? n = e.__ob__ : Vo.shouldConvert && !Ao() && (Array.isArray(e) || h(e)) && Object.isExtensible(e) && !e._isVue && (n = new Bo(e)), t && n && n.vmCount++, n
- }
- }
- function T(e, n, i, o) {
- var r = new Fo,
- a = Object.getOwnPropertyDescriptor(e, n);
- if (!a || !1 !== a.configurable) {
- var s = a && a.get,
- c = a && a.set,
- u = S(i);
- Object.defineProperty(e, n, {
- enumerable: !0,
- configurable: !0,
- get: function() {
- var t = s ? s.call(e) : i;
- return Fo.target && (r.depend(), u && u.dep.depend(), Array.isArray(t) && O(t)), t
- },
- set: function(n) {
- var a = s ? s.call(e) : i;
- n === a || n !== n && a !== a || ("production" !== t.env.NODE_ENV && o && o(), c ? c.call(e, n) : i = n, u = S(n), r.notify())
- }
- })
- }
- }
- function A(e, n, i) {
- if (Array.isArray(e)) return e.length = Math.max(e.length, n), e.splice(n, 1, i), i;
- if (s(e, n)) return void(e[n] = i);
- var o = e.__ob__;
- return e._isVue || o && o.vmCount ? void("production" !== t.env.NODE_ENV && Mo("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.")) : o ? (T(o.value, n, i), o.dep.notify(), i) : void(e[n] = i)
- }
- function I(e, n) {
- var i = e.__ob__;
- if (e._isVue || i && i.vmCount) return void("production" !== t.env.NODE_ENV && Mo("Avoid deleting properties on a Vue instance or its root $data - just set it to null."));
- s(e, n) && (delete e[n], i && i.dep.notify())
- }
- function O(e) {
- for (var t = void 0, n = 0, i = e.length; n < i; n++) t = e[n], t && t.__ob__ && t.__ob__.dep.depend(), Array.isArray(t) && O(t)
- }
- function D(e, t) {
- if (!t) return e;
- for (var n, i, o, r = Object.keys(t), a = 0; a < r.length; a++) n = r[a], i = e[n], o = t[n], s(e, n) ? h(i) && h(o) && D(i, o) : A(e, n, o);
- return e
- }
- function M(e, t) {
- return t ? e ? e.concat(t) : Array.isArray(t) ? t : [t] : e
- }
- function $(e, t) {
- var n = Object.create(e || null);
- return t ? f(n, t) : n
- }
- function L(e) {
- for (var t in e.components) {
- var n = t.toLowerCase();
- (co(n) || wo.isReservedTag(n)) && Mo("Do not use built-in or reserved HTML elements as component id: " + t)
- }
- }
- function P(e) {
- var n = e.props;
- if (n) {
- var i, o, r, a = {};
- if (Array.isArray(n))
- for (i = n.length; i--;) o = n[i], "string" == typeof o ? (r = fo(o), a[r] = {
- type: null
- }) : "production" !== t.env.NODE_ENV && Mo("props must be strings when using array syntax.");
- else if (h(n))
- for (var s in n) o = n[s], r = fo(s), a[r] = h(o) ? o : {
- type: o
- };
- e.props = a
- }
- }
- function F(e) {
- var t = e.directives;
- if (t)
- for (var n in t) {
- var i = t[n];
- "function" == typeof i && (t[n] = {
- bind: i,
- update: i
- })
- }
- }
- function R(e, n, i) {
- function o(t) {
- var o = zo[t] || Jo;
- d[t] = o(e[t], n[t], i, t)
- }
- "production" !== t.env.NODE_ENV && L(n), P(n), F(n);
- var r = n.extends;
- if (r && (e = "function" == typeof r ? R(e, r.options, i) : R(e, r, i)), n.mixins)
- for (var a = 0, c = n.mixins.length; a < c; a++) {
- var u = n.mixins[a];
- u.prototype instanceof He && (u = u.options), e = R(e, u, i)
- }
- var l, d = {};
- for (l in e) o(l);
- for (l in n) s(e, l) || o(l);
- return d
- }
- function q(e, n, i, o) {
- if ("string" == typeof i) {
- var r = e[n];
- if (s(r, i)) return r[i];
- var a = fo(i);
- if (s(r, a)) return r[a];
- var c = po(a);
- if (s(r, c)) return r[c];
- var u = r[i] || r[a] || r[c];
- return "production" !== t.env.NODE_ENV && o && !u && Mo("Failed to resolve " + n.slice(0, -1) + ": " + i, e), u
- }
- }
- function U(e, n, i, o) {
- var r = n[e],
- a = !s(i, e),
- c = i[e];
- if (W(Boolean, r.type) && (a && !s(r, "default") ? c = !1 : W(String, r.type) || "" !== c && c !== mo(e) || (c = !0)), void 0 === c) {
- c = H(o, r, e);
- var u = Vo.shouldConvert;
- Vo.shouldConvert = !0, S(c), Vo.shouldConvert = u
- }
- return "production" !== t.env.NODE_ENV && V(r, e, c, o, a), c
- }
- function H(e, n, i) {
- if (s(n, "default")) {
- var o = n.default;
- return p(o) && "production" !== t.env.NODE_ENV && Mo('Invalid default value for prop "' + i + '": Props with type Object/Array must use a factory function to return the default value.', e), e && e.$options.propsData && void 0 === e.$options.propsData[i] && void 0 !== e[i] ? e[i] : "function" == typeof o && n.type !== Function ? o.call(e) : o
- }
- }
- function V(e, t, n, i, o) {
- if (e.required && o) return void Mo('Missing required prop: "' + t + '"', i);
- if (null != n || e.required) {
- var r = e.type,
- a = !r || !0 === r,
- s = [];
- if (r) {
- Array.isArray(r) || (r = [r]);
- for (var c = 0; c < r.length && !a; c++) {
- var u = B(n, r[c]);
- s.push(u.expectedType || ""), a = u.valid
- }
- }
- if (!a) return void Mo('Invalid prop: type check failed for prop "' + t + '". Expected ' + s.map(po).join(", ") + ", got " + Object.prototype.toString.call(n).slice(8, -1) + ".", i);
- var l = e.validator;
- l && (l(n) || Mo('Invalid prop: custom validator check failed for prop "' + t + '".', i))
- }
- }
- function B(e, t) {
- var n, i = z(t);
- return n = "String" === i ? typeof e == (i = "string") : "Number" === i ? typeof e == (i = "number") : "Boolean" === i ? typeof e == (i = "boolean") : "Function" === i ? typeof e == (i = "function") : "Object" === i ? h(e) : "Array" === i ? Array.isArray(e) : e instanceof t, {
- valid: n,
- expectedType: i
- }
- }
- function z(e) {
- var t = e && e.toString().match(/^\s*function (\w+)/);
- return t && t[1]
- }
- function W(e, t) {
- if (!Array.isArray(t)) return z(t) === z(e);
- for (var n = 0, i = t.length; n < i; n++)
- if (z(t[n]) === z(e)) return !0;
- return !1
- }
- function J(e) {
- return new tr(void 0, void 0, void 0, String(e))
- }
- function Y(e) {
- var t = new tr(e.tag, e.data, e.children, e.text, e.elm, e.context, e.componentOptions);
- return t.ns = e.ns, t.isStatic = e.isStatic, t.key = e.key, t.isCloned = !0, t
- }
- function G(e) {
- for (var t = new Array(e.length), n = 0; n < e.length; n++) t[n] = Y(e[n]);
- return t
- }
- function X(e, n, i, o, r) {
- if (e) {
- var a = i.$options._base;
- if (p(e) && (e = a.extend(e)), "function" != typeof e) return void("production" !== t.env.NODE_ENV && Mo("Invalid Component definition: " + String(e), i));
- if (!e.cid)
- if (e.resolved) e = e.resolved;
- else if (!(e = ie(e, a, function() {
- i.$forceUpdate()
- }))) return;
- Ue(e), n = n || {};
- var s = oe(n, e);
- if (e.options.functional) return K(e, s, n, i, o);
- var c = n.on;
- n.on = n.nativeOn, e.options.abstract && (n = {}), ae(n);
- var u = e.options.name || r;
- return new tr("vue-component-" + e.cid + (u ? "-" + u : ""), n, void 0, void 0, void 0, i, {
- Ctor: e,
- propsData: s,
- listeners: c,
- tag: r,
- children: o
- })
- }
- }
- function K(e, t, n, i, o) {
- var r = {},
- a = e.options.props;
- if (a)
- for (var s in a) r[s] = U(s, a, t);
- var c = Object.create(i),
- u = function(e, t, n, i) {
- return me(c, e, t, n, i, !0)
- },
- l = e.options.render.call(null, u, {
- props: r,
- data: n,
- parent: i,
- children: o,
- slots: function() {
- return be(o, i)
- }
- });
- return l instanceof tr && (l.functionalContext = i, n.slot && ((l.data || (l.data = {})).slot = n.slot)), l
- }
- function Q(e, t, n, i) {
- var o = e.componentOptions,
- r = {
- _isComponent: !0,
- parent: t,
- propsData: o.propsData,
- _componentTag: o.tag,
- _parentVnode: e,
- _parentListeners: o.listeners,
- _renderChildren: o.children,
- _parentElm: n || null,
- _refElm: i || null
- },
- a = e.data.inlineTemplate;
- return a && (r.render = a.render, r.staticRenderFns = a.staticRenderFns), new o.Ctor(r)
- }
- function Z(e, t, n, i) {
- if (!e.componentInstance || e.componentInstance._isDestroyed) {
- (e.componentInstance = Q(e, lr, n, i)).$mount(t ? e.elm : void 0, t)
- } else if (e.data.keepAlive) {
- var o = e;
- ee(o, o)
- }
- }
- function ee(e, t) {
- var n = t.componentOptions;
- (t.componentInstance = e.componentInstance)._updateFromParent(n.propsData, n.listeners, t, n.children)
- }
- function te(e) {
- e.componentInstance._isMounted || (e.componentInstance._isMounted = !0, Ce(e.componentInstance, "mounted")), e.data.keepAlive && (e.componentInstance._inactive = !1, Ce(e.componentInstance, "activated"))
- }
- function ne(e) {
- e.componentInstance._isDestroyed || (e.data.keepAlive ? (e.componentInstance._inactive = !0, Ce(e.componentInstance, "deactivated")) : e.componentInstance.$destroy())
- }
- function ie(e, n, i) {
- if (!e.requested) {
- e.requested = !0;
- var o = e.pendingCallbacks = [i],
- r = !0,
- a = function(t) {
- if (p(t) && (t = n.extend(t)), e.resolved = t, !r)
- for (var i = 0, a = o.length; i < a; i++) o[i](t)
- },
- s = function(n) {
- "production" !== t.env.NODE_ENV && Mo("Failed to resolve async component: " + String(e) + (n ? "\nReason: " + n : ""))
- },
- c = e(a, s);
- return c && "function" == typeof c.then && !e.resolved && c.then(a, s), r = !1, e.resolved
- }
- e.pendingCallbacks.push(i)
- }
- function oe(e, t) {
- var n = t.options.props;
- if (n) {
- var i = {},
- o = e.attrs,
- r = e.props,
- a = e.domProps;
- if (o || r || a)
- for (var s in n) {
- var c = mo(s);
- re(i, r, s, c, !0) || re(i, o, s, c) || re(i, a, s, c)
- }
- return i
- }
- }
- function re(e, t, n, i, o) {
- if (t) {
- if (s(t, n)) return e[n] = t[n], o || delete t[n], !0;
- if (s(t, i)) return e[n] = t[i], o || delete t[i], !0
- }
- return !1
- }
- function ae(e) {
- e.hook || (e.hook = {});
- for (var t = 0; t < ar.length; t++) {
- var n = ar[t],
- i = e.hook[n],
- o = rr[n];
- e.hook[n] = i ? se(o, i) : o
- }
- }
- function se(e, t) {
- return function(n, i, o, r) {
- e(n, i, o, r), t(n, i, o, r)
- }
- }
- function ce(e, t, n, i) {
- i += t;
- var o = e.__injected || (e.__injected = {});
- if (!o[i]) {
- o[i] = !0;
- var r = e[t];
- e[t] = r ? function() {
- r.apply(this, arguments), n.apply(this, arguments)
- } : n
- }
- }
- function ue(e) {
- var t = {
- fn: e,
- invoker: function() {
- var e = arguments,
- n = t.fn;
- if (Array.isArray(n))
- for (var i = 0; i < n.length; i++) n[i].apply(null, e);
- else n.apply(null, arguments)
- }
- };
- return t
- }
- function le(e, n, i, o, r) {
- var a, s, c, u;
- for (a in e) s = e[a], c = n[a], u = sr(a), s ? c ? s !== c && (c.fn = s, e[a] = c) : (s.invoker || (s = e[a] = ue(s)), i(u.name, s.invoker, u.once, u.capture)) : "production" !== t.env.NODE_ENV && Mo('Invalid handler for event "' + u.name + '": got ' + String(s), r);
- for (a in n) e[a] || (u = sr(a), o(u.name, n[a].invoker, u.capture))
- }
- function de(e) {
- for (var t = 0; t < e.length; t++)
- if (Array.isArray(e[t])) return Array.prototype.concat.apply([], e);
- return e
- }
- function fe(e) {
- return c(e) ? [J(e)] : Array.isArray(e) ? pe(e) : void 0
- }
- function pe(e, t) {
- var n, i, o, r = [];
- for (n = 0; n < e.length; n++) null != (i = e[n]) && "boolean" != typeof i && (o = r[r.length - 1], Array.isArray(i) ? r.push.apply(r, pe(i, (t || "") + "_" + n)) : c(i) ? o && o.text ? o.text += String(i) : "" !== i && r.push(J(i)) : i.text && o && o.text ? r[r.length - 1] = J(o.text + i.text) : (i.tag && null == i.key && null != t && (i.key = "__vlist" + t + "_" + n + "__"), r.push(i)));
- return r
- }
- function he(e) {
- return e && e.filter(function(e) {
- return e && e.componentOptions
- })[0]
- }
- function me(e, t, n, i, o, r) {
- return (Array.isArray(n) || c(n)) && (o = i, i = n, n = void 0), r && (o = ur), ve(e, t, n, i, o)
- }
- function ve(e, n, i, o, r) {
- if (i && i.__ob__) return "production" !== t.env.NODE_ENV && Mo("Avoid using observed data object as vnode data: " + JSON.stringify(i) + "\nAlways create fresh vnode data objects in each render!", e), or();
- if (!n) return or();
- Array.isArray(o) && "function" == typeof o[0] && (i = i || {}, i.scopedSlots = {
- default: o[0]
- }, o.length = 0), r === ur ? o = fe(o) : r === cr && (o = de(o));
- var a, s;
- if ("string" == typeof n) {
- var c;
- s = wo.getTagNamespace(n), a = wo.isReservedTag(n) ? new tr(wo.parsePlatformTagName(n), i, o, void 0, void 0, e) : (c = q(e.$options, "components", n)) ? X(c, i, e, o, n) : new tr(n, i, o, void 0, void 0, e)
- } else a = X(n, i, e, o);
- return a ? (s && ge(a, s), a) : or()
- }
- function ge(e, t) {
- if (e.ns = t, "foreignObject" !== e.tag && e.children)
- for (var n = 0, i = e.children.length; n < i; n++) {
- var o = e.children[n];
- o.tag && !o.ns && ge(o, t)
- }
- }
- function ye(e) {
- e.$vnode = null, e._vnode = null, e._staticTrees = null;
- var t = e.$options._parentVnode,
- n = t && t.context;
- e.$slots = be(e.$options._renderChildren, n), e.$scopedSlots = {}, e._c = function(t, n, i, o) {
- return me(e, t, n, i, o, !1)
- }, e.$createElement = function(t, n, i, o) {
- return me(e, t, n, i, o, !0)
- }
- }
- function be(e, t) {
- var n = {};
- if (!e) return n;
- for (var i, o, r = [], a = 0, s = e.length; a < s; a++)
- if (o = e[a], (o.context === t || o.functionalContext === t) && o.data && (i = o.data.slot)) {
- var c = n[i] || (n[i] = []);
- "template" === o.tag ? c.push.apply(c, o.children) : c.push(o)
- } else r.push(o);
- return r.length && (1 !== r.length || " " !== r[0].text && !r[0].isComment) && (n.default = r), n
- }
- function we(e) {
- e._events = Object.create(null), e._hasHookEvent = !1;
- var t = e.$options._parentListeners;
- t && ke(e, t)
- }
- function _e(e, t, n) {
- n ? ir.$once(e, t) : ir.$on(e, t)
- }
- function xe(e, t) {
- ir.$off(e, t)
- }
- function ke(e, t, n) {
- ir = e, le(t, n || {}, _e, xe, e)
- }
- function je(e) {
- var t = e.$options,
- n = t.parent;
- if (n && !t.abstract) {
- for (; n.$options.abstract && n.$parent;) n = n.$parent;
- n.$children.push(e)
- }
- e.$parent = n, e.$root = n ? n.$root : e, e.$children = [], e.$refs = {}, e._watcher = null, e._inactive = !1, e._isMounted = !1, e._isDestroyed = !1, e._isBeingDestroyed = !1
- }
- function Ce(e, t) {
- var n = e.$options[t];
- if (n)
- for (var i = 0, o = n.length; i < o; i++) n[i].call(e);
- e._hasHookEvent && e.$emit("hook:" + t)
- }
- function Ee() {
- dr.length = 0, fr = {}, "production" !== t.env.NODE_ENV && (pr = {}), hr = mr = !1
- }
- function Ne() {
- mr = !0;
- var e, n, i;
- for (dr.sort(function(e, t) {
- return e.id - t.id
- }), vr = 0; vr < dr.length; vr++)
- if (e = dr[vr], n = e.id, fr[n] = null, e.run(), "production" !== t.env.NODE_ENV && null != fr[n] && (pr[n] = (pr[n] || 0) + 1, pr[n] > wo._maxUpdateCount)) {
- Mo("You may have an infinite update loop " + (e.user ? 'in watcher with expression "' + e.expression + '"' : "in a component render function."), e.vm);
- break
- }
- for (vr = dr.length; vr--;) e = dr[vr], i = e.vm, i._watcher === e && i._isMounted && Ce(i, "updated");
- Io && wo.devtools && Io.emit("flush"), Ee()
- }
- function Se(e) {
- var t = e.id;
- if (null == fr[t]) {
- if (fr[t] = !0, mr) {
- for (var n = dr.length - 1; n >= 0 && dr[n].id > e.id;) n--;
- dr.splice(Math.max(n, vr) + 1, 0, e)
- } else dr.push(e);
- hr || (hr = !0, Oo(Ne))
- }
- }
- function Te(e) {
- br.clear(), Ae(e, br)
- }
- function Ae(e, t) {
- var n, i, o = Array.isArray(e);
- if ((o || p(e)) && Object.isExtensible(e)) {
- if (e.__ob__) {
- var r = e.__ob__.dep.id;
- if (t.has(r)) return;
- t.add(r)
- }
- if (o)
- for (n = e.length; n--;) Ae(e[n], t);
- else
- for (i = Object.keys(e), n = i.length; n--;) Ae(e[i[n]], t)
- }
- }
- function Ie(e) {
- e._watchers = [];
- var t = e.$options;
- t.props && Oe(e, t.props), t.methods && Le(e, t.methods), t.data ? De(e) : S(e._data = {}, !0), t.computed && Me(e, t.computed), t.watch && Pe(e, t.watch)
- }
- function Oe(e, n) {
- var i = e.$options.propsData || {},
- o = e.$options._propKeys = Object.keys(n),
- r = !e.$parent;
- Vo.shouldConvert = r;
- for (var a = 0; a < o.length; a++) ! function(r) {
- var a = o[r];
- "production" !== t.env.NODE_ENV ? (wr[a] && Mo('"' + a + '" is a reserved attribute and cannot be used as component prop.', e), T(e, a, U(a, n, i, e), function() {
- e.$parent && !Vo.isSettingProps && Mo("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \"" + a + '"', e)
- })) : T(e, a, U(a, n, i, e))
- }(a);
- Vo.shouldConvert = !0
- }
- function De(e) {
- var n = e.$options.data;
- n = e._data = "function" == typeof n ? n.call(e) : n || {}, h(n) || (n = {}, "production" !== t.env.NODE_ENV && Mo("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function", e));
- for (var i = Object.keys(n), o = e.$options.props, r = i.length; r--;) o && s(o, i[r]) ? "production" !== t.env.NODE_ENV && Mo('The data property "' + i[r] + '" is already declared as a prop. Use prop default value instead.', e) : Re(e, i[r]);
- S(n, !0)
- }
- function Me(e, n) {
- for (var i in n) {
- "production" !== t.env.NODE_ENV && i in e && Mo('existing instance property "' + i + '" will be overwritten by a computed property with the same name.', e);
- var o = n[i];
- "function" == typeof o ? (_r.get = $e(o, e), _r.set = v) : (_r.get = o.get ? !1 !== o.cache ? $e(o.get, e) : l(o.get, e) : v, _r.set = o.set ? l(o.set, e) : v), Object.defineProperty(e, i, _r)
- }
- }
- function $e(e, t) {
- var n = new yr(t, e, v, {
- lazy: !0
- });
- return function() {
- return n.dirty && n.evaluate(), Fo.target && n.depend(), n.value
- }
- }
- function Le(e, n) {
- for (var i in n) e[i] = null == n[i] ? v : l(n[i], e), "production" !== t.env.NODE_ENV && null == n[i] && Mo('method "' + i + '" has an undefined value in the component definition. Did you reference the function correctly?', e)
- }
- function Pe(e, t) {
- for (var n in t) {
- var i = t[n];
- if (Array.isArray(i))
- for (var o = 0; o < i.length; o++) Fe(e, n, i[o]);
- else Fe(e, n, i)
- }
- }
- function Fe(e, t, n) {
- var i;
- h(n) && (i = n, n = n.handler), "string" == typeof n && (n = e[n]), e.$watch(t, n, i)
- }
- function Re(e, t) {
- w(t) || Object.defineProperty(e, t, {
- configurable: !0,
- enumerable: !0,
- get: function() {
- return e._data[t]
- },
- set: function(n) {
- e._data[t] = n
- }
- })
- }
- function qe(e, t) {
- var n = e.$options = Object.create(e.constructor.options);
- n.parent = t.parent, n.propsData = t.propsData, n._parentVnode = t._parentVnode, n._parentListeners = t._parentListeners, n._renderChildren = t._renderChildren, n._componentTag = t._componentTag, n._parentElm = t._parentElm, n._refElm = t._refElm, t.render && (n.render = t.render, n.staticRenderFns = t.staticRenderFns)
- }
- function Ue(e) {
- var t = e.options;
- if (e.super) {
- var n = e.super.options,
- i = e.superOptions,
- o = e.extendOptions;
- n !== i && (e.superOptions = n, o.render = t.render, o.staticRenderFns = t.staticRenderFns, o._scopeId = t._scopeId, t = e.options = R(n, o), t.name && (t.components[t.name] = e))
- }
- return t
- }
- function He(e) {
- "production" === t.env.NODE_ENV || this instanceof He || Mo("Vue is a constructor and should be called with the `new` keyword"), this._init(e)
- }
- function Ve(e) {
- e.use = function(e) {
- if (!e.installed) {
- var t = d(arguments, 1);
- return t.unshift(this), "function" == typeof e.install ? e.install.apply(e, t) : e.apply(null, t), e.installed = !0, this
- }
- }
- }
- function Be(e) {
- e.mixin = function(e) {
- this.options = R(this.options, e)
- }
- }
- function ze(e) {
- e.cid = 0;
- var n = 1;
- e.extend = function(e) {
- e = e || {};
- var i = this,
- o = i.cid,
- r = e._Ctor || (e._Ctor = {});
- if (r[o]) return r[o];
- var a = e.name || i.options.name;
- "production" !== t.env.NODE_ENV && (/^[a-zA-Z][\w-]*$/.test(a) || Mo('Invalid component name: "' + a + '". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.'));
- var s = function(e) {
- this._init(e)
- };
- return s.prototype = Object.create(i.prototype), s.prototype.constructor = s, s.cid = n++, s.options = R(i.options, e), s.super = i, s.extend = i.extend, s.mixin = i.mixin, s.use = i.use, wo._assetTypes.forEach(function(e) {
- s[e] = i[e]
- }), a && (s.options.components[a] = s), s.superOptions = i.options, s.extendOptions = e, r[o] = s, s
- }
- }
- function We(e) {
- wo._assetTypes.forEach(function(n) {
- e[n] = function(e, i) {
- return i ? ("production" !== t.env.NODE_ENV && "component" === n && wo.isReservedTag(e) && Mo("Do not use built-in or reserved HTML elements as component id: " + e), "component" === n && h(i) && (i.name = i.name || e, i = this.options._base.extend(i)), "directive" === n && "function" == typeof i && (i = {
- bind: i,
- update: i
- }), this.options[n + "s"][e] = i, i) : this.options[n + "s"][e]
- }
- })
- }
- function Je(e) {
- return e && (e.Ctor.options.name || e.tag)
- }
- function Ye(e, t) {
- return "string" == typeof e ? e.split(",").indexOf(t) > -1 : e.test(t)
- }
- function Ge(e, t) {
- for (var n in e) {
- var i = e[n];
- if (i) {
- var o = Je(i.componentOptions);
- o && !t(o) && (Xe(i), e[n] = null)
- }
- }
- }
- function Xe(e) {
- e && (e.componentInstance._inactive || Ce(e.componentInstance, "deactivated"), e.componentInstance.$destroy())
- }
- function Ke(e) {
- for (var t = e.data, n = e, i = e; i.componentInstance;) i = i.componentInstance._vnode, i.data && (t = Qe(i.data, t));
- for (; n = n.parent;) n.data && (t = Qe(t, n.data));
- return Ze(t)
- }
- function Qe(e, t) {
- return {
- staticClass: et(e.staticClass, t.staticClass),
- class: e.class ? [e.class, t.class] : t.class
- }
- }
- function Ze(e) {
- var t = e.class,
- n = e.staticClass;
- return n || t ? et(n, tt(t)) : ""
- }
- function et(e, t) {
- return e ? t ? e + " " + t : e : t || ""
- }
- function tt(e) {
- var t = "";
- if (!e) return t;
- if ("string" == typeof e) return e;
- if (Array.isArray(e)) {
- for (var n, i = 0, o = e.length; i < o; i++) e[i] && (n = tt(e[i])) && (t += n + " ");
- return t.slice(0, -1)
- }
- if (p(e)) {
- for (var r in e) e[r] && (t += r + " ");
- return t.slice(0, -1)
- }
- return t
- }
- function nt(e) {
- return Fr(e) ? "svg" : "math" === e ? "math" : void 0
- }
- function it(e) {
- if (!ko) return !0;
- if (qr(e)) return !1;
- if (e = e.toLowerCase(), null != Ur[e]) return Ur[e];
- var t = document.createElement(e);
- return e.indexOf("-") > -1 ? Ur[e] = t.constructor === window.HTMLUnknownElement || t.constructor === window.HTMLElement : Ur[e] = /HTMLUnknownElement/.test(t.toString())
- }
- function ot(e) {
- if ("string" == typeof e) {
- var n = e;
- if (!(e = document.querySelector(e))) return "production" !== t.env.NODE_ENV && Mo("Cannot find element: " + n), document.createElement("div")
- }
- return e
- }
- function rt(e, t) {
- var n = document.createElement(e);
- return "select" !== e ? n : (t.data && t.data.attrs && "multiple" in t.data.attrs && n.setAttribute("multiple", "multiple"), n)
- }
- function at(e, t) {
- return document.createElementNS(Lr[e], t)
- }
- function st(e) {
- return document.createTextNode(e)
- }
- function ct(e) {
- return document.createComment(e)
- }
- function ut(e, t, n) {
- e.insertBefore(t, n)
- }
- function lt(e, t) {
- e.removeChild(t)
- }
- function dt(e, t) {
- e.appendChild(t)
- }
- function ft(e) {
- return e.parentNode
- }
- function pt(e) {
- return e.nextSibling
- }
- function ht(e) {
- return e.tagName
- }
- function mt(e, t) {
- e.textContent = t
- }
- function vt(e, t, n) {
- e.setAttribute(t, n)
- }
- function gt(e, t) {
- var n = e.data.ref;
- if (n) {
- var i = e.context,
- o = e.componentInstance || e.elm,
- r = i.$refs;
- t ? Array.isArray(r[n]) ? a(r[n], o) : r[n] === o && (r[n] = void 0) : e.data.refInFor ? Array.isArray(r[n]) && r[n].indexOf(o) < 0 ? r[n].push(o) : r[n] = [o] : r[n] = o
- }
- }
- function yt(e) {
- return null == e
- }
- function bt(e) {
- return null != e
- }
- function wt(e, t) {
- return e.key === t.key && e.tag === t.tag && e.isComment === t.isComment && !e.data == !t.data
- }
- function _t(e, t, n) {
- var i, o, r = {};
- for (i = t; i <= n; ++i) o = e[i].key, bt(o) && (r[o] = i);
- return r
- }
- function xt(e, t) {
- (e.data.directives || t.data.directives) && kt(e, t)
- }
- function kt(e, t) {
- var n, i, o, r = e === Br,
- a = t === Br,
- s = jt(e.data.directives, e.context),
- c = jt(t.data.directives, t.context),
- u = [],
- l = [];
- for (n in c) i = s[n], o = c[n], i ? (o.oldValue = i.value, Et(o, "update", t, e), o.def && o.def.componentUpdated && l.push(o)) : (Et(o, "bind", t, e), o.def && o.def.inserted && u.push(o));
- if (u.length) {
- var d = function() {
- for (var n = 0; n < u.length; n++) Et(u[n], "inserted", t, e)
- };
- r ? ce(t.data.hook || (t.data.hook = {}), "insert", d, "dir-insert") : d()
- }
- if (l.length && ce(t.data.hook || (t.data.hook = {}), "postpatch", function() {
- for (var n = 0; n < l.length; n++) Et(l[n], "componentUpdated", t, e)
- }, "dir-postpatch"), !r)
- for (n in s) c[n] || Et(s[n], "unbind", e, e, a)
- }
- function jt(e, t) {
- var n = Object.create(null);
- if (!e) return n;
- var i, o;
- for (i = 0; i < e.length; i++) o = e[i], o.modifiers || (o.modifiers = Jr), n[Ct(o)] = o, o.def = q(t.$options, "directives", o.name, !0);
- return n
- }
- function Ct(e) {
- return e.rawName || e.name + "." + Object.keys(e.modifiers || {}).join(".")
- }
- function Et(e, t, n, i, o) {
- var r = e.def && e.def[t];
- r && r(n.elm, e, n, i, o)
- }
- function Nt(e, t) {
- if (e.data.attrs || t.data.attrs) {
- var n, i, o = t.elm,
- r = e.data.attrs || {},
- a = t.data.attrs || {};
- a.__ob__ && (a = t.data.attrs = f({}, a));
- for (n in a) i = a[n], r[n] !== i && St(o, n, i);
- Eo && a.value !== r.value && St(o, "value", a.value);
- for (n in r) null == a[n] && (Dr(n) ? o.removeAttributeNS(Or, Mr(n)) : Ar(n) || o.removeAttribute(n))
- }
- }
- function St(e, t, n) {
- Ir(t) ? $r(n) ? e.removeAttribute(t) : e.setAttribute(t, t) : Ar(t) ? e.setAttribute(t, $r(n) || "false" === n ? "false" : "true") : Dr(t) ? $r(n) ? e.removeAttributeNS(Or, Mr(t)) : e.setAttributeNS(Or, t, n) : $r(n) ? e.removeAttribute(t) : e.setAttribute(t, n)
- }
- function Tt(e, t) {
- var n = t.elm,
- i = t.data,
- o = e.data;
- if (i.staticClass || i.class || o && (o.staticClass || o.class)) {
- var r = Ke(t),
- a = n._transitionClasses;
- a && (r = et(r, tt(a))), r !== n._prevClass && (n.setAttribute("class", r), n._prevClass = r)
- }
- }
- function At(e, t, n, i) {
- if (n) {
- var o = t,
- r = Er;
- t = function(n) {
- It(e, t, i, r), 1 === arguments.length ? o(n) : o.apply(null, arguments)
- }
- }
- Er.addEventListener(e, t, i)
- }
- function It(e, t, n, i) {
- (i || Er).removeEventListener(e, t, n)
- }
- function Ot(e, t) {
- if (e.data.on || t.data.on) {
- var n = t.data.on || {},
- i = e.data.on || {};
- Er = t.elm, le(n, i, At, It, t.context)
- }
- }
- function Dt(e, t) {
- if (e.data.domProps || t.data.domProps) {
- var n, i, o = t.elm,
- r = e.data.domProps || {},
- a = t.data.domProps || {};
- a.__ob__ && (a = t.data.domProps = f({}, a));
- for (n in r) null == a[n] && (o[n] = "");
- for (n in a)
- if (i = a[n], "textContent" !== n && "innerHTML" !== n || (t.children && (t.children.length = 0), i !== r[n]))
- if ("value" === n) {
- o._value = i;
- var s = null == i ? "" : String(i);
- Mt(o, t, s) && (o.value = s)
- } else o[n] = i
- }
- }
- function Mt(e, t, n) {
- return !e.composing && ("option" === t.tag || $t(e, n) || Lt(t, n))
- }
- function $t(e, t) {
- return document.activeElement !== e && e.value !== t
- }
- function Lt(e, t) {
- var n = e.elm.value,
- i = e.elm._vModifiers;
- return i && i.number || "number" === e.elm.type ? o(n) !== o(t) : i && i.trim ? n.trim() !== t.trim() : n !== t
- }
- function Pt(e) {
- var t = Ft(e.style);
- return e.staticStyle ? f(e.staticStyle, t) : t
- }
- function Ft(e) {
- return Array.isArray(e) ? m(e) : "string" == typeof e ? Zr(e) : e
- }
- function Rt(e, t) {
- var n, i = {};
- if (t)
- for (var o = e; o.componentInstance;) o = o.componentInstance._vnode, o.data && (n = Pt(o.data)) && f(i, n);
- (n = Pt(e.data)) && f(i, n);
- for (var r = e; r = r.parent;) r.data && (n = Pt(r.data)) && f(i, n);
- return i
- }
- function qt(e, t) {
- var n = t.data,
- i = e.data;
- if (n.staticStyle || n.style || i.staticStyle || i.style) {
- var o, r, a = t.elm,
- s = e.data.staticStyle,
- c = e.data.style || {},
- u = s || c,
- l = Ft(t.data.style) || {};
- t.data.style = l.__ob__ ? f({}, l) : l;
- var d = Rt(t, !0);
- for (r in u) null == d[r] && na(a, r, "");
- for (r in d)(o = d[r]) !== u[r] && na(a, r, null == o ? "" : o)
- }
- }
- function Ut(e, t) {
- if (t && t.trim())
- if (e.classList) t.indexOf(" ") > -1 ? t.split(/\s+/).forEach(function(t) {
- return e.classList.add(t)
- }) : e.classList.add(t);
- else {
- var n = " " + e.getAttribute("class") + " ";
- n.indexOf(" " + t + " ") < 0 && e.setAttribute("class", (n + t).trim())
- }
- }
- function Ht(e, t) {
- if (t && t.trim())
- if (e.classList) t.indexOf(" ") > -1 ? t.split(/\s+/).forEach(function(t) {
- return e.classList.remove(t)
- }) : e.classList.remove(t);
- else {
- for (var n = " " + e.getAttribute("class") + " ", i = " " + t + " "; n.indexOf(i) >= 0;) n = n.replace(i, " ");
- e.setAttribute("class", n.trim())
- }
- }
- function Vt(e) {
- pa(function() {
- pa(e)
- })
- }
- function Bt(e, t) {
- (e._transitionClasses || (e._transitionClasses = [])).push(t), Ut(e, t)
- }
- function zt(e, t) {
- e._transitionClasses && a(e._transitionClasses, t), Ht(e, t)
- }
- function Wt(e, t, n) {
- var i = Jt(e, t),
- o = i.type,
- r = i.timeout,
- a = i.propCount;
- if (!o) return n();
- var s = o === sa ? la : fa,
- c = 0,
- u = function() {
- e.removeEventListener(s, l), n()
- },
- l = function(t) {
- t.target === e && ++c >= a && u()
- };
- setTimeout(function() {
- c < a && u()
- }, r + 1), e.addEventListener(s, l)
- }
- function Jt(e, t) {
- var n, i = window.getComputedStyle(e),
- o = i[ua + "Delay"].split(", "),
- r = i[ua + "Duration"].split(", "),
- a = Yt(o, r),
- s = i[da + "Delay"].split(", "),
- c = i[da + "Duration"].split(", "),
- u = Yt(s, c),
- l = 0,
- d = 0;
- return t === sa ? a > 0 && (n = sa, l = a, d = r.length) : t === ca ? u > 0 && (n = ca, l = u, d = c.length) : (l = Math.max(a, u), n = l > 0 ? a > u ? sa : ca : null, d = n ? n === sa ? r.length : c.length : 0), {
- type: n,
- timeout: l,
- propCount: d,
- hasTransform: n === sa && ha.test(i[ua + "Property"])
- }
- }
- function Yt(e, t) {
- for (; e.length < t.length;) e = e.concat(e);
- return Math.max.apply(null, t.map(function(t, n) {
- return Gt(t) + Gt(e[n])
- }))
- }
- function Gt(e) {
- return 1e3 * Number(e.slice(0, -1))
- }
- function Xt(e, t) {
- var n = e.elm;
- n._leaveCb && (n._leaveCb.cancelled = !0, n._leaveCb());
- var i = Qt(e.data.transition);
- if (i && !n._enterCb && 1 === n.nodeType) {
- for (var o = i.css, r = i.type, a = i.enterClass, s = i.enterToClass, c = i.enterActiveClass, u = i.appearClass, l = i.appearToClass, d = i.appearActiveClass, f = i.beforeEnter, p = i.enter, h = i.afterEnter, m = i.enterCancelled, v = i.beforeAppear, g = i.appear, y = i.afterAppear, b = i.appearCancelled, w = lr, _ = lr.$vnode; _ && _.parent;) _ = _.parent, w = _.context;
- var x = !w._isMounted || !e.isRootInsert;
- if (!x || g || "" === g) {
- var k = x ? u : a,
- j = x ? d : c,
- C = x ? l : s,
- E = x ? v || f : f,
- N = x && "function" == typeof g ? g : p,
- S = x ? y || h : h,
- T = x ? b || m : m,
- A = !1 !== o && !Eo,
- I = N && (N._length || N.length) > 1,
- O = n._enterCb = Zt(function() {
- A && (zt(n, C), zt(n, j)), O.cancelled ? (A && zt(n, k), T && T(n)) : S && S(n), n._enterCb = null
- });
- e.data.show || ce(e.data.hook || (e.data.hook = {}), "insert", function() {
- var t = n.parentNode,
- i = t && t._pending && t._pending[e.key];
- i && i.tag === e.tag && i.elm._leaveCb && i.elm._leaveCb(), N && N(n, O)
- }, "transition-insert"), E && E(n), A && (Bt(n, k), Bt(n, j), Vt(function() {
- Bt(n, C), zt(n, k), O.cancelled || I || Wt(n, r, O)
- })), e.data.show && (t && t(), N && N(n, O)), A || I || O()
- }
- }
- }
- function Kt(e, t) {
- function n() {
- g.cancelled || (e.data.show || ((i.parentNode._pending || (i.parentNode._pending = {}))[e.key] = e), l && l(i), m && (Bt(i, s), Bt(i, u), Vt(function() {
- Bt(i, c), zt(i, s), g.cancelled || v || Wt(i, a, g)
- })), d && d(i, g), m || v || g())
- }
- var i = e.elm;
- i._enterCb && (i._enterCb.cancelled = !0, i._enterCb());
- var o = Qt(e.data.transition);
- if (!o) return t();
- if (!i._leaveCb && 1 === i.nodeType) {
- var r = o.css,
- a = o.type,
- s = o.leaveClass,
- c = o.leaveToClass,
- u = o.leaveActiveClass,
- l = o.beforeLeave,
- d = o.leave,
- f = o.afterLeave,
- p = o.leaveCancelled,
- h = o.delayLeave,
- m = !1 !== r && !Eo,
- v = d && (d._length || d.length) > 1,
- g = i._leaveCb = Zt(function() {
- i.parentNode && i.parentNode._pending && (i.parentNode._pending[e.key] = null), m && (zt(i, c), zt(i, u)), g.cancelled ? (m && zt(i, s), p && p(i)) : (t(), f && f(i)), i._leaveCb = null
- });
- h ? h(n) : n()
- }
- }
- function Qt(e) {
- if (e) {
- if ("object" == typeof e) {
- var t = {};
- return !1 !== e.css && f(t, ma(e.name || "v")), f(t, e), t
- }
- return "string" == typeof e ? ma(e) : void 0
- }
- }
- function Zt(e) {
- var t = !1;
- return function() {
- t || (t = !0, e())
- }
- }
- function en(e, t) {
- t.data.show || Xt(t)
- }
- function tn(e, n, i) {
- var o = n.value,
- r = e.multiple;
- if (r && !Array.isArray(o)) return void("production" !== t.env.NODE_ENV && Mo('<select multiple v-model="' + n.expression + '"> expects an Array value for its binding, but got ' + Object.prototype.toString.call(o).slice(8, -1), i));
- for (var a, s, c = 0, u = e.options.length; c < u; c++)
- if (s = e.options[c], r) a = b(o, on(s)) > -1, s.selected !== a && (s.selected = a);
- else if (y(on(s), o)) return void(e.selectedIndex !== c && (e.selectedIndex = c));
- r || (e.selectedIndex = -1)
- }
- function nn(e, t) {
- for (var n = 0, i = t.length; n < i; n++)
- if (y(on(t[n]), e)) return !1;
- return !0
- }
- function on(e) {
- return "_value" in e ? e._value : e.value
- }
- function rn(e) {
- e.target.composing = !0
- }
- function an(e) {
- e.target.composing = !1, sn(e.target, "input")
- }
- function sn(e, t) {
- var n = document.createEvent("HTMLEvents");
- n.initEvent(t, !0, !0), e.dispatchEvent(n)
- }
- function cn(e) {
- return !e.componentInstance || e.data && e.data.transition ? e : cn(e.componentInstance._vnode)
- }
- function un(e) {
- var t = e && e.componentOptions;
- return t && t.Ctor.options.abstract ? un(he(t.children)) : e
- }
- function ln(e) {
- var t = {},
- n = e.$options;
- for (var i in n.propsData) t[i] = e[i];
- var o = n._parentListeners;
- for (var r in o) t[fo(r)] = o[r].fn;
- return t
- }
- function dn(e, t) {
- return /\d-keep-alive$/.test(t.tag) ? e("keep-alive") : null
- }
- function fn(e) {
- for (; e = e.parent;)
- if (e.data.transition) return !0
- }
- function pn(e, t) {
- return t.key === e.key && t.tag === e.tag
- }
- function hn(e) {
- e.elm._moveCb && e.elm._moveCb(), e.elm._enterCb && e.elm._enterCb()
- }
- function mn(e) {
- e.data.newPos = e.elm.getBoundingClientRect()
- }
- function vn(e) {
- var t = e.data.pos,
- n = e.data.newPos,
- i = t.left - n.left,
- o = t.top - n.top;
- if (i || o) {
- e.data.moved = !0;
- var r = e.elm.style;
- r.transform = r.WebkitTransform = "translate(" + i + "px," + o + "px)", r.transitionDuration = "0s"
- }
- }
- function gn(e) {
- return Ta = Ta || document.createElement("div"), Ta.innerHTML = e, Ta.textContent
- }
- function yn(e, t) {
- return t && (e = e.replace(xs, "\n")), e.replace(ws, "<").replace(_s, ">").replace(ks, "&").replace(js, '"')
- }
- function bn(e, t) {
- function n(t) {
- u += t, e = e.substring(t)
- }
- function i(e, n, i) {
- var o, s;
- if (null == n && (n = u), null == i && (i = u), e && (s = e.toLowerCase()), e)
- for (o = a.length - 1; o >= 0 && a[o].lowerCasedTag !== s; o--);
- else o = 0;
- if (o >= 0) {
- for (var c = a.length - 1; c >= o; c--) t.end && t.end(a[c].tag, n, i);
- a.length = o, r = o && a[o - 1].tag
- } else "br" === s ? t.start && t.start(e, [], !0, n, i) : "p" === s && (t.start && t.start(e, [], !1, n, i), t.end && t.end(e, n, i))
- }
- for (var o, r, a = [], s = t.expectHTML, c = t.isUnaryTag || yo, u = 0; e;) {
- if (o = e, r && ys(r)) {
- var l = r.toLowerCase(),
- d = bs[l] || (bs[l] = new RegExp("([\\s\\S]*?)(</" + l + "[^>]*>)", "i")),
- f = 0,
- p = e.replace(d, function(e, n, i) {
- return f = i.length, "script" !== l && "style" !== l && "noscript" !== l && (n = n.replace(/<!--([\s\S]*?)-->/g, "$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g, "$1")), t.chars && t.chars(n), ""
- });
- u += e.length - p.length, e = p, i(l, u - f, u)
- } else {
- var h = e.indexOf("<");
- if (0 === h) {
- if (Ba.test(e)) {
- var m = e.indexOf("--\x3e");
- if (m >= 0) {
- n(m + 3);
- continue
- }
- }
- if (za.test(e)) {
- var v = e.indexOf("]>");
- if (v >= 0) {
- n(v + 2);
- continue
- }
- }
- var g = e.match(Va);
- if (g) {
- n(g[0].length);
- continue
- }
- var y = e.match(Ha);
- if (y) {
- var b = u;
- n(y[0].length), i(y[1], b, u);
- continue
- }
- var w = function() {
- var t = e.match(qa);
- if (t) {
- var i = {
- tagName: t[1],
- attrs: [],
- start: u
- };
- n(t[0].length);
- for (var o, r; !(o = e.match(Ua)) && (r = e.match(Pa));) n(r[0].length), i.attrs.push(r);
- if (o) return i.unarySlash = o[1], n(o[0].length), i.end = u, i
- }
- }();
- if (w) {
- ! function(e) {
- var n = e.tagName,
- o = e.unarySlash;
- s && ("p" === r && Da(n) && i(r), Oa(n) && r === n && i(n));
- for (var u = c(n) || "html" === n && "head" === r || !!o, l = e.attrs.length, d = new Array(l), f = 0; f < l; f++) {
- var p = e.attrs[f];
- Wa && -1 === p[0].indexOf('""') && ("" === p[3] && delete p[3], "" === p[4] && delete p[4], "" === p[5] && delete p[5]);
- var h = p[3] || p[4] || p[5] || "";
- d[f] = {
- name: p[1],
- value: yn(h, t.shouldDecodeNewlines)
- }
- }
- u || (a.push({
- tag: n,
- lowerCasedTag: n.toLowerCase(),
- attrs: d
- }), r = n, o = ""), t.start && t.start(n, d, u, e.start, e.end)
- }(w);
- continue
- }
- }
- var _ = void 0,
- x = void 0,
- k = void 0;
- if (h > 0) {
- for (x = e.slice(h); !(Ha.test(x) || qa.test(x) || Ba.test(x) || za.test(x) || (k = x.indexOf("<", 1)) < 0);) h += k, x = e.slice(h);
- _ = e.substring(0, h), n(h)
- }
- h < 0 && (_ = e, e = ""), t.chars && _ && t.chars(_)
- }
- if (e === o && t.chars) {
- t.chars(e);
- break
- }
- }
- i()
- }
- function wn(e) {
- function t() {
- (a || (a = [])).push(e.slice(h, o).trim()), h = o + 1
- }
- var n, i, o, r, a, s = !1,
- c = !1,
- u = !1,
- l = !1,
- d = 0,
- f = 0,
- p = 0,
- h = 0;
- for (o = 0; o < e.length; o++)
- if (i = n, n = e.charCodeAt(o), s) 39 === n && 92 !== i && (s = !1);
- else if (c) 34 === n && 92 !== i && (c = !1);
- else if (u) 96 === n && 92 !== i && (u = !1);
- else if (l) 47 === n && 92 !== i && (l = !1);
- else if (124 !== n || 124 === e.charCodeAt(o + 1) || 124 === e.charCodeAt(o - 1) || d || f || p) {
- switch (n) {
- case 34:
- c = !0;
- break;
- case 39:
- s = !0;
- break;
- case 96:
- u = !0;
- break;
- case 40:
- p++;
- break;
- case 41:
- p--;
- break;
- case 91:
- f++;
- break;
- case 93:
- f--;
- break;
- case 123:
- d++;
- break;
- case 125:
- d--
- }
- if (47 === n) {
- for (var m = o - 1, v = void 0; m >= 0 && " " === (v = e.charAt(m)); m--);
- v && /[\w$]/.test(v) || (l = !0)
- }
- } else void 0 === r ? (h = o + 1, r = e.slice(0, o).trim()) : t();
- if (void 0 === r ? r = e.slice(0, o).trim() : 0 !== h && t(), a)
- for (o = 0; o < a.length; o++) r = _n(r, a[o]);
- return r
- }
- function _n(e, t) {
- var n = t.indexOf("(");
- return n < 0 ? '_f("' + t + '")(' + e + ")" : '_f("' + t.slice(0, n) + '")(' + e + "," + t.slice(n + 1)
- }
- function xn(e, t) {
- var n = t ? Ns(t) : Cs;
- if (n.test(e)) {
- for (var i, o, r = [], a = n.lastIndex = 0; i = n.exec(e);) {
- o = i.index, o > a && r.push(JSON.stringify(e.slice(a, o)));
- var s = wn(i[1].trim());
- r.push("_s(" + s + ")"), a = o + i[0].length
- }
- return a < e.length && r.push(JSON.stringify(e.slice(a))), r.join("+")
- }
- }
- function kn(e) {
- console.error("[Vue parser]: " + e)
- }
- function jn(e, t) {
- return e ? e.map(function(e) {
- return e[t]
- }).filter(function(e) {
- return e
- }) : []
- }
- function Cn(e, t, n) {
- (e.props || (e.props = [])).push({
- name: t,
- value: n
- })
- }
- function En(e, t, n) {
- (e.attrs || (e.attrs = [])).push({
- name: t,
- value: n
- })
- }
- function Nn(e, t, n, i, o, r) {
- (e.directives || (e.directives = [])).push({
- name: t,
- rawName: n,
- value: i,
- arg: o,
- modifiers: r
- })
- }
- function Sn(e, t, n, i, o) {
- i && i.capture && (delete i.capture, t = "!" + t), i && i.once && (delete i.once, t = "~" + t);
- var r;
- i && i.native ? (delete i.native, r = e.nativeEvents || (e.nativeEvents = {})) : r = e.events || (e.events = {});
- var a = {
- value: n,
- modifiers: i
- },
- s = r[t];
- Array.isArray(s) ? o ? s.unshift(a) : s.push(a) : r[t] = s ? o ? [a, s] : [s, a] : a
- }
- function Tn(e, t, n) {
- var i = An(e, ":" + t) || An(e, "v-bind:" + t);
- if (null != i) return wn(i);
- if (!1 !== n) {
- var o = An(e, t);
- if (null != o) return JSON.stringify(o)
- }
- }
- function An(e, t) {
- var n;
- if (null != (n = e.attrsMap[t]))
- for (var i = e.attrsList, o = 0, r = i.length; o < r; o++)
- if (i[o].name === t) {
- i.splice(o, 1);
- break
- }
- return n
- }
- function In(e) {
- if (Ya = e, Ja = Ya.length, Xa = Ka = Qa = 0, e.indexOf("[") < 0 || e.lastIndexOf("]") < Ja - 1) return {
- exp: e,
- idx: null
- };
- for (; !Dn();) Ga = On(), Mn(Ga) ? Ln(Ga) : 91 === Ga && $n(Ga);
- return {
- exp: e.substring(0, Ka),
- idx: e.substring(Ka + 1, Qa)
- }
- }
- function On() {
- return Ya.charCodeAt(++Xa)
- }
- function Dn() {
- return Xa >= Ja
- }
- function Mn(e) {
- return 34 === e || 39 === e
- }
- function $n(e) {
- var t = 1;
- for (Ka = Xa; !Dn();)
- if (e = On(), Mn(e)) Ln(e);
- else if (91 === e && t++, 93 === e && t--, 0 === t) {
- Qa = Xa;
- break
- }
- }
- function Ln(e) {
- for (var t = e; !Dn() && (e = On()) !== t;);
- }
- function Pn(e, n) {
- Za = n.warn || kn, es = n.getTagNamespace || yo, ts = n.mustUseProp || yo, ns = n.isPreTag || yo, is = jn(n.modules, "preTransformNode"), os = jn(n.modules, "transformNode"), rs = jn(n.modules, "postTransformNode"), as = n.delimiters;
- var i, o, r = [],
- a = !1 !== n.preserveWhitespace,
- s = !1,
- c = !1,
- u = !1;
- return bn(e, {
- expectHTML: n.expectHTML,
- isUnaryTag: n.isUnaryTag,
- shouldDecodeNewlines: n.shouldDecodeNewlines,
- start: function(a, l, d) {
- function f(n) {
- "production" === t.env.NODE_ENV || u || ("slot" !== n.tag && "template" !== n.tag || (u = !0, Za("Cannot use <" + n.tag + "> as component root element because it may contain multiple nodes:\n" + e)), n.attrsMap.hasOwnProperty("v-for") && (u = !0, Za("Cannot use v-for on stateful component root element because it renders multiple elements:\n" + e)))
- }
- var p = o && o.ns || es(a);
- Co && "svg" === p && (l = ti(l));
- var h = {
- type: 1,
- tag: a,
- attrsList: l,
- attrsMap: Zn(l),
- parent: o,
- children: []
- };
- p && (h.ns = p), ei(h) && !Ao() && (h.forbidden = !0, "production" !== t.env.NODE_ENV && Za("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <" + a + ">, as they will not be parsed."));
- for (var m = 0; m < is.length; m++) is[m](h, n);
- if (s || (Fn(h), h.pre && (s = !0)), ns(h.tag) && (c = !0), s) Rn(h);
- else {
- Hn(h), Vn(h), Jn(h), qn(h), h.plain = !h.key && !l.length, Un(h), Yn(h), Gn(h);
- for (var v = 0; v < os.length; v++) os[v](h, n);
- Xn(h)
- }
- if (i ? r.length || (i.if && (h.elseif || h.else) ? (f(h), Wn(i, {
- exp: h.elseif,
- block: h
- })) : "production" === t.env.NODE_ENV || u || (u = !0, Za("Component template should contain exactly one root element:\n\n" + e + "\n\nIf you are using v-if on multiple elements, use v-else-if to chain them instead."))) : (i = h, f(i)), o && !h.forbidden)
- if (h.elseif || h.else) Bn(h, o);
- else if (h.slotScope) {
- o.plain = !1;
- var g = h.slotTarget || "default";
- (o.scopedSlots || (o.scopedSlots = {}))[g] = h
- } else o.children.push(h), h.parent = o;
- d || (o = h, r.push(h));
- for (var y = 0; y < rs.length; y++) rs[y](h, n)
- },
- end: function() {
- var e = r[r.length - 1],
- t = e.children[e.children.length - 1];
- t && 3 === t.type && " " === t.text && e.children.pop(), r.length -= 1, o = r[r.length - 1], e.pre && (s = !1), ns(e.tag) && (c = !1)
- },
- chars: function(n) {
- if (!o) return void("production" === t.env.NODE_ENV || u || n !== e || (u = !0, Za("Component template requires a root element, rather than just text:\n\n" + e)));
- if (!Co || "textarea" !== o.tag || o.attrsMap.placeholder !== n) {
- var i = o.children;
- if (n = c || n.trim() ? $s(n) : a && i.length ? " " : "") {
- var r;
- !s && " " !== n && (r = xn(n, as)) ? i.push({
- type: 2,
- expression: r,
- text: n
- }) : " " === n && " " === i[i.length - 1].text || o.children.push({
- type: 3,
- text: n
- })
- }
- }
- }
- }), i
- }
- function Fn(e) {
- null != An(e, "v-pre") && (e.pre = !0)
- }
- function Rn(e) {
- var t = e.attrsList.length;
- if (t)
- for (var n = e.attrs = new Array(t), i = 0; i < t; i++) n[i] = {
- name: e.attrsList[i].name,
- value: JSON.stringify(e.attrsList[i].value)
- };
- else e.pre || (e.plain = !0)
- }
- function qn(e) {
- var n = Tn(e, "key");
- n && ("production" !== t.env.NODE_ENV && "template" === e.tag && Za("<template> cannot be keyed. Place the key on real elements instead."), e.key = n)
- }
- function Un(e) {
- var t = Tn(e, "ref");
- t && (e.ref = t, e.refInFor = Kn(e))
- }
- function Hn(e) {
- var n;
- if (n = An(e, "v-for")) {
- var i = n.match(Ts);
- if (!i) return void("production" !== t.env.NODE_ENV && Za("Invalid v-for expression: " + n));
- e.for = i[2].trim();
- var o = i[1].trim(),
- r = o.match(As);
- r ? (e.alias = r[1].trim(), e.iterator1 = r[2].trim(), r[3] && (e.iterator2 = r[3].trim())) : e.alias = o
- }
- }
- function Vn(e) {
- var t = An(e, "v-if");
- if (t) e.if = t, Wn(e, {
- exp: t,
- block: e
- });
- else {
- null != An(e, "v-else") && (e.else = !0);
- var n = An(e, "v-else-if");
- n && (e.elseif = n)
- }
- }
- function Bn(e, n) {
- var i = zn(n.children);
- i && i.if ? Wn(i, {
- exp: e.elseif,
- block: e
- }) : "production" !== t.env.NODE_ENV && Za("v-" + (e.elseif ? 'else-if="' + e.elseif + '"' : "else") + " used on element <" + e.tag + "> without corresponding v-if.")
- }
- function zn(e) {
- for (var n = e.length; n--;) {
- if (1 === e[n].type) return e[n];
- "production" !== t.env.NODE_ENV && " " !== e[n].text && Za('text "' + e[n].text.trim() + '" between v-if and v-else(-if) will be ignored.'), e.pop()
- }
- }
- function Wn(e, t) {
- e.ifConditions || (e.ifConditions = []), e.ifConditions.push(t)
- }
- function Jn(e) {
- null != An(e, "v-once") && (e.once = !0)
- }
- function Yn(e) {
- if ("slot" === e.tag) e.slotName = Tn(e, "name"), "production" !== t.env.NODE_ENV && e.key && Za("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.");
- else {
- var n = Tn(e, "slot");
- n && (e.slotTarget = '""' === n ? '"default"' : n), "template" === e.tag && (e.slotScope = An(e, "scope"))
- }
- }
- function Gn(e) {
- var t;
- (t = Tn(e, "is")) && (e.component = t), null != An(e, "inline-template") && (e.inlineTemplate = !0)
- }
- function Xn(e) {
- var n, i, o, r, a, s, c, u, l = e.attrsList;
- for (n = 0, i = l.length; n < i; n++)
- if (o = r = l[n].name, a = l[n].value, Ss.test(o))
- if (e.hasBindings = !0, c = Qn(o), c && (o = o.replace(Ms, "")), Is.test(o)) o = o.replace(Is, ""), a = wn(a), u = !1, c && (c.prop && (u = !0, "innerHtml" === (o = fo(o)) && (o = "innerHTML")), c.camel && (o = fo(o))), u || ts(e.tag, e.attrsMap.type, o) ? Cn(e, o, a) : En(e, o, a);
- else if (Os.test(o)) o = o.replace(Os, ""), Sn(e, o, a, c);
- else {
- o = o.replace(Ss, "");
- var d = o.match(Ds);
- d && (s = d[1]) && (o = o.slice(0, -(s.length + 1))), Nn(e, o, r, a, s, c), "production" !== t.env.NODE_ENV && "model" === o && ni(e, a)
- } else {
- if ("production" !== t.env.NODE_ENV) {
- var f = xn(a, as);
- f && Za(o + '="' + a + '": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.')
- }
- En(e, o, JSON.stringify(a))
- }
- }
- function Kn(e) {
- for (var t = e; t;) {
- if (void 0 !== t.for) return !0;
- t = t.parent
- }
- return !1
- }
- function Qn(e) {
- var t = e.match(Ms);
- if (t) {
- var n = {};
- return t.forEach(function(e) {
- n[e.slice(1)] = !0
- }), n
- }
- }
- function Zn(e) {
- for (var n = {}, i = 0, o = e.length; i < o; i++) "production" !== t.env.NODE_ENV && n[e[i].name] && !Co && Za("duplicate attribute: " + e[i].name), n[e[i].name] = e[i].value;
- return n
- }
- function ei(e) {
- return "style" === e.tag || "script" === e.tag && (!e.attrsMap.type || "text/javascript" === e.attrsMap.type)
- }
- function ti(e) {
- for (var t = [], n = 0; n < e.length; n++) {
- var i = e[n];
- Ls.test(i.name) || (i.name = i.name.replace(Ps, ""), t.push(i))
- }
- return t
- }
- function ni(e, t) {
- for (var n = e; n;) n.for && n.alias === t && Za("<" + e.tag + ' v-model="' + t + '">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'), n = n.parent
- }
- function ii(e, t) {
- e && (ss = Fs(t.staticKeys || ""), cs = t.isReservedTag || yo, ri(e), ai(e, !1))
- }
- function oi(e) {
- return r("type,tag,attrsList,attrsMap,plain,parent,children,attrs" + (e ? "," + e : ""))
- }
- function ri(e) {
- if (e.static = ci(e), 1 === e.type) {
- if (!cs(e.tag) && "slot" !== e.tag && null == e.attrsMap["inline-template"]) return;
- for (var t = 0, n = e.children.length; t < n; t++) {
- var i = e.children[t];
- ri(i), i.static || (e.static = !1)
- }
- }
- }
- function ai(e, t) {
- if (1 === e.type) {
- if ((e.static || e.once) && (e.staticInFor = t), e.static && e.children.length && (1 !== e.children.length || 3 !== e.children[0].type)) return void(e.staticRoot = !0);
- if (e.staticRoot = !1, e.children)
- for (var n = 0, i = e.children.length; n < i; n++) ai(e.children[n], t || !!e.for);
- e.ifConditions && si(e.ifConditions, t)
- }
- }
- function si(e, t) {
- for (var n = 1, i = e.length; n < i; n++) ai(e[n].block, t)
- }
- function ci(e) {
- return 2 !== e.type && (3 === e.type || !(!e.pre && (e.hasBindings || e.if || e.for || co(e.tag) || !cs(e.tag) || ui(e) || !Object.keys(e).every(ss))))
- }
- function ui(e) {
- for (; e.parent;) {
- if (e = e.parent, "template" !== e.tag) return !1;
- if (e.for) return !0
- }
- return !1
- }
- function li(e, t) {
- var n = t ? "nativeOn:{" : "on:{";
- for (var i in e) n += '"' + i + '":' + di(i, e[i]) + ",";
- return n.slice(0, -1) + "}"
- }
- function di(e, t) {
- if (t) {
- if (Array.isArray(t)) return "[" + t.map(function(t) {
- return di(e, t)
- }).join(",") + "]";
- if (t.modifiers) {
- var n = "",
- i = [];
- for (var o in t.modifiers) Hs[o] ? n += Hs[o] : i.push(o);
- i.length && (n = fi(i) + n);
- return "function($event){" + n + (qs.test(t.value) ? t.value + "($event)" : t.value) + "}"
- }
- return Rs.test(t.value) || qs.test(t.value) ? t.value : "function($event){" + t.value + "}"
- }
- return "function(){}"
- }
- function fi(e) {
- return "if(" + e.map(pi).join("&&") + ")return;"
- }
- function pi(e) {
- var t = parseInt(e, 10);
- if (t) return "$event.keyCode!==" + t;
- var n = Us[e];
- return "_k($event.keyCode," + JSON.stringify(e) + (n ? "," + JSON.stringify(n) : "") + ")"
- }
- function hi(e, t) {
- e.wrapData = function(n) {
- return "_b(" + n + ",'" + e.tag + "'," + t.value + (t.modifiers && t.modifiers.prop ? ",true" : "") + ")"
- }
- }
- function mi(e, t) {
- var n = hs,
- i = hs = [],
- o = ms;
- ms = 0, vs = t, us = t.warn || kn, ls = jn(t.modules, "transformCode"), ds = jn(t.modules, "genData"), fs = t.directives || {}, ps = t.isReservedTag || yo;
- var r = e ? vi(e) : '_c("div")';
- return hs = n, ms = o, {
- render: "with(this){return " + r + "}",
- staticRenderFns: i
- }
- }
- function vi(e) {
- if (e.staticRoot && !e.staticProcessed) return gi(e);
- if (e.once && !e.onceProcessed) return yi(e);
- if (e.for && !e.forProcessed) return _i(e);
- if (e.if && !e.ifProcessed) return bi(e);
- if ("template" !== e.tag || e.slotTarget) {
- if ("slot" === e.tag) return Di(e);
- var t;
- if (e.component) t = Mi(e.component, e);
- else {
- var n = e.plain ? void 0 : xi(e),
- i = e.inlineTemplate ? null : Ni(e, !0);
- t = "_c('" + e.tag + "'" + (n ? "," + n : "") + (i ? "," + i : "") + ")"
- }
- for (var o = 0; o < ls.length; o++) t = ls[o](e, t);
- return t
- }
- return Ni(e) || "void 0"
- }
- function gi(e) {
- return e.staticProcessed = !0, hs.push("with(this){return " + vi(e) + "}"), "_m(" + (hs.length - 1) + (e.staticInFor ? ",true" : "") + ")"
- }
- function yi(e) {
- if (e.onceProcessed = !0, e.if && !e.ifProcessed) return bi(e);
- if (e.staticInFor) {
- for (var n = "", i = e.parent; i;) {
- if (i.for) {
- n = i.key;
- break
- }
- i = i.parent
- }
- return n ? "_o(" + vi(e) + "," + ms++ + (n ? "," + n : "") + ")" : ("production" !== t.env.NODE_ENV && us("v-once can only be used inside v-for that is keyed. "), vi(e))
- }
- return gi(e)
- }
- function bi(e) {
- return e.ifProcessed = !0, wi(e.ifConditions.slice())
- }
- function wi(e) {
- function t(e) {
- return e.once ? yi(e) : vi(e)
- }
- if (!e.length) return "_e()";
- var n = e.shift();
- return n.exp ? "(" + n.exp + ")?" + t(n.block) + ":" + wi(e) : "" + t(n.block)
- }
- function _i(e) {
- var t = e.for,
- n = e.alias,
- i = e.iterator1 ? "," + e.iterator1 : "",
- o = e.iterator2 ? "," + e.iterator2 : "";
- return e.forProcessed = !0, "_l((" + t + "),function(" + n + i + o + "){return " + vi(e) + "})"
- }
- function xi(e) {
- var t = "{",
- n = ki(e);
- n && (t += n + ","), e.key && (t += "key:" + e.key + ","), e.ref && (t += "ref:" + e.ref + ","), e.refInFor && (t += "refInFor:true,"), e.pre && (t += "pre:true,"), e.component && (t += 'tag:"' + e.tag + '",');
- for (var i = 0; i < ds.length; i++) t += ds[i](e);
- if (e.attrs && (t += "attrs:{" + $i(e.attrs) + "},"), e.props && (t += "domProps:{" + $i(e.props) + "},"), e.events && (t += li(e.events) + ","), e.nativeEvents && (t += li(e.nativeEvents, !0) + ","), e.slotTarget && (t += "slot:" + e.slotTarget + ","), e.scopedSlots && (t += Ci(e.scopedSlots) + ","), e.inlineTemplate) {
- var o = ji(e);
- o && (t += o + ",")
- }
- return t = t.replace(/,$/, "") + "}", e.wrapData && (t = e.wrapData(t)), t
- }
- function ki(e) {
- var t = e.directives;
- if (t) {
- var n, i, o, r, a = "directives:[",
- s = !1;
- for (n = 0, i = t.length; n < i; n++) {
- o = t[n], r = !0;
- var c = fs[o.name] || Vs[o.name];
- c && (r = !!c(e, o, us)), r && (s = !0, a += '{name:"' + o.name + '",rawName:"' + o.rawName + '"' + (o.value ? ",value:(" + o.value + "),expression:" + JSON.stringify(o.value) : "") + (o.arg ? ',arg:"' + o.arg + '"' : "") + (o.modifiers ? ",modifiers:" + JSON.stringify(o.modifiers) : "") + "},")
- }
- return s ? a.slice(0, -1) + "]" : void 0
- }
- }
- function ji(e) {
- var n = e.children[0];
- if ("production" !== t.env.NODE_ENV && (e.children.length > 1 || 1 !== n.type) && us("Inline-template components must have exactly one child element."), 1 === n.type) {
- var i = mi(n, vs);
- return "inlineTemplate:{render:function(){" + i.render + "},staticRenderFns:[" + i.staticRenderFns.map(function(e) {
- return "function(){" + e + "}"
- }).join(",") + "]}"
- }
- }
- function Ci(e) {
- return "scopedSlots:{" + Object.keys(e).map(function(t) {
- return Ei(t, e[t])
- }).join(",") + "}"
- }
- function Ei(e, t) {
- return e + ":function(" + String(t.attrsMap.scope) + "){return " + ("template" === t.tag ? Ni(t) || "void 0" : vi(t)) + "}"
- }
- function Ni(e, t) {
- var n = e.children;
- if (n.length) {
- var i = n[0];
- if (1 === n.length && i.for && "template" !== i.tag && "slot" !== i.tag) return vi(i);
- var o = Si(n);
- return "[" + n.map(Ii).join(",") + "]" + (t && o ? "," + o : "")
- }
- }
- function Si(e) {
- for (var t = 0, n = 0; n < e.length; n++) {
- var i = e[n];
- if (1 === i.type) {
- if (Ti(i) || i.ifConditions && i.ifConditions.some(function(e) {
- return Ti(e.block)
- })) {
- t = 2;
- break
- }(Ai(i) || i.ifConditions && i.ifConditions.some(function(e) {
- return Ai(e.block)
- })) && (t = 1)
- }
- }
- return t
- }
- function Ti(e) {
- return void 0 !== e.for || "template" === e.tag || "slot" === e.tag
- }
- function Ai(e) {
- return !ps(e.tag)
- }
- function Ii(e) {
- return 1 === e.type ? vi(e) : Oi(e)
- }
- function Oi(e) {
- return "_v(" + (2 === e.type ? e.expression : Li(JSON.stringify(e.text))) + ")"
- }
- function Di(e) {
- var t = e.slotName || '"default"',
- n = Ni(e),
- i = "_t(" + t + (n ? "," + n : ""),
- o = e.attrs && "{" + e.attrs.map(function(e) {
- return fo(e.name) + ":" + e.value
- }).join(",") + "}",
- r = e.attrsMap["v-bind"];
- return !o && !r || n || (i += ",null"), o && (i += "," + o), r && (i += (o ? "" : ",null") + "," + r), i + ")"
- }
- function Mi(e, t) {
- var n = t.inlineTemplate ? null : Ni(t, !0);
- return "_c(" + e + "," + xi(t) + (n ? "," + n : "") + ")"
- }
- function $i(e) {
- for (var t = "", n = 0; n < e.length; n++) {
- var i = e[n];
- t += '"' + i.name + '":' + Li(i.value) + ","
- }
- return t.slice(0, -1)
- }
- function Li(e) {
- return e.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029")
- }
- function Pi(e, t) {
- var n = Pn(e.trim(), t);
- ii(n, t);
- var i = mi(n, t);
- return {
- ast: n,
- render: i.render,
- staticRenderFns: i.staticRenderFns
- }
- }
- function Fi(e) {
- var t = [];
- return e && Ri(e, t), t
- }
- function Ri(e, t) {
- if (1 === e.type) {
- for (var n in e.attrsMap)
- if (Ss.test(n)) {
- var i = e.attrsMap[n];
- i && ("v-for" === n ? qi(e, 'v-for="' + i + '"', t) : Hi(i, n + '="' + i + '"', t))
- }
- if (e.children)
- for (var o = 0; o < e.children.length; o++) Ri(e.children[o], t)
- } else 2 === e.type && Hi(e.expression, e.text, t)
- }
- function qi(e, t, n) {
- Hi(e.for || "", t, n), Ui(e.alias, "v-for alias", t, n), Ui(e.iterator1, "v-for iterator", t, n), Ui(e.iterator2, "v-for iterator", t, n)
- }
- function Ui(e, t, n, i) {
- "string" != typeof e || zs.test(e) || i.push("- invalid " + t + ' "' + e + '" in expression: ' + n)
- }
- function Hi(e, t, n) {
- try {
- new Function("return " + e)
- } catch (o) {
- var i = e.replace(Ws, "").match(Bs);
- i ? n.push('- avoid using JavaScript keyword as property name: "' + i[0] + '" in expression ' + t) : n.push("- invalid expression: " + t)
- }
- }
- function Vi(e, n) {
- var i = n.warn || kn,
- o = An(e, "class");
- if ("production" !== t.env.NODE_ENV && o) {
- xn(o, n.delimiters) && i('class="' + o + '": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')
- }
- o && (e.staticClass = JSON.stringify(o));
- var r = Tn(e, "class", !1);
- r && (e.classBinding = r)
- }
- function Bi(e) {
- var t = "";
- return e.staticClass && (t += "staticClass:" + e.staticClass + ","), e.classBinding && (t += "class:" + e.classBinding + ","), t
- }
- function zi(e, n) {
- var i = n.warn || kn,
- o = An(e, "style");
- if (o) {
- if ("production" !== t.env.NODE_ENV) {
- xn(o, n.delimiters) && i('style="' + o + '": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.')
- }
- e.staticStyle = JSON.stringify(Zr(o))
- }
- var r = Tn(e, "style", !1);
- r && (e.styleBinding = r)
- }
- function Wi(e) {
- var t = "";
- return e.staticStyle && (t += "staticStyle:" + e.staticStyle + ","), e.styleBinding && (t += "style:(" + e.styleBinding + "),"), t
- }
- function Ji(e, n, i) {
- gs = i;
- var o = n.value,
- r = n.modifiers,
- a = e.tag,
- s = e.attrsMap.type;
- if ("production" !== t.env.NODE_ENV) {
- var c = e.attrsMap["v-bind:type"] || e.attrsMap[":type"];
- "input" === a && c && gs('<input :type="' + c + '" v-model="' + o + '">:\nv-model does not support dynamic input types. Use v-if branches instead.')
- }
- return "select" === a ? Ki(e, o, r) : "input" === a && "checkbox" === s ? Yi(e, o, r) : "input" === a && "radio" === s ? Gi(e, o, r) : Xi(e, o, r), !0
- }
- function Yi(e, n, i) {
- "production" !== t.env.NODE_ENV && null != e.attrsMap.checked && gs("<" + e.tag + ' v-model="' + n + "\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");
- var o = i && i.number,
- r = Tn(e, "value") || "null",
- a = Tn(e, "true-value") || "true",
- s = Tn(e, "false-value") || "false";
- Cn(e, "checked", "Array.isArray(" + n + ")?_i(" + n + "," + r + ")>-1" + ("true" === a ? ":(" + n + ")" : ":_q(" + n + "," + a + ")")), Sn(e, "click", "var $$a=" + n + ",$$el=$event.target,$$c=$$el.checked?(" + a + "):(" + s + ");if(Array.isArray($$a)){var $$v=" + (o ? "_n(" + r + ")" : r) + ",$$i=_i($$a,$$v);if($$c){$$i<0&&(" + n + "=$$a.concat($$v))}else{$$i>-1&&(" + n + "=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{" + n + "=$$c}", null, !0)
- }
- function Gi(e, n, i) {
- "production" !== t.env.NODE_ENV && null != e.attrsMap.checked && gs("<" + e.tag + ' v-model="' + n + "\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");
- var o = i && i.number,
- r = Tn(e, "value") || "null";
- r = o ? "_n(" + r + ")" : r, Cn(e, "checked", "_q(" + n + "," + r + ")"), Sn(e, "click", Zi(n, r), null, !0)
- }
- function Xi(e, n, i) {
- "production" !== t.env.NODE_ENV && ("input" === e.tag && e.attrsMap.value && gs("<" + e.tag + ' v-model="' + n + '" value="' + e.attrsMap.value + "\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."), "textarea" === e.tag && e.children.length && gs('<textarea v-model="' + n + "\">:\ninline content inside <textarea> will be ignored when using v-model. Declare initial values in the component's data option instead."));
- var o = e.attrsMap.type,
- r = i || {},
- a = r.lazy,
- s = r.number,
- c = r.trim,
- u = a || Co && "range" === o ? "change" : "input",
- l = !a && "range" !== o,
- d = "input" === e.tag || "textarea" === e.tag,
- f = d ? "$event.target.value" + (c ? ".trim()" : "") : c ? "(typeof $event === 'string' ? $event.trim() : $event)" : "$event";
- f = s || "number" === o ? "_n(" + f + ")" : f;
- var p = Zi(n, f);
- d && l && (p = "if($event.target.composing)return;" + p), "production" !== t.env.NODE_ENV && "file" === o && gs("<" + e.tag + ' v-model="' + n + '" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'), Cn(e, "value", d ? "_s(" + n + ")" : "(" + n + ")"), Sn(e, u, p, null, !0), (c || s || "number" === o) && Sn(e, "blur", "$forceUpdate()")
- }
- function Ki(e, n, i) {
- "production" !== t.env.NODE_ENV && e.children.some(Qi), Sn(e, "change", Zi(n, 'Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ' + (i && i.number ? "_n(val)" : "val") + "})" + (null == e.attrsMap.multiple ? "[0]" : "")), null, !0)
- }
- function Qi(e) {
- return 1 === e.type && "option" === e.tag && null != e.attrsMap.selected && (gs('<select v-model="' + e.parent.attrsMap["v-model"] + "\">:\ninline selected attributes on <option> will be ignored when using v-model. Declare initial values in the component's data option instead."), !0)
- }
- function Zi(e, t) {
- var n = In(e);
- return null === n.idx ? e + "=" + t : "var $$exp = " + n.exp + ", $$idx = " + n.idx + ";if (!Array.isArray($$exp)){" + e + "=" + t + "}else{$$exp.splice($$idx, 1, " + t + ")}"
- }
- function eo(e, t) {
- t.value && Cn(e, "textContent", "_s(" + t.value + ")")
- }
- function to(e, t) {
- t.value && Cn(e, "innerHTML", "_s(" + t.value + ")")
- }
- function no(e, t) {
- return t = t ? f(f({}, Qs), t) : Qs, Pi(e, t)
- }
- function io(e, n, i) {
- var o = n && n.warn || Mo;
- if ("production" !== t.env.NODE_ENV) try {
- new Function("return 1")
- } catch (e) {
- e.toString().match(/unsafe-eval|CSP/) && o("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")
- }
- var r = n && n.delimiters ? String(n.delimiters) + e : e;
- if (Ks[r]) return Ks[r];
- var a = {},
- s = no(e, n);
- a.render = oo(s.render);
- var c = s.staticRenderFns.length;
- a.staticRenderFns = new Array(c);
- for (var u = 0; u < c; u++) a.staticRenderFns[u] = oo(s.staticRenderFns[u]);
- return "production" !== t.env.NODE_ENV && (a.render === v || a.staticRenderFns.some(function(e) {
- return e === v
- })) && o("failed to compile template:\n\n" + e + "\n\n" + Fi(s.ast).join("\n") + "\n\n", i), Ks[r] = a
- }
- function oo(e) {
- try {
- return new Function(e)
- } catch (e) {
- return v
- }
- }
- function ro(e) {
- if (e.outerHTML) return e.outerHTML;
- var t = document.createElement("div");
- return t.appendChild(e.cloneNode(!0)), t.innerHTML
- }
- var ao, so, co = r("slot,component", !0),
- uo = Object.prototype.hasOwnProperty,
- lo = /-(\w)/g,
- fo = u(function(e) {
- return e.replace(lo, function(e, t) {
- return t ? t.toUpperCase() : ""
- })
- }),
- po = u(function(e) {
- return e.charAt(0).toUpperCase() + e.slice(1)
- }),
- ho = /([^-])([A-Z])/g,
- mo = u(function(e) {
- return e.replace(ho, "$1-$2").replace(ho, "$1-$2").toLowerCase()
- }),
- vo = Object.prototype.toString,
- go = "[object Object]",
- yo = function() {
- return !1
- },
- bo = function(e) {
- return e
- },
- wo = {
- optionMergeStrategies: Object.create(null),
- silent: !1,
- devtools: "production" !== t.env.NODE_ENV,
- errorHandler: null,
- ignoredElements: [],
- keyCodes: Object.create(null),
- isReservedTag: yo,
- isUnknownElement: yo,
- getTagNamespace: v,
- parsePlatformTagName: bo,
- mustUseProp: yo,
- _assetTypes: ["component", "directive", "filter"],
- _lifecycleHooks: ["beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated"],
- _maxUpdateCount: 100
- },
- _o = /[^\w.$]/,
- xo = "__proto__" in {},
- ko = "undefined" != typeof window,
- jo = ko && window.navigator.userAgent.toLowerCase(),
- Co = jo && /msie|trident/.test(jo),
- Eo = jo && jo.indexOf("msie 9.0") > 0,
- No = jo && jo.indexOf("edge/") > 0,
- So = jo && jo.indexOf("android") > 0,
- To = jo && /iphone|ipad|ipod|ios/.test(jo),
- Ao = function() {
- return void 0 === ao && (ao = !ko && void 0 !== n && "server" === n.process.env.VUE_ENV), ao
- },
- Io = ko && window.__VUE_DEVTOOLS_GLOBAL_HOOK__,
- Oo = function() {
- function e() {
- i = !1;
- var e = n.slice(0);
- n.length = 0;
- for (var t = 0; t < e.length; t++) e[t]()
- }
- var t, n = [],
- i = !1;
- if ("undefined" != typeof Promise && k(Promise)) {
- var o = Promise.resolve(),
- r = function(e) {
- console.error(e)
- };
- t = function() {
- o.then(e).catch(r), To && setTimeout(v)
- }
- } else if ("undefined" == typeof MutationObserver || !k(MutationObserver) && "[object MutationObserverConstructor]" !== MutationObserver.toString()) t = function() {
- setTimeout(e, 0)
- };
- else {
- var a = 1,
- s = new MutationObserver(e),
- c = document.createTextNode(String(a));
- s.observe(c, {
- characterData: !0
- }), t = function() {
- a = (a + 1) % 2, c.data = String(a)
- }
- }
- return function(e, o) {
- var r;
- if (n.push(function() {
- e && e.call(o), r && r(o)
- }), i || (i = !0, t()), !e && "undefined" != typeof Promise) return new Promise(function(e) {
- r = e
- })
- }
- }();
- so = "undefined" != typeof Set && k(Set) ? Set : function() {
- function e() {
- this.set = Object.create(null)
- }
- return e.prototype.has = function(e) {
- return !0 === this.set[e]
- }, e.prototype.add = function(e) {
- this.set[e] = !0
- }, e.prototype.clear = function() {
- this.set = Object.create(null)
- }, e
- }();
- var Do, Mo = v;
- if ("production" !== t.env.NODE_ENV) {
- var $o = "undefined" != typeof console;
- Mo = function(e, t) {
- $o && !wo.silent && console.error("[Vue warn]: " + e + " " + (t ? Lo(Do(t)) : ""))
- }, Do = function(e) {
- if (e.$root === e) return "root instance";
- var t = e._isVue ? e.$options.name || e.$options._componentTag : e.name;
- return (t ? "component <" + t + ">" : "anonymous component") + (e._isVue && e.$options.__file ? " at " + e.$options.__file : "")
- };
- var Lo = function(e) {
- return "anonymous component" === e && (e += ' - use the "name" option for better debugging messages.'), "\n(found in " + e + ")"
- }
- }
- var Po = 0,
- Fo = function() {
- this.id = Po++, this.subs = []
- };
- Fo.prototype.addSub = function(e) {
- this.subs.push(e)
- }, Fo.prototype.removeSub = function(e) {
- a(this.subs, e)
- }, Fo.prototype.depend = function() {
- Fo.target && Fo.target.addDep(this)
- }, Fo.prototype.notify = function() {
- for (var e = this.subs.slice(), t = 0, n = e.length; t < n; t++) e[t].update()
- }, Fo.target = null;
- var Ro = [],
- qo = Array.prototype,
- Uo = Object.create(qo);
- ["push", "pop", "shift", "unshift", "splice", "sort", "reverse"].forEach(function(e) {
- var t = qo[e];
- _(Uo, e, function() {
- for (var n = arguments, i = arguments.length, o = new Array(i); i--;) o[i] = n[i];
- var r, a = t.apply(this, o),
- s = this.__ob__;
- switch (e) {
- case "push":
- case "unshift":
- r = o;
- break;
- case "splice":
- r = o.slice(2)
- }
- return r && s.observeArray(r), s.dep.notify(), a
- })
- });
- var Ho = Object.getOwnPropertyNames(Uo),
- Vo = {
- shouldConvert: !0,
- isSettingProps: !1
- },
- Bo = function(e) {
- if (this.value = e, this.dep = new Fo, this.vmCount = 0, _(e, "__ob__", this), Array.isArray(e)) {
- (xo ? E : N)(e, Uo, Ho), this.observeArray(e)
- } else this.walk(e)
- };
- Bo.prototype.walk = function(e) {
- for (var t = Object.keys(e), n = 0; n < t.length; n++) T(e, t[n], e[t[n]])
- }, Bo.prototype.observeArray = function(e) {
- for (var t = 0, n = e.length; t < n; t++) S(e[t])
- };
- var zo = wo.optionMergeStrategies;
- "production" !== t.env.NODE_ENV && (zo.el = zo.propsData = function(e, t, n, i) {
- return n || Mo('option "' + i + '" can only be used during instance creation with the `new` keyword.'), Jo(e, t)
- }), zo.data = function(e, n, i) {
- return i ? e || n ? function() {
- var t = "function" == typeof n ? n.call(i) : n,
- o = "function" == typeof e ? e.call(i) : void 0;
- return t ? D(t, o) : o
- } : void 0 : n ? "function" != typeof n ? ("production" !== t.env.NODE_ENV && Mo('The "data" option should be a function that returns a per-instance value in component definitions.', i), e) : e ? function() {
- return D(n.call(this), e.call(this))
- } : n : e
- }, wo._lifecycleHooks.forEach(function(e) {
- zo[e] = M
- }), wo._assetTypes.forEach(function(e) {
- zo[e + "s"] = $
- }), zo.watch = function(e, t) {
- if (!t) return e;
- if (!e) return t;
- var n = {};
- f(n, e);
- for (var i in t) {
- var o = n[i],
- r = t[i];
- o && !Array.isArray(o) && (o = [o]), n[i] = o ? o.concat(r) : [r]
- }
- return n
- }, zo.props = zo.methods = zo.computed = function(e, t) {
- if (!t) return e;
- if (!e) return t;
- var n = Object.create(null);
- return f(n, e), f(n, t), n
- };
- var Wo, Jo = function(e, t) {
- return void 0 === t ? e : t
- },
- Yo = Object.freeze({
- defineReactive: T,
- _toString: i,
- toNumber: o,
- makeMap: r,
- isBuiltInTag: co,
- remove: a,
- hasOwn: s,
- isPrimitive: c,
- cached: u,
- camelize: fo,
- capitalize: po,
- hyphenate: mo,
- bind: l,
- toArray: d,
- extend: f,
- isObject: p,
- isPlainObject: h,
- toObject: m,
- noop: v,
- no: yo,
- identity: bo,
- genStaticKeys: g,
- looseEqual: y,
- looseIndexOf: b,
- isReserved: w,
- def: _,
- parsePath: x,
- hasProto: xo,
- inBrowser: ko,
- UA: jo,
- isIE: Co,
- isIE9: Eo,
- isEdge: No,
- isAndroid: So,
- isIOS: To,
- isServerRendering: Ao,
- devtools: Io,
- nextTick: Oo,
- get _Set() {
- return so
- },
- mergeOptions: R,
- resolveAsset: q,
- get warn() {
- return Mo
- },
- get formatComponentName() {
- return Do
- },
- validateProp: U
- });
- if ("production" !== t.env.NODE_ENV) {
- var Go = r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),
- Xo = function(e, t) {
- Mo('Property or method "' + t + '" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.', e)
- },
- Ko = "undefined" != typeof Proxy && Proxy.toString().match(/native code/);
- if (Ko) {
- var Qo = r("stop,prevent,self,ctrl,shift,alt,meta");
- wo.keyCodes = new Proxy(wo.keyCodes, {
- set: function(e, t, n) {
- return Qo(t) ? (Mo("Avoid overwriting built-in modifier in config.keyCodes: ." + t), !1) : (e[t] = n, !0)
- }
- })
- }
- var Zo = {
- has: function(e, t) {
- var n = t in e,
- i = Go(t) || "_" === t.charAt(0);
- return n || i || Xo(e, t), n || !i
- }
- },
- er = {
- get: function(e, t) {
- return "string" != typeof t || t in e || Xo(e, t), e[t]
- }
- };
- Wo = function(e) {
- if (Ko) {
- var t = e.$options,
- n = t.render && t.render._withStripped ? er : Zo;
- e._renderProxy = new Proxy(e, n)
- } else e._renderProxy = e
- }
- }
- var tr = function(e, t, n, i, o, r, a) {
- this.tag = e, this.data = t, this.children = n, this.text = i, this.elm = o, this.ns = void 0, this.context = r, this.functionalContext = void 0, this.key = t && t.key, this.componentOptions = a, this.componentInstance = void 0, this.parent = void 0, this.raw = !1, this.isStatic = !1, this.isRootInsert = !0, this.isComment = !1, this.isCloned = !1, this.isOnce = !1
- },
- nr = {
- child: {}
- };
- nr.child.get = function() {
- return this.componentInstance
- }, Object.defineProperties(tr.prototype, nr);
- var ir, or = function() {
- var e = new tr;
- return e.text = "", e.isComment = !0, e
- },
- rr = {
- init: Z,
- prepatch: ee,
- insert: te,
- destroy: ne
- },
- ar = Object.keys(rr),
- sr = u(function(e) {
- var t = "~" === e.charAt(0);
- e = t ? e.slice(1) : e;
- var n = "!" === e.charAt(0);
- return e = n ? e.slice(1) : e, {
- name: e,
- once: t,
- capture: n
- }
- }),
- cr = 1,
- ur = 2,
- lr = null,
- dr = [],
- fr = {},
- pr = {},
- hr = !1,
- mr = !1,
- vr = 0,
- gr = 0,
- yr = function(e, n, i, o) {
- this.vm = e, e._watchers.push(this), o ? (this.deep = !!o.deep, this.user = !!o.user, this.lazy = !!o.lazy, this.sync = !!o.sync) : this.deep = this.user = this.lazy = this.sync = !1, this.cb = i, this.id = ++gr, this.active = !0, this.dirty = this.lazy, this.deps = [], this.newDeps = [], this.depIds = new so, this.newDepIds = new so, this.expression = "production" !== t.env.NODE_ENV ? n.toString() : "", "function" == typeof n ? this.getter = n : (this.getter = x(n), this.getter || (this.getter = function() {}, "production" !== t.env.NODE_ENV && Mo('Failed watching path: "' + n + '" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.', e))), this.value = this.lazy ? void 0 : this.get()
- };
- yr.prototype.get = function() {
- j(this);
- var e = this.getter.call(this.vm, this.vm);
- return this.deep && Te(e), C(), this.cleanupDeps(), e
- }, yr.prototype.addDep = function(e) {
- var t = e.id;
- this.newDepIds.has(t) || (this.newDepIds.add(t), this.newDeps.push(e), this.depIds.has(t) || e.addSub(this))
- }, yr.prototype.cleanupDeps = function() {
- for (var e = this, t = this.deps.length; t--;) {
- var n = e.deps[t];
- e.newDepIds.has(n.id) || n.removeSub(e)
- }
- var i = this.depIds;
- this.depIds = this.newDepIds, this.newDepIds = i, this.newDepIds.clear(), i = this.deps, this.deps = this.newDeps, this.newDeps = i, this.newDeps.length = 0
- }, yr.prototype.update = function() {
- this.lazy ? this.dirty = !0 : this.sync ? this.run() : Se(this)
- }, yr.prototype.run = function() {
- if (this.active) {
- var e = this.get();
- if (e !== this.value || p(e) || this.deep) {
- var n = this.value;
- if (this.value = e, this.user) try {
- this.cb.call(this.vm, e, n)
- } catch (e) {
- if (!wo.errorHandler) throw "production" !== t.env.NODE_ENV && Mo('Error in watcher "' + this.expression + '"', this.vm), e;
- wo.errorHandler.call(null, e, this.vm)
- } else this.cb.call(this.vm, e, n)
- }
- }
- }, yr.prototype.evaluate = function() {
- this.value = this.get(), this.dirty = !1
- }, yr.prototype.depend = function() {
- for (var e = this, t = this.deps.length; t--;) e.deps[t].depend()
- }, yr.prototype.teardown = function() {
- var e = this;
- if (this.active) {
- this.vm._isBeingDestroyed || a(this.vm._watchers, this);
- for (var t = this.deps.length; t--;) e.deps[t].removeSub(e);
- this.active = !1
- }
- };
- var br = new so,
- wr = {
- key: 1,
- ref: 1,
- slot: 1
- },
- _r = {
- enumerable: !0,
- configurable: !0,
- get: v,
- set: v
- },
- xr = 0;
- ! function(e) {
- e.prototype._init = function(e) {
- var n = this;
- n._uid = xr++, n._isVue = !0, e && e._isComponent ? qe(n, e) : n.$options = R(Ue(n.constructor), e || {}, n), "production" !== t.env.NODE_ENV ? Wo(n) : n._renderProxy = n, n._self = n, je(n), we(n), ye(n), Ce(n, "beforeCreate"), Ie(n), Ce(n, "created"), n.$options.el && n.$mount(n.$options.el)
- }
- }(He),
- function(e) {
- var n = {};
- n.get = function() {
- return this._data
- }, "production" !== t.env.NODE_ENV && (n.set = function(e) {
- Mo("Avoid replacing instance root $data. Use nested data properties instead.", this)
- }), Object.defineProperty(e.prototype, "$data", n), e.prototype.$set = A, e.prototype.$delete = I, e.prototype.$watch = function(e, t, n) {
- var i = this;
- n = n || {}, n.user = !0;
- var o = new yr(i, e, t, n);
- return n.immediate && t.call(i, o.value),
- function() {
- o.teardown()
- }
- }
- }(He),
- function(e) {
- var t = /^hook:/;
- e.prototype.$on = function(e, n) {
- var i = this;
- return (i._events[e] || (i._events[e] = [])).push(n), t.test(e) && (i._hasHookEvent = !0), i
- }, e.prototype.$once = function(e, t) {
- function n() {
- i.$off(e, n), t.apply(i, arguments)
- }
- var i = this;
- return n.fn = t, i.$on(e, n), i
- }, e.prototype.$off = function(e, t) {
- var n = this;
- if (!arguments.length) return n._events = Object.create(null), n;
- var i = n._events[e];
- if (!i) return n;
- if (1 === arguments.length) return n._events[e] = null, n;
- for (var o, r = i.length; r--;)
- if ((o = i[r]) === t || o.fn === t) {
- i.splice(r, 1);
- break
- }
- return n
- }, e.prototype.$emit = function(e) {
- var t = this,
- n = t._events[e];
- if (n) {
- n = n.length > 1 ? d(n) : n;
- for (var i = d(arguments, 1), o = 0, r = n.length; o < r; o++) n[o].apply(t, i)
- }
- return t
- }
- }(He),
- function(e) {
- e.prototype._mount = function(e, n) {
- var i = this;
- return i.$el = e, i.$options.render || (i.$options.render = or, "production" !== t.env.NODE_ENV && (i.$options.template && "#" !== i.$options.template.charAt(0) ? Mo("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.", i) : Mo("Failed to mount component: template or render function not defined.", i))), Ce(i, "beforeMount"), i._watcher = new yr(i, function() {
- i._update(i._render(), n)
- }, v), n = !1, null == i.$vnode && (i._isMounted = !0, Ce(i, "mounted")), i
- }, e.prototype._update = function(e, t) {
- var n = this;
- n._isMounted && Ce(n, "beforeUpdate");
- var i = n.$el,
- o = n._vnode,
- r = lr;
- lr = n, n._vnode = e, n.$el = o ? n.__patch__(o, e) : n.__patch__(n.$el, e, t, !1, n.$options._parentElm, n.$options._refElm), lr = r, i && (i.__vue__ = null), n.$el && (n.$el.__vue__ = n), n.$vnode && n.$parent && n.$vnode === n.$parent._vnode && (n.$parent.$el = n.$el)
- }, e.prototype._updateFromParent = function(e, n, i, o) {
- var r = this,
- a = !(!r.$options._renderChildren && !o);
- if (r.$options._parentVnode = i, r.$vnode = i, r._vnode && (r._vnode.parent = i), r.$options._renderChildren = o, e && r.$options.props) {
- Vo.shouldConvert = !1, "production" !== t.env.NODE_ENV && (Vo.isSettingProps = !0);
- for (var s = r.$options._propKeys || [], c = 0; c < s.length; c++) {
- var u = s[c];
- r[u] = U(u, r.$options.props, e, r)
- }
- Vo.shouldConvert = !0, "production" !== t.env.NODE_ENV && (Vo.isSettingProps = !1), r.$options.propsData = e
- }
- if (n) {
- var l = r.$options._parentListeners;
- r.$options._parentListeners = n, ke(r, n, l)
- }
- a && (r.$slots = be(o, i.context), r.$forceUpdate())
- }, e.prototype.$forceUpdate = function() {
- var e = this;
- e._watcher && e._watcher.update()
- }, e.prototype.$destroy = function() {
- var e = this;
- if (!e._isBeingDestroyed) {
- Ce(e, "beforeDestroy"), e._isBeingDestroyed = !0;
- var t = e.$parent;
- !t || t._isBeingDestroyed || e.$options.abstract || a(t.$children, e), e._watcher && e._watcher.teardown();
- for (var n = e._watchers.length; n--;) e._watchers[n].teardown();
- e._data.__ob__ && e._data.__ob__.vmCount--, e._isDestroyed = !0, Ce(e, "destroyed"), e.$off(), e.$el && (e.$el.__vue__ = null), e.__patch__(e._vnode, null)
- }
- }
- }(He),
- function(e) {
- function n(e, t, n) {
- if (Array.isArray(e))
- for (var i = 0; i < e.length; i++) e[i] && "string" != typeof e[i] && r(e[i], t + "_" + i, n);
- else r(e, t, n)
- }
- function r(e, t, n) {
- e.isStatic = !0, e.key = t, e.isOnce = n
- }
- e.prototype.$nextTick = function(e) {
- return Oo(e, this)
- }, e.prototype._render = function() {
- var e = this,
- n = e.$options,
- i = n.render,
- o = n.staticRenderFns,
- r = n._parentVnode;
- if (e._isMounted)
- for (var a in e.$slots) e.$slots[a] = G(e.$slots[a]);
- r && r.data.scopedSlots && (e.$scopedSlots = r.data.scopedSlots), o && !e._staticTrees && (e._staticTrees = []), e.$vnode = r;
- var s;
- try {
- s = i.call(e._renderProxy, e.$createElement)
- } catch (n) {
- if (!wo.errorHandler) throw "production" !== t.env.NODE_ENV && Mo("Error when rendering " + Do(e) + ":"), n;
- wo.errorHandler.call(null, n, e), s = e._vnode
- }
- return s instanceof tr || ("production" !== t.env.NODE_ENV && Array.isArray(s) && Mo("Multiple root nodes returned from render function. Render function should return a single root node.", e), s = or()), s.parent = r, s
- }, e.prototype._s = i, e.prototype._v = J, e.prototype._n = o, e.prototype._e = or, e.prototype._q = y, e.prototype._i = b, e.prototype._m = function(e, t) {
- var i = this._staticTrees[e];
- return i && !t ? Array.isArray(i) ? G(i) : Y(i) : (i = this._staticTrees[e] = this.$options.staticRenderFns[e].call(this._renderProxy), n(i, "__static__" + e, !1), i)
- }, e.prototype._o = function(e, t, i) {
- return n(e, "__once__" + t + (i ? "_" + i : ""), !0), e
- }, e.prototype._f = function(e) {
- return q(this.$options, "filters", e, !0) || bo
- }, e.prototype._l = function(e, t) {
- var n, i, o, r, a;
- if (Array.isArray(e) || "string" == typeof e)
- for (n = new Array(e.length), i = 0, o = e.length; i < o; i++) n[i] = t(e[i], i);
- else if ("number" == typeof e)
- for (n = new Array(e), i = 0; i < e; i++) n[i] = t(i + 1, i);
- else if (p(e))
- for (r = Object.keys(e), n = new Array(r.length), i = 0, o = r.length; i < o; i++) a = r[i], n[i] = t(e[a], a, i);
- return n
- }, e.prototype._t = function(e, n, i, o) {
- var r = this.$scopedSlots[e];
- if (r) return i = i || {}, o && f(i, o), r(i) || n;
- var a = this.$slots[e];
- return a && "production" !== t.env.NODE_ENV && (a._rendered && Mo('Duplicate presence of slot "' + e + '" found in the same render tree - this will likely cause render errors.', this), a._rendered = !0), a || n
- }, e.prototype._b = function(e, n, i, o) {
- if (i)
- if (p(i)) {
- Array.isArray(i) && (i = m(i));
- for (var r in i)
- if ("class" === r || "style" === r) e[r] = i[r];
- else {
- var a = e.attrs && e.attrs.type,
- s = o || wo.mustUseProp(n, a, r) ? e.domProps || (e.domProps = {}) : e.attrs || (e.attrs = {});
- s[r] = i[r]
- }
- } else "production" !== t.env.NODE_ENV && Mo("v-bind without argument expects an Object or Array value", this);
- return e
- }, e.prototype._k = function(e, t, n) {
- var i = wo.keyCodes[t] || n;
- return Array.isArray(i) ? -1 === i.indexOf(e) : i !== e
- }
- }(He);
- var kr = [String, RegExp],
- jr = {
- name: "keep-alive",
- abstract: !0,
- props: {
- include: kr,
- exclude: kr
- },
- created: function() {
- this.cache = Object.create(null)
- },
- destroyed: function() {
- var e = this;
- for (var t in this.cache) Xe(e.cache[t])
- },
- watch: {
- include: function(e) {
- Ge(this.cache, function(t) {
- return Ye(e, t)
- })
- },
- exclude: function(e) {
- Ge(this.cache, function(t) {
- return !Ye(e, t)
- })
- }
- },
- render: function() {
- var e = he(this.$slots.default),
- t = e && e.componentOptions;
- if (t) {
- var n = Je(t);
- if (n && (this.include && !Ye(this.include, n) || this.exclude && Ye(this.exclude, n))) return e;
- var i = null == e.key ? t.Ctor.cid + (t.tag ? "::" + t.tag : "") : e.key;
- this.cache[i] ? e.componentInstance = this.cache[i].componentInstance : this.cache[i] = e, e.data.keepAlive = !0
- }
- return e
- }
- },
- Cr = {
- KeepAlive: jr
- };
- ! function(e) {
- var n = {};
- n.get = function() {
- return wo
- }, "production" !== t.env.NODE_ENV && (n.set = function() {
- Mo("Do not replace the Vue.config object, set individual fields instead.")
- }), Object.defineProperty(e, "config", n), e.util = Yo, e.set = A, e.delete = I, e.nextTick = Oo, e.options = Object.create(null), wo._assetTypes.forEach(function(t) {
- e.options[t + "s"] = Object.create(null)
- }), e.options._base = e, f(e.options.components, Cr), Ve(e), Be(e), ze(e), We(e)
- }(He), Object.defineProperty(He.prototype, "$isServer", {
- get: Ao
- }), He.version = "2.1.10";
- var Er, Nr, Sr = r("input,textarea,option,select"),
- Tr = function(e, t, n) {
- return "value" === n && Sr(e) && "button" !== t || "selected" === n && "option" === e || "checked" === n && "input" === e || "muted" === n && "video" === e
- },
- Ar = r("contenteditable,draggable,spellcheck"),
- Ir = r("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),
- Or = "http://www.w3.org/1999/xlink",
- Dr = function(e) {
- return ":" === e.charAt(5) && "xlink" === e.slice(0, 5)
- },
- Mr = function(e) {
- return Dr(e) ? e.slice(6, e.length) : ""
- },
- $r = function(e) {
- return null == e || !1 === e
- },
- Lr = {
- svg: "http://www.w3.org/2000/svg",
- math: "http://www.w3.org/1998/Math/MathML"
- },
- Pr = r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),
- Fr = r("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0),
- Rr = function(e) {
- return "pre" === e
- },
- qr = function(e) {
- return Pr(e) || Fr(e)
- },
- Ur = Object.create(null),
- Hr = Object.freeze({
- createElement: rt,
- createElementNS: at,
- createTextNode: st,
- createComment: ct,
- insertBefore: ut,
- removeChild: lt,
- appendChild: dt,
- parentNode: ft,
- nextSibling: pt,
- tagName: ht,
- setTextContent: mt,
- setAttribute: vt
- }),
- Vr = {
- create: function(e, t) {
- gt(t)
- },
- update: function(e, t) {
- e.data.ref !== t.data.ref && (gt(e, !0), gt(t))
- },
- destroy: function(e) {
- gt(e, !0)
- }
- },
- Br = new tr("", {}, []),
- zr = ["create", "activate", "update", "remove", "destroy"],
- Wr = {
- create: xt,
- update: xt,
- destroy: function(e) {
- xt(e, Br)
- }
- },
- Jr = Object.create(null),
- Yr = [Vr, Wr],
- Gr = {
- create: Nt,
- update: Nt
- },
- Xr = {
- create: Tt,
- update: Tt
- },
- Kr = {
- create: Ot,
- update: Ot
- },
- Qr = {
- create: Dt,
- update: Dt
- },
- Zr = u(function(e) {
- var t = {},
- n = /;(?![^(]*\))/g,
- i = /:(.+)/;
- return e.split(n).forEach(function(e) {
- if (e) {
- var n = e.split(i);
- n.length > 1 && (t[n[0].trim()] = n[1].trim())
- }
- }), t
- }),
- ea = /^--/,
- ta = /\s*!important$/,
- na = function(e, t, n) {
- ea.test(t) ? e.style.setProperty(t, n) : ta.test(n) ? e.style.setProperty(t, n.replace(ta, ""), "important") : e.style[oa(t)] = n
- },
- ia = ["Webkit", "Moz", "ms"],
- oa = u(function(e) {
- if (Nr = Nr || document.createElement("div"), "filter" !== (e = fo(e)) && e in Nr.style) return e;
- for (var t = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < ia.length; n++) {
- var i = ia[n] + t;
- if (i in Nr.style) return i
- }
- }),
- ra = {
- create: qt,
- update: qt
- },
- aa = ko && !Eo,
- sa = "transition",
- ca = "animation",
- ua = "transition",
- la = "transitionend",
- da = "animation",
- fa = "animationend";
- aa && (void 0 === window.ontransitionend && void 0 !== window.onwebkittransitionend && (ua = "WebkitTransition", la = "webkitTransitionEnd"), void 0 === window.onanimationend && void 0 !== window.onwebkitanimationend && (da = "WebkitAnimation", fa = "webkitAnimationEnd"));
- var pa = ko && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout,
- ha = /\b(transform|all)(,|$)/,
- ma = u(function(e) {
- return {
- enterClass: e + "-enter",
- leaveClass: e + "-leave",
- appearClass: e + "-enter",
- enterToClass: e + "-enter-to",
- leaveToClass: e + "-leave-to",
- appearToClass: e + "-enter-to",
- enterActiveClass: e + "-enter-active",
- leaveActiveClass: e + "-leave-active",
- appearActiveClass: e + "-enter-active"
- }
- }),
- va = ko ? {
- create: en,
- activate: en,
- remove: function(e, t) {
- e.data.show ? t() : Kt(e, t)
- }
- } : {},
- ga = [Gr, Xr, Kr, Qr, ra, va],
- ya = ga.concat(Yr),
- ba = function(e) {
- function n(e) {
- return new tr(T.tagName(e).toLowerCase(), {}, [], void 0, e)
- }
- function i(e, t) {
- function n() {
- 0 == --n.listeners && o(e)
- }
- return n.listeners = t, n
- }
- function o(e) {
- var t = T.parentNode(e);
- t && T.removeChild(t, e)
- }
- function a(e, n, i, o, r) {
- if (e.isRootInsert = !r, !s(e, n, i, o)) {
- var a = e.data,
- c = e.children,
- u = e.tag;
- bt(u) ? ("production" !== t.env.NODE_ENV && (a && a.pre && A++, A || e.ns || wo.ignoredElements.length && wo.ignoredElements.indexOf(u) > -1 || !wo.isUnknownElement(u) || Mo("Unknown custom element: <" + u + '> - did you register the component correctly? For recursive components, make sure to provide the "name" option.', e.context)), e.elm = e.ns ? T.createElementNS(e.ns, u) : T.createElement(u, e), m(e), f(e, c, n), bt(a) && h(e, n), d(i, e.elm, o), "production" !== t.env.NODE_ENV && a && a.pre && A--) : e.isComment ? (e.elm = T.createComment(e.text), d(i, e.elm, o)) : (e.elm = T.createTextNode(e.text), d(i, e.elm, o))
- }
- }
- function s(e, t, n, i) {
- var o = e.data;
- if (bt(o)) {
- var r = bt(e.componentInstance) && o.keepAlive;
- if (bt(o = o.hook) && bt(o = o.init) && o(e, !1, n, i), bt(e.componentInstance)) return u(e, t), r && l(e, t, n, i), !0
- }
- }
- function u(e, t) {
- e.data.pendingInsert && t.push.apply(t, e.data.pendingInsert), e.elm = e.componentInstance.$el, p(e) ? (h(e, t), m(e)) : (gt(e), t.push(e))
- }
- function l(e, t, n, i) {
- for (var o, r = e; r.componentInstance;)
- if (r = r.componentInstance._vnode, bt(o = r.data) && bt(o = o.transition)) {
- for (o = 0; o < N.activate.length; ++o) N.activate[o](Br, r);
- t.push(r);
- break
- }
- d(n, e.elm, i)
- }
- function d(e, t, n) {
- e && (n ? T.insertBefore(e, t, n) : T.appendChild(e, t))
- }
- function f(e, t, n) {
- if (Array.isArray(t))
- for (var i = 0; i < t.length; ++i) a(t[i], n, e.elm, null, !0);
- else c(e.text) && T.appendChild(e.elm, T.createTextNode(e.text))
- }
- function p(e) {
- for (; e.componentInstance;) e = e.componentInstance._vnode;
- return bt(e.tag)
- }
- function h(e, t) {
- for (var n = 0; n < N.create.length; ++n) N.create[n](Br, e);
- C = e.data.hook, bt(C) && (C.create && C.create(Br, e), C.insert && t.push(e))
- }
- function m(e) {
- var t;
- bt(t = e.context) && bt(t = t.$options._scopeId) && T.setAttribute(e.elm, t, ""), bt(t = lr) && t !== e.context && bt(t = t.$options._scopeId) && T.setAttribute(e.elm, t, "")
- }
- function v(e, t, n, i, o, r) {
- for (; i <= o; ++i) a(n[i], r, e, t)
- }
- function g(e) {
- var t, n, i = e.data;
- if (bt(i))
- for (bt(t = i.hook) && bt(t = t.destroy) && t(e), t = 0; t < N.destroy.length; ++t) N.destroy[t](e);
- if (bt(t = e.children))
- for (n = 0; n < e.children.length; ++n) g(e.children[n])
- }
- function y(e, t, n, i) {
- for (; n <= i; ++n) {
- var r = t[n];
- bt(r) && (bt(r.tag) ? (b(r), g(r)) : o(r.elm))
- }
- }
- function b(e, t) {
- if (t || bt(e.data)) {
- var n = N.remove.length + 1;
- for (t ? t.listeners += n : t = i(e.elm, n), bt(C = e.componentInstance) && bt(C = C._vnode) && bt(C.data) && b(C, t), C = 0; C < N.remove.length; ++C) N.remove[C](e, t);
- bt(C = e.data.hook) && bt(C = C.remove) ? C(e, t) : t()
- } else o(e.elm)
- }
- function w(e, n, i, o, r) {
- for (var s, c, u, l, d = 0, f = 0, p = n.length - 1, h = n[0], m = n[p], g = i.length - 1, b = i[0], w = i[g], x = !r; d <= p && f <= g;) yt(h) ? h = n[++d] : yt(m) ? m = n[--p] : wt(h, b) ? (_(h, b, o), h = n[++d], b = i[++f]) : wt(m, w) ? (_(m, w, o), m = n[--p], w = i[--g]) : wt(h, w) ? (_(h, w, o), x && T.insertBefore(e, h.elm, T.nextSibling(m.elm)), h = n[++d], w = i[--g]) : wt(m, b) ? (_(m, b, o), x && T.insertBefore(e, m.elm, h.elm), m = n[--p], b = i[++f]) : (yt(s) && (s = _t(n, d, p)), c = bt(b.key) ? s[b.key] : null, yt(c) ? (a(b, o, e, h.elm), b = i[++f]) : (u = n[c], "production" === t.env.NODE_ENV || u || Mo("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."), wt(u, b) ? (_(u, b, o), n[c] = void 0, x && T.insertBefore(e, b.elm, h.elm), b = i[++f]) : (a(b, o, e, h.elm), b = i[++f])));
- d > p ? (l = yt(i[g + 1]) ? null : i[g + 1].elm, v(e, l, i, f, g, o)) : f > g && y(e, n, d, p)
- }
- function _(e, t, n, i) {
- if (e !== t) {
- if (t.isStatic && e.isStatic && t.key === e.key && (t.isCloned || t.isOnce)) return t.elm = e.elm, void(t.componentInstance = e.componentInstance);
- var o, r = t.data,
- a = bt(r);
- a && bt(o = r.hook) && bt(o = o.prepatch) && o(e, t);
- var s = t.elm = e.elm,
- c = e.children,
- u = t.children;
- if (a && p(t)) {
- for (o = 0; o < N.update.length; ++o) N.update[o](e, t);
- bt(o = r.hook) && bt(o = o.update) && o(e, t)
- }
- yt(t.text) ? bt(c) && bt(u) ? c !== u && w(s, c, u, n, i) : bt(u) ? (bt(e.text) && T.setTextContent(s, ""), v(s, null, u, 0, u.length - 1, n)) : bt(c) ? y(s, c, 0, c.length - 1) : bt(e.text) && T.setTextContent(s, "") : e.text !== t.text && T.setTextContent(s, t.text), a && bt(o = r.hook) && bt(o = o.postpatch) && o(e, t)
- }
- }
- function x(e, t, n) {
- if (n && e.parent) e.parent.data.pendingInsert = t;
- else
- for (var i = 0; i < t.length; ++i) t[i].data.hook.insert(t[i])
- }
- function k(e, n, i) {
- if ("production" !== t.env.NODE_ENV && !j(e, n)) return !1;
- n.elm = e;
- var o = n.tag,
- r = n.data,
- a = n.children;
- if (bt(r) && (bt(C = r.hook) && bt(C = C.init) && C(n, !0), bt(C = n.componentInstance))) return u(n, i), !0;
- if (bt(o)) {
- if (bt(a))
- if (e.hasChildNodes()) {
- for (var s = !0, c = e.firstChild, l = 0; l < a.length; l++) {
- if (!c || !k(c, a[l], i)) {
- s = !1;
- break
- }
- c = c.nextSibling
- }
- if (!s || c) return "production" === t.env.NODE_ENV || "undefined" == typeof console || I || (I = !0, console.warn("Parent: ", e), console.warn("Mismatching childNodes vs. VNodes: ", e.childNodes, a)), !1
- } else f(n, a, i);
- if (bt(r))
- for (var d in r)
- if (!O(d)) {
- h(n, i);
- break
- }
- } else e.data !== n.text && (e.data = n.text);
- return !0
- }
- function j(e, t) {
- return t.tag ? 0 === t.tag.indexOf("vue-component") || t.tag.toLowerCase() === (e.tagName && e.tagName.toLowerCase()) : e.nodeType === (t.isComment ? 8 : 3)
- }
- var C, E, N = {},
- S = e.modules,
- T = e.nodeOps;
- for (C = 0; C < zr.length; ++C)
- for (N[zr[C]] = [], E = 0; E < S.length; ++E) void 0 !== S[E][zr[C]] && N[zr[C]].push(S[E][zr[C]]);
- var A = 0,
- I = !1,
- O = r("attrs,style,class,staticClass,staticStyle,key");
- return function(e, i, o, r, s, c) {
- if (!i) return void(e && g(e));
- var u = !1,
- l = [];
- if (e) {
- var d = bt(e.nodeType);
- if (!d && wt(e, i)) _(e, i, l, r);
- else {
- if (d) {
- if (1 === e.nodeType && e.hasAttribute("server-rendered") && (e.removeAttribute("server-rendered"), o = !0), o) {
- if (k(e, i, l)) return x(i, l, !0), e;
- "production" !== t.env.NODE_ENV && Mo("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")
- }
- e = n(e)
- }
- var f = e.elm,
- h = T.parentNode(f);
- if (a(i, l, f._leaveCb ? null : h, T.nextSibling(f)), i.parent) {
- for (var m = i.parent; m;) m.elm = i.elm, m = m.parent;
- if (p(i))
- for (var v = 0; v < N.create.length; ++v) N.create[v](Br, i.parent)
- }
- null !== h ? y(h, [e], 0, 0) : bt(e.tag) && g(e)
- }
- } else u = !0, a(i, l, s, c);
- return x(i, l, u), i.elm
- }
- }({
- nodeOps: Hr,
- modules: ya
- }),
- wa = /^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/;
- Eo && document.addEventListener("selectionchange", function() {
- var e = document.activeElement;
- e && e.vmodel && sn(e, "input")
- });
- var _a = {
- inserted: function(e, n, i) {
- if ("production" !== t.env.NODE_ENV && (wa.test(i.tag) || Mo("v-model is not supported on element type: <" + i.tag + ">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.", i.context)), "select" === i.tag) {
- var o = function() {
- tn(e, n, i.context)
- };
- o(), (Co || No) && setTimeout(o, 0)
- } else "textarea" !== i.tag && "text" !== e.type || (e._vModifiers = n.modifiers, n.modifiers.lazy || (So || (e.addEventListener("compositionstart", rn), e.addEventListener("compositionend", an)), Eo && (e.vmodel = !0)))
- },
- componentUpdated: function(e, t, n) {
- if ("select" === n.tag) {
- tn(e, t, n.context);
- (e.multiple ? t.value.some(function(t) {
- return nn(t, e.options)
- }) : t.value !== t.oldValue && nn(t.value, e.options)) && sn(e, "change")
- }
- }
- },
- xa = {
- bind: function(e, t, n) {
- var i = t.value;
- n = cn(n);
- var o = n.data && n.data.transition,
- r = e.__vOriginalDisplay = "none" === e.style.display ? "" : e.style.display;
- i && o && !Eo ? (n.data.show = !0, Xt(n, function() {
- e.style.display = r
- })) : e.style.display = i ? r : "none"
- },
- update: function(e, t, n) {
- var i = t.value;
- i !== t.oldValue && (n = cn(n), n.data && n.data.transition && !Eo ? (n.data.show = !0, i ? Xt(n, function() {
- e.style.display = e.__vOriginalDisplay
- }) : Kt(n, function() {
- e.style.display = "none"
- })) : e.style.display = i ? e.__vOriginalDisplay : "none")
- },
- unbind: function(e, t, n, i, o) {
- o || (e.style.display = e.__vOriginalDisplay)
- }
- },
- ka = {
- model: _a,
- show: xa
- },
- ja = {
- name: String,
- appear: Boolean,
- css: Boolean,
- mode: String,
- type: String,
- enterClass: String,
- leaveClass: String,
- enterToClass: String,
- leaveToClass: String,
- enterActiveClass: String,
- leaveActiveClass: String,
- appearClass: String,
- appearActiveClass: String,
- appearToClass: String
- },
- Ca = {
- name: "transition",
- props: ja,
- abstract: !0,
- render: function(e) {
- var n = this,
- i = this.$slots.default;
- if (i && (i = i.filter(function(e) {
- return e.tag
- }), i.length)) {
- "production" !== t.env.NODE_ENV && i.length > 1 && Mo("<transition> can only be used on a single element. Use <transition-group> for lists.", this.$parent);
- var o = this.mode;
- "production" !== t.env.NODE_ENV && o && "in-out" !== o && "out-in" !== o && Mo("invalid <transition> mode: " + o, this.$parent);
- var r = i[0];
- if (fn(this.$vnode)) return r;
- var a = un(r);
- if (!a) return r;
- if (this._leaving) return dn(e, r);
- var s = "__transition-" + this._uid + "-",
- u = a.key = null == a.key ? s + a.tag : c(a.key) ? 0 === String(a.key).indexOf(s) ? a.key : s + a.key : a.key,
- l = (a.data || (a.data = {})).transition = ln(this),
- d = this._vnode,
- p = un(d);
- if (a.data.directives && a.data.directives.some(function(e) {
- return "show" === e.name
- }) && (a.data.show = !0), p && p.data && !pn(a, p)) {
- var h = p && (p.data.transition = f({}, l));
- if ("out-in" === o) return this._leaving = !0, ce(h, "afterLeave", function() {
- n._leaving = !1, n.$forceUpdate()
- }, u), dn(e, r);
- if ("in-out" === o) {
- var m, v = function() {
- m()
- };
- ce(l, "afterEnter", v, u), ce(l, "enterCancelled", v, u), ce(h, "delayLeave", function(e) {
- m = e
- }, u)
- }
- }
- return r
- }
- }
- },
- Ea = f({
- tag: String,
- moveClass: String
- }, ja);
- delete Ea.mode;
- var Na = {
- props: Ea,
- render: function(e) {
- for (var n = this.tag || this.$vnode.data.tag || "span", i = Object.create(null), o = this.prevChildren = this.children, r = this.$slots.default || [], a = this.children = [], s = ln(this), c = 0; c < r.length; c++) {
- var u = r[c];
- if (u.tag)
- if (null != u.key && 0 !== String(u.key).indexOf("__vlist")) a.push(u), i[u.key] = u, (u.data || (u.data = {})).transition = s;
- else if ("production" !== t.env.NODE_ENV) {
- var l = u.componentOptions,
- d = l ? l.Ctor.options.name || l.tag : u.tag;
- Mo("<transition-group> children must be keyed: <" + d + ">")
- }
- }
- if (o) {
- for (var f = [], p = [], h = 0; h < o.length; h++) {
- var m = o[h];
- m.data.transition = s, m.data.pos = m.elm.getBoundingClientRect(), i[m.key] ? f.push(m) : p.push(m)
- }
- this.kept = e(n, null, f), this.removed = p
- }
- return e(n, null, a)
- },
- beforeUpdate: function() {
- this.__patch__(this._vnode, this.kept, !1, !0), this._vnode = this.kept
- },
- updated: function() {
- var e = this.prevChildren,
- t = this.moveClass || (this.name || "v") + "-move";
- if (e.length && this.hasMove(e[0].elm, t)) {
- e.forEach(hn), e.forEach(mn), e.forEach(vn);
- document.body.offsetHeight;
- e.forEach(function(e) {
- if (e.data.moved) {
- var n = e.elm,
- i = n.style;
- Bt(n, t), i.transform = i.WebkitTransform = i.transitionDuration = "", n.addEventListener(la, n._moveCb = function e(i) {
- i && !/transform$/.test(i.propertyName) || (n.removeEventListener(la, e), n._moveCb = null, zt(n, t))
- })
- }
- })
- }
- },
- methods: {
- hasMove: function(e, t) {
- if (!aa) return !1;
- if (null != this._hasMove) return this._hasMove;
- Bt(e, t);
- var n = Jt(e);
- return zt(e, t), this._hasMove = n.hasTransform
- }
- }
- },
- Sa = {
- Transition: Ca,
- TransitionGroup: Na
- };
- He.config.isUnknownElement = it, He.config.isReservedTag = qr, He.config.getTagNamespace = nt, He.config.mustUseProp = Tr, f(He.options.directives, ka), f(He.options.components, Sa), He.prototype.__patch__ = ko ? ba : v, He.prototype.$mount = function(e, t) {
- return e = e && ko ? ot(e) : void 0, this._mount(e, t)
- }, "production" !== t.env.NODE_ENV && ko && "undefined" != typeof console && console[console.info ? "info" : "log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html"), setTimeout(function() {
- wo.devtools && (Io ? Io.emit("init", He) : "production" !== t.env.NODE_ENV && ko && !No && /Chrome\/\d+/.test(window.navigator.userAgent) && console[console.info ? "info" : "log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools"))
- }, 0);
- var Ta, Aa = !!ko && function(e, t) {
- var n = document.createElement("div");
- return n.innerHTML = '<div a="' + e + '">', n.innerHTML.indexOf(t) > 0
- }("\n", " "),
- Ia = r("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr", !0),
- Oa = r("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source", !0),
- Da = r("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track", !0),
- Ma = /([^\s"'<>\/=]+)/,
- $a = /(?:=)/,
- La = [/"([^"]*)"+/.source, /'([^']*)'+/.source, /([^\s"'=<>`]+)/.source],
- Pa = new RegExp("^\\s*" + Ma.source + "(?:\\s*(" + $a.source + ")\\s*(?:" + La.join("|") + "))?"),
- Fa = "[a-zA-Z_][\\w\\-\\.]*",
- Ra = "((?:" + Fa + "\\:)?" + Fa + ")",
- qa = new RegExp("^<" + Ra),
- Ua = /^\s*(\/?)>/,
- Ha = new RegExp("^<\\/" + Ra + "[^>]*>"),
- Va = /^<!DOCTYPE [^>]+>/i,
- Ba = /^<!--/,
- za = /^<!\[/,
- Wa = !1;
- "x".replace(/x(.)?/g, function(e, t) {
- Wa = "" === t
- });
- var Ja, Ya, Ga, Xa, Ka, Qa, Za, es, ts, ns, is, os, rs, as, ss, cs, us, ls, ds, fs, ps, hs, ms, vs, gs, ys = r("script,style", !0),
- bs = {},
- ws = /</g,
- _s = />/g,
- xs = / /g,
- ks = /&/g,
- js = /"/g,
- Cs = /\{\{((?:.|\n)+?)\}\}/g,
- Es = /[-.*+?^${}()|[\]\/\\]/g,
- Ns = u(function(e) {
- var t = e[0].replace(Es, "\\$&"),
- n = e[1].replace(Es, "\\$&");
- return new RegExp(t + "((?:.|\\n)+?)" + n, "g")
- }),
- Ss = /^v-|^@|^:/,
- Ts = /(.*?)\s+(?:in|of)\s+(.*)/,
- As = /\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,
- Is = /^:|^v-bind:/,
- Os = /^@|^v-on:/,
- Ds = /:(.*)$/,
- Ms = /\.[^.]+/g,
- $s = u(gn),
- Ls = /^xmlns:NS\d+/,
- Ps = /^NS\d+:/,
- Fs = u(oi),
- Rs = /^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,
- qs = /^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,
- Us = {
- esc: 27,
- tab: 9,
- enter: 13,
- space: 32,
- up: 38,
- left: 37,
- right: 39,
- down: 40,
- delete: [8, 46]
- },
- Hs = {
- stop: "$event.stopPropagation();",
- prevent: "$event.preventDefault();",
- self: "if($event.target !== $event.currentTarget)return;",
- ctrl: "if(!$event.ctrlKey)return;",
- shift: "if(!$event.shiftKey)return;",
- alt: "if(!$event.altKey)return;",
- meta: "if(!$event.metaKey)return;"
- },
- Vs = {
- bind: hi,
- cloak: v
- },
- Bs = new RegExp("\\b" + "do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b") + "\\b"),
- zs = /[A-Za-z_$][\w$]*/,
- Ws = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,
- Js = {
- staticKeys: ["staticClass"],
- transformNode: Vi,
- genData: Bi
- },
- Ys = {
- staticKeys: ["staticStyle"],
- transformNode: zi,
- genData: Wi
- },
- Gs = [Js, Ys],
- Xs = {
- model: Ji,
- text: eo,
- html: to
- },
- Ks = Object.create(null),
- Qs = {
- expectHTML: !0,
- modules: Gs,
- staticKeys: g(Gs),
- directives: Xs,
- isReservedTag: qr,
- isUnaryTag: Ia,
- mustUseProp: Tr,
- getTagNamespace: nt,
- isPreTag: Rr
- },
- Zs = u(function(e) {
- var t = ot(e);
- return t && t.innerHTML
- }),
- ec = He.prototype.$mount;
- He.prototype.$mount = function(e, n) {
- if ((e = e && ot(e)) === document.body || e === document.documentElement) return "production" !== t.env.NODE_ENV && Mo("Do not mount Vue to <html> or <body> - mount to normal elements instead."), this;
- var i = this.$options;
- if (!i.render) {
- var o = i.template;
- if (o)
- if ("string" == typeof o) "#" === o.charAt(0) && (o = Zs(o), "production" === t.env.NODE_ENV || o || Mo("Template element not found or is empty: " + i.template, this));
- else {
- if (!o.nodeType) return "production" !== t.env.NODE_ENV && Mo("invalid template option:" + o, this), this;
- o = o.innerHTML
- }
- else e && (o = ro(e));
- if (o) {
- var r = io(o, {
- warn: Mo,
- shouldDecodeNewlines: Aa,
- delimiters: i.delimiters
- }, this),
- a = r.render,
- s = r.staticRenderFns;
- i.render = a, i.staticRenderFns = s
- }
- }
- return ec.call(this, e, n)
- }, He.compile = io, e.exports = He
- }).call(t, n(5), n(6))
- }, function(e, t, n) {
- "use strict";
- var i = n(3),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i);
- (0, window.$)(function() {
- if (void 0 !== window.navigator) {
- var e = window.navigator.serviceWorker;
- void 0 !== e && (e.register("/service-worker.js").then(function() {}).catch(function() {}), window.addEventListener("beforeinstallprompt", function(e) {
- o.default.actionLog("homescreen_prompt", {
- event: "prompt"
- }), e.userChoice.then(function(e) {
- o.default.actionLog("homescreen_prompt", {
- event: "result",
- outcome: e.outcome
- })
- })
- }))
- }
- })
- }, function(e, t, n) {
- "use strict";
- function i() {
- var e = decodeURIComponent(window.location.search.substr(1)),
- t = {};
- return o.each(e.split("&"), function(e) {
- var n = e.split("="),
- i = n[0],
- o = void 0 === n[1] || n[1];
- "" !== i && ("[]" === i.substr(-2) ? void 0 === t[i] ? t[i] = [o] : t[i].push(o) : t[i] = o)
- }), t
- }
- var o = window._,
- r = window.$,
- a = ["_location"];
- ! function() {
- var e = i(),
- t = !1;
- for (var n in e) o.includes(a, n) && (delete e[n], t = !0);
- if (t) {
- var s = r.param(e);
- "" !== s && (s = "?" + s);
- var c = window.location.href.replace(window.location.search, s);
- "function" == typeof window.history.replaceState && window.history.replaceState(null, document.title, c)
- }
- }()
- }, function(e, t, n) {
- "use strict";
- n(19), document.addEventListener("lazybeforeunveil", function(e) {
- var t = e.target.getAttribute("data-bg");
- t && (e.target.style.backgroundImage = "url(" + t + ")")
- })
- }, , function(e, t, n) {
- "use strict";
- function i(e, t) {
- if (t <= 0 || t > 1) throw new RangeError("Invalid range for inViewportAreaThreshold: " + t + " is not in (0.0, 1.0]");
- var n = e.getBoundingClientRect(),
- i = n.width * n.height;
- if (0 === i) return !1;
- var o = window.innerWidth || document.documentElement.clientWidth,
- r = window.innerHeight || document.documentElement.clientHeight;
- return ((n.right > o ? o : n.right) - (n.left < 0 ? 0 : n.left)) * ((n.bottom > r ? r : n.bottom) - (n.top < 0 ? 0 : n.top)) >= i * t
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = {
- isElementInViewport: i
- }
- }, , , , , , , , , , , , , , , , , , , function(e, t, n) {
- "use strict";
- function i(e) {
- if (Array.isArray(e)) {
- for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
- return n
- }
- return Array.from(e)
- }
- function o(e) {
- return C.assign({}, {
- id: e.id,
- typeIdentifier: e.typeIdentifier,
- categoryName: e.categoryName,
- createdAt: e.createdAt,
- createdAtForDisplay: e.createdAtForDisplay,
- isRead: !!e.isRead,
- url: e.url,
- isDeleted: e.isDeleted,
- isNewThan: function(e) {
- return this.createdAt > e
- },
- getHyphenedTypeIdentifier: function() {
- return this.typeIdentifier.replace(/_/g, "-")
- }
- })
- }
- function r(e) {
- return C.assign({}, o(e), {
- isApproved: e.isApproved,
- friendName: e.friendName,
- friendProfileUrl: e.friendProfileUrl,
- friendImageUrl: e.friendImageUrl,
- message: e.message
- })
- }
- function a(e) {
- return C.assign({}, o(e), {
- friendName: e.friendName,
- friendProfileUrl: e.friendProfileUrl,
- friendImageUrl: e.friendImageUrl
- })
- }
- function s(e) {
- return C.assign({}, o(e), {
- friendName: e.friendName,
- friendProfileUrl: e.friendProfileUrl,
- friendImageUrl: e.friendImageUrl
- })
- }
- function c(e) {
- return C.assign({}, o(e), {
- commentUserName: e.commentUserName,
- commentUserProfileUrl: e.commentUserProfileUrl,
- commentUserImageUrl: e.commentUserImageUrl,
- text: e.text
- })
- }
- function u(e) {
- return C.assign({}, o(e), {
- quoteUserName: e.quoteUserName,
- quoteUserProfileUrl: e.quoteUserProfileUrl,
- topicUrl: e.topicUrl,
- topicTitle: e.topicTitle
- })
- }
- function l(e) {
- return C.assign({}, o(e), {
- commentUserName: e.commentUserName,
- commentUserProfileUrl: e.commentUserProfileUrl,
- commentUserImageUrl: e.commentUserImageUrl
- })
- }
- function d(e) {
- return C.assign({}, o(e), {
- postedUserName: e.postedUserName,
- postedUserProfileUrl: e.postedUserProfileUrl,
- topicUrl: e.topicUrl,
- topicTitle: e.topicTitle
- })
- }
- function f(e) {
- return C.assign({}, o(e), {
- sharedUserName: e.sharedUserName,
- sharedUserProfileUrl: e.sharedUserProfileUrl,
- topicUrl: e.topicUrl,
- topicTitle: e.topicTitle,
- clubName: e.clubName,
- clubUrl: e.clubUrl
- })
- }
- function p(e) {
- return C.assign({}, o(e), {
- anime: e.anime
- })
- }
- function h(e) {
- return C.assign({}, o(e), {
- planName: e.plan_name
- })
- }
- function m(e) {
- return C.assign({}, o(e), {
- senderName: e.senderName,
- senderProfileUrl: e.senderProfileUrl,
- pageUrl: e.pageUrl,
- pageTitle: e.pageTitle
- })
- }
- function v(e) {
- return C.assign({}, m(e), {})
- }
- function g(e) {
- return C.assign({}, m(e), {})
- }
- function y(e) {
- return C.assign({}, o(e), {
- date: e.date,
- animes: e.animes
- })
- }
- function b(e) {
- var t = "createNotificationItem" + (0, k.pascalize)(e),
- n = {
- createNotificationItemFriendRequest: r,
- createNotificationItemFriendRequestAccept: a,
- createNotificationItemFriendRequestDeny: s,
- createNotificationItemProfileComment: c,
- createNotificationItemForumQuote: u,
- createNotificationItemBlogComment: l,
- createNotificationItemWatchedTopicMessage: d,
- createNotificationItemClubMassMessageInForum: f,
- createNotificationItemUserMentionInForumMessage: v,
- createNotificationItemUserMentionInClubComment: g,
- createNotificationItemOnAir: y,
- createNotificationItemRelatedAnimeAdd: p,
- createNotificationItemPaymentStripe: h
- }[t];
- return n || (console.error(t + " is not found."), null)
- }
- function w(e) {
- var t = b(e.typeIdentifier);
- return t ? t(e) : null
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.NotificationItemOnAirMixin = t.NotificationItemUserMentionMixin = t.NotificationItemPaymentStripeMixin = t.NotificationItemRelatedAnimeAddMixin = t.NotificationItemClubMassMessageInForumMixin = t.NotificationItemWatchedTopicMessageMixin = t.NotificationItemBlogCommentMixin = t.NotificationItemForumQuoteMixin = t.NotificationItemProfileCommentMixin = t.NotificationItemFriendRequestDenyMixin = t.NotificationItemFriendRequestAcceptMixin = t.NotificationItemFriendRequestMixin = t.NotificationListMixin = t.NotificationContainerMixin = void 0, t.createNotificationItemFriendRequest = r, t.createNotificationItemFriendRequestAccept = a, t.createNotificationItemFriendRequestDeny = s, t.createNotificationItemProfileComment = c, t.createNotificationItemForumQuote = u, t.createNotificationItemBlogComment = l, t.createNotificationItemWatchedTopicMessage = d, t.createNotificationItemClubMassMessageInForum = f, t.createNotificationItemRelatedAnimeAdd = p, t.createNotificationItemPaymentStripe = h, t.createNotificationItemUserMentionInForumMessage = v, t.createNotificationItemUserMentionInClubComment = g, t.createNotificationItemOnAir = y, t.createNotificationItem = w;
- var _ = n(61),
- x = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(_),
- k = n(62),
- j = window.$,
- C = window._,
- E = (t.NotificationContainerMixin = {
- data: function() {
- return {
- items: [],
- historyItems: [],
- itemsCheckedInThisSession: {},
- ajaxLimitter: null
- }
- },
- created: function() {
- this.ajaxLimitter = new x.default
- },
- methods: {
- checkItems: function(e) {
- var t = this;
- e = C.filter(e, function(e) {
- return !e.isRead
- }), 0 !== e.length && this.ajaxLimitter.one("check-items", function(n) {
- var i = C.map(e, function(e) {
- return e.id
- });
- j.ajax({
- url: "/notification/api/check-items-as-read.json",
- data: JSON.stringify({
- notification_ids: i
- }),
- contentType: "application/json",
- type: "POST"
- }).done(function() {
- e.forEach(function(e) {
- e.isRead = !0, t.itemsCheckedInThisSession[e.id] = !0
- })
- }).fail(function(e) {
- console.error(e)
- }).always(n)
- })
- },
- acceptFriendRequests: function(e) {
- var t = this;
- 0 !== e.length && this.ajaxLimitter.one("friend-requests", function(n) {
- var i = C.map(e, function(e) {
- return e.id
- });
- j.ajax({
- url: "/notification/api/accept-friend-request.json",
- data: JSON.stringify({
- notification_ids: i
- }),
- contentType: "application/json",
- type: "POST"
- }).done(function() {
- e.forEach(function(e) {
- e.isApproved = !0, e.isRead = !0, t.itemsCheckedInThisSession[e.id] = !0
- })
- }).fail(function(e) {
- console.error(e)
- }).always(n)
- })
- },
- denyFriendRequests: function(e) {
- var t = this;
- 0 !== e.length && this.ajaxLimitter.one("friend-requests", function(n) {
- var o = C.map(e, function(e) {
- return e.id
- });
- if (0 === o.length) return n();
- j.ajax({
- url: "/notification/api/deny-friend-request.json",
- data: JSON.stringify({
- notification_ids: o
- }),
- contentType: "application/json",
- type: "POST"
- }).done(function() {
- t.items = C.without.apply(C, [t.items].concat(i(e))), t.historyItems = C.without.apply(C, [t.historyItems].concat(i(e)))
- }).fail(function(e) {
- console.error(e)
- }).always(n)
- })
- }
- }
- }, t.NotificationListMixin = {
- props: {
- items: {
- type: Array,
- required: !0
- },
- numMoreUnreadItems: 0,
- itemsCheckedInThisSession: {
- type: Object,
- required: !0
- }
- },
- components: {},
- computed: {
- hasUnreadItems: function() {
- return C.some(this.items, function(e) {
- return !e.isRead
- })
- }
- },
- methods: {
- resolveComponent: function(e) {
- return "notification-item-" + e.getHyphenedTypeIdentifier()
- },
- checkItems: function(e) {
- this.$emit("checkItems", e)
- },
- checkAllItems: function() {
- this.checkItems(this.items)
- },
- checkItem: function(e) {
- this.checkItems([e])
- },
- isItemCheckedInThisSession: function(e) {
- return !!this.itemsCheckedInThisSession[e.id]
- },
- acceptFriendRequest: function(e) {
- this.$emit("acceptFriendRequests", [e])
- },
- denyFriendRequest: function(e) {
- this.$emit("denyFriendRequests", [e])
- }
- }
- }, {
- props: {
- item: {
- type: Object,
- required: !0
- }
- },
- methods: {
- checkItem: function() {
- this.$emit("checkItems", [this.item])
- }
- }
- });
- t.NotificationItemFriendRequestMixin = {
- mixins: [E],
- methods: {
- accept: function(e) {
- e.stopPropagation(), this.$emit("acceptFriendRequest", this.item)
- },
- deny: function(e) {
- e.stopPropagation(), window.confirm("Are you sure you want to deny this request?") && this.$emit("denyFriendRequest", this.item)
- }
- }
- }, t.NotificationItemFriendRequestAcceptMixin = {
- mixins: [E]
- }, t.NotificationItemFriendRequestDenyMixin = {
- mixins: [E]
- }, t.NotificationItemProfileCommentMixin = {
- mixins: [E]
- }, t.NotificationItemForumQuoteMixin = {
- mixins: [E]
- }, t.NotificationItemBlogCommentMixin = {
- mixins: [E]
- }, t.NotificationItemWatchedTopicMessageMixin = {
- mixins: [E]
- }, t.NotificationItemClubMassMessageInForumMixin = {
- mixins: [E]
- }, t.NotificationItemRelatedAnimeAddMixin = {
- mixins: [E]
- }, t.NotificationItemPaymentStripeMixin = {
- mixins: [E]
- }, t.NotificationItemUserMentionMixin = {
- mixins: [E]
- }, t.NotificationItemOnAirMixin = {
- mixins: [E]
- }
- }, , function(e, t, n) {
- "use strict";
- function i(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var o = n(14),
- r = i(o),
- a = n(28),
- s = i(a);
- window.sVue = n(30), window.sVue.mixin({
- delimiters: ["${", "}"]
- }), window.sVue.use(r.default), n(31), n(15), n(32), n(16), n(57), n(18), (0, s.default)(), n(58), n(59), n(60), n(63), n(64), n(65), n(67), n(33), n(68)
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._,
- r = window.sVue;
- i(document).ready(function() {
- var e = "ontouchstart" in window;
- if (i("#nav li").hoverIntent({
- sensitivity: 1,
- interval: 0,
- over: function() {
- i(this).addClass("hover"), i("ul", this).show()
- },
- timeout: 0,
- out: function() {
- i(this).removeClass("hover"), i("ul", this).hide()
- }
- }), i(".Lightbox_AddEdit").fancybox({
- width: 990,
- height: "85%",
- autoScale: !0,
- autoDimensions: !0,
- transitionIn: "none",
- transitionOut: "none",
- type: "iframe"
- }), i(".Lightbox_Small").fancybox({
- width: 400,
- height: 400,
- autoScale: !0,
- autoDimensions: !0,
- transitionIn: "none",
- transitionOut: "none",
- type: "iframe"
- }), i(".Lightbox_Pic").fancybox({
- autoScale: !0,
- autoDimensions: !0,
- transitionIn: "none",
- transitionOut: "none"
- }), i(".min2chars").on("keyup", function() {
- var e = i(this).closest("form").find("input[type=submit]");
- i(this).val().length > 1 ? e.removeClass("notActive") : e.addClass("notActive")
- }), i("#header-menu").hasClass("pulldown") && i(".js-header-menu-unit").on("click", function() {
- i(this).hasClass("on") ? (i(".header-menu-dropdown").hide(), i(".js-header-menu-unit").removeClass("on")) : (i(".header-menu-dropdown").hide(), i(".header-" + i(this).data("id") + "-dropdown").show(), i(".js-header-menu-unit").removeClass("on"), i(this).addClass("on")), i(document).on("click", function(e) {
- i(e.target).closest(".js-header-menu-unit").length || (i(".header-menu-dropdown").hide(), i(".js-header-menu-unit").removeClass("on"))
- })
- }), i("body").hasClass("ownlist") || (e && i(window).on("load resize", function() {
- var e = i(document).width();
- i("#footer-block").css({
- width: e + "px"
- }), i(".footer-ranking")[0] && i(".footer-ranking").css({
- width: e + "px"
- })
- }), i(window).bind("load resize", function() {
- var e = i("#myanimelist").outerHeight(),
- t = i(window).height(),
- n = i(".footer-ranking")[0] ? i(".footer-ranking").outerHeight() : 0,
- o = i("#footer-block").outerHeight(),
- r = 0;
- t > e + o + n && (r = t - (e + o + n) > 0 ? t - (e + o + n) : 0), i(".footer-ranking")[0] ? i(".footer-ranking").css({
- "margin-top": r + "px"
- }) : i("#footer-block").css({
- "margin-top": r + "px"
- })
- })), i("#v-favorite").exists()) {
- var t = "#v-favorite",
- n = i(t).data("favorite");
- o.assign(n, {
- sending: !1,
- msg: void 0,
- isError: !1
- });
- new r({
- el: t,
- data: n,
- methods: {
- toggleFavorite: function() {
- var e = this.isFavorite ? "DELETE" : "POST",
- t = this;
- i.ajax({
- url: "/favorite/" + this.type + "/" + this.id + ".json",
- method: e,
- dataType: "json",
- beforeSend: function() {
- t.sending = !0, t.msg = void 0
- }
- }).done(function() {
- "POST" === e ? (t.isFavorite = !0, t.msg = "Added successfully") : (t.isFavorite = !1, t.msg = "Removed successfully"), t.isError = !1
- }).fail(function(e) {
- var n = e.responseJSON;
- switch (t.isError = !0, e.status) {
- case 400:
- n.is_supporter ? t.msg = "Only a maximum of " + n.max_favs + " favorites allowed." : t.msg = "Only a maximum of " + n.max_favs + ' favorites allowed. Become a <a href="' + n.url + '" target="_blank" class="link-mal-supporter">MAL Supporter</a> to increase it to twice!';
- break;
- case 401:
- window.location.href = n.redirect;
- break;
- default:
- t.msg = null === n ? "Unknown error occured" : n.errors[0].message
- }
- }).always(function() {
- t.sending = !1
- })
- }
- }
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(document).ready(function() {
- i(".js-share-button-popup").on("click", function() {
- return window.open(this.href, this.target, "width=550,height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1"), !1
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i() {
- s || function() {
- var e = a("#topSearchValue"),
- t = a("#topSearchText"),
- n = r.default.initializeVueModel("#top-search-bar", {
- type: e.val(),
- query: "keyword",
- resultPosition: {
- left: 0,
- top: a("#searchBar").outerHeight(),
- width: e.width() + t.width()
- },
- showViewAllLink: !0,
- generateResultPageParams: function(e, t) {
- return "club" === e ? "action=find&cn=" + encodeURIComponent(t) : "forum" === e ? "u=&uloc=1&loc=-1&q=" + encodeURIComponent(t) : "q=" + encodeURIComponent(t)
- }
- });
- e.on("change", function() {
- t.focus()
- }), n.$nextTick(function() {
- a("#topSearchText").focus()
- }), s = !0
- }()
- }
- var o = n(29),
- r = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(o),
- a = window.$,
- s = !1;
- a(function() {
- a("#top-search-bar").exists() && a("#topSearchText").on("focus", i).on("keydown", i);
- var e = a(".js-advancedsearch");
- e.exists() && function() {
- r.default.initializeVueModel(".js-advancedsearch", {
- type: e.data("type"),
- query: "q",
- resultPosition: {
- left: 0,
- top: a(".js-advancedSearchText").outerHeight(),
- width: a(".js-advancedSearchText").outerWidth()
- },
- showViewAllLink: !0,
- generateResultPageParams: function() {
- return a(".js-advancedsearch").serialize()
- }
- });
- var t = function() {
- var e = ["type", "score", "status", "p", "r", "sy", "ey"],
- t = a("[name='q']"),
- n = a("[name='tag']");
- if (t.exists() && encodeURI(t.val()).replace(/%[0-9A-F]{2}/g, "*").length > 2) return !0;
- for (var i in e)
- if (a("[name='" + e[i] + "']").val() > 0) return !0;
- return !!(n.exists() && n.val().length > 2) || !!a("input:checkbox[name='genre[]']:checked").exists()
- },
- n = function() {
- 0 !== a("form#advancedsearch").length && (t() ? a("input[type=submit]").removeClass("notActive") : a("input[type=submit]").addClass("notActive"))
- };
- a("form#advancedsearch").on("submit", function() {
- return t()
- }).on("change", "input[type!=text], select", function() {
- n()
- }).on("keyup", "input[type=text]", function() {
- n()
- }), n()
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(54),
- o = window.$,
- r = window._,
- a = window.MAL,
- s = window.sVue;
- o(document).ready(function() {
- var e = {
- template: a.headerNotification.templates.button,
- props: {
- hasNotSeen: {
- type: Boolean,
- required: !0
- },
- onClick: {
- type: Function,
- required: !0
- },
- isDropdownVisible: {
- type: Boolean,
- required: !0
- },
- numWholeUnreadItems: {
- type: Number,
- required: !0
- }
- },
- computed: {
- numWholeUnreadItemsAsString: function() {
- return this.numWholeUnreadItems > 99 ? "99+" : this.numWholeUnreadItems.toString()
- },
- hasUnread: function() {
- return this.numWholeUnreadItems > 0
- }
- }
- },
- t = {
- mixins: [i.NotificationListMixin],
- template: a.headerNotification.templates.dropdown,
- props: {
- numWholeUnreadItems: {
- type: Number,
- required: !0
- },
- dropdownOpenedAt: {
- type: Number,
- required: !0
- },
- isVisible: {
- type: Boolean,
- required: !0
- },
- wasDropdownClosed: {
- type: Boolean,
- required: !0
- },
- isLoaded: {
- type: Boolean,
- required: !0
- }
- },
- components: {
- "notification-item-friend-request": {
- mixins: [i.NotificationItemFriendRequestMixin],
- template: a.headerNotification.templates.itemFriendRequest
- },
- "notification-item-friend-request-accept": {
- mixins: [i.NotificationItemFriendRequestAcceptMixin],
- template: a.headerNotification.templates.itemFriendRequestAccept
- },
- "notification-item-friend-request-deny": {
- mixins: [i.NotificationItemFriendRequestDenyMixin],
- template: a.headerNotification.templates.itemFriendRequestDeny
- },
- "notification-item-profile-comment": {
- mixins: [i.NotificationItemProfileCommentMixin],
- template: a.headerNotification.templates.itemProfileComment
- },
- "notification-item-forum-quote": {
- mixins: [i.NotificationItemForumQuoteMixin],
- template: a.headerNotification.templates.itemForumQuote
- },
- "notification-item-blog-comment": {
- mixins: [i.NotificationItemBlogCommentMixin],
- template: a.headerNotification.templates.itemBlogComment
- },
- "notification-item-watched-topic-message": {
- mixins: [i.NotificationItemWatchedTopicMessageMixin],
- template: a.headerNotification.templates.itemWatchedTopicMessage
- },
- "notification-item-club-mass-message-in-forum": {
- mixins: [i.NotificationItemClubMassMessageInForumMixin],
- template: a.headerNotification.templates.itemClubMassMessageInForum
- },
- "notification-item-user-mention-in-forum-message": {
- mixins: [i.NotificationItemUserMentionMixin],
- template: a.headerNotification.templates.itemUserMentions
- },
- "notification-item-user-mention-in-club-comment": {
- mixins: [i.NotificationItemUserMentionMixin],
- template: a.headerNotification.templates.itemUserMentions
- },
- "notification-item-on-air": {
- mixins: [i.NotificationItemOnAirMixin],
- template: a.headerNotification.templates.itemOnAir
- },
- "notification-item-related-anime-add": {
- mixins: [i.NotificationItemRelatedAnimeAddMixin],
- template: a.headerNotification.templates.itemRelatedAnimeAdd
- },
- "notification-item-payment-stripe": {
- mixins: [i.NotificationItemPaymentStripeMixin],
- template: a.headerNotification.templates.itemPaymentStripe
- }
- },
- methods: {
- isNewItem: function(e) {
- return e.isNewThan(this.dropdownOpenedAt)
- }
- }
- },
- n = new s({
- mixins: [i.NotificationContainerMixin],
- el: o(".js-header-notification")[0],
- components: {
- "header-notification-button": e,
- "header-notification-dropdown": t
- },
- template: a.headerNotification.templates.root,
- data: {
- items: [],
- isLoaded: !1,
- hasNewItems: !1,
- dropdownOpenedAt: 0,
- numMoreUnreadItems: 0,
- isDropdownVisible: !1,
- wasDropdownOpened: !1,
- wasDropdownClosed: !1
- },
- created: function() {
- this.dropdownOpenedAt = a.headerNotification.dropdownOpenedAt, this.hasNewItems = a.headerNotification.hasNewItems, this.numMoreUnreadItems = a.headerNotification.countDigest
- },
- computed: {
- hasUnreadItems: function() {
- return this.numWholeUnreadItems > 0
- },
- numWholeUnreadItems: function() {
- return this.numMoreUnreadItems + this.numNewestUnreadItems
- },
- numNewestUnreadItems: function() {
- return r.filter(this.items, function(e) {
- return !e.isRead
- }).length
- },
- hasNotSeenItems: function() {
- return !this.wasDropdownOpened && this.hasNewItems
- }
- },
- methods: {
- toggleDropdown: function() {
- this.isDropdownVisible ? this.hideDropdown() : this.showDropdown()
- },
- showDropdown: function() {
- var e = this;
- this.wasDropdownOpened || this.ajaxLimitter.one("open-dropdown", function(t) {
- o.ajax({
- url: "/notification/api/request-items.json",
- type: "POST"
- }).done(function(t) {
- e.isLoaded = !0, e.items = r.map(t.items, i.createNotificationItem), e.numMoreUnreadItems = a.headerNotification.countDigest - e.numNewestUnreadItems
- }).fail(function(e) {
- console.error(e)
- }).always(t)
- }), this.wasDropdownOpened = !0, this.isDropdownVisible = !this.isDropdownVisible
- },
- hideDropdown: function() {
- this.isDropdownVisible = !1, this.wasDropdownClosed = !0
- }
- }
- });
- o("html").on("click", function(e) {
- o(n.$el).has(e.target).exists() || n.hideDropdown()
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i() {
- this.counter = {}
- }
- i.prototype = {
- getActiveCount: function(e) {
- return this.counter[e] || (this.counter[e] = 0), this.counter[e]
- },
- doAction: function(e, t, n) {
- if (this.getActiveCount(e) >= t) return !1;
- this.counter[e]++;
- var i = this;
- return n(function() {
- i.counter[e]--
- }), !0
- },
- one: function(e, t) {
- return this.doAction(e, 1, t)
- },
- two: function(e, t) {
- return this.doAction(e, 2, t)
- },
- three: function(e, t) {
- return this.doAction(e, 3, t)
- }
- }, e.exports = i
- }, function(e, t, n) {
- "use strict";
- function i(e) {
- return e.charAt(0).toUpperCase() + e.slice(1)
- }
- function o(e) {
- var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "_";
- return r.map(e.split(t), i).join("")
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.ucfirst = i, t.pascalize = o;
- var r = window._
- }, function(e, t, n) {
- "use strict";
- var i = window.axios,
- o = window.MAL.CURRENT_TUTORIAL_STEP_ID,
- r = window.MAL.USER_NAME;
- window.addEventListener("DOMContentLoaded", function() {
- var e = o,
- t = [{
- anchor: "/topanime.php",
- message: "First, add anime to your list"
- }, {
- anchor: "/animelist/" + r,
- message: "Next, check your anime list"
- }, {
- anchor: "/anime/season",
- message: "Let’s check out the latest anime!"
- }];
- e && ! function() {
- var e = document.querySelector(".ownlist"),
- t = !document.querySelector(".list-table");
- return !(!e || !t)
- }() && (function() {
- var n = document.createElement("div");
- n.className = "initialize-tutorial", n.innerHTML = '\n <div class="initialize-tutorial__message">\n <i class="fa fa-lightbulb-o" aria-hidden="true"></i> Hint: <a href="' + t[e - 1].anchor + '">' + t[e - 1].message + "</a> (" + e + '/3)\n </div>\n <div class="initialize-tutorial__close">\n <i class="fa fa-times" aria-hidden="true"></i>\n </div>\n ';
- var i = document.createElement("style");
- if (i.innerHTML = "\n .initialize-tutorial {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-height: 80px;\n padding: 12px;\n font-size: 12px;\n line-height: 1.3;\n background-color: #fffefa;\n border-left: 1px solid #faebcc;\n border-right: 1px solid #faebcc;\n border-bottom: 1px solid #faebcc;\n box-sizing: border-box;\n opacity: 1.0;\n transition: all 0.45s ease;\n }\n\n .initialize-tutorial--is-hidden {\n overflow: hidden;\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n\n .initialize-tutorial a {\n color: #8a6d3b;\n }\n \n .initialize-tutorial a:hover {\n text-decoration: underline;\n }\n \n .initialize-tutorial a:visited {\n color: #8a6d3b;\n }\n \n .initialize-tutorial__close {\n cursor: pointer;\n }\n ", document.querySelector("body.ownlist")) {
- var o = document.querySelector("body");
- document.querySelector("body.ownlist").insertBefore(n, o.firstChild), document.querySelector("head").appendChild(i)
- } else document.querySelector("#contentWrapper > div:nth-child(1) > .h1").parentNode.appendChild(n), document.querySelector("head").appendChild(i)
- }(), function() {
- var t = document.querySelector(".initialize-tutorial");
- document.querySelector(".initialize-tutorial__close").addEventListener("click", function(n) {
- i.delete("/users/me/tutorials/" + e + ".json").catch(function(e) {
- console.error("[ERR]", e)
- }), t.classList.add("initialize-tutorial--is-hidden")
- }, !1)
- }())
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(document).ready(function() {
- i(".js-picture-gallery").fancybox({
- titleFormat: function(e) {
- return i('.js-picture-gallery[href="' + this.href + '"]').parent().find(".caption").html()
- },
- titlePosition: "over"
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(66),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i);
- (0, window.$)(document).ready(function() {
- "ontouchstart" in window || (0, o.default)({
- bottom: 10
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i(e) {
- function t(t) {
- if (a !== t) switch (a = t) {
- case n:
- o.assign(e.elFixed.style, {
- position: "static",
- bottom: null
- });
- break;
- case i:
- o.assign(e.elFixed.style, {
- position: "fixed",
- bottom: e.bottom + "px"
- });
- break;
- case r:
- o.assign(e.elFixed.style, {
- position: "absolute",
- bottom: e.bottom + "px"
- })
- }
- }
- if (e = o.assign({
- elFixed: document.querySelector(".js-scrollfix-bottom"),
- elRelative: document.querySelector(".js-scrollfix-bottom-rel"),
- bottom: 10,
- throttle: 50,
- debug: !1
- }, e), e.elFixed && e.elRelative) {
- e.debug && (e.elFixed.style.backgroundColor = "red", e.elRelative.style.backgroundColor = "red");
- var n = 1,
- i = 2,
- r = 3,
- a = void 0,
- s = window.pageYOffset + e.elFixed.getBoundingClientRect().top,
- c = window.pageYOffset + e.elRelative.getBoundingClientRect().top,
- u = document.querySelector(".wrapper");
- window.addEventListener("scroll", o.throttle(function() {
- var o = u.getBoundingClientRect().left,
- a = s + e.elFixed.clientHeight + e.bottom - window.innerHeight,
- l = c + e.elRelative.clientHeight - window.innerHeight;
- if (a >= l) return t(n);
- t(window.pageYOffset > l && o >= 0 ? r : window.pageYOffset > a && o >= 0 ? i : n)
- }, e.throttle))
- }
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = i;
- var o = window._
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = void 0;
- i(document).ready(function() {
- function e() {
- o && i(o).css("display", "none"), i(this).css({
- display: "inline-block"
- });
- var e = i(this).outerWidth(),
- t = i(this).outerHeight(),
- n = (i(this).attr("id"), i(this).attr("rel")),
- r = i(n).attr("rel");
- i(n).addClass("left"), i(n).addClass("right"), i(n).addClass("top"), i(n).addClass("bottom");
- var a = r.substring(0, 1),
- s = r.substring(1),
- c = i(this).position(),
- u = c.left,
- l = c.top,
- d = u + e + 20,
- f = l + 0;
- i(n).html('<div class="hoverinfo-contaniner"></div>'), i(n).attr("class", "hoverinfo");
- var p = i(window).width(),
- h = window.innerHeight,
- m = i(window).scrollTop();
- d + 370 > p ? (d = u - 370 - 20, i(n).addClass("right")) : i(n).addClass("left"), f + 270 + 100 >= h + m ? (f = l - 270 + t, i(n).addClass("bottom")) : i(n).addClass("top"), i(n).css("left", d + "px"), i(n).css("top", f + "px");
- var v = void 0;
- v = "a" == a ? "/includes/ajax.inc.php?t=64&id=" + s : "/includes/ajax.inc.php?t=65&id=" + s, i.get(v, function(e) {
- i(n + " div").html("<span></span>" + e), i(n).css("display", "block"), o = n
- })
- }
- function t() {
- var e = i(this).attr("rel");
- i(e).css("display", "none")
- }
- i("a.hoverinfo_trigger").hoverIntent({
- sensitivity: 1,
- interval: 200,
- over: e,
- timeout: 300,
- out: t
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(3),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i);
- $(".js-shop-anime") && $(".js-shop-anime").on("click", function() {
- var e = $(this).data("shop");
- o.default.actionLog(e.shop, {
- user_id: e.user_id,
- type: e.type,
- id: e.id
- })
- })
- }, , , function(e, t, n) {
- "use strict";
- var i = null;
- e.exports = function() {
- if (null === i) {
- var e = "EIK20" + (Math.random() + 1).toString(36).substring(7);
- try {
- localStorage.setItem(e, !0), localStorage.removeItem(e), i = !0
- } catch (e) {
- i = !1, console.log("Warning: localStorage is not supported on your browser.")
- }
- }
- return i
- }() ? window.localStorage : {
- setItem: function(e, t) {
- this[e] = t
- },
- getItem: function(e) {
- return this.hasOwnProperty(e) ? this[e] : null
- },
- removeItem: function(e) {
- delete this[e]
- }
- }
- }, , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._;
- i(function() {
- var e = i(".form_password_login #loginUserName");
- e && e.focus();
- var t = function(e, t) {
- var n = e.val(),
- r = void 0;
- r = "text" === e.attr("type") ? "password" : "text";
- var a = i("<input>");
- return a.attr("type", r), a.attr("value", n), o.each(["id", "class", "name", "size", "maxlength", "tabindex", "autocomplete", "placeholder"], function(t, n) {
- e.attr(t) && a.attr(t, e.attr(t))
- }), e.before(a), e.remove(), a
- };
- i(".form_password_login #show-password").change(function() {
- var e = (i(this), i(".form_password_login #login-password"));
- e && t(e)
- })
- })
- }, , , , , , , , , , , , , , , , function(e, t, n) {
- "use strict";
- var i = n(181),
- o = n(182),
- r = n(137);
- e.exports = {
- formats: r,
- parse: o,
- stringify: i
- }
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._;
- i(function() {
- var e = i("#featured-contest-form"),
- t = i("#featured-contest-success"),
- n = i("#featured-contest-error");
- e.find("button[type=submit]").on("click", function(r) {
- i(this).prop("disabled", !0), r.preventDefault(), t.hide(), t.empty(), n.hide(), n.empty(), i.ajax({
- url: e.attr("action"),
- type: e.attr("method"),
- data: e.serializeArray(),
- dataType: "json",
- success: function(e) {
- t.text(e.message), t.show()
- }.bind(this),
- error: function(e) {
- var t = i.parseJSON(e.responseText);
- t.errors ? function() {
- var e = i("<ul>");
- o.each(t.errors, function(t) {
- var n = i("<li>").text(t);
- e.append(n)
- }), n.append(e)
- }() : n.text(t.message), n.show(), i(this).prop("disabled", !1)
- }.bind(this)
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-anchor-link")[0] && i(".js-anchor-link").on("click", function() {
- var e = i(this).attr("href"),
- t = i(e).offset().top;
- i("html,body").animate({
- scrollTop: t
- })
- }), i(".fb-page")[0] && function() {
- var e = i(".fb-page"),
- t = e.offset().top,
- n = "https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FOfficialMyAnimeList%2F&tabs&width=450&height=154&small_header=true&adapt_container_width=false&hide_cover=true&show_facepile=true&appId";
- i(window).height() > t ? e.attr("src", n) : i(window).on("scroll resize", function() {
- if (!e.attr("src")) {
- i(window).height() + i(this).scrollTop() > t && e.attr("src", n)
- }
- })
- }()
- })
- }, , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
- "use strict";
- var i = Object.prototype.hasOwnProperty,
- o = function() {
- for (var e = [], t = 0; t < 256; ++t) e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
- return e
- }();
- t.arrayToObject = function(e, t) {
- for (var n = t && t.plainObjects ? Object.create(null) : {}, i = 0; i < e.length; ++i) void 0 !== e[i] && (n[i] = e[i]);
- return n
- }, t.merge = function(e, n, o) {
- if (!n) return e;
- if ("object" != typeof n) {
- if (Array.isArray(e)) e.push(n);
- else {
- if ("object" != typeof e) return [e, n];
- e[n] = !0
- }
- return e
- }
- if ("object" != typeof e) return [e].concat(n);
- var r = e;
- return Array.isArray(e) && !Array.isArray(n) && (r = t.arrayToObject(e, o)), Array.isArray(e) && Array.isArray(n) ? (n.forEach(function(n, r) {
- i.call(e, r) ? e[r] && "object" == typeof e[r] ? e[r] = t.merge(e[r], n, o) : e.push(n) : e[r] = n
- }), e) : Object.keys(n).reduce(function(e, i) {
- var r = n[i];
- return Object.prototype.hasOwnProperty.call(e, i) ? e[i] = t.merge(e[i], r, o) : e[i] = r, e
- }, r)
- }, t.decode = function(e) {
- try {
- return decodeURIComponent(e.replace(/\+/g, " "))
- } catch (t) {
- return e
- }
- }, t.encode = function(e) {
- if (0 === e.length) return e;
- for (var t = "string" == typeof e ? e : String(e), n = "", i = 0; i < t.length; ++i) {
- var r = t.charCodeAt(i);
- 45 === r || 46 === r || 95 === r || 126 === r || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122 ? n += t.charAt(i) : r < 128 ? n += o[r] : r < 2048 ? n += o[192 | r >> 6] + o[128 | 63 & r] : r < 55296 || r >= 57344 ? n += o[224 | r >> 12] + o[128 | r >> 6 & 63] + o[128 | 63 & r] : (i += 1, r = 65536 + ((1023 & r) << 10 | 1023 & t.charCodeAt(i)), n += o[240 | r >> 18] + o[128 | r >> 12 & 63] + o[128 | r >> 6 & 63] + o[128 | 63 & r])
- }
- return n
- }, t.compact = function(e, n) {
- if ("object" != typeof e || null === e) return e;
- var i = n || [],
- o = i.indexOf(e);
- if (-1 !== o) return i[o];
- if (i.push(e), Array.isArray(e)) {
- for (var r = [], a = 0; a < e.length; ++a) e[a] && "object" == typeof e[a] ? r.push(t.compact(e[a], i)) : void 0 !== e[a] && r.push(e[a]);
- return r
- }
- return Object.keys(e).forEach(function(n) {
- e[n] = t.compact(e[n], i)
- }), e
- }, t.isRegExp = function(e) {
- return "[object RegExp]" === Object.prototype.toString.call(e)
- }, t.isBuffer = function(e) {
- return null !== e && void 0 !== e && !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e))
- }
- }, function(e, t, n) {
- "use strict";
- var i = String.prototype.replace,
- o = /%20/g;
- e.exports = {
- default: "RFC3986",
- formatters: {
- RFC1738: function(e) {
- return i.call(e, o, "+")
- },
- RFC3986: function(e) {
- return e
- }
- },
- RFC1738: "RFC1738",
- RFC3986: "RFC3986"
- }
- }, function(e, t, n) {
- "use strict";
- function i(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- n = c.assign({
- onSuccess: function() {},
- onFail: function() {},
- onSNSPostSuccess: function() {},
- onSNSPostFail: function() {}
- }, n), s.post("/ownlist/anime/add.json", JSON.stringify({
- anime_id: parseInt(e),
- status: parseInt(t.status),
- score: parseInt(t.score),
- num_watched_episodes: parseInt(t.episodes) || 0
- }), function(t) {
- n.onSuccess(t), window.MAL.SNSFunc.postListUpdates(t, "anime", e, {
- onSuccess: n.onSNSPostSuccess,
- onError: n.onSNSPostFail
- })
- }).fail(function(e) {
- n.onFail(e.responseJSON.errors[0].message)
- })
- }
- function o(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- n = c.assign({
- onSuccess: function() {},
- onFail: function() {},
- onSNSPostSuccess: function() {},
- onSNSPostFail: function() {}
- }, n), s.post("/ownlist/anime/edit.json", JSON.stringify({
- anime_id: parseInt(e),
- status: parseInt(t.status),
- score: parseInt(t.score),
- num_watched_episodes: parseInt(t.episodes) || 0
- }), function(t) {
- n.onSuccess(t), window.MAL.SNSFunc.postListUpdates(t, "anime", e, {
- onSuccess: n.onSNSPostSuccess,
- onError: n.onSNSPostFail
- })
- }).fail(function(e) {
- n.onFail(e.responseJSON.errors[0].message)
- })
- }
- function r(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- n = c.assign({
- onSuccess: function() {},
- onFail: function() {},
- onSNSPostSuccess: function() {},
- onSNSPostFail: function() {}
- }, n), s.post("/ownlist/manga/add.json", JSON.stringify({
- manga_id: parseInt(e),
- status: parseInt(t.status),
- score: parseInt(t.score),
- num_read_volumes: parseInt(t.volumes) || 0,
- num_read_chapters: parseInt(t.chapters) || 0
- }), function(t) {
- n.onSuccess(t), window.MAL.SNSFunc.postListUpdates(t, "manga", parseInt(e), {
- onSuccess: n.onSNSPostSuccess,
- onError: n.onSNSPostFail
- })
- }).fail(function(e) {
- n.onFail(e.responseJSON.errors[0].message)
- })
- }
- function a(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- n = c.assign({
- onSuccess: function() {},
- onFail: function() {},
- onSNSPostSuccess: function() {},
- onSNSPostFail: function() {}
- }, n), s.post("/ownlist/manga/edit.json", JSON.stringify({
- manga_id: parseInt(e),
- status: parseInt(t.status),
- score: parseInt(t.score),
- num_read_volumes: parseInt(t.volumes) || 0,
- num_read_chapters: parseInt(t.chapters) || 0
- }), function(t) {
- n.onSuccess(t), window.MAL.SNSFunc.postListUpdates(t, "manga", parseInt(e), {
- onSuccess: n.onSNSPostSuccess,
- onError: n.onSNSPostFail
- })
- }).fail(function(e) {
- n.onFail(e.responseJSON.errors[0].message)
- })
- }
- var s = window.$,
- c = window._;
- e.exports = {
- addAnimeEntry: i,
- updateAnimeEntry: o,
- addMangaEntry: r,
- updateMangaEntry: a
- }
- }, function(e, t, n) {
- "use strict";
- e.exports = function() {
- var e = window.navigator.userAgent.toLowerCase(),
- t = window.navigator.appVersion.toLowerCase(),
- n = "";
- return -1 !== e.indexOf("msie") ? n = -1 !== t.indexOf("msie 6.") ? "ie6" : -1 !== t.indexOf("msie 7.") ? "ie7" : -1 !== t.indexOf("msie 8.") ? "ie8" : -1 !== t.indexOf("msie 9.") ? "ie9" : -1 !== t.indexOf("msie 10.") ? "ie10" : "ie" : -1 !== e.indexOf("trident/7") ? n = "ie11" : -1 !== e.indexOf("chrome") ? n = "chrome" : -1 !== e.indexOf("safari") ? n = "safari" : -1 !== e.indexOf("opera") ? n = "opera" : -1 !== e.indexOf("firefox") && (n = "firefox"), {
- browser: n,
- ua: e,
- version: t
- }
- }
- }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
- "use strict";
- n(56), n(175), n(176), n(177), n(179), n(180), n(183), n(184), n(185), n(186), n(187), n(188), n(189), n(190), n(191), n(192), n(113), n(193), n(194), n(195), n(196), n(197), n(198), n(199), n(200), n(201), n(114), n(202), n(203), n(204), n(205), n(206), n(207), n(208), n(210), n(211), n(212), n(213), n(214), n(215), n(216), n(217), n(218), n(219), n(220), n(221), n(222), n(223), n(228), n(229), n(231)
- }, function(e, t, n) {
- "use strict";
- n(96)
- }, function(e, t, n) {
- "use strict";
- var i = n(29),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$;
- r(function() {
- r("#pmessage-to").exists() && o.default.initializeVueModel("#pmessage-to", {
- type: "user",
- query: "toname",
- resultPosition: {
- left: 0,
- top: r(".js-pmessage-to").outerHeight(),
- width: r(".js-pmessage-to").outerWidth()
- },
- showViewAllLink: !1,
- generateItemPageUrl: function(e) {
- return "/mymessages.php?go=send&toname=" + encodeURIComponent(e.name)
- }
- }), r(".js-mym-checkbox-pulldown-button")[0] && r(".js-mym-checkbox-pulldown-button").on("click", function() {
- r(".js-pmessage-select").toggle(), r(this).toggleClass("on")
- }), r(".js-pmessage-checked-action-button")[0] && r(".js-pmessage-checked-action-button").on("click", function() {
- var e = r(this).attr("id");
- ("delete" !== e || confirm("Are you sure you want to delete?")) && function() {
- r(".js-pmessage-checkSelector").val(e), document.messageForm.submit()
- }()
- }), r(".js-pmessage-send-message")[0] && function() {
- var e = r(".js-pmessage-to"),
- t = r("#inputUser"),
- n = r("#sendmsg");
- r(".js-pmessage-send-message").on("click", function(i) {
- i.preventDefault(), t.show(), n.hide(), e.focus()
- })
- }(), r(".js-pmessage-delete-message")[0] && r(".js-pmessage-delete-message").on("click", function() {
- var e = r(this).data("json"),
- t = e.type,
- n = e.pm_id;
- t || (t = 1), confirm("Are you sure you want to delete?") && r.post("/includes/ajax.inc.php?t=75", {
- id: n,
- box: t
- }, function() {
- r("#message_" + n).hide("slow")
- })
- }), r(".js-pmessage-checkboxesAll")[0] && function() {
- var e = function() {
- var e = r('.mym_checkboxes input[type="checkbox"]:checked').length,
- t = r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked");
- r('input.js-pmessage-checkboxesAll[type="checkbox"]').removeClass("part"), e > 0 && !t && r('input.js-pmessage-checkboxesAll[type="checkbox"]').addClass("part")
- },
- t = function() {
- var t = r('.mym_checkboxes input[type="checkbox"]').length,
- n = r('.mym_checkboxes input[type="checkbox"]:checked').length,
- i = r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked");
- t - 1 === n ? i ? r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked", !1) : r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked", !0) : 1 === n && i ? r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked", !1) : n > 0 && !i && r('input.js-pmessage-checkboxesAll[type="checkbox"]').prop("checked", !1), n > 0 ? r(".js-pmessage-checked-action").show() : r(".js-pmessage-checked-action").hide(), r(".mym_checkboxes").find('input[type="checkbox"]').parents(".message").removeClass("selected"), r(".mym_checkboxes").find('input[type="checkbox"]:checked').parents(".message").addClass("selected"), e()
- };
- r('.mym_checkboxes input[type="checkbox"]').on("click", function() {
- t()
- }), r(".js-pmessage-checkboxesAll").on("click", function() {
- var e = r(this).data("status");
- switch (e || (e = document.getElementById("checkSelector").value), r(".js-pmessage-select").hide(), r(".js-mym-checkbox-pulldown-button").removeClass("on"), e) {
- case "none":
- r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !1);
- break;
- case "all":
- r("#checkall").prop("checked") ? r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !1) : r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !0);
- break;
- case "selectall":
- r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !0);
- break;
- case "read":
- r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !1), r(".mym_checkboxes.read").find('input[type="checkbox"]').prop("checked", !0);
- break;
- case "unread":
- r(".mym_checkboxes").find('input[type="checkbox"]').prop("checked", !1), r(".mym_checkboxes.unread").find('input[type="checkbox"]').prop("checked", !0)
- }
- t()
- })
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(178);
- i(function() {
- if (i(".news .menu-category .btn-category").exists() && function() {
- var t = new o;
- i(".news .menu-category .btn-category").each(function() {
- var e = i(this),
- n = e.attr("id");
- t.isSelected(n) && e.addClass("selected").css("border-bottom-color", e.data("color"))
- }), t.isSelected("all") ? i(".news .news-list .news-unit").show() : i(".news .news-list .news-unit").each(function() {
- var e = i(this),
- n = e.data("tag").split(" ");
- t.isSelected(n) && e.show()
- }), i(".news .menu-category .btn-category").on("click", function() {
- var n = i(".news .menu-category .btn-category#all"),
- o = i(".news .menu-category .btn-category"),
- r = i(".news .news-list .news-unit"),
- a = i(this);
- "all" == a.attr("id") ? (r.show(), o.removeClass("selected"), a.addClass("selected"), o.css({
- "border-bottom-color": "#FFFFFF"
- }), a.css({
- "border-bottom-color": a.data("color")
- })) : (n.removeClass("selected"), a.toggleClass("selected"), e()), i(".news .menu-category .btn-category").each(function() {
- t.set(i(this).attr("id"), i(this).hasClass("selected"))
- }), t.save()
- })
- }(), i(".news .comment-list .text .quotetext")[0]) {
- !1 === window.navigator.userAgent.toLowerCase().indexOf("safari") > -1 && function() {
- var e = function(e, t) {
- var n = new Image;
- if (n.src = e.attr("src"), n.src) {
- var i = n.width;
- i > t ? e.width(t) : e.width(i)
- }
- };
- i(".news .comment-list .text .quotetext").each(function() {
- var t = i(this),
- n = t.width();
- i(this).find(".spoiler .button").on("click", function() {
- if ("Show spoiler" === i(this).val())
- for (var t = (i(this).parent(".spoiler").width(), i(this).next(".spoiler_content").find(".userimg")), o = t.length, r = 0; r < o; r++) e(t.eq(r), n)
- });
- var o = i(this).find(".userimg"),
- r = o.length;
- if (r > 0)
- for (var a = 0; a < r; a++) e(o.eq(a), n)
- })
- }()
- }
- var e = function() {
- var e = i(".news .menu-category .btn-category#all"),
- t = i(".news .menu-category .btn-category"),
- n = i(".news .news-list .news-unit");
- n.hide(), e.css({
- "border-bottom-color": "#FFFFFF"
- }), t.css({
- "border-bottom-color": "#FFFFFF"
- });
- var o = 0;
- t.each(function() {
- var e = i(this);
- e.hasClass("selected") && function() {
- e.css({
- "border-bottom-color": e.data("color")
- });
- var t = e.attr("id");
- n.each(function() {
- -1 != i(this).data("tag").indexOf(t) && i(this).show()
- }), o += 1
- }()
- }), o < 1 && (n.show(), e.addClass("selected"), e.css({
- "border-bottom-color": e.data("color")
- }))
- };
- i(".menu-category-tags .btn-category").click(function() {
- var e = i(this).data("id"),
- t = i("#" + e).offset().top;
- return i("html,body").animate({
- scrollTop: t - 70
- }), !1
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i() {
- this.categories = JSON.parse(o.getItem(r)) || {
- all: !0,
- cat1: !1,
- cat2: !1,
- cat3: !1,
- cat4: !1,
- cat5: !1,
- cat6: !1
- }
- }
- var o = n(71),
- r = "news_category_filter";
- i.prototype = {
- isSelected: function(e) {
- "string" == typeof e && (e = [e]);
- for (var t = 0, n = e.length; t < n; t++)
- if (this.categories[e[t]]) return !0;
- return !1
- },
- save: function() {
- o.setItem(r, JSON.stringify(this.categories))
- },
- set: function(e, t) {
- this.categories[e] = t
- }
- }, e.exports = i
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window.sVue;
- i(function() {
- i("#news-submit-file-list")[0] && function() {
- var e = new o({
- el: "#news-submit-file-list",
- data: {
- images: [],
- thumbnail_id: -1
- },
- created: function() {
- var e = i("#news-submit-file-list").data("json");
- e && (this.images = e.images, this.thumbnail_id = e.thumbnail_id)
- },
- methods: {
- getThumbnailId: function() {
- return this.thumbnail_id
- },
- getImages: function() {
- return this.images
- },
- addImage: function(e) {
- this.images.unshift(e)
- },
- deleteImage: function(e) {
- this.images.splice(e, 1)
- },
- selectObj: function(e) {
- var t = document.createRange();
- t.selectNodeContents(e.target);
- var n = window.getSelection();
- n.removeAllRanges(), n.addRange(t)
- },
- fancybox: function(e) {
- i(".large-image-box").remove(), i("body").append('<div class="large-image-box"><img src=""><p class="btn-close">X</p></div>');
- var t = e.target.dataset.name,
- n = new Image;
- n.onload = function() {
- i(".large-image-box").children("img").attr({
- src: t
- });
- var e = {},
- n = i(".large-image-box img").width(),
- o = i(".large-image-box img").height();
- n > o ? (e.width = n > 600 ? 600 : n, e.height = e.width * o / n) : (e.height = o > 400 ? 400 : o, e.width = e.height * n / o);
- var r = i(window).scrollTop(),
- a = (window.innerHeight - e.height - 24) / 2,
- s = (window.innerWidth - e.width - 24) / 2,
- c = {
- top: r + a,
- left: s
- };
- i(".large-image-box").css({
- top: c.top,
- left: c.left
- }), i(".large-image-box img").css({
- width: e.width,
- height: e.height
- }), i(document).on("click", function() {
- i(".large-image-box").remove(), i(document).off("click")
- })
- }, n.src = t, i(".large-image-box").on("click", function(e) {
- e.stopPropagation()
- }), i(".large-image-box .btn-close").on("click", function() {
- i(".large-image-box").remove(), i(document).off("click")
- })
- }
- }
- });
- i(".btn-input-news-image").on("click", function() {
- var t = i(this).data("id");
- i("#state-message-images").html(""), i("#news-file-upload").addClass("loading");
- var n = i("file" === t ? "#news-image-upload-by-file" : "#news-image-upload-by-url"),
- o = new FormData;
- "file" === t ? o.append("form[image][file]", n.get(0).files[0]) : o.append("form[image][url]", n.val()), i.ajax({
- url: "/news/images.json",
- type: "POST",
- data: o,
- dataType: "json",
- processData: !1,
- contentType: !1,
- success: function(o) {
- i("#news-file-upload").removeClass("loading");
- var r = {
- file_id: o.image.id,
- filename: o.image.url
- };
- e.addImage(r), "file" === t ? n.replaceWith(n.clone()) : n.val("")
- },
- error: function(e) {
- for (var t = i.parseJSON(e.responseText).errors, n = "", o = 0; o < t.length; o++) n += t[o].message + "<br>";
- i("#news-file-upload").removeClass("loading"), i("#state-message-images").html('<span class="badresult-text pt8 di-ib">' + n + "</span>").show()
- }
- })
- })
- }(), i(".news-file-list-table-scroll")[0] && navigator.userAgent.indexOf("Mac") > 0 && i(".news-file-list-table-scroll").width(750)
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(112);
- i(function() {
- var e = window.location.href.split("?");
- "1" === o.parse(e[1]).is_form_open && (i(".js-btn-support-form-outer").hide(), i(".js-support-form").show(), i("#inquiry_type").val("supporter")), i(".js-btn-support-form").on("click", function() {
- i(".js-btn-support-form-outer").fadeOut(function() {
- i(".js-support-form").fadeIn()
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(136),
- o = n(137),
- r = {
- brackets: function(e) {
- return e + "[]"
- },
- indices: function(e, t) {
- return e + "[" + t + "]"
- },
- repeat: function(e) {
- return e
- }
- },
- a = Date.prototype.toISOString,
- s = {
- delimiter: "&",
- encode: !0,
- encoder: i.encode,
- serializeDate: function(e) {
- return a.call(e)
- },
- skipNulls: !1,
- strictNullHandling: !1
- },
- c = function e(t, n, o, r, a, s, c, u, l, d, f) {
- var p = t;
- if ("function" == typeof c) p = c(n, p);
- else if (p instanceof Date) p = d(p);
- else if (null === p) {
- if (r) return s ? s(n) : n;
- p = ""
- }
- if ("string" == typeof p || "number" == typeof p || "boolean" == typeof p || i.isBuffer(p)) return s ? [f(s(n)) + "=" + f(s(p))] : [f(n) + "=" + f(String(p))];
- var h = [];
- if (void 0 === p) return h;
- var m;
- if (Array.isArray(c)) m = c;
- else {
- var v = Object.keys(p);
- m = u ? v.sort(u) : v
- }
- for (var g = 0; g < m.length; ++g) {
- var y = m[g];
- a && null === p[y] || (h = Array.isArray(p) ? h.concat(e(p[y], o(n, y), o, r, a, s, c, u, l, d, f)) : h.concat(e(p[y], n + (l ? "." + y : "[" + y + "]"), o, r, a, s, c, u, l, d, f)))
- }
- return h
- };
- e.exports = function(e, t) {
- var n = e,
- i = t || {},
- a = void 0 === i.delimiter ? s.delimiter : i.delimiter,
- u = "boolean" == typeof i.strictNullHandling ? i.strictNullHandling : s.strictNullHandling,
- l = "boolean" == typeof i.skipNulls ? i.skipNulls : s.skipNulls,
- d = "boolean" == typeof i.encode ? i.encode : s.encode,
- f = d ? "function" == typeof i.encoder ? i.encoder : s.encoder : null,
- p = "function" == typeof i.sort ? i.sort : null,
- h = void 0 !== i.allowDots && i.allowDots,
- m = "function" == typeof i.serializeDate ? i.serializeDate : s.serializeDate;
- if (void 0 === i.format) i.format = o.default;
- else if (!Object.prototype.hasOwnProperty.call(o.formatters, i.format)) throw new TypeError("Unknown format option provided.");
- var v, g, y = o.formatters[i.format];
- if (null !== i.encoder && void 0 !== i.encoder && "function" != typeof i.encoder) throw new TypeError("Encoder has to be a function.");
- "function" == typeof i.filter ? (g = i.filter, n = g("", n)) : Array.isArray(i.filter) && (g = i.filter, v = g);
- var b = [];
- if ("object" != typeof n || null === n) return "";
- var w;
- w = i.arrayFormat in r ? i.arrayFormat : "indices" in i ? i.indices ? "indices" : "repeat" : "indices";
- var _ = r[w];
- v || (v = Object.keys(n)), p && v.sort(p);
- for (var x = 0; x < v.length; ++x) {
- var k = v[x];
- l && null === n[k] || (b = b.concat(c(n[k], k, _, u, l, f, g, p, h, m, y)))
- }
- return b.join(a)
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(136),
- o = Object.prototype.hasOwnProperty,
- r = {
- allowDots: !1,
- allowPrototypes: !1,
- arrayLimit: 20,
- decoder: i.decode,
- delimiter: "&",
- depth: 5,
- parameterLimit: 1e3,
- plainObjects: !1,
- strictNullHandling: !1
- },
- a = function(e, t) {
- for (var n = {}, i = e.split(t.delimiter, t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit), r = 0; r < i.length; ++r) {
- var a, s, c = i[r],
- u = -1 === c.indexOf("]=") ? c.indexOf("=") : c.indexOf("]=") + 1; - 1 === u ? (a = t.decoder(c), s = t.strictNullHandling ? null : "") : (a = t.decoder(c.slice(0, u)), s = t.decoder(c.slice(u + 1))), o.call(n, a) ? n[a] = [].concat(n[a]).concat(s) : n[a] = s
- }
- return n
- },
- s = function e(t, n, i) {
- if (!t.length) return n;
- var o, r = t.shift();
- if ("[]" === r) o = [], o = o.concat(e(t, n, i));
- else {
- o = i.plainObjects ? Object.create(null) : {};
- var a = "[" === r[0] && "]" === r[r.length - 1] ? r.slice(1, r.length - 1) : r,
- s = parseInt(a, 10);
- !isNaN(s) && r !== a && String(s) === a && s >= 0 && i.parseArrays && s <= i.arrayLimit ? (o = [], o[s] = e(t, n, i)) : o[a] = e(t, n, i)
- }
- return o
- },
- c = function(e, t, n) {
- if (e) {
- var i = n.allowDots ? e.replace(/\.([^\.\[]+)/g, "[$1]") : e,
- r = /^([^\[\]]*)/,
- a = /(\[[^\[\]]*\])/g,
- c = r.exec(i),
- u = [];
- if (c[1]) {
- if (!n.plainObjects && o.call(Object.prototype, c[1]) && !n.allowPrototypes) return;
- u.push(c[1])
- }
- for (var l = 0; null !== (c = a.exec(i)) && l < n.depth;) l += 1, (n.plainObjects || !o.call(Object.prototype, c[1].replace(/\[|\]/g, "")) || n.allowPrototypes) && u.push(c[1]);
- return c && u.push("[" + i.slice(c.index) + "]"), s(u, t, n)
- }
- };
- e.exports = function(e, t) {
- var n = t || {};
- if (null !== n.decoder && void 0 !== n.decoder && "function" != typeof n.decoder) throw new TypeError("Decoder has to be a function.");
- if (n.delimiter = "string" == typeof n.delimiter || i.isRegExp(n.delimiter) ? n.delimiter : r.delimiter, n.depth = "number" == typeof n.depth ? n.depth : r.depth, n.arrayLimit = "number" == typeof n.arrayLimit ? n.arrayLimit : r.arrayLimit, n.parseArrays = !1 !== n.parseArrays, n.decoder = "function" == typeof n.decoder ? n.decoder : r.decoder, n.allowDots = "boolean" == typeof n.allowDots ? n.allowDots : r.allowDots, n.plainObjects = "boolean" == typeof n.plainObjects ? n.plainObjects : r.plainObjects, n.allowPrototypes = "boolean" == typeof n.allowPrototypes ? n.allowPrototypes : r.allowPrototypes, n.parameterLimit = "number" == typeof n.parameterLimit ? n.parameterLimit : r.parameterLimit, n.strictNullHandling = "boolean" == typeof n.strictNullHandling ? n.strictNullHandling : r.strictNullHandling, "" === e || null === e || void 0 === e) return n.plainObjects ? Object.create(null) : {};
- for (var o = "string" == typeof e ? a(e, n) : e, s = n.plainObjects ? Object.create(null) : {}, u = Object.keys(o), l = 0; l < u.length; ++l) {
- var d = u[l],
- f = c(d, o[d], n);
- s = i.merge(s, f, n)
- }
- return i.compact(s)
- }
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- if (i("body.page-advertising")[0]) {
- var e, t;
- ! function() {
- i(".js-spec-sample-button").on("click", function() {
- if (!i(this).hasClass("on")) {
- var e = i(this).attr("id");
- i(".js-spec-sample-button").removeClass("on"), i(".js-spec-sample-button#" + e).addClass("on"), i(".js-ad-spec-sample").fadeOut(), i(".js-ad-spec-sample." + e).fadeIn()
- }
- }), i(".inputtext.required").on("keyup", function() {
- for (var e = !1, t = i(".inputtext.required").map(function() {
- return i(this).val()
- }).get(), n = 0; n < t.length; n++) {
- if (!t[n]) {
- e = !1;
- break
- }
- e = !0
- }!0 === e ? i("#ad-submit-button").prop("type", "submit").removeClass("off") : i("#ad-submit-button").prop("type", "button").addClass("off")
- });
- var n = function(e) {
- i("#ad_menu a").removeClass("on"), i("#menu_" + e).addClass("on")
- };
- e = function(e) {
- var t = e,
- o = i(window).scrollTop(),
- r = i("#ad_menu"),
- a = i(".ad_menu_lang");
- o > 111 && (r.addClass("fixed"), a.addClass("fixed")), o < 111 && (r.removeClass("fixed"), a.removeClass("fixed")), o > t.about - 111 && o < t.user - 111 ? n("about") : o > t.user - 111 && o < t.ad - 111 ? n("user") : o > t.ad - 111 && o < t.self - 111 ? n("ad") : o > t.self - 111 && o < t.contact - 111 ? n("self") : o > t.contact - 111 ? n("contact") : o < t.about - 111 && r.find("a").removeClass("on")
- }, t = {
- about: i("#about").offset().top,
- user: i("#user").offset().top,
- ad: i("#ad").offset().top,
- self: i("#self").offset().top,
- contact: i("#contact").offset().top
- }, i(".js-jump-to-section").on("click", function() {
- i("#ad_menu a").removeClass("on");
- var e = i(this).attr("href"),
- t = e.split("#")[1],
- n = i("#" + t).offset().top;
- return i("html,body").animate({
- scrollTop: n - 70
- }), !1
- }), i(".js-spec-sample-button").click(function() {
- if (!i(this).hasClass("on")) {
- var e = i(this).attr("id");
- i(".js-spec-sample-button").removeClass("on"), i(".js-spec-sample-button#" + e).addClass("on"), i(".js-ad-spec-sample").fadeOut(), i(".js-ad-spec-sample." + e).fadeIn()
- }
- }), i("select#budget").on("change", function() {
- var e = i(this).find(":selected");
- e.hasClass("js-self-service") && (location.href = e.data("url"))
- })
- }()
- }
- var n = function() {
- var e = i("#media_kit").offset().top;
- i("html,body").animate({
- scrollTop: e - 70
- })
- };
- i(window).on("load", function() {
- window.location.hash.indexOf("#media_kit") > -1 && n()
- }), i(window).on("load scroll resize", function() {
- i("body.page-advertising")[0] && e(t)
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-btn-sns-setting")[0] && i(".js-btn-sns-setting").on("click", function() {
- i(".js-" + i(this).attr("id")).toggle(), i(this).find(".js-btn-sns-setting-text").toggle()
- }), i(".js-sns-setting-switch")[0] && i(".js-sns-setting-switch").on("click", function() {
- var e = i(this),
- t = i(this).hasClass("on") ? "disable" : "enable",
- n = i(this).data("json");
- if ("twitter" === n.sns) {
- var o = void 0;
- switch (n.event) {
- case "started_watching_anime":
- o = ".js-twitter-started_watching_anime-prefix";
- break;
- case "completed_watching_anime":
- o = ".js-twitter-completed_watching_anime-prefix";
- break;
- case "watched_anime_episode":
- o = ".js-twitter-watched_anime_episode-prefix";
- break;
- case "started_reading_manga":
- o = ".js-twitter-started_reading_manga-prefix";
- break;
- case "completed_reading_manga":
- o = ".js-twitter-completed_reading_manga-prefix";
- break;
- case "read_manga_chap_vol":
- o = ".js-twitter-read_manga_chap_vol-prefix"
- }
- var r = i(o);
- r.toggle("enable" === t)
- }
- var a = "/ownlist/permission/" + n.sns + ".json";
- if ("facebook" === n.sns) "enable" === t ? FB.login(function(o) {
- if ("connected" === o.status) {
- var r = o.authResponse;
- i.ajax({
- url: a,
- type: "PUT",
- data: JSON.stringify({
- access_token: r.accessToken,
- fb_id: r.userID,
- event: n.event,
- permission: t
- }),
- dataType: "json",
- cache: !1,
- timeout: 1e4,
- success: function(t) {
- t.is_success && e.addClass("on")
- }
- })
- }
- }, {
- auth_type: "rerequest",
- scope: "publish_actions"
- }) : i.ajax({
- url: a,
- type: "PUT",
- data: JSON.stringify({
- access_token: "",
- fb_id: "",
- event: n.event,
- permission: t
- }),
- dataType: "json",
- cache: !1,
- timeout: 1e4,
- success: function(t) {
- e.removeClass("on")
- }
- });
- else if ("twitter" === n.sns) {
- e.toggleClass("on");
- var s = {
- event: n.event,
- permission: t
- };
- window.MAL.SNSFunc.setPermitTwitterOnError(function() {
- e.toggleClass("on"), r.toggle(!1)
- });
- var c = (screen.width - 600) / 2,
- u = (screen.height - 350) / 2;
- window.open("/ownlist/permission/twitter?" + i.param(s), "popup", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=350, top=" + u + ", left=" + c)
- }
- }), i(".js-btn-sns-prefix")[0] && i(".js-btn-sns-prefix").on("click", function() {
- var e = i(this).data("event"),
- t = i("#twitter-message-" + e),
- n = i("#js-twitter-error-msg-" + e),
- o = i("#js-twitter-success-msg-" + e),
- r = {
- event: e,
- body: t.val()
- };
- i.ajax({
- url: "/sns/twitter/message.json",
- type: "PUT",
- data: JSON.stringify(r),
- dataType: "json",
- cache: !1,
- timeout: 1e4,
- beforeSend: function() {
- i(this).prop("disabled", !0), t.prop("disabled", !0), n.hide(), o.hide()
- }
- }).always(function() {
- i(this).prop("disabled", !1), t.prop("disabled", !1)
- }).done(function(e) {
- o.text("Updated successfully."), o.fadeIn().delay(3e3).fadeOut("slow")
- }).fail(function(e, t) {
- var i = void 0;
- 400 === e.status ? i = e.responseJSON.errors[0].message : 401 === e.status ? i = "Login required." : (i = "Unknown errors occurred.", console.error(e.responseJSON)), n.text(i), n.fadeIn()
- })
- }), i(".js-btn-sns-default-setting")[0] && i(".js-btn-sns-default-setting").on("click", function() {
- var e = i(this).attr("id"),
- t = {
- work_type: e,
- post_type: i('input[name="default-setting-' + e + '"]:checked').val()
- },
- n = i("#js-default-post-type-" + e + "-success"),
- o = i("#js-default-post-type-" + e + "-error");
- i.ajax({
- url: "/ownlist/default_post_type/save.json",
- type: "POST",
- data: JSON.stringify(t),
- dataType: "json",
- cache: !1,
- timeout: 1e4,
- success: function(e) {
- n.text("Updated successfully."), n.fadeIn().delay(3e3).fadeOut("slow")
- }
- }).fail(function(e) {
- o.text(e.responseJSON.errors[0].message), o.fadeIn().delay(3e3).fadeOut("slow")
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var o = n(7),
- r = i(o),
- a = n(3),
- s = i(a),
- c = n(138),
- u = i(c),
- l = window.$,
- d = window._,
- f = window.sVue;
- l(document).ready(function() {
- var e = "ontouchstart" in window;
- if (l(".js-anime-addtolist-block").exists() && function() {
- window.MAL.SNSFunc.initializeFacebook(), l("#showAddtolistAnime").on("click", function() {
- l("#addtolist").slideToggle(), l(this).toggleClass("on")
- }), l(".js-anime-addtolist-block .js-anime-add-button").on("click", function() {
- var e = l(".js-anime-addtolist-block #myinfo_anime_id").val(),
- t = l(".js-anime-addtolist-block #myinfo_score").val(),
- n = l(".js-anime-addtolist-block #myinfo_status").val(),
- i = l(".js-anime-addtolist-block #myinfo_watchedeps").val();
- l("#myinfoDisplay").html("<i class='fa fa-spinner fa-spin'></i>"), u.default.addAnimeEntry(e, {
- status: n,
- score: t,
- episodes: i
- }, {
- onSuccess: function() {
- l("#myinfoDisplay").html(""), l("#addtolist").html('Successfully added. <a href="/editlist.php?type=anime&id=' + e + ">Edit Details</a>")
- },
- onFail: function(e) {
- l("#myinfoDisplay").html(""), l("#addtolist").html(e)
- }
- })
- });
- var e = function() {
- var e = l(".js-anime-addtolist-block #myinfo_anime_id").val(),
- t = l(".js-anime-addtolist-block #myinfo_score").val(),
- n = l(".js-anime-addtolist-block #myinfo_status").val(),
- i = l(".js-anime-addtolist-block #myinfo_watchedeps").val();
- l("#myinfoDisplay").html("<i class='fa fa-spinner fa-spin'></i>"), u.default.updateAnimeEntry(e, {
- status: n,
- score: t,
- episodes: i
- }, {
- onSuccess: function() {
- l("#myinfoDisplay").html("Successfully Updated")
- },
- onFail: function() {
- l("#myinfoDisplay").html("Failed to Update")
- }
- })
- };
- l(".js-anime-addtolist-block .js-anime-update-button").on("click", e), l(".js-anime-addtolist-block .js-anime-increment-episode-button").on("click", function() {
- var t = l(".js-anime-addtolist-block #myinfo_watchedeps"),
- n = parseInt(t.val()) || 0,
- i = parseInt(l("#curEps").html()) || 0;
- (0 === i || n < i) && (t.val(n + 1), e())
- }), l(".js-anime-addtolist-block .js-anime-status-dropdown").on("change", function() {
- "2" === l(".js-anime-addtolist-block #myinfo_status").val() && l(".js-anime-addtolist-block #myinfo_watchedeps").val(l("#curEps").text())
- }), l(".js-similar-recommendations-button").on("click", function() {
- l("#simaid" + l(this).data("id")).toggle()
- }), l(".js-anime-edit-info-button").on("click", function() {
- l("#editdiv").toggleClass("on"), l("#editdiv").on("click", function(e) {
- e.stopPropagation()
- }), setTimeout(function() {
- l(document).on("click", function() {
- return l("#editdiv").removeClass("on"), l(document).off("click"), !1
- })
- }, 0)
- }), l(".js-anime-toggle-op-ed-button").on("click", function() {
- l(".js-viewOpEd").slideToggle("fast"), l(this).html().indexOf("More") > -1 ? l(this).html('<i class="fa fa-chevron-up mr4"></i>Less theme songs') : l(this).html('<i class="fa fa-chevron-down mr4"></i>More theme songs')
- })
- }(), l(".js-statistics-info")[0] && l(".js-statistics-info").on("mouseover", function() {
- var e = l(this).data("id"),
- t = l(this).find(".statistics-info." + e),
- n = -1 * (t.outerHeight() + 5);
- t.show().css({
- top: n
- })
- }).on("mouseout", function() {
- l(".statistics-info").hide()
- }), l(".js-search-filter-block")[0] && function() {
- var e = {
- members: "Most Members",
- start_date: "Start Date",
- title: "Title",
- score: "Score",
- studio: "Studio",
- licensor: "Licensor"
- },
- t = function() {
- l(".js-search-filter-sort-order-block.js-sort").on("click", function(e) {
- e.stopPropagation()
- }), l(document).on("click", function() {
- return l(".js-search-filter-sort-order-block").hide(), l(".js-search-filter-block .js-btn-show-sort").removeClass("on"), l(document).off("click"), !1
- })
- },
- n = r.default.get("search_sort_anime") || "members";
- l(".js-search-filter-block .js-text-sorted-by").text(e[n]), l(".js-search-filter-sort-order-block.js-sort .js-btn-sort-order").removeClass("selected"), l(".js-search-filter-sort-order-block.js-sort .js-btn-sort-order#" + n).addClass("selected"), l(".js-search-filter-block .js-btn-show-sort").on("click", function() {
- return l(this).toggleClass("on"), l(".js-search-filter-sort-order-block").toggle(), t(), !1
- }), l(".js-search-filter-block .js-search-filter-sort-order-block .js-btn-close").on("click", function() {
- l(".js-search-filter-block .js-btn-show-sort").toggleClass("on"), l(".js-search-filter-sort-order-block").toggle()
- }), l(".js-search-filter-sort-order-block.js-sort .js-btn-sort-order").on("click", function() {
- l(".js-search-filter-sort-order-block.js-sort .js-btn-sort-order").removeClass("selected"), l(this).addClass("selected");
- var e = l(this).attr("id");
- r.default.set("search_sort_anime", e), l(".js-search-filter-sort-order-block.js-sort .js-ajax-loader")[0] && l(".js-search-filter-sort-order-block.js-sort .js-ajax-loader").show(), location.href = location.href.replace(/\?.*$/, "")
- }), l(".js-block-list .js-btn-list-sort-order").on("click", function() {
- var e = l(this).attr("data-id");
- r.default.set("search_sort_anime", e), location.href = location.href.replace(/\?.*$/, "")
- })
- }(), l(".js-btn-anime-episode-bing")[0] && l(".js-btn-anime-episode-bing").on("click", function() {
- return !1
- }), l(".js-left-info-block-button-side").on("click", function() {
- !1 === l(this).hasClass("on") ? (l(".js-left-info-block").addClass("on"), l(".js-left-info-block-inner").addClass("on"), l(".js-bing-result-block").addClass("on")) : (l(".js-left-info-block").removeClass("on"), l(".js-left-info-block-inner").removeClass("on"), l(".js-bing-result-block").removeClass("on")), l(this).toggleClass("on")
- }), l(".btn-eps-num-dot")[0]) {
- "safari" === function() {
- var e = window.navigator.userAgent.toLowerCase(),
- t = "";
- return -1 !== e.indexOf("msie") ? t = "ie" : -1 !== e.indexOf("trident/7") ? t = "ie" : -1 !== e.indexOf("chrome") ? t = "chrome" : -1 !== e.indexOf("safari") ? t = "safari" : -1 !== e.indexOf("opera") ? t = "opera" : -1 !== e.indexOf("firefox") && (t = "firefox"), t
- }() && l(".btn-eps-num-dot").css({
- padding: "0px 0px 0px 8px"
- })
- }
- if (l(".js-btn-eps-watched")[0] && (l(".js-btn-eps-watched").on("mouseover", function() {
- if (!l(this).hasClass("watched")) {
- var e = l(".js-bing-result-control-block").attr("data-episode-id");
- l(".js-add-eps-num").text(e), l(".js-add-eps-num").addClass("on")
- }
- }).on("mouseout", function() {
- l(".js-add-eps-num").removeClass("on")
- }), l(".js-btn-eps-watched").on("click", function() {
- if (!l(this).hasClass("watched")) {
- var e = l(".js-bing-result-control-block").data("anime"),
- t = parseInt(l(".js-bing-result-control-block").attr("data-episode-id")),
- n = l(".js-btn-eps-num-latest").data("number");
- n = n || 9999, n > t && l.ajax({
- url: "/animelist/?update=1",
- type: "POST",
- data: {
- id: e,
- completed_episode_num: t,
- auto_status: 1
- },
- datatype: "html",
- timeout: 1e4,
- cache: !1,
- success: function(e, t, n) {
- l(".js-btn-eps-watched").addClass("watched"), "This anime has not been approved yet." === n.responseText && console.error(n.responseText)
- },
- error: function(e, t, n) {
- "This anime has not been approved yet." === n.responseText && console.error(n.responseText)
- }
- })
- }
- })), l(".js-watch-episode-list-short")[0] && l(".title-text").each(function() {
- var e = this,
- t = l(this).width();
- l(this).parent("a").hasClass("new") && function() {
- t >= 310 ? (l(e).parent("a").next(".icon-new").css({
- right: 0
- }), l(e).parent("a").addClass("overwidth")) : l(e).parent("a").next(".icon-new").css({
- left: 24 + t
- });
- var n = l(e).parent("a").attr("href");
- l(e).parent("a").next(".icon-new").on("click", function() {
- location.href = n
- })
- }()
- }), l(".js-watch-episode-list")[0] && l(".js-btn-sort").on("click", function() {
- l(".js-watch-episode-list.ascend").toggle(), l(".js-watch-episode-list.descend").toggle()
- }), l("#episode-watch")[0]) {
- if ((window.innerHeight || document.documentElement.clientHeight || 0) < 500) {
- var t = l("#episode-watch").offset().top;
- l("html,body").animate({
- scrollTop: t
- })
- }
- }
- l(".js-fancybox-video")[0] && l(".js-fancybox-video").attr("rel", "gallery").fancybox({
- openEffect: "none",
- closeEffect: "none",
- nextEffect: "none",
- prevEffect: "none",
- padding: 0,
- margin: 50,
- showNavArrows: !1,
- keys: {
- next: {
- 13: "left",
- 34: "up",
- 39: "left",
- 40: "up"
- },
- prev: {
- 8: "right",
- 33: "down",
- 37: "right",
- 38: "down"
- },
- close: [27],
- play: [32],
- toggle: [70]
- },
- width: "80%",
- height: "80%",
- beforeShow: function() {
- var e = l.fancybox.inner.find("iframe").attr("id");
- new YT.Player(e, {
- events: {
- onReady: onPlayerReady,
- onStateChange: onPlayerStateChange
- }
- })
- },
- onComplete: function() {
- s.default.actionLog("promotion_video", {
- id: this.orig[0].dataset.videoId,
- anime_id: this.orig[0].dataset.animeId,
- title: this.orig[0].dataset.title
- })
- }
- }), l(".js-btn-video-category")[0] && l(".js-btn-video-category").click(function() {
- var e = l(this).data("id"),
- t = l("#" + e).offset().top;
- return l("html,body").animate({
- scrollTop: t - 70
- }), !1
- }), l(".js-btn-video-type")[0] && l(".js-btn-video-type").click(function() {
- if (!l(this).hasClass("on")) {
- var e = l(this).data("url");
- return location.href = e, !1
- }
- }), l(".js-btn-select-provider")[0] && l(".js-btn-select-provider").on("click", function() {
- l(".js-select-provider").toggle()
- }), l(".js-user-status-block")[0] && function() {
- var e = function() {
- if ("manga" === l(".js-user-status-block").data("type")) {
- var e = l(".js-user-status-block #myinfo_anime_id").val(),
- t = l(".js-user-status-block #myinfo_score").val(),
- n = l(".js-user-status-block #myinfo_status").val() || l(".js-user-status-block #myinfo_status").data("value"),
- i = l(".js-user-status-block #myinfo_chapters").val(),
- o = l(".js-user-status-block #myinfo_volumes").val();
- l(".js-user-status-block").addClass("on"), l(".js-myinfo-error").html("").hide(), u.default.addMangaEntry(e, {
- status: n,
- score: t,
- chapters: i,
- volumes: o
- }, {
- onSuccess: function() {
- l(".js-user-status-block").removeClass("on"), l(".js-user-status-block .js-form-user-status-btn").remove(), l(".js-user-status-block .js-form-user-status-select").prop("disabled", !1).show()
- },
- onFail: function(e) {
- l(".js-user-status-block").removeClass("on"), l(".js-myinfo-error").html(e).show()
- }
- })
- } else {
- var r = l("#myinfo_anime_id").val(),
- a = l(".js-user-status-block #myinfo_score").val(),
- s = l(".js-user-status-block #myinfo_status").val() || l(".js-user-status-block #myinfo_status").data("value"),
- c = l(".js-user-status-block #myinfo_watchedeps").val();
- l(".js-user-status-block").addClass("on"), l(".js-myinfo-error").html("").hide(), u.default.addAnimeEntry(r, {
- status: s,
- score: a,
- episodes: c
- }, {
- onSuccess: function() {
- l(".js-user-status-block").removeClass("on"), l(".js-user-status-block .js-form-user-status-btn").remove(), l(".js-user-status-block .js-form-user-status-select").prop("disabled", !1).show()
- },
- onFail: function(e) {
- l(".js-user-status-block").removeClass("on"), l(".js-myinfo-error").html(e).show()
- }
- })
- }
- },
- t = function() {
- if ("manga" === l(".js-user-status-block").data("type")) {
- var e = l(".js-user-status-block #myinfo_anime_id").val(),
- t = l(".js-user-status-block #myinfo_score").val(),
- n = l(".js-user-status-block #myinfo_status").val(),
- i = l(".js-user-status-block #myinfo_chapters").val(),
- o = l(".js-user-status-block #myinfo_volumes").val();
- l(".js-user-status-block").addClass("on"), l(".js-myinfo-error").html("").hide(), u.default.updateMangaEntry(e, {
- status: n,
- score: t,
- chapters: i,
- volumes: o
- }, {
- onSuccess: function() {
- l(".js-user-status-block").removeClass("on")
- },
- onFail: function() {
- l(".js-user-status-block").removeClass("on"), l(".js-myinfo-error").innerHTML = "Failed to Update"
- }
- })
- } else {
- var r = l(".js-user-status-block #myinfo_anime_id").val(),
- a = l(".js-user-status-block #myinfo_score").val(),
- s = l(".js-user-status-block #myinfo_status").val(),
- c = l(".js-user-status-block #myinfo_watchedeps").val();
- l(".js-user-status-block").addClass("on"), l(".js-myinfo-error").html("").hide(), u.default.updateAnimeEntry(r, {
- status: s,
- score: a,
- episodes: c
- }, {
- onSuccess: function() {
- l(".js-user-status-block").removeClass("on")
- },
- onFail: function() {
- l(".js-user-status-block").removeClass("on"), l(".js-myinfo-error").innerHTML = "Failed to Update"
- }
- })
- }
- },
- n = function() {
- return l(".js-user-status-block .js-form-user-status").find("option:selected").text().toLowerCase().replace(/\s+/g, "")
- },
- i = function() {
- var n = l(".js-user-status-block .js-form-user-status");
- n.hasClass("myinfo_addtolist") ? (e(), n.removeClass("myinfo_addtolist").addClass("myinfo_updateInfo")) : n.hasClass("myinfo_updateInfo") && t()
- },
- o = function() {
- var e = n();
- l(".js-user-status-block .js-form-user-status").attr("data-class", e)
- },
- r = function() {
- var e = l(".js-user-status-block .form-user-episode");
- if ("manga" === l(".js-user-status-block").data("type")) {
- var t = parseInt(l(".js-user-status-block #totalVols").text()),
- i = parseInt(l(".js-user-episode-seen#myinfo_volumes").val() || 0);
- "completed" === n() && t <= i && "" !== t ? e.addClass("completed") : e.removeClass("completed");
- var o = parseInt(l(".js-user-status-block #totalChaps").text()),
- r = parseInt(l(".js-user-episode-seen#myinfo_chapters").val() || 0);
- "completed" === n() && o <= r && "" !== o ? e.addClass("completed") : e.removeClass("completed")
- } else {
- var a = parseInt(l(".js-user-status-block #curEps").text()),
- s = parseInt(l(".js-user-episode-seen#myinfo_watchedeps").val() || 0);
- "completed" === n() && a <= s && "" !== a ? e.addClass("completed") : e.removeClass("completed")
- }
- };
- r(), l(".js-user-status-block .js-form-user-status")[0] && (o(), l(".js-user-status-block .js-form-user-status-btn").on("click", function() {
- i()
- }), l(".js-user-status-block .js-form-user-status").on("change", function() {
- var e = n();
- if (l(".js-user-status-block .js-form-user-status").attr("data-class", e), "manga" === l(".js-user-status-block").data("type")) {
- var t = parseInt(l(".js-user-status-block #totalVols").text());
- "completed" === e && t && l(".js-user-episode-seen#myinfo_volumes").val(t);
- var a = parseInt(l(".js-user-status-block #totalChaps").text());
- "completed" === e && a && l(".js-user-episode-seen#myinfo_chapters").val(a)
- } else {
- var s = parseInt(l(".js-user-status-block #curEps").text());
- "completed" === e && s && l(".js-user-episode-seen#myinfo_watchedeps").val(s)
- }
- r(), o(), i()
- })), l(".js-user-status-block .js-form-user-score")[0] && l(".js-user-status-block .js-form-user-score").on("change", function() {
- i()
- }), l(".js-user-status-block .js-btn-count")[0] && function() {
- var e = l(".js-user-status-block .form-user-episode");
- e.hasClass("disabled") || function() {
- var t = function(t, n, o) {
- var r = l(".js-user-status-block #" + n),
- a = parseInt(r.val() || 0),
- s = l(".js-user-status-block #" + o).data("num");
- if (s = parseInt(s) || 0, !e.hasClass("completed") || 0 === s) {
- var c = function(e) {
- r.val(a + e), i()
- };
- t.hasClass("increase") && (0 === s || a < s) && c(1), t.hasClass("decrease") && 0 < a && c(-1)
- }
- };
- l(".js-btn-count").on("click", function() {
- l(this).hasClass("volume") ? t(l(this), "myinfo_volumes", "totalVols") : l(this).hasClass("chapter") ? t(l(this), "myinfo_chapters", "totalChaps") : t(l(this), "myinfo_watchedeps", "curEps")
- });
- var n = function(e, t) {
- var n = l(".js-user-episode-seen").next("#" + t).data("num");
- n = parseInt(n) || 0, e.match(/^[-]?[0-9]+(¥.[0-9]+)?$/) && (parseInt(e) <= parseInt(n) || 0 === n) && (i(), l(".js-user-episode-seen").blur())
- };
- l(".js-user-episode-seen").on("focus", function() {
- l(this).attr("data-eps", l(this).val())
- }), l(".js-user-episode-seen").on("keyup", function(t) {
- var i = this;
- if (!e.hasClass("completed")) {
- var o = t.keyCode;
- ! function() {
- switch (o) {
- case 27:
- var e = l(i).attr("data-eps");
- l(i).val(e).blur();
- break;
- case 8:
- break;
- default:
- var t = l(i).val(),
- r = l(i).next("span").attr("id");
- setTimeout(function() {
- n(t, r)
- }, 500)
- }
- }()
- }
- })
- }()
- }()
- }(), l(".js-btn-video-anime-slide")[0] && function() {
- var e = MAL.episodeVideo.aroundVideos.animeId,
- t = MAL.episodeVideo.aroundVideos.episodeNumber,
- n = MAL.episodeVideo.aroundVideos.pager,
- i = {};
- i[n.page] = n;
- var o = l(".js-video-anime-slide-outer").data("slide") || 5,
- r = l(".js-video-anime-slide-outer"),
- a = r.find(".btn-anime"),
- s = (a.outerHeight(), a.outerWidth(), void 0),
- c = new f({
- el: "#vue-video-slide",
- data: {
- videos: MAL.episodeVideo.aroundVideos.videos
- },
- mounted: function() {
- s = l(".js-video-anime-slide");
- var e = d.indexOf(d.map(this.$data.videos, function(e) {
- return e.episode_number
- }), t),
- n = Math.floor(e / o),
- i = r.find(".btn-anime");
- if (l(".js-btn-video-anime-slide").hasClass("hori")) {
- var a = i.outerWidth() + parseInt(i.css("marginRight")),
- c = a * n * o * -1;
- i.length;
- s.css({
- left: c
- })
- } else {
- var u = i.outerHeight(),
- f = u * n * o * -1;
- s.css({
- top: f
- })
- }
- }
- }),
- u = function(e) {
- var t = s.position().top,
- n = r.find(".btn-anime"),
- i = n.outerHeight(),
- a = e * i * o + t;
- a > 0 && (a = 0);
- var c = -1 * (i * n.length - r.height() - 1);
- c > a && (a = c), a == t ? v(e) : s.animate({
- top: a
- })
- },
- p = function(e) {
- var t = s.position().left,
- n = r.find(".btn-anime"),
- i = parseInt(n.css("marginRight")),
- a = n.outerWidth() + i,
- c = e * a * o + t;
- c > 0 && (c = 0);
- var u = -1 * (a * n.length - r.width() - i);
- u > c && (c = u), c === t ? v(e, !0) : s.animate({
- left: c
- })
- };
- l(".js-btn-video-anime-slide").on("click", function(e) {
- if (l(this).hasClass("hori")) {
- var t = l(this).data("dir");
- t = "next" === t ? -1 : 1, p(t)
- } else {
- var t = l(this).data("dir");
- t = "next" === t ? -1 : 1, u(t)
- }
- });
- var h = function() {
- var e = d.min(d.keys(i));
- return i[e]
- },
- m = function() {
- var e = d.max(d.keys(i));
- return i[e]
- },
- v = function(t, o) {
- var a = void 0;
- if (t > 0) {
- if (n = h(), !n.hasPrevPage) return;
- a = n.prevPage
- } else {
- if (n = m(), !n.hasNextPage) return;
- a = n.nextPage
- }
- if (!i[a]) {
- var d = r.find(".video-loading");
- d.show(), l.ajax({
- url: "/anime/api/video/around.json",
- type: "GET",
- data: {
- id: e,
- p: a
- },
- dataType: "json",
- success: function(e) {
- var n = void 0;
- if (t > 0) n = [0, 0].concat(e.videos);
- else {
- var l = c.videos.length;
- n = [l, l].concat(e.videos)
- }
- c.videos.splice.apply(c.videos, n), i[a] = e.pager, f.nextTick(function() {
- var n = r.find(".btn-anime");
- if (t > 0)
- if (o) {
- var i = n.outerWidth(),
- a = s.position().left,
- c = a + e.videos.length * i * -1;
- s.css({
- left: c
- })
- } else {
- var l = n.outerHeight(),
- d = s.position().top,
- f = d + e.videos.length * l * -1;
- s.css({
- top: f
- })
- }
- o ? p(t) : u(t)
- }), d.hide()
- }
- })
- }
- }
- }();
- if (l(".anime-slide-block")[0])
- for (var n = l(".anime-slide-block").length, i = 0; i < n; i++) {
- var o = l(".anime-slide-block").eq(i).attr("id");
- ! function(t, n, i) {
- var o = l("#" + t + ".anime-slide-block");
- if (o.length) {
- var r = o.data("json"),
- n = n || r.btnWidth,
- i = i || r.margin;
- o.css({
- width: r.width
- }), o.find(".anime-slide-outer").css({
- width: r.width
- }), o.find(".anime-slide").css({
- width: r.width
- });
- var a = o.find(".js-anime-slide").data("slide") || 4,
- s = o.find(".anime-slide li.btn-anime").eq(0).outerWidth(),
- c = o.find(".anime-slide li.btn-anime").length,
- u = s + i,
- d = u * (c + a);
- o.find(".anime-slide").width(d);
- var f = o.find(".btn-anime-slide-side.left"),
- p = o.find(".btn-anime-slide-side.right");
- c < a + 1 ? (f.hide(), p.hide()) : e || function() {
- var e = setInterval(function() {
- f.css({
- left: -1 * n,
- opacity: 0
- }), p.css({
- right: -1 * n,
- opacity: 0
- }), clearInterval(e)
- }, 1500)
- }(), f.find(".btn-inner").on("click", function(e) {
- var t = {
- direction: "left",
- button: l(this)
- };
- h(t)
- }), p.find(".btn-inner").on("click", function(e) {
- var t = {
- direction: "right",
- button: l(this)
- };
- h(t)
- }), e || (o.find(".anime-slide-outer").on("mouseover", function() {
- f.css({
- left: 0,
- opacity: 1
- }), p.css({
- right: 0,
- opacity: 1
- })
- }).on("mouseout", function() {
- f.css({
- left: -1 * n,
- opacity: 0
- }), p.css({
- right: -1 * n,
- opacity: 0
- })
- }), f.on("mouseover", function() {
- f.css({
- left: 0,
- opacity: 1
- }), p.css({
- right: -1 * n,
- opacity: 0
- })
- }).on("mouseout", function() {
- p.css({
- right: -1 * n,
- opacity: 0
- }), f.css({
- left: -1 * n,
- opacity: 0
- })
- }), p.on("mouseover", function() {
- p.css({
- right: 0,
- opacity: 1
- }), f.css({
- left: -1 * n,
- opacity: 0
- })
- }).on("mouseout", function() {
- p.css({
- right: -1 * n,
- opacity: 0
- }), f.css({
- left: -1 * n,
- opacity: 0
- })
- }));
- var h = function(e) {
- var t = e.direction,
- n = e.button;
- if (n.hide(), "right" == t) {
- var i = [];
- o.find(".anime-slide li.btn-anime").each(function() {
- i.push(l(this))
- });
- for (var r = 0; r < a; r++) i[r].clone(!0).insertAfter(o.find(".anime-slide li.btn-anime:last"));
- o.find(".anime-slide").css("marginLeft", "0px"), o.find(".anime-slide").animate({
- marginLeft: -1 * u * a + "px"
- }, {
- duration: 500,
- easing: "swing",
- complete: function() {
- for (var e = parseInt(o.find(".anime-slide").css("marginLeft").replace("px", "")), t = 0; t < a; t++) o.find(".anime-slide").css("marginLeft", e + u * a + "px"), o.find(".anime-slide li.btn-anime:first").remove();
- n.show()
- }
- })
- } else {
- var i = [];
- o.find(".anime-slide li.btn-anime").each(function() {
- i.push(l(this))
- }), i.reverse();
- for (var r = 0; r < a; r++) i[r].clone(!0).insertBefore(o.find(".anime-slide li.btn-anime:first"));
- var s = -1 * u * a + "px";
- o.find(".anime-slide").css("marginLeft", s), o.find(".anime-slide").animate({
- marginLeft: "0px"
- }, {
- duration: 500,
- easing: "swing",
- complete: function() {
- for (var e = 0; e < a; e++) o.find(".anime-slide li.btn-anime:last").remove();
- n.show()
- }
- })
- }
- }
- }
- }(o)
- }
- l(".js-daisuki-dragonball-super")[0] && l(".js-daisuki-dragonball-super").on("click", function() {
- var e = l(this).data("json");
- s.default.actionLog("daisuki_dragonball", {
- category: e.category,
- id: e.id,
- title: e.title
- }), window.open(e.url, "_blank")
- }), l(".js-shop-selecter")[0] && (l(".js-shop-selecter").on("mouseenter", function() {
- l(".js-shop-selecter-dialog").fadeIn()
- }), l(".js-shop-selecter-dialog").on("mouseenter", function() {
- l(this).show()
- }).on("mouseleave", function() {
- l(this).fadeOut()
- }))
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-btn-seasonal").on("click", function() {
- i(".js-btn-seasonal").removeClass("on"), i(this).addClass("on");
- var e = i(this).data("key");
- "all" === e ? i(".js-seasonal-anime-list").show() : (i(".js-seasonal-anime-list").hide(), i(".js-seasonal-anime-list-key-" + e).show())
- }), i(".js-seasonal-anime .js-synopsis").on({
- mouseenter: function() {
- i(this).addClass("block-scroll")
- },
- mouseleave: function() {
- var e = i(this).width();
- i(this).removeClass("block-scroll").animate({
- width: e
- }, function() {
- i(this).width(e)
- })
- }
- }), i(".js-seasonal-anime .js-genre").each(function() {
- var e = (i(this).height(), i(this).find(".js-genre-inner").height()),
- t = i(this).attr("id");
- if (e > 24) {
- var n = '<span id="' + t + '" class="btn-more-genre js-more-genre" data-height="' + e + '" title="Click to view more genre"></span>';
- i(this).append(n), i(".js-seasonal-anime .js-genre#" + t + " .js-more-genre").on("click", function() {
- i(this).toggleClass("on"), i(this).parent(".js-genre").toggleClass("open"), i(this).parent(".js-genre").hasClass("open") ? i(this).parent(".js-genre").css({
- height: e - 6
- }) : i(this).parent(".js-genre").css({
- height: 12
- })
- })
- }
- }), i(".js-seasonal-anime .licensors").each(function() {
- var e = i(this).attr("data-licensors").slice(0, -1).split(",");
- e[0].length > 0 && i(this).addClass("on").html('<span class="fw-b">Licensor:</span><br>' + e.join(", "))
- });
- var e = function() {
- var e = [],
- t = [];
- if (i(".js-seasonal-sort-order-block.js-genres li.js-btn-sort-order").each(function() {
- i(this).hasClass("crossed") ? t.push(parseInt(i(this).attr("id"))) : i(this).hasClass("selected") && e.push(parseInt(i(this).attr("id")))
- }), i(".js-btn-show-r18").hasClass("on"))
- for (var n = i(".js-btn-show-r18").data("id").split(","), o = 0; o < n.length; o++) e.push(parseInt(n[o]));
- return i(".js-btn-show-kids").hasClass("on") && e.push(parseInt(i(".js-btn-show-kids").data("id"))), {
- check_ids: e,
- hide_ids: t
- }
- };
- i(".js-navi-seasonal")[0] && (i(".js-btn-show-r18").on("click", function() {
- i(this).toggleClass("on");
- var t = {
- id: e(),
- name: "genre_filter",
- type: "r18",
- url: "/anime/season/config/filter.json"
- };
- n(t)
- }), i(".js-btn-show-kids").on("click", function() {
- i(this).toggleClass("on");
- var t = {
- id: e(),
- name: "genre_filter",
- type: "kids",
- url: "/anime/season/config/filter.json"
- };
- n(t)
- }), i(".js-navi-seasonal .js-btn-show-sort").on("click", function() {
- var e = this;
- i(document).off("click");
- var n = i(this).data("id");
- "block" === i(".js-navi-seasonal .js-" + n).css("display") ? (i(".js-navi-seasonal .js-seasonal-sort-order-block.js-" + n).hide(), i(".js-navi-seasonal .js-btn-show-sort").removeClass("on")) : function() {
- i(".js-navi-seasonal .js-seasonal-sort-order-block").hide(), i(".js-navi-seasonal .js-btn-show-sort").removeClass("on"), i(".js-navi-seasonal .js-seasonal-sort-order-block.js-" + n).show(), i(e).addClass("on");
- var o = setInterval(function() {
- t(), clearInterval(o)
- }, 500)
- }(), "genres" === n && l(n)
- }));
- var t = function(e) {
- i(".js-navi-seasonal .js-seasonal-sort-order-block").on("click", function(e) {
- e.stopPropagation()
- }), i(document).on("click", function() {
- return i(".js-navi-seasonal .js-seasonal-sort-order-block").hide(), i(".js-navi-seasonal .js-btn-show-sort").removeClass("on"), i(document).off("click"), !1
- })
- },
- n = function(e) {
- var t = e.type,
- n = e.id,
- s = e.url,
- l = e.name,
- d = e.dataType,
- f = {};
- f[l] = n, f = JSON.stringify(f), i(".js-seasonal-sort-order-block.js-" + t + " .js-ajax-loader")[0] && i(".js-seasonal-sort-order-block.js-" + t + " .js-ajax-loader").show(), i(".js-seasonal-sort-order-block.js-" + t + " .js-error-message")[0] && i(".js-seasonal-sort-order-block.js-" + t + " .js-error-message").html("").hide(), i.ajax({
- url: s,
- type: "PUT",
- dataType: d,
- data: f,
- timeout: 1e4,
- success: function() {
- switch (t) {
- case "genres":
- var n = i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order#" + e.cId);
- n.hasClass("selected") ? n.addClass("selected") : n.removeClass("selected"), c(), a(), o();
- break;
- case "sort":
- window.location.href = location.href;
- break;
- case "r18":
- i(".js-navi-seasonal .js-btn-show-r18").hasClass("on") ? (c(), r(), a()) : o();
- break;
- case "kids":
- i(".js-navi-seasonal .js-btn-show-kids").hasClass("on") ? (c(), o(), a()) : o()
- }
- },
- error: function(e) {
- var n = i.parseJSON(e.responseText).errors,
- o = n[0].message,
- r = '<span class="di-ib pb8">Error: ' + o + "</span>";
- switch (t) {
- case "genres":
- i(".js-seasonal-sort-order-block.js-genres .js-error-message").html(r).show();
- break;
- case "sort":
- i(".js-seasonal-sort-order-block.js-sort .js-error-message").html(r).show(), i(".js-seasonal-sort-order-block.js-sort .js-ajax-loader").hide();
- break;
- case "r18":
- i(".js-navi-seasonal .js-btn-show-r18").toggleClass("on"), console.log(n[0].message);
- break;
- case "kids":
- i(".js-navi-seasonal .js-btn-show-kids").toggleClass("on"), console.log(n[0].message)
- }
- },
- complete: function(e) {
- u()
- }
- })
- },
- o = function() {
- r(), i(".js-btn-show-r18").hasClass("on") || i(".js-seasonal-anime.js-r18").hide()
- },
- r = function() {
- i(".js-btn-show-kids").hasClass("on") ? i(".js-btn-show-kids").hasClass("on") && i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order#All").hasClass("selected") ? i(".js-seasonal-anime.js-kids").show() : i(".js-btn-show-kids").hasClass("on") && !i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order#All").hasClass("selected") ? function() {
- var e = i(".js-btn-show-kids").attr("data-id");
- i(".js-seasonal-anime.js-kids").each(function() {
- var t = i(this).attr("data-genre").split(",");
- 1 === t.length && t[0] === e && i(this).show()
- })
- }() : i(".js-seasonal-anime.js-kids").show() : i(".js-seasonal-anime.js-kids").hide(), a()
- },
- a = function() {
- i(".js-seasonal-sort-order-block.js-mylist .js-btn-sort-order").each(function() {
- if (!i(this).hasClass("selected")) {
- var e = i(this).attr("id");
- i(".js-categories-seasonal .js-seasonal-anime .js-anime-watch-status." + e).parents(".js-seasonal-anime").hide()
- }
- })
- },
- s = function() {
- c()
- },
- c = function() {
- var e = i(".js-seasonal-anime"),
- t = i(".js-seasonal-sort-order-block.js-genres .btn-sort-order"),
- n = t.map(function() {
- if (i(this).hasClass("selected")) return i(this).attr("id")
- }).get().join(",").split(","),
- o = t.map(function() {
- if (i(this).hasClass("crossed")) return i(this).attr("id")
- }).get().join(",").split(",");
- e.show(), e.each(function() {
- var e = i(this).attr("data-genre").split(",");
- i(this).show();
- for (var t = 0; t < o.length; t++)
- if (0 !== o[t].length && e.indexOf(o[t]) >= 0) {
- i(this).hide();
- break
- }
- for (var t = 0; t < n.length; t++)
- if (0 !== n[t].length && -1 === e.indexOf(n[t])) {
- i(this).hide();
- break
- }
- })
- },
- u = function() {
- var e = i(".js-seasonal-anime"),
- t = [];
- e.each(function() {
- i(this).is(":visible") && t.push("visible")
- });
- var n = e.length,
- o = t.length,
- r = o + "/" + n;
- i(".js-visible-anime-count").text(r)
- },
- l = function(e) {
- var t = i(".js-seasonal-sort-order-block.js-" + e + " .js-btn-sort-order"),
- n = [];
- t.each(function() {
- (i(this).hasClass("selected") || i(this).hasClass("crossed")) && n.push(i(this).attr("id"))
- }), "genres" === e ? (n.length >= t.length - 1 && t.addClass(function() {
- if (!i(this).hasClass("crossed")) return "selected"
- }), 0 === n.length ? i(".js-btn-show-sort." + e).removeClass("filtered") : i(".js-btn-show-sort." + e).addClass("filtered")) : n.length >= t.length - 1 ? (t.addClass(function() {
- if (!i(this).hasClass("crossed")) return "selected"
- }), i(".js-btn-show-sort." + e).removeClass("filtered")) : i(".js-btn-show-sort." + e).addClass("filtered")
- };
- i(".js-seasonal-sort-order-block")[0] && (i(".js-seasonal-sort-order-block .js-btn-close").on("click", function() {
- i(this).parents(".js-seasonal-sort-order-block").hide(), i(".js-navi-seasonal .js-btn-show-sort").removeClass("on")
- }), i(".js-seasonal-sort-order-block.js-mylist .js-btn-sort-order").on("click", function() {
- if ("All" === i(this).attr("id")) {
- var e = i(".js-categories-seasonal .js-seasonal-anime");
- i(this).hasClass("selected") ? (i(".js-seasonal-sort-order-block.js-mylist .js-btn-sort-order").removeClass("selected"), e.hide(), i(".js-btn-show-sort.mylist").addClass("filtered")) : (i(".js-seasonal-sort-order-block.js-mylist .js-btn-sort-order").addClass("selected"), e.show(), s(), o(), i(".js-btn-show-sort.mylist").removeClass("filtered"))
- } else i(".js-seasonal-sort-order-block.js-mylist .js-btn-sort-order#All").removeClass("selected"), i(this).toggleClass("selected"), l("mylist"), i(".js-categories-seasonal .js-seasonal-anime").show(), s(), o(), a();
- u()
- })), i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order").on("click", function() {
- var t = i(this).attr("id");
- "All" === t ? i(this).hasClass("selected") ? (i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order").removeClass("selected"), i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order").removeClass("crossed"), i(".js-btn-show-sort.genres").removeClass("filtered")) : (i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order").addClass("selected"), i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order").removeClass("crossed"), i(".js-btn-show-sort.genres").addClass("filtered")) : (i(".js-seasonal-sort-order-block.js-genres .js-btn-sort-order#All").removeClass("selected"), i(this).hasClass("selected") ? (i(this).removeClass("selected"), i(this).addClass("crossed")) : i(this).hasClass("crossed") ? i(this).removeClass("crossed") : i(this).addClass("selected"), l("genres"));
- var o = {
- id: e(),
- name: "genre_filter",
- type: "genres",
- url: "/anime/season/config/filter.json",
- cId: t
- };
- n(o)
- }), i(".js-seasonal-sort-order-block.js-sort .js-btn-sort-order").on("click", function() {
- i(".js-seasonal-sort-order-block.js-sort .js-btn-sort-order").removeClass("selected"), i(this).addClass("selected");
- var e = {
- id: i(this).attr("id"),
- name: "sort_by",
- type: "sort",
- url: "/anime/season/config/sort.json",
- dataType: "html"
- };
- n(e)
- }), i(".js-btn-add-episode")[0] && i(".js-btn-add-episode").on("click", function() {
- var e = i(this).attr("id"),
- t = i(".js-btn-add-episode#" + e),
- n = i(".js-btn-add-episode#" + e).next().find(".js-episode-num"),
- o = parseInt(n.text()),
- r = parseInt(i(this).data("eps"));
- (r = r || 9999) > o && function() {
- var a = o + 1;
- i.ajax({
- url: "/includes/ajax.inc.php?t=79",
- type: "POST",
- data: {
- anime_id: e,
- ep_val: a
- },
- datatype: "html",
- timeout: 1e4,
- cache: !1,
- success: function(t, s, c) {
- n.text(a), r <= a && i(".js-btn-add-episode#" + e).hide(), "This anime has not been approved yet." === c.responseText && (i(".js-btn-add-episode#" + e).hide(), i(".js-btn-add-episode#" + e).next(".js-episode-num").text(o), console.log(c.responseText))
- },
- error: function(t, n, r) {
- i(".js-btn-add-episode#" + e).next(".js-episode-num").text(o)
- },
- complete: function(e) {
- t.show()
- }
- })
- }()
- });
- var d = function(e) {
- i(".js-seasonal-anime").each(function() {
- var e = new Image;
- e.src = i(this).find(".image").css("background-image").replace(/(url\(|\)|")/g, ""), e.width > e.height && i(this).find(".image").css({
- "background-size": "contain"
- })
- })
- },
- f = function() {
- var e = i(".wrapper")[0].getBoundingClientRect(),
- t = i(this).scrollTop(),
- n = i("#content").height(),
- o = document.documentElement.clientHeight,
- r = i(".js-navi-seasonal");
- if (r.exists()) {
- var a = r.height();
- t > 142 && (i(".js-navi-seasonal").addClass("fixed"), i(".js-navi-seasonal").css({
- left: e.left + 1
- }), i(".js-categories-seasonal").css({
- "padding-top": a
- })), t < 142 && (i(".js-navi-seasonal").removeClass("fixed"), i(".js-navi-seasonal").css({
- left: 0
- }), i(".js-categories-seasonal").css({
- "padding-top": 0
- }))
- }
- t > 113 && n - t > o - 142 && i(".js-btn-top").css({
- left: e.left + 1020
- }).show(), (t < 142 || n - t < o - 142) && i(".js-btn-top").hide()
- };
- i(".js-btn-top").on("click", function() {
- i("html,body").animate({
- scrollTop: 0
- })
- }), i(".page-common.season")[0] && (i(window).on("scroll resize", f), i(window).on("load", function() {
- f(), d()
- })), i(".page-common.season")[0] && (l("genres"), c(), o(), u())
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i("#banner-anime-streaming-block-detail .banner-anime-streaming-block4 a")[0] && i("#banner-anime-streaming-block-detail .banner-anime-streaming-block4 .anime-image").on("mouseover", function() {
- i(this).find(".btn-play").css({
- "background-color": "rgba(255,255,255,0.8)"
- })
- }).on("mouseout", function() {
- i(this).find(".btn-play").css({
- "background-color": "rgba(255,255,255,0)"
- })
- }), i("#banner-anime-streaming-block-banner .banner-anime-streaming-block3 a")[0] && i("#banner-anime-streaming-block-banner .banner-anime-streaming-block3 a").each(function() {
- i(this).on("mouseover", function() {
- i(this).addClass("on")
- }).on("mouseout", function() {
- i(this).removeClass("on")
- })
- }), i("#banner-anime-streaming-block-banner .banner-anime-streaming-block2 a")[0] && i("#banner-anime-streaming-block-banner .banner-anime-streaming-block2 a").each(function() {
- i(this).on("mouseover", function() {
- i(this).addClass("on")
- }).on("mouseout", function() {
- i(this).removeClass("on")
- })
- }), i("#banner-anime-streaming-block-index .banner-anime-streaming-block1 a")[0] && i("#banner-anime-streaming-block-index .banner-anime-streaming-block1 a").each(function() {
- i(this).on("mouseover", function() {
- i(this).addClass("on")
- }).on("mouseout", function() {
- i(this).removeClass("on")
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- if (i(".js-outside-region")[0]) {
- var e = i(".js-outside-region"),
- t = e.height(),
- n = e.find(".js-video-list-content").height();
- e.find(".js-btn-outside-region").attr("data-height", '{"outer":' + t + ',"inner":' + n + "}"), i(".js-btn-outside-region").on("click", function() {
- var e = i.parseJSON(i(this).attr("data-height")),
- t = i(this).parent(".js-outside-region");
- i(this).hasClass("open") ? t.animate({
- height: e.outer
- }) : t.animate({
- height: e.inner
- }), i(this).toggleClass("open"), t.toggleClass("open")
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- function i(e, t, n) {
- return t in e ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[t] = n, e
- }
- var o = Object.assign || function(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t];
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i])
- }
- return e
- },
- r = n(14),
- a = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(r),
- s = window.sVue,
- c = window.$;
- c(function() {
- var e, t = c(".js-itunes-wrapper");
- if (t.exists()) {
- var n = new a.default.Store({
- state: {
- items: [],
- currentPage: 0,
- numItemsPerPage: 6
- },
- getters: {
- isFirstPage: function(e) {
- return 0 === e.currentPage
- },
- isLastPage: function(e) {
- return e.currentPage === Math.ceil(e.items.length / e.numItemsPerPage) - 1
- }
- },
- mutations: (e = {}, i(e, "TYPE_LOAD", function(e, t) {
- e.items = t
- }), i(e, "TYPE_SLIDE", function(e, t) {
- e.currentPage += t
- }), e),
- actions: i({}, "TYPE_LOAD", function(e) {
- var n = e.commit;
- return c.ajax({
- url: t.data("api-url"),
- success: function(e) {
- n("TYPE_LOAD", e)
- }
- })
- })
- });
- new s({
- el: ".js-itunes-wrapper",
- store: n,
- created: function() {
- this.$store.dispatch("TYPE_LOAD")
- },
- computed: o({}, a.default.mapState(["items", "currentPage"]), a.default.mapGetters(["isFirstPage", "isLastPage"])),
- methods: {
- slide: function(e) {
- this.isFirstPage && e < 0 || this.isLastPage && e > 0 || this.$store.commit("TYPE_SLIDE", e)
- }
- }
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(138),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$;
- r(function() {
- r(".js-manga-addtolist-block").exists() && (r("#showAddtolistManga").on("click", function() {
- r("#addtolist").slideToggle(), r(this).toggleClass("on")
- }), r(".js-manga-addtolist-block .js-manga-add-button").on("click", function() {
- var e = r(".js-manga-addtolist-block #myinfo_manga_id").val(),
- t = r(".js-manga-addtolist-block #myinfo_score").val(),
- n = r(".js-manga-addtolist-block #myinfo_status").val(),
- i = r(".js-manga-addtolist-block #myinfo_chapters").val(),
- a = r(".js-manga-addtolist-block #myinfo_volumes").val();
- r("#myinfoDisplay").html("<i class='fa fa-spinner fa-spin'></i>"), o.default.addMangaEntry(e, {
- status: n,
- score: t,
- chapters: i,
- volumes: a
- }, {
- onSuccess: function() {
- r("#myinfoDisplay").html(""), r("#addtolist").html("Successfully added.")
- },
- onFail: function(e) {
- r("#myinfoDisplay").html(""), r("#addtolist").html(e)
- }
- })
- }), r(".js-manga-addtolist-block .js-manga-update-button").on("click", function() {
- var e = r(".js-manga-addtolist-block #myinfo_manga_id").val(),
- t = r(".js-manga-addtolist-block #myinfo_score").val(),
- n = r(".js-manga-addtolist-block #myinfo_status").val(),
- i = r(".js-manga-addtolist-block #myinfo_chapters").val(),
- a = r(".js-manga-addtolist-block #myinfo_volumes").val();
- r("#myinfoDisplay").html("<i class='fa fa-spinner fa-spin'></i>"), o.default.updateMangaEntry(e, {
- status: n,
- score: t,
- chapters: i,
- volumes: a
- }, {
- onSuccess: function() {
- r("#myinfoDisplay").html("Successfully Updated")
- },
- onFail: function() {
- r("#myinfoDisplay").html("Failed to Update")
- }
- })
- }), r(".js-manga-addtolist-block .js-manga-status-dropdown").on("change", function() {
- "2" === r(".js-manga-addtolist-block #myinfo_status").val() && (r(".js-manga-addtolist-block #myinfo_chapters").val(r("#totalChaps").text()), r(".js-manga-addtolist-block #myinfo_volumes").val(r("#totalVols").html()))
- }), r(".js-similar-recommendations-button").on("click", function() {
- r("#simaid" + r(this).data("id")).toggle()
- }), r(".js-manga-edit-info-button").on("click", function() {
- r("#editdiv").toggleClass("on"), r("#editdiv").on("click", function(e) {
- e.stopPropagation()
- }), setTimeout(function() {
- r(document).on("click", function() {
- return r("#editdiv").removeClass("on"), r(document).off("click"), !1
- })
- }, 0)
- }))
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(71);
- i(function() {
- var e = "ontouchstart" in window,
- t = function(t, n, o) {
- var r = i("#" + t + ".widget-slide-block");
- if (r.find(".widget-slide li.btn-anime").length) {
- var a = r.find(".js-widget-slide").data("slide") || 4,
- s = r.find(".widget-slide li.btn-anime").eq(0).outerWidth(),
- c = r.find(".widget-slide li.btn-anime").length,
- u = s + o,
- l = u * (c + a);
- r.find(".widget-slide").width(l);
- var d = r.find(".btn-widget-slide-side.left"),
- f = r.find(".btn-widget-slide-side.right");
- c < a + 1 ? (d.hide(), f.hide()) : e || function() {
- var e = setInterval(function() {
- d.css({
- left: -1 * n,
- opacity: 0
- }), f.css({
- right: -1 * n,
- opacity: 0
- }), clearInterval(e)
- }, 1500)
- }(), d.find(".btn-inner").on("click", function(e) {
- var t = {
- direction: "left",
- button: i(this)
- };
- p(t)
- }), f.find(".btn-inner").on("click", function(e) {
- var t = {
- direction: "right",
- button: i(this)
- };
- p(t)
- }), e || (r.find(".widget-slide-outer").on("mouseover", function() {
- d.css({
- left: 0,
- opacity: 1
- }), f.css({
- right: 0,
- opacity: 1
- })
- }).on("mouseout", function() {
- d.css({
- left: -1 * n,
- opacity: 0
- }), f.css({
- right: -1 * n,
- opacity: 0
- })
- }), d.on("mouseover", function() {
- d.css({
- left: 0,
- opacity: 1
- }), f.css({
- right: -1 * n,
- opacity: 0
- })
- }).on("mouseout", function() {
- f.css({
- right: -1 * n,
- opacity: 0
- }), d.css({
- left: -1 * n,
- opacity: 0
- })
- }), f.on("mouseover", function() {
- f.css({
- right: 0,
- opacity: 1
- }), d.css({
- left: -1 * n,
- opacity: 0
- })
- }).on("mouseout", function() {
- f.css({
- right: -1 * n,
- opacity: 0
- }), d.css({
- left: -1 * n,
- opacity: 0
- })
- }));
- var p = function(e) {
- var t = e.direction,
- n = e.button;
- if (n.hide(), "right" == t) {
- var o = [];
- r.find(".widget-slide li.btn-anime").each(function() {
- o.push(i(this))
- });
- for (var s = 0; s < a; s++) o[s].clone(!0).insertAfter(r.find(".widget-slide li.btn-anime:last"));
- r.find(".widget-slide").css("marginLeft", "0px"), r.find(".widget-slide").animate({
- marginLeft: -1 * u * a + "px"
- }, {
- duration: 500,
- easing: "swing",
- complete: function() {
- for (var e = parseInt(r.find(".widget-slide").css("marginLeft").replace("px", "")), t = 0; t < a; t++) r.find(".widget-slide").css("marginLeft", e + u * a + "px"), r.find(".widget-slide li.btn-anime:first").remove();
- n.show()
- }
- })
- } else {
- var o = [];
- r.find(".widget-slide li.btn-anime").each(function() {
- o.push(i(this))
- }), o.reverse();
- for (var s = 0; s < a; s++) o[s].clone(!0).insertBefore(r.find(".widget-slide li.btn-anime:first"));
- var c = -1 * u * a + "px";
- r.find(".widget-slide").css("marginLeft", c), r.find(".widget-slide").animate({
- marginLeft: "0px"
- }, {
- duration: 500,
- easing: "swing",
- complete: function() {
- for (var e = 0; e < a; e++) r.find(".widget-slide li.btn-anime:last").remove();
- n.show()
- }
- })
- }
- }
- }
- };
- i(".widget-slide-block")[0] && (t("widget-seasonal-video", 40, 6), t("widget-episode-video", 30, 8), t("widget-promotional-video", 30, 8)), i(".js-widget-episode-video-link")[0] && (i(".js-widget-episode-video-link").on("click", function() {
- var e = i(this).data("url");
- location.href = e
- }), i(".js-widget-episode-video-link .title").on("mouseover", function() {
- i(this).parents(".js-widget-episode-video-link").css({
- opacity: 1
- })
- }).on("mouseout", function() {
- i(this).parents(".js-widget-episode-video-link").css({
- opacity: ""
- })
- }))
- }), i(document).ready(function() {
- var e = "clubsWidgetData",
- t = i(".widget.clubs");
- 0 !== t.length && t.find(".js-new").each(function() {
- var t = i(this),
- n = t.data("time"),
- r = t.data("clubId"),
- a = o[e] ? JSON.parse(o[e]) : {
- version: 1,
- clubs: {}
- };
- if (a.clubs[r]) {
- a.clubs[r].time < n && t.removeClass("hidden")
- } else t.removeClass("hidden");
- a.clubs[r] = {
- time: n
- }, o[e] = JSON.stringify(a)
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".columnists-navi-list")[0] && i(".columnists-navi-list li").on("click", function() {
- i(".columnists-navi-list li").removeClass("on"), i(this).addClass("on");
- var e = i(this).data("id");
- "all" == e ? i(".columnists-block-set").show() : (i(".columnists-block-set").hide(), i("#columnists-block-set-" + e).show())
- }), i(".menu-tags-group .btn-category").click(function() {
- var e = i(this).data("id"),
- t = i("#" + e).offset().top;
- return i("html,body").animate({
- scrollTop: t - 70
- }), !1
- })
- })
- }, function(e, t, n) {
- "use strict";
- function i() {
- var e = d(this).data("id"),
- t = d("#message" + e),
- n = d("#messageEditWaiting" + e),
- i = d("#messageEdit" + e),
- o = d("#messageEditTextArea" + e);
- "none" === t.css("display") ? "none" !== i.css("display") && (i.hide(), t.show()) : (t.hide(), n.show(), d.ajax({
- type: "POST",
- url: "/includes/ajax.inc.php?t=85",
- data: {
- msg_id: e
- },
- dataType: "json",
- success: function(e) {
- e && (n.hide(), i.show(), o.val(e.message))
- },
- error: function() {
- n.hide(), t.show()
- }
- }))
- }
- function o() {
- var e = d(this).data("id"),
- t = d("#message" + e),
- n = d("#messageEditWaiting" + e),
- i = d("#messageEdit" + e),
- o = d("#messageEditTextArea" + e);
- if ("none" === t.css("display")) {
- i.hide(), n.show();
- var r = d("#topicId").val(),
- a = o.val();
- d.ajax({
- type: "POST",
- url: "/includes/ajax.inc.php?t=86",
- data: {
- msg_id: e,
- msg: a,
- topic_id: r
- },
- dataType: "json",
- success: function(e) {
- e && (e.error ? (alert(e.error_message), n.hide(), i.show()) : (n.hide(), i.hide(), t.html(e.message_html), t.show()))
- },
- error: function() {
- n.hide(), i.show()
- }
- })
- }
- }
- function r() {
- var e = d(this).data("id"),
- t = d("#message" + e);
- d("#messageEdit" + e).hide(), t.show()
- }
- function a(e) {
- d("#quickReply").show();
- var t = d("#messageuser" + e).children().children().html();
- d.ajax({
- type: "POST",
- url: "/includes/quotetext.php",
- data: "msgid=" + e,
- success: function(n) {
- var i = d("<div/>").html(n).text();
- d("#messageText").val(d("#messageText").val() + "[quote=" + t + " message=" + e + "]" + i + "[/quote]")
- }
- }), d("#messageText").focus()
- }
- function s(e, t, n) {
- n.html("<i class='fa fa-spinner fa-spin'></i>"), d.post("/includes/ajax.inc.php?t=16", {
- val: t,
- ibid: e,
- timestamp: f
- }, function(e) {
- 2 == t ? (n.data("mode", 1), n.html("Ignore Board")) : (n.data("mode", 2), n.html("Un-ignore Board"))
- })
- }
- function c(e, t, n) {
- d.post("/includes/ajax.inc.php?t=1", {
- val: n,
- id: e,
- timestamp: f
- }, function(e) {
- d("#" + t).toggle()
- })
- }
- function u(e, t) {
- t.html("<i class='fa fa-spinner fa-spin'></i>"), d.post("/includes/ajax.inc.php?t=1", {
- id: e,
- timestamp: f
- }, function(e) {
- 1 == e ? t.html("Hid Topic") : 2 == e ? t.html("Removed Hide") : t.html("Too Many")
- })
- }
- function l(e, t, n) {
- t && n.html("<i class='fa fa-spinner fa-spin'></i>"), d.post("/includes/ajax.inc.php?t=69", {
- topic_id: e,
- timestamp: f
- }, function(i) {
- if (t) n.html(i);
- else {
- -1 != i.search(/Watching/) ? d("#wt" + e).html('<img src="/images/watch_y.gif" title="You are watching this topic">') : d("#wt" + e).html('<img src="/images/watch_n.gif" title="You are not watching this topic">')
- }
- })
- }
- var d = window.$,
- f = Date();
- d(function() {
- d("div.postActions a.deletePost").on("click", function() {
- var e = d(this);
- e.hide(), e.parent().find("span.confirmDelete").show()
- }), d("div.postActions a.yes").on("click", function() {
- var e = d(this),
- t = e.parent(),
- n = e.data("msgid");
- d.ajax({
- type: "POST",
- url: "/includes/ajax.inc.php?t=84",
- data: "msgId=" + n,
- dataType: "json",
- success: function(e) {
- null == e.error ? (t.html("Deleted"), d("#forumMsg" + n).hide("slow")) : alert("Error: " + e.error)
- }
- })
- }), d("div.postActions a.no").on("click", function() {
- var e = d(this);
- e.parent().hide(), e.parent().parent().find("a.deletePost").show()
- }), d("#postReply").click(function() {
- d("#postIndicator").show();
- var e = d("#topicId").val();
- d.ajax({
- type: "POST",
- url: "/includes/ajax.inc.php?t=82",
- data: "topicId=" + e + "&messageText=" + encodeURIComponent(d("#messageText").val()) + "&totalReplies=" + d("#totalReplies").val(),
- success: function(t) {
- if (null == t.html) null != t.errors ? alert(t.errors[0].message) : alert("There was an error posting, please try again.");
- else {
- var n = "";
- if (t.moreposts) {
- var a = "";
- a = t.moreposts > 1 ? "s have" : " has", n = '<div class="goodresult">' + t.moreposts + " post" + a + ' been added since your last page refresh. <a href="?topicid=' + e + '&goto=newpost">Go to new post</a>.</div>'
- }
- d(".forum_boardrowspacer").last().after(n + t.html), d("#postEditButtons" + t.msg_id + " .quickEdit").click(i), d("#messageEdit" + t.msg_id + " .postEditedMessage").click(o), d("#messageEdit" + t.msg_id + " .clearEditedMessage").click(r), d("#messageText").val(""), d("#quickReply").hide(), load_img_tags()
- }
- d("#postIndicator").hide()
- },
- dataType: "json"
- })
- }), d("#showQuickReply").click(function() {
- d("#quickReply").toggle(), d("#messageText").focus()
- }), d("#clearQuickReply").click(function() {
- d("#messageText").val(""), d("#messageText").focus()
- }), d(".quickEdit").click(i), d(".postEditedMessage").click(o), d(".clearEditedMessage").click(r), d(".js-forum-quote-button").on("click", function() {
- a(d(this).data("id"))
- }), d(".js-ignore-board-button").on("click", function() {
- s(d(this).data("id"), d(this).data("mode"), d(this))
- }), d(".js-ignore-topic-button").on("click", function() {
- c(d(this).data("id"), d(this).data("row"), d(this).data("mode"))
- }), d(".js-toggle-ignore-topic-button").on("click", function() {
- u(d(this).data("id"), d(this))
- }), d(".js-toggle-watching-topic-button").on("click", function() {
- l(d(this).data("id"), d(this).data("in-topic"), d(this))
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- var e = i(".js-submit-forum-search"),
- t = i('input[name="q"]'),
- n = i('input[name="u"]');
- if (e.exists()) {
- var o = function() {
- return 0 === n.val().length && t.val().length < 2 ? (e.addClass("notActive"), void e.prop("disabled", !0)) : n.val().length > 0 && 1 === t.val().length ? (e.addClass("notActive"), void e.prop("disabled", !0)) : (e.removeClass("notActive"), void e.prop("disabled", !1))
- };
- o(), t.on("input", o), n.on("input", o)
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".page-forum .forum-watch").on("click", function() {
- var e = i(this).data("id"),
- t = document.getElementById("forum-watch" + e);
- i.post("/includes/ajax.inc.php?t=69", {
- topic_id: e,
- timestamp: Date()
- }, function(e) {
- var n = /Watching/,
- i = e.search(n);
- t.innerHTML = -1 != i ? '<img src="/images/watch_y.gif" title="You are watching this topic">' : '<img src="/images/watch_n.gif" title="You are not watching this topic">'
- })
- }), i(".page-forum .forum-ignore").on("click", function() {
- var e = i(this).data("id"),
- t = i(this).data("val"),
- n = "topicRow" + e;
- i.post("/includes/ajax.inc.php?t=1", {
- val: t,
- id: e,
- timestamp: Date()
- }, function(e) {
- i("#" + n).toggle()
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(28),
- o = window.$,
- r = window._,
- a = window.sVue;
- o(function() {
- function e(e) {
- return e.charAt(0).toUpperCase() + e.slice(1)
- }
- var t = {
- form: o("#featured-draft-form")
- };
- if (t.submitURL = t.form.data("url"), t.requestType = "edit" === t.form.data("post") ? "PUT" : "POST", o("#news-feature-file-list")[0]) {
- a.filter("escape", function(e) {
- return e.replace(/[ !"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~]/g, "\\$&")
- }), a.filter("default", function(e, t) {
- return e || t
- });
- var n = new a({
- el: "#news-feature-file-list",
- data: {
- images: [],
- thumbnail_index: -1
- },
- created: function() {
- var e = o("#news-feature-file-list").data("json");
- if (e) {
- this.images = e;
- for (var t = 0, n = this.images.length; t < n; t++)
- if (this.images[t].is_thumbnail) {
- this.thumbnail_index = t;
- break
- }
- }
- },
- computed: {},
- methods: {
- getThumbnailIndex: function() {
- return this.thumbnail_index
- },
- getImages: function() {
- return this.images
- },
- addImage: function(e) {
- this.images.unshift(e), this.thumbnail_index >= 0 && this.$nextTick(function() {
- this.thumbnail_index++
- })
- },
- deleteImage: function(e) {
- this.thumbnail_index == e && (this.thumbnail_index = -1), this.images.splice(e, 1)
- },
- selectObj: function(e) {
- var t = document.createRange();
- t.selectNodeContents(e.target);
- var n = window.getSelection();
- n.removeAllRanges(), n.addRange(t)
- },
- fancybox: function(e) {
- o(".large-image-box").remove(), o("body").append('<div class="large-image-box"><img src=""><p class="btn-close">X</p></div>');
- var t = e.target.dataset.name,
- n = new Image;
- n.onload = function() {
- o(".large-image-box").children("img").attr({
- src: t
- });
- var e = {},
- n = o(".large-image-box img").width(),
- i = o(".large-image-box img").height();
- n > i ? (e.width = n > 600 ? 600 : n, e.height = e.width * i / n) : (e.height = i > 400 ? 400 : i, e.width = e.height * n / i);
- var r = o(window).scrollTop(),
- a = (window.innerHeight - e.height - 24) / 2,
- s = (window.innerWidth - e.width - 24) / 2,
- c = {
- top: r + a,
- left: s
- };
- o(".large-image-box").css({
- top: c.top,
- left: c.left
- }), o(".large-image-box img").css({
- width: e.width,
- height: e.height
- }), o(document).on("click", function() {
- o(".large-image-box").remove(), o(document).off("click")
- })
- }, n.src = t, o(".large-image-box").on("click", function(e) {
- e.stopPropagation()
- }), o(".large-image-box .btn-close").on("click", function() {
- o(".large-image-box").remove(), o(document).off("click")
- })
- }
- }
- })
- }
- o(".btn-input-feature-image").on("click", function() {
- var e = o(this).data("id");
- o("#state-message-images").html(""), o("#feature-file-upload").addClass("loading");
- var t = o("file" === e ? "#feature-image-upload-by-file" : "#feature-image-upload-by-url"),
- i = new FormData;
- "file" === e ? i.append("form[image][file]", t.get(0).files[0]) : i.append("form[image][url]", t.val()), o.ajax({
- url: "/featured/images.json",
- type: "POST",
- data: i,
- dataType: "json",
- processData: !1,
- contentType: !1,
- success: function(i) {
- o("#feature-file-upload").removeClass("loading");
- var r = {
- file_id: i.image.id,
- filename: i.image.url,
- thumbnail_file_id: i.thumbnail.id,
- thumbnail: i.thumbnail.url,
- title: "",
- align: "",
- is_thumbnail: !1
- };
- n.addImage(r), "file" === e ? t.replaceWith(t.clone()) : t.val("")
- },
- error: function(e) {
- for (var t = o.parseJSON(e.responseText).errors, n = "", i = 0; i < t.length; i++) n += t[i].message + "<br>";
- o("#feature-file-upload").removeClass("loading"), o("#state-message-images").html('<span class="badresult-text pt8 di-ib">' + n + "</span>").show()
- },
- complete: function() {}
- })
- }), o(".news-feature-file-list-table-scroll")[0] && navigator.userAgent.indexOf("Mac") > 0 && o(".news-feature-file-list-table-scroll").width(750), o("#btn-draft-text-preview").on("click", function() {
- var e = o("#featured-draft-text-textarea #textarea-text").val(),
- t = o("#featured-draft-text-textarea"),
- n = o("#featured-draft-preview"),
- r = o("#featured-draft-text-preview");
- t.hide(), n.show(), o.ajax({
- url: "/preview/markdown.json",
- type: "POST",
- data: {
- body: e
- },
- dataType: "json",
- success: function(e) {
- r.html(e.body).url2embed(i.DEFAULT_URL2EMBED_OPTIONS)
- }
- })
- }), o("#btn-draft-text-edit").on("click", function() {
- o("#featured-draft-preview").hide(), o("#featured-draft-text-textarea").show()
- }), o("#featured-draft-text-preview").on("click", function() {
- o("#featured-draft-preview").hide(), o("#featured-draft-text-textarea").show()
- }), o("#btn-submit").on("click", function(i) {
- i.preventDefault(), o(".state-message").hide();
- var a = o("#btn-submit"),
- s = t.form;
- a.attr("disabled", !0);
- for (var c = n.getImages(), u = [], l = 0; l < c.length; l++) {
- var d = {
- file_id: parseInt(c[l].file_id),
- thumbnail_file_id: parseInt(c[l].thumbnail_file_id),
- title: c[l].title,
- is_thumbnail: n.getThumbnailIndex() == l
- };
- c[l].align && (d.align = c[l].align), u.push(d)
- }
- var f = function(e) {
- var t = [];
- return r.each(e, function(e) {
- t.push(parseInt(e))
- }), t
- },
- p = {
- images: u,
- anime_ids: s.find("#animeIds").val() ? f(s.find("#animeIds").val().split(",")) : [],
- manga_ids: s.find("#mangaIds").val() ? f(s.find("#mangaIds").val().split(",")) : [],
- person_ids: s.find("#peopleIds").val() ? f(s.find("#peopleIds").val().split(",")) : [],
- character_ids: s.find("#characterIds").val() ? f(s.find("#characterIds").val().split(",")) : [],
- tag_ids: s.find("#tagIds").val() ? f(s.find("#tagIds").val().split(",")) : [],
- is_spoiler: parseInt(s.find('input[name="is_spoiler"]:checked').val())
- },
- h = s.find("select#primaryRelation option:selected"),
- m = h.attr("name");
- m && (p.primary_relation_type = m, p.primary_relation_id = parseInt(h.val()));
- var v = s.find("#featured-draft-title").val(),
- g = s.find("#textarea-summary").val(),
- y = s.find("#textarea-text").val();
- v && (p.title = v), g && (p.summary = g), y && (p.body = y), s.find('input[name="status"]').exists() && (p.status = s.find('input[name="status"]:checked').val());
- var b = s.find("input[name=word_limit]:checked");
- if (b.exists() && (p.word_limit = +b.val()), s.find('input[name="article_configuration[is_advertorial]"]').exists() && (p.is_advertorial = parseInt(s.find('input[name="article_configuration[is_advertorial]"]:checked').val())), s.find('input[name="article_configuration[on_fbia_feed]"]').exists() && (p.on_fbia_feed = parseInt(s.find('input[name="article_configuration[on_fbia_feed]"]:checked').val())), s.find('input[name="article_configuration[has_contest]"]').exists() && (p.contest_expired_at = {}, p.has_contest = parseInt(s.find('input[name="article_configuration[has_contest]"]:checked').val())), r.each(["year", "month", "day"], function(e) {
- var t = s.find('select[name="article_configuration[contest_expired_at][' + e + ']"]');
- if (t.exists()) {
- var n = t.val();
- n && (p.contest_expired_at[e] = parseInt(n))
- }
- }), s.find('input[name="article_configuration[status]"]').exists() && (p.status = s.find('input[name="article_configuration[status]"]:checked').val()), s.find('input[name="article_configuration[is_scheduled]"]').exists() && (p.scheduled_at = {
- date: {},
- time: {}
- }, p.is_scheduled = parseInt(s.find('input[name="article_configuration[is_scheduled]"]:checked').val())), r.each([
- ["date", "year"],
- ["date", "month"],
- ["date", "day"],
- ["time", "hour"]
- ], function(e) {
- var t = s.find('select[name="article_configuration[scheduled_at][' + e[0] + "][" + e[1] + ']"]');
- if (t.exists()) {
- var n = t.val();
- n && (p.scheduled_at[e[0]][e[1]] = parseInt(n))
- }
- }), s.find('input[name="article_configuration[corner]"]').exists()) {
- var w = s.find('input[name="article_configuration[corner]"]:checked').val();
- p.corner_id = parseInt(w)
- }
- if (s.find('input[name="article_configuration[display_order]"]').exists()) {
- var _ = s.find('input[name="article_configuration[display_order]"]').val();
- "" !== _ && (p.display_order = parseInt(_))
- }
- o.ajax({
- url: t.submitURL,
- type: t.requestType,
- data: JSON.stringify(p),
- dataType: "json",
- timeout: 1e4,
- cache: !1,
- success: function(e) {
- "POST" === t.requestType && (t.submitURL = t.submitURL + "/" + e.digest, t.requestType = "PUT", window.history && window.history.pushState ? window.history.pushState(null, null, t.submitURL + "/edit") : location.href = t.submitURL), o("#state-message-finished").html('<span class="goodresult-text di-ib pt4">This document has been saved successfully.</span>').show()
- },
- error: function(t) {
- o("#state-message-finished").html('<span class="badresult-text di-ib pt4">Failed to save this draft, because some errors occurred.</span><br>').show();
- for (var n = o.parseJSON(t.responseText).errors, i = 0; i < n.length; i++) {
- var r = n[i].property;
- if (r)
- if (r.indexOf("images") > -1) {
- var a = r.split(".");
- o("#state-message-images-upload").html('<span class="badresult-text di-ib pt4">' + (a[1] ? e(a[1]) : "") + " " + n[i].message + ".</span><br>").show()
- } else o("#state-message-" + r).html('<span class="badresult-text di-ib pt4">' + n[i].message + "</span><br>").show();
- else o("#state-message-finished").append('<span class="badresult-text di-ib pt4">' + n[i].message + "</span><br>")
- }
- },
- complete: function() {
- a.attr("disabled", !1)
- }
- })
- }), o("#btn-delete").on("click", function() {
- window.confirm("Are you sure you want to delete this article?") && o.ajax({
- url: o(this).data("url"),
- type: "DELETE",
- dataType: "json",
- timeout: 1e4
- }).then(function(e) {
- var t = e.redirect_to;
- location.href = t
- }, function(e) {
- var t = o.parseJSON(e.responseText);
- o("#state-message-finished").append('<span class="badresult-text di-ib pt4">' + t.errors[0].message + "</span><br>")
- })
- }), o(".js-contest-region-rule").on("click", function(e) {
- var t = document.createRange();
- t.selectNodeContents(e.target);
- var n = window.getSelection();
- n.removeAllRanges(), n.addRange(t)
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-watch-anime a.link-image")[0] && i(".js-watch-anime a.link-image").each(function() {
- i(this).on("mouseover", function() {
- i(this).find(".btn-play").css({
- "background-color": "rgba(255,255,255,0.8)"
- })
- }).on("mouseout", function() {
- i(this).find(".btn-play").css({
- "background-color": "rgba(255,255,255,0)"
- })
- })
- }), i(".js-watch-anime .js-synopsis")[0] && i(".js-watch-anime .js-synopsis").on({
- mouseenter: function() {
- i(this).addClass("block-scroll")
- },
- mouseleave: function() {
- var e = i(this).width();
- i(this).removeClass("block-scroll").animate({
- width: e
- }, function() {
- i(this).width(e)
- })
- }
- }), i(".js-btn-hide-blocked-video")[0] && i(".js-btn-hide-blocked-video").on("click", function() {
- i(this).toggleClass("on"), i(".watch-anime-list.watch-video .video-block .video-list-outer-vertical.is_blocked").toggle()
- }), i(".js-video-list-episode")[0] && (i(".js-video-list-episode").on("click", function() {
- var e = i(this).data("url");
- location.href = e
- }), i(".js-video-list-episode .title").on("mouseover", function() {
- i(this).parents(".js-video-list-episode").css({
- opacity: 1
- })
- }).on("mouseout", function() {
- i(this).parents(".js-video-list-episode").css({
- opacity: ""
- })
- }));
- var e = function(e) {
- i(".js-watch-anime").each(function() {
- var e = new Image;
- e.src = i(this).find(".image").css("background-image").replace(/(url\(|\)|")/g, ""), e.width > e.height && i(this).find(".image").css({
- "background-size": "contain"
- })
- })
- };
- i(window).on("load", function() {
- i(".page-common.watch")[0] && e()
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- var e = function(e) {
- var e = e,
- t = 0;
- i.each(i(e), function() {
- var e = i(this).width() + 1;
- t = t < e ? e : t
- }), i(e).width(t)
- };
- i(".js-top-ranking-score-col")[0] && e(".js-top-ranking-score-col"), i(".js-top-ranking-your-score-col")[0] && e(".js-top-ranking-your-score-col")
- })
- }, function(module, exports, __webpack_require__) {
- "use strict";
- function _interopRequireDefault(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var _jsCookie = __webpack_require__(7),
- _jsCookie2 = _interopRequireDefault(_jsCookie),
- $ = window.$,
- _ = window._;
- $(function() {
- $(".js-toggle-review-button").exists() && $(".js-toggle-review-button").on("click", function(e) {
- var t = $(e.currentTarget).data("id"),
- n = $("#review" + t);
- n.toggle(), $(e.currentTarget).html(n.is(":visible") ? "show less" : "read more")
- }), $(".js-reviews-horiznav-nav-sort-block").exists() && function() {
- var e = $(".js-btn-show-sort"),
- t = $(".js-review-sort-order-block"),
- n = function() {
- e.toggleClass("on"), t.toggleClass("show")
- };
- t.css({
- left: e.position().left + e.width() - t.width(),
- top: e.height() + 8
- }), e.on("click", function() {
- n()
- }), t.find(".js-btn-close").on("click", function() {
- n()
- }), t.find(".js-reviews-btn-sort-order:not(.disabled)").on("click", function(e) {
- var t = $(e.currentTarget).attr("data-type");
- _jsCookie2.default.set("reviews_sort", t), window.location = window.location.pathname
- }), $(".js-reviews-chk-preliminary").on("click", function(e) {
- var t = $(e.currentTarget).hasClass("on") ? 1 : 0;
- _jsCookie2.default.set("reviews_inc_preliminary", 1 - t), window.location = window.location.pathname
- })
- }(), $(document).on("click", ".js-vote-review-button", function(e) {
- var t = $(e.currentTarget).data("id"),
- n = $(e.currentTarget).data("val");
- voteReview(t, n)
- });
- var voteReview = function voteReview(reviewId, value) {
- $("#revhelp_output_" + reviewId).html("Thanks! One moment please..."), $.post("/includes/ajax.inc.php?t=72", {
- id: reviewId,
- val: value
- }, function(data) {
- if ($("#revhelp_output_" + reviewId).html(data), 1 == value) {
- var helpfulVal = eval($("#rhelp" + reviewId).html());
- $("#rhelp" + reviewId).html(helpfulVal + 1)
- }
- var totalVal = eval($("#rtotal" + reviewId).html());
- $("#rtotal" + reviewId).html(totalVal + 1)
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(35),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window.sVue;
- r(function() {
- r(".js-toggle-recommendation-button").exists() && r(".js-toggle-recommendation-button").on("click", function() {
- var e = r(this).data("id"),
- t = r("#recommend" + e);
- t.toggle(), r(this).html(t.is(":visible") ? "show less" : "read more")
- }), r(".js-auto-recommendation").each(function() {
- var e = this.id,
- t = this.getAttribute("data-placement"),
- n = this.getAttribute("data-initial-data"),
- i = null,
- s = Math.round(this.offsetWidth / 131);
- new a({
- el: "#" + e,
- data: {
- width: 124,
- margin: 7,
- perPage: s,
- currentPage: 0,
- isFirstPage: !0,
- isLastPage: !1,
- isLoading: !0,
- recs: []
- },
- mounted: function() {
- var e = this,
- i = JSON.parse(n);
- null === i ? r.ajax({
- url: "auto_recommendation/personalized_suggestions.json",
- data: {
- placement: t
- },
- success: function(t) {
- e.recs = t, e.isLoading = !1
- }
- }) : (this.recs = i, this.isLoading = !1), window.addEventListener("resize", this.logImpressions), window.addEventListener("scroll", this.logImpressions)
- },
- updated: function() {
- this.logImpressions()
- },
- methods: {
- onClick: function(e) {
- this.logClick(e);
- var t = this.recs[e].path;
- location.href = t
- },
- onContextMenu: function(e) {
- this.logClick(e)
- },
- logImpressions: function() {
- var e = this;
- null === i && (i = window.setTimeout(function() {
- e.recs.length > 0 && function() {
- var t = [];
- e.$refs.recElements.forEach(function(n, i) {
- i >= e.currentPage * e.perPage && i < (e.currentPage + 1) * e.perPage && !e.recs[i].impressionLogged && o.default.isElementInViewport(n, .5) && (t.push(e.recs[i].bundle), e.recs[i].impressionLogged = !0)
- }), t.length > 0 && r.ajax({
- type: "POST",
- url: "auto_recommendation/log_impressions.json",
- data: JSON.stringify({
- bundles: t
- })
- })
- }(), window.clearTimeout(i), i = null
- }, 300))
- },
- logClick: function(e) {
- if (!this.recs[e].clickLogged) {
- this.recs[e].clickLogged = !0;
- var t = this.recs[e].bundle;
- r.ajax({
- type: "POST",
- url: "auto_recommendation/log_click.json",
- data: JSON.stringify({
- bundle: t
- })
- })
- }
- },
- scroll: function(e) {
- "left" === e && this.isFirstPage || "right" === e && this.isLastPage || (this.currentPage = this.currentPage + ("right" === e ? 1 : -1), this.isFirstPage = 0 === this.currentPage, this.isLastPage = this.currentPage === Math.ceil(this.recs.length / this.perPage) - 1, this.logImpressions())
- }
- }
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(7);
- i(function() {
- var e = i(".js-btn-view-style");
- e.exists() && e.on("click", function() {
- var e = i(this).attr("id");
- o.set("search_view", e), location.reload()
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(54),
- o = window.sVue,
- r = window._,
- a = window.$,
- s = window.MAL;
- a(function() {
- if (a("body.notification").exists()) {
- new o({
- mixins: [i.NotificationContainerMixin],
- el: a(".js-notification-main")[0],
- replace: !1,
- template: s.notification.templates.main,
- components: {
- "notification-list": {
- mixins: [i.NotificationListMixin],
- template: s.notification.templates.list,
- props: {
- isHistory: {
- type: Boolean,
- required: !0
- }
- },
- components: {
- "notification-item-friend-request": {
- mixins: [i.NotificationItemFriendRequestMixin],
- template: s.notification.templates.itemFriendRequest
- },
- "notification-item-friend-request-accept": {
- mixins: [i.NotificationItemFriendRequestAcceptMixin],
- template: s.notification.templates.itemFriendRequestAccept
- },
- "notification-item-friend-request-deny": {
- mixins: [i.NotificationItemFriendRequestDenyMixin],
- template: s.notification.templates.itemFriendRequestDeny
- },
- "notification-item-profile-comment": {
- mixins: [i.NotificationItemProfileCommentMixin],
- template: s.notification.templates.itemProfileComment
- },
- "notification-item-forum-quote": {
- mixins: [i.NotificationItemForumQuoteMixin],
- template: s.notification.templates.itemForumQuote
- },
- "notification-item-blog-comment": {
- mixins: [i.NotificationItemBlogCommentMixin],
- template: s.notification.templates.itemBlogComment
- },
- "notification-item-watched-topic-message": {
- mixins: [i.NotificationItemWatchedTopicMessageMixin],
- template: s.notification.templates.itemWatchedTopicMessage
- },
- "notification-item-club-mass-message-in-forum": {
- mixins: [i.NotificationItemClubMassMessageInForumMixin],
- template: s.notification.templates.itemClubMassMessageInForum
- },
- "notification-item-user-mention-in-forum-message": {
- mixins: [i.NotificationItemUserMentionMixin],
- template: s.notification.templates.itemUserMentionInForumMessage
- },
- "notification-item-user-mention-in-club-comment": {
- mixins: [i.NotificationItemUserMentionMixin],
- template: s.notification.templates.itemUserMentionInForumMessage
- },
- "notification-item-on-air": {
- mixins: [i.NotificationItemOnAirMixin],
- template: s.notification.templates.itemOnAir
- },
- "notification-item-related-anime-add": {
- mixins: [i.NotificationItemRelatedAnimeAddMixin],
- template: s.notification.templates.itemRelatedAnimeAdd
- },
- "notification-item-payment-stripe": {
- mixins: [i.NotificationItemPaymentStripeMixin],
- template: s.notification.templates.itemPaymentStripe
- }
- }
- }
- },
- created: function() {
- this.items = r.map(s.notification.items, i.createNotificationItem), this.historyItems = r.map(s.notification.historyItems, i.createNotificationItem)
- },
- events: {}
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- if (i(".js-settings-notification")[0]) {
- var e = function() {
- var e = i(".js-settings-notification .js-get-all-notifications input[type='checkbox']"),
- t = i(".js-settings-notification .js-get-all-emails input[type='checkbox']");
- i(".js-settings-notification .js-notification").each(function(t, n) {
- e.prop("checked") ? i(n).removeClass("off") : i(n).addClass("off")
- }), i(".js-settings-notification .js-email").each(function(n, o) {
- var r = i(o).siblings(".js-notification").find("input[type='checkbox']");
- e.prop("checked") && t.prop("checked") && (!r[0] || r.prop("checked")) ? i(o).removeClass("off") : i(o).addClass("off")
- }), e.prop("checked") ? i(".js-settings-notification .js-get-all-emails").removeClass("off") : i(".js-settings-notification .js-get-all-emails").addClass("off")
- };
- e(), i(".js-settings-notification input[type='checkbox']").on("change", e), i(".js-settings-notification input[type='checkbox']").on("click", function() {
- return !i(this).parent("td").hasClass("off")
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._;
- i(function() {
- i(".js-profile-reply-comment").on("click", function(t) {
- t.preventDefault();
- var n = i(t.currentTarget).data("comment"),
- o = i(t.currentTarget).data("user-id");
- e(n, o)
- }), i(".js-profile-user-comment").on("click", function(e) {
- e.preventDefault();
- var t = i("input[name=profileMemId]").val(),
- n = i("input[name=profileUsername]").val(),
- r = i("textarea[name=commentText]").val();
- i.post("/addcomment.php", {
- commentSubmit: 1,
- profileMemId: t,
- profileUsername: n,
- commentText: r,
- area: 2
- }).done(function(e) {
- var t = JSON.parse(e);
- if (t.error) {
- var r = i(".comment-form");
- if (r.children(".error-message").exists()) r.children(".error-message").val(t.message);
- else {
- var a = o.template('<div class="error-message"><%- errorMessage %></div>');
- r.append(i(a({
- errorMessage: t.message
- })))
- }
- } else window.location.href = "/profile/" + n + "#lastcomment", window.location.reload(!0)
- })
- }), i(".js-profile-delete-comment").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget).data("comment");
- u(t)
- }), i(".js-profile-edit-comment").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget).data("comment");
- s(t)
- });
- var e = function(e, n) {
- var o = i("#reply" + e);
- if (o.exists() && o.is(":visible")) return void o.hide();
- i.post("/addcomment.php", {
- canComment: 1,
- profileMemId: n,
- area: 2
- }).done(function(r) {
- r ? (o.hide(), i("#com" + e).append(r)) : t(e, n, "")
- })
- },
- t = function(e, t, r) {
- i("div[id^=reply]").hide();
- var a = void 0;
- if (i("#reply" + e).exists()) a = i("#reply" + e), i("#comreply" + e).val(r), a.show();
- else {
- var s = o.template('\n<div id="reply<%- comId %>" class="spaceit">\n <textarea id="comreply<%- comId %>" style="width: 712px; height: 100px;" class="textarea"><%- text %></textarea>\n <div class="spaceit">\n <input type="button" value="Submit Reply" class="inputButton btn-form-submit fs11 pt4 pb4 btn-profile-comment-reply js-btn-profile-comment-reply" data-comment="<%- comId %>" data-user-id="<%- profileMemId %>">\n </div>\n</div>\n ');
- a = i(s({
- comId: e,
- profileMemId: t,
- text: r
- })), i("#com" + e).append(a), a.ready(function() {
- i(".js-btn-profile-comment-reply").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget).data("comment"),
- o = i(e.currentTarget).data("user-id");
- n(t, o)
- })
- })
- }
- i("#comreply" + e).focus()
- },
- n = function(e, n) {
- var r = i("#com" + e);
- r.children(".loading").exists() ? r.children(".loading").show() : r.append('<img class="loading" src="/images/xmlhttp-loader.gif" />');
- var a = i("#comreply" + e).val();
- i("#reply" + e).hide(), i.post("/addcomment.php", {
- commentSubmit: 1,
- profileMemId: n,
- commentText: a,
- area: 2
- }).done(function(c) {
- i(".loading").remove();
- var u = JSON.parse(c);
- if (u.error)
- if (t(e, n, a), r.children(".error-message").exists()) r.children(".error-message").val(u.message);
- else {
- var l = o.template('<div class="error-message"><%- errorMessage %></div>');
- r.append(i(l({
- errorMessage: u.message
- })))
- }
- else {
- i(".error-message").remove(), i("#reply" + e).remove();
- var d = o.template('\n<div id="com<%- commentId %>" class="spaceit">\n <div class="spaceit"><strong><a href="/profile/<%- userName %>"><%- userName %></a></strong> | <small><%- createdAt %></small></div>\n <div id="comtext<%- commentId %>"><%= text %></div>\n <div class="spaceit"><a href="#" class="js-profile-edit-comment" data-comment="<%- commentId %>" title="Edit Comment">Edit</a></div>\n</div>\n '),
- f = i(d({
- commentId: u.commentId,
- userName: u.userName,
- createdAt: u.createdAt,
- text: u.text
- }));
- r.append(f), i(f).ready(function() {
- i(".js-profile-edit-comment").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget).data("comment");
- s(t)
- })
- })
- }
- })
- },
- r = void 0,
- a = void 0,
- s = function(e) {
- if (r === e) return i("#comtext" + e).html(a), r = !1, a = !1, !1;
- a = i("#comtext" + e).html(), r = e, i.post("/includes/ajax.inc.php?t=73", {
- id: e
- }).done(function(t) {
- var n = o.template('\n<textarea id="newcomtext<%- comId %>" style="width: 440px; height: 100px;" class="textarea"><%= data %></textarea>\n<div class="spaceit">\n <input type="button" value="Edit Reply" data-comment="<%- comId %>" class="inputButton js-btn-profile-comment-edit">\n</div>\n '),
- r = i(n({
- comId: e,
- data: t
- }));
- i("#comtext" + e).html(r), r.ready(function() {
- i(".js-btn-profile-comment-edit").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget).data("comment");
- c(t)
- })
- }), i("#newcomtext" + e).focus()
- })
- },
- c = function(e) {
- var t = i("#newcomtext" + e).val();
- i("#comtext" + e).html('<img src="/images/xmlhttp-loader.gif" />'), i.post("/includes/ajax.inc.php?t=74", {
- id: e,
- text: t
- }).done(function(t) {
- i("#comtext" + e).html(t), r = !1, a = !1
- })
- },
- u = function(e) {
- confirm("Are you sure you want to delete this comment?") && (i("#com" + e).html('<img src="/images/xmlhttp-loader.gif" />'), i.post("/includes/ajax.inc.php?t=78", {
- id: e
- }).done(function(t) {
- i("#comBox" + e).hide("slow")
- }))
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(139),
- r = function(e) {
- var t = e.find(".js-truncate-inner"),
- n = e.height(),
- o = t.height();
- if (n < o)
- if (0 === e.find(".js-btn-truncate").length) {
- e.append('<div class="btn-truncate js-btn-truncate"></div>'), e.find(".js-btn-truncate").fadeIn(), e.find(".js-btn-truncate").on("click", function() {
- var e = i.parseJSON(i(this).attr("data-height")),
- t = 2 * i(this).height(),
- n = i(this).parent(".js-truncate-outer");
- if (i(this).hasClass("open")) n.css({
- "max-height": e.outer,
- "padding-bottom": 0
- });
- else {
- n.find(".js-truncate-inner").height();
- i(this).parent(".js-truncate-outer").css({
- "max-height": e.inner,
- "padding-bottom": t
- }), n.on("oTransitionEnd mozTransitionEnd webkitTransitionEnd transitionend", function() {
- i(this).parent(".js-truncate-outer").css({
- "max-height": "inherit",
- "padding-bottom": t
- })
- })
- }
- i(this).toggleClass("open")
- })
- } else e.find(".js-btn-truncate").hasClass("open") && e.parent(".js-truncate-outer").css({
- "max-height": o
- });
- e.find(".js-btn-truncate").attr("data-height", '{"outer":' + n + ',"inner":' + o + "}")
- },
- a = function(e) {
- if (e.find(".js-truncate-inner img")[0])
- for (var t = e.find(".js-truncate-inner img"), n = t.length, o = 0; o < n; o++) ! function(n) {
- 0 === n && r(e), (t.eq(n).data("src") || t.eq(n).attr("src")) && t.eq(n).on("load", function() {
- var e = i(this).parents(".js-truncate-outer");
- if (n > 0) {
- var t = e,
- o = t.find(".js-truncate-inner"),
- a = o.height();
- t.find(".js-btn-truncate").attr("data-height", '{"outer":1000,"inner":' + a + "}"), t.find(".js-btn-truncate").hasClass("open") && t.css({
- "max-height": a
- })
- } else r(e)
- })
- }(o);
- else r(e)
- };
- i(function() {
- if (i(".js-profile-team-title")[0]) {
- var e = i(".js-profile-team-title").width();
- i(".js-profile-team-title").css({
- right: -1 * (e + 12)
- })
- }
- i("body.profile").length && (i(".profile .js-truncate-outer")[0] && i(".js-truncate-outer").each(function() {
- var e = i(this);
- a(e)
- }), i(".user-profile-about.js-truncate-outer .spoiler input.button")[0] && (i(".user-profile-about.js-truncate-outer .movie.youtube")[0] && i(".user-profile-about.js-truncate-outer .movie.youtube").each(function() {
- var e = i(this).attr("src");
- i(this).attr("src", e + "&wmode=opaque")
- }), i(".js-truncate-inner .spoiler input.button").on("click", function() {
- var e = i(".user-profile-about.js-truncate-outer");
- e.find(".js-btn-truncate");
- if (i(this).hasClass("show_button") || "Show spoiler" === i(this).val()) {
- var t = i(this).next(".spoiler_content"),
- n = t.height(),
- o = e.find(".js-truncate-inner").height() + n;
- o > 1e3 && (t.attr("data-spoiler", n), e.css({
- "max-height": o
- }), e.find(".js-btn-truncate").attr("data-height", '{"outer":1000,"inner":' + o + "}"))
- } else {
- var n = i(this).parent(".spoiler_content").attr("data-spoiler") || 0,
- o = e.css("max-height") || 0;
- o > 1e3 && n > 0 && e.css({
- "max-height": o - n
- })
- }
- })), i(".expand_quote")[0] && i(".expand_quote").on("click", function() {
- var e = i(".user-profile-about.js-truncate-outer"),
- t = (e.find(".js-btn-truncate"), i(this).next(".spoiler_content")),
- n = t.height(),
- o = e.find(".js-truncate-inner").height() + n;
- o > 1e3 && (t.attr("data-spoiler", n), e.css({
- "max-height": o
- }), e.find(".js-btn-truncate").attr("data-height", '{"outer":1000,"inner":' + o + "}"))
- }))
- }), i(window).on("load", function() {
- if (i("body.profile")[0]) {
- if ("firefox" === o().browser && (i(".profile .statistics-updates .image img").css({
- "image-rendering": "inherit"
- }), i(".profile .user-favorites .favorites-list .list .image").css({
- "image-rendering": "inherit"
- })), !i(".user-profile-about.js-truncate-outer .js-btn-truncate")[0]) {
- var e = i(".user-profile-about.js-truncate-outer");
- r(e)
- }
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(35),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = n(139);
- r(function() {
- r("#maSearchText")[0] && function() {
- var e = r("#maSearchText"),
- t = a(),
- n = !1,
- i = 0;
- 0 == t.browser.indexOf("ie") && (n = !0, i = parseInt(t.browser.split("ie")[1])), n && i <= 9 ? function() {
- var t = e.attr("placeholder");
- e.val(t), e.css("color", "#999"), e.focus(function() {
- r(this).val() == t && (r(this).val(""), r(this).css("color", "#000"))
- }).blur(function() {
- "" == r(this).val() && (r(this).val(t), e.css("color", "#999"))
- })
- }() : e.focus()
- }(), r(".js-quick-add-recs")[0] && (sVue.filter("delimiter", function(e) {
- return e.toLocaleString()
- }), sVue.filter("member_unit", function(e) {
- return e > 1 ? "members" : "member"
- }), r(".js-quick-add-recs").each(function() {
- var e = this.id,
- t = this.getAttribute("data-placement"),
- n = this.getAttribute("data-initial-data"),
- i = null;
- new sVue({
- el: "#" + e,
- data: {
- isLoading: !0,
- recs: []
- },
- mounted: function() {
- var e = this,
- i = JSON.parse(n);
- null === i ? r.ajax({
- url: "auto_recommendation/personalized_suggestions.json",
- data: {
- placement: t
- },
- success: function(t) {
- e.recs = t, e.isLoading = !1
- }
- }) : (this.recs = i, this.isLoading = !1), window.addEventListener("resize", this.logImpressions), window.addEventListener("scroll", this.logImpressions)
- },
- updated: function() {
- this.logImpressions()
- },
- methods: {
- onClick: function(e) {
- this.logClick(e)
- },
- onContextMenu: function(e) {
- this.logClick(e)
- },
- onAddClick: function(e) {
- this.logClick(e)
- },
- logImpressions: function() {
- var e = this;
- null === i && (i = window.setTimeout(function() {
- e.recs.length > 0 && function() {
- var t = [];
- e.$refs.recElements.forEach(function(n, i) {
- !e.recs[i].impressionLogged && o.default.isElementInViewport(n, .5) && (t.push(e.recs[i].bundle), e.recs[i].impressionLogged = !0)
- }), t.length > 0 && r.ajax({
- type: "POST",
- url: "auto_recommendation/log_impressions.json",
- data: JSON.stringify({
- bundles: t
- })
- })
- }(), window.clearTimeout(i), i = null
- }, 300))
- },
- logClick: function(e) {
- if (!this.recs[e].clickLogged) {
- this.recs[e].clickLogged = !0;
- var t = this.recs[e].bundle;
- r.ajax({
- type: "POST",
- url: "auto_recommendation/log_click.json",
- data: JSON.stringify({
- bundle: t
- })
- })
- }
- },
- scroll: function(e) {
- this.logImpressions()
- }
- }
- })
- }))
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i("a.js-link-scroll[href^='#']").on("click", function(e) {
- var t = e.currentTarget;
- i("a.js-link-scroll").removeClass("on"), i(t).addClass("on");
- var n = t.hash,
- o = i(n).offset().top;
- return i("html,body").animate({
- scrollTop: o - 10
- }), !1
- }), i("a.js-link-scroll[href^='#']:first-of-type").addClass("on")
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(209),
- o = window.sVue,
- r = window.$,
- a = window._;
- r(function() {
- function e() {
- if (!r("#loading-spinner").is(":visible") && !b && !p.tag) {
- r("#loading-spinner").show();
- var e = a.assign({
- offset: w
- }, p);
- r.ajax({
- method: "GET",
- url: v + "/load.json",
- data: e,
- dataType: "json",
- success: function(e) {
- 0 === e.length ? b = !0 : k.loadItems(e)
- },
- complete: function() {
- r("#loading-spinner").hide()
- }
- })
- }
- }
- function t(e, t, n) {
- var i = "/ownlist/" + g + "/edit.json",
- o = t;
- "anime" === g ? t.anime_id = parseInt(e.anime_id) : t.manga_id = parseInt(e.manga_id), t.status = parseInt(e.status), r.post(i, JSON.stringify(o), function(e) {
- var i = "anime" === g ? t.anime_id : t.manga_id;
- window.MAL.SNSFunc.postListUpdates(e, g, i, {
- onComplete: n
- })
- })
- }
- function n(e) {
- var n = {
- num_watched_episodes: e.num_watched_episodes
- },
- i = function() {
- t(e, n, function() {
- setTimeout(function() {
- f(e.num_watched_episodes, e.anime_id, 0)
- }, 400)
- })
- };
- e.num_watched_episodes === e.anime_num_episodes ? 2 === e.status ? c("Do you want to set this show as finished rewatching?", "Yes, I am done Rewatching", "Not Finished Rewatching", function(t) {
- t ? u(e.anime_id).always(function() {
- i()
- }) : i()
- }) : 2 === e.anime_airing_status && c("Do you want to set this entry as completed?", "Set as Completed", "Do not set as Completed", function(t) {
- t ? d(e.anime_id).always(function() {
- e.status = n.status = 2, i()
- }) : i()
- }) : 3 === e.status || 6 === e.status ? c("Move entry to watching?", "Set as Watching", "Do not Move", function(t) {
- t && (e.status = n.status = 1), i()
- }) : i()
- }
- function s(e) {
- var n = {
- num_read_chapters: e.num_read_chapters
- },
- i = function() {
- t(e, n, function() {
- setTimeout(function() {
- f(e.num_read_chapters, e.manga_id, e.id)
- }, 400)
- })
- };
- e.num_read_chapters === e.manga_num_chapters ? 2 === e.status ? c("Do you want to set this series as finished rereading?", "Yes, I am done Rereading", "Not Finished", function(t) {
- t ? l(e.manga_id).always(function() {
- i()
- }) : i()
- }) : c("Do you want to set this entry as completed?", "Set as Completed", "Do not set as Completed", function(t) {
- t ? d(e.manga_id).always(function() {
- e.status = n.status = 2, i()
- }) : i()
- }) : 3 === e.status || 6 === e.status ? c("Move entry to reading?", "Set as Reading", "Do not Move", function(t) {
- t && (e.status = n.status = 1), i()
- }) : i()
- }
- function c(e, t, n, i) {
- var o = !1;
- r.fancybox({
- content: '<div style="width: 300px;font-family: verdana, arial; font-size: 11px; text-align: center;">' + e + '<div style="margin-top: 5px;"><input type="button" id="fancybox-confirm-yes-button" value="' + t + '"> <input type="button" id="fancybox-confirm-no-button" value="' + n + '"></div></div>',
- autoScale: !0,
- onComplete: function() {
- r("#fancybox-confirm-yes-button").on("click", function() {
- o = !0, r.fancybox.close()
- }), r("#fancybox-confirm-no-button").on("click", function() {
- o = !1, r.fancybox.close()
- })
- },
- onClosed: function() {
- i(o)
- }
- })
- }
- function u(e) {
- return r.post("/includes/ajax.inc.php?t=59", {
- aid: e
- })
- }
- function l(e) {
- return r.post("/includes/ajax.inc.php?t=81", {
- mid: e
- })
- }
- function d(e) {
- return r.post("/includes/ajax.inc.php?t=18", {
- aid: e
- })
- }
- function f(e, t, n) {
- var i = void 0,
- o = void 0;
- "anime" === g ? (i = "/includes/ajax.inc.php?t=50", o = {
- epNum: e,
- aid: t,
- id: n
- }) : (i = "/includes/ajax.inc.php?t=55", o = {
- chap: e,
- mid: t,
- id: n
- }), r.post(i, o, function(e) {
- e.indexOf("true") >= 0 && r.fancybox({
- content: '<div style="font-family: verdana, arial; font-size: 11px; text-align: center;">' + e + "</div>",
- autoScale: !0,
- autoDimensions: !0
- })
- })
- }
- if (r("body").hasClass("ownlist") && r(".list-table").exists()) {
- window.MAL.SNSFunc.initializeFacebook();
- var p = r("body").data("query"),
- h = r("body").data("owner"),
- m = r("body").data("owner-id"),
- v = r("body").data("owner-name"),
- g = "anime" === r("body").data("work") ? "anime" : "manga",
- y = null,
- b = !1,
- w = 0,
- _ = [],
- x = void 0,
- k = new o({
- el: ".list-table",
- data: {
- canEdit: h,
- items: [],
- classObject: {
- "edit-disabled": !h
- }
- },
- methods: {
- loadItems: function(e) {
- var t = this;
- if (w += e.length, a.map(e, function(e) {
- e.tags = String(e.tags), e.isScoreInEdit = !1, e.isTagInEdit = !1, "anime" === g ? e.isEpisodeInEdit = !1 : (e.isChapterInEdit = !1, e.isVolumeInEdit = !1)
- }), Array.prototype.push.apply(_, e), !x) {
- var n = function() {
- o.set(t, "items", t.items.concat(_.splice(0, 150))), 0 === _.length && (clearTimeout(x), x = null)
- };
- x = setInterval(n, 150), n()
- }
- },
- showMore: function(e) {
- var t = "anime" === g ? e.anime_id : e.manga_id,
- n = r("#more-" + t);
- if (n.is(":visible")) n.hide();
- else {
- n.find(".more-content").find("table").exists() ? n.show() : r.post("/includes/ajax-no-auth.inc.php?t=6", {
- color: 1,
- id: t,
- memId: m,
- type: g
- }, function(e) {
- n.find(".more-content").html(e.html), n.show()
- }, "json")
- }
- },
- editScore: function(e) {
- e.isScoreInEdit = !1, e.score = parseInt(e.score), t(e, {
- score: e.score
- })
- },
- editEpisode: function(e) {
- e.isEpisodeInEdit = !1, e.num_watched_episodes = Math.max(parseInt(e.num_watched_episodes), 0), e.anime_num_episodes > 0 && e.anime_num_episodes < e.num_watched_episodes && (e.num_watched_episodes = parseInt(e.anime_num_episodes)), n(e)
- },
- editChapter: function(e) {
- e.isChapterInEdit = !1, e.num_read_chapters = Math.max(parseInt(e.num_read_chapters), 0), e.manga_num_chapters > 0 && e.manga_num_chapters < e.num_read_chapters && (e.num_read_chapters = parseInt(e.manga_num_chapters)), s(e)
- },
- editVolume: function(e) {
- e.isVolumeInEdit = !1, e.num_read_volumes = Math.max(parseInt(e.num_read_volumes), 0), e.manga_num_volumes > 0 && e.manga_num_volumes < e.num_read_volumes && (e.num_read_volumes = parseInt(e.manga_num_volumes)), t(e, {
- num_read_volumes: e.num_read_volumes
- })
- },
- editTag: function(e) {
- e.isTagInEdit = !1, t(e, {
- tags: e.tags
- })
- },
- incrementEpisode: function(e) {
- e.num_watched_episodes += 1, this.editEpisode(e)
- },
- incrementChapter: function(e) {
- e.num_read_chapters += 1, this.editChapter(e)
- },
- incrementVolume: function(e) {
- e.num_read_volumes += 1, this.editVolume(e)
- },
- generateTagPath: function(e) {
- var t = {
- status: p.status,
- tag: e
- };
- return p.preview && (t.preview = p.preview), "?" + r.param(t)
- },
- generateProducerPath: function(e) {
- return "/anime/producer/" + e
- },
- generateSeasonPath: function(e, t) {
- return "/anime/season/" + e + "/" + t.toLowerCase()
- },
- generateMagazinePath: function(e) {
- return "/manga/magazine/" + e
- },
- getIsCompleted: function(e) {
- return "anime" === g ? 2 === e.status && 1 !== e.is_rewatching : 2 === e.status && 1 !== e.is_rereading
- },
- getStatusClass: function(e) {
- switch (parseInt(e.status)) {
- case 1:
- return "anime" === g ? "watching" : "reading";
- case 2:
- return "completed";
- case 3:
- return "onhold";
- case 4:
- return "dropped";
- case 6:
- return "anime" === g ? "plantowatch" : "plantoread"
- }
- },
- getContentStatusText: function(e) {
- if ("anime" === g) {
- if (1 === e.anime_airing_status) return "Airing";
- if (3 === e.anime_airing_status) return "Not Yet Aired"
- } else {
- if (1 === e.manga_publishing_status) return "Publishing";
- if (3 === e.manga_publishing_status) return "Not Yet Published"
- }
- },
- getParsedTags: function(e) {
- return a.filter(a.map(e.tags.split(","), function(e) {
- return e.trim()
- }), function(e) {
- return "" !== e
- })
- },
- editTransition: function(e) {
- e.focus()
- }
- },
- created: function() {
- r(".list-item").show(), this.loadItems(r(".list-table").data("items"))
- }
- }),
- j = function() {
- r("#advanced-options").hide(), r("#fancybox-overlay").hide()
- },
- C = function() {
- if (y) r("#advanced-options").show();
- else {
- var e = "/ownlist/" + g + "/advanced_options.json";
- r.get(e, function(e) {
- var t = a.map(a.range((new Date).getFullYear(), e.min_year - 1, -1), function(e) {
- return {
- value: e,
- text: e
- }
- }),
- n = a.map(a.range(1, 13), function(e) {
- return {
- value: e,
- text: e
- }
- }),
- s = a.map(a.range(1, 32), function(e) {
- return {
- value: e,
- text: e
- }
- });
- t.unshift({
- value: 0,
- text: "-"
- }), n.unshift({
- value: 0,
- text: "-"
- }), s.unshift({
- value: 0,
- text: "-"
- });
- var c = void 0;
- c = "anime" === g ? {
- title: new i.CommonOption("", null, "s", p),
- airingStatus: new i.CommonOption(0, e.airing_status, "airing_status", p),
- producer: new i.CommonOption(0, e.producer, "producer", p),
- airedDate: new i.DateRangeOption({
- year: t,
- month: n,
- day: s
- }, "aired", p),
- season: new i.SeasonOption({
- year: t,
- season: e.seasons
- }, p),
- sortFirst: new i.SortOption(e.sort, "order", p),
- sortSecond: new i.SortOption(e.sort, "order2", p)
- } : {
- title: new i.CommonOption("", null, "s", p),
- publishingStatus: new i.CommonOption(0, e.publishing_status, "publishing_status", p),
- magazine: new i.CommonOption(0, e.magazine, "magazine", p),
- publishedDate: new i.DateRangeOption({
- year: t,
- month: n,
- day: s
- }, "published", p),
- sortFirst: new i.SortOption(e.sort, "order", p),
- sortSecond: new i.SortOption(e.sort, "order2", p)
- }, y = new o({
- el: "#advanced-options",
- data: c,
- methods: {
- applyFilter: function() {
- location.href = "?" + r.param(this.createQuery())
- },
- clearFilter: function() {
- for (var e in this.$data) this.$data[e].resetToDefault()
- },
- createQuery: function() {
- var e = {};
- for (var t in this.$data) e = this.$data[t].toGETParam(e);
- return 0 === a.without(Object.keys(e), "order", "order2").length && (e.status = p.status), p.hasOwnProperty("preview") && (e.preview = p.preview), e
- },
- closeAdvancedOptions: function() {
- j()
- }
- },
- created: function() {
- r("#advanced-options").show()
- }
- })
- })
- }
- };
- ! function() {
- var t = r("#status-menu"),
- n = t.offset().top;
- r("#cover-image").on("load", function() {
- n = t.offset().top
- }), r(window).on("scroll", function() {
- r(window).scrollTop() > n ? t.addClass("fixed") : t.removeClass("fixed"), r(window).scrollTop() > r(document).height() - 1.5 * window.innerHeight && e()
- }), r("table.list-table, .list-menu-float").on("mouseenter", ".List_LightBox", function() {
- r(this).fancybox({
- width: 980,
- height: "85%",
- autoScale: !0,
- autoDimensions: !0,
- transitionIn: "none",
- transitionOut: "none",
- type: "iframe"
- })
- }), r("#header-menu-button").on("click", function() {
- r("#header-menu-dropdown").toggle()
- }), r("#advanced-options-button").on("click", function() {
- C();
- var e = r("#fancybox-overlay");
- e.show().css({
- opacity: .3,
- "background-color": "#666666"
- }), e.on("click", j)
- }), r("#search-button").on("click", function() {
- r("#search-box").toggleClass("open").find("input").focus()
- }), r("#search-box input").on("keydown", function(e) {
- if (13 === e.which) {
- var t = r(this).val();
- if ("" !== t) {
- var n = {
- s: t
- };
- p.preview && (n.preview = p.preview), location.href = "?" + r.param(n)
- }
- }
- }).on("focusout", function() {
- r("#search-box").removeClass("open")
- }), r("#show-stats-button").on("click", function() {
- var e = r(".list-stats");
- e.is(":visible") ? e.slideUp(100) : e.slideDown(100)
- }), r("#loading-spinner").hide()
- }(), window.notthisseries = function(e) {
- r.post("/includes/ajax.inc.php?t=53", {
- id: e
- }, function() {
- r.fancybox.close()
- })
- }, window.dontAsk = function() {
- r.post("/includes/ajax.inc.php?t=51", {
- y: 1
- }, function() {
- r.fancybox.close()
- })
- }, window.manga_notthisseries = function(e) {
- r.post("/includes/ajax.inc.php?t=56", {
- id: e
- }, function() {
- r.fancybox.close()
- })
- }, window.manga_dontAsk = function() {
- r.post("/includes/ajax.inc.php?t=71", {
- y: 1
- }, function() {
- r.fancybox.close()
- })
- }
- }
- })
- }, function(e, t, n) {
- "use strict";
- function i(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
- }
- var o = function() {
- function e(e, t) {
- for (var n = 0; n < t.length; n++) {
- var i = t[n];
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i)
- }
- }
- return function(t, n, i) {
- return n && e(t.prototype, n), i && e(t, i), t
- }
- }(),
- r = (window.$, window._),
- a = function() {
- function e(t, n, o, r) {
- i(this, e), this.default = this.current = t, this.options = n, this.queryName = o, this.fromGETParam(r)
- }
- return o(e, [{
- key: "fromGETParam",
- value: function(e) {
- e[this.queryName] && (this.current = e[this.queryName])
- }
- }, {
- key: "toGETParam",
- value: function(e) {
- return this.current && (e[this.queryName] = this.current), e
- }
- }, {
- key: "resetToDefault",
- value: function() {
- this.current = this.default
- }
- }]), e
- }(),
- s = function() {
- function e(t, n, o) {
- i(this, e), this.default = this.current = {
- from: {
- year: 0,
- month: 0,
- day: 0
- },
- to: {
- year: 0,
- month: 0,
- day: 0
- }
- }, this.options = t, this.querySuffix = n, this.fromGETParam(o)
- }
- return o(e, [{
- key: "fromGETParam",
- value: function(e) {
- var t = this;
- r.each(["from", "to"], function(n) {
- r.each(["year", "month", "day"], function(i) {
- var o = e[t.querySuffix + "_" + n + "_" + i];
- o && (t.current[n][i] = o)
- })
- })
- }
- }, {
- key: "toGETParam",
- value: function(e) {
- var t = this;
- return r.each(["from", "to"], function(n) {
- r.every(["year", "month", "day"], function(i) {
- return !!t.current[n][i] && (e[t.querySuffix + "_" + n + "_" + i] = t.current[n][i], !0)
- })
- }), e
- }
- }, {
- key: "resetToDefault",
- value: function() {
- var e = this;
- r.each(["from", "to"], function(t) {
- r.each(["year", "month", "day"], function(n) {
- e.current[t][n] = 0
- })
- })
- }
- }]), e
- }(),
- c = function() {
- function e(t, n) {
- i(this, e), this.default = this.current = {
- year: 0,
- season: "winter"
- }, this.options = t, this.fromGETParam(n)
- }
- return o(e, [{
- key: "fromGETParam",
- value: function(e) {
- e.season_year && (this.current.year = e.season_year), e.season && (this.current.season = e.season)
- }
- }, {
- key: "toGETParam",
- value: function(e) {
- return this.current.year && this.current.season && (e.season_year = this.current.year, e.season = this.current.season), e
- }
- }, {
- key: "resetToDefault",
- value: function() {
- this.current.year = 0, this.current.season = "winter"
- }
- }]), e
- }(),
- u = function() {
- function e(t, n, o) {
- i(this, e), this.default = this.current = {
- value: 0,
- dir: "asc"
- }, this.options = t, this.queryName = n, this.fromGETParam(o)
- }
- return o(e, [{
- key: "getOrderId",
- value: function() {
- var e = this,
- t = r.find(this.options, function(t) {
- return t.value == e.current.value
- });
- return t ? t[this.current.dir] : 0
- }
- }, {
- key: "fromGETParam",
- value: function(e) {
- var t = this;
- e[this.queryName] && function() {
- var n = e[t.queryName],
- i = r.find(t.options, function(e) {
- return e.asc == n || e.desc == n
- });
- t.current.value = i.value, i.asc == n ? t.current.dir = "asc" : t.current.dir = "desc"
- }()
- }
- }, {
- key: "toGETParam",
- value: function(e) {
- var t = this.getOrderId();
- return t && (e[this.queryName] = t), e
- }
- }, {
- key: "resetToDefault",
- value: function() {
- this.current.value = 0, this.current.dir = "asc"
- }
- }]), e
- }();
- e.exports = {
- CommonOption: a,
- DateRangeOption: s,
- SeasonOption: c,
- SortOption: u
- }
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i("body").hasClass("ownlist_style") && function() {
- var e = i("#old-style"),
- t = i("#new-style"),
- n = (i("#theme-setting"), i(".js-theme-input"));
- i("input[name='style_edit[is_new]']:radio").on("change", function(o) {
- "1" === i(o.currentTarget).val() ? (t.show(), n.prop("disabled", !1), e.hide()) : (e.show(), t.hide(), n.prop("disabled", !0))
- });
- var o = function() {
- i("input.js-theme-input[type=radio]").parents(".new-theme-unit").removeClass("selected"), i("input.js-theme-input[type=radio]:checked").parents(".new-theme-unit").addClass("selected")
- };
- i("input.js-theme-input[type=radio]").on("change", function() {
- o()
- }), o()
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(7);
- i(function() {
- i("body").hasClass("ownlist_anime_update") && function() {
- var e = function(e) {
- i("#show-advanced-button").toggle(!e), i("#hide-advanced-button").toggle(e), i("table.advanced").toggle(e), i("#top-submit-buttons").toggle(e)
- },
- t = function(e) {
- if (null === e) {
- var t = i("#unknown_end").prop("checked");
- i("#add_anime_finish_date_month").prop("disabled", t), i("#add_anime_finish_date_year").prop("disabled", t), i("#add_anime_finish_date_day").prop("disabled", t), i("#unknown_end").prop("checked", t)
- } else i("#add_anime_finish_date_month").prop("disabled", !e), i("#add_anime_finish_date_year").prop("disabled", !e), i("#add_anime_finish_date_day").prop("disabled", !e), i("#unknown_end").prop("checked", !e)
- },
- n = function(e) {
- if (null === e) {
- var t = i("#unknown_start").prop("checked");
- i("#add_anime_start_date_month").prop("disabled", t), i("#add_anime_start_date_year").prop("disabled", t), i("#add_anime_start_date_day").prop("disabled", t), i("#unknown_start").prop("checked", t)
- } else i("#add_anime_start_date_month").prop("disabled", !e), i("#add_anime_start_date_year").prop("disabled", !e), i("#add_anime_start_date_day").prop("disabled", !e), i("#unknown_start").prop("checked", !e)
- },
- r = function(e) {
- var t = new Date,
- n = t.getFullYear(),
- o = t.getMonth() + 1,
- r = t.getDate();
- e ? i("#add_anime_start_date_month").prop("disabled") || (i("#add_anime_start_date_month").val(o), i("#add_anime_start_date_year").val(n), i("#add_anime_start_date_day").val(r)) : i("#add_anime_finish_date_month").prop("disabled") || (i("#add_anime_finish_date_month").val(o), i("#add_anime_finish_date_year").val(n), i("#add_anime_finish_date_day").val(r))
- },
- a = function() {
- i("#search_result").show().html('<div class="normal_header">Search Results</div><img src="/images/xmlhttp-loader.gif" />');
- var e = document.getElementById("queryTitle").value;
- i.get("/includes/masearch.inc.php?b=" + e, function(e) {
- i("#search_result").show().html(e)
- })
- };
- i("#advanced-button").on("click", function(t) {
- var n = i("#show-advanced-button:visible").exists();
- e(n), o.set("anime_update_advanced", n ? 1 : 0, {
- expires: 365
- })
- }), e(1 == o.get("anime_update_advanced") ? !0 : !1), 2 == i("#add_anime_status").val() && i("#rewatching_span").show(), i("#edit_another_link").on("click", function() {
- var e = "/animelist/" + i(this).data("username");
- window.parent.location.pathname != e ? location.href = e : window.parent.location.href = e
- }), window.chooseAnime = function(e, t, n) {
- i("#anime_id").val(e), i("#anime_num_episodes").val(t), i("#anime_airing_status").val(n), i("#search_result").hide(), i("#search_field").hide(), i("#totalEpisodes").html(t), i("#selected_field").show().html('<strong><a href="">' + document.getElementById("maAnimeTitle" + e).innerHTML + '</a></strong> <small><a href="javascript:void(0);" onclick="cancelSelection();">Cancel</a></small>')
- }, window.cancelSelection = function() {
- i("#selected_field").hide(), i("#search_result").html(""), i("#search_field").show()
- }, i(".main_submit").on("click", function() {
- return i("#anime_id").val() ? 0 == i("#add_anime_status").val() ? void alert("You must select a status (watching, completed, etc...) for this series.") : void i("#main-form").submit() : void alert("You did not select an anime title from the Anime Database.")
- }), i(".delete_submit").on("click", function() {
- confirm("Are you sure you want to delete this series?") && i("#delete-form").submit()
- }), i("#queryTitle").on("keypress", function(e) {
- if (13 === e.which) return a(), !1
- }), i("#search_submit").on("click", a), i("#increment_episode").on("click", function() {
- var e = parseInt(i("#add_anime_num_watched_episodes").val()) || 0;
- i("#add_anime_num_watched_episodes").val(e + 1)
- }), i("#unknown_start").on("click", function() {
- n(null)
- }), i("#unknown_end").on("click", function() {
- t(null)
- }), i("#start_date_insert_today").on("click", function() {
- r(!0)
- }), i("#end_date_insert_today").on("click", function() {
- r(!1)
- }), i("#add_anime_is_rewatching").on("click", function() {
- i(this).prop("checked") ? i("#add_anime_num_watched_episodes").val(1) : i("#add_anime_num_watched_episodes").val(i("#totalEpisodes").html())
- }), i("#add_anime_storage_type").on("change", function() {
- var e = i("#storage_div"),
- t = i("#storage_description"),
- n = i("#add_anime_storage_type").val(),
- o = i("#add_anime_storage_value");
- 2 == n ? (e.show(), t.html("DVD's"), o.focus()) : 5 == n ? (e.show(), t.html("VHS tapes"), o.focus()) : 4 == n ? (e.show(), t.html("retail DVD's"), o.focus()) : 6 == n || 1 == n || 7 == n ? (e.show(), t.html("drive space (GB)"), o.focus()) : 8 == n ? (e.show(), t.html("Blu-ray's"), o.focus()) : e.hide()
- }), i("#add_anime_status").on("change", function() {
- var e = i("#anime_id").val(),
- o = i("#add_anime_status").val(),
- r = i("#anime_airing_status").val(),
- a = i("#anime_num_episodes").val();
- if (!e && (2 == o || 1 == o)) return alert("You haven't chosen an anime and thus you may not choose Watching or Completed yet."), i("#add_anime_status").val(null), !1;
- if (1 == r) {
- if (2 == o) return alert("This anime is still airing, you cannot mark it as completed."), i("#add_anime_status").val(0), !1
- } else if (3 == r && 6 != o) return alert("This anime has not aired yet, you cannot mark it as anything but Plan to Watch"), i("#add_anime_status").val(4), !1;
- 2 != o ? (6 == o && n(!1), t(!1), i("#rewatching_span").hide()) : (0 != e && i("#add_anime_num_watched_episodes").val(a), n(!0), t(!0), i("#rewatching_span").show())
- }), i("#add_anime_storage_type").trigger("change"), 2 == i("#add_anime_status").val() && i("#rewatching_span").show()
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(7);
- i(function() {
- i("body").hasClass("ownlist_manga_update") && function() {
- var e = function(e) {
- i("#show-advanced-button").toggle(!e), i("#hide-advanced-button").toggle(e), i("table.advanced").toggle(e), i("#top-submit-buttons").toggle(e)
- },
- t = function(e) {
- if (null === e) {
- var t = i("#unknown_end").prop("checked");
- i("#add_manga_finish_date_month").prop("disabled", t), i("#add_manga_finish_date_year").prop("disabled", t), i("#add_manga_finish_date_day").prop("disabled", t), i("#unknown_end").prop("checked", t)
- } else i("#add_manga_finish_date_month").prop("disabled", !e), i("#add_manga_finish_date_year").prop("disabled", !e), i("#add_manga_finish_date_day").prop("disabled", !e), i("#unknown_end").prop("checked", !e)
- },
- n = function(e) {
- if (null === e) {
- var t = i("#unknown_start").prop("checked");
- i("#add_manga_start_date_month").prop("disabled", t), i("#add_manga_start_date_year").prop("disabled", t), i("#add_manga_start_date_day").prop("disabled", t), i("#unknown_start").prop("checked", t)
- } else i("#add_manga_start_date_month").prop("disabled", !e), i("#add_manga_start_date_year").prop("disabled", !e), i("#add_manga_start_date_day").prop("disabled", !e), i("#unknown_start").prop("checked", !e)
- },
- r = function(e) {
- var t = new Date,
- n = t.getFullYear(),
- o = t.getMonth() + 1,
- r = t.getDate();
- e ? i("#add_manga_start_date_month").prop("disabled") || (i("#add_manga_start_date_month").val(o), i("#add_manga_start_date_year").val(n), i("#add_manga_start_date_day").val(r)) : i("#add_manga_finish_date_month").prop("disabled") || (i("#add_manga_finish_date_month").val(o), i("#add_manga_finish_date_year").val(n), i("#add_manga_finish_date_day").val(r))
- },
- a = function() {
- i("#search_result").show().html('<div class="normal_header">Search Results</div><img src="/images/xmlhttp-loader.gif">');
- var e = i("#queryTitle").val();
- i.get("/includes/masearch.inc.php?m=" + e, function(e) {
- i("#search_result").show().html('<div class="normal_header">Search Results</div>' + e)
- })
- };
- i("#advanced-button").on("click", function(t) {
- var n = i("#show-advanced-button:visible").exists();
- e(n), o.set("manga_update_advanced", n ? 1 : 0, {
- expires: 365
- })
- }), e(1 == o.get("manga_update_advanced") ? !0 : !1), i("#edit_another_link").on("click", function() {
- var e = "/mangalist/" + i(this).data("username");
- window.parent.location.pathname != e ? location.href = e : window.parent.location.href = e
- }), window.chooseManga = function(e, t, n) {
- i("#manga_id").val(e), i("#volumes").val(t), i("#mstatus").val(n), i("#search_result").hide(), i("#search_field").hide(), i("#selected_field").show().html("<strong>" + document.getElementById("mangaTitle" + e).innerHTML + '</strong> <small><a href="javascript:void(0);" onclick="cancelSelection();">Cancel</a></small>')
- }, window.cancelSelection = function() {
- i("#selected_field").hide(), i("#search_result").html(""), i("#search_field").show()
- }, i(".main_submit").on("click", function() {
- return i("#manga_id").val() ? 0 == i("#add_manga_status").val() ? void alert("You must select a status (reading, completed, etc...) for this manga.") : void i("#main-form").submit() : void alert("You did not select a manga title from the Manga Database.")
- }), i(".delete_submit").on("click", function() {
- confirm("Are you sure you want to delete this manga?") && i("#delete-form").submit()
- }), i("#queryTitle").on("keypress", function(e) {
- if (13 === e.which) return a(), !1
- }), i("#search_submit").on("click", a), i("#increment_chapter").on("click", function() {
- var e = parseInt(i("#add_manga_num_read_chapters").val()) || 0;
- i("#add_manga_num_read_chapters").val(e + 1)
- }), i("#increment_volume").on("click", function() {
- var e = parseInt(i("#add_manga_num_read_volumes").val()) || 0;
- i("#add_manga_num_read_volumes").val(e + 1)
- }), i("#unknown_start").on("click", function() {
- n(null)
- }), i("#unknown_end").on("click", function() {
- t(null)
- }), i("#start_date_insert_today").on("click", function() {
- r(!0)
- }), i("#end_date_insert_today").on("click", function() {
- r(!1)
- }), i("#add_manga_storage_type").on("change", function() {
- var e = i("#storage_div");
- 4 == i("#add_manga_storage_type").val() ? e.show() : e.hide()
- }), i("#add_manga_status").on("change", function() {
- if (2 == i(this).val()) {
- var e = i("#totalChap").text(),
- n = i("#totalVol").text();
- "?" != e && i("#add_manga_num_read_chapters").val(e), "?" != n && i("#add_manga_num_read_volumes").val(n), t(!0), i("#rereading_span").show()
- } else t(!1), i("#rereading_span").hide()
- }), i("#add_manga_storage_type").trigger("change"), 2 == i("#add_manga_status").val() && i("#rereading_span").show()
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- if (i(".js-faq-img").fancybox(), i(".membership .js-btn-plan")[0]) {
- i(".membership .js-btn-plan").on("click", function() {
- var e = i(this).find(".js-plan-payment").text(),
- t = i(this).data("name");
- i(".membership .js-text-payment-notice-plan").text(t), i(".membership .js-text-payment-notice").text(e)
- })
- }
- if (i(".membership .js-supporter-policy")[0] && function() {
- var e = i(".membership .js-supporter-policy"),
- t = !1,
- n = !1;
- i('.membership .js-membership-payment-creditcard input[type="number"].input-text').on("keyup", function() {
- i(this).val().length > i(this).attr("maxlength") && i(this).val(i(this).val().slice(0, i(this).attr("maxlength")));
- for (var e = i('.membership .js-membership-payment-creditcard input[type="number"].input-text').map(function() {
- return i(this).val()
- }).get(), r = 0; r < e.length; r++) {
- if (!e[r]) {
- n = !1;
- break
- }
- n = !0
- }
- o(t, n)
- }), e.on("click", function() {
- t = e.prop("checked"), o(t, n)
- });
- var o = function(e, t) {
- e && t ? i(".membership .js-btn-form-submit").prop("disabled", !1) : i(".membership .js-btn-form-submit").prop("disabled", !0)
- }
- }(), i(".membership .js-upsert-creditcard") && function() {
- var e = i(".js-badresult"),
- t = i(".js-badresult-text"),
- n = i(".js-payment-submit-block");
- e.hide(), i(".js-btn-form-submit").on("click", function(t) {
- t.preventDefault(), i(".membership .js-btn-form-submit").prop("disabled", !0);
- var o = i('input[name="plan"]:checked').val(),
- s = i(".js-supporter-policy").val(),
- c = i(".js-creditcard").val(),
- u = i(".js-exp-month").val(),
- l = i(".js-exp-year").val(),
- d = i(".js-code").val();
- e.hide(), n.addClass("payment-loader"), window.MAL.stripe.createToken(c, u, l, d, function(t, c) {
- return 200 !== t ? void a(c) : c.id ? void i.ajax({
- url: "/account/membership/payment/stripe",
- method: "POST",
- data: {
- token: c.id,
- plan: o,
- policy: s
- },
- dataType: "json",
- success: function(e) {
- n.removeClass("payment-loader"), e.redirect && (window.location.href = e.redirect)
- },
- error: r
- }) : (e.show(), void n.removeClass("payment-loader"))
- })
- }), i(".js-form-submit-card").on("click", function(t) {
- t.preventDefault();
- var o = i(".js-creditcard").val(),
- s = i(".js-exp-month").val(),
- c = i(".js-exp-year").val(),
- u = i(".js-code").val();
- e.hide(), n.addClass("payment-loader"), window.MAL.stripe.createToken(o, s, c, u, function(t, o) {
- return 200 !== t ? void a(o) : o.id ? void i.ajax({
- url: "/account/membership/payment",
- type: "PUT",
- data: {
- token: o.id
- },
- dataType: "json",
- success: function(e) {
- n.removeClass("payment-loader"), e.redirect && (window.location.href = e.redirect)
- },
- error: r
- }) : (e.show(), void n.removeClass("payment-loader"))
- })
- });
- var o = '\n There was an internal error.<br>\n Please contact us from <a href="/about.php?go=support&is_form_open=1">here</a>.\n ',
- r = function(r) {
- if (e.hide(), n.removeClass("payment-loader"), 504 === r.status) return void e.show();
- try {
- var a = i.parseJSON(r.responseText);
- if (a.redirect) return void(window.location.href = a.redirect);
- if (a.message) return t.text(a.message), void e.show();
- t.text(o), e.show()
- } catch (n) {
- t.text(o), e.show()
- }
- },
- a = function(o) {
- n.removeClass("payment-loader");
- var r = i(".js-creditcard"),
- a = i(".js-exp-month"),
- s = i(".js-exp-year"),
- c = i(".js-code");
- r.removeClass("has_error"), a.removeClass("has_error"), s.removeClass("has_error"), c.removeClass("has_error");
- var u = i(".js-error-creditcard"),
- l = i(".js-error-date"),
- d = i(".js-error-code");
- return e.hide(), u.hide(), l.hide(), d.hide(), o.error ? !o.error.errors && o.error.message ? (t.text(o.error.message), void e.show()) : void o.error.errors.forEach(function(e) {
- return "invalid_number" === e.code || "incorrect_number" === e.code ? (r.addClass("has_error"), void u.show()) : "invalid_expiry" === e.code || "expired_card" === e.code ? (a.addClass("has_error"), s.addClass("has_error"), void l.show()) : "invalid_expiry_month" === e.code ? (a.addClass("has_error"), void l.show()) : "invalid_expiry_year" === e.code ? (s.addClass("has_error"), void l.show()) : void("invalid_cvc" !== e.code && "incorrect_cvc" !== e.code || (c.addClass("has_error"), d.show()))
- }) : void e.show()
- }
- }(), i(".js-plan-submit-button-outer") && function() {
- var e = i(".js-badresult");
- e.hide(), i(".js-form-submit-plan").on("click", function() {
- var t = i('input[name="plan"]:checked').val();
- i.ajax({
- url: "/account/membership/plan",
- type: "PUT",
- data: {
- plan: t
- },
- dataType: "json",
- success: function(e) {
- e.redirect && (window.location.href = e.redirect)
- },
- error: function() {
- e.show()
- }
- })
- })
- }(), i(".about-membership") && function() {
- var e = i(".js-badresult");
- e.hide(), i(".js-btn-membership-suspend").on("click", function() {
- i.ajax({
- url: "/account/membership/suspend",
- method: "POST",
- success: function(e) {
- e.redirect && (window.location.href = e.redirect)
- },
- error: function() {
- e.show()
- }
- })
- })
- }(), i(".js-cancel-membership") && function() {
- var e = i(".js-badresult");
- e.hide(), i(".js-btn-membership-reactivate").on("click", function() {
- i.ajax({
- url: "/account/membership/reactivate",
- method: "POST",
- success: function(e) {
- e.redirect && (window.location.href = e.redirect)
- },
- error: function() {
- e.show()
- }
- })
- }), i(".js-btn-membership-cancel").on("click", function() {
- !0 === confirm("Are you sure to quit MAL Supporter subscription now?") && i.ajax({
- url: "/account/membership/payment",
- method: "DELETE",
- success: function(e) {
- e.redirect && (window.location.href = e.redirect)
- },
- error: function() {
- e.show()
- }
- })
- })
- }(), i(".membership .js-forum-title-edit")[0]) {
- i(".membership .js-forum-title-edit").on("click", function() {
- var e = i(".membership .js-forum-title");
- e.toggleClass("show"), e.find('input[type="text"]:enabled').focus()
- })
- }
- if (i(".membership .js-btn-change")[0]) {
- i(".membership .js-btn-change").on("click", function() {
- var e = i(this).data("id"),
- t = i(".membership .js-edit-table"),
- n = i('.membership .js-edit-table[data-id="' + e + '"]'),
- o = i(".membership .js-edit-table").data("plan");
- n.hasClass("on") || t.removeClass("on"), n.toggleClass("on"), i('.membership .js-edit-table[data-id="creditcard"] .input-text').val(""), i('.membership .js-edit-table input[name="plan"][value="' + o + '"]:radio').prop("checked", !0), i(".membership .js-edit-table .js-form-submit-plan").prop("disabled", !0), i(".membership .js-edit-table .js-plan-submit-button-outer").hide()
- })
- }
- if (i('.membership .js-edit-table input[type="number"].input-text')[0] && i('.membership .js-edit-table input[type="number"].input-text').on("input", function() {
- i(this).val().length > i(this).attr("maxlength") && i(this).val(i(this).val().slice(0, i(this).attr("maxlength")));
- for (var e = !1, t = i('.membership .js-edit-table input[type="number"].input-text').map(function() {
- return i(this).val()
- }).get(), n = 0; n < t.length; n++) {
- if (!t[n]) {
- e = !1;
- break
- }
- e = !0
- }!0 === e ? i(".membership .js-edit-table .js-form-submit-card").prop("disabled", !1) : i(".membership .js-edit-table .js-form-submit-card").prop("disabled", !0)
- }), i('.membership .js-edit-table input[name="plan"]:radio')[0] && i('.membership .js-edit-table input[name="plan"]:radio').on("change", function() {
- var e = i(".membership .js-edit-table").data("plan"),
- t = parseInt(i(this).val()),
- n = i(".membership .js-edit-table .js-form-submit-plan"),
- o = i(".membership .js-edit-table .js-plan-submit-button-outer");
- e !== t ? (o.show(), n.prop("disabled", !1)) : (o.hide(), n.prop("disabled", !0))
- }), i(".js-btn-about-security-code").on("mouseenter", function() {
- return i(this).fancybox({
- width: 560,
- height: 450,
- autoScale: !0,
- autoDimensions: !0,
- transitionIn: "none",
- transitionOut: "none",
- type: "iframe"
- }), !1
- }), i(".membership .form-table .data input.has_error")[0]) {
- i(".membership .form-table .data input.has_error").on("click", function() {
- i(this).removeClass("has_error")
- })
- }
- if (i(".membership .js-faq-question")[0]) {
- i(".membership .js-faq-question").on("click", function() {
- var e = i(this).attr("id");
- i(this).toggleClass("on"), i(this).siblings("." + e).toggleClass("show")
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.axios,
- o = document.getElementsByClassName("js-badresult"),
- r = document.getElementsByClassName("js-badresult-text"),
- a = document.getElementsByClassName("js-supporter-policy"),
- s = document.getElementsByClassName("js-subscribe-membership-with-paypal");
- 0 !== a.length && 0 !== s.length && function() {
- var e = a[0];
- s[0].disabled = !e.checked, e.addEventListener("click", function() {
- s[0].disabled = !e.checked
- });
- var t = new FormData;
- t.append("policy", e.checked ? "off" : "on"), t.append("plan", document.getElementById("selected-plan").value), t.append("token", document.querySelector('input[name="token"]').value), s[0].addEventListener("click", function(e) {
- o[0].style.display = "none", i.post("/account/membership/payment/paypal", t).then(function(e) {
- return window.location.href = "/account/membership/complete", 200
- }).catch(function(e) {
- return l(e)
- })
- })
- }();
- var c = document.getElementsByClassName("js-get-agreement-with-paypal");
- 0 !== c.length && function() {
- var e = document.getElementsByName("plan");
- c[0].addEventListener("click", function(t) {
- o[0].style.display = "none";
- for (var n = 0, r = 0; r < e.length; r++) !0 === e[r].checked && (n = e[r].value);
- i.get("/account/membership/payment", {
- params: {
- plan: n,
- paypal: 1
- }
- }).then(function(e) {
- return window.location.href = e.data.redirect, 200
- }).catch(function(e) {
- return l(e)
- })
- })
- }();
- var u = '\n There was an error when registering you to the MAL Supporter plan.<br>\n Please try again in a few minutes. If this problem persists please contact us <a href="/about.php?go=support&is_form_open=1">here</a>.\n ',
- l = function(e) {
- if (o[0].style.display = "none", 504 === e.response.status) return void(o[0].style.display = "");
- try {
- if (e.response.data.message) return r[0].innerHTML = e.response.data.message, void(o[0].style.display = "");
- r[0].innerHTML = u, o[0].style.display = ""
- } catch (e) {
- r[0].innerHTML = u, o[0].style.display = ""
- }
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(112),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.sVue,
- a = window.noty,
- s = window.$;
- s(function() {
- s(".forum-topic-message-ignored-user").each(function(e, t) {
- var n = s(t),
- i = n.find(".forum_category"),
- o = n.find(".forum-topic-message-wrapper");
- i.on("click", function() {
- n.toggleClass("hide-message"), o.slideToggle(300)
- })
- }), s("#vClubShareTemplate").exists() && function() {
- var e = o.default.parse(location.search.replace(/^\?/, "")),
- t = e.topicid,
- n = {
- sendStatus: "before"
- },
- i = new r({
- el: "#vClubShareTemplate",
- data: n,
- methods: {
- shareTopic: function(e) {
- var n = this;
- if (!1 !== confirm("Are you sure you want all club members to be notified about this discussion?")) {
- var i = s(e.currentTarget).attr("href");
- c(i, t, function() {
- n.sendStatus = "sended"
- })
- }
- },
- beforeSend: function() {
- this.sendStatus = "sending"
- },
- showErrorMsg: function(e) {
- a.showError(e), this.sendStatus = "before"
- }
- }
- }),
- c = function(e, t, n) {
- s.ajax({
- url: e,
- method: "POST",
- data: {
- topic_id: t
- },
- dataType: "json",
- beforeSend: function() {
- i.beforeSend()
- }
- }).done(function() {
- n()
- }).fail(function(e) {
- null === e.responseJSON ? (i.showErrorMsg("Failed to share this topic"), console.error("internal server error: topic_id=" + t)) : i.showErrorMsg(e.responseJSON.errors[0].message)
- })
- }
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._,
- r = window.sVue;
- i(function() {
- function e(e, t) {
- this.id = e, this.name = t
- }
- var t = i(".js-ignored-users");
- if (t.length) {
- new r({
- el: t[0],
- template: i("#template-ignored-users").text(),
- data: {
- inputUserName: "",
- isLoading: !1,
- inputErrorMessage: "",
- commonErrorMessage: "",
- ignoredUsers: window.MAL.ForumSettings.ignoredUsers.map(function(t) {
- return new e(t.id, t.name)
- })
- },
- computed: {
- trimedInputUserName: function() {
- return this.inputUserName.trim()
- },
- canAdd: function() {
- return this.trimedInputUserName.length > 0 && !this.isLoading
- },
- canRemove: function() {
- return !this.isLoading
- }
- },
- methods: {
- clearErrorMessages: function() {
- this.inputErrorMessage = "", this.commonErrorMessage = ""
- },
- onInputIgnoredName: function(e) {
- this.clearErrorMessages(), this.canAdd && 13 === e.keyCode && this.addInputUser()
- },
- addInputUser: function() {
- this.addIgnoredUser(this.trimedInputUserName)
- },
- addIgnoredUser: function(t) {
- var n = this;
- if (o.some(n.ignoredUsers, function(e) {
- return e.name === t
- })) return void(n.inputErrorMessage = "This user already exists in your ignored list.");
- n.isLoading = !0, n.clearErrorMessages(), i.ajax({
- url: "/forum/settings/ignored_users",
- method: "POST",
- data: {
- name: t
- }
- }).then(function(i) {
- n.ignoredUsers.push(new e(i.userId, t)), n.inputUserName = ""
- }, function(e) {
- var t = e.responseJSON;
- switch (e.status) {
- case 400:
- t.is_supporter ? n.inputErrorMessage = "There is a maximum of " + t.max : n.commonErrorMessage = "There is a maximum of " + t.max + ' ignored users. Become a <a href="' + t.url + '" target="_blank">MAL Supporter</a> to increase it to twice!';
- break;
- case 401:
- window.location.href = t.redirect;
- break;
- case 403:
- n.inputErrorMessage = "This user cannot be added to the list.";
- break;
- case 404:
- n.inputErrorMessage = "This user was not found.";
- break;
- default:
- n.inputErrorMessage = "Unkown error happened."
- }
- }).always(function() {
- n.isLoading = !1
- })
- },
- removeIgnoredUser: function(e) {
- var t = this;
- t.canRemove && (t.isLoading = !0, t.clearErrorMessages(), i.ajax({
- url: "/forum/settings/ignored_users/" + e,
- method: "DELETE"
- }).then(function() {
- t.ignoredUsers = o.filter(t.ignoredUsers, function(t) {
- return t.id !== e
- })
- }, function(e) {
- switch (e.status) {
- case 401:
- window.location.href = e.responseJSON.redirect;
- break;
- default:
- t.commonErrorMessage = "Unkown error happened."
- }
- }).always(function() {
- t.isLoading = !1
- }))
- }
- }
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = n(112);
- i(function() {
- i("#showclubs").exists() && (i(".js-show-clubs").on("change", function(e) {
- var t = o.parse(location.search.replace(/^\?/, ""));
- t.p = null, t.sort = i(e.currentTarget).val(), location.href = "/clubs.php?" + o.stringify(t, {
- skipNulls: !0
- })
- }), i(".js-show-clubs").on("click", function(e) {
- var t = o.parse(location.search.replace(/^\?/, ""));
- t.p = null, t.sort = i(e.currentTarget.attributes["data-id"]).val(), location.href = "/clubs.php?" + o.stringify(t, {
- skipNulls: !0
- })
- }))
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window._,
- r = window.sVue;
- i(function() {
- if (i(".club-new-forum-topic").exists()) {
- var e = i("#vPollTemplate").data("poll");
- e.showMenu = Boolean(e.question || e.reqOptions.length), 0 === e.reqOptions.length && e.reqOptions.push(""), e.options = o.map(e.reqOptions, function(e, t) {
- return {
- id: t + 1,
- value: e
- }
- }), new r({
- el: "#vPollTemplate",
- data: e,
- methods: {
- pollToggle: function() {
- this.showMenu = !this.showMenu
- },
- addOption: function() {
- var e = o.last(this.options).id;
- this.options.push({
- id: e + 1,
- value: ""
- })
- },
- removeOption: function(e) {
- this.options.splice(this.options.indexOf(e), 1)
- },
- submitTopic: function(e) {
- i("#input-mass-message").exists() && this.notifyMembers && !1 === confirm("Are you sure you want all club members to be notified about this discussion?") && e.preventDefault()
- }
- }
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window.sVue;
- i(function() {
- i("#club-mass-message-subscribe").exists() && function() {
- var e = "#club-mass-message-subscribe",
- t = i(e).data("subscribe");
- t.sending = !1, t.msg = void 0, t.isError = void 0;
- var n = new o({
- el: e,
- data: t,
- methods: {
- toggleSubscription: function() {
- var e = this;
- r(!this.isSubscribed, function(t) {
- e.isError = !1, e.isSubscribed = t, e.msg = "Successfully updated!"
- })
- },
- beforeSend: function() {
- this.sending = !0, this.msg = void 0
- },
- afterSend: function() {
- this.sending = !1
- },
- showErrorMsg: function(e) {
- this.isError = !0, this.msg = e
- }
- }
- }),
- r = function(e, o) {
- i.ajax({
- url: t.url,
- method: "PUT",
- data: {
- is_subscribe: e ? 1 : 0
- },
- dataType: "json",
- beforeSend: function() {
- n.beforeSend()
- }
- }).done(function() {
- o(e)
- }).fail(function(e) {
- n.showErrorMsg(e.responseJSON.errors[0].message)
- }).always(function() {
- n.afterSend()
- })
- }
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i("#users-advancedsearch").exists() && function() {
- var e = function() {
- var e = encodeURI(r.val()).replace(/%[0-9A-F]{2}/g, "*").length;
- return e > 2 || !(0 < e) && !!(o.val().length > 1 || a.low.val() > 0 && a.high.val() > 0 || s.val())
- },
- t = function() {
- e() ? n.removeClass("notActive") : n.addClass("notActive")
- },
- n = i(".js-submit"),
- o = i("input[name='loc']"),
- r = i("input[name='q']"),
- a = {
- low: i("input[name='agelow']"),
- high: i("input[name='agehigh']")
- },
- s = i("select[name='g']");
- i("#users-advancedsearch").on("change", "input[type!=text], select", function(e) {
- t()
- }), i("#users-advancedsearch").on("keyup", "input[type=text]", function(e) {
- t()
- }), i("#users-advancedsearch").on("submit", function(t) {
- e() || t.preventDefault()
- }), t()
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-reset-colors").exists() && i(".js-reset-colors").on("click", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget.attributes["data-type"]).val();
- i('input[name^="' + t + '"]').each(function(e, t) {
- var n = i(t);
- n.val(n.data("default"))
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- function e(e, t, n, o) {
- var r = 2 == o ? "didn't like" : "liked";
- if (3 == o) i.post("/includes/ajax.inc.php?t=19", {
- fsgid: e,
- value: o,
- aid: t
- }, function(e) {
- i("#good" + n).attr("src", "/images/good-off.gif"), i("#bad" + n).attr("src", "/images/bad-off.gif")
- });
- else {
- var a = '\n<div style="font-family: verdana, arial; font-size: 11px; text-align: center;">\n <span id="explain">Please explain in short detail<br>why you ' + r + ' this group\'s subbing performance (255 chars max).</span>\n <div style="margin-top: 5px;"><textarea id="fsgcomm" class="textarea" rows="3" cols="40"></textarea></div>\n <div style="margin-top: 5px;">\n <input type="button" value="Cancel Vote" class="inputButton" onclick="$.fancybox.close()">\n \n <input type="button" value="Submit Vote" class="inputButton js-fansub-comment-button">\n </div>\n</div>';
- i.fancybox({
- content: a,
- autoScale: !0,
- autoDimensions: !0,
- onComplete: function() {
- i(".js-fansub-comment-button").on("click", function() {
- i.post("/includes/ajax.inc.php?t=19", {
- fsgid: e,
- value: o,
- aid: t,
- comment: i("#fsgcomm").val()
- }, function(e) {
- i.fancybox.close(), 1 == o ? (i("#good" + n).attr("src", "/images/good-on.gif"), i("#bad" + n).attr("src", "/images/bad-off.gif")) : (i("#good" + n).attr("src", "/images/good-off.gif"), i("#bad" + n).attr("src", "/images/bad-on.gif"))
- })
- })
- }
- })
- }
- }
- i(".js-fansub-set-vote-button").on("click", function() {
- e(i(this).data("group-id"), i(this).data("anime-id"), i(this).data("image-id"), parseInt(i(this).data("type")))
- }), i(".js-fansub-toggle-comment-button").on("click", function() {
- var e = i(this).data("id");
- i("#fsgComments" + e).toggle()
- })
- })
- }, function(e, t, n) {
- "use strict";
- n(224), n(225), n(226), n(227)
- }, function(e, t, n) {
- "use strict";
- var i = n(21),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window._,
- s = window.sVue;
- r(function() {
- r(".episode-edit-character")[0] && function() {
- var e = function(e) {
- return a.sortBy(e, "language_id")
- },
- t = "#characterForm",
- n = new s({
- el: t,
- data: {
- allEpisodes: r(t).data("json"),
- episodes: [],
- initialData: null,
- keyword: "",
- characters: r("#episodeAnimeCharacterList").data("json"),
- entry: {
- id: null,
- name: null
- },
- pulldown: !1,
- hasNoResults: !1,
- voice_actors: []
- },
- created: function() {
- var e = this,
- n = 0;
- ! function t() {
- e.episodes = e.episodes.concat(e.allEpisodes.slice(n, n + 30)), (n += 30) <= e.allEpisodes.length && setTimeout(t, 100)
- }();
- var i = r("#primaryVoiceActorList").data("json");
- i && (e.voice_actors = i), o.default.injectTokenToForm(t)
- },
- computed: {
- filteredCharacters: function() {
- var e = this,
- t = new RegExp(e.keyword, "i");
- return e.characters.filter(function(e) {
- return t.test(e.name)
- })
- },
- orderedVoiceActors: function() {
- return e(this.voice_actors)
- }
- },
- methods: {
- orderVoiceActors: function(t) {
- return e(t)
- },
- updateEpisodes: function(e) {
- var t = e.voice_actor_list,
- n = e.episode_list;
- this.allEpisodes.forEach(function(e) {
- e.is_added = !!n[e.id].is_added;
- var i = JSON.parse(JSON.stringify(t));
- i.forEach(function(t) {
- e.is_added ? t.is_added = a.includes(n[e.id].role_ids, t.role_id.toString()) : t.is_added = !1
- }), e.voice_actors = i
- }), this.initialData = this.generateSubmissionData()
- },
- addAll: function() {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !0
- })
- },
- deleteAll: function() {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !1
- })
- },
- addDefaultRoleId: function(e) {
- this.allEpisodes.forEach(function(t) {
- t.voice_actors.forEach(function(t) {
- t.role_id === e && (t.is_added = !0)
- })
- })
- },
- deleteDefaultRoleId: function(e) {
- this.allEpisodes.forEach(function(t) {
- t.voice_actors.forEach(function(t) {
- t.role_id === e && (t.is_added = !1)
- })
- })
- },
- addByIndices: function(e) {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !1
- });
- for (var t = 0; t < e.length; t++) this.allEpisodes[e[t]].is_added = !0
- },
- submitCharacters: function(e) {
- var t = this.generateSubmissionData();
- return null === t ? (e.preventDefault(), void alert("Select character!")) : r("#episodeAnimeCharacterList").exists() && !this.checkModified(t) ? (e.preventDefault(), void alert("Nothing has been changed!")) : void r("input[name=characters]").val(JSON.stringify(t))
- },
- generateSubmissionData: function() {
- var e = void 0;
- if (r("#episodeAnimeCharacterList").exists()) {
- if (!(e = n.getCharaterId())) return null
- } else e = r("#characterIdInput").val();
- var t = [];
- return this.allEpisodes.forEach(function(n) {
- n.is_added && function() {
- var i = [];
- n.voice_actors.forEach(function(e) {
- e.is_added && i.push({
- role_id: e.role_id
- })
- }), t.push({
- id: e,
- episode_id: n.id,
- voice_actors: i
- })
- }()
- }), t
- },
- checkModified: function(e) {
- if (e.length !== this.initialData.length) return !0;
- for (var t = 0; t < e.length; t++) {
- var n = e[t],
- i = this.initialData[t];
- if (n.id !== i.id || n.episode_id !== i.episode_id) return !0;
- if (n.voice_actors.length !== i.voice_actors.length) return !0;
- for (var o = 0; o < n.voice_actors.length; o++) {
- var r = n.voice_actors[o],
- a = i.voice_actors[o];
- if (r.role_id !== a.role_id) return !0
- }
- }
- return !1
- },
- getCharacterById: function(e) {
- for (var t = 0, n = this.characters.length; t < n; t++)
- if (this.characters[t].id === e) return this.characters[t]
- },
- selectCharacter: function(e) {
- this.entry = this.getCharacterById(e), this.keyword = "", this.pulldown = !1, r.get("../character/" + e, {}, function(e) {
- n.updateVoiceActors(e.voice_actor_list), n.updateEpisodes(e)
- })
- },
- getCharaterId: function() {
- return !!this.entry && this.entry.id
- },
- deleteCharacter: function(e) {
- this.getCharacterById(e).is_added = !1
- },
- deleteAllCharacters: function() {
- this.characters.forEach(function(e) {
- e.is_added = !1
- })
- },
- setPrimaryActor: function(e) {
- r(".js-checkbox-default.js-va-id-" + e).is(":checked") ? n.addDefaultRoleId(e) : n.deleteDefaultRoleId(e)
- },
- updateVoiceActors: function(e) {
- this.voice_actors = e
- }
- }
- });
- r(".js-data-episode-all").on("click", function() {
- r(this).prop("checked") ? n.addAll() : n.deleteAll()
- }), r(".js-episode-numbers").on("keypress", function(e) {
- 13 === e.keyCode && (e.preventDefault(), i())
- }), r(".js-episode-numbers-submit").on("click", function() {
- i()
- });
- var i = function() {
- for (var e = r(".js-episode-numbers").val().split(","), t = [], i = 0; i < e.length; i++) {
- if (e[i].indexOf("-") > -1)
- for (var o = e[i].split("-"), a = o[0]; a <= o[1]; a++) t.push(parseInt(a) - 1);
- else t.push(parseInt(e[i]) - 1);
- n.addByIndices(t)
- }
- };
- r(document).on("click", ".js-data-actor", function(e) {
- e.stopPropagation();
- var t = r(this).next(".js-edit-character-list-block");
- r(this).hasClass("on") ? (r(this).removeClass("on"), t.hide()) : (r(".js-data-actor").removeClass("on"), r(".js-edit-character-list-block").hide(), r(this).addClass("on"), t.css({
- bottom: -1 * (t.height() - 1)
- }).show())
- })
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(21),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window._,
- s = window.sVue;
- r(function() {
- r(".episode-edit-staff")[0] && function() {
- var e = new s({
- el: "#staffForm",
- data: {
- allEpisodes: r("#staffForm").data("json"),
- episodes: [],
- initialData: null,
- keyword: "",
- staffs: r("#episodeStaffList").data("json"),
- entry: {
- id: null,
- name: null
- },
- pulldown: !1,
- hasNoResults: !1,
- roles: []
- },
- created: function() {
- var e = this,
- t = 0;
- ! function n() {
- e.episodes = e.episodes.concat(e.allEpisodes.slice(t, t + 30)), (t += 30) <= e.allEpisodes.length && setTimeout(n, 100)
- }();
- var n = r("#episodeRole").data("json");
- n && (this.roles = n), o.default.injectTokenToForm("#staffForm")
- },
- computed: {
- filteredStaffs: function() {
- var e = this,
- t = new RegExp(e.keyword, "i");
- return e.staffs.filter(function(e) {
- return t.test(e.name)
- })
- }
- },
- methods: {
- updateEpisodes: function(e) {
- var t = e.role_list,
- n = e.episode_list;
- this.allEpisodes.forEach(function(e) {
- e.is_added = !!n[e.id].is_added;
- var i = JSON.parse(JSON.stringify(t));
- i.forEach(function(t) {
- e.is_added ? t.is_added = a.includes(n[e.id].role_ids, t.role_id.toString()) : t.is_added = !1
- }), e.roles = i
- }), this.initialData = this.generateSubmissionData()
- },
- addAll: function() {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !0
- })
- },
- deleteAll: function() {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !1
- })
- },
- addDefaultRoleId: function(e) {
- this.allEpisodes.forEach(function(t) {
- t.roles.forEach(function(t) {
- t.role_id === e && (t.is_added = !0)
- })
- })
- },
- deleteDefaultRoleId: function(e) {
- this.allEpisodes.forEach(function(t) {
- t.roles.forEach(function(t) {
- t.role_id === e && (t.is_added = !1)
- })
- })
- },
- addByIndices: function(e) {
- this.allEpisodes.forEach(function(e) {
- e.is_added = !1
- });
- for (var t = 0; t < e.length; t++) this.allEpisodes[e[t]].is_added = !0
- },
- submitStaffs: function(e) {
- var t = this.generateSubmissionData();
- return null === t ? (e.preventDefault(), void alert("Select staff!")) : r("#episodeStaffList").exists() && !this.checkModified(t) ? (e.preventDefault(), void alert("Nothing has been changed!")) : void r("input[name=staffs]").val(JSON.stringify(t))
- },
- generateSubmissionData: function() {
- var e = void 0;
- if (r("#episodeStaffList").exists()) {
- if (!(e = this.getStaffId())) return null
- } else e = r("#staffIdInput").val();
- var t = [];
- return this.allEpisodes.forEach(function(n) {
- n.is_added && function() {
- var i = [];
- n.roles.forEach(function(e) {
- e.is_added && i.push({
- role_id: e.role_id
- })
- }), t.push({
- id: e,
- episode_id: n.id,
- roles: i
- })
- }()
- }), t
- },
- checkModified: function(e) {
- if (e.length !== this.initialData.length) return !0;
- for (var t = 0; t < e.length; t++) {
- var n = e[t],
- i = this.initialData[t];
- if (n.id !== i.id || n.episode_id !== i.episode_id) return !0;
- if (n.roles.length !== i.roles.length) return !0;
- for (var o = 0; o < n.roles.length; o++) {
- var r = n.roles[o],
- a = i.roles[o];
- if (r.role_id !== a.role_id) return !0
- }
- }
- return !1
- },
- getStaffById: function(e) {
- for (var t = 0, n = this.staffs.length; t < n; t++)
- if (this.staffs[t].id === e) return this.staffs[t]
- },
- selectStaff: function(t) {
- this.entry = this.getStaffById(t), this.keyword = "", this.pulldown = !1, r.get("../staff/" + t, {}, function(t) {
- e.updateRoles(t.role_list), e.updateEpisodes(t)
- })
- },
- getStaffId: function() {
- return !!this.entry && this.entry.id
- },
- setPrimaryRole: function(t) {
- r(".js-checkbox-default.js-va-id-" + t).is(":checked") ? e.addDefaultRoleId(t) : e.deleteDefaultRoleId(t)
- },
- updateRoles: function(e) {
- this.roles = e
- }
- }
- });
- r(".js-data-episode-all").on("click", function() {
- r(this).prop("checked") ? e.addAll() : e.deleteAll()
- }), r(".js-episode-numbers").on("keypress", function(e) {
- 13 === e.keyCode && (e.preventDefault(), t())
- }), r(".js-episode-numbers-submit").on("click", function() {
- t()
- });
- var t = function() {
- for (var t = r(".js-episode-numbers").val().split(","), n = [], i = 0; i < t.length; i++) {
- if (t[i].indexOf("-") > -1)
- for (var o = t[i].split("-"), a = o[0]; a <= o[1]; a++) n.push(parseInt(a) - 1);
- else n.push(parseInt(t[i]) - 1);
- e.addByIndices(n)
- }
- };
- r(document).on("click", ".js-data-actor", function(e) {
- e.stopPropagation();
- var t = r(this).next(".js-edit-character-list-block");
- r(this).hasClass("on") ? (r(this).removeClass("on"), t.hide()) : (r(".js-data-actor").removeClass("on"), r(".js-edit-character-list-block").hide(), r(this).addClass("on"), t.css({
- bottom: -1 * (t.height() - 1)
- }).show())
- })
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(21),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window._,
- s = window.sVue;
- r(function() {
- r(".episode-edit-character-per-character")[0] && function() {
- var e = "#characterForm";
- new s({
- el: e,
- data: {
- keyword: "",
- characters: r(e).data("json"),
- pulldown: !1,
- hasNoResults: !1,
- initialData: null
- },
- created: function() {
- this.initialData = this.generateSubmissionData(), o.default.injectTokenToForm(e)
- },
- computed: {
- filteredCharacters: function() {
- var e = this,
- t = new RegExp(e.keyword, "i");
- return e.characters.filter(function(e) {
- return t.test(e.name)
- })
- }
- },
- methods: {
- orderVoiceActors: function(e) {
- return a.sortBy(e, "language_id")
- },
- getCharacterById: function(e) {
- for (var t = 0, n = this.characters.length; t < n; t++)
- if (this.characters[t].id === e) return this.characters[t]
- },
- addCharacter: function(e) {
- this.getCharacterById(e).is_added = !0, this.keyword = "", this.pulldown = !1
- },
- deleteCharacter: function(e) {
- this.getCharacterById(e).is_added = !1
- },
- deleteAllCharacters: function() {
- this.characters.forEach(function(e) {
- e.is_added = !1
- })
- },
- submitCharacters: function(e) {
- var t = this.generateSubmissionData();
- if (!r("#adminReview").exists() && !this.checkModified(t)) return e.preventDefault(), void alert("Nothing has been changed!");
- r("input[name=characters]").val(JSON.stringify(t))
- },
- generateSubmissionData: function() {
- var e = [];
- return this.characters.forEach(function(t) {
- t.is_added && function() {
- var n = [];
- t.voice_actors.forEach(function(e) {
- e.is_added && n.push({
- role_id: e.role_id
- })
- }), e.push({
- id: t.id,
- episode_id: t.episode_id,
- voice_actors: n
- })
- }()
- }), e
- },
- checkModified: function(e) {
- if (e.length !== this.initialData.length) return !0;
- for (var t = 0; t < e.length; t++) {
- var n = e[t],
- i = this.initialData[t];
- if (n.id !== i.id || n.episode_id !== i.episode_id) return !0;
- if (n.voice_actors.length !== i.voice_actors.length) return !0;
- for (var o = 0; o < n.voice_actors.length; o++) {
- var r = n.voice_actors[o],
- a = i.voice_actors[o];
- if (r.role_id !== a.role_id) return !0
- }
- }
- return !1
- }
- }
- });
- r(document).on("click", ".js-data-actor", function(e) {
- e.stopPropagation();
- var t = r(this).next(".js-edit-character-list-block");
- r(this).hasClass("on") ? (r(this).removeClass("on"), t.hide()) : (r(".js-data-actor").removeClass("on"), r(".js-edit-character-list-block").hide(), r(this).addClass("on"), t.css({
- bottom: -1 * (t.height() - 1)
- }).show())
- })
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(21),
- o = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(i),
- r = window.$,
- a = window.sVue;
- r(function() {
- r(".episode-edit-staff-per-episode")[0] && function() {
- new a({
- el: "#staffForm",
- data: {
- keyword: "",
- staffs: r("#staffForm").data("json"),
- pulldown: !1,
- hasNoResults: !1,
- initialData: null
- },
- created: function() {
- this.initialData = this.generateSubmissionData(), o.default.injectTokenToForm("#staffForm")
- },
- computed: {
- filteredStaffs: function() {
- var e = this,
- t = new RegExp(e.keyword, "i");
- return e.staffs.filter(function(e) {
- return t.test(e.name)
- })
- }
- },
- methods: {
- getStaffById: function(e) {
- for (var t = 0, n = this.staffs.length; t < n; t++)
- if (this.staffs[t].id === e) return this.staffs[t]
- },
- addStaff: function(e) {
- this.getStaffById(e).is_added = !0, this.keyword = "", this.pulldown = !1
- },
- deleteStaff: function(e) {
- this.getStaffById(e).is_added = !1
- },
- deleteAllStaffs: function() {
- this.staffs.forEach(function(e) {
- e.is_added = !1
- })
- },
- submitStaffs: function(e) {
- var t = this.generateSubmissionData();
- if (!r("#adminReview").exists() && !this.checkModified(t)) return e.preventDefault(), void alert("Nothing has been changed!");
- r("input[name=staffs]").val(JSON.stringify(t))
- },
- generateSubmissionData: function() {
- var e = [];
- return this.staffs.forEach(function(t) {
- t.is_added && function() {
- var n = [];
- t.roles.forEach(function(e) {
- e.is_added && n.push({
- role_id: e.role_id
- })
- }), e.push({
- id: t.id,
- episode_id: t.episode_id,
- roles: n
- })
- }()
- }), e
- },
- checkModified: function(e) {
- if (e.length !== this.initialData.length) return !0;
- for (var t = 0; t < e.length; t++) {
- var n = e[t],
- i = this.initialData[t];
- if (n.id !== i.id || n.episode_id !== i.episode_id) return !0;
- if (n.roles.length !== i.roles.length) return !0;
- for (var o = 0; o < n.roles.length; o++) {
- var r = n.roles[o],
- a = i.roles[o];
- if (r.role_id !== a.role_id) return !0
- }
- }
- return !1
- }
- }
- });
- r(document).on("click", ".js-data-actor", function(e) {
- e.stopPropagation();
- var t = r(this).next(".js-edit-character-list-block");
- r(this).hasClass("on") ? (r(this).removeClass("on"), t.hide()) : (r(".js-data-role").removeClass("on"), r(".js-edit-character-list-block").hide(), r(this).addClass("on"), t.css({
- bottom: -1 * (t.height() - 1)
- }).show())
- })
- }()
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$,
- o = window.sVue;
- i(function() {
- i("#vWhitelistReview").exists() && function() {
- var e = i("#vWhitelistReview").data("review");
- e.sending = !1, e.msg = void 0, e.isError = void 0;
- var t = new o({
- el: "#vWhitelistReview",
- data: e,
- methods: {
- review: function(e) {
- var t = this;
- n(e, function() {
- t.isError = !1, t.msg = "Successfully updated!", t.inWhite = "white" === e, t.canReview = !1
- })
- },
- beforeSend: function() {
- this.sending = !0, this.msg = void 0
- },
- afterSend: function() {
- this.sending = !1
- },
- showErrorMsg: function(e) {
- this.isError = !0, this.msg = e
- }
- }
- }),
- n = function(e, n) {
- i.ajax({
- url: location.href + "/review.json",
- method: "PUT",
- data: {
- review_status: e
- },
- dataType: "json",
- beforeSend: function() {
- t.beforeSend()
- }
- }).done(function(e) {
- n(e.review_status)
- }).fail(function(e) {
- t.showErrorMsg(e.responseJSON.errors[0].message)
- }).always(function() {
- t.afterSend()
- })
- }
- }(), i("#review-date").exists() && i("#review-date").on("change", function(e) {
- var t = i(e.currentTarget);
- t.val().match(/^20\d{2}-[01]\d-[0-3]\d$/) && (location.href = t.data("url") + "/" + t.val().replace(/-/g, "/"))
- }), i("#chk-all").exists() && i("#chk-all").on("change", function(e) {
- var t = i(e.currentTarget);
- t.prop("checked") ? location.href = t.data("url") + "/all" : location.href = t.data("url")
- }), i("#id-search").exists() && i("#id-search").on("submit", function(e) {
- e.preventDefault();
- var t = i(e.currentTarget),
- n = i("#id-search-text").val();
- n && (location.href = t.attr("action") + "/" + n)
- })
- })
- }, function(e, t, n) {
- "use strict";
- n(230)
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".admin-anime-season-index .submit-form").submit(function(e) {
- e.preventDefault();
- var t = i(this),
- n = t.data("id"),
- o = i("#state-" + n + " .result-message"),
- r = i("#state-" + n + " .btn-submit");
- r.hide(), o.html("").show(), i("#loading" + n)[0] ? i("#state-" + n + " #loading" + n).show() : i("#state-" + n).append('<img id="loading' + n + '" src="/images/xmlhttp-loader-big.gif" width="16" height="16">');
- var a = i("#state-" + n + " #loading" + n);
- i.ajax({
- url: t.attr("action"),
- type: t.attr("method"),
- data: t.serialize(),
- timeout: 1e4,
- cache: !1,
- success: function() {
- a.hide(), o.html("Success")
- },
- error: function() {
- a.hide(), o.html('<span class="badresult-text">Failed</span>')
- },
- complete: function(e) {
- r.show()
- }
- })
- })
- })
- }, function(e, t, n) {
- "use strict";
- var i = window.$;
- i(function() {
- i(".js-anime-input-seriestype")[0] && function() {
- var e = function(e) {
- "hide" == (0 === e || 1 === e ? "show" : "hide") ? i(".js-insert-tvseries-hide").attr("disabled", "disabled"): i(".js-insert-tvseries-hide").removeAttr("disabled")
- },
- t = i(".js-anime-input-seriestype"),
- n = t.val() || 0;
- e(parseInt(n)), t.change(function() {
- var t = i(this).val();
- e(parseInt(t))
- })
- }()
- })
- }]);
Add Comment
Please, Sign In to add comment