/** layui-v2.1.5 MIT License By http://www.layui.com */ ; layui.define(function (e) { "use strict"; var a = document, t = "getElementById", n = "getElementsByTagName", i = "laypage", r = "layui-disabled", u = function (e) { var a = this; a.config = e || {}, a.config.index = ++s.index, a.render(!0) }; u.prototype.type = function () { var e = this.config; if ("object" == typeof e.elem) return void 0 === e.elem.length ? 2 : 3 }, u.prototype.view = function () { var e = this, a = e.config, t = a.groups = "groups" in a ? 0 | a.groups : 5; a.layout = "object" == typeof a.layout ? a.layout : ["prev", "page", "next"], a.count = 0 | a.count, a.curr = 0 | a.curr || 1, a.limits = "object" == typeof a.limits ? a.limits : [10, 20, 30, 40, 50], a.limit = 0 | a.limit || 10, a.pages = Math.ceil(a.count / a.limit) || 1, a.curr > a.pages && (a.curr = a.pages), t < 0 ? t = 1 : t > a.pages && (t = a.pages), a.prev = "prev" in a ? a.prev : "上一页", a.next = "next" in a ? a.next : "下一页"; var n = a.pages > t ? Math.ceil((a.curr + (t > 1 ? 1 : 0)) / (t > 0 ? t : 1)) : 1, i = { prev: function () { return a.prev ? '' + a.prev + "" : "" }(), page: function () { var e = []; if (a.count < 1) return ""; n > 1 && a.first !== !1 && 0 !== t && e.push('' + (a.first || 1) + ""); var i = Math.floor((t - 1) / 2), r = n > 1 ? a.curr - i : 1, u = n > 1 ? function () { var e = a.curr + (t - i - 1); return e > a.pages ? a.pages : e }() : t; for (u - r < t - 1 && (r = u - t + 1), a.first !== !1 && r > 2 && e.push('…'); r <= u; r++)r === a.curr ? e.push('" + r + "") : e.push('' + r + ""); return a.pages > t && a.pages > u && a.last !== !1 && (u + 1 < a.pages && e.push('…'), 0 !== t && e.push('' + (a.last || a.pages) + "")), e.join("") }(), next: function () { return a.next ? '' + a.next + "" : "" }(), count: '共 ' + a.count + " 条", limit: function () { var e = ['" }(), skip: function () { return ['到第', '', '页', ""].join("") }() }; return ['