require = function(e, t, n) { function r(n, i) { function s(e) { return r(s.resolve(e)) } function a(t) { return e[n][1][t] || t } if (!t[n]) { if (!e[n]) { var u = "function" == typeof require && require; if (!i && u) return u(n, !0); if (o) return o(n, !0); var l = new Error("Cannot find module '" + n + "'"); throw l.code = "MODULE_NOT_FOUND", l } s.resolve = a; var c = t[n] = new r.Module; e[n][0].call(c.exports, s, c, c.exports) } return t[n].exports } function i() { this.bundle = r, this.exports = {} } var o = "function" == typeof require && require; r.Module = i, r.modules = e, r.cache = t, r.parent = o; for (var s = 0; s < n.length; s++) r(n[s]); return r }({ 4: [function(e, t, n) { "use strict"; function r(e, t) { return !(!e || !t) && e.left >= t.left && e.left + e.width <= t.left + t.width && e.top >= t.top && e.top + e.height <= t.top + t.height } Object.defineProperty(n, "__esModule", { value: !0 }), n["default"] = r }, {}], 2: [function(e, t, n) { "use strict"; function r(e) { return e && e.__esModule ? e : { "default": e } } function i(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(n, "__esModule", { value: !0 }); var o = 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 } }(), s = e("./fits-in"), a = r(s), u = 1e5, l = function() { function e(t, n, r) { i(this, e), this.recursiveCalls = 0, this.initPaginationState(), this.root = t, this.shadowRoot = t.cloneNode(!0), this.container = n, this.ignoreElements = r.ignoreElements.length > 0, this.ignoredList = r.ignoreElements, this.paginate() } return o(e, [{ key: "initPaginationState", value: function() { this.hiddenNodes = [], this.innerNodes = [], this.previousHiddenNodes = [], this.states = [], this.completed = !1, this.currentPage = 0, this.totalPages = 1 } }, { key: "paginate", value: function() { var e = this.container.getBoundingClientRect(); for (this.checkVisible(this.root, e), this.hideNodes(), this.states.push({ visible: this.innerNodes.slice(), hidden: this.hiddenNodes.slice(), previousHidden: [] }), this.hiddenNodes.length || (this.completed = !0, this.totalPages = 1); !this.completed || this.currentPage !== this.totalPages - 1;) this.nextPage(); this.showPage(0) } }, { key: "checkVisible", value: function(e, t) { if (!(++this.recursiveCalls > u)) { var n = 0, r = e.childNodes; if (this.states.length && -1 !== this.states[this.currentPage - 1].visible.indexOf(e)) return 1; if (3 === e.nodeType) { if (this.ignoreElements && this.checkClassNameContains(this.ignoredList, e.parentNode.className)) return 1; if (0 !== e.wholeText.trim().length) { var i = e.parentNode.getBoundingClientRect(); return (0, a["default"])(i, t) ? (-1 === this.innerNodes.indexOf(e.parentNode) && this.innerNodes.push(e.parentNode), 1) : (-1 === this.hiddenNodes.indexOf(e.parentNode) && this.hiddenNodes.push(e.parentNode), 0) } return 1 } if (1 === e.nodeType) { if ("avoid" === this.getStyleValue(e, "breakInside")) { if (this.ignoreElements && this.checkClassNameContains(this.ignoredList, e.className)) return 0; var o = e.getBoundingClientRect(); if ((0, a["default"])(o, t)) return this.innerNodes.push(e), 1; if (!(o.height >= t.height)) return this.hiddenNodes.push(e), 0; e.style.pageBreakInside = "auto", this.checkVisible(e, t) } if ("inline" === this.getStyleValue(e, "display")) { var s = e.parentNode.getBoundingClientRect(); return (0, a["default"])(s, t) ? (this.innerNodes.push(e), 1) : 0 } if (0 === r.length) return this.ignoreElements && this.checkClassNameContains(this.ignoredList, e.className) ? 0 : (0, a["default"])(e.getBoundingClientRect(), t) ? (this.innerNodes.push(e), 1) : (this.hiddenNodes.push(e), 0) } for (var l = 0; l < r.length; ++l) n += this.checkVisible(r[l], t); return n === r.length && 0 !== r.length ? this.ignoreElements && this.checkClassNameContains(this.ignoredList, e.className) ? 0 : (-1 === this.innerNodes.indexOf(e) && this.innerNodes.push(e), 1) : 0 } } }, { key: "getStyleValue", value: function(e, t) { return window.getComputedStyle(e)[t] } }, { key: "checkClassNameContains", value: function(e, t) { return t.split(" ").some(function(t) { return -1 !== e.indexOf(t) }) } }, { key: "checkFinalElementVisible", value: function(e, t) { var n = e.getBoundingClientRect(); return (0, a["default"])(n, t) } }, { key: "hideNodes", value: function() { this.hiddenNodes.forEach(function(e) { e.style.display = "none" }) } }, { key: "nextPage", value: function() { var e = this; if (this.completed && this.currentPage === this.totalPages - 1) return null; if (this.currentPage < this.states.length - 1) return ++this.currentPage, void this.showPage(this.currentPage); ++this.currentPage; var t = this.container.getBoundingClientRect(); this.hiddenNodes.forEach(function(e) { e.style.display = "" }), this.previousHiddenNodes.forEach(function(e) { e.style.display = "none" }, this), this.innerNodes.forEach(function(e) { e.style.display = "none", -1 === this.previousHiddenNodes.indexOf(e) && this.previousHiddenNodes.push(e) }, this), this.hiddenNodes = [], this.innerNodes = [], this.checkVisible(this.root, t), this.hideNodes(), this.states.push({ visible: this.innerNodes.slice(), hidden: this.hiddenNodes.slice(), previousHidden: this.previousHiddenNodes.slice() }), this.completed || this.totalPages++, this.hiddenNodes.every(function(t) { return -1 !== e.previousHiddenNodes.indexOf(t) }) && (this.completed = !0) } }, { key: "previousPage", value: function() { this.currentPage && (--this.currentPage, this.showPage(this.currentPage)) } }, { key: "getParents", value: function(e) { for (var t = []; e.parentNode && "body" !== e.parentNode.nodeName.toLowerCase();) e = e.parentNode, t.push(e); return t } }, { key: "showPage", value: function(e) { var t = this; this.hiddenNodes = this.states[e].hidden.slice(), this.innerNodes = this.states[e].visible.slice(), this.previousHiddenNodes = this.states[e].previousHidden.slice(), this.innerNodes.forEach(function(e) { e.style.display = "", t.getParents(e).forEach(function(e) { e.style.display = "" }) }), this.hiddenNodes.forEach(function(e) { e.style.display = "none" }), this.previousHiddenNodes.forEach(function(e) { e.style.display = "none" }), this.currentPage = e } }, { key: "getCurrentPage", value: function() { return this.root } }, { key: "getCurrentPageNumber", value: function() { return this.currentPage } }, { key: "isComplete", value: function() { return this.completed } }, { key: "getTotalPagesCount", value: function() { return this.completed ? this.totalPages : null } }]), e }(); n["default"] = l }, { "./fits-in": 4 }], 1: [function(e, t, n) { "use strict"; function r(e) { return e && e.__esModule ? e : { "default": e } } Object.defineProperty(n, "__esModule", { value: !0 }); var i = e("./paguin"), o = r(i); n["default"] = o["default"], window.Paguin = o["default"] }, { "./paguin": 2 }] }, {}, [1]), function(e, t) { "object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function(e) { if (!e.document) throw new Error("jQuery requires a window with a document"); return t(e) } : t(e) }("undefined" != typeof window ? window : this, function(e, t) { function n(e) { var t = !!e && "length" in e && e.length, n = oe.type(e); return "function" !== n && !oe.isWindow(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e) } function r(e, t, n) { if (oe.isFunction(t)) return oe.grep(e, function(e, r) { return !!t.call(e, r, e) !== n }); if (t.nodeType) return oe.grep(e, function(e) { return e === t !== n }); if ("string" == typeof t) { if (ge.test(t)) return oe.filter(t, e, n); t = oe.filter(t, e) } return oe.grep(e, function(e) { return Z.call(t, e) > -1 !== n }) } function i(e, t) { for (; (e = e[t]) && 1 !== e.nodeType;); return e } function o(e) { var t = {}; return oe.each(e.match(be) || [], function(e, n) { t[n] = !0 }), t } function s() { Y.removeEventListener("DOMContentLoaded", s), e.removeEventListener("load", s), oe.ready() } function a() { this.expando = oe.expando + a.uid++ } function u(e, t, n) { var r; if (n === undefined && 1 === e.nodeType) if (r = "data-" + t.replace(Se, "-$&").toLowerCase(), "string" == typeof(n = e.getAttribute(r))) { try { n = "true" === n || "false" !== n && ("null" === n ? null : +n + "" === n ? +n : Ee.test(n) ? oe.parseJSON(n) : n) } catch (e) {} ke.set(e, t, n) } else n = undefined; return n } function l(e, t, n, r) { var i, o = 1, s = 20, a = r ? function() { return r.cur() } : function() { return oe.css(e, t, "") }, u = a(), l = n && n[3] || (oe.cssNumber[t] ? "" : "px"), c = (oe.cssNumber[t] || "px" !== l && +u) && De.exec(oe.css(e, t)); if (c && c[3] !== l) { l = l || c[3], n = n || [], c = +u || 1; do { o = o || ".5", c /= o, oe.style(e, t, c + l) } while (o !== (o = a() / u) && 1 !== o && --s) } return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i } function c(e, t) { var n = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : []; return t === undefined || t && oe.nodeName(e, t) ? oe.merge([e], n) : n } function f(e, t) { for (var n = 0, r = e.length; n < r; n++) Ne.set(e[n], "globalEval", !t || Ne.get(t[n], "globalEval")) } function d(e, t, n, r, i) { for (var o, s, a, u, l, d, p = t.createDocumentFragment(), h = [], g = 0, m = e.length; g < m; g++) if ((o = e[g]) || 0 === o) if ("object" === oe.type(o)) oe.merge(h, o.nodeType ? [o] : o); else if (Re.test(o)) { for (s = s || p.appendChild(t.createElement("div")), a = (qe.exec(o) || ["", ""])[1].toLowerCase(), u = Oe[a] || Oe._default, s.innerHTML = u[1] + oe.htmlPrefilter(o) + u[2], d = u[0]; d--;) s = s.lastChild; oe.merge(h, s.childNodes), s = p.firstChild, s.textContent = "" } else h.push(t.createTextNode(o)); for (p.textContent = "", g = 0; o = h[g++];) if (r && oe.inArray(o, r) > -1) i && i.push(o); else if (l = oe.contains(o.ownerDocument, o), s = c(p.appendChild(o), "script"), l && f(s), n) for (d = 0; o = s[d++];) He.test(o.type || "") && n.push(o); return p } function p() { return !0 } function h() { return !1 } function g() { try { return Y.activeElement } catch (e) {} } function m(e, t, n, r, i, o) { var s, a; if ("object" == typeof t) { "string" != typeof n && (r = r || n, n = undefined); for (a in t) m(e, a, n, r, t[a], o); return e } if (null == r && null == i ? (i = n, r = n = undefined) : null == i && ("string" == typeof n ? (i = r, r = undefined) : (i = r, r = n, n = undefined)), !1 === i) i = h; else if (!i) return e; return 1 === o && (s = i, i = function(e) { return oe().off(e), s.apply(this, arguments) }, i.guid = s.guid || (s.guid = oe.guid++)), e.each(function() { oe.event.add(this, t, i, r, n) }) } function y(e, t) { return oe.nodeName(e, "table") && oe.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e } function v(e) { return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e } function x(e) { var t = _e.exec(e.type); return t ? e.type = t[1] : e.removeAttribute("type"), e } function b(e, t) { var n, r, i, o, s, a, u, l; if (1 === t.nodeType) { if (Ne.hasData(e) && (o = Ne.access(e), s = Ne.set(t, o), l = o.events)) { delete s.handle, s.events = {}; for (i in l) for (n = 0, r = l[i].length; n < r; n++) oe.event.add(t, i, l[i][n]) } ke.hasData(e) && (a = ke.access(e), u = oe.extend({}, a), ke.set(t, u)) } } function w(e, t) { var n = t.nodeName.toLowerCase(); "input" === n && Le.test(e.type) ? t.checked = e.checked : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue) } function C(e, t, n, r) { t = Q.apply([], t); var i, o, s, a, u, l, f = 0, p = e.length, h = p - 1, g = t[0], m = oe.isFunction(g); if (m || p > 1 && "string" == typeof g && !re.checkClone && $e.test(g)) return e.each(function(i) { var o = e.eq(i); m && (t[0] = g.call(this, i, o.html())), C(o, t, n, r) }); if (p && (i = d(t, e[0].ownerDocument, !1, e, r), o = i.firstChild, 1 === i.childNodes.length && (i = o), o || r)) { for (s = oe.map(c(i, "script"), v), a = s.length; f < p; f++) u = i, f !== h && (u = oe.clone(u, !0, !0), a && oe.merge(s, c(u, "script"))), n.call(e[f], u, f); if (a) for (l = s[s.length - 1].ownerDocument, oe.map(s, x), f = 0; f < a; f++) u = s[f], He.test(u.type || "") && !Ne.access(u, "globalEval") && oe.contains(l, u) && (u.src ? oe._evalUrl && oe._evalUrl(u.src) : oe.globalEval(u.textContent.replace(Xe, ""))) } return e } function T(e, t, n) { for (var r, i = t ? oe.filter(t, e) : e, o = 0; null != (r = i[o]); o++) n || 1 !== r.nodeType || oe.cleanData(c(r)), r.parentNode && (n && oe.contains(r.ownerDocument, r) && f(c(r, "script")), r.parentNode.removeChild(r)); return e } function N(e, t) { var n = oe(t.createElement(e)).appendTo(t.body), r = oe.css(n[0], "display"); return n.detach(), r } function k(e) { var t = Y, n = Ve[e]; return n || (n = N(e, t), "none" !== n && n || (ze = (ze || oe("