You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
39 KiB

2 years ago
  1. /** layui-v2.1.5 MIT License By http://www.layui.com */
  2. ; layui.define(function (i) { i("layui.mobile", layui.v) }); layui.define(function (e) { "use strict"; var r = { open: "{{", close: "}}" }, n = { exp: function (e) { return new RegExp(e, "g") }, query: function (e, n, t) { var o = ["#([\\s\\S])+?", "([^{#}])*?"][e || 0]; return c((n || "") + r.open + o + r.close + (t || "")) }, escape: function (e) { return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#39;").replace(/"/g, "&quot;") }, error: function (e, r) { var n = "Laytpl Error:"; return "object" == typeof console && console.error(n + e + "\n" + (r || "")), n + e } }, c = n.exp, t = function (e) { this.tpl = e }; t.pt = t.prototype, window.errors = 0, t.pt.parse = function (e, t) { var o = this, p = e, a = c("^" + r.open + "#", ""), l = c(r.close + "$", ""); e = e.replace(/\s+|\r|\t|\n/g, " ").replace(c(r.open + "#"), r.open + "# ").replace(c(r.close + "}"), "} " + r.close).replace(/\\/g, "\\\\").replace(/(?="|')/g, "\\").replace(n.query(), function (e) { return e = e.replace(a, "").replace(l, ""), '";' + e.replace(/\\/g, "") + ';view+="' }).replace(n.query(1), function (e) { var n = '"+('; return e.replace(/\s/g, "") === r.open + r.close ? "" : (e = e.replace(c(r.open + "|" + r.close), ""), /^=/.test(e) && (e = e.replace(/^=/, ""), n = '"+_escape_('), n + e.replace(/\\/g, "") + ')+"') }), e = '"use strict";var view = "' + e + '";return view;'; try { return o.cache = e = new Function("d, _escape_", e), e(t, n.escape) } catch (u) { return delete o.cache, n.error(u, p) } }, t.pt.render = function (e, r) { var c, t = this; return e ? (c = t.cache ? t.cache(e, n.escape) : t.parse(t.tpl, e), r ? void r(c) : c) : n.error("no data") }; var o = function (e) { return "string" != typeof e ? n.error("Template not found") : new t(e) }; o.config = function (e) { e = e || {}; for (var n in e) r[n] = e[n] }, o.v = "1.2.0", e("laytpl", o) }); layui.define(function (t) { var e = function () { function t(t) { return null == t ? String(t) : J[W.call(t)] || "object" } function e(e) { return "function" == t(e) } function n(t) { return null != t && t == t.window } function r(t) { return null != t && t.nodeType == t.DOCUMENT_NODE } function i(e) { return "object" == t(e) } function o(t) { return i(t) && !n(t) && Object.getPrototypeOf(t) == Object.prototype } function a(t) { var e = !!t && "length" in t && t.length, r = T.type(t); return "function" != r && !n(t) && ("array" == r || 0 === e || "number" == typeof e && e > 0 && e - 1 in t) } function s(t) { return A.call(t, function (t) { return null != t }) } function u(t) { return t.length > 0 ? T.fn.concat.apply([], t) : t } function c(t) { return t.replace(/::/g, "/").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/_/g, "-").toLowerCase() } function l(t) { return t in F ? F[t] : F[t] = new RegExp("(^|\\s)" + t + "(\\s|$)") } function f(t, e) { return "number" != typeof e || k[c(t)] ? e : e + "px" } function h(t) { var e, n; return $[t] || (e = L.createElement(t), L.body.appendChild(e), n = getComputedStyle(e, "").getPropertyValue("display"), e.parentNode.removeChild(e), "none" == n && (n = "block"), $[t] = n), $[t] } function p(t) { return "children" in t ? D.call(t.children) : T.map(t.childNodes, function (t) { if (1 == t.nodeType) return t }) } function d(t, e) { var n, r = t ? t.length : 0; for (n = 0; n < r; n++)this[n] = t[n]; this.length = r, this.selector = e || "" } function m(t, e, n) { for (j in e) n && (o(e[j]) || Q(e[j])) ? (o(e[j]) && !o(t[j]) && (t[j] = {}), Q(e[j]) && !Q(t[j]) && (t[j] = []), m(t[j], e[j], n)) : e[j] !== E && (t[j] = e[j]) } function v(t, e) { return null == e ? T(t) : T(t).filter(e) } function g(t, n, r, i) { return e(n) ? n.call(t, r, i) : n } function y(t, e, n) { null == n ? t.removeAttribute(e) : t.setAttribute(e, n) } function x(t, e) { var n = t.className || "", r = n && n.baseVal !== E; return e === E ? r ? n.baseVal : n : void (r ? n.baseVal = e : t.className = e) } function b(t) { try { return t ? "true" == t || "false" != t && ("null