From a841ce9bfe066a2af54f8e7327e0828e642195a7 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 18 Jan 2018 08:59:50 +0000 Subject: Thu Jan 18 08:59:50 UTC 2018 --- _static/w.js | 3929 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 3929 insertions(+) create mode 100644 _static/w.js (limited to '_static') diff --git a/_static/w.js b/_static/w.js new file mode 100644 index 0000000..e975f76 --- /dev/null +++ b/_static/w.js @@ -0,0 +1,3929 @@ +! function (e) { + function t(r) { + if (n[r]) return n[r].exports; + var o = n[r] = { + i: r, + l: !1, + exports: {} + }; + return e[r].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, r) { + t.o(e, n) || Object.defineProperty(e, n, { + configurable: !1, + enumerable: !0, + get: r + }) + }, 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 = 28) +}([function (e, t, n) { + "use strict"; + + function r() {} + + function o(e, t) { + var n, o, i, a, s = N; + for (a = arguments.length; a-- > 2;) I.push(arguments[a]); + for (t && null != t.children && (I.length || I.push(t.children), delete t.children); I.length;) + if ((o = I.pop()) && void 0 !== o.pop) + for (a = o.length; a--;) I.push(o[a]); + else "boolean" == typeof o && (o = null), (i = "function" != typeof e) && (null == o ? o = "" : "number" == typeof o ? o = String(o) : "string" != typeof o && (i = !1)), i && n ? s[s.length - 1] += o : s === N ? s = [o] : s.push(o), n = i; + var c = new r; + return c.nodeName = e, c.children = s, c.attributes = null == t ? void 0 : t, c.key = null == t ? void 0 : t.key, void 0 !== E.vnode && E.vnode(c), c + } + + function i(e, t) { + for (var n in t) e[n] = t[n]; + return e + } + + function a(e) { + !e._dirty && (e._dirty = !0) && 1 == U.push(e) && (E.debounceRendering || R)(s) + } + + function s() { + var e, t = U; + for (U = []; e = t.pop();) e._dirty && T(e) + } + + function c(e, t, n) { + return "string" == typeof t || "number" == typeof t ? void 0 !== e.splitText : "string" == typeof t.nodeName ? !e._componentConstructor && u(e, t.nodeName) : n || e._componentConstructor === t.nodeName + } + + function u(e, t) { + return e.normalizedNodeName === t || e.nodeName.toLowerCase() === t.toLowerCase() + } + + function l(e) { + var t = i({}, e.attributes); + t.children = e.children; + var n = e.nodeName.defaultProps; + if (void 0 !== n) + for (var r in n) void 0 === t[r] && (t[r] = n[r]); + return t + } + + function f(e, t) { + var n = t ? document.createElementNS("http://www.w3.org/2000/svg", e) : document.createElement(e); + return n.normalizedNodeName = e, n + } + + function m(e) { + var t = e.parentNode; + t && t.removeChild(e) + } + + function p(e, t, n, r, o) { + if ("className" === t && (t = "class"), "key" === t); + else if ("ref" === t) n && n(null), r && r(e); + else if ("class" !== t || o) + if ("style" === t) { + if (r && "string" != typeof r && "string" != typeof n || (e.style.cssText = r || ""), r && "object" == typeof r) { + if ("string" != typeof n) + for (var i in n) i in r || (e.style[i] = ""); + for (var i in r) e.style[i] = "number" == typeof r[i] && !1 === z.test(i) ? r[i] + "px" : r[i] + } + } else if ("dangerouslySetInnerHTML" === t) r && (e.innerHTML = r.__html || ""); + else if ("o" == t[0] && "n" == t[1]) { + var a = t !== (t = t.replace(/Capture$/, "")); + t = t.toLowerCase().substring(2), r ? n || e.addEventListener(t, h, a) : e.removeEventListener(t, h, a), (e._listeners || (e._listeners = {}))[t] = r + } else if ("list" !== t && "type" !== t && !o && t in e) d(e, t, null == r ? "" : r), null != r && !1 !== r || e.removeAttribute(t); + else { + var s = o && t !== (t = t.replace(/^xlink\:?/, "")); + null == r || !1 === r ? s ? e.removeAttributeNS("http://www.w3.org/1999/xlink", t.toLowerCase()) : e.removeAttribute(t) : "function" != typeof r && (s ? e.setAttributeNS("http://www.w3.org/1999/xlink", t.toLowerCase(), r) : e.setAttribute(t, r)) + } else e.className = r || "" + } + + function d(e, t, n) { + try { + e[t] = n + } catch (e) {} + } + + function h(e) { + return this._listeners[e.type](E.event && E.event(e) || e) + } + + function _() { + for (var e; e = F.pop();) E.afterMount && E.afterMount(e), e.componentDidMount && e.componentDidMount() + } + + function y(e, t, n, r, o, i) { + D++ || (M = null != o && void 0 !== o.ownerSVGElement, L = null != e && !("__preactattr_" in e)); + var a = v(e, t, n, r, i); + return o && a.parentNode !== o && o.appendChild(a), --D || (L = !1, i || _()), a + } + + function v(e, t, n, r, o) { + var i = e, + a = M; + if (null != t && "boolean" != typeof t || (t = ""), "string" == typeof t || "number" == typeof t) return e && void 0 !== e.splitText && e.parentNode && (!e._component || o) ? e.nodeValue != t && (e.nodeValue = t) : (i = document.createTextNode(t), e && (e.parentNode && e.parentNode.replaceChild(i, e), g(e, !0))), i.__preactattr_ = !0, i; + var s = t.nodeName; + if ("function" == typeof s) return S(e, t, n, r); + if (M = "svg" === s || "foreignObject" !== s && M, s = String(s), (!e || !u(e, s)) && (i = f(s, M), e)) { + for (; e.firstChild;) i.appendChild(e.firstChild); + e.parentNode && e.parentNode.replaceChild(i, e), g(e, !0) + } + var c = i.firstChild, + l = i.__preactattr_, + m = t.children; + if (null == l) { + l = i.__preactattr_ = {}; + for (var p = i.attributes, d = p.length; d--;) l[p[d].name] = p[d].value + } + return !L && m && 1 === m.length && "string" == typeof m[0] && null != c && void 0 !== c.splitText && null == c.nextSibling ? c.nodeValue != m[0] && (c.nodeValue = m[0]) : (m && m.length || null != c) && b(i, m, n, r, L || null != l.dangerouslySetInnerHTML), w(i, t.attributes, l), M = a, i + } + + function b(e, t, n, r, o) { + var i, a, s, u, l, f = e.childNodes, + p = [], + d = {}, + h = 0, + _ = 0, + y = f.length, + b = 0, + x = t ? t.length : 0; + if (0 !== y) + for (var w = 0; w < y; w++) { + var C = f[w], + j = C.__preactattr_, + O = x && j ? C._component ? C._component.__key : j.key : null; + null != O ? (h++, d[O] = C) : (j || (void 0 !== C.splitText ? !o || C.nodeValue.trim() : o)) && (p[b++] = C) + } + if (0 !== x) + for (var w = 0; w < x; w++) { + u = t[w], l = null; + var O = u.key; + if (null != O) h && void 0 !== d[O] && (l = d[O], d[O] = void 0, h--); + else if (!l && _ < b) + for (i = _; i < b; i++) + if (void 0 !== p[i] && c(a = p[i], u, o)) { + l = a, p[i] = void 0, i === b - 1 && b--, i === _ && _++; + break + } + l = v(l, u, n, r), s = f[w], l && l !== e && l !== s && (null == s ? e.appendChild(l) : l === s.nextSibling ? m(s) : e.insertBefore(l, s)) + } + if (h) + for (var w in d) void 0 !== d[w] && g(d[w], !1); + for (; _ <= b;) void 0 !== (l = p[b--]) && g(l, !1) + } + + function g(e, t) { + var n = e._component; + n ? P(n) : (null != e.__preactattr_ && e.__preactattr_.ref && e.__preactattr_.ref(null), !1 !== t && null != e.__preactattr_ || m(e), x(e)) + } + + function x(e) { + for (e = e.lastChild; e;) { + var t = e.previousSibling; + g(e, !0), e = t + } + } + + function w(e, t, n) { + var r; + for (r in n) t && null != t[r] || null == n[r] || p(e, r, n[r], n[r] = void 0, M); + for (r in t) "children" === r || "innerHTML" === r || r in n && t[r] === ("value" === r || "checked" === r ? e[r] : n[r]) || p(e, r, n[r], n[r] = t[r], M) + } + + function C(e) { + var t = e.constructor.name; + (q[t] || (q[t] = [])).push(e) + } + + function j(e, t, n) { + var r, o = q[e.name]; + if (e.prototype && e.prototype.render ? (r = new e(t, n), B.call(r, t, n)) : (r = new B(t, n), r.constructor = e, r.render = O), o) + for (var i = o.length; i--;) + if (o[i].constructor === e) { + r.nextBase = o[i].nextBase, o.splice(i, 1); + break + } + return r + } + + function O(e, t, n) { + return this.constructor(e, n) + } + + function k(e, t, n, r, o) { + e._disable || (e._disable = !0, (e.__ref = t.ref) && delete t.ref, (e.__key = t.key) && delete t.key, !e.base || o ? e.componentWillMount && e.componentWillMount() : e.componentWillReceiveProps && e.componentWillReceiveProps(t, r), r && r !== e.context && (e.prevContext || (e.prevContext = e.context), e.context = r), e.prevProps || (e.prevProps = e.props), e.props = t, e._disable = !1, 0 !== n && (1 !== n && !1 === E.syncComponentUpdates && e.base ? a(e) : T(e, 1, o)), e.__ref && e.__ref(e)) + } + + function T(e, t, n, r) { + if (!e._disable) { + var o, a, s, c = e.props, + u = e.state, + f = e.context, + m = e.prevProps || c, + p = e.prevState || u, + d = e.prevContext || f, + h = e.base, + v = e.nextBase, + b = h || v, + x = e._component, + w = !1; + if (h && (e.props = m, e.state = p, e.context = d, 2 !== t && e.shouldComponentUpdate && !1 === e.shouldComponentUpdate(c, u, f) ? w = !0 : e.componentWillUpdate && e.componentWillUpdate(c, u, f), e.props = c, e.state = u, e.context = f), e.prevProps = e.prevState = e.prevContext = e.nextBase = null, e._dirty = !1, !w) { + o = e.render(c, u, f), e.getChildContext && (f = i(i({}, f), e.getChildContext())); + var C, O, S = o && o.nodeName; + if ("function" == typeof S) { + var B = l(o); + a = x, a && a.constructor === S && B.key == a.__key ? k(a, B, 1, f, !1) : (C = a, e._component = a = j(S, B, f), a.nextBase = a.nextBase || v, a._parentComponent = e, k(a, B, 0, f, !1), T(a, 1, n, !0)), O = a.base + } else s = b, C = x, C && (s = e._component = null), (b || 1 === t) && (s && (s._component = null), O = y(s, o, f, n || !h, b && b.parentNode, !0)); + if (b && O !== b && a !== x) { + var A = b.parentNode; + A && O !== A && (A.replaceChild(O, b), C || (b._component = null, g(b, !1))) + } + if (C && P(C), e.base = O, O && !r) { + for (var I = e, N = e; N = N._parentComponent;)(I = N).base = O; + O._component = I, O._componentConstructor = I.constructor + } + } + if (!h || n ? F.unshift(e) : w || (e.componentDidUpdate && e.componentDidUpdate(m, p, d), E.afterUpdate && E.afterUpdate(e)), null != e._renderCallbacks) + for (; e._renderCallbacks.length;) e._renderCallbacks.pop().call(e); + D || r || _() + } + } + + function S(e, t, n, r) { + for (var o = e && e._component, i = o, a = e, s = o && e._componentConstructor === t.nodeName, c = s, u = l(t); o && !c && (o = o._parentComponent);) c = o.constructor === t.nodeName; + return o && c && (!r || o._component) ? (k(o, u, 3, n, r), e = o.base) : (i && !s && (P(i), e = a = null), o = j(t.nodeName, u, n), e && !o.nextBase && (o.nextBase = e, a = null), k(o, u, 1, n, r), e = o.base, a && e !== a && (a._component = null, g(a, !1))), e + } + + function P(e) { + E.beforeUnmount && E.beforeUnmount(e); + var t = e.base; + e._disable = !0, e.componentWillUnmount && e.componentWillUnmount(), e.base = null; + var n = e._component; + n ? P(n) : t && (t.__preactattr_ && t.__preactattr_.ref && t.__preactattr_.ref(null), e.nextBase = t, m(t), C(e), x(t)), e.__ref && e.__ref(null) + } + + function B(e, t) { + this._dirty = !0, this.context = t, this.props = e, this.state = this.state || {} + } + + function A(e, t, n) { + return y(n, e, {}, !1, t, !1) + } + n.d(t, "b", function () { + return o + }), n.d(t, "a", function () { + return B + }), n.d(t, "c", function () { + return A + }); + var E = {}, + I = [], + N = [], + R = "function" == typeof Promise ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout, + z = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i, + U = [], + F = [], + D = 0, + M = !1, + L = !1, + q = {}; + i(B.prototype, { + setState: function (e, t) { + var n = this.state; + this.prevState || (this.prevState = i({}, n)), i(n, "function" == typeof e ? e(n, this.props) : e), t && (this._renderCallbacks = this._renderCallbacks || []).push(t), a(this) + }, + forceUpdate: function (e) { + e && (this._renderCallbacks = this._renderCallbacks || []).push(e), T(this, 2) + }, + render: function () {} + }) +}, function (e, t) { + function n(e, t) { + var n = e[1] || "", + o = e[3]; + if (!o) return n; + if (t && "function" == typeof btoa) { + var i = r(o); + return [n].concat(o.sources.map(function (e) { + return "/*# sourceURL=" + o.sourceRoot + e + " */" + })).concat([i]).join("\n") + } + return [n].join("\n") + } + + function r(e) { + return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(e)))) + " */" + } + e.exports = function (e) { + var t = []; + return t.toString = function () { + return this.map(function (t) { + var r = n(t, e); + return t[2] ? "@media " + t[2] + "{" + r + "}" : r + }).join("") + }, t.i = function (e, n) { + "string" == typeof e && (e = [ + [null, e, ""] + ]); + for (var r = {}, o = 0; o < this.length; o++) { + var i = this[o][0]; + "number" == typeof i && (r[i] = !0) + } + for (o = 0; o < e.length; o++) { + var a = e[o]; + "number" == typeof a[0] && r[a[0]] || (n && !a[2] ? a[2] = n : n && (a[2] = "(" + a[2] + ") and (" + n + ")"), t.push(a)) + } + }, t + } +}, function (e, t, n) { + function r(e, t) { + for (var n = 0; n < e.length; n++) { + var r = e[n], + o = d[r.id]; + if (o) { + o.refs++; + for (var i = 0; i < o.parts.length; i++) o.parts[i](r.parts[i]); + for (; i < r.parts.length; i++) o.parts.push(l(r.parts[i], t)) + } else { + for (var a = [], i = 0; i < r.parts.length; i++) a.push(l(r.parts[i], t)); + d[r.id] = { + id: r.id, + refs: 1, + parts: a + } + } + } + } + + function o(e, t) { + for (var n = [], r = {}, o = 0; o < e.length; o++) { + var i = e[o], + a = t.base ? i[0] + t.base : i[0], + s = i[1], + c = i[2], + u = i[3], + l = { + css: s, + media: c, + sourceMap: u + }; + r[a] ? r[a].parts.push(l) : n.push(r[a] = { + id: a, + parts: [l] + }) + } + return n + } + + function i(e, t) { + var n = _(e.insertInto); + if (!n) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); + var r = b[b.length - 1]; + if ("top" === e.insertAt) r ? r.nextSibling ? n.insertBefore(t, r.nextSibling) : n.appendChild(t) : n.insertBefore(t, n.firstChild), b.push(t); + else { + if ("bottom" !== e.insertAt) throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'."); + n.appendChild(t) + } + } + + function a(e) { + if (null === e.parentNode) return !1; + e.parentNode.removeChild(e); + var t = b.indexOf(e); + t >= 0 && b.splice(t, 1) + } + + function s(e) { + var t = document.createElement("style"); + return e.attrs.type = "text/css", u(t, e.attrs), i(e, t), t + } + + function c(e) { + var t = document.createElement("link"); + return e.attrs.type = "text/css", e.attrs.rel = "stylesheet", u(t, e.attrs), i(e, t), t + } + + function u(e, t) { + Object.keys(t).forEach(function (n) { + e.setAttribute(n, t[n]) + }) + } + + function l(e, t) { + var n, r, o, i; + if (t.transform && e.css) { + if (!(i = t.transform(e.css))) return function () {}; + e.css = i + } + if (t.singleton) { + var u = v++; + n = y || (y = s(t)), r = f.bind(null, n, u, !1), o = f.bind(null, n, u, !0) + } else e.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (n = c(t), r = p.bind(null, n, t), o = function () { + a(n), n.href && URL.revokeObjectURL(n.href) + }) : (n = s(t), r = m.bind(null, n), o = function () { + a(n) + }); + return r(e), + function (t) { + if (t) { + if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) return; + r(e = t) + } else o() + } + } + + function f(e, t, n, r) { + var o = n ? "" : r.css; + if (e.styleSheet) e.styleSheet.cssText = x(t, o); + else { + var i = document.createTextNode(o), + a = e.childNodes; + a[t] && e.removeChild(a[t]), a.length ? e.insertBefore(i, a[t]) : e.appendChild(i) + } + } + + function m(e, t) { + var n = t.css, + r = t.media; + if (r && e.setAttribute("media", r), e.styleSheet) e.styleSheet.cssText = n; + else { + for (; e.firstChild;) e.removeChild(e.firstChild); + e.appendChild(document.createTextNode(n)) + } + } + + function p(e, t, n) { + var r = n.css, + o = n.sourceMap, + i = void 0 === t.convertToAbsoluteUrls && o; + (t.convertToAbsoluteUrls || i) && (r = g(r)), o && (r += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */"); + var a = new Blob([r], { + type: "text/css" + }), + s = e.href; + e.href = URL.createObjectURL(a), s && URL.revokeObjectURL(s) + } + var d = {}, + h = function (e) { + var t; + return function () { + return void 0 === t && (t = e.apply(this, arguments)), t + } + }(function () { + return window && document && document.all && !window.atob + }), + _ = function (e) { + var t = {}; + return function (n) { + return void 0 === t[n] && (t[n] = e.call(this, n)), t[n] + } + }(function (e) { + return document.querySelector(e) + }), + y = null, + v = 0, + b = [], + g = n(39); + e.exports = function (e, t) { + if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment"); + t = t || {}, t.attrs = "object" == typeof t.attrs ? t.attrs : {}, t.singleton || (t.singleton = h()), t.insertInto || (t.insertInto = "head"), t.insertAt || (t.insertAt = "bottom"); + var n = o(e, t); + return r(n, t), + function (e) { + for (var i = [], a = 0; a < n.length; a++) { + var s = n[a], + c = d[s.id]; + c.refs--, i.push(c) + } + if (e) { + r(o(e, t), t) + } + for (var a = 0; a < i.length; a++) { + var c = i[a]; + if (0 === c.refs) { + for (var u = 0; u < c.parts.length; u++) c.parts[u](); + delete d[c.id] + } + } + } + }; + var x = function () { + var e = []; + return function (t, n) { + return e[t] = n, e.filter(Boolean).join("\n") + } + }() +}, function (e, t, n) { + ! function (n, r) { + e.exports = t = r() + }(0, function () { + var e = e || function (e, t) { + var n = Object.create || function () { + function e() {} + return function (t) { + var n; + return e.prototype = t, n = new e, e.prototype = null, n + } + }(), + r = {}, + o = r.lib = {}, + i = o.Base = function () { + return { + extend: function (e) { + var t = n(this); + return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () { + t.$super.init.apply(this, arguments) + }), t.init.prototype = t, t.$super = this, t + }, + create: function () { + var e = this.extend(); + return e.init.apply(e, arguments), e + }, + init: function () {}, + mixIn: function (e) { + for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]); + e.hasOwnProperty("toString") && (this.toString = e.toString) + }, + clone: function () { + return this.init.prototype.extend(this) + } + } + }(), + a = o.WordArray = i.extend({ + init: function (e, t) { + e = this.words = e || [], this.sigBytes = void 0 != t ? t : 4 * e.length + }, + toString: function (e) { + return (e || c).stringify(this) + }, + concat: function (e) { + var t = this.words, + n = e.words, + r = this.sigBytes, + o = e.sigBytes; + if (this.clamp(), r % 4) + for (var i = 0; i < o; i++) { + var a = n[i >>> 2] >>> 24 - i % 4 * 8 & 255; + t[r + i >>> 2] |= a << 24 - (r + i) % 4 * 8 + } else + for (var i = 0; i < o; i += 4) t[r + i >>> 2] = n[i >>> 2]; + return this.sigBytes += o, this + }, + clamp: function () { + var t = this.words, + n = this.sigBytes; + t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4) + }, + clone: function () { + var e = i.clone.call(this); + return e.words = this.words.slice(0), e + }, + random: function (t) { + for (var n, r = [], o = 0; o < t; o += 4) { + var i = function (t) { + var t = t, + n = 987654321, + r = 4294967295; + return function () { + n = 36969 * (65535 & n) + (n >> 16) & r, t = 18e3 * (65535 & t) + (t >> 16) & r; + var o = (n << 16) + t & r; + return o /= 4294967296, (o += .5) * (e.random() > .5 ? 1 : -1) + } + }(4294967296 * (n || e.random())); + n = 987654071 * i(), r.push(4294967296 * i() | 0) + } + return new a.init(r, t) + } + }), + s = r.enc = {}, + c = s.Hex = { + stringify: function (e) { + for (var t = e.words, n = e.sigBytes, r = [], o = 0; o < n; o++) { + var i = t[o >>> 2] >>> 24 - o % 4 * 8 & 255; + r.push((i >>> 4).toString(16)), r.push((15 & i).toString(16)) + } + return r.join("") + }, + parse: function (e) { + for (var t = e.length, n = [], r = 0; r < t; r += 2) n[r >>> 3] |= parseInt(e.substr(r, 2), 16) << 24 - r % 8 * 4; + return new a.init(n, t / 2) + } + }, + u = s.Latin1 = { + stringify: function (e) { + for (var t = e.words, n = e.sigBytes, r = [], o = 0; o < n; o++) { + var i = t[o >>> 2] >>> 24 - o % 4 * 8 & 255; + r.push(String.fromCharCode(i)) + } + return r.join("") + }, + parse: function (e) { + for (var t = e.length, n = [], r = 0; r < t; r++) n[r >>> 2] |= (255 & e.charCodeAt(r)) << 24 - r % 4 * 8; + return new a.init(n, t) + } + }, + l = s.Utf8 = { + stringify: function (e) { + try { + return decodeURIComponent(escape(u.stringify(e))) + } catch (e) { + throw new Error("Malformed UTF-8 data") + } + }, + parse: function (e) { + return u.parse(unescape(encodeURIComponent(e))) + } + }, + f = o.BufferedBlockAlgorithm = i.extend({ + reset: function () { + this._data = new a.init, this._nDataBytes = 0 + }, + _append: function (e) { + "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes + }, + _process: function (t) { + var n = this._data, + r = n.words, + o = n.sigBytes, + i = this.blockSize, + s = 4 * i, + c = o / s; + c = t ? e.ceil(c) : e.max((0 | c) - this._minBufferSize, 0); + var u = c * i, + l = e.min(4 * u, o); + if (u) { + for (var f = 0; f < u; f += i) this._doProcessBlock(r, f); + var m = r.splice(0, u); + n.sigBytes -= l + } + return new a.init(m, l) + }, + clone: function () { + var e = i.clone.call(this); + return e._data = this._data.clone(), e + }, + _minBufferSize: 0 + }), + m = (o.Hasher = f.extend({ + cfg: i.extend(), + init: function (e) { + this.cfg = this.cfg.extend(e), this.reset() + }, + reset: function () { + f.reset.call(this), this._doReset() + }, + update: function (e) { + return this._append(e), this._process(), this + }, + finalize: function (e) { + return e && this._append(e), this._doFinalize() + }, + blockSize: 16, + _createHelper: function (e) { + return function (t, n) { + return new e.init(n).finalize(t) + } + }, + _createHmacHelper: function (e) { + return function (t, n) { + return new m.HMAC.init(e, n).finalize(t) + } + } + }), r.algo = {}); + return r + }(Math); + return e + }) +}, function (e, t, n) { + function r(e, t) { + for (var n = e.length; n--;) + if (o(e[n][0], t)) return n; + return -1 + } + var o = n(51); + e.exports = r +}, function (e, t) { + var n = Array.isArray; + e.exports = n +}, function (e, t) { + function n(e) { + return e + } + e.exports = n +}, function (e, t, n) { + var r = n(121); + e.exports = Function.prototype.bind || r +}, function (e, t, n) { + var r = n(30), + o = n(32), + i = o; + i.v1 = r, i.v4 = o, e.exports = i +}, function (e, t, n) { + (function (t) { + var n, r = t.crypto || t.msCrypto; + if (r && r.getRandomValues) { + var o = new Uint8Array(16); + n = function () { + return r.getRandomValues(o), o + } + } + if (!n) { + var i = new Array(16); + n = function () { + for (var e, t = 0; t < 16; t++) 0 == (3 & t) && (e = 4294967296 * Math.random()), i[t] = e >>> ((3 & t) << 3) & 255; + return i + } + } + e.exports = n + }).call(t, n(31)) +}, function (e, t) { + function n(e, t) { + var n = t || 0, + o = r; + return o[e[n++]] + o[e[n++]] + o[e[n++]] + o[e[n++]] + "-" + o[e[n++]] + o[e[n++]] + "-" + o[e[n++]] + o[e[n++]] + "-" + o[e[n++]] + o[e[n++]] + "-" + o[e[n++]] + o[e[n++]] + o[e[n++]] + o[e[n++]] + o[e[n++]] + o[e[n++]] + } + for (var r = [], o = 0; o < 256; ++o) r[o] = (o + 256).toString(16).substr(1); + e.exports = n +}, function (e, t, n) { + "use strict"; + + function r(e) { + return "" === e.trim() ? "" : "/" === e ? "" : e + } + + function o() { + var e = (window.location.href, window.location.pathname), + t = window.location.hash, + n = window.location.hostname, + o = window.location.search, + i = window.location.port, + a = window.location.protocol, + s = "" !== t.trim(), + c = r(e), + u = "" + n + c + o; + if (console.log("Detected itemId", u), s) { + if (t.startsWith("#jc")) return { + itemId: u, + itemProtocol: a, + itemPort: i, + jumpToComment: t.substring(3) + } + } + return { + itemId: u, + itemProtocol: a, + itemPort: i, + jumpToComment: null + } + } + t.a = o +}, function (e, t, n) { + var r = n(40); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + "use strict"; + + function r(e, t, n, r) { + var i = new Request("https://service.just-comments.com/prod/comments/find" + (n ? "/new" : ""), { + method: "POST", + mode: "cors", + redirect: "follow", + headers: new Headers({ + "Content-Type": "application/json", + "x-api-key": e + }), + body: JSON.stringify({ + itemId: t, + lastKey: r + }) + }); + return fetch(i).then(function (e) { + return e.json() + }).then(function (e) { + var t = u()(e.comments.concat(e.nestedComments), [function (e) { + return e.createdAt + }]), + n = s()(t, function (e) { + return e.commentId + }), + r = t.map(function (e) { + return e.replyTo && (e.replyToComment = n[e.replyTo]), e + }); + return { + lastKey: e.lastKey, + comments: o(r) + } + }).catch(function (e) { + throw console.error("Error in getComments", e), e + }) + } + + function o(e) { + var t = u()(e, ["createdAt"]); + return i(f()(t, { + idKey: "commentId", + parentKey: "replyTo", + childrenKey: "children" + })), u()(t, ["sortKey"]).map(function (e) { + return delete e.children, e.level > 5 && (e.level = 5), e + }) + } + + function i(e) { + var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { + sortKey: 1, + level: 0 + }, + n = !0, + r = !1, + o = void 0; + try { + for (var a, s = e[Symbol.iterator](); !(n = (a = s.next()).done); n = !0) { + var c = a.value; + c.sortKey = t.sortKey++, c.level = t.level, t.level++, i(c.children, t), t.level-- + } + } catch (e) { + r = !0, o = e + } finally { + try { + !n && s.return && s.return() + } finally { + if (r) throw o + } + } + } + t.b = r, t.a = o; + var a = n(14), + s = n.n(a), + c = n(21), + u = n.n(c), + l = n(92), + f = n.n(l) +}, function (e, t, n) { + var r = n(41), + o = n(44), + i = o(function (e, t, n) { + r(e, n, t) + }); + e.exports = i +}, function (e, t, n) { + function r(e) { + return "function" == typeof e ? e : null == e ? a : "object" == typeof e ? s(e) ? i(e[0], e[1]) : o(e) : c(e) + } + var o = n(47), + i = n(71), + a = n(6), + s = n(5), + c = n(77); + e.exports = r +}, function (e, t, n) { + function r(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.clear(); ++t < n;) { + var r = e[t]; + this.set(r[0], r[1]) + } + } + var o = n(49), + i = n(50), + a = n(52), + s = n(53), + c = n(54); + r.prototype.clear = o, r.prototype.delete = i, r.prototype.get = a, r.prototype.has = s, r.prototype.set = c, e.exports = r +}, function (e, t, n) { + function r(e, t, n, a, s) { + return e === t || (null == e || null == t || !i(e) && !i(t) ? e !== e && t !== t : o(e, t, n, a, r, s)) + } + var o = n(55), + i = n(67); + e.exports = r +}, function (e, t) { + function n(e, t) { + return function (n) { + return e(t(n)) + } + } + e.exports = n +}, function (e, t, n) { + function r(e) { + return e === e && !o(e) + } + var o = n(69); + e.exports = r +}, function (e, t) { + function n(e, t) { + return function (n) { + return null != n && (n[e] === t && (void 0 !== t || e in Object(n))) + } + } + e.exports = n +}, function (e, t, n) { + var r = n(78), + o = n(79), + i = n(87), + a = n(91), + s = i(function (e, t) { + if (null == e) return []; + var n = t.length; + return n > 1 && a(e, t[0], t[1]) ? t = [] : n > 2 && a(t[0], t[1], t[2]) && (t = [t[0]]), o(e, r(t, 1), []) + }); + e.exports = s +}, function (e, t, n) { + "use strict"; + + function r(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function i(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var a = n(0), + s = n(101), + c = n.n(s), + u = Object.assign || function (e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }, + l = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + f = function (e) { + function t() { + r(this, t); + var e = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); + return e.state.text = "", e.state.email = "", e.state.username = "", e.state.errors = null, e.state.blocked = !1, e + } + return i(t, e), l(t, [{ + key: "render", + value: function (e, t) { + var n = this, + r = e.polyglot, + o = (e.userPic, e.guestForm), + i = e.replyToComment, + s = (e.parentId, t.errors), + u = function (e) { + return s && s[e] ? c.a.error : "" + }; + return Object(a.b)("div", { + className: c.a.comments__form + }, i ? Object(a.b)("div", {}, ["replying to " + i.username]) : null, Object(a.b)("img", { + src: t.userPic || "https://just-comments.com/widget/no-pic.png", + className: c.a.comments__form__img + }), o ? Object(a.b)("input", { + placeholder: r.t("name"), + required: "required", + value: t.username, + className: "comment-username " + c.a.comments__form__name + " " + u("username"), + onInput: function (e) { + return n.setState({ + username: e.target.value + }) + } + }) : null, o ? Object(a.b)("input", { + placeholder: r.t("email"), + type: "email", + value: t.email, + className: "comment-email " + c.a.comments__form__email + " " + u("email"), + onInput: function (e) { + return n.setState({ + email: e.target.value + }) + } + }) : null, Object(a.b)("textarea", { + placeholder: r.t("writeAComment"), + value: t.text, + className: "comment-text " + c.a.comments__form__textarea + " " + u("text"), + onInput: function (e) { + return n.setState({ + text: e.target.value + }) + }, + onKeyDown: function (e) { + e.ctrlKey && 13 == e.keyCode ? n.onSendClick() : e.metaKey && 13 == e.keyCode && n.onSendClick() + } + }), s ? Object(a.b)("div", {}, Object.keys(s).map(function (e) { + return Object(a.b)("p", {}, [s[e]]) + })) : null, Object(a.b)("button", { + tabindex: 0, + role: "button", + className: c.a.comments__form__send, + onClick: this.onSendClick.bind(this), + disabled: this.state.blocked ? "disabled" : "" + }, this.state.blocked ? r.t("sending") : r.t("send")), Object(a.b)("span", { + className: c.a.comments__form__help + }, [r.t("ctrlEnterToSend")])) + } + }, { + key: "onSendClick", + value: function () { + var e = this, + t = this.validate(); + this.setState({ + blocked: !0 + }), null !== t ? this.setState({ + blocked: !1, + errors: t + }) : this.props.checkCaptcha().then(function (t) { + e.props.onSend(u({}, e.state, { + replyToComment: e.props.replyToComment, + parentId: e.props.parentId, + captchaResult: t + })).then(function () { + e.setState({ + blocked: !1, + text: "", + email: "", + username: "", + errors: null + }) + }).catch(function (t) { + e.setState({ + blocked: !1, + errors: { + form: e.props.polyglot.t("networkError") + } + }) + }) + }) + } + }, { + key: "validate", + value: function () { + return this.props.guestForm ? this.validateGuestForm() : this.validateSimpleForm() + } + }, { + key: "validateGuestForm", + value: function () { + var e = this.state, + t = e.email, + n = e.text, + r = e.username; + return t = t.trim(), n = n.trim(), r = r.trim(), r ? this.validateSimpleForm() : { + username: this.props.polyglot.t("usernameIsRequired") + } + } + }, { + key: "validateSimpleForm", + value: function () { + var e = this.state.text; + return e = e.trim(), e ? null : { + text: this.props.polyglot.t("textIsRequired") + } + } + }]), t + }(a.a); + t.a = f +}, function (e, t, n) { + var r = n(7); + e.exports = r.call(Function.call, Object.prototype.hasOwnProperty) +}, function (e, t, n) { + "use strict"; + var r = n(123), + o = n(125), + i = "function" == typeof Symbol && "symbol" == typeof Symbol(), + a = Object.prototype.toString, + s = function (e) { + return "function" == typeof e && "[object Function]" === a.call(e) + }, + c = Object.defineProperty && function () { + var e = {}; + try { + Object.defineProperty(e, "x", { + enumerable: !1, + value: e + }); + for (var t in e) return !1; + return e.x === e + } catch (e) { + return !1 + } + }(), + u = function (e, t, n, r) { + (!(t in e) || s(r) && r()) && (c ? Object.defineProperty(e, t, { + configurable: !0, + enumerable: !1, + value: n, + writable: !0 + }) : e[t] = n) + }, + l = function (e, t) { + var n = arguments.length > 2 ? arguments[2] : {}, + a = r(t); + i && (a = a.concat(Object.getOwnPropertySymbols(t))), o(a, function (r) { + u(e, r, t[r], n[r]) + }) + }; + l.supportsDescriptors = !!c, e.exports = l +}, function (e, t, n) { + "use strict"; + var r = n(7), + o = n(126), + i = r.call(Function.call, String.prototype.replace), + a = /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/, + s = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/; + e.exports = function () { + var e = o.ToString(o.CheckObjectCoercible(this)); + return i(i(e, a, ""), s, "") + } +}, function (e, t, n) { + "use strict"; + var r = Function.prototype.toString, + o = /^\s*class /, + i = function (e) { + try { + var t = r.call(e), + n = t.replace(/\/\/.*\n/g, ""), + i = n.replace(/\/\*[.\s\S]*\*\//g, ""), + a = i.replace(/\n/gm, " ").replace(/ {2}/g, " "); + return o.test(a) + } catch (e) { + return !1 + } + }, + a = function (e) { + try { + return !i(e) && (r.call(e), !0) + } catch (e) { + return !1 + } + }, + s = Object.prototype.toString, + c = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag; + e.exports = function (e) { + if (!e) return !1; + if ("function" != typeof e && "object" != typeof e) return !1; + if (c) return a(e); + if (i(e)) return !1; + var t = s.call(e); + return "[object Function]" === t || "[object GeneratorFunction]" === t + } +}, function (e, t, n) { + "use strict"; + var r = n(25), + o = "​"; + e.exports = function () { + return String.prototype.trim && o.trim() === o ? String.prototype.trim : r + } +}, function (e, t, n) { + "use strict"; + + function r(e) { + var t = e.dataset.jwt, + n = e.dataset.apikey, + r = e.dataset.locale || "en", + o = e.dataset.widgettype || "normal", + i = "true" === e.dataset.allowguests, + a = "true" === e.dataset.recaptcha ? "6Lc9nTEUAAAAABlX72vOhEVdBUX_ULUY88e7Chkl" : void 0, + u = !1; + if (t && (u = !0), u) var m = s()(t), + p = m.userId, + v = m.userPic, + b = m.username, + g = m.userUrl, + x = m.userEmail; + else if (i) var p = "guest", + v = "/widget/no-pic.png", + b = "", + g = "", + x = ""; + var w = Object(f.a)(r), + C = Object(f.b)(r); + return Object(c.c)(Object(c.b)(l.a, { + userId: p, + userPic: v, + username: b, + userUrl: g, + userEmail: x, + isAuthorized: u, + polyglot: C, + ago: w, + locale: r, + allowGuests: i, + widgetType: o, + apiKey: n, + jwt: t, + itemId: d, + itemProtocol: _, + itemPort: y, + jumpToComment: h, + recaptchaSitekey: a + }), e) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.renderWidget = r; + var o = n(29), + i = (n.n(o), n(8)), + a = (n.n(i), n(33)), + s = n.n(a), + c = n(0), + u = n(11), + l = n(36), + f = n(113); + window.jcRecaptchaPromise = new Promise(function (e) { + window.jcOnRecaptchaLoad = function () { + e() + } + }); + for (var m = document.getElementsByClassName("just-comments"), p = Object(u.a)(), d = p.itemId, h = p.jumpToComment, _ = p.itemProtocol, y = p.itemPort, v = 0; v < m.length; v++) r(m[v]) +}, function (e, t) { + ! function (e) { + "use strict"; + + function t(e) { + if ("string" != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e)) throw new TypeError("Invalid character in header field name"); + return e.toLowerCase() + } + + function n(e) { + return "string" != typeof e && (e = String(e)), e + } + + function r(e) { + var t = { + next: function () { + var t = e.shift(); + return { + done: void 0 === t, + value: t + } + } + }; + return y.iterable && (t[Symbol.iterator] = function () { + return t + }), t + } + + function o(e) { + this.map = {}, e instanceof o ? e.forEach(function (e, t) { + this.append(t, e) + }, this) : Array.isArray(e) ? e.forEach(function (e) { + this.append(e[0], e[1]) + }, this) : e && Object.getOwnPropertyNames(e).forEach(function (t) { + this.append(t, e[t]) + }, this) + } + + function i(e) { + if (e.bodyUsed) return Promise.reject(new TypeError("Already read")); + e.bodyUsed = !0 + } + + function a(e) { + return new Promise(function (t, n) { + e.onload = function () { + t(e.result) + }, e.onerror = function () { + n(e.error) + } + }) + } + + function s(e) { + var t = new FileReader, + n = a(t); + return t.readAsArrayBuffer(e), n + } + + function c(e) { + var t = new FileReader, + n = a(t); + return t.readAsText(e), n + } + + function u(e) { + for (var t = new Uint8Array(e), n = new Array(t.length), r = 0; r < t.length; r++) n[r] = String.fromCharCode(t[r]); + return n.join("") + } + + function l(e) { + if (e.slice) return e.slice(0); + var t = new Uint8Array(e.byteLength); + return t.set(new Uint8Array(e)), t.buffer + } + + function f() { + return this.bodyUsed = !1, this._initBody = function (e) { + if (this._bodyInit = e, e) + if ("string" == typeof e) this._bodyText = e; + else if (y.blob && Blob.prototype.isPrototypeOf(e)) this._bodyBlob = e; + else if (y.formData && FormData.prototype.isPrototypeOf(e)) this._bodyFormData = e; + else if (y.searchParams && URLSearchParams.prototype.isPrototypeOf(e)) this._bodyText = e.toString(); + else if (y.arrayBuffer && y.blob && b(e)) this._bodyArrayBuffer = l(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]); + else { + if (!y.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(e) && !g(e)) throw new Error("unsupported BodyInit type"); + this._bodyArrayBuffer = l(e) + } else this._bodyText = ""; + this.headers.get("content-type") || ("string" == typeof e ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : y.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")) + }, y.blob && (this.blob = function () { + var e = i(this); + if (e) return e; + if (this._bodyBlob) return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer])); + if (this._bodyFormData) throw new Error("could not read FormData body as blob"); + return Promise.resolve(new Blob([this._bodyText])) + }, this.arrayBuffer = function () { + return this._bodyArrayBuffer ? i(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(s) + }), this.text = function () { + var e = i(this); + if (e) return e; + if (this._bodyBlob) return c(this._bodyBlob); + if (this._bodyArrayBuffer) return Promise.resolve(u(this._bodyArrayBuffer)); + if (this._bodyFormData) throw new Error("could not read FormData body as text"); + return Promise.resolve(this._bodyText) + }, y.formData && (this.formData = function () { + return this.text().then(d) + }), this.json = function () { + return this.text().then(JSON.parse) + }, this + } + + function m(e) { + var t = e.toUpperCase(); + return x.indexOf(t) > -1 ? t : e + } + + function p(e, t) { + t = t || {}; + var n = t.body; + if (e instanceof p) { + if (e.bodyUsed) throw new TypeError("Already read"); + this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new o(e.headers)), this.method = e.method, this.mode = e.mode, n || null == e._bodyInit || (n = e._bodyInit, e.bodyUsed = !0) + } else this.url = String(e); + if (this.credentials = t.credentials || this.credentials || "omit", !t.headers && this.headers || (this.headers = new o(t.headers)), this.method = m(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && n) throw new TypeError("Body not allowed for GET or HEAD requests"); + this._initBody(n) + } + + function d(e) { + var t = new FormData; + return e.trim().split("&").forEach(function (e) { + if (e) { + var n = e.split("="), + r = n.shift().replace(/\+/g, " "), + o = n.join("=").replace(/\+/g, " "); + t.append(decodeURIComponent(r), decodeURIComponent(o)) + } + }), t + } + + function h(e) { + var t = new o; + return e.split(/\r?\n/).forEach(function (e) { + var n = e.split(":"), + r = n.shift().trim(); + if (r) { + var o = n.join(":").trim(); + t.append(r, o) + } + }), t + } + + function _(e, t) { + t || (t = {}), this.type = "default", this.status = "status" in t ? t.status : 200, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in t ? t.statusText : "OK", this.headers = new o(t.headers), this.url = t.url || "", this._initBody(e) + } + if (!e.fetch) { + var y = { + searchParams: "URLSearchParams" in e, + iterable: "Symbol" in e && "iterator" in Symbol, + blob: "FileReader" in e && "Blob" in e && function () { + try { + return new Blob, !0 + } catch (e) { + return !1 + } + }(), + formData: "FormData" in e, + arrayBuffer: "ArrayBuffer" in e + }; + if (y.arrayBuffer) var v = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], + b = function (e) { + return e && DataView.prototype.isPrototypeOf(e) + }, + g = ArrayBuffer.isView || function (e) { + return e && v.indexOf(Object.prototype.toString.call(e)) > -1 + }; + o.prototype.append = function (e, r) { + e = t(e), r = n(r); + var o = this.map[e]; + this.map[e] = o ? o + "," + r : r + }, o.prototype.delete = function (e) { + delete this.map[t(e)] + }, o.prototype.get = function (e) { + return e = t(e), this.has(e) ? this.map[e] : null + }, o.prototype.has = function (e) { + return this.map.hasOwnProperty(t(e)) + }, o.prototype.set = function (e, r) { + this.map[t(e)] = n(r) + }, o.prototype.forEach = function (e, t) { + for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this) + }, o.prototype.keys = function () { + var e = []; + return this.forEach(function (t, n) { + e.push(n) + }), r(e) + }, o.prototype.values = function () { + var e = []; + return this.forEach(function (t) { + e.push(t) + }), r(e) + }, o.prototype.entries = function () { + var e = []; + return this.forEach(function (t, n) { + e.push([n, t]) + }), r(e) + }, y.iterable && (o.prototype[Symbol.iterator] = o.prototype.entries); + var x = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; + p.prototype.clone = function () { + return new p(this, { + body: this._bodyInit + }) + }, f.call(p.prototype), f.call(_.prototype), _.prototype.clone = function () { + return new _(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new o(this.headers), + url: this.url + }) + }, _.error = function () { + var e = new _(null, { + status: 0, + statusText: "" + }); + return e.type = "error", e + }; + var w = [301, 302, 303, 307, 308]; + _.redirect = function (e, t) { + if (-1 === w.indexOf(t)) throw new RangeError("Invalid status code"); + return new _(null, { + status: t, + headers: { + location: e + } + }) + }, e.Headers = o, e.Request = p, e.Response = _, e.fetch = function (e, t) { + return new Promise(function (n, r) { + var o = new p(e, t), + i = new XMLHttpRequest; + i.onload = function () { + var e = { + status: i.status, + statusText: i.statusText, + headers: h(i.getAllResponseHeaders() || "") + }; + e.url = "responseURL" in i ? i.responseURL : e.headers.get("X-Request-URL"); + var t = "response" in i ? i.response : i.responseText; + n(new _(t, e)) + }, i.onerror = function () { + r(new TypeError("Network request failed")) + }, i.ontimeout = function () { + r(new TypeError("Network request failed")) + }, i.open(o.method, o.url, !0), "include" === o.credentials && (i.withCredentials = !0), "responseType" in i && y.blob && (i.responseType = "blob"), o.headers.forEach(function (e, t) { + i.setRequestHeader(t, e) + }), i.send(void 0 === o._bodyInit ? null : o._bodyInit) + }) + }, e.fetch.polyfill = !0 + } + }("undefined" != typeof self ? self : this) +}, function (e, t, n) { + function r(e, t, n) { + var r = t && n || 0, + o = t || []; + e = e || {}; + var a = void 0 !== e.clockseq ? e.clockseq : c, + f = void 0 !== e.msecs ? e.msecs : (new Date).getTime(), + m = void 0 !== e.nsecs ? e.nsecs : l + 1, + p = f - u + (m - l) / 1e4; + if (p < 0 && void 0 === e.clockseq && (a = a + 1 & 16383), (p < 0 || f > u) && void 0 === e.nsecs && (m = 0), m >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + u = f, l = m, c = a, f += 122192928e5; + var d = (1e4 * (268435455 & f) + m) % 4294967296; + o[r++] = d >>> 24 & 255, o[r++] = d >>> 16 & 255, o[r++] = d >>> 8 & 255, o[r++] = 255 & d; + var h = f / 4294967296 * 1e4 & 268435455; + o[r++] = h >>> 8 & 255, o[r++] = 255 & h, o[r++] = h >>> 24 & 15 | 16, o[r++] = h >>> 16 & 255, o[r++] = a >>> 8 | 128, o[r++] = 255 & a; + for (var _ = e.node || s, y = 0; y < 6; ++y) o[r + y] = _[y]; + return t || i(o) + } + var o = n(9), + i = n(10), + a = o(), + s = [1 | a[0], a[1], a[2], a[3], a[4], a[5]], + c = 16383 & (a[6] << 8 | a[7]), + u = 0, + l = 0; + e.exports = r +}, 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) { + function r(e, t, n) { + var r = t && n || 0; + "string" == typeof e && (t = "binary" == e ? new Array(16) : null, e = null), e = e || {}; + var a = e.random || (e.rng || o)(); + if (a[6] = 15 & a[6] | 64, a[8] = 63 & a[8] | 128, t) + for (var s = 0; s < 16; ++s) t[r + s] = a[s]; + return t || i(a) + } + var o = n(9), + i = n(10); + e.exports = r +}, function (e, t, n) { + "use strict"; + + function r(e) { + this.message = e + } + var o = n(34); + r.prototype = new Error, r.prototype.name = "InvalidTokenError", e.exports = function (e, t) { + if ("string" != typeof e) throw new r("Invalid token specified"); + t = t || {}; + var n = !0 === t.header ? 0 : 1; + try { + return JSON.parse(o(e.split(".")[n])) + } catch (e) { + throw new r("Invalid token specified: " + e.message) + } + }, e.exports.InvalidTokenError = r +}, function (e, t, n) { + function r(e) { + return decodeURIComponent(o(e).replace(/(.)/g, function (e, t) { + var n = t.charCodeAt(0).toString(16).toUpperCase(); + return n.length < 2 && (n = "0" + n), "%" + n + })) + } + var o = n(35); + e.exports = function (e) { + var t = e.replace(/-/g, "+").replace(/_/g, "/"); + switch (t.length % 4) { + case 0: + break; + case 2: + t += "=="; + break; + case 3: + t += "="; + break; + default: + throw "Illegal base64url string!" + } + try { + return r(t) + } catch (e) { + return o(t) + } + } +}, function (e, t) { + function n(e) { + this.message = e + } + + function r(e) { + var t = String(e).replace(/=+$/, ""); + if (t.length % 4 == 1) throw new n("'atob' failed: The string to be decoded is not correctly encoded."); + for (var r, i, a = 0, s = 0, c = ""; i = t.charAt(s++); ~i && (r = a % 4 ? 64 * r + i : i, a++ % 4) ? c += String.fromCharCode(255 & r >> (-2 * a & 6)) : 0) i = o.indexOf(i); + return c + } + var o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + n.prototype = new Error, n.prototype.name = "InvalidCharacterError", e.exports = "undefined" != typeof window && window.atob && window.atob.bind(window) || r +}, function (e, t, n) { + "use strict"; + + function r(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function i(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var a = n(0), + s = n(37), + c = n.n(s), + u = n(12), + l = n.n(u), + f = n(13), + m = n(93), + p = (n(11), n(94)), + d = n(100), + h = n(22), + _ = n(103), + y = n(106), + v = n(112), + b = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + g = function (e) { + function t(e) { + r(this, t); + var n = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); + return n.state = { + count: 0, + loading: !0, + comments: [], + lastKey: null, + jumpToComment: e.jumpToComment + }, n + } + return i(t, e), b(t, [{ + key: "checkCaptcha", + value: function () { + return this.recaptcha ? this.recaptcha.check() : Promise.resolve() + } + }, { + key: "render", + value: function (e, t) { + var n = this, + r = (e.userId, e.userPic), + o = (e.username, e.userUrl, e.userEmail, e.isAuthorized), + i = e.polyglot, + s = e.ago, + u = e.locale, + f = e.allowGuests, + m = (e.widgetType, e.apiKey, e.jwt, e.recaptchaSitekey), + p = t.count, + d = t.loading, + b = t.comments, + g = t.lastKey, + x = t.jumpToComment, + w = o || !o && f; + return Object(a.b)("div", { + className: c.a.comments + }, [Object(a.b)("div", { + className: c.a.comments__header + }, Object(a.b)("h3", {}, ["" + i.t("comments"), p > 0 ? " (" + p + ")" : ""])), d ? Object(a.b)("div", { + className: c.a.comments__content__loading + }, [i.t("loadingComments")]) : Object(a.b)("div", { + key: "content", + className: c.a.comments__content + }, b.length > 0 ? b.map(function (e, t) { + return e.hidden && 0 === (e.nestedComments || []).length ? null : Object(a.b)(y.a, { + polyglot: i, + comment: e, + ago: s, + locale: u, + userPic: r, + highlight: x === e.commentId, + guestForm: f && !o, + onFormSend: function () { + return n.onFormSend.apply(n, arguments) + }, + parentId: e.parentId || e.commentId, + onHighlight: function (e) { + return n.setState({ + jumpToComment: e + }) + }, + checkCaptcha: n.checkCaptcha.bind(n) + }) + }) : Object(a.b)("p", {}, [i.t("noComments")]), g ? Object(a.b)(_.a, { + onLoadMore: function () { + return n.onLoadMore.apply(n, arguments) + }, + polyglot: i + }) : null), m ? Object(a.b)(v.a, { + sitekey: m, + ref: function (e) { + return n.recaptcha = e + } + }) : null, w ? Object(a.b)("div", { + className: c.a.comments__footer + }, [Object(a.b)(h.a, { + polyglot: i, + userPic: r, + guestForm: f && !o, + onSend: function () { + return n.onFormSend.apply(n, arguments) + }, + checkCaptcha: this.checkCaptcha.bind(this) + }), ]) : null]) + } + }, { + key: "componentDidMount", + value: function () { + var e = this, + t = this.props, + n = t.widgetType, + r = t.apiKey, + o = t.itemId, + i = "normal" !== n; + Object(f.b)(r, o, i, this.state.lastKey).then(function (t) { + e.tryScroll = !0, e.setState({ + count: t.comments.filter(function (e) { + return !e.hidden || e.hidden && e.nestedComments.length > 0 + }).length, + loading: !1, + comments: t.comments, + lastKey: t.lastKey + }) + }) + } + }, { + key: "loadMore", + value: function () { + var e = this, + t = this.props, + n = t.widgetType, + r = t.apiKey, + o = t.itemId, + i = "normal" !== n; + this.tryScroll = !1, Object(f.b)(r, o, i, this.state.lastKey).then(function (t) { + e.tryScroll = !0, e.setState({ + count: t.comments.length, + loading: !1, + comments: e.state.comments.concat(t.comments), + lastKey: t.lastKey + }) + }) + } + }, { + key: "componentDidUpdate", + value: function () { + var e = this.state.jumpToComment; + this.tryScroll && (e && setTimeout(function () { + if (!document.getElementById("jc" + e)) return void console.log("Could not scroll: #jc" + e + " not found"); + document.getElementById("jc" + e).scrollIntoView() + }, 50), this.tryScroll = !1) + } + }, { + key: "createComment", + value: function (e, t, n, r, o, i) { + var a = this, + s = this.props, + c = s.isAuthorized, + u = s.allowGuests, + l = s.apiKey, + f = this.props, + h = f.jwt, + _ = f.itemId, + y = f.itemProtocol, + v = f.itemPort, + b = f.userId, + g = f.userUrl, + x = f.userPic, + w = f.userEmail, + C = f.username; + return !c && u && (h = Object(p.a)(t, n, l), C = t), Object(m.a)(l, h, _, { + itemProtocol: y, + itemPort: v, + message: e, + replyToComment: r, + parentId: o, + captchaResult: i + }, { + username: C, + userId: b, + userUrl: g, + userPic: x, + userEmail: w + }).then(function (e) { + a.tryScroll = !0, a.setState({ + comments: Object(d.a)(a.state.comments, e), + count: a.state.count + 1, + jumpToComment: e.commentId + }) + }) + } + }, { + key: "onFormSend", + value: function (e) { + var t = e.text, + n = e.username, + r = e.email, + o = e.replyToComment, + i = e.parentId, + a = e.captchaResult; + return this.createComment(t, n, r, o, i, a) + } + }, { + key: "onLoadMore", + value: function () { + this.loadMore() + } + }]), t + }(a.a); + t.a = g +}, function (e, t, n) { + var r = n(38); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, '.src-ui-Comments__comments--3vUKo{margin:0 auto;font-size:1rem;line-height:1.6;box-sizing:border-box}.src-ui-Comments__comments__credit--1psGW{margin-top:20px;text-align:center}.src-ui-Comments__comments__credit--1psGW,.src-ui-Comments__comments__credit--1psGW a{font-size:13px;color:#303030;box-sizing:inherit}.src-ui-Comments__comments__content--5WQke{font-size:inherit;box-sizing:inherit}.src-ui-Comments__comments__content__loading--3jcmi:after{overflow:hidden;display:inline-block;vertical-align:bottom;-webkit-animation:src-ui-Comments__ellipsis--3WEZR steps(4) .9s infinite;animation:src-ui-Comments__ellipsis--3WEZR steps(4) .9s infinite;content:"\\2026";width:0;box-sizing:inherit}@keyframes src-ui-Comments__ellipsis--3WEZR{to{width:1.25em}}@-webkit-keyframes src-ui-Comments__ellipsis--3WEZR{to{width:1.25em}}.src-ui-Comments__comments__header--imyvY{font-size:inherit;box-sizing:inherit}.src-ui-Comments__comments__header--imyvY h3{font-size:1.6rem;box-sizing:inherit}.src-ui-Comments__comments__footer--3Z8Zz{padding-top:15px;max-width:100%;box-sizing:inherit}', ""]), t.locals = { + comments: "src-ui-Comments__comments--3vUKo", + comments__credit: "src-ui-Comments__comments__credit--1psGW", + comments__content: "src-ui-Comments__comments__content--5WQke", + comments__content__loading: "src-ui-Comments__comments__content__loading--3jcmi", + ellipsis: "src-ui-Comments__ellipsis--3WEZR", + comments__header: "src-ui-Comments__comments__header--imyvY", + comments__footer: "src-ui-Comments__comments__footer--3Z8Zz" + } +}, function (e, t) { + e.exports = function (e) { + var t = "undefined" != typeof window && window.location; + if (!t) throw new Error("fixUrls requires window.location"); + if (!e || "string" != typeof e) return e; + var n = t.protocol + "//" + t.host, + r = n + t.pathname.replace(/\/[^\/]*$/, "/"); + return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (e, t) { + var o = t.trim().replace(/^"(.*)"$/, function (e, t) { + return t + }).replace(/^'(.*)'$/, function (e, t) { + return t + }); + if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)) return e; + var i; + return i = 0 === o.indexOf("//") ? o : 0 === o.indexOf("/") ? n + o : r + o.replace(/^\.\//, ""), "url(" + JSON.stringify(i) + ")" + }) + } +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, ".src-index__link--SgP13,.src-index__link--SgP13:hover{padding:0;background-color:initial}.src-index__link--SgP13:hover{color:initial}", ""]), t.locals = { + link: "src-index__link--SgP13" + } +}, function (e, t, n) { + function r(e, t, n) { + "__proto__" == t && o ? o(e, t, { + configurable: !0, + enumerable: !0, + value: n, + writable: !0 + }) : e[t] = n + } + var o = n(42); + e.exports = r +}, function (e, t, n) { + var r = n(43), + o = function () { + try { + var e = r(Object, "defineProperty"); + return e({}, "", {}), e + } catch (e) {} + }(); + e.exports = o +}, function (e, t) { + function n(e, t) { + return null == e ? void 0 : e[t] + } + e.exports = n +}, function (e, t, n) { + function r(e, t) { + return function (n, r) { + var c = s(n) ? o : i, + u = t ? t() : {}; + return c(n, e, a(r, 2), u) + } + } + var o = n(45), + i = n(46), + a = n(15), + s = n(5); + e.exports = r +}, function (e, t) { + function n(e, t, n, r) { + for (var o = -1, i = null == e ? 0 : e.length; ++o < i;) { + var a = e[o]; + t(r, a, n(a), e) + } + return r + } + e.exports = n +}, function (e, t) { + function n(e, t, n, r) { + for (var o = -1, i = null == e ? 0 : e.length; ++o < i;) { + var a = e[o]; + t(r, a, n(a), e) + } + return r + } + e.exports = n +}, function (e, t, n) { + function r(e) { + var t = i(e); + return 1 == t.length && t[0][2] ? a(t[0][0], t[0][1]) : function (n) { + return n === e || o(n, e, t) + } + } + var o = n(48), + i = n(68), + a = n(20); + e.exports = r +}, function (e, t, n) { + function r(e, t, n, r) { + var c = n.length, + u = c, + l = !r; + if (null == e) return !u; + for (e = Object(e); c--;) { + var f = n[c]; + if (l && f[2] ? f[1] !== e[f[0]] : !(f[0] in e)) return !1 + } + for (; ++c < u;) { + f = n[c]; + var m = f[0], + p = e[m], + d = f[1]; + if (l && f[2]) { + if (void 0 === p && !(m in e)) return !1 + } else { + var h = new o; + if (r) var _ = r(p, d, m, e, t, h); + if (!(void 0 === _ ? i(d, p, a | s, r, h) : _)) return !1 + } + } + return !0 + } + var o = n(16), + i = n(17), + a = 1, + s = 2; + e.exports = r +}, function (e, t) { + function n() { + this.__data__ = [], this.size = 0 + } + e.exports = n +}, function (e, t, n) { + function r(e) { + var t = this.__data__, + n = o(t, e); + return !(n < 0) && (n == t.length - 1 ? t.pop() : a.call(t, n, 1), --this.size, !0) + } + var o = n(4), + i = Array.prototype, + a = i.splice; + e.exports = r +}, function (e, t) { + function n(e, t) { + return e === t || e !== e && t !== t + } + e.exports = n +}, function (e, t, n) { + function r(e) { + var t = this.__data__, + n = o(t, e); + return n < 0 ? void 0 : t[n][1] + } + var o = n(4); + e.exports = r +}, function (e, t, n) { + function r(e) { + return o(this.__data__, e) > -1 + } + var o = n(4); + e.exports = r +}, function (e, t, n) { + function r(e, t) { + var n = this.__data__, + r = o(n, e); + return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this + } + var o = n(4); + e.exports = r +}, function (e, t, n) { + function r(e, t, n, r, _, v) { + var b = u(e), + g = u(t), + x = b ? d : c(e), + w = g ? d : c(t); + x = x == p ? h : x, w = w == p ? h : w; + var C = x == h, + j = w == h, + O = x == w; + if (O && l(e)) { + if (!l(t)) return !1; + b = !0, C = !1 + } + if (O && !C) return v || (v = new o), b || f(e) ? i(e, t, n, r, _, v) : a(e, t, x, n, r, _, v); + if (!(n & m)) { + var k = C && y.call(e, "__wrapped__"), + T = j && y.call(t, "__wrapped__"); + if (k || T) { + var S = k ? e.value() : e, + P = T ? t.value() : t; + return v || (v = new o), _(S, P, n, r, v) + } + } + return !!O && (v || (v = new o), s(e, t, n, r, _, v)) + } + var o = n(16), + i = n(56), + a = n(61), + s = n(62), + c = n(64), + u = n(5), + l = n(65), + f = n(66), + m = 1, + p = "[object Arguments]", + d = "[object Array]", + h = "[object Object]", + _ = Object.prototype, + y = _.hasOwnProperty; + e.exports = r +}, function (e, t, n) { + function r(e, t, n, r, u, l) { + var f = n & s, + m = e.length, + p = t.length; + if (m != p && !(f && p > m)) return !1; + var d = l.get(e); + if (d && l.get(t)) return d == t; + var h = -1, + _ = !0, + y = n & c ? new o : void 0; + for (l.set(e, t), l.set(t, e); ++h < m;) { + var v = e[h], + b = t[h]; + if (r) var g = f ? r(b, v, h, t, e, l) : r(v, b, h, e, t, l); + if (void 0 !== g) { + if (g) continue; + _ = !1; + break + } + if (y) { + if (!i(t, function (e, t) { + if (!a(y, t) && (v === e || u(v, e, n, r, l))) return y.push(t) + })) { + _ = !1; + break + } + } else if (v !== b && !u(v, b, n, r, l)) { + _ = !1; + break + } + } + return l.delete(e), l.delete(t), _ + } + var o = n(57), + i = n(58), + a = n(59), + s = 1, + c = 2; + e.exports = r +}, function (e, t, n) { + function r() { + if (!arguments.length) return []; + var e = arguments[0]; + return o(e) ? e : [e] + } + var o = n(5); + e.exports = r +}, function (e, t) { + function n(e, t) { + for (var n = -1, r = null == e ? 0 : e.length; ++n < r;) + if (t(e[n], n, e)) return !0; + return !1 + } + e.exports = n +}, function (e, t, n) { + function r(e, t) { + return !!(null == e ? 0 : e.length) && o(e, t, 0) > -1 + } + var o = n(60); + e.exports = r +}, function (e, t) { + function n(e, t, n) { + for (var r = n - 1, o = e.length; ++r < o;) + if (e[r] === t) return r; + return -1 + } + e.exports = n +}, function (e, t) { + function n(e, t) { + return e === t || e !== e && t !== t + } + e.exports = n +}, function (e, t, n) { + function r(e, t, n, r, a, c) { + var u = n & i, + l = o(e), + f = l.length; + if (f != o(t).length && !u) return !1; + for (var m = f; m--;) { + var p = l[m]; + if (!(u ? p in t : s.call(t, p))) return !1 + } + var d = c.get(e); + if (d && c.get(t)) return d == t; + var h = !0; + c.set(e, t), c.set(t, e); + for (var _ = u; ++m < f;) { + p = l[m]; + var y = e[p], + v = t[p]; + if (r) var b = u ? r(v, y, p, t, e, c) : r(y, v, p, e, t, c); + if (!(void 0 === b ? y === v || a(y, v, n, r, c) : b)) { + h = !1; + break + } + _ || (_ = "constructor" == p) + } + if (h && !_) { + var g = e.constructor, + x = t.constructor; + g != x && "constructor" in e && "constructor" in t && !("function" == typeof g && g instanceof g && "function" == typeof x && x instanceof x) && (h = !1) + } + return c.delete(e), c.delete(t), h + } + var o = n(63), + i = 1, + a = Object.prototype, + s = a.hasOwnProperty; + e.exports = r +}, function (e, t, n) { + var r = n(18), + o = r(Object.keys, Object); + e.exports = o +}, function (e, t) { + function n(e) { + return o.call(e) + } + var r = Object.prototype, + o = r.toString; + e.exports = n +}, function (e, t) { + function n() { + return !1 + } + e.exports = n +}, function (e, t) { + function n() { + return !1 + } + e.exports = n +}, function (e, t) { + function n(e) { + return null != e && "object" == typeof e + } + e.exports = n +}, function (e, t, n) { + function r(e) { + for (var t = i(e), n = t.length; n--;) { + var r = t[n], + a = e[r]; + t[n] = [r, a, o(a)] + } + return t + } + var o = n(19), + i = n(70); + e.exports = r +}, function (e, t) { + function n(e) { + var t = typeof e; + return null != e && ("object" == t || "function" == t) + } + e.exports = n +}, function (e, t, n) { + var r = n(18), + o = r(Object.keys, Object); + e.exports = o +}, function (e, t, n) { + function r(e, t) { + return s(e) && c(t) ? u(l(e), t) : function (n) { + var r = i(n, e); + return void 0 === r && r === t ? a(n, e) : o(t, r, f | m) + } + } + var o = n(17), + i = n(72), + a = n(74), + s = n(75), + c = n(19), + u = n(20), + l = n(76), + f = 1, + m = 2; + e.exports = r +}, function (e, t, n) { + function r(e, t, n) { + var r = null == e ? void 0 : o(e, t); + return void 0 === r ? n : r + } + var o = n(73); + e.exports = r +}, function (e, t) { + function n(e, t) { + return null == e ? void 0 : e[t] + } + e.exports = n +}, function (e, t) { + function n(e, t) { + return null != e && t in Object(e) + } + e.exports = n +}, function (e, t) { + function n(e) { + return e + } + e.exports = n +}, function (e, t) { + function n(e) { + return e + } + e.exports = n +}, function (e, t) { + function n(e) { + return function (t) { + return null == t ? void 0 : t[e] + } + } + e.exports = n +}, function (e, t) { + function n(e) { + return e && e.length ? e[0] : void 0 + } + e.exports = n +}, function (e, t, n) { + function r(e, t, n) { + var r = -1; + t = o(t.length ? t : [l], c(i)); + var f = a(e, function (e, n, i) { + return { + criteria: o(t, function (t) { + return t(e) + }), + index: ++r, + value: e + } + }); + return s(f, function (e, t) { + return u(e, t, n) + }) + } + var o = n(80), + i = n(15), + a = n(81), + s = n(82), + c = n(83), + u = n(84), + l = n(6); + e.exports = r +}, function (e, t) { + function n(e, t) { + for (var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r;) o[n] = t(e[n], n, e); + return o + } + e.exports = n +}, function (e, t) { + function n(e, t) { + for (var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r;) o[n] = t(e[n], n, e); + return o + } + e.exports = n +}, function (e, t) { + function n(e, t) { + var n = e.length; + for (e.sort(t); n--;) e[n] = e[n].value; + return e + } + e.exports = n +}, function (e, t) { + function n(e) { + return function (t) { + return e(t) + } + } + e.exports = n +}, function (e, t, n) { + function r(e, t, n) { + for (var r = -1, i = e.criteria, a = t.criteria, s = i.length, c = n.length; ++r < s;) { + var u = o(i[r], a[r]); + if (u) { + if (r >= c) return u; + return u * ("desc" == n[r] ? -1 : 1) + } + } + return e.index - t.index + } + var o = n(85); + e.exports = r +}, function (e, t, n) { + function r(e, t) { + if (e !== t) { + var n = void 0 !== e, + r = null === e, + i = e === e, + a = o(e), + s = void 0 !== t, + c = null === t, + u = t === t, + l = o(t); + if (!c && !l && !a && e > t || a && s && u && !c && !l || r && s && u || !n && u || !i) return 1; + if (!r && !a && !l && e < t || l && n && i && !r && !a || c && n && i || !s && i || !u) return -1 + } + return 0 + } + var o = n(86); + e.exports = r +}, function (e, t) { + function n() { + return !1 + } + e.exports = n +}, function (e, t, n) { + function r(e, t) { + return a(i(e, t, o), e + "") + } + var o = n(6), + i = n(88), + a = n(90); + e.exports = r +}, function (e, t, n) { + function r(e, t, n) { + return t = i(void 0 === t ? e.length - 1 : t, 0), + function () { + for (var r = arguments, a = -1, s = i(r.length - t, 0), c = Array(s); ++a < s;) c[a] = r[t + a]; + a = -1; + for (var u = Array(t + 1); ++a < t;) u[a] = r[a]; + return u[t] = n(c), o(e, this, u) + } + } + var o = n(89), + i = Math.max; + e.exports = r +}, function (e, t) { + function n(e, t, n) { + switch (n.length) { + case 0: + return e.call(t); + case 1: + return e.call(t, n[0]); + case 2: + return e.call(t, n[0], n[1]); + case 3: + return e.call(t, n[0], n[1], n[2]) + } + return e.apply(t, n) + } + e.exports = n +}, function (e, t) { + function n(e) { + return e + } + e.exports = n +}, function (e, t) { + function n() { + return !1 + } + e.exports = n +}, function (e, t, n) { + var r, o, i; + ! function (n, a) { + o = [], r = a, void 0 !== (i = "function" == typeof r ? r.apply(t, o) : r) && (e.exports = i) + }(0, function () { + "use strict"; + return function (e, t) { + t = t || {}; + for (var n, r, o, i = t.idKey || "id", a = t.parentKey || "parent", s = t.childrenKey || "children", c = [], u = {}, l = 0, f = e.length; l < f; l++) n = e[l], r = n[i], o = n[a] || 0, u[r] = u[r] || [], n[s] = u[r], 0 != o ? (u[o] = u[o] || [], u[o].push(n)) : c.push(n); + return c + } + }) +}, function (e, t, n) { + "use strict"; + + function r(e, t, n, r, o) { + var a = r.message, + s = r.replyToComment, + c = r.parentId, + u = r.captchaResult, + l = r.itemProtocol, + f = r.itemPort, + m = (o.username, o.userPic, o.userId, o.userUrl, o.userEmail, i.a.v4()), + p = new Request("https://service.just-comments.com/prod/comments/create", { + method: "POST", + mode: "cors", + redirect: "follow", + headers: new Headers({ + "Content-Type": "application/json", + Authorization: "Bearer " + t, + "x-api-key": e + }), + body: JSON.stringify({ + itemId: n, + itemProtocol: l, + itemPort: f, + commentId: m, + parentId: c, + replyTo: s ? s.commentId : void 0, + message: a, + captchaResult: u + }) + }); + return fetch(p).then(function (e) { + return e.json() + }).then(function (e) { + return e.replyToComment = s, e + }) + } + t.a = r; + var o = n(8), + i = n.n(o) +}, function (e, t, n) { + "use strict"; + + function r(e) { + var t = a.a.stringify(e); + return t = t.replace(/=+$/, ""), t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_") + } + + function o(e, t, n) { + var o = { + alg: "HS256", + typ: "JWT" + }, + i = c.a.parse(JSON.stringify(o)), + a = r(i), + s = { + apiKey: n, + userId: "guest", + userPic: f, + userUrl: null, + userEmail: t, + username: e + }, + u = c.a.parse(JSON.stringify(s)), + p = r(u), + d = a + "." + p, + h = l()(d, m); + return h = r(h), d + "." + h + } + t.a = o; + var i = n(95), + a = n.n(i), + s = n(96), + c = n.n(s), + u = n(97), + l = n.n(u), + f = "https://just-comments.com/widget/no-pic.png", + m = "guest" +}, function (e, t, n) { + ! function (r, o) { + e.exports = t = o(n(3)) + }(0, function (e) { + return function () { + function t(e, t, n) { + for (var r = [], i = 0, a = 0; a < t; a++) + if (a % 4) { + var s = n[e.charCodeAt(a - 1)] << a % 4 * 2, + c = n[e.charCodeAt(a)] >>> 6 - a % 4 * 2; + r[i >>> 2] |= (s | c) << 24 - i % 4 * 8, i++ + } + return o.create(r, i) + } + var n = e, + r = n.lib, + o = r.WordArray, + i = n.enc; + i.Base64 = { + stringify: function (e) { + var t = e.words, + n = e.sigBytes, + r = this._map; + e.clamp(); + for (var o = [], i = 0; i < n; i += 3) + for (var a = t[i >>> 2] >>> 24 - i % 4 * 8 & 255, s = t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255, c = t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, u = a << 16 | s << 8 | c, l = 0; l < 4 && i + .75 * l < n; l++) o.push(r.charAt(u >>> 6 * (3 - l) & 63)); + var f = r.charAt(64); + if (f) + for (; o.length % 4;) o.push(f); + return o.join("") + }, + parse: function (e) { + var n = e.length, + r = this._map, + o = this._reverseMap; + if (!o) { + o = this._reverseMap = []; + for (var i = 0; i < r.length; i++) o[r.charCodeAt(i)] = i + } + var a = r.charAt(64); + if (a) { + var s = e.indexOf(a); - 1 !== s && (n = s) + } + return t(e, n, o) + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" + } + }(), e.enc.Base64 + }) +}, function (e, t, n) { + ! function (r, o) { + e.exports = t = o(n(3)) + }(0, function (e) { + return e.enc.Utf8 + }) +}, function (e, t, n) { + ! function (r, o, i) { + e.exports = t = o(n(3), n(98), n(99)) + }(0, function (e) { + return e.HmacSHA256 + }) +}, function (e, t, n) { + ! function (r, o) { + e.exports = t = o(n(3)) + }(0, function (e) { + return function (t) { + var n = e, + r = n.lib, + o = r.WordArray, + i = r.Hasher, + a = n.algo, + s = [], + c = []; + ! function () { + function e(e) { + return 4294967296 * (e - (0 | e)) | 0 + } + for (var n = 2, r = 0; r < 64;)(function (e) { + for (var n = t.sqrt(e), r = 2; r <= n; r++) + if (!(e % r)) return !1; + return !0 + })(n) && (r < 8 && (s[r] = e(t.pow(n, .5))), c[r] = e(t.pow(n, 1 / 3)), r++), n++ + }(); + var u = [], + l = a.SHA256 = i.extend({ + _doReset: function () { + this._hash = new o.init(s.slice(0)) + }, + _doProcessBlock: function (e, t) { + for (var n = this._hash.words, r = n[0], o = n[1], i = n[2], a = n[3], s = n[4], l = n[5], f = n[6], m = n[7], p = 0; p < 64; p++) { + if (p < 16) u[p] = 0 | e[t + p]; + else { + var d = u[p - 15], + h = (d << 25 | d >>> 7) ^ (d << 14 | d >>> 18) ^ d >>> 3, + _ = u[p - 2], + y = (_ << 15 | _ >>> 17) ^ (_ << 13 | _ >>> 19) ^ _ >>> 10; + u[p] = h + u[p - 7] + y + u[p - 16] + } + var v = s & l ^ ~s & f, + b = r & o ^ r & i ^ o & i, + g = (r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22), + x = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), + w = m + x + v + c[p] + u[p], + C = g + b; + m = f, f = l, l = s, s = a + w | 0, a = i, i = o, o = r, r = w + C | 0 + } + n[0] = n[0] + r | 0, n[1] = n[1] + o | 0, n[2] = n[2] + i | 0, n[3] = n[3] + a | 0, n[4] = n[4] + s | 0, n[5] = n[5] + l | 0, n[6] = n[6] + f | 0, n[7] = n[7] + m | 0 + }, + _doFinalize: function () { + var e = this._data, + n = e.words, + r = 8 * this._nDataBytes, + o = 8 * e.sigBytes; + return n[o >>> 5] |= 128 << 24 - o % 32, n[14 + (o + 64 >>> 9 << 4)] = t.floor(r / 4294967296), n[15 + (o + 64 >>> 9 << 4)] = r, e.sigBytes = 4 * n.length, this._process(), this._hash + }, + clone: function () { + var e = i.clone.call(this); + return e._hash = this._hash.clone(), e + } + }); + n.SHA256 = i._createHelper(l), n.HmacSHA256 = i._createHmacHelper(l) + }(Math), e.SHA256 + }) +}, function (e, t, n) { + ! function (r, o) { + e.exports = t = o(n(3)) + }(0, function (e) { + ! function () { + var t = e, + n = t.lib, + r = n.Base, + o = t.enc, + i = o.Utf8, + a = t.algo; + a.HMAC = r.extend({ + init: function (e, t) { + e = this._hasher = new e.init, "string" == typeof t && (t = i.parse(t)); + var n = e.blockSize, + r = 4 * n; + t.sigBytes > r && (t = e.finalize(t)), t.clamp(); + for (var o = this._oKey = t.clone(), a = this._iKey = t.clone(), s = o.words, c = a.words, u = 0; u < n; u++) s[u] ^= 1549556828, c[u] ^= 909522486; + o.sigBytes = a.sigBytes = r, this.reset() + }, + reset: function () { + var e = this._hasher; + e.reset(), e.update(this._iKey) + }, + update: function (e) { + return this._hasher.update(e), this + }, + finalize: function (e) { + var t = this._hasher, + n = t.finalize(e); + return t.reset(), t.finalize(this._oKey.clone().concat(n)) + } + }) + }() + }) +}, function (e, t, n) { + "use strict"; + + function r(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, t) { + return Object(i.a)([].concat(r(e), [t])) + } + t.a = o; + var i = n(13) +}, function (e, t, n) { + var r = n(102); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, ".src-ui-CommentsForm__comments__form--2lqHa{padding-left:64px;position:relative;box-sizing:inherit}.src-ui-CommentsForm__comments__form__img--2914M{width:40px;height:40px;float:left;left:0;position:absolute;box-sizing:inherit;margin-left:10px}.src-ui-CommentsForm__comments__form__textarea--3wbfC{width:100%;resize:vertical;display:block;margin:0;border:1px solid #dedede;height:150px;border-radius:2px;padding:5px 10px;line-height:22px;box-sizing:border-box;float:left;outline:0!important;font-family:inherit;font-size:15px;overflow:hidden}.src-ui-CommentsForm__comments__form__textarea--3wbfC.src-ui-CommentsForm__error--3m6C6{border:1px solid red}.src-ui-CommentsForm__comments__form__name--2xkrT{width:100%;resize:vertical;display:block;margin:0;border:1px solid #dedede;border-radius:2px;padding:5px 10px;line-height:22px;box-sizing:border-box;float:left;outline:0!important;margin-bottom:3px;font-family:inherit;font-size:15px}.src-ui-CommentsForm__comments__form__name--2xkrT.src-ui-CommentsForm__error--3m6C6{border:1px solid red}.src-ui-CommentsForm__comments__form__email--216xp{width:100%;resize:vertical;display:block;margin:0;border:1px solid #dedede;border-radius:2px;padding:5px 10px;line-height:22px;box-sizing:border-box;float:left;outline:0!important;margin-bottom:3px;font-family:inherit;font-size:15px}.src-ui-CommentsForm__comments__form__email--216xp.src-ui-CommentsForm__error--3m6C6{border:1px solid red}.src-ui-CommentsForm__comments__form__send--1NxBp{display:inline-block;margin-top:1rem;padding:3px 9px;line-height:1.8;appearance:none;box-shadow:none;border-radius:0;color:#fff;background-color:#6496c8;text-shadow:-1px 1px #417cb8;border:none;font-family:inherit;font-size:15px;box-sizing:inherit}.src-ui-CommentsForm__comments__form__send--1NxBp:hover{background-color:#346392;text-shadow:-1px 1px #27496d;cursor:pointer}.src-ui-CommentsForm__comments__form__send--1NxBp:active{background-color:#27496d;text-shadow:-1px 1px #193047}.src-ui-CommentsForm__comments__form__help--2YWTB{padding-left:10px;font-size:12px;color:grey}", ""]), t.locals = { + comments__form: "src-ui-CommentsForm__comments__form--2lqHa", + comments__form__img: "src-ui-CommentsForm__comments__form__img--2914M", + comments__form__textarea: "src-ui-CommentsForm__comments__form__textarea--3wbfC", + error: "src-ui-CommentsForm__error--3m6C6", + comments__form__name: "src-ui-CommentsForm__comments__form__name--2xkrT", + comments__form__email: "src-ui-CommentsForm__comments__form__email--216xp", + comments__form__send: "src-ui-CommentsForm__comments__form__send--1NxBp", + comments__form__help: "src-ui-CommentsForm__comments__form__help--2YWTB" + } +}, function (e, t, n) { + "use strict"; + + function r(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function i(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var a = n(0), + s = n(104), + c = n.n(s), + u = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + l = function (e) { + function t() { + return r(this, t), o(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) + } + return i(t, e), u(t, [{ + key: "render", + value: function (e, t) { + return Object(a.b)("div", { + className: c.a.container + }, [Object(a.b)("button", { + className: c.a.button, + onClick: e.onLoadMore + }, [e.polyglot.t("loadMoreButton")])]) + } + }]), t + }(a.a); + t.a = l +}, function (e, t, n) { + var r = n(105); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, ".src-ui-LoadMoreButton__button--TOzRA{display:inline-block;margin-top:1rem;padding:3px 9px;line-height:1.8;appearance:none;box-shadow:none;border-radius:0;color:#fff;background-color:#6496c8;text-shadow:-1px 1px #417cb8;border:none;font-family:inherit;font-size:15px;box-sizing:inherit}.src-ui-LoadMoreButton__button--TOzRA:hover{background-color:#346392;text-shadow:-1px 1px #27496d;cursor:pointer}.src-ui-LoadMoreButton__button--TOzRA:active{background-color:#27496d;text-shadow:-1px 1px #193047}.src-ui-LoadMoreButton__container--3jPR7{text-align:center;box-sizing:inherit}", ""]), t.locals = { + button: "src-ui-LoadMoreButton__button--TOzRA", + container: "src-ui-LoadMoreButton__container--3jPR7" + } +}, function (e, t, n) { + "use strict"; + + function r(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function i(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var a = n(0), + s = n(107), + c = n.n(s), + u = n(12), + l = n.n(u), + f = n(22), + m = n(109), + p = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + d = function (e) { + function t() { + r(this, t); + var e = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); + return e.state.displayReplyForm = !1, e + } + return i(t, e), p(t, [{ + key: "onShare", + value: function (e) { + open("https://just-comments.com/share.html#" + encodeURIComponent(e), "share", "height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0") + } + }, { + key: "onReply", + value: function (e) { + this.setState({ + displayReplyForm: !this.state.displayReplyForm + }) + } + }, { + key: "render", + value: function (e, t) { + var n = this, + r = e.polyglot, + o = e.comment, + i = e.ago, + s = e.locale, + u = e.guestForm, + p = e.onFormSend, + d = e.userPic, + h = e.parentId, + _ = e.highlight, + y = e.checkCaptcha, + v = t.displayReplyForm; + return Object(a.b)("div", { + className: c.a.comment + " " + (_ ? c.a.highlight : "") + " " + c.a["comment__level__" + o.level], + key: t.commentId, + id: "jc" + o.commentId + }, Object(a.b)("div", { + className: c.a.comment__header + }, Object(a.b)("a", { + className: c.a.comment__user + " " + l.a.link, + href: o.userUrl + }, Object(a.b)("img", { + src: o.userPic + }), Object(a.b)("div", { + className: c.a.name + }, Object(a.b)("span", {}, o.hidden ? r.t("usernameRemoved") : String(o.username)))), Object(a.b)("a", { + onClick: function () { + n.props.onHighlight(o.commentId) + }, + title: o.createdAt, + className: c.a.comment__date + " " + l.a.link, + href: o.commentUrl + }, [Object(a.b)("span", {}, String(i(o.createdAt, s)))]), o.replyToComment ? Object(a.b)("a", { + onClick: function () { + n.props.onHighlight(o.replyToComment.commentId) + }, + className: c.a.comment__replyTo + " " + l.a.link, + href: o.replyToComment.commentUrl + }, [Object(a.b)("svg", { + className: c.a.comment__replyToIcon, + viewBox: "0 0 1792 1792", + xmlns: "http://www.w3.org/2000/svg" + }, [Object(a.b)("path", { + d: "M1792 1120q0 166-127 451-3 7-10.5 24t-13.5 30-13 22q-12 17-28 17-15 0-23.5-10t-8.5-25q0-9 2.5-26.5t2.5-23.5q5-68 5-123 0-101-17.5-181t-48.5-138.5-80-101-105.5-69.5-133-42.5-154-21.5-175.5-6h-224v256q0 26-19 45t-45 19-45-19l-512-512q-19-19-19-45t19-45l512-512q19-19 45-19t45 19 19 45v256h224q713 0 875 403 53 134 53 333z" + })]), Object(a.b)("span", { + className: c.a.comment__replyToText + }, [o.replyToComment.username])]) : null), Object(a.b)("div", { + className: c.a.comment__content + }, Object(a.b)("div", { + className: c.a.comment__message + }, o.hidden ? [Object(a.b)("span", { + className: c.a.comment__message__hidden + }, r.t("commentRemovedByModerator"))] : this.renderMessage(o)), Object(a.b)("div", { + className: c.a.comment__buttons + }, [o.hidden ? null : Object(a.b)(m.a, { + className: c.a.comment__button, + polyglot: r, + buttonLabelKey: "reply", + onClick: function () { + return n.onReply() + } + }), o.hidden ? null : Object(a.b)(m.a, { + className: c.a.comment__button, + polyglot: r, + buttonLabelKey: "share", + onClick: function () { + return n.onShare(o.commentUrl) + } + })])), v ? Object(a.b)("div", { + className: c.a.comment__reply__form + }, [Object(a.b)(f.a, { + polyglot: r, + userPic: d, + guestForm: u, + onSend: function () { + return p.apply(void 0, arguments).then(function () { + n.setState({ + displayReplyForm: !1 + }) + }) + }, + replyToComment: o, + parentId: h, + checkCaptcha: y + })]) : null) + } + }, { + key: "renderMessage", + value: function (e) { + return e.htmlMessage ? Object(a.b)("div", { + dangerouslySetInnerHTML: { + __html: e.htmlMessage + } + }) : [].concat.apply([], e.message.split("\n").map(function (e) { + return [e, Object(a.b)("br")] + })) + } + }]), t + }(a.a); + t.a = d +}, function (e, t, n) { + var r = n(108); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, '@keyframes src-ui-Comment__highlight--2Dume{0%{background:#ebf7ed}to{background:none}}.src-ui-Comment__highlight--2Dume{animation:src-ui-Comment__highlight--2Dume 3s}.src-ui-Comment__comment--21xHd{padding-left:64px;padding-top:10px;padding-bottom:10px;box-sizing:inherit}.src-ui-Comment__comment__header--qkAn1{position:relative;box-sizing:inherit}.src-ui-Comment__comment__buttons--scCya{position:relative;box-sizing:inherit;padding-bottom:5px}.src-ui-Comment__comment__button--GWgj8{position:relative;float:left;margin-right:10px;margin-left:1px;margin-bottom:1px}.src-ui-Comment__comment__header--qkAn1:after{content:" ";display:block;height:0;clear:both;box-sizing:inherit}.src-ui-Comment__comment__user--2tdLB img{width:40px;height:40px;float:left;top:2px;left:-54px;position:absolute}.src-ui-Comment__comment__user--2tdLB{text-decoration:none;color:#333}.src-ui-Comment__comment__user--2tdLB:hover{cursor:pointer}.src-ui-Comment__comment__user--2tdLB .src-ui-Comment__name--3zkCu{float:left;font-size:15px;line-height:1.2;font-weight:700;box-sizing:inherit}.src-ui-Comment__comment__user--2tdLB .src-ui-Comment__name--3zkCu span{margin:0;padding:0;border:0;font-size:100%;font:inherit;box-sizing:inherit}.src-ui-Comment__comment__date--2gftL{position:relative;margin-left:15px;font-size:12px;color:#818181;text-transform:lowercase;text-decoration:none;float:left;line-height:1.4}.src-ui-Comment__comment__date--2gftL:hover{color:#135784}.src-ui-Comment__comment__date--2gftL:focus{outline:2px dotted #818181}.src-ui-Comment__comment__replyTo--2BeDz{position:relative;margin-left:15px;font-size:12px;color:#818181;float:left;line-height:1.4;text-decoration:none}.src-ui-Comment__comment__replyTo--2BeDz:hover{color:#135784;fill:#135784}.src-ui-Comment__comment__replyTo--2BeDz:focus{outline:2px dotted #818181}.src-ui-Comment__comment__replyTo--2BeDz:hover svg{fill:#135784}.src-ui-Comment__comment__replyToIcon--3c76M{fill:#818181;vertical-align:middle;height:11px}.src-ui-Comment__comment__replyToText--xw4HK{margin-left:4px;font-size:12px}.src-ui-Comment__comment__content--3XT9v{position:relative;font-size:15px;line-height:1.6;overflow:hidden;box-sizing:inherit}.src-ui-Comment__comment__content--3XT9v ol,.src-ui-Comment__comment__content--3XT9v ul{box-sizing:inherit;margin:0}.src-ui-Comment__comment__content--3XT9v blockquote{box-sizing:inherit;margin:0;padding-left:5px;margin-left:5px;border-left:5px solid #818181}.src-ui-Comment__comment__content--3XT9v a{box-sizing:inherit;color:#818181;font-size:15px;border-bottom:1px dotted #818181;cursor:pointer;text-decoration:none}.src-ui-Comment__comment__content--3XT9v a:hover{color:#135784;fill:#135784;background-color:transparent}.src-ui-Comment__comment__content--3XT9v p{margin:.5em 0;box-sizing:inherit}.src-ui-Comment__comment__content--3XT9v pre{font-size:15px;line-height:1.6;margin:.5em 0;box-sizing:inherit}.src-ui-Comment__comment__content--3XT9v pre code{font-size:13px;font-family:monospace;line-height:1.6;box-sizing:inherit}.src-ui-Comment__comment__rating--21kJe{float:right;box-sizing:inherit}.src-ui-Comment__comment__footer--3JVRc{position:relative;float:left;color:#818181;font-size:14px;line-height:1.6;border-bottom:1px dotted #818181;box-sizing:inherit}.src-ui-Comment__comment__message__hidden--3gB9t{font-style:italic;color:grey}.src-ui-Comment__comment__reply__form--q3Dgk{margin-top:10px}.src-ui-Comment__comment__level__1--3Nk2r{margin-left:54px}.src-ui-Comment__comment__level__2--3vgLv{margin-left:108px}.src-ui-Comment__comment__level__3--kmWGe{margin-left:162px}.src-ui-Comment__comment__level__4--2zFB0{margin-left:216px}.src-ui-Comment__comment__level__5--1UCWx{margin-left:270px}@media (min-width:320px) and (max-width:480px){.src-ui-Comment__comment__level__1--3Nk2r{margin-left:10px}.src-ui-Comment__comment__level__2--3vgLv{margin-left:20px}.src-ui-Comment__comment__level__3--kmWGe{margin-left:30px}.src-ui-Comment__comment__level__4--2zFB0{margin-left:40px}.src-ui-Comment__comment__level__5--1UCWx{margin-left:50px}}@media (min-width:1px) and (max-width:320px){.src-ui-Comment__comment__level__1--3Nk2r{margin-left:5px}.src-ui-Comment__comment__level__2--3vgLv{margin-left:10px}.src-ui-Comment__comment__level__3--kmWGe{margin-left:15px}.src-ui-Comment__comment__level__4--2zFB0{margin-left:20px}.src-ui-Comment__comment__level__5--1UCWx{margin-left:25px}}', ""]), t.locals = { + highlight: "src-ui-Comment__highlight--2Dume", + comment: "src-ui-Comment__comment--21xHd", + comment__header: "src-ui-Comment__comment__header--qkAn1", + comment__buttons: "src-ui-Comment__comment__buttons--scCya", + comment__button: "src-ui-Comment__comment__button--GWgj8", + comment__user: "src-ui-Comment__comment__user--2tdLB", + name: "src-ui-Comment__name--3zkCu", + comment__date: "src-ui-Comment__comment__date--2gftL", + comment__replyTo: "src-ui-Comment__comment__replyTo--2BeDz", + comment__replyToIcon: "src-ui-Comment__comment__replyToIcon--3c76M", + comment__replyToText: "src-ui-Comment__comment__replyToText--xw4HK", + comment__content: "src-ui-Comment__comment__content--3XT9v", + comment__rating: "src-ui-Comment__comment__rating--21kJe", + comment__footer: "src-ui-Comment__comment__footer--3JVRc", + comment__message: "src-ui-Comment__comment__message--TQYYt", + comment__message__hidden: "src-ui-Comment__comment__message__hidden--3gB9t", + comment__reply__form: "src-ui-Comment__comment__reply__form--q3Dgk", + comment__level__0: "src-ui-Comment__comment__level__0--12p_p", + comment__level__1: "src-ui-Comment__comment__level__1--3Nk2r", + comment__level__2: "src-ui-Comment__comment__level__2--3vgLv", + comment__level__3: "src-ui-Comment__comment__level__3--kmWGe", + comment__level__4: "src-ui-Comment__comment__level__4--2zFB0", + comment__level__5: "src-ui-Comment__comment__level__5--1UCWx" + } +}, function (e, t, n) { + "use strict"; + + function r(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + + function o(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function i(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function a(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var s = n(0), + c = n(110), + u = n.n(c), + l = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + f = function (e) { + function t() { + return o(this, t), i(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) + } + return a(t, e), l(t, [{ + key: "render", + value: function (e, t) { + var n, o = this.props, + i = o.className, + a = o.onClick, + c = o.polyglot, + l = o.buttonLabelKey; + return Object(s.b)("button", (n = { + className: i + " " + u.a.container, + tabindex: 0, + role: "button", + onClick: a + }, r(n, "role", "button"), r(n, "tabindex", 0), n), [Object(s.b)("span", {}, [c.t(l)])]) + } + }]), t + }(s.a); + t.a = f +}, function (e, t, n) { + var r = n(111); + "string" == typeof r && (r = [ + [e.i, r, ""] + ]); + var o = {}; + o.transform = void 0; + n(2)(r, o); + r.locals && (e.exports = r.locals) +}, function (e, t, n) { + t = e.exports = n(1)(void 0), t.push([e.i, ".src-ui-CommentButton__container--1KIDJ{box-sizing:inherit;color:#818181;font-size:14px;line-height:17px;text-decoration:none;background:transparent;border:0;padding:0;border-bottom:1px dotted #818181;cursor:pointer}.src-ui-CommentButton__container--1KIDJ:focus{outline:2px dotted #818181;border:none}", ""]), t.locals = { + container: "src-ui-CommentButton__container--1KIDJ" + } +}, function (e, t, n) { + "use strict"; + + function r(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + + function o(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function i(e, t) { + if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !t || "object" != typeof t && "function" != typeof t ? e : t + } + + function a(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + var s = n(0), + c = function () { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function (t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + u = function (e) { + function t() { + return o(this, t), i(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) + } + return a(t, e), c(t, [{ + key: "render", + value: function (e, t) { + var n = this; + return Object(s.b)("div", { + ref: function (e) { + return n.root = e + } + }) + } + }, { + key: "componentDidMount", + value: function () { + var e = this, + t = this.props.sitekey; + return window.jcRecaptchaPromise.then(function () { + e.grecaptchaId = grecaptcha.render(e.root, r({ + sitekey: t, + callback: "jcRecaptachaSubmit", + size: "invisible" + }, "callback", e.onCaptchaSubmit.bind(e))) + }) + } + }, { + key: "componentWillUnmount", + value: function () { + var e = this; + return window.jcRecaptchaPromise.then(function () { + grecaptcha.reset(e.grecaptchaId) + }) + } + }, { + key: "check", + value: function () { + var e = this; + return window.jcRecaptchaPromise.then(function () { + return grecaptcha.execute(e.grecaptchaId), new Promise(function (t, n) { + e.failCaptcha = n, e.succeedCaptcha = t + }) + }) + } + }, { + key: "onCaptchaSubmit", + value: function (e) { + return console.log("onCaptchaSubmit", e), grecaptcha.reset(this.grecaptchaId), this.succeedCaptcha(e) + } + }]), t + }(s.a); + t.a = u +}, function (e, t, n) { + "use strict"; + + function r(e) { + return l.a.register(e, d[e]), l()().format + } + + function o(e) { + var t = new m.a; + return t.extend(p[e]), t + } + t.a = r, t.b = o; + var i = n(114), + a = n.n(i), + s = n(115), + c = n.n(s), + u = n(116), + l = n.n(u), + f = n(117), + m = n.n(f), + p = n(134), + d = { + ru_RU: a.a, + en_GB: c.a, + en_US: c.a, + en: c.a + } +}, function (e, t) { + function n(e, t, n, r, o) { + var i = o % 10, + a = r; + return 1 === o ? a = e : 1 === i && o > 20 ? a = t : i > 1 && i < 5 && (o > 20 || o < 10) && (a = n), a + } + var r = n.bind(null, "секунду", "%s секунду", "%s секунды", "%s секунд"), + o = n.bind(null, "минуту", "%s минуту", "%s минуты", "%s минут"), + i = n.bind(null, "час", "%s час", "%s часа", "%s часов"), + a = n.bind(null, "день", "%s день", "%s дня", "%s дней"), + s = n.bind(null, "неделю", "%s неделю", "%s недели", "%s недель"), + c = n.bind(null, "месяц", "%s месяц", "%s месяца", "%s месяцев"), + u = n.bind(null, "год", "%s год", "%s года", "%s лет"); + e.exports = function (e, t) { + switch (t) { + case 0: + return ["только что", "через несколько секунд"]; + case 1: + return [r(e) + " назад", "через " + r(e)]; + case 2: + case 3: + return [o(e) + " назад", "через " + o(e)]; + case 4: + case 5: + return [i(e) + " назад", "через " + i(e)]; + case 6: + return ["вчера", "завтра"]; + case 7: + return [a(e) + " назад", "через " + a(e)]; + case 8: + case 9: + return [s(e) + " назад", "через " + s(e)]; + case 10: + case 11: + return [c(e) + " назад", "через " + c(e)]; + case 12: + case 13: + return [u(e) + " назад", "через " + u(e)]; + default: + return ["", ""] + } + } +}, function (e, t) { + e.exports = function (e, t) { + return [ + ["just now", "right now"], + ["%s seconds ago", "in %s seconds"], + ["1 minute ago", "in 1 minute"], + ["%s minutes ago", "in %s minutes"], + ["1 hour ago", "in 1 hour"], + ["%s hours ago", "in %s hours"], + ["1 day ago", "in 1 day"], + ["%s days ago", "in %s days"], + ["1 week ago", "in 1 week"], + ["%s weeks ago", "in %s weeks"], + ["1 month ago", "in 1 month"], + ["%s months ago", "in %s months"], + ["1 year ago", "in 1 year"], + ["%s years ago", "in %s years"] + ][t] + } +}, function (e, t) { + ! function (t, n) { + "object" == typeof e && e.exports ? (e.exports = n(), e.exports.default = e.exports) : t.timeago = n() + }("undefined" != typeof window ? window : this, function () { + function e(e) { + return e instanceof Date ? e : isNaN(e) ? /^\d+$/.test(e) ? new Date(t(e)) : (e = (e || "").trim().replace(/\.\d+/, "").replace(/-/, "/").replace(/-/, "/").replace(/(\d)T(\d)/, "$1 $2").replace(/Z/, " UTC").replace(/([\+\-]\d\d)\:?(\d\d)/, " $1$2"), new Date(e)) : new Date(t(e)) + } + + function t(e) { + return parseInt(e) + } + + function n(e, n, r) { + n = m[n] ? n : m[r] ? r : "en"; + for (var o = 0, i = e < 0 ? 1 : 0, a = e = Math.abs(e); e >= p[o] && o < d; o++) e /= p[o]; + return e = t(e), o *= 2, e > (0 === o ? 9 : 1) && (o += 1), m[n](e, o, a)[i].replace("%s", e) + } + + function r(t, n) { + return ((n = n ? e(n) : new Date) - e(t)) / 1e3 + } + + function o(e) { + for (var t = 1, n = 0, r = Math.abs(e); e >= p[n] && n < d; n++) e /= p[n], t *= p[n]; + return r %= t, r = r ? t - r : t, Math.ceil(r) + } + + function i(e) { + return a(e, "data-timeago") || a(e, "datetime") + } + + function a(e, t) { + return e.getAttribute ? e.getAttribute(t) : e.attr ? e.attr(t) : void 0 + } + + function s(e, t) { + return e.setAttribute ? e.setAttribute(h, t) : e.attr ? e.attr(h, t) : void 0 + } + + function c(e, t) { + this.nowDate = e, this.defaultLocale = t || "en" + } + + function u(e, t) { + return new c(e, t) + } + var l = "second_minute_hour_day_week_month_year".split("_"), + f = "秒_分钟_小时_天_周_月_年".split("_"), + m = { + en: function (e, t) { + if (0 === t) return ["just now", "right now"]; + var n = l[parseInt(t / 2)]; + return e > 1 && (n += "s"), [e + " " + n + " ago", "in " + e + " " + n] + }, + zh_CN: function (e, t) { + if (0 === t) return ["刚刚", "片刻后"]; + var n = f[parseInt(t / 2)]; + return [e + n + "前", e + n + "后"] + } + }, + p = [60, 60, 24, 7, 365 / 7 / 12, 12], + d = 6, + h = "data-tid", + _ = {}; + return c.prototype.doRender = function (e, t, i) { + var a, c = r(t, this.nowDate), + u = this; + e.innerHTML = n(c, i, this.defaultLocale), _[a = setTimeout(function () { + u.doRender(e, t, i), delete _[a] + }, Math.min(1e3 * o(c), 2147483647))] = 0, s(e, a) + }, c.prototype.format = function (e, t) { + return n(r(e, this.nowDate), t, this.defaultLocale) + }, c.prototype.render = function (e, t) { + void 0 === e.length && (e = [e]); + for (var n = 0, r = e.length; n < r; n++) this.doRender(e[n], i(e[n]), t) + }, c.prototype.setLocale = function (e) { + this.defaultLocale = e + }, u.register = function (e, t) { + m[e] = t + }, u.cancel = function (e) { + var t; + if (e)(t = a(e, h)) && (clearTimeout(t), delete _[t]); + else { + for (t in _) clearTimeout(t); + _ = {} + } + }, u + }) +}, function (e, t, n) { + "use strict"; + + function r(e) { + var t = {}; + return c(e, function (e, n) { + c(e, function (e) { + t[e] = n + }) + }), t + } + + function o(e) { + var t = r(y); + return t[e] || t[d.call(e, /-/, 1)[0]] || t.en + } + + function i(e, t) { + return _[o(e)](t) + } + + function a(e, t, n) { + if ("string" != typeof e) throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string"); + if (null == t) return e; + var r = e, + o = "number" == typeof t ? { + smart_count: t + } : t; + if (null != o.smart_count && r) { + var a = d.call(r, h); + r = f(a[i(n || "en", o.smart_count)] || a[0]) + } + return r = p.call(r, g, function (e, t) { + return l(o, t) && null != o[t] ? p.call(o[t], v, b) : e + }) + } + + function s(e) { + var t = e || {}; + this.phrases = {}, this.extend(t.phrases || {}), this.currentLocale = t.locale || "en"; + var n = t.allowMissing ? a : null; + this.onMissingKey = "function" == typeof t.onMissingKey ? t.onMissingKey : n, this.warn = t.warn || m + } + var c = n(118), + u = n(120), + l = n(23), + f = n(122), + m = function (e) { + u(!1, e) + }, + p = String.prototype.replace, + d = String.prototype.split, + h = "||||", + _ = { + arabic: function (e) { + return e < 3 ? e : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5 + }, + chinese: function () { + return 0 + }, + german: function (e) { + return 1 !== e ? 1 : 0 + }, + french: function (e) { + return e > 1 ? 1 : 0 + }, + russian: function (e) { + return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 + }, + czech: function (e) { + return 1 === e ? 0 : e >= 2 && e <= 4 ? 1 : 2 + }, + polish: function (e) { + return 1 === e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 + }, + icelandic: function (e) { + return e % 10 != 1 || e % 100 == 11 ? 1 : 0 + } + }, + y = { + arabic: ["ar"], + chinese: ["fa", "id", "ja", "ko", "lo", "ms", "th", "tr", "zh"], + german: ["da", "de", "en", "es", "fi", "el", "he", "hu", "it", "nl", "no", "pt", "sv"], + french: ["fr", "tl", "pt-br"], + russian: ["hr", "ru", "lt"], + czech: ["cs", "sk"], + polish: ["pl"], + icelandic: ["is"] + }, + v = /\$/g, + b = "$$", + g = /%\{(.*?)\}/g; + s.prototype.locale = function (e) { + return e && (this.currentLocale = e), this.currentLocale + }, s.prototype.extend = function (e, t) { + c(e, function (e, n) { + var r = t ? t + "." + n : n; + "object" == typeof e ? this.extend(e, r) : this.phrases[r] = e + }, this) + }, s.prototype.unset = function (e, t) { + "string" == typeof e ? delete this.phrases[e] : c(e, function (e, n) { + var r = t ? t + "." + n : n; + "object" == typeof e ? this.unset(e, r) : delete this.phrases[r] + }, this) + }, s.prototype.clear = function () { + this.phrases = {} + }, s.prototype.replace = function (e) { + this.clear(), this.extend(e) + }, s.prototype.t = function (e, t) { + var n, r, o = null == t ? {} : t; + if ("string" == typeof this.phrases[e]) n = this.phrases[e]; + else if ("string" == typeof o._) n = o._; + else if (this.onMissingKey) { + var i = this.onMissingKey; + r = i(e, o, this.currentLocale) + } else this.warn('Missing translation for key: "' + e + '"'), r = e; + return "string" == typeof n && (r = a(n, o, this.currentLocale)), r + }, s.prototype.has = function (e) { + return l(this.phrases, e) + }, s.transformPhrase = a, e.exports = s +}, function (e, t, n) { + function r(e, t, n) { + if (!s(t)) throw new TypeError("iterator must be a function"); + arguments.length < 3 && (n = this), "[object Array]" === c.call(e) ? o(e, t, n) : "string" == typeof e ? i(e, t, n) : a(e, t, n) + } + + function o(e, t, n) { + for (var r = 0, o = e.length; r < o; r++) u.call(e, r) && t.call(n, e[r], r, e) + } + + function i(e, t, n) { + for (var r = 0, o = e.length; r < o; r++) t.call(n, e.charAt(r), r, e) + } + + function a(e, t, n) { + for (var r in e) u.call(e, r) && t.call(n, e[r], r, e) + } + var s = n(119); + e.exports = r; + var c = Object.prototype.toString, + u = Object.prototype.hasOwnProperty +}, function (e, t) { + function n(e) { + var t = r.call(e); + return "[object Function]" === t || "function" == typeof e && "[object RegExp]" !== t || "undefined" != typeof window && (e === window.setTimeout || e === window.alert || e === window.confirm || e === window.prompt) + } + e.exports = n; + var r = Object.prototype.toString +}, function (e, t, n) { + "use strict"; + var r = function () {}; + e.exports = r +}, function (e, t) { + var n = Array.prototype.slice, + r = Object.prototype.toString; + e.exports = function (e) { + var t = this; + if ("function" != typeof t || "[object Function]" !== r.call(t)) throw new TypeError("Function.prototype.bind called on incompatible " + t); + for (var o, i = n.call(arguments, 1), a = function () { + if (this instanceof o) { + var r = t.apply(this, i.concat(n.call(arguments))); + return Object(r) === r ? r : this + } + return t.apply(e, i.concat(n.call(arguments))) + }, s = Math.max(0, t.length - i.length), c = [], u = 0; u < s; u++) c.push("$" + u); + if (o = Function("binder", "return function (" + c.join(",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) { + var l = function () {}; + l.prototype = t.prototype, o.prototype = new l, l.prototype = null + } + return o + } +}, function (e, t, n) { + "use strict"; + var r = n(7), + o = n(24), + i = n(25), + a = n(27), + s = n(133), + c = r.call(Function.call, a()); + o(c, { + getPolyfill: a, + implementation: i, + shim: s + }), e.exports = c +}, function (e, t, n) { + "use strict"; + var r = Object.prototype.hasOwnProperty, + o = Object.prototype.toString, + i = Array.prototype.slice, + a = n(124), + s = Object.prototype.propertyIsEnumerable, + c = !s.call({ + toString: null + }, "toString"), + u = s.call(function () {}, "prototype"), + l = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], + f = function (e) { + var t = e.constructor; + return t && t.prototype === e + }, + m = { + $console: !0, + $external: !0, + $frame: !0, + $frameElement: !0, + $frames: !0, + $innerHeight: !0, + $innerWidth: !0, + $outerHeight: !0, + $outerWidth: !0, + $pageXOffset: !0, + $pageYOffset: !0, + $parent: !0, + $scrollLeft: !0, + $scrollTop: !0, + $scrollX: !0, + $scrollY: !0, + $self: !0, + $webkitIndexedDB: !0, + $webkitStorageInfo: !0, + $window: !0 + }, + p = function () { + if ("undefined" == typeof window) return !1; + for (var e in window) try { + if (!m["$" + e] && r.call(window, e) && null !== window[e] && "object" == typeof window[e]) try { + f(window[e]) + } catch (e) { + return !0 + } + } catch (e) { + return !0 + } + return !1 + }(), + d = function (e) { + if ("undefined" == typeof window || !p) return f(e); + try { + return f(e) + } catch (e) { + return !1 + } + }, + h = function (e) { + var t = null !== e && "object" == typeof e, + n = "[object Function]" === o.call(e), + i = a(e), + s = t && "[object String]" === o.call(e), + f = []; + if (!t && !n && !i) throw new TypeError("Object.keys called on a non-object"); + var m = u && n; + if (s && e.length > 0 && !r.call(e, 0)) + for (var p = 0; p < e.length; ++p) f.push(String(p)); + if (i && e.length > 0) + for (var h = 0; h < e.length; ++h) f.push(String(h)); + else + for (var _ in e) m && "prototype" === _ || !r.call(e, _) || f.push(String(_)); + if (c) + for (var y = d(e), v = 0; v < l.length; ++v) y && "constructor" === l[v] || !r.call(e, l[v]) || f.push(l[v]); + return f + }; + h.shim = function () { + if (Object.keys) { + if (! function () { + return 2 === (Object.keys(arguments) || "").length + }(1, 2)) { + var e = Object.keys; + Object.keys = function (t) { + return e(a(t) ? i.call(t) : t) + } + } + } else Object.keys = h; + return Object.keys || h + }, e.exports = h +}, function (e, t, n) { + "use strict"; + var r = Object.prototype.toString; + e.exports = function (e) { + var t = r.call(e), + n = "[object Arguments]" === t; + return n || (n = "[object Array]" !== t && null !== e && "object" == typeof e && "number" == typeof e.length && e.length >= 0 && "[object Function]" === r.call(e.callee)), n + } +}, function (e, t) { + var n = Object.prototype.hasOwnProperty, + r = Object.prototype.toString; + e.exports = function (e, t, o) { + if ("[object Function]" !== r.call(t)) throw new TypeError("iterator must be a function"); + var i = e.length; + if (i === +i) + for (var a = 0; a < i; a++) t.call(o, e[a], a, e); + else + for (var s in e) n.call(e, s) && t.call(o, e[s], s, e) + } +}, function (e, t, n) { + "use strict"; + var r = n(127), + o = n(128), + i = n(129), + a = n(130), + s = n(26), + c = n(131), + u = n(23), + l = { + ToPrimitive: c, + ToBoolean: function (e) { + return !!e + }, + ToNumber: function (e) { + return Number(e) + }, + ToInteger: function (e) { + var t = this.ToNumber(e); + return r(t) ? 0 : 0 !== t && o(t) ? i(t) * Math.floor(Math.abs(t)) : t + }, + ToInt32: function (e) { + return this.ToNumber(e) >> 0 + }, + ToUint32: function (e) { + return this.ToNumber(e) >>> 0 + }, + ToUint16: function (e) { + var t = this.ToNumber(e); + if (r(t) || 0 === t || !o(t)) return 0; + var n = i(t) * Math.floor(Math.abs(t)); + return a(n, 65536) + }, + ToString: function (e) { + return String(e) + }, + ToObject: function (e) { + return this.CheckObjectCoercible(e), Object(e) + }, + CheckObjectCoercible: function (e, t) { + if (null == e) throw new TypeError(t || "Cannot call method on " + e); + return e + }, + IsCallable: s, + SameValue: function (e, t) { + return e === t ? 0 !== e || 1 / e == 1 / t : r(e) && r(t) + }, + Type: function (e) { + return null === e ? "Null" : void 0 === e ? "Undefined" : "function" == typeof e || "object" == typeof e ? "Object" : "number" == typeof e ? "Number" : "boolean" == typeof e ? "Boolean" : "string" == typeof e ? "String" : void 0 + }, + IsPropertyDescriptor: function (e) { + if ("Object" !== this.Type(e)) return !1; + var t = { + "[[Configurable]]": !0, + "[[Enumerable]]": !0, + "[[Get]]": !0, + "[[Set]]": !0, + "[[Value]]": !0, + "[[Writable]]": !0 + }; + for (var n in e) + if (u(e, n) && !t[n]) return !1; + var r = u(e, "[[Value]]"), + o = u(e, "[[Get]]") || u(e, "[[Set]]"); + if (r && o) throw new TypeError("Property Descriptors may not be both accessor and data descriptors"); + return !0 + }, + IsAccessorDescriptor: function (e) { + if (void 0 === e) return !1; + if (!this.IsPropertyDescriptor(e)) throw new TypeError("Desc must be a Property Descriptor"); + return !(!u(e, "[[Get]]") && !u(e, "[[Set]]")) + }, + IsDataDescriptor: function (e) { + if (void 0 === e) return !1; + if (!this.IsPropertyDescriptor(e)) throw new TypeError("Desc must be a Property Descriptor"); + return !(!u(e, "[[Value]]") && !u(e, "[[Writable]]")) + }, + IsGenericDescriptor: function (e) { + if (void 0 === e) return !1; + if (!this.IsPropertyDescriptor(e)) throw new TypeError("Desc must be a Property Descriptor"); + return !this.IsAccessorDescriptor(e) && !this.IsDataDescriptor(e) + }, + FromPropertyDescriptor: function (e) { + if (void 0 === e) return e; + if (!this.IsPropertyDescriptor(e)) throw new TypeError("Desc must be a Property Descriptor"); + if (this.IsDataDescriptor(e)) return { + value: e["[[Value]]"], + writable: !!e["[[Writable]]"], + enumerable: !!e["[[Enumerable]]"], + configurable: !!e["[[Configurable]]"] + }; + if (this.IsAccessorDescriptor(e)) return { + get: e["[[Get]]"], + set: e["[[Set]]"], + enumerable: !!e["[[Enumerable]]"], + configurable: !!e["[[Configurable]]"] + }; + throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor") + }, + ToPropertyDescriptor: function (e) { + if ("Object" !== this.Type(e)) throw new TypeError("ToPropertyDescriptor requires an object"); + var t = {}; + if (u(e, "enumerable") && (t["[[Enumerable]]"] = this.ToBoolean(e.enumerable)), u(e, "configurable") && (t["[[Configurable]]"] = this.ToBoolean(e.configurable)), u(e, "value") && (t["[[Value]]"] = e.value), u(e, "writable") && (t["[[Writable]]"] = this.ToBoolean(e.writable)), u(e, "get")) { + var n = e.get; + if (void 0 !== n && !this.IsCallable(n)) throw new TypeError("getter must be a function"); + t["[[Get]]"] = n + } + if (u(e, "set")) { + var r = e.set; + if (void 0 !== r && !this.IsCallable(r)) throw new TypeError("setter must be a function"); + t["[[Set]]"] = r + } + if ((u(t, "[[Get]]") || u(t, "[[Set]]")) && (u(t, "[[Value]]") || u(t, "[[Writable]]"))) throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute"); + return t + } + }; + e.exports = l +}, function (e, t) { + e.exports = Number.isNaN || function (e) { + return e !== e + } +}, function (e, t) { + var n = Number.isNaN || function (e) { + return e !== e + }; + e.exports = Number.isFinite || function (e) { + return "number" == typeof e && !n(e) && e !== 1 / 0 && e !== -1 / 0 + } +}, function (e, t) { + e.exports = function (e) { + return e >= 0 ? 1 : -1 + } +}, function (e, t) { + e.exports = function (e, t) { + var n = e % t; + return Math.floor(n >= 0 ? n : n + t) + } +}, function (e, t, n) { + "use strict"; + var r = Object.prototype.toString, + o = n(132), + i = n(26), + a = { + "[[DefaultValue]]": function (e, t) { + var n = t || ("[object Date]" === r.call(e) ? String : Number); + if (n === String || n === Number) { + var a, s, c = n === String ? ["toString", "valueOf"] : ["valueOf", "toString"]; + for (s = 0; s < c.length; ++s) + if (i(e[c[s]]) && (a = e[c[s]](), o(a))) return a; + throw new TypeError("No default value") + } + throw new TypeError("invalid [[DefaultValue]] hint supplied") + } + }; + e.exports = function (e, t) { + return o(e) ? e : a["[[DefaultValue]]"](e, t) + } +}, function (e, t) { + e.exports = function (e) { + return null === e || "function" != typeof e && "object" != typeof e + } +}, function (e, t, n) { + "use strict"; + var r = n(24), + o = n(27); + e.exports = function () { + var e = o(); + return r(String.prototype, { + trim: e + }, { + trim: function () { + return String.prototype.trim !== e + } + }), e + } +}, function (e, t, n) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(135); + n.d(t, "en", function () { + return r.a + }); + var o = n(136); + n.d(t, "en_GB", function () { + return o.a + }); + var i = n(137); + n.d(t, "en_US", function () { + return i.a + }); + var a = n(138); + n.d(t, "ru_RU", function () { + return a.a + }) +}, function (e, t, n) { + "use strict"; + n.d(t, "a", function () { + return r + }); + var r = { + comments: "Comments", + writeAComment: "Write a comment...", + send: "Send", + sending: "Sending...", + name: "Your name", + email: "Your email (optional)", + loadingComments: "loading comments", + networkError: "A network error occurred. Please try again later.", + usernameIsRequired: "Username is required", + textIsRequired: "Comment is required", + loadMoreButton: "press to load more comments", + ctrlEnterToSend: "use Ctrl + Enter to Send, supports Markdown", + share: "share", + reply: "reply", + replyTo: "replying to", + noComments: "Be the first to comment.", + commentRemovedByModerator: "The comment has been removed by the moderator.", + usernameRemoved: "removed" + } +}, function (e, t, n) { + "use strict"; + n.d(t, "a", function () { + return r + }); + var r = { + comments: "Comments", + writeAComment: "Write a comment...", + send: "Send", + sending: "Sending...", + name: "Your name", + email: "Your email (optional)", + loadingComments: "loading comments", + networkError: "A network error occurred. Please try again later.", + usernameIsRequired: "Name is required", + textIsRequired: "Comment is required", + loadMoreButton: "press to load more comments", + ctrlEnterToSend: "use Ctrl + Enter to Send, supports Markdown", + share: "share", + reply: "reply", + replyTo: "replying to", + noComments: "Be the first to comment.", + commentRemovedByModerator: "The comment has been removed by the moderator.", + usernameRemoved: "removed" + } +}, function (e, t, n) { + "use strict"; + n.d(t, "a", function () { + return r + }); + var r = { + comments: "Comments", + writeAComment: "Write a comment...", + send: "Send", + sending: "Sending...", + name: "Your name", + email: "Your email (optional)", + loadingComments: "loading comments", + networkError: "A network error occurred. Please try again later.", + usernameIsRequired: "Name is required", + textIsRequired: "Comment is required", + loadMoreButton: "press to load more comments", + ctrlEnterToSend: "use Ctrl + Enter to Send, supports Markdown", + share: "share", + reply: "reply", + replyTo: "replying to", + noComments: "Be the first to comment.", + commentRemovedByModerator: "The comment has been removed by the moderator.", + usernameRemoved: "removed" + } +}, function (e, t, n) { + "use strict"; + n.d(t, "a", function () { + return r + }); + var r = { + comments: "Комментарии", + writeAComment: "Написать комментарий...", + send: "Отправить", + sending: "Отправляю...", + name: "Никнейм", + email: "Твой емейл (необязательно)", + loadingComments: "загружаю комментарии", + networkError: "Произошла ошибка, попробуйте позже", + usernameIsRequired: "Никнейм обязателен", + textIsRequired: "Комментарий обязателен", + loadMoreButton: "нажми, чтобы загрузить больше комментариев", + ctrlEnterToSend: "Используй Ctrl + Enter, чтобы отправить комментарий (Markdown подерживается)", + share: "поделиться", + reply: "ответить", + replyTo: "отвечая", + noComments: "Оставь первый комментарий.", + commentRemovedByModerator: "Комментарий удален модератором.", + usernameRemoved: "скрыто модератором" + } +}]); +//# sourceMappingURL=index.js.map -- cgit v1.2.3