1/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ 2!function (a, b) { 3 "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) { 4 if (!a.document) throw new Error("jQuery requires a window with a document"); 5 return b(a); 6 } : b(a); 7}("undefined" != typeof window ? window : this, function (a, b) { 8 var c = [], 9 d = c.slice, 10 e = c.concat, 11 f = c.push, 12 g = c.indexOf, 13 h = {}, 14 i = h.toString, 15 j = h.hasOwnProperty, 16 k = {}, 17 l = "1.11.2", 18 m = function (a, b) { 19 return new m.fn.init(a, b); 20 }, 21 n = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, 22 o = /^-ms-/, 23 p = /-([\da-z])/gi, 24 q = function (a, b) { 25 return b.toUpperCase(); 26 }; 27 m.fn = m.prototype = { 28 jquery: l, 29 constructor: m, 30 selector: "", 31 length: 0, 32 toArray: function () { 33 return d.call(this); 34 }, 35 get: function (a) { 36 return null != a ? 0 > a ? this[a + this.length] : this[a] : d.call(this); 37 }, 38 pushStack: function (a) { 39 var b = m.merge(this.constructor(), a); 40 return b.prevObject = this, b.context = this.context, b; 41 }, 42 each: function (a, b) { 43 return m.each(this, a, b); 44 }, 45 map: function (a) { 46 return this.pushStack(m.map(this, function (b, c) { 47 return a.call(b, c, b); 48 })); 49 }, 50 slice: function () { 51 return this.pushStack(d.apply(this, arguments)); 52 }, 53 first: function () { 54 return this.eq(0); 55 }, 56 last: function () { 57 return this.eq(-1); 58 }, 59 eq: function (a) { 60 var b = this.length, 61 c = +a + (0 > a ? b : 0); 62 return this.pushStack(c >= 0 && b > c ? [this[c]] : []); 63 }, 64 end: function () { 65 return this.prevObject || this.constructor(null); 66 }, 67 push: f, 68 sort: c.sort, 69 splice: c.splice 70 }, m.extend = m.fn.extend = function () { 71 var a, 72 b, 73 c, 74 d, 75 e, 76 f, 77 g = arguments[0] || {}, 78 h = 1, 79 i = arguments.length, 80 j = !1; 81 for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || m.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++) if (null != (e = arguments[h])) for (d in e) a = g[d], c = e[d], g !== c && (j && c && (m.isPlainObject(c) || (b = m.isArray(c))) ? (b ? (b = !1, f = a && m.isArray(a) ? a : []) : f = a && m.isPlainObject(a) ? a : {}, g[d] = m.extend(j, f, c)) : void 0 !== c && (g[d] = c)); 82 return g; 83 }, m.extend({ 84 expando: "jQuery" + (l + Math.random()).replace(/\D/g, ""), 85 isReady: !0, 86 error: function (a) { 87 throw new Error(a); 88 }, 89 noop: function () {}, 90 isFunction: function (a) { 91 return "function" === m.type(a); 92 }, 93 isArray: Array.isArray || function (a) { 94 return "array" === m.type(a); 95 }, 96 isWindow: function (a) { 97 return null != a && a == a.window; 98 }, 99 isNumeric: function (a) { 100 return !m.isArray(a) && a - parseFloat(a) + 1 >= 0; 101 }, 102 isEmptyObject: function (a) { 103 var b; 104 for (b in a) return !1; 105 return !0; 106 }, 107 isPlainObject: function (a) { 108 var b; 109 if (!a || "object" !== m.type(a) || a.nodeType || m.isWindow(a)) return !1; 110 try { 111 if (a.constructor && !j.call(a, "constructor") && !j.call(a.constructor.prototype, "isPrototypeOf")) return !1; 112 } catch (c) { 113 return !1; 114 } 115 if (k.ownLast) for (b in a) return j.call(a, b); 116 for (b in a); 117 return void 0 === b || j.call(a, b); 118 }, 119 type: function (a) { 120 return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? h[i.call(a)] || "object" : typeof a; 121 }, 122 globalEval: function (b) { 123 b && m.trim(b) && (a.execScript || function (b) { 124 a.eval.call(a, b); 125 })(b); 126 }, 127 camelCase: function (a) { 128 return a.replace(o, "ms-").replace(p, q); 129 }, 130 nodeName: function (a, b) { 131 return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase(); 132 }, 133 each: function (a, b, c) { 134 var d, 135 e = 0, 136 f = a.length, 137 g = r(a); 138 if (c) { 139 if (g) { 140 for (; f > e; e++) if (d = b.apply(a[e], c), d === !1) break; 141 } else for (e in a) if (d = b.apply(a[e], c), d === !1) break; 142 } else if (g) { 143 for (; f > e; e++) if (d = b.call(a[e], e, a[e]), d === !1) break; 144 } else for (e in a) if (d = b.call(a[e], e, a[e]), d === !1) break; 145 return a; 146 }, 147 trim: function (a) { 148 return null == a ? "" : (a + "").replace(n, ""); 149 }, 150 makeArray: function (a, b) { 151 var c = b || []; 152 return null != a && (r(Object(a)) ? m.merge(c, "string" == typeof a ? [a] : a) : f.call(c, a)), c; 153 }, 154 inArray: function (a, b, c) { 155 var d; 156 if (b) { 157 if (g) return g.call(b, a, c); 158 for (d = b.length, c = c ? 0 > c ? Math.max(0, d + c) : c : 0; d > c; c++) if (c in b && b[c] === a) return c; 159 } 160 return -1; 161 }, 162 merge: function (a, b) { 163 var c = +b.length, 164 d = 0, 165 e = a.length; 166 while (c > d) a[e++] = b[d++]; 167 if (c !== c) while (void 0 !== b[d]) a[e++] = b[d++]; 168 return a.length = e, a; 169 }, 170 grep: function (a, b, c) {
vendor: 12,873 bytes, lines 171-469
171 for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++) d = !b(a[f], f), d !== h && e.push(a[f]); 172 return e; 173 }, 174 map: function (a, b, c) { 175 var d, 176 f = 0, 177 g = a.length, 178 h = r(a), 179 i = []; 180 if (h) for (; g > f; f++) d = b(a[f], f, c), null != d && i.push(d);else for (f in a) d = b(a[f], f, c), null != d && i.push(d); 181 return e.apply([], i); 182 }, 183 guid: 1, 184 proxy: function (a, b) { 185 var c, e, f; 186 return "string" == typeof b && (f = a[b], b = a, a = f), m.isFunction(a) ? (c = d.call(arguments, 2), e = function () { 187 return a.apply(b || this, c.concat(d.call(arguments))); 188 }, e.guid = a.guid = a.guid || m.guid++, e) : void 0; 189 }, 190 now: function () { 191 return +new Date(); 192 }, 193 support: k 194 }), m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (a, b) { 195 h["[object " + b + "]"] = b.toLowerCase(); 196 }); 197 function r(a) { 198 var b = a.length, 199 c = m.type(a); 200 return "function" === c || m.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a; 201 } 202 var s = function (a) { 203 var b, 204 c, 205 d, 206 e, 207 f, 208 g, 209 h, 210 i, 211 j, 212 k, 213 l, 214 m, 215 n, 216 o, 217 p, 218 q, 219 r, 220 s, 221 t, 222 u = "sizzle" + 1 * new Date(), 223 v = a.document, 224 w = 0, 225 x = 0, 226 y = hb(), 227 z = hb(), 228 A = hb(), 229 B = function (a, b) { 230 return a === b && (l = !0), 0; 231 }, 232 C = 1 << 31, 233 D = {}.hasOwnProperty, 234 E = [], 235 F = E.pop, 236 G = E.push, 237 H = E.push, 238 I = E.slice, 239 J = function (a, b) { 240 for (var c = 0, d = a.length; d > c; c++) if (a[c] === b) return c; 241 return -1; 242 }, 243 K = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", 244 L = "[\\x20\\t\\r\\n\\f]", 245 M = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", 246 N = M.replace("w", "w#"), 247 O = "\\[" + L + "*(" + M + ")(?:" + L + "*([*^$|!~]?=)" + L + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + N + "))|)" + L + "*\\]", 248 P = ":(" + M + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + O + ")*)|.*)\\)|)", 249 Q = new RegExp(L + "+", "g"), 250 R = new RegExp("^" + L + "+|((?:^|[^\\\\])(?:\\\\.)*)" + L + "+$", "g"), 251 S = new RegExp("^" + L + "*," + L + "*"), 252 T = new RegExp("^" + L + "*([>+~]|" + L + ")" + L + "*"), 253 U = new RegExp("=" + L + "*([^\\]'\"]*?)" + L + "*\\]", "g"), 254 V = new RegExp(P), 255 W = new RegExp("^" + N + "$"), 256 X = { 257 ID: new RegExp("^#(" + M + ")"), 258 CLASS: new RegExp("^\\.(" + M + ")"), 259 TAG: new RegExp("^(" + M.replace("w", "w*") + ")"), 260 ATTR: new RegExp("^" + O), 261 PSEUDO: new RegExp("^" + P), 262 CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + L + "*(even|odd|(([+-]|)(\\d*)n|)" + L + "*(?:([+-]|)" + L + "*(\\d+)|))" + L + "*\\)|)", "i"), 263 bool: new RegExp("^(?:" + K + ")$", "i"), 264 needsContext: new RegExp("^" + L + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + L + "*((?:-\\d)?\\d*)" + L + "*\\)|)(?=[^-]|$)", "i") 265 }, 266 Y = /^(?:input|select|textarea|button)$/i, 267 Z = /^h\d$/i, 268 $ = /^[^{]+\{\s*\[native \w/, 269 _ = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 270 ab = /[+~]/, 271 bb = /'|\\/g, 272 cb = new RegExp("\\\\([\\da-f]{1,6}" + L + "?|(" + L + ")|.)", "ig"), 273 db = function (a, b, c) { 274 var d = "0x" + b - 65536; 275 return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320); 276 }, 277 eb = function () { 278 m(); 279 }; 280 try { 281 H.apply(E = I.call(v.childNodes), v.childNodes), E[v.childNodes.length].nodeType; 282 } catch (fb) { 283 H = { 284 apply: E.length ? function (a, b) { 285 G.apply(a, I.call(b)); 286 } : function (a, b) { 287 var c = a.length, 288 d = 0; 289 while (a[c++] = b[d++]); 290 a.length = c - 1; 291 } 292 }; 293 } 294 function gb(a, b, d, e) { 295 var f, h, j, k, l, o, r, s, w, x; 296 if ((b ? b.ownerDocument || b : v) !== n && m(b), b = b || n, d = d || [], k = b.nodeType, "string" != typeof a || !a || 1 !== k && 9 !== k && 11 !== k) return d; 297 if (!e && p) { 298 if (11 !== k && (f = _.exec(a))) if (j = f[1]) { 299 if (9 === k) { 300 if (h = b.getElementById(j), !h || !h.parentNode) return d; 301 if (h.id === j) return d.push(h), d; 302 } else if (b.ownerDocument && (h = b.ownerDocument.getElementById(j)) && t(b, h) && h.id === j) return d.push(h), d; 303 } else { 304 if (f[2]) return H.apply(d, b.getElementsByTagName(a)), d; 305 if ((j = f[3]) && c.getElementsByClassName) return H.apply(d, b.getElementsByClassName(j)), d; 306 } 307 if (c.qsa && (!q || !q.test(a))) { 308 if (s = r = u, w = b, x = 1 !== k && a, 1 === k && "object" !== b.nodeName.toLowerCase()) { 309 o = g(a), (r = b.getAttribute("id")) ? s = r.replace(bb, "\\$&") : b.setAttribute("id", s), s = "[id='" + s + "'] ", l = o.length; 310 while (l--) o[l] = s + rb(o[l]); 311 w = ab.test(a) && pb(b.parentNode) || b, x = o.join(","); 312 } 313 if (x) try { 314 return H.apply(d, w.querySelectorAll(x)), d; 315 } catch (y) {} finally { 316 r || b.removeAttribute("id"); 317 } 318 } 319 } 320 return i(a.replace(R, "$1"), b, d, e); 321 } 322 function hb() { 323 var a = []; 324 function b(c, e) { 325 return a.push(c + " ") > d.cacheLength && delete b[a.shift()], b[c + " "] = e; 326 } 327 return b; 328 } 329 function ib(a) { 330 return a[u] = !0, a; 331 } 332 function jb(a) { 333 var b = n.createElement("div"); 334 try { 335 return !!a(b); 336 } catch (c) { 337 return !1; 338 } finally { 339 b.parentNode && b.parentNode.removeChild(b), b = null; 340 } 341 } 342 function kb(a, b) { 343 var c = a.split("|"), 344 e = a.length; 345 while (e--) d.attrHandle[c[e]] = b; 346 } 347 function lb(a, b) { 348 var c = b && a, 349 d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || C) - (~a.sourceIndex || C); 350 if (d) return d; 351 if (c) while (c = c.nextSibling) if (c === b) return -1; 352 return a ? 1 : -1; 353 } 354 function mb(a) { 355 return function (b) { 356 var c = b.nodeName.toLowerCase(); 357 return "input" === c && b.type === a; 358 }; 359 } 360 function nb(a) { 361 return function (b) { 362 var c = b.nodeName.toLowerCase(); 363 return ("input" === c || "button" === c) && b.type === a; 364 }; 365 } 366 function ob(a) { 367 return ib(function (b) { 368 return b = +b, ib(function (c, d) { 369 var e, 370 f = a([], c.length, b), 371 g = f.length; 372 while (g--) c[e = f[g]] && (c[e] = !(d[e] = c[e])); 373 }); 374 }); 375 } 376 function pb(a) { 377 return a && "undefined" != typeof a.getElementsByTagName && a; 378 } 379 c = gb.support = {}, f = gb.isXML = function (a) { 380 var b = a && (a.ownerDocument || a).documentElement; 381 return b ? "HTML" !== b.nodeName : !1; 382 }, m = gb.setDocument = function (a) { 383 var b, 384 e, 385 g = a ? a.ownerDocument || a : v; 386 return g !== n && 9 === g.nodeType && g.documentElement ? (n = g, o = g.documentElement, e = g.defaultView, e && e !== e.top && (e.addEventListener ? e.addEventListener("unload", eb, !1) : e.attachEvent && e.attachEvent("onunload", eb)), p = !f(g), c.attributes = jb(function (a) { 387 return a.className = "i", !a.getAttribute("className"); 388 }), c.getElementsByTagName = jb(function (a) { 389 return a.appendChild(g.createComment("")), !a.getElementsByTagName("*").length; 390 }), c.getElementsByClassName = $.test(g.getElementsByClassName), c.getById = jb(function (a) { 391 return o.appendChild(a).id = u, !g.getElementsByName || !g.getElementsByName(u).length; 392 }), c.getById ? (d.find.ID = function (a, b) { 393 if ("undefined" != typeof b.getElementById && p) { 394 var c = b.getElementById(a); 395 return c && c.parentNode ? [c] : []; 396 } 397 }, d.filter.ID = function (a) { 398 var b = a.replace(cb, db); 399 return function (a) { 400 return a.getAttribute("id") === b; 401 }; 402 }) : (delete d.find.ID, d.filter.ID = function (a) { 403 var b = a.replace(cb, db); 404 return function (a) { 405 var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id"); 406 return c && c.value === b; 407 }; 408 }), d.find.TAG = c.getElementsByTagName ? function (a, b) { 409 return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a) : c.qsa ? b.querySelectorAll(a) : void 0; 410 } : function (a, b) { 411 var c, 412 d = [], 413 e = 0, 414 f = b.getElementsByTagName(a); 415 if ("*" === a) { 416 while (c = f[e++]) 1 === c.nodeType && d.push(c); 417 return d; 418 } 419 return f; 420 }, d.find.CLASS = c.getElementsByClassName && function (a, b) { 421 return p ? b.getElementsByClassName(a) : void 0; 422 }, r = [], q = [], (c.qsa = $.test(g.querySelectorAll)) && (jb(function (a) { 423 o.appendChild(a).innerHTML = "<a id='" + u + "'></a><select id='" + u + "-\f]' msallowcapture=''><option selected=''></option></select>", a.querySelectorAll("[msallowcapture^='']").length && q.push("[*^$]=" + L + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || q.push("\\[" + L + "*(?:value|" + K + ")"), a.querySelectorAll("[id~=" + u + "-]").length || q.push("~="), a.querySelectorAll(":checked").length || q.push(":checked"), a.querySelectorAll("a#" + u + "+*").length || q.push(".#.+[+~]"); 424 }), jb(function (a) { 425 var b = g.createElement("input"); 426 b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && q.push("name" + L + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || q.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), q.push(",.*:"); 427 })), (c.matchesSelector = $.test(s = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.oMatchesSelector || o.msMatchesSelector)) && jb(function (a) { 428 c.disconnectedMatch = s.call(a, "div"), s.call(a, "[s!='']:x"), r.push("!=", P); 429 }), q = q.length && new RegExp(q.join("|")), r = r.length && new RegExp(r.join("|")), b = $.test(o.compareDocumentPosition), t = b || $.test(o.contains) ? function (a, b) { 430 var c = 9 === a.nodeType ? a.documentElement : a, 431 d = b && b.parentNode; 432 return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d))); 433 } : function (a, b) { 434 if (b) while (b = b.parentNode) if (b === a) return !0; 435 return !1; 436 }, B = b ? function (a, b) { 437 if (a === b) return l = !0, 0; 438 var d = !a.compareDocumentPosition - !b.compareDocumentPosition; 439 return d ? d : (d = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & d || !c.sortDetached && b.compareDocumentPosition(a) === d ? a === g || a.ownerDocument === v && t(v, a) ? -1 : b === g || b.ownerDocument === v && t(v, b) ? 1 : k ? J(k, a) - J(k, b) : 0 : 4 & d ? -1 : 1); 440 } : function (a, b) { 441 if (a === b) return l = !0, 0; 442 var c, 443 d = 0, 444 e = a.parentNode, 445 f = b.parentNode, 446 h = [a], 447 i = [b]; 448 if (!e || !f) return a === g ? -1 : b === g ? 1 : e ? -1 : f ? 1 : k ? J(k, a) - J(k, b) : 0; 449 if (e === f) return lb(a, b); 450 c = a; 451 while (c = c.parentNode) h.unshift(c); 452 c = b; 453 while (c = c.parentNode) i.unshift(c); 454 while (h[d] === i[d]) d++; 455 return d ? lb(h[d], i[d]) : h[d] === v ? -1 : i[d] === v ? 1 : 0; 456 }, g) : n; 457 }, gb.matches = function (a, b) { 458 return gb(a, null, null, b); 459 }, gb.matchesSelector = function (a, b) { 460 if ((a.ownerDocument || a) !== n && m(a), b = b.replace(U, "='$1']"), !(!c.matchesSelector || !p || r && r.test(b) || q && q.test(b))) try { 461 var d = s.call(a, b); 462 if (d || c.disconnectedMatch || a.document && 11 !== a.document.nodeType) return d; 463 } catch (e) {} 464 return gb(b, n, null, [a]).length > 0; 465 }, gb.contains = function (a, b) { 466 return (a.ownerDocument || a) !== n && m(a), t(a, b); 467 }, gb.attr = function (a, b) { 468 (a.ownerDocument || a) !== n && m(a); 469 var e = d.attrHandle[b.toLowerCase()],
vendor: 10,291 bytes, lines 470-744
470 f = e && D.call(d.attrHandle, b.toLowerCase()) ? e(a, b, !p) : void 0; 471 return void 0 !== f ? f : c.attributes || !p ? a.getAttribute(b) : (f = a.getAttributeNode(b)) && f.specified ? f.value : null; 472 }, gb.error = function (a) { 473 throw new Error("Syntax error, unrecognized expression: " + a); 474 }, gb.uniqueSort = function (a) { 475 var b, 476 d = [], 477 e = 0, 478 f = 0; 479 if (l = !c.detectDuplicates, k = !c.sortStable && a.slice(0), a.sort(B), l) { 480 while (b = a[f++]) b === a[f] && (e = d.push(f)); 481 while (e--) a.splice(d[e], 1); 482 } 483 return k = null, a; 484 }, e = gb.getText = function (a) { 485 var b, 486 c = "", 487 d = 0, 488 f = a.nodeType; 489 if (f) { 490 if (1 === f || 9 === f || 11 === f) { 491 if ("string" == typeof a.textContent) return a.textContent; 492 for (a = a.firstChild; a; a = a.nextSibling) c += e(a); 493 } else if (3 === f || 4 === f) return a.nodeValue; 494 } else while (b = a[d++]) c += e(b); 495 return c; 496 }, d = gb.selectors = { 497 cacheLength: 50, 498 createPseudo: ib, 499 match: X, 500 attrHandle: {}, 501 find: {}, 502 relative: { 503 ">": { 504 dir: "parentNode", 505 first: !0 506 }, 507 " ": { 508 dir: "parentNode" 509 }, 510 "+": { 511 dir: "previousSibling", 512 first: !0 513 }, 514 "~": { 515 dir: "previousSibling" 516 } 517 }, 518 preFilter: { 519 ATTR: function (a) { 520 return a[1] = a[1].replace(cb, db), a[3] = (a[3] || a[4] || a[5] || "").replace(cb, db), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4); 521 }, 522 CHILD: function (a) { 523 return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || gb.error(a[0]), a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && gb.error(a[0]), a; 524 }, 525 PSEUDO: function (a) { 526 var b, 527 c = !a[6] && a[2]; 528 return X.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && V.test(c) && (b = g(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), a[2] = c.slice(0, b)), a.slice(0, 3)); 529 } 530 }, 531 filter: { 532 TAG: function (a) { 533 var b = a.replace(cb, db).toLowerCase(); 534 return "*" === a ? function () { 535 return !0; 536 } : function (a) { 537 return a.nodeName && a.nodeName.toLowerCase() === b; 538 }; 539 }, 540 CLASS: function (a) { 541 var b = y[a + " "]; 542 return b || (b = new RegExp("(^|" + L + ")" + a + "(" + L + "|$)")) && y(a, function (a) { 543 return b.test("string" == typeof a.className && a.className || "undefined" != typeof a.getAttribute && a.getAttribute("class") || ""); 544 }); 545 }, 546 ATTR: function (a, b, c) { 547 return function (d) { 548 var e = gb.attr(d, a); 549 return null == e ? "!=" === b : b ? (e += "", "=" === b ? e === c : "!=" === b ? e !== c : "^=" === b ? c && 0 === e.indexOf(c) : "*=" === b ? c && e.indexOf(c) > -1 : "$=" === b ? c && e.slice(-c.length) === c : "~=" === b ? (" " + e.replace(Q, " ") + " ").indexOf(c) > -1 : "|=" === b ? e === c || e.slice(0, c.length + 1) === c + "-" : !1) : !0; 550 }; 551 }, 552 CHILD: function (a, b, c, d, e) { 553 var f = "nth" !== a.slice(0, 3), 554 g = "last" !== a.slice(-4), 555 h = "of-type" === b; 556 return 1 === d && 0 === e ? function (a) { 557 return !!a.parentNode; 558 } : function (b, c, i) { 559 var j, 560 k, 561 l, 562 m, 563 n, 564 o, 565 p = f !== g ? "nextSibling" : "previousSibling", 566 q = b.parentNode, 567 r = h && b.nodeName.toLowerCase(), 568 s = !i && !h; 569 if (q) { 570 if (f) { 571 while (p) { 572 l = b; 573 while (l = l[p]) if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) return !1; 574 o = p = "only" === a && !o && "nextSibling"; 575 } 576 return !0; 577 } 578 if (o = [g ? q.firstChild : q.lastChild], g && s) { 579 k = q[u] || (q[u] = {}), j = k[a] || [], n = j[0] === w && j[1], m = j[0] === w && j[2], l = n && q.childNodes[n]; 580 while (l = ++n && l && l[p] || (m = n = 0) || o.pop()) if (1 === l.nodeType && ++m && l === b) { 581 k[a] = [w, n, m]; 582 break; 583 } 584 } else if (s && (j = (b[u] || (b[u] = {}))[a]) && j[0] === w) m = j[1];else while (l = ++n && l && l[p] || (m = n = 0) || o.pop()) if ((h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) && ++m && (s && ((l[u] || (l[u] = {}))[a] = [w, m]), l === b)) break; 585 return m -= e, m === d || m % d === 0 && m / d >= 0; 586 } 587 }; 588 }, 589 PSEUDO: function (a, b) { 590 var c, 591 e = d.pseudos[a] || d.setFilters[a.toLowerCase()] || gb.error("unsupported pseudo: " + a); 592 return e[u] ? e(b) : e.length > 1 ? (c = [a, a, "", b], d.setFilters.hasOwnProperty(a.toLowerCase()) ? ib(function (a, c) { 593 var d, 594 f = e(a, b), 595 g = f.length; 596 while (g--) d = J(a, f[g]), a[d] = !(c[d] = f[g]); 597 }) : function (a) { 598 return e(a, 0, c); 599 }) : e; 600 } 601 }, 602 pseudos: { 603 not: ib(function (a) { 604 var b = [], 605 c = [], 606 d = h(a.replace(R, "$1")); 607 return d[u] ? ib(function (a, b, c, e) { 608 var f, 609 g = d(a, null, e, []), 610 h = a.length; 611 while (h--) (f = g[h]) && (a[h] = !(b[h] = f)); 612 }) : function (a, e, f) { 613 return b[0] = a, d(b, null, f, c), b[0] = null, !c.pop(); 614 }; 615 }), 616 has: ib(function (a) { 617 return function (b) { 618 return gb(a, b).length > 0; 619 }; 620 }), 621 contains: ib(function (a) { 622 return a = a.replace(cb, db), function (b) { 623 return (b.textContent || b.innerText || e(b)).indexOf(a) > -1; 624 }; 625 }), 626 lang: ib(function (a) { 627 return W.test(a || "") || gb.error("unsupported lang: " + a), a = a.replace(cb, db).toLowerCase(), function (b) { 628 var c; 629 do if (c = p ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-"); while ((b = b.parentNode) && 1 === b.nodeType); 630 return !1; 631 }; 632 }), 633 target: function (b) { 634 var c = a.location && a.location.hash; 635 return c && c.slice(1) === b.id; 636 }, 637 root: function (a) { 638 return a === o; 639 }, 640 focus: function (a) { 641 return a === n.activeElement && (!n.hasFocus || n.hasFocus()) && !!(a.type || a.href || ~a.tabIndex); 642 }, 643 enabled: function (a) { 644 return a.disabled === !1; 645 }, 646 disabled: function (a) { 647 return a.disabled === !0; 648 }, 649 checked: function (a) { 650 var b = a.nodeName.toLowerCase(); 651 return "input" === b && !!a.checked || "option" === b && !!a.selected; 652 }, 653 selected: function (a) { 654 return a.parentNode && a.parentNode.selectedIndex, a.selected === !0; 655 }, 656 empty: function (a) { 657 for (a = a.firstChild; a; a = a.nextSibling) if (a.nodeType < 6) return !1; 658 return !0; 659 }, 660 parent: function (a) { 661 return !d.pseudos.empty(a); 662 }, 663 header: function (a) { 664 return Z.test(a.nodeName); 665 }, 666 input: function (a) { 667 return Y.test(a.nodeName); 668 }, 669 button: function (a) { 670 var b = a.nodeName.toLowerCase(); 671 return "input" === b && "button" === a.type || "button" === b; 672 }, 673 text: function (a) { 674 var b; 675 return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase()); 676 }, 677 first: ob(function () { 678 return [0]; 679 }), 680 last: ob(function (a, b) { 681 return [b - 1]; 682 }), 683 eq: ob(function (a, b, c) { 684 return [0 > c ? c + b : c]; 685 }), 686 even: ob(function (a, b) { 687 for (var c = 0; b > c; c += 2) a.push(c); 688 return a; 689 }), 690 odd: ob(function (a, b) { 691 for (var c = 1; b > c; c += 2) a.push(c); 692 return a; 693 }), 694 lt: ob(function (a, b, c) { 695 for (var d = 0 > c ? c + b : c; --d >= 0;) a.push(d); 696 return a; 697 }), 698 gt: ob(function (a, b, c) { 699 for (var d = 0 > c ? c + b : c; ++d < b;) a.push(d); 700 return a; 701 }) 702 } 703 }, d.pseudos.nth = d.pseudos.eq; 704 for (b in { 705 radio: !0, 706 checkbox: !0, 707 file: !0, 708 password: !0, 709 image: !0 710 }) d.pseudos[b] = mb(b); 711 for (b in { 712 submit: !0, 713 reset: !0 714 }) d.pseudos[b] = nb(b); 715 function qb() {} 716 qb.prototype = d.filters = d.pseudos, d.setFilters = new qb(), g = gb.tokenize = function (a, b) { 717 var c, 718 e, 719 f, 720 g, 721 h, 722 i, 723 j, 724 k = z[a + " "]; 725 if (k) return b ? 0 : k.slice(0); 726 h = a, i = [], j = d.preFilter; 727 while (h) { 728 (!c || (e = S.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), c = !1, (e = T.exec(h)) && (c = e.shift(), f.push({ 729 value: c, 730 type: e[0].replace(R, " ") 731 }), h = h.slice(c.length)); 732 for (g in d.filter) !(e = X[g].exec(h)) || j[g] && !(e = j[g](e)) || (c = e.shift(), f.push({ 733 value: c, 734 type: g, 735 matches: e 736 }), h = h.slice(c.length)); 737 if (!c) break; 738 } 739 return b ? h.length : h ? gb.error(a) : z(a, i).slice(0); 740 }; 741 function rb(a) { 742 for (var b = 0, c = a.length, d = ""; c > b; b++) d += a[b].value; 743 return d; 744 }
vendor: 9,231 bytes, lines 745-979
745 function sb(a, b, c) { 746 var d = b.dir, 747 e = c && "parentNode" === d, 748 f = x++; 749 return b.first ? function (b, c, f) { 750 while (b = b[d]) if (1 === b.nodeType || e) return a(b, c, f); 751 } : function (b, c, g) { 752 var h, 753 i, 754 j = [w, f]; 755 if (g) { 756 while (b = b[d]) if ((1 === b.nodeType || e) && a(b, c, g)) return !0; 757 } else while (b = b[d]) if (1 === b.nodeType || e) { 758 if (i = b[u] || (b[u] = {}), (h = i[d]) && h[0] === w && h[1] === f) return j[2] = h[2]; 759 if (i[d] = j, j[2] = a(b, c, g)) return !0; 760 } 761 }; 762 } 763 function tb(a) { 764 return a.length > 1 ? function (b, c, d) { 765 var e = a.length; 766 while (e--) if (!a[e](b, c, d)) return !1; 767 return !0; 768 } : a[0]; 769 } 770 function ub(a, b, c) { 771 for (var d = 0, e = b.length; e > d; d++) gb(a, b[d], c); 772 return c; 773 } 774 function vb(a, b, c, d, e) { 775 for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++) (f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h)); 776 return g; 777 } 778 function wb(a, b, c, d, e, f) { 779 return d && !d[u] && (d = wb(d)), e && !e[u] && (e = wb(e, f)), ib(function (f, g, h, i) { 780 var j, 781 k, 782 l, 783 m = [], 784 n = [], 785 o = g.length, 786 p = f || ub(b || "*", h.nodeType ? [h] : h, []), 787 q = !a || !f && b ? p : vb(p, m, a, h, i), 788 r = c ? e || (f ? a : o || d) ? [] : g : q; 789 if (c && c(q, r, h, i), d) { 790 j = vb(r, n), d(j, [], h, i), k = j.length; 791 while (k--) (l = j[k]) && (r[n[k]] = !(q[n[k]] = l)); 792 } 793 if (f) { 794 if (e || a) { 795 if (e) { 796 j = [], k = r.length; 797 while (k--) (l = r[k]) && j.push(q[k] = l); 798 e(null, r = [], j, i); 799 } 800 k = r.length; 801 while (k--) (l = r[k]) && (j = e ? J(f, l) : m[k]) > -1 && (f[j] = !(g[j] = l)); 802 } 803 } else r = vb(r === g ? r.splice(o, r.length) : r), e ? e(null, g, r, i) : H.apply(g, r); 804 }); 805 } 806 function xb(a) { 807 for (var b, c, e, f = a.length, g = d.relative[a[0].type], h = g || d.relative[" "], i = g ? 1 : 0, k = sb(function (a) { 808 return a === b; 809 }, h, !0), l = sb(function (a) { 810 return J(b, a) > -1; 811 }, h, !0), m = [function (a, c, d) { 812 var e = !g && (d || c !== j) || ((b = c).nodeType ? k(a, c, d) : l(a, c, d)); 813 return b = null, e; 814 }]; f > i; i++) if (c = d.relative[a[i].type]) m = [sb(tb(m), c)];else { 815 if (c = d.filter[a[i].type].apply(null, a[i].matches), c[u]) { 816 for (e = ++i; f > e; e++) if (d.relative[a[e].type]) break; 817 return wb(i > 1 && tb(m), i > 1 && rb(a.slice(0, i - 1).concat({ 818 value: " " === a[i - 2].type ? "*" : "" 819 })).replace(R, "$1"), c, e > i && xb(a.slice(i, e)), f > e && xb(a = a.slice(e)), f > e && rb(a)); 820 } 821 m.push(c); 822 } 823 return tb(m); 824 } 825 function yb(a, b) { 826 var c = b.length > 0, 827 e = a.length > 0, 828 f = function (f, g, h, i, k) { 829 var l, 830 m, 831 o, 832 p = 0, 833 q = "0", 834 r = f && [], 835 s = [], 836 t = j, 837 u = f || e && d.find.TAG("*", k), 838 v = w += null == t ? 1 : Math.random() || .1, 839 x = u.length; 840 for (k && (j = g !== n && g); q !== x && null != (l = u[q]); q++) { 841 if (e && l) { 842 m = 0; 843 while (o = a[m++]) if (o(l, g, h)) { 844 i.push(l); 845 break; 846 } 847 k && (w = v); 848 } 849 c && ((l = !o && l) && p--, f && r.push(l)); 850 } 851 if (p += q, c && q !== p) { 852 m = 0; 853 while (o = b[m++]) o(r, s, g, h); 854 if (f) { 855 if (p > 0) while (q--) r[q] || s[q] || (s[q] = F.call(i)); 856 s = vb(s); 857 } 858 H.apply(i, s), k && !f && s.length > 0 && p + b.length > 1 && gb.uniqueSort(i); 859 } 860 return k && (w = v, j = t), r; 861 }; 862 return c ? ib(f) : f; 863 } 864 return h = gb.compile = function (a, b) { 865 var c, 866 d = [], 867 e = [], 868 f = A[a + " "]; 869 if (!f) { 870 b || (b = g(a)), c = b.length; 871 while (c--) f = xb(b[c]), f[u] ? d.push(f) : e.push(f); 872 f = A(a, yb(e, d)), f.selector = a; 873 } 874 return f; 875 }, i = gb.select = function (a, b, e, f) { 876 var i, 877 j, 878 k, 879 l, 880 m, 881 n = "function" == typeof a && a, 882 o = !f && g(a = n.selector || a); 883 if (e = e || [], 1 === o.length) { 884 if (j = o[0] = o[0].slice(0), j.length > 2 && "ID" === (k = j[0]).type && c.getById && 9 === b.nodeType && p && d.relative[j[1].type]) { 885 if (b = (d.find.ID(k.matches[0].replace(cb, db), b) || [])[0], !b) return e; 886 n && (b = b.parentNode), a = a.slice(j.shift().value.length); 887 } 888 i = X.needsContext.test(a) ? 0 : j.length; 889 while (i--) { 890 if (k = j[i], d.relative[l = k.type]) break; 891 if ((m = d.find[l]) && (f = m(k.matches[0].replace(cb, db), ab.test(j[0].type) && pb(b.parentNode) || b))) { 892 if (j.splice(i, 1), a = f.length && rb(j), !a) return H.apply(e, f), e; 893 break; 894 } 895 } 896 } 897 return (n || h(a, o))(f, b, !p, e, ab.test(a) && pb(b.parentNode) || b), e; 898 }, c.sortStable = u.split("").sort(B).join("") === u, c.detectDuplicates = !!l, m(), c.sortDetached = jb(function (a) { 899 return 1 & a.compareDocumentPosition(n.createElement("div")); 900 }), jb(function (a) { 901 return a.innerHTML = "<a href='#'></a>", "#" === a.firstChild.getAttribute("href"); 902 }) || kb("type|href|height|width", function (a, b, c) { 903 return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2); 904 }), c.attributes && jb(function (a) { 905 return a.innerHTML = "<input/>", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value"); 906 }) || kb("value", function (a, b, c) { 907 return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue; 908 }), jb(function (a) { 909 return null == a.getAttribute("disabled"); 910 }) || kb(K, function (a, b, c) { 911 var d; 912 return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null; 913 }), gb; 914 }(a); 915 m.find = s, m.expr = s.selectors, m.expr[":"] = m.expr.pseudos, m.unique = s.uniqueSort, m.text = s.getText, m.isXMLDoc = s.isXML, m.contains = s.contains; 916 var t = m.expr.match.needsContext, 917 u = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, 918 v = /^.[^:#\[\.,]*$/; 919 function w(a, b, c) { 920 if (m.isFunction(b)) return m.grep(a, function (a, d) { 921 return !!b.call(a, d, a) !== c; 922 }); 923 if (b.nodeType) return m.grep(a, function (a) { 924 return a === b !== c; 925 }); 926 if ("string" == typeof b) { 927 if (v.test(b)) return m.filter(b, a, c); 928 b = m.filter(b, a); 929 } 930 return m.grep(a, function (a) { 931 return m.inArray(a, b) >= 0 !== c; 932 }); 933 } 934 m.filter = function (a, b, c) { 935 var d = b[0]; 936 return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? m.find.matchesSelector(d, a) ? [d] : [] : m.find.matches(a, m.grep(b, function (a) { 937 return 1 === a.nodeType; 938 })); 939 }, m.fn.extend({ 940 find: function (a) { 941 var b, 942 c = [], 943 d = this, 944 e = d.length; 945 if ("string" != typeof a) return this.pushStack(m(a).filter(function () { 946 for (b = 0; e > b; b++) if (m.contains(d[b], this)) return !0; 947 })); 948 for (b = 0; e > b; b++) m.find(a, d[b], c); 949 return c = this.pushStack(e > 1 ? m.unique(c) : c), c.selector = this.selector ? this.selector + " " + a : a, c; 950 }, 951 filter: function (a) { 952 return this.pushStack(w(this, a || [], !1)); 953 }, 954 not: function (a) { 955 return this.pushStack(w(this, a || [], !0)); 956 }, 957 is: function (a) { 958 return !!w(this, "string" == typeof a && t.test(a) ? m(a) : a || [], !1).length; 959 } 960 }); 961 var x, 962 y = a.document, 963 z = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, 964 A = m.fn.init = function (a, b) { 965 var c, d; 966 if (!a) return this; 967 if ("string" == typeof a) { 968 if (c = "<" === a.charAt(0) && ">" === a.charAt(a.length - 1) && a.length >= 3 ? [null, a, null] : z.exec(a), !c || !c[1] && b) return !b || b.jquery ? (b || x).find(a) : this.constructor(b).find(a); 969 if (c[1]) { 970 if (b = b instanceof m ? b[0] : b, m.merge(this, m.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : y, !0)), u.test(c[1]) && m.isPlainObject(b)) for (c in b) m.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]); 971 return this; 972 } 973 if (d = y.getElementById(c[2]), d && d.parentNode) { 974 if (d.id !== c[2]) return x.find(a); 975 this.length = 1, this[0] = d; 976 } 977 return this.context = y, this.selector = a, this; 978 } 979 return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : m.is
979Function(a) ? "undefined" != typeof x.ready ? x.ready(a) : a(m) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), m.makeArray(a, this)); 980 }; 981 A.prototype = m.fn, x = m(y); 982 var B = /^(?:parents|prev(?:Until|All))/, 983 C = { 984 children: !0, 985 contents: !0, 986 next: !0, 987 prev: !0 988 }; 989 m.extend({ 990 dir: function (a, b, c) { 991 var d = [], 992 e = a[b]; 993 while (e && 9 !== e.nodeType && (void 0 === c || 1 !== e.nodeType || !m(e).is(c))) 1 === e.nodeType && d.push(e), e = e[b]; 994 return d; 995 }, 996 sibling: function (a, b) { 997 for (var c = []; a; a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a); 998 return c; 999 } 1000 }), m.fn.extend({ 1001 has: function (a) { 1002 var b, 1003 c = m(a, this), 1004 d = c.length; 1005 return this.filter(function () { 1006 for (b = 0; d > b; b++) if (m.contains(this, c[b])) return !0; 1007 }); 1008 }, 1009 closest: function (a, b) { 1010 for (var c, d = 0, e = this.length, f = [], g = t.test(a) || "string" != typeof a ? m(a, b || this.context) : 0; e > d; d++) for (c = this[d]; c && c !== b; c = c.parentNode) if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && m.find.matchesSelector(c, a))) { 1011 f.push(c); 1012 break; 1013 } 1014 return this.pushStack(f.length > 1 ? m.unique(f) : f); 1015 }, 1016 index: function (a) { 1017 return a ? "string" == typeof a ? m.inArray(this[0], m(a)) : m.inArray(a.jquery ? a[0] : a, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1; 1018 }, 1019 add: function (a, b) { 1020 return this.pushStack(m.unique(m.merge(this.get(), m(a, b)))); 1021 }, 1022 addBack: function (a) { 1023 return this.add(null == a ? this.prevObject : this.prevObject.filter(a)); 1024 } 1025 }); 1026 function D(a, b) { 1027 do a = a[b]; while (a && 1 !== a.nodeType); 1028 return a; 1029 } 1030 m.each({ 1031 parent: function (a) { 1032 var b = a.parentNode; 1033 return b && 11 !== b.nodeType ? b : null; 1034 }, 1035 parents: function (a) { 1036 return m.dir(a, "parentNode"); 1037 }, 1038 parentsUntil: function (a, b, c) { 1039 return m.dir(a, "parentNode", c); 1040 }, 1041 next: function (a) { 1042 return D(a, "nextSibling"); 1043 }, 1044 prev: function (a) { 1045 return D(a, "previousSibling"); 1046 }, 1047 nextAll: function (a) { 1048 return m.dir(a, "nextSibling"); 1049 }, 1050 prevAll: function (a) { 1051 return m.dir(a, "previousSibling"); 1052 }, 1053 nextUntil: function (a, b, c) { 1054 return m.dir(a, "nextSibling", c); 1055 }, 1056 prevUntil: function (a, b, c) { 1057 return m.dir(a, "previousSibling", c); 1058 }, 1059 siblings: function (a) { 1060 return m.sibling((a.parentNode || {}).firstChild, a); 1061 }, 1062 children: function (a) { 1063 return m.sibling(a.firstChild); 1064 }, 1065 contents: function (a) { 1066 return m.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : m.merge([], a.childNodes); 1067 } 1068 }, function (a, b) { 1069 m.fn[a] = function (c, d) { 1070 var e = m.map(this, b, c); 1071 return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = m.filter(d, e)), this.length > 1 && (C[a] || (e = m.unique(e)), B.test(a) && (e = e.reverse())), this.pushStack(e); 1072 }; 1073 }); 1074 var E = /\S+/g, 1075 F = {}; 1076 function G(a) { 1077 var b = F[a] = {}; 1078 return m.each(a.match(E) || [], function (a, c) { 1079 b[c] = !0; 1080 }), b; 1081 } 1082 m.Callbacks = function (a) { 1083 a = "string" == typeof a ? F[a] || G(a) : m.extend({}, a); 1084 var b, 1085 c, 1086 d, 1087 e, 1088 f, 1089 g, 1090 h = [], 1091 i = !a.once && [], 1092 j = function (l) { 1093 for (c = a.memory && l, d = !0, f = g || 0, g = 0, e = h.length, b = !0; h && e > f; f++) if (h[f].apply(l[0], l[1]) === !1 && a.stopOnFalse) { 1094 c = !1; 1095 break; 1096 } 1097 b = !1, h && (i ? i.length && j(i.shift()) : c ? h = [] : k.disable()); 1098 }, 1099 k = { 1100 add: function () { 1101 if (h) { 1102 var d = h.length; 1103 !function f(b) { 1104 m.each(b, function (b, c) { 1105 var d = m.type(c); 1106 "function" === d ? a.unique && k.has(c) || h.push(c) : c && c.length && "string" !== d && f(c); 1107 }); 1108 }(arguments), b ? e = h.length : c && (g = d, j(c)); 1109 } 1110 return this; 1111 }, 1112 remove: function () { 1113 return h && m.each(arguments, function (a, c) { 1114 var d; 1115 while ((d = m.inArray(c, h, d)) > -1) h.splice(d, 1), b && (e >= d && e--, f >= d && f--); 1116 }), this; 1117 }, 1118 has: function (a) { 1119 return a ? m.inArray(a, h) > -1 : !(!h || !h.length); 1120 }, 1121 empty: function () { 1122 return h = [], e = 0, this; 1123 }, 1124 disable: function () { 1125 return h = i = c = void 0, this; 1126 }, 1127 disabled: function () { 1128 return !h; 1129 }, 1130 lock: function () { 1131 return i = void 0, c || k.disable(), this; 1132 }, 1133 locked: function () { 1134 return !i; 1135 }, 1136 fireWith: function (a, c) { 1137 return !h || d && !i || (c = c || [], c = [a, c.slice ? c.slice() : c], b ? i.push(c) : j(c)), this; 1138 }, 1139 fire: function () { 1140 return k.fireWith(this, arguments), this; 1141 }, 1142 fired: function () { 1143 return !!d; 1144 } 1145 }; 1146 return k; 1147 }, m.extend({ 1148 Deferred: function (a) { 1149 var b = [["resolve", "done", m.Callbacks("once memory"), "resolved"], ["reject", "fail", m.Callbacks("once memory"), "rejected"], ["notify", "progress", m.Callbacks("memory")]], 1150 c = "pending", 1151 d = { 1152 state: function () { 1153 return c; 1154 }, 1155 always: function () { 1156 return e.done(arguments).fail(arguments), this; 1157 }, 1158 then: function () { 1159 var a = arguments; 1160 return m.Deferred(function (c) { 1161 m.each(b, function (b, f) { 1162 var g = m.isFunction(a[b]) && a[b]; 1163 e[f[1]](function () { 1164 var a = g && g.apply(this, arguments); 1165 a && m.isFunction(a.promise) ? a.promise().done(c.resolve).fail(c.reject).progress(c.notify) : c[f[0] + "With"](this === d ? c.promise() : this, g ? [a] : arguments); 1166 }); 1167 }), a = null; 1168 }).promise(); 1169 }, 1170 promise: function (a) { 1171 return null != a ? m.extend(a, d) : d; 1172 } 1173 }, 1174 e = {}; 1175 return d.pipe = d.then, m.each(b, function (a, f) { 1176 var g = f[2], 1177 h = f[3]; 1178 d[f[1]] = g.add, h && g.add(function () { 1179 c = h; 1180 }, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function () { 1181 return e[f[0] + "With"](this === e ? d : this, arguments), this; 1182 }, e[f[0] + "With"] = g.fireWith; 1183 }), d.promise(e), a && a.call(e, e), e; 1184 }, 1185 when: function (a) { 1186 var b = 0, 1187 c = d.call(arguments), 1188 e = c.length, 1189 f = 1 !== e || a && m.isFunction(a.promise) ? e : 0, 1190 g = 1 === f ? a : m.Deferred(), 1191 h = function (a, b, c) { 1192 return function (e) { 1193 b[a] = this, c[a] = arguments.length > 1 ? d.call(arguments) : e, c === i ? g.notifyWith(b, c) : --f || g.resolveWith(b, c); 1194 }; 1195 }, 1196 i, 1197 j, 1198 k; 1199 if (e > 1) for (i = new Array(e), j = new Array(e), k = new Array(e); e > b; b++) c[b] && m.isFunction(c[b].promise) ? c[b].promise().done(h(b, k, c)).fail(g.reject).progress(h(b, j, i)) : --f; 1200 return f || g.resolveWith(k, c), g.promise(); 1201 } 1202 }); 1203 var H; 1204 m.fn.ready = function (a) { 1205 return m.ready.promise().done(a), this; 1206 }, m.extend({ 1207 isReady: !1, 1208 readyWait: 1, 1209 holdReady: function (a) { 1210 a ? m.readyWait++ : m.ready(!0); 1211 }, 1212 ready: function (a) { 1213 if (a === !0 ? ! --m.readyWait : !m.isReady) { 1214 if (!y.body) return setTimeout(m.ready); 1215 m.isReady = !0, a !== !0 && --m.readyWait > 0 || (H.resolveWith(y, [m]), m.fn.triggerHandler && (m(y).triggerHandler("ready"), m(y).off("ready"))); 1216 } 1217 } 1218 }); 1219 function I() { 1220 y.addEventListener ? (y.removeEventListener("DOMContentLoaded", J, !1), a.removeEventListener("load", J, !1)) : (y.detachEvent("onreadystatechange", J), a.detachEvent("onload", J)); 1221 } 1222 function J() { 1223 (y.addEventListener || "load" === event.type || "complete" === y.readyState) && (I(), m.ready()); 1224 } 1225 m.ready.promise = function (b) { 1226 if (!H) if (H = m.Deferred(), "complete" === y.readyState) setTimeout(m.ready);else if (y.addEventListener) y.addEventListener("DOMContentLoaded", J, !1), a.addEventListener("load", J, !1);else { 1227 y.attachEvent("onreadystatechange", J), a.attachEvent("onload", J); 1228 var c = !1;
vendor: 18,520 bytes, lines 1229-1677
1229 try { 1230 c = null == a.frameElement && y.documentElement; 1231 } catch (d) {} 1232 c && c.doScroll && !function e() { 1233 if (!m.isReady) { 1234 try { 1235 c.doScroll("left"); 1236 } catch (a) { 1237 return setTimeout(e, 50); 1238 } 1239 I(), m.ready(); 1240 } 1241 }(); 1242 } 1243 return H.promise(b); 1244 }; 1245 var K = "undefined", 1246 L; 1247 for (L in m(k)) break; 1248 k.ownLast = "0" !== L, k.inlineBlockNeedsLayout = !1, m(function () { 1249 var a, b, c, d; 1250 c = y.getElementsByTagName("body")[0], c && c.style && (b = y.createElement("div"), d = y.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), typeof b.style.zoom !== K && (b.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1", k.inlineBlockNeedsLayout = a = 3 === b.offsetWidth, a && (c.style.zoom = 1)), c.removeChild(d)); 1251 }), function () { 1252 var a = y.createElement("div"); 1253 if (null == k.deleteExpando) { 1254 k.deleteExpando = !0; 1255 try { 1256 delete a.test; 1257 } catch (b) { 1258 k.deleteExpando = !1; 1259 } 1260 } 1261 a = null; 1262 }(), m.acceptData = function (a) { 1263 var b = m.noData[(a.nodeName + " ").toLowerCase()], 1264 c = +a.nodeType || 1; 1265 return 1 !== c && 9 !== c ? !1 : !b || b !== !0 && a.getAttribute("classid") === b; 1266 }; 1267 var M = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 1268 N = /([A-Z])/g; 1269 function O(a, b, c) { 1270 if (void 0 === c && 1 === a.nodeType) { 1271 var d = "data-" + b.replace(N, "-$1").toLowerCase(); 1272 if (c = a.getAttribute(d), "string" == typeof c) { 1273 try { 1274 c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : M.test(c) ? m.parseJSON(c) : c; 1275 } catch (e) {} 1276 m.data(a, b, c); 1277 } else c = void 0; 1278 } 1279 return c; 1280 } 1281 function P(a) { 1282 var b; 1283 for (b in a) if (("data" !== b || !m.isEmptyObject(a[b])) && "toJSON" !== b) return !1; 1284 return !0; 1285 } 1286 function Q(a, b, d, e) { 1287 if (m.acceptData(a)) { 1288 var f, 1289 g, 1290 h = m.expando, 1291 i = a.nodeType, 1292 j = i ? m.cache : a, 1293 k = i ? a[h] : a[h] && h; 1294 if (k && j[k] && (e || j[k].data) || void 0 !== d || "string" != typeof b) return k || (k = i ? a[h] = c.pop() || m.guid++ : h), j[k] || (j[k] = i ? {} : { 1295 toJSON: m.noop 1296 }), ("object" == typeof b || "function" == typeof b) && (e ? j[k] = m.extend(j[k], b) : j[k].data = m.extend(j[k].data, b)), g = j[k], e || (g.data || (g.data = {}), g = g.data), void 0 !== d && (g[m.camelCase(b)] = d), "string" == typeof b ? (f = g[b], null == f && (f = g[m.camelCase(b)])) : f = g, f; 1297 } 1298 } 1299 function R(a, b, c) { 1300 if (m.acceptData(a)) { 1301 var d, 1302 e, 1303 f = a.nodeType, 1304 g = f ? m.cache : a, 1305 h = f ? a[m.expando] : m.expando; 1306 if (g[h]) { 1307 if (b && (d = c ? g[h] : g[h].data)) { 1308 m.isArray(b) ? b = b.concat(m.map(b, m.camelCase)) : b in d ? b = [b] : (b = m.camelCase(b), b = b in d ? [b] : b.split(" ")), e = b.length; 1309 while (e--) delete d[b[e]]; 1310 if (c ? !P(d) : !m.isEmptyObject(d)) return; 1311 } 1312 (c || (delete g[h].data, P(g[h]))) && (f ? m.cleanData([a], !0) : k.deleteExpando || g != g.window ? delete g[h] : g[h] = null); 1313 } 1314 } 1315 } 1316 m.extend({ 1317 cache: {}, 1318 noData: { 1319 "applet ": !0, 1320 "embed ": !0, 1321 "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 1322 }, 1323 hasData: function (a) { 1324 return a = a.nodeType ? m.cache[a[m.expando]] : a[m.expando], !!a && !P(a); 1325 }, 1326 data: function (a, b, c) { 1327 return Q(a, b, c); 1328 }, 1329 removeData: function (a, b) { 1330 return R(a, b); 1331 }, 1332 _data: function (a, b, c) { 1333 return Q(a, b, c, !0); 1334 }, 1335 _removeData: function (a, b) { 1336 return R(a, b, !0); 1337 } 1338 }), m.fn.extend({ 1339 data: function (a, b) { 1340 var c, 1341 d, 1342 e, 1343 f = this[0], 1344 g = f && f.attributes; 1345 if (void 0 === a) { 1346 if (this.length && (e = m.data(f), 1 === f.nodeType && !m._data(f, "parsedAttrs"))) { 1347 c = g.length; 1348 while (c--) g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = m.camelCase(d.slice(5)), O(f, d, e[d]))); 1349 m._data(f, "parsedAttrs", !0); 1350 } 1351 return e; 1352 } 1353 return "object" == typeof a ? this.each(function () { 1354 m.data(this, a); 1355 }) : arguments.length > 1 ? this.each(function () { 1356 m.data(this, a, b); 1357 }) : f ? O(f, a, m.data(f, a)) : void 0; 1358 }, 1359 removeData: function (a) { 1360 return this.each(function () { 1361 m.removeData(this, a); 1362 }); 1363 } 1364 }), m.extend({ 1365 queue: function (a, b, c) { 1366 var d; 1367 return a ? (b = (b || "fx") + "queue", d = m._data(a, b), c && (!d || m.isArray(c) ? d = m._data(a, b, m.makeArray(c)) : d.push(c)), d || []) : void 0; 1368 }, 1369 dequeue: function (a, b) { 1370 b = b || "fx"; 1371 var c = m.queue(a, b), 1372 d = c.length, 1373 e = c.shift(), 1374 f = m._queueHooks(a, b), 1375 g = function () { 1376 m.dequeue(a, b); 1377 }; 1378 "inprogress" === e && (e = c.shift(), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire(); 1379 }, 1380 _queueHooks: function (a, b) { 1381 var c = b + "queueHooks"; 1382 return m._data(a, c) || m._data(a, c, { 1383 empty: m.Callbacks("once memory").add(function () { 1384 m._removeData(a, b + "queue"), m._removeData(a, c); 1385 }) 1386 }); 1387 } 1388 }), m.fn.extend({ 1389 queue: function (a, b) { 1390 var c = 2; 1391 return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? m.queue(this[0], a) : void 0 === b ? this : this.each(function () { 1392 var c = m.queue(this, a, b); 1393 m._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && m.dequeue(this, a); 1394 }); 1395 }, 1396 dequeue: function (a) { 1397 return this.each(function () { 1398 m.dequeue(this, a); 1399 }); 1400 }, 1401 clearQueue: function (a) { 1402 return this.queue(a || "fx", []); 1403 }, 1404 promise: function (a, b) { 1405 var c, 1406 d = 1, 1407 e = m.Deferred(), 1408 f = this, 1409 g = this.length, 1410 h = function () { 1411 --d || e.resolveWith(f, [f]); 1412 }; 1413 "string" != typeof a && (b = a, a = void 0), a = a || "fx"; 1414 while (g--) c = m._data(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h)); 1415 return h(), e.promise(b); 1416 } 1417 }); 1418 var S = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, 1419 T = ["Top", "Right", "Bottom", "Left"], 1420 U = function (a, b) { 1421 return a = b || a, "none" === m.css(a, "display") || !m.contains(a.ownerDocument, a); 1422 }, 1423 V = m.access = function (a, b, c, d, e, f, g) { 1424 var h = 0, 1425 i = a.length, 1426 j = null == c; 1427 if ("object" === m.type(c)) { 1428 e = !0; 1429 for (h in c) m.access(a, b, h, c[h], !0, f, g); 1430 } else if (void 0 !== d && (e = !0, m.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function (a, b, c) { 1431 return j.call(m(a), c); 1432 })), b)) for (; i > h; h++) b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c))); 1433 return e ? a : j ? b.call(a) : i ? b(a[0], c) : f; 1434 }, 1435 W = /^(?:checkbox|radio)$/i; 1436 !function () { 1437 var a = y.createElement("input"), 1438 b = y.createElement("div"), 1439 c = y.createDocumentFragment(); 1440 if (b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", k.leadingWhitespace = 3 === b.firstChild.nodeType, k.tbody = !b.getElementsByTagName("tbody").length, k.htmlSerialize = !!b.getElementsByTagName("link").length, k.html5Clone = "<:nav></:nav>" !== y.createElement("nav").cloneNode(!0).outerHTML, a.type = "checkbox", a.checked = !0, c.appendChild(a), k.appendChecked = a.checked, b.innerHTML = "<textarea>x</textarea>", k.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue, c.appendChild(b), b.innerHTML = "<input type='radio' checked='checked' name='t'/>", k.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, k.noCloneEvent = !0, b.attachEvent && (b.attachEvent("onclick", function () { 1441 k.noCloneEvent = !1; 1442 }), b.cloneNode(!0).click()), null == k.deleteExpando) { 1443 k.deleteExpando = !0; 1444 try { 1445 delete b.test; 1446 } catch (d) { 1447 k.deleteExpando = !1; 1448 } 1449 } 1450 }(), function () { 1451 var b, 1452 c, 1453 d = y.createElement("div"); 1454 for (b in { 1455 submit: !0, 1456 change: !0, 1457 focusin: !0 1458 }) c = "on" + b, (k[b + "Bubbles"] = c in a) || (d.setAttribute(c, "t"), k[b + "Bubbles"] = d.attributes[c].expando === !1); 1459 d = null; 1460 }(); 1461 var X = /^(?:input|select|textarea)$/i, 1462 Y = /^key/, 1463 Z = /^(?:mouse|pointer|contextmenu)|click/, 1464 $ = /^(?:focusinfocus|focusoutblur)$/, 1465 _ = /^([^.]*)(?:\.(.+)|)$/; 1466 function ab() { 1467 return !0; 1468 } 1469 function bb() { 1470 return !1; 1471 } 1472 function cb() { 1473 try { 1474 return y.activeElement; 1475 } catch (a) {} 1476 } 1477 m.event = { 1478 global: {}, 1479 add: function (a, b, c, d, e) { 1480 var f, 1481 g, 1482 h, 1483 i, 1484 j, 1485 k, 1486 l, 1487 n, 1488 o, 1489 p, 1490 q, 1491 r = m._data(a); 1492 if (r) { 1493 c.handler && (i = c, c = i.handler, e = i.selector), c.guid || (c.guid = m.guid++), (g = r.events) || (g = r.events = {}), (k = r.handle) || (k = r.handle = function (a) { 1494 return typeof m === K || a && m.event.triggered === a.type ? void 0 : m.event.dispatch.apply(k.elem, arguments); 1495 }, k.elem = a), b = (b || "").match(E) || [""], h = b.length; 1496 while (h--) f = _.exec(b[h]) || [], o = q = f[1], p = (f[2] || "").split(".").sort(), o && (j = m.event.special[o] || {}, o = (e ? j.delegateType : j.bindType) || o, j = m.event.special[o] || {}, l = m.extend({ 1497 type: o, 1498 origType: q, 1499 data: d, 1500 handler: c, 1501 guid: c.guid, 1502 selector: e, 1503 needsContext: e && m.expr.match.needsContext.test(e), 1504 namespace: p.join(".") 1505 }, i), (n = g[o]) || (n = g[o] = [], n.delegateCount = 0, j.setup && j.setup.call(a, d, p, k) !== !1 || (a.addEventListener ? a.addEventListener(o, k, !1) : a.attachEvent && a.attachEvent("on" + o, k))), j.add && (j.add.call(a, l), l.handler.guid || (l.handler.guid = c.guid)), e ? n.splice(n.delegateCount++, 0, l) : n.push(l), m.event.global[o] = !0); 1506 a = null; 1507 } 1508 }, 1509 remove: function (a, b, c, d, e) { 1510 var f, 1511 g, 1512 h, 1513 i, 1514 j, 1515 k, 1516 l, 1517 n, 1518 o, 1519 p, 1520 q, 1521 r = m.hasData(a) && m._data(a); 1522 if (r && (k = r.events)) { 1523 b = (b || "").match(E) || [""], j = b.length; 1524 while (j--) if (h = _.exec(b[j]) || [], o = q = h[1], p = (h[2] || "").split(".").sort(), o) { 1525 l = m.event.special[o] || {}, o = (d ? l.delegateType : l.bindType) || o, n = k[o] || [], h = h[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)"), i = f = n.length; 1526 while (f--) g = n[f], !e && q !== g.origType || c && c.guid !== g.guid || h && !h.test(g.namespace) || d && d !== g.selector && ("**" !== d || !g.selector) || (n.splice(f, 1), g.selector && n.delegateCount--, l.remove && l.remove.call(a, g)); 1527 i && !n.length && (l.teardown && l.teardown.call(a, p, r.handle) !== !1 || m.removeEvent(a, o, r.handle), delete k[o]); 1528 } else for (o in k) m.event.remove(a, o + b[j], c, d, !0); 1529 m.isEmptyObject(k) && (delete r.handle, m._removeData(a, "events")); 1530 } 1531 }, 1532 trigger: function (b, c, d, e) { 1533 var f, 1534 g, 1535 h, 1536 i, 1537 k, 1538 l, 1539 n, 1540 o = [d || y], 1541 p = j.call(b, "type") ? b.type : b, 1542 q = j.call(b, "namespace") ? b.namespace.split(".") : []; 1543 if (h = l = d = d || y, 3 !== d.nodeType && 8 !== d.nodeType && !$.test(p + m.event.triggered) && (p.indexOf(".") >= 0 && (q = p.split("."), p = q.shift(), q.sort()), g = p.indexOf(":") < 0 && "on" + p, b = b[m.expando] ? b : new m.Event(p, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = q.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + q.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d), c = null == c ? [b] : m.makeArray(c, [b]), k = m.event.special[p] || {}, e || !k.trigger || k.trigger.apply(d, c) !== !1)) { 1544 if (!e && !k.noBubble && !m.isWindow(d)) { 1545 for (i = k.delegateType || p, $.test(i + p) || (h = h.parentNode); h; h = h.parentNode) o.push(h), l = h; 1546 l === (d.ownerDocument || y) && o.push(l.defaultView || l.parentWindow || a); 1547 } 1548 n = 0; 1549 while ((h = o[n++]) && !b.isPropagationStopped()) b.type = n > 1 ? i : k.bindType || p, f = (m._data(h, "events") || {})[b.type] && m._data(h, "handle"), f && f.apply(h, c), f = g && h[g], f && f.apply && m.acceptData(h) && (b.result = f.apply(h, c), b.result === !1 && b.preventDefault()); 1550 if (b.type = p, !e && !b.isDefaultPrevented() && (!k._default || k._default.apply(o.pop(), c) === !1) && m.acceptData(d) && g && d[p] && !m.isWindow(d)) { 1551 l = d[g], l && (d[g] = null), m.event.triggered = p; 1552 try { 1553 d[p](); 1554 } catch (r) {} 1555 m.event.triggered = void 0, l && (d[g] = l); 1556 } 1557 return b.result; 1558 } 1559 }, 1560 dispatch: function (a) { 1561 a = m.event.fix(a); 1562 var b, 1563 c, 1564 e, 1565 f, 1566 g, 1567 h = [], 1568 i = d.call(arguments), 1569 j = (m._data(this, "events") || {})[a.type] || [], 1570 k = m.event.special[a.type] || {}; 1571 if (i[0] = a, a.delegateTarget = this, !k.preDispatch || k.preDispatch.call(this, a) !== !1) { 1572 h = m.event.handlers.call(this, a, j), b = 0; 1573 while ((f = h[b++]) && !a.isPropagationStopped()) { 1574 a.currentTarget = f.elem, g = 0; 1575 while ((e = f.handlers[g++]) && !a.isImmediatePropagationStopped()) (!a.namespace_re || a.namespace_re.test(e.namespace)) && (a.handleObj = e, a.data = e.data, c = ((m.event.special[e.origType] || {}).handle || e.handler).apply(f.elem, i), void 0 !== c && (a.result = c) === !1 && (a.preventDefault(), a.stopPropagation())); 1576 } 1577 return k.postDispatch && k.postDispatch.call(this, a), a.result; 1578 } 1579 }, 1580 handlers: function (a, b) { 1581 var c, 1582 d, 1583 e, 1584 f, 1585 g = [], 1586 h = b.delegateCount, 1587 i = a.target; 1588 if (h && i.nodeType && (!a.button || "click" !== a.type)) for (; i != this; i = i.parentNode || this) if (1 === i.nodeType && (i.disabled !== !0 || "click" !== a.type)) { 1589 for (e = [], f = 0; h > f; f++) d = b[f], c = d.selector + " ", void 0 === e[c] && (e[c] = d.needsContext ? m(c, this).index(i) >= 0 : m.find(c, this, null, [i]).length), e[c] && e.push(d); 1590 e.length && g.push({ 1591 elem: i, 1592 handlers: e 1593 }); 1594 } 1595 return h < b.length && g.push({ 1596 elem: this, 1597 handlers: b.slice(h) 1598 }), g; 1599 }, 1600 fix: function (a) { 1601 if (a[m.expando]) return a; 1602 var b, 1603 c, 1604 d, 1605 e = a.type, 1606 f = a, 1607 g = this.fixHooks[e]; 1608 g || (this.fixHooks[e] = g = Z.test(e) ? this.mouseHooks : Y.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new m.Event(f), b = d.length; 1609 while (b--) c = d[b], a[c] = f[c]; 1610 return a.target || (a.target = f.srcElement || y), 3 === a.target.nodeType && (a.target = a.target.parentNode), a.metaKey = !!a.metaKey, g.filter ? g.filter(a, f) : a; 1611 }, 1612 props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), 1613 fixHooks: {}, 1614 keyHooks: { 1615 props: "char charCode key keyCode".split(" "), 1616 filter: function (a, b) { 1617 return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a; 1618 } 1619 }, 1620 mouseHooks: { 1621 props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), 1622 filter: function (a, b) { 1623 var c, 1624 d, 1625 e, 1626 f = b.button, 1627 g = b.fromElement; 1628 return null == a.pageX && null != b.clientX && (d = a.target.ownerDocument || y, e = d.documentElement, c = d.body, a.pageX = b.clientX + (e && e.scrollLeft || c && c.scrollLeft || 0) - (e && e.clientLeft || c && c.clientLeft || 0), a.pageY = b.clientY + (e && e.scrollTop || c && c.scrollTop || 0) - (e && e.clientTop || c && c.clientTop || 0)), !a.relatedTarget && g && (a.relatedTarget = g === a.target ? b.toElement : g), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a; 1629 } 1630 }, 1631 special: { 1632 load: { 1633 noBubble: !0 1634 }, 1635 focus: { 1636 trigger: function () { 1637 if (this !== cb() && this.focus) try { 1638 return this.focus(), !1; 1639 } catch (a) {} 1640 }, 1641 delegateType: "focusin" 1642 }, 1643 blur: { 1644 trigger: function () { 1645 return this === cb() && this.blur ? (this.blur(), !1) : void 0; 1646 }, 1647 delegateType: "focusout" 1648 }, 1649 click: { 1650 trigger: function () { 1651 return m.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : void 0; 1652 }, 1653 _default: function (a) { 1654 return m.nodeName(a.target, "a"); 1655 } 1656 }, 1657 beforeunload: { 1658 postDispatch: function (a) { 1659 void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result); 1660 } 1661 } 1662 }, 1663 simulate: function (a, b, c, d) { 1664 var e = m.extend(new m.Event(), c, { 1665 type: a, 1666 isSimulated: !0, 1667 originalEvent: {} 1668 }); 1669 d ? m.event.trigger(e, null, b) : m.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault(); 1670 } 1671 }, m.removeEvent = y.removeEventListener ? function (a, b, c) { 1672 a.removeEventListener && a.removeEventListener(b, c, !1); 1673 } : function (a, b, c) { 1674 var d = "on" + b; 1675 a.detachEvent && (typeof a[d] === K && (a[d] = null), a.detachEvent(d, c)); 1676 }, m.Event = function (a, b) { 1677 return this instanceof m.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? ab : bb)
1677: this.type = a, b && m.extend(this, b), this.timeStamp = a && a.timeStamp || m.now(), void (this[m.expando] = !0)) : new m.Event(a, b); 1678 }, m.Event.prototype = { 1679 isDefaultPrevented: bb, 1680 isPropagationStopped: bb, 1681 isImmediatePropagationStopped: bb, 1682 preventDefault: function () { 1683 var a = this.originalEvent; 1684 this.isDefaultPrevented = ab, a && (a.preventDefault ? a.preventDefault() : a.returnValue = !1); 1685 }, 1686 stopPropagation: function () { 1687 var a = this.originalEvent; 1688 this.isPropagationStopped = ab, a && (a.stopPropagation && a.stopPropagation(), a.cancelBubble = !0); 1689 }, 1690 stopImmediatePropagation: function () { 1691 var a = this.originalEvent; 1692 this.isImmediatePropagationStopped = ab, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation(); 1693 } 1694 }, m.each({ 1695 mouseenter: "mouseover", 1696 mouseleave: "mouseout", 1697 pointerenter: "pointerover", 1698 pointerleave: "pointerout" 1699 }, function (a, b) { 1700 m.event.special[a] = { 1701 delegateType: b, 1702 bindType: b, 1703 handle: function (a) { 1704 var c, 1705 d = this, 1706 e = a.relatedTarget, 1707 f = a.handleObj; 1708 return (!e || e !== d && !m.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c; 1709 } 1710 }; 1711 }), k.submitBubbles || (m.event.special.submit = { 1712 setup: function () { 1713 return m.nodeName(this, "form") ? !1 : void m.event.add(this, "click._submit keypress._submit", function (a) { 1714 var b = a.target, 1715 c = m.nodeName(b, "input") || m.nodeName(b, "button") ? b.form : void 0; 1716 c && !m._data(c, "submitBubbles") && (m.event.add(c, "submit._submit", function (a) { 1717 a._submit_bubble = !0; 1718 }), m._data(c, "submitBubbles", !0)); 1719 }); 1720 }, 1721 postDispatch: function (a) { 1722 a._submit_bubble && (delete a._submit_bubble, this.parentNode && !a.isTrigger && m.event.simulate("submit", this.parentNode, a, !0)); 1723 }, 1724 teardown: function () { 1725 return m.nodeName(this, "form") ? !1 : void m.event.remove(this, "._submit"); 1726 } 1727 }), k.changeBubbles || (m.event.special.change = { 1728 setup: function () { 1729 return X.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (m.event.add(this, "propertychange._change", function (a) { 1730 "checked" === a.originalEvent.propertyName && (this._just_changed = !0); 1731 }), m.event.add(this, "click._change", function (a) { 1732 this._just_changed && !a.isTrigger && (this._just_changed = !1), m.event.simulate("change", this, a, !0); 1733 })), !1) : void m.event.add(this, "beforeactivate._change", function (a) { 1734 var b = a.target; 1735 X.test(b.nodeName) && !m._data(b, "changeBubbles") && (m.event.add(b, "change._change", function (a) { 1736 !this.parentNode || a.isSimulated || a.isTrigger || m.event.simulate("change", this.parentNode, a, !0); 1737 }), m._data(b, "changeBubbles", !0)); 1738 }); 1739 }, 1740 handle: function (a) { 1741 var b = a.target; 1742 return this !== b || a.isSimulated || a.isTrigger || "radio" !== b.type && "checkbox" !== b.type ? a.handleObj.handler.apply(this, arguments) : void 0; 1743 }, 1744 teardown: function () { 1745 return m.event.remove(this, "._change"), !X.test(this.nodeName); 1746 } 1747 }), k.focusinBubbles || m.each({ 1748 focus: "focusin", 1749 blur: "focusout" 1750 }, function (a, b) { 1751 var c = function (a) { 1752 m.event.simulate(b, a.target, m.event.fix(a), !0); 1753 }; 1754 m.event.special[b] = { 1755 setup: function () { 1756 var d = this.ownerDocument || this, 1757 e = m._data(d, b); 1758 e || d.addEventListener(a, c, !0), m._data(d, b, (e || 0) + 1); 1759 }, 1760 teardown: function () { 1761 var d = this.ownerDocument || this, 1762 e = m._data(d, b) - 1; 1763 e ? m._data(d, b, e) : (d.removeEventListener(a, c, !0), m._removeData(d, b)); 1764 } 1765 }; 1766 }), m.fn.extend({ 1767 on: function (a, b, c, d, e) { 1768 var f, g; 1769 if ("object" == typeof a) { 1770 "string" != typeof b && (c = c || b, b = void 0); 1771 for (f in a) this.on(f, b, c, a[f], e); 1772 return this; 1773 } 1774 if (null == c && null == d ? (d = b, c = b = void 0) : null == d && ("string" == typeof b ? (d = c, c = void 0) : (d = c, c = b, b = void 0)), d === !1) d = bb;else if (!d) return this; 1775 return 1 === e && (g = d, d = function (a) { 1776 return m().off(a), g.apply(this, arguments); 1777 }, d.guid = g.guid || (g.guid = m.guid++)), this.each(function () { 1778 m.event.add(this, a, d, c, b); 1779 }); 1780 }, 1781 one: function (a, b, c, d) { 1782 return this.on(a, b, c, d, 1); 1783 }, 1784 off: function (a, b, c) { 1785 var d, e; 1786 if (a && a.preventDefault && a.handleObj) return d = a.handleObj, m(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this; 1787 if ("object" == typeof a) { 1788 for (e in a) this.off(e, b, a[e]); 1789 return this; 1790 } 1791 return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = bb), this.each(function () { 1792 m.event.remove(this, a, c, b); 1793 }); 1794 }, 1795 trigger: function (a, b) { 1796 return this.each(function () { 1797 m.event.trigger(a, b, this); 1798 }); 1799 }, 1800 triggerHandler: function (a, b) { 1801 var c = this[0]; 1802 return c ? m.event.trigger(a, b, c, !0) : void 0; 1803 } 1804 }); 1805 function db(a) { 1806 var b = eb.split("|"), 1807 c = a.createDocumentFragment(); 1808 if (c.createElement) while (b.length) c.createElement(b.pop()); 1809 return c; 1810 } 1811 var eb = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", 1812 fb = / jQuery\d+="(?:null|\d+)"/g, 1813 gb = new RegExp("<(?:" + eb + ")[\\s/>]", "i"), 1814 hb = /^\s+/, 1815 ib = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, 1816 jb = /<([\w:]+)/, 1817 kb = /<tbody/i,
vendor: 12,588 bytes, lines 1818-2081
1818 lb = /<|&#?\w+;/, 1819 mb = /<(?:script|style|link)/i, 1820 nb = /checked\s*(?:[^=]|=\s*.checked.)/i, 1821 ob = /^$|\/(?:java|ecma)script/i, 1822 pb = /^true\/(.*)/, 1823 qb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, 1824 rb = { 1825 option: [1, "<select multiple='multiple'>", "</select>"], 1826 legend: [1, "<fieldset>", "</fieldset>"], 1827 area: [1, "<map>", "</map>"], 1828 param: [1, "<object>", "</object>"], 1829 thead: [1, "<table>", "</table>"], 1830 tr: [2, "<table><tbody>", "</tbody></table>"], 1831 col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"], 1832 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], 1833 _default: k.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"] 1834 }, 1835 sb = db(y), 1836 tb = sb.appendChild(y.createElement("div")); 1837 rb.optgroup = rb.option, rb.tbody = rb.tfoot = rb.colgroup = rb.caption = rb.thead, rb.th = rb.td; 1838 function ub(a, b) { 1839 var c, 1840 d, 1841 e = 0, 1842 f = typeof a.getElementsByTagName !== K ? a.getElementsByTagName(b || "*") : typeof a.querySelectorAll !== K ? a.querySelectorAll(b || "*") : void 0; 1843 if (!f) for (f = [], c = a.childNodes || a; null != (d = c[e]); e++) !b || m.nodeName(d, b) ? f.push(d) : m.merge(f, ub(d, b)); 1844 return void 0 === b || b && m.nodeName(a, b) ? m.merge([a], f) : f; 1845 } 1846 function vb(a) { 1847 W.test(a.type) && (a.defaultChecked = a.checked); 1848 } 1849 function wb(a, b) { 1850 return m.nodeName(a, "table") && m.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a; 1851 } 1852 function xb(a) { 1853 return a.type = (null !== m.find.attr(a, "type")) + "/" + a.type, a; 1854 } 1855 function yb(a) { 1856 var b = pb.exec(a.type); 1857 return b ? a.type = b[1] : a.removeAttribute("type"), a; 1858 } 1859 function zb(a, b) { 1860 for (var c, d = 0; null != (c = a[d]); d++) m._data(c, "globalEval", !b || m._data(b[d], "globalEval")); 1861 } 1862 function Ab(a, b) { 1863 if (1 === b.nodeType && m.hasData(a)) { 1864 var c, 1865 d, 1866 e, 1867 f = m._data(a), 1868 g = m._data(b, f), 1869 h = f.events; 1870 if (h) { 1871 delete g.handle, g.events = {}; 1872 for (c in h) for (d = 0, e = h[c].length; e > d; d++) m.event.add(b, c, h[c][d]); 1873 } 1874 g.data && (g.data = m.extend({}, g.data)); 1875 } 1876 } 1877 function Bb(a, b) { 1878 var c, d, e; 1879 if (1 === b.nodeType) { 1880 if (c = b.nodeName.toLowerCase(), !k.noCloneEvent && b[m.expando]) { 1881 e = m._data(b); 1882 for (d in e.events) m.removeEvent(b, d, e.handle); 1883 b.removeAttribute(m.expando); 1884 } 1885 "script" === c && b.text !== a.text ? (xb(b).text = a.text, yb(b)) : "object" === c ? (b.parentNode && (b.outerHTML = a.outerHTML), k.html5Clone && a.innerHTML && !m.trim(b.innerHTML) && (b.innerHTML = a.innerHTML)) : "input" === c && W.test(a.type) ? (b.defaultChecked = b.checked = a.checked, b.value !== a.value && (b.value = a.value)) : "option" === c ? b.defaultSelected = b.selected = a.defaultSelected : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue); 1886 } 1887 } 1888 m.extend({ 1889 clone: function (a, b, c) { 1890 var d, 1891 e, 1892 f, 1893 g, 1894 h, 1895 i = m.contains(a.ownerDocument, a); 1896 if (k.html5Clone || m.isXMLDoc(a) || !gb.test("<" + a.nodeName + ">") ? f = a.cloneNode(!0) : (tb.innerHTML = a.outerHTML, tb.removeChild(f = tb.firstChild)), !(k.noCloneEvent && k.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || m.isXMLDoc(a))) for (d = ub(f), h = ub(a), g = 0; null != (e = h[g]); ++g) d[g] && Bb(e, d[g]); 1897 if (b) if (c) for (h = h || ub(a), d = d || ub(f), g = 0; null != (e = h[g]); g++) Ab(e, d[g]);else Ab(a, f); 1898 return d = ub(f, "script"), d.length > 0 && zb(d, !i && ub(a, "script")), d = h = e = null, f; 1899 }, 1900 buildFragment: function (a, b, c, d) { 1901 for (var e, f, g, h, i, j, l, n = a.length, o = db(b), p = [], q = 0; n > q; q++) if (f = a[q], f || 0 === f) if ("object" === m.type(f)) m.merge(p, f.nodeType ? [f] : f);else if (lb.test(f)) { 1902 h = h || o.appendChild(b.createElement("div")), i = (jb.exec(f) || ["", ""])[1].toLowerCase(), l = rb[i] || rb._default, h.innerHTML = l[1] + f.replace(ib, "<$1></$2>") + l[2], e = l[0]; 1903 while (e--) h = h.lastChild; 1904 if (!k.leadingWhitespace && hb.test(f) && p.push(b.createTextNode(hb.exec(f)[0])), !k.tbody) { 1905 f = "table" !== i || kb.test(f) ? "<table>" !== l[1] || kb.test(f) ? 0 : h : h.firstChild, e = f && f.childNodes.length; 1906 while (e--) m.nodeName(j = f.childNodes[e], "tbody") && !j.childNodes.length && f.removeChild(j); 1907 } 1908 m.merge(p, h.childNodes), h.textContent = ""; 1909 while (h.firstChild) h.removeChild(h.firstChild); 1910 h = o.lastChild; 1911 } else p.push(b.createTextNode(f)); 1912 h && o.removeChild(h), k.appendChecked || m.grep(ub(p, "input"), vb), q = 0; 1913 while (f = p[q++]) if ((!d || -1 === m.inArray(f, d)) && (g = m.contains(f.ownerDocument, f), h = ub(o.appendChild(f), "script"), g && zb(h), c)) { 1914 e = 0; 1915 while (f = h[e++]) ob.test(f.type || "") && c.push(f); 1916 } 1917 return h = null, o; 1918 }, 1919 cleanData: function (a, b) { 1920 for (var d, e, f, g, h = 0, i = m.expando, j = m.cache, l = k.deleteExpando, n = m.event.special; null != (d = a[h]); h++) if ((b || m.acceptData(d)) && (f = d[i], g = f && j[f])) { 1921 if (g.events) for (e in g.events) n[e] ? m.event.remove(d, e) : m.removeEvent(d, e, g.handle); 1922 j[f] && (delete j[f], l ? delete d[i] : typeof d.removeAttribute !== K ? d.removeAttribute(i) : d[i] = null, c.push(f)); 1923 } 1924 } 1925 }), m.fn.extend({ 1926 text: function (a) { 1927 return V(this, function (a) { 1928 return void 0 === a ? m.text(this) : this.empty().append((this[0] && this[0].ownerDocument || y).createTextNode(a)); 1929 }, null, a, arguments.length); 1930 }, 1931 append: function () { 1932 return this.domManip(arguments, function (a) { 1933 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 1934 var b = wb(this, a); 1935 b.appendChild(a); 1936 } 1937 }); 1938 }, 1939 prepend: function () { 1940 return this.domManip(arguments, function (a) { 1941 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 1942 var b = wb(this, a); 1943 b.insertBefore(a, b.firstChild); 1944 } 1945 }); 1946 }, 1947 before: function () { 1948 return this.domManip(arguments, function (a) { 1949 this.parentNode && this.parentNode.insertBefore(a, this); 1950 }); 1951 }, 1952 after: function () { 1953 return this.domManip(arguments, function (a) { 1954 this.parentNode && this.parentNode.insertBefore(a, this.nextSibling); 1955 }); 1956 }, 1957 remove: function (a, b) { 1958 for (var c, d = a ? m.filter(a, this) : this, e = 0; null != (c = d[e]); e++) b || 1 !== c.nodeType || m.cleanData(ub(c)), c.parentNode && (b && m.contains(c.ownerDocument, c) && zb(ub(c, "script")), c.parentNode.removeChild(c)); 1959 return this; 1960 }, 1961 empty: function () { 1962 for (var a, b = 0; null != (a = this[b]); b++) { 1963 1 === a.nodeType && m.cleanData(ub(a, !1)); 1964 while (a.firstChild) a.removeChild(a.firstChild); 1965 a.options && m.nodeName(a, "select") && (a.options.length = 0); 1966 } 1967 return this; 1968 }, 1969 clone: function (a, b) { 1970 return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function () { 1971 return m.clone(this, a, b); 1972 }); 1973 }, 1974 html: function (a) { 1975 return V(this, function (a) { 1976 var b = this[0] || {}, 1977 c = 0, 1978 d = this.length; 1979 if (void 0 === a) return 1 === b.nodeType ? b.innerHTML.replace(fb, "") : void 0; 1980 if (!("string" != typeof a || mb.test(a) || !k.htmlSerialize && gb.test(a) || !k.leadingWhitespace && hb.test(a) || rb[(jb.exec(a) || ["", ""])[1].toLowerCase()])) { 1981 a = a.replace(ib, "<$1></$2>"); 1982 try { 1983 for (; d > c; c++) b = this[c] || {}, 1 === b.nodeType && (m.cleanData(ub(b, !1)), b.innerHTML = a); 1984 b = 0; 1985 } catch (e) {} 1986 } 1987 b && this.empty().append(a); 1988 }, null, a, arguments.length); 1989 }, 1990 replaceWith: function () { 1991 var a = arguments[0]; 1992 return this.domManip(arguments, function (b) { 1993 a = this.parentNode, m.cleanData(ub(this)), a && a.replaceChild(b, this); 1994 }), a && (a.length || a.nodeType) ? this : this.remove(); 1995 }, 1996 detach: function (a) { 1997 return this.remove(a, !0); 1998 }, 1999 domManip: function (a, b) { 2000 a = e.apply([], a); 2001 var c, 2002 d, 2003 f, 2004 g, 2005 h, 2006 i, 2007 j = 0, 2008 l = this.length, 2009 n = this, 2010 o = l - 1, 2011 p = a[0], 2012 q = m.isFunction(p); 2013 if (q || l > 1 && "string" == typeof p && !k.checkClone && nb.test(p)) return this.each(function (c) { 2014 var d = n.eq(c); 2015 q && (a[0] = p.call(this, c, d.html())), d.domManip(a, b); 2016 }); 2017 if (l && (i = m.buildFragment(a, this[0].ownerDocument, !1, this), c = i.firstChild, 1 === i.childNodes.length && (i = c), c)) { 2018 for (g = m.map(ub(i, "script"), xb), f = g.length; l > j; j++) d = i, j !== o && (d = m.clone(d, !0, !0), f && m.merge(g, ub(d, "script"))), b.call(this[j], d, j); 2019 if (f) for (h = g[g.length - 1].ownerDocument, m.map(g, yb), j = 0; f > j; j++) d = g[j], ob.test(d.type || "") && !m._data(d, "globalEval") && m.contains(h, d) && (d.src ? m._evalUrl && m._evalUrl(d.src) : m.globalEval((d.text || d.textContent || d.innerHTML || "").replace(qb, ""))); 2020 i = c = null; 2021 } 2022 return this; 2023 } 2024 }), m.each({ 2025 appendTo: "append", 2026 prependTo: "prepend", 2027 insertBefore: "before", 2028 insertAfter: "after", 2029 replaceAll: "replaceWith" 2030 }, function (a, b) { 2031 m.fn[a] = function (a) { 2032 for (var c, d = 0, e = [], g = m(a), h = g.length - 1; h >= d; d++) c = d === h ? this : this.clone(!0), m(g[d])[b](c), f.apply(e, c.get()); 2033 return this.pushStack(e); 2034 }; 2035 }); 2036 var Cb, 2037 Db = {}; 2038 function Eb(b, c) { 2039 var d, 2040 e = m(c.createElement(b)).appendTo(c.body), 2041 f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : m.css(e[0], "display"); 2042 return e.detach(), f; 2043 } 2044 function Fb(a) { 2045 var b = y, 2046 c = Db[a]; 2047 return c || (c = Eb(a, b), "none" !== c && c || (Cb = (Cb || m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement), b = (Cb[0].contentWindow || Cb[0].contentDocument).document, b.write(), b.close(), c = Eb(a, b), Cb.detach()), Db[a] = c), c; 2048 } 2049 !function () { 2050 var a; 2051 k.shrinkWrapBlocks = function () { 2052 if (null != a) return a; 2053 a = !1; 2054 var b, c, d; 2055 return c = y.getElementsByTagName("body")[0], c && c.style ? (b = y.createElement("div"), d = y.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), typeof b.style.zoom !== K && (b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1", b.appendChild(y.createElement("div")).style.width = "5px", a = 3 !== b.offsetWidth), c.removeChild(d), a) : void 0; 2056 }; 2057 }(); 2058 var Gb = /^margin/, 2059 Hb = new RegExp("^(" + S + ")(?!px)[a-z%]+$", "i"), 2060 Ib, 2061 Jb, 2062 Kb = /^(top|right|bottom|left)$/; 2063 a.getComputedStyle ? (Ib = function (b) { 2064 return b.ownerDocument.defaultView.opener ? b.ownerDocument.defaultView.getComputedStyle(b, null) : a.getComputedStyle(b, null); 2065 }, Jb = function (a, b, c) { 2066 var d, 2067 e, 2068 f, 2069 g, 2070 h = a.style; 2071 return c = c || Ib(a), g = c ? c.getPropertyValue(b) || c[b] : void 0, c && ("" !== g || m.contains(a.ownerDocument, a) || (g = m.style(a, b)), Hb.test(g) && Gb.test(b) && (d = h.width, e = h.minWidth, f = h.maxWidth, h.minWidth = h.maxWidth = h.width = g, g = c.width, h.width = d, h.minWidth = e, h.maxWidth = f)), void 0 === g ? g : g + ""; 2072 }) : y.documentElement.currentStyle && (Ib = function (a) { 2073 return a.currentStyle; 2074 }, Jb = function (a, b, c) { 2075 var d, 2076 e, 2077 f, 2078 g, 2079 h = a.style; 2080 return c = c || Ib(a), g = c ? c[b] : void 0, null == g && h && h[b] && (g = h[b]), Hb.test(g) && !Kb.test(b) && (d = h.left, e = a.runtimeStyle, f = e && e.left, f && (e.left = a.currentStyle.left), h.left = "fontSize" === b ? "1em" : g, g = h.pixelLeft + "px", h.left = d, f && (e.left = f)), void 0 === g ? g : g + "" || "auto"; 2081 });
vendor: 9,719 bytes, lines 2082-2297
2082 function Lb(a, b) { 2083 return { 2084 get: function () { 2085 var c = a(); 2086 if (null != c) return c ? void delete this.get : (this.get = b).apply(this, arguments); 2087 } 2088 }; 2089 } 2090 !function () { 2091 var b, c, d, e, f, g, h; 2092 if (b = y.createElement("div"), b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", d = b.getElementsByTagName("a")[0], c = d && d.style) { 2093 c.cssText = "float:left;opacity:.5", k.opacity = "0.5" === c.opacity, k.cssFloat = !!c.cssFloat, b.style.backgroundClip = "content-box", b.cloneNode(!0).style.backgroundClip = "", k.clearCloneStyle = "content-box" === b.style.backgroundClip, k.boxSizing = "" === c.boxSizing || "" === c.MozBoxSizing || "" === c.WebkitBoxSizing, m.extend(k, { 2094 reliableHiddenOffsets: function () { 2095 return null == g && i(), g; 2096 }, 2097 boxSizingReliable: function () { 2098 return null == f && i(), f; 2099 }, 2100 pixelPosition: function () { 2101 return null == e && i(), e; 2102 }, 2103 reliableMarginRight: function () { 2104 return null == h && i(), h; 2105 } 2106 }); 2107 function i() { 2108 var b, c, d, i; 2109 c = y.getElementsByTagName("body")[0], c && c.style && (b = y.createElement("div"), d = y.createElement("div"), d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px", c.appendChild(d).appendChild(b), b.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", e = f = !1, h = !0, a.getComputedStyle && (e = "1%" !== (a.getComputedStyle(b, null) || {}).top, f = "4px" === (a.getComputedStyle(b, null) || { 2110 width: "4px" 2111 }).width, i = b.appendChild(y.createElement("div")), i.style.cssText = b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", i.style.marginRight = i.style.width = "0", b.style.width = "1px", h = !parseFloat((a.getComputedStyle(i, null) || {}).marginRight), b.removeChild(i)), b.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", i = b.getElementsByTagName("td"), i[0].style.cssText = "margin:0;border:0;padding:0;display:none", g = 0 === i[0].offsetHeight, g && (i[0].style.display = "", i[1].style.display = "none", g = 0 === i[0].offsetHeight), c.removeChild(d)); 2112 } 2113 } 2114 }(), m.swap = function (a, b, c, d) { 2115 var e, 2116 f, 2117 g = {}; 2118 for (f in b) g[f] = a.style[f], a.style[f] = b[f]; 2119 e = c.apply(a, d || []); 2120 for (f in b) a.style[f] = g[f]; 2121 return e; 2122 }; 2123 var Mb = /alpha\([^)]*\)/i, 2124 Nb = /opacity\s*=\s*([^)]*)/, 2125 Ob = /^(none|table(?!-c[ea]).+)/, 2126 Pb = new RegExp("^(" + S + ")(.*)$", "i"), 2127 Qb = new RegExp("^([+-])=(" + S + ")", "i"), 2128 Rb = { 2129 position: "absolute", 2130 visibility: "hidden", 2131 display: "block" 2132 }, 2133 Sb = { 2134 letterSpacing: "0", 2135 fontWeight: "400" 2136 }, 2137 Tb = ["Webkit", "O", "Moz", "ms"]; 2138 function Ub(a, b) { 2139 if (b in a) return b; 2140 var c = b.charAt(0).toUpperCase() + b.slice(1), 2141 d = b, 2142 e = Tb.length; 2143 while (e--) if (b = Tb[e] + c, b in a) return b; 2144 return d; 2145 } 2146 function Vb(a, b) { 2147 for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++) d = a[g], d.style && (f[g] = m._data(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && U(d) && (f[g] = m._data(d, "olddisplay", Fb(d.nodeName)))) : (e = U(d), (c && "none" !== c || !e) && m._data(d, "olddisplay", e ? c : m.css(d, "display")))); 2148 for (g = 0; h > g; g++) d = a[g], d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b ? f[g] || "" : "none")); 2149 return a; 2150 } 2151 function Wb(a, b, c) { 2152 var d = Pb.exec(b); 2153 return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b; 2154 } 2155 function Xb(a, b, c, d, e) { 2156 for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2) "margin" === c && (g += m.css(a, c + T[f], !0, e)), d ? ("content" === c && (g -= m.css(a, "padding" + T[f], !0, e)), "margin" !== c && (g -= m.css(a, "border" + T[f] + "Width", !0, e))) : (g += m.css(a, "padding" + T[f], !0, e), "padding" !== c && (g += m.css(a, "border" + T[f] + "Width", !0, e))); 2157 return g; 2158 } 2159 function Yb(a, b, c) { 2160 var d = !0, 2161 e = "width" === b ? a.offsetWidth : a.offsetHeight, 2162 f = Ib(a), 2163 g = k.boxSizing && "border-box" === m.css(a, "boxSizing", !1, f); 2164 if (0 >= e || null == e) { 2165 if (e = Jb(a, b, f), (0 > e || null == e) && (e = a.style[b]), Hb.test(e)) return e; 2166 d = g && (k.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0; 2167 } 2168 return e + Xb(a, b, c || (g ? "border" : "content"), d, f) + "px"; 2169 } 2170 m.extend({ 2171 cssHooks: { 2172 opacity: { 2173 get: function (a, b) { 2174 if (b) { 2175 var c = Jb(a, "opacity"); 2176 return "" === c ? "1" : c; 2177 } 2178 } 2179 } 2180 }, 2181 cssNumber: { 2182 columnCount: !0, 2183 fillOpacity: !0, 2184 flexGrow: !0, 2185 flexShrink: !0, 2186 fontWeight: !0, 2187 lineHeight: !0, 2188 opacity: !0, 2189 order: !0, 2190 orphans: !0, 2191 widows: !0, 2192 zIndex: !0, 2193 zoom: !0 2194 }, 2195 cssProps: { 2196 "float": k.cssFloat ? "cssFloat" : "styleFloat" 2197 }, 2198 style: function (a, b, c, d) { 2199 if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) { 2200 var e, 2201 f, 2202 g, 2203 h = m.camelCase(b), 2204 i = a.style; 2205 if (b = m.cssProps[h] || (m.cssProps[h] = Ub(i, h)), g = m.cssHooks[b] || m.cssHooks[h], void 0 === c) return g && "get" in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b]; 2206 if (f = typeof c, "string" === f && (e = Qb.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(m.css(a, b)), f = "number"), null != c && c === c && ("number" !== f || m.cssNumber[h] || (c += "px"), k.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), !(g && "set" in g && void 0 === (c = g.set(a, c, d))))) try { 2207 i[b] = c; 2208 } catch (j) {} 2209 } 2210 }, 2211 css: function (a, b, c, d) { 2212 var e, 2213 f, 2214 g, 2215 h = m.camelCase(b); 2216 return b = m.cssProps[h] || (m.cssProps[h] = Ub(a.style, h)), g = m.cssHooks[b] || m.cssHooks[h], g && "get" in g && (f = g.get(a, !0, c)), void 0 === f && (f = Jb(a, b, d)), "normal" === f && b in Sb && (f = Sb[b]), "" === c || c ? (e = parseFloat(f), c === !0 || m.isNumeric(e) ? e || 0 : f) : f; 2217 } 2218 }), m.each(["height", "width"], function (a, b) { 2219 m.cssHooks[b] = { 2220 get: function (a, c, d) { 2221 return c ? Ob.test(m.css(a, "display")) && 0 === a.offsetWidth ? m.swap(a, Rb, function () { 2222 return Yb(a, b, d); 2223 }) : Yb(a, b, d) : void 0; 2224 }, 2225 set: function (a, c, d) { 2226 var e = d && Ib(a); 2227 return Wb(a, c, d ? Xb(a, b, d, k.boxSizing && "border-box" === m.css(a, "boxSizing", !1, e), e) : 0); 2228 } 2229 }; 2230 }), k.opacity || (m.cssHooks.opacity = { 2231 get: function (a, b) { 2232 return Nb.test((b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : b ? "1" : ""; 2233 }, 2234 set: function (a, b) { 2235 var c = a.style, 2236 d = a.currentStyle, 2237 e = m.isNumeric(b) ? "alpha(opacity=" + 100 * b + ")" : "", 2238 f = d && d.filter || c.filter || ""; 2239 c.zoom = 1, (b >= 1 || "" === b) && "" === m.trim(f.replace(Mb, "")) && c.removeAttribute && (c.removeAttribute("filter"), "" === b || d && !d.filter) || (c.filter = Mb.test(f) ? f.replace(Mb, e) : f + " " + e); 2240 } 2241 }), m.cssHooks.marginRight = Lb(k.reliableMarginRight, function (a, b) { 2242 return b ? m.swap(a, { 2243 display: "inline-block" 2244 }, Jb, [a, "marginRight"]) : void 0; 2245 }), m.each({ 2246 margin: "", 2247 padding: "", 2248 border: "Width" 2249 }, function (a, b) { 2250 m.cssHooks[a + b] = { 2251 expand: function (c) { 2252 for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++) e[a + T[d] + b] = f[d] || f[d - 2] || f[0]; 2253 return e; 2254 } 2255 }, Gb.test(a) || (m.cssHooks[a + b].set = Wb); 2256 }), m.fn.extend({ 2257 css: function (a, b) { 2258 return V(this, function (a, b, c) { 2259 var d, 2260 e, 2261 f = {}, 2262 g = 0; 2263 if (m.isArray(b)) { 2264 for (d = Ib(a), e = b.length; e > g; g++) f[b[g]] = m.css(a, b[g], !1, d); 2265 return f; 2266 } 2267 return void 0 !== c ? m.style(a, b, c) : m.css(a, b); 2268 }, a, b, arguments.length > 1); 2269 }, 2270 show: function () { 2271 return Vb(this, !0); 2272 }, 2273 hide: function () { 2274 return Vb(this); 2275 }, 2276 toggle: function (a) { 2277 return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function () { 2278 U(this) ? m(this).show() : m(this).hide(); 2279 }); 2280 } 2281 }); 2282 function Zb(a, b, c, d, e) { 2283 return new Zb.prototype.init(a, b, c, d, e); 2284 } 2285 m.Tween = Zb, Zb.prototype = { 2286 constructor: Zb, 2287 init: function (a, b, c, d, e, f) { 2288 this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (m.cssNumber[c] ? "" : "px"); 2289 }, 2290 cur: function () { 2291 var a = Zb.propHooks[this.prop]; 2292 return a && a.get ? a.get(this) : Zb.propHooks._default.get(this); 2293 }, 2294 run: function (a) { 2295 var b, 2296 c = Zb.propHooks[this.prop]; 2297 return this.pos = b = this.options.duration ? m.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : a, this.now = (this.end
vendor: 26,328 bytes, lines 2297-2987
2297- this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : Zb.propHooks._default.set(this), this; 2298 } 2299 }, Zb.prototype.init.prototype = Zb.prototype, Zb.propHooks = { 2300 _default: { 2301 get: function (a) { 2302 var b; 2303 return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = m.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]; 2304 }, 2305 set: function (a) { 2306 m.fx.step[a.prop] ? m.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[m.cssProps[a.prop]] || m.cssHooks[a.prop]) ? m.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now; 2307 } 2308 } 2309 }, Zb.propHooks.scrollTop = Zb.propHooks.scrollLeft = { 2310 set: function (a) { 2311 a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now); 2312 } 2313 }, m.easing = { 2314 linear: function (a) { 2315 return a; 2316 }, 2317 swing: function (a) { 2318 return .5 - Math.cos(a * Math.PI) / 2; 2319 } 2320 }, m.fx = Zb.prototype.init, m.fx.step = {}; 2321 var $b, 2322 _b, 2323 ac = /^(?:toggle|show|hide)$/, 2324 bc = new RegExp("^(?:([+-])=|)(" + S + ")([a-z%]*)$", "i"), 2325 cc = /queueHooks$/, 2326 dc = [ic], 2327 ec = { 2328 "*": [function (a, b) { 2329 var c = this.createTween(a, b), 2330 d = c.cur(), 2331 e = bc.exec(b), 2332 f = e && e[3] || (m.cssNumber[a] ? "" : "px"), 2333 g = (m.cssNumber[a] || "px" !== f && +d) && bc.exec(m.css(c.elem, a)), 2334 h = 1, 2335 i = 20; 2336 if (g && g[3] !== f) { 2337 f = f || g[3], e = e || [], g = +d || 1; 2338 do h = h || ".5", g /= h, m.style(c.elem, a, g + f); while (h !== (h = c.cur() / d) && 1 !== h && --i); 2339 } 2340 return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c; 2341 }] 2342 }; 2343 function fc() { 2344 return setTimeout(function () { 2345 $b = void 0; 2346 }), $b = m.now(); 2347 } 2348 function gc(a, b) { 2349 var c, 2350 d = { 2351 height: a 2352 }, 2353 e = 0; 2354 for (b = b ? 1 : 0; 4 > e; e += 2 - b) c = T[e], d["margin" + c] = d["padding" + c] = a; 2355 return b && (d.opacity = d.width = a), d; 2356 } 2357 function hc(a, b, c) { 2358 for (var d, e = (ec[b] || []).concat(ec["*"]), f = 0, g = e.length; g > f; f++) if (d = e[f].call(c, b, a)) return d; 2359 } 2360 function ic(a, b, c) { 2361 var d, 2362 e, 2363 f, 2364 g, 2365 h, 2366 i, 2367 j, 2368 l, 2369 n = this, 2370 o = {}, 2371 p = a.style, 2372 q = a.nodeType && U(a), 2373 r = m._data(a, "fxshow"); 2374 c.queue || (h = m._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function () { 2375 h.unqueued || i(); 2376 }), h.unqueued++, n.always(function () { 2377 n.always(function () { 2378 h.unqueued--, m.queue(a, "fx").length || h.empty.fire(); 2379 }); 2380 })), 1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [p.overflow, p.overflowX, p.overflowY], j = m.css(a, "display"), l = "none" === j ? m._data(a, "olddisplay") || Fb(a.nodeName) : j, "inline" === l && "none" === m.css(a, "float") && (k.inlineBlockNeedsLayout && "inline" !== Fb(a.nodeName) ? p.zoom = 1 : p.display = "inline-block")), c.overflow && (p.overflow = "hidden", k.shrinkWrapBlocks() || n.always(function () { 2381 p.overflow = c.overflow[0], p.overflowX = c.overflow[1], p.overflowY = c.overflow[2]; 2382 })); 2383 for (d in b) if (e = b[d], ac.exec(e)) { 2384 if (delete b[d], f = f || "toggle" === e, e === (q ? "hide" : "show")) { 2385 if ("show" !== e || !r || void 0 === r[d]) continue; 2386 q = !0; 2387 } 2388 o[d] = r && r[d] || m.style(a, d); 2389 } else j = void 0; 2390 if (m.isEmptyObject(o)) "inline" === ("none" === j ? Fb(a.nodeName) : j) && (p.display = j);else { 2391 r ? "hidden" in r && (q = r.hidden) : r = m._data(a, "fxshow", {}), f && (r.hidden = !q), q ? m(a).show() : n.done(function () { 2392 m(a).hide(); 2393 }), n.done(function () { 2394 var b; 2395 m._removeData(a, "fxshow"); 2396 for (b in o) m.style(a, b, o[b]); 2397 }); 2398 for (d in o) g = hc(q ? r[d] : 0, d, n), d in r || (r[d] = g.start, q && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0)); 2399 } 2400 } 2401 function jc(a, b) { 2402 var c, d, e, f, g; 2403 for (c in a) if (d = m.camelCase(c), e = b[d], f = a[c], m.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = m.cssHooks[d], g && "expand" in g) { 2404 f = g.expand(f), delete a[d]; 2405 for (c in f) c in a || (a[c] = f[c], b[c] = e); 2406 } else b[d] = e; 2407 } 2408 function kc(a, b, c) { 2409 var d, 2410 e, 2411 f = 0, 2412 g = dc.length, 2413 h = m.Deferred().always(function () { 2414 delete i.elem; 2415 }), 2416 i = function () { 2417 if (e) return !1; 2418 for (var b = $b || fc(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++) j.tweens[g].run(f); 2419 return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1); 2420 }, 2421 j = h.promise({ 2422 elem: a, 2423 props: m.extend({}, b), 2424 opts: m.extend(!0, { 2425 specialEasing: {} 2426 }, c), 2427 originalProperties: b, 2428 originalOptions: c, 2429 startTime: $b || fc(), 2430 duration: c.duration, 2431 tweens: [], 2432 createTween: function (b, c) { 2433 var d = m.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing); 2434 return j.tweens.push(d), d; 2435 }, 2436 stop: function (b) { 2437 var c = 0, 2438 d = b ? j.tweens.length : 0; 2439 if (e) return this; 2440 for (e = !0; d > c; c++) j.tweens[c].run(1); 2441 return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this; 2442 } 2443 }), 2444 k = j.props; 2445 for (jc(k, j.opts.specialEasing); g > f; f++) if (d = dc[f].call(j, a, k, j.opts)) return d; 2446 return m.map(k, hc, j), m.isFunction(j.opts.start) && j.opts.start.call(a, j), m.fx.timer(m.extend(i, { 2447 elem: a, 2448 anim: j, 2449 queue: j.opts.queue 2450 })), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always); 2451 } 2452 m.Animation = m.extend(kc, { 2453 tweener: function (a, b) { 2454 m.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" "); 2455 for (var c, d = 0, e = a.length; e > d; d++) c = a[d], ec[c] = ec[c] || [], ec[c].unshift(b); 2456 }, 2457 prefilter: function (a, b) { 2458 b ? dc.unshift(a) : dc.push(a); 2459 } 2460 }), m.speed = function (a, b, c) { 2461 var d = a && "object" == typeof a ? m.extend({}, a) : { 2462 complete: c || !c && b || m.isFunction(a) && a, 2463 duration: a, 2464 easing: c && b || b && !m.isFunction(b) && b 2465 }; 2466 return d.duration = m.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in m.fx.speeds ? m.fx.speeds[d.duration] : m.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function () { 2467 m.isFunction(d.old) && d.old.call(this), d.queue && m.dequeue(this, d.queue); 2468 }, d; 2469 }, m.fn.extend({ 2470 fadeTo: function (a, b, c, d) { 2471 return this.filter(U).css("opacity", 0).show().end().animate({ 2472 opacity: b 2473 }, a, c, d); 2474 }, 2475 animate: function (a, b, c, d) { 2476 var e = m.isEmptyObject(a), 2477 f = m.speed(b, c, d), 2478 g = function () { 2479 var b = kc(this, m.extend({}, a), f); 2480 (e || m._data(this, "finish")) && b.stop(!0); 2481 }; 2482 return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g); 2483 }, 2484 stop: function (a, b, c) { 2485 var d = function (a) { 2486 var b = a.stop; 2487 delete a.stop, b(c); 2488 }; 2489 return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function () { 2490 var b = !0, 2491 e = null != a && a + "queueHooks", 2492 f = m.timers, 2493 g = m._data(this); 2494 if (e) g[e] && g[e].stop && d(g[e]);else for (e in g) g[e] && g[e].stop && cc.test(e) && d(g[e]); 2495 for (e = f.length; e--;) f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), b = !1, f.splice(e, 1)); 2496 (b || !c) && m.dequeue(this, a); 2497 }); 2498 }, 2499 finish: function (a) { 2500 return a !== !1 && (a = a || "fx"), this.each(function () { 2501 var b, 2502 c = m._data(this), 2503 d = c[a + "queue"], 2504 e = c[a + "queueHooks"], 2505 f = m.timers, 2506 g = d ? d.length : 0; 2507 for (c.finish = !0, m.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--;) f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1)); 2508 for (b = 0; g > b; b++) d[b] && d[b].finish && d[b].finish.call(this); 2509 delete c.finish; 2510 }); 2511 } 2512 }), m.each(["toggle", "show", "hide"], function (a, b) { 2513 var c = m.fn[b]; 2514 m.fn[b] = function (a, d, e) { 2515 return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(gc(b, !0), a, d, e); 2516 }; 2517 }), m.each({ 2518 slideDown: gc("show"), 2519 slideUp: gc("hide"), 2520 slideToggle: gc("toggle"), 2521 fadeIn: { 2522 opacity: "show" 2523 }, 2524 fadeOut: { 2525 opacity: "hide" 2526 }, 2527 fadeToggle: { 2528 opacity: "toggle" 2529 } 2530 }, function (a, b) { 2531 m.fn[a] = function (a, c, d) { 2532 return this.animate(b, a, c, d); 2533 }; 2534 }), m.timers = [], m.fx.tick = function () { 2535 var a, 2536 b = m.timers, 2537 c = 0; 2538 for ($b = m.now(); c < b.length; c++) a = b[c], a() || b[c] !== a || b.splice(c--, 1); 2539 b.length || m.fx.stop(), $b = void 0; 2540 }, m.fx.timer = function (a) { 2541 m.timers.push(a), a() ? m.fx.start() : m.timers.pop(); 2542 }, m.fx.interval = 13, m.fx.start = function () { 2543 _b || (_b = setInterval(m.fx.tick, m.fx.interval)); 2544 }, m.fx.stop = function () { 2545 clearInterval(_b), _b = null; 2546 }, m.fx.speeds = { 2547 slow: 600, 2548 fast: 200, 2549 _default: 400 2550 }, m.fn.delay = function (a, b) { 2551 return a = m.fx ? m.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function (b, c) { 2552 var d = setTimeout(b, a); 2553 c.stop = function () { 2554 clearTimeout(d); 2555 }; 2556 }); 2557 }, function () { 2558 var a, b, c, d, e; 2559 b = y.createElement("div"), b.setAttribute("className", "t"), b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", d = b.getElementsByTagName("a")[0], c = y.createElement("select"), e = c.appendChild(y.createElement("option")), a = b.getElementsByTagName("input")[0], d.style.cssText = "top:1px", k.getSetAttribute = "t" !== b.className, k.style = /top/.test(d.getAttribute("style")), k.hrefNormalized = "/a" === d.getAttribute("href"), k.checkOn = !!a.value, k.optSelected = e.selected, k.enctype = !!y.createElement("form").enctype, c.disabled = !0, k.optDisabled = !e.disabled, a = y.createElement("input"), a.setAttribute("value", ""), k.input = "" === a.getAttribute("value"), a.value = "t", a.setAttribute("type", "radio"), k.radioValue = "t" === a.value; 2560 }(); 2561 var lc = /\r/g; 2562 m.fn.extend({ 2563 val: function (a) { 2564 var b, 2565 c, 2566 d, 2567 e = this[0]; 2568 { 2569 if (arguments.length) return d = m.isFunction(a), this.each(function (c) { 2570 var e; 2571 1 === this.nodeType && (e = d ? a.call(this, c, m(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : m.isArray(e) && (e = m.map(e, function (a) { 2572 return null == a ? "" : a + ""; 2573 })), b = m.valHooks[this.type] || m.valHooks[this.nodeName.toLowerCase()], b && "set" in b && void 0 !== b.set(this, e, "value") || (this.value = e)); 2574 }); 2575 if (e) return b = m.valHooks[e.type] || m.valHooks[e.nodeName.toLowerCase()], b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(lc, "") : null == c ? "" : c); 2576 } 2577 } 2578 }), m.extend({ 2579 valHooks: { 2580 option: { 2581 get: function (a) { 2582 var b = m.find.attr(a, "value"); 2583 return null != b ? b : m.trim(m.text(a)); 2584 } 2585 }, 2586 select: { 2587 get: function (a) { 2588 for (var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++) if (c = d[i], !(!c.selected && i !== e || (k.optDisabled ? c.disabled : null !== c.getAttribute("disabled")) || c.parentNode.disabled && m.nodeName(c.parentNode, "optgroup"))) { 2589 if (b = m(c).val(), f) return b; 2590 g.push(b); 2591 } 2592 return g; 2593 }, 2594 set: function (a, b) { 2595 var c, 2596 d, 2597 e = a.options, 2598 f = m.makeArray(b), 2599 g = e.length; 2600 while (g--) if (d = e[g], m.inArray(m.valHooks.option.get(d), f) >= 0) try { 2601 d.selected = c = !0; 2602 } catch (h) { 2603 d.scrollHeight; 2604 } else d.selected = !1; 2605 return c || (a.selectedIndex = -1), e; 2606 } 2607 } 2608 } 2609 }), m.each(["radio", "checkbox"], function () { 2610 m.valHooks[this] = { 2611 set: function (a, b) { 2612 return m.isArray(b) ? a.checked = m.inArray(m(a).val(), b) >= 0 : void 0; 2613 } 2614 }, k.checkOn || (m.valHooks[this].get = function (a) { 2615 return null === a.getAttribute("value") ? "on" : a.value; 2616 }); 2617 }); 2618 var mc, 2619 nc, 2620 oc = m.expr.attrHandle, 2621 pc = /^(?:checked|selected)$/i, 2622 qc = k.getSetAttribute, 2623 rc = k.input; 2624 m.fn.extend({ 2625 attr: function (a, b) { 2626 return V(this, m.attr, a, b, arguments.length > 1); 2627 }, 2628 removeAttr: function (a) { 2629 return this.each(function () { 2630 m.removeAttr(this, a); 2631 }); 2632 } 2633 }), m.extend({ 2634 attr: function (a, b, c) { 2635 var d, 2636 e, 2637 f = a.nodeType; 2638 if (a && 3 !== f && 8 !== f && 2 !== f) return typeof a.getAttribute === K ? m.prop(a, b, c) : (1 === f && m.isXMLDoc(a) || (b = b.toLowerCase(), d = m.attrHooks[b] || (m.expr.match.bool.test(b) ? nc : mc)), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : (e = m.find.attr(a, b), null == e ? void 0 : e) : null !== c ? d && "set" in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void m.removeAttr(a, b)); 2639 }, 2640 removeAttr: function (a, b) { 2641 var c, 2642 d, 2643 e = 0, 2644 f = b && b.match(E); 2645 if (f && 1 === a.nodeType) while (c = f[e++]) d = m.propFix[c] || c, m.expr.match.bool.test(c) ? rc && qc || !pc.test(c) ? a[d] = !1 : a[m.camelCase("default-" + c)] = a[d] = !1 : m.attr(a, c, ""), a.removeAttribute(qc ? c : d); 2646 }, 2647 attrHooks: { 2648 type: { 2649 set: function (a, b) { 2650 if (!k.radioValue && "radio" === b && m.nodeName(a, "input")) { 2651 var c = a.value; 2652 return a.setAttribute("type", b), c && (a.value = c), b; 2653 } 2654 } 2655 } 2656 } 2657 }), nc = { 2658 set: function (a, b, c) { 2659 return b === !1 ? m.removeAttr(a, c) : rc && qc || !pc.test(c) ? a.setAttribute(!qc && m.propFix[c] || c, c) : a[m.camelCase("default-" + c)] = a[c] = !0, c; 2660 } 2661 }, m.each(m.expr.match.bool.source.match(/\w+/g), function (a, b) { 2662 var c = oc[b] || m.find.attr; 2663 oc[b] = rc && qc || !pc.test(b) ? function (a, b, d) { 2664 var e, f; 2665 return d || (f = oc[b], oc[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, oc[b] = f), e; 2666 } : function (a, b, c) { 2667 return c ? void 0 : a[m.camelCase("default-" + b)] ? b.toLowerCase() : null; 2668 }; 2669 }), rc && qc || (m.attrHooks.value = { 2670 set: function (a, b, c) { 2671 return m.nodeName(a, "input") ? void (a.defaultValue = b) : mc && mc.set(a, b, c); 2672 } 2673 }), qc || (mc = { 2674 set: function (a, b, c) { 2675 var d = a.getAttributeNode(c); 2676 return d || a.setAttributeNode(d = a.ownerDocument.createAttribute(c)), d.value = b += "", "value" === c || b === a.getAttribute(c) ? b : void 0; 2677 } 2678 }, oc.id = oc.name = oc.coords = function (a, b, c) { 2679 var d; 2680 return c ? void 0 : (d = a.getAttributeNode(b)) && "" !== d.value ? d.value : null; 2681 }, m.valHooks.button = { 2682 get: function (a, b) { 2683 var c = a.getAttributeNode(b); 2684 return c && c.specified ? c.value : void 0; 2685 }, 2686 set: mc.set 2687 }, m.attrHooks.contenteditable = { 2688 set: function (a, b, c) { 2689 mc.set(a, "" === b ? !1 : b, c); 2690 } 2691 }, m.each(["width", "height"], function (a, b) { 2692 m.attrHooks[b] = { 2693 set: function (a, c) { 2694 return "" === c ? (a.setAttribute(b, "auto"), c) : void 0; 2695 } 2696 }; 2697 })), k.style || (m.attrHooks.style = { 2698 get: function (a) { 2699 return a.style.cssText || void 0; 2700 }, 2701 set: function (a, b) { 2702 return a.style.cssText = b + ""; 2703 } 2704 }); 2705 var sc = /^(?:input|select|textarea|button|object)$/i, 2706 tc = /^(?:a|area)$/i; 2707 m.fn.extend({ 2708 prop: function (a, b) { 2709 return V(this, m.prop, a, b, arguments.length > 1); 2710 }, 2711 removeProp: function (a) { 2712 return a = m.propFix[a] || a, this.each(function () { 2713 try { 2714 this[a] = void 0, delete this[a]; 2715 } catch (b) {} 2716 }); 2717 } 2718 }), m.extend({ 2719 propFix: { 2720 "for": "htmlFor", 2721 "class": "className" 2722 }, 2723 prop: function (a, b, c) { 2724 var d, 2725 e, 2726 f, 2727 g = a.nodeType; 2728 if (a && 3 !== g && 8 !== g && 2 !== g) return f = 1 !== g || !m.isXMLDoc(a), f && (b = m.propFix[b] || b, e = m.propHooks[b]), void 0 !== c ? e && "set" in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get" in e && null !== (d = e.get(a, b)) ? d : a[b]; 2729 }, 2730 propHooks: { 2731 tabIndex: { 2732 get: function (a) { 2733 var b = m.find.attr(a, "tabindex"); 2734 return b ? parseInt(b, 10) : sc.test(a.nodeName) || tc.test(a.nodeName) && a.href ? 0 : -1; 2735 } 2736 } 2737 } 2738 }), k.hrefNormalized || m.each(["href", "src"], function (a, b) { 2739 m.propHooks[b] = { 2740 get: function (a) { 2741 return a.getAttribute(b, 4); 2742 } 2743 }; 2744 }), k.optSelected || (m.propHooks.selected = { 2745 get: function (a) { 2746 var b = a.parentNode; 2747 return b && (b.selectedIndex, b.parentNode && b.parentNode.selectedIndex), null; 2748 } 2749 }), m.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () { 2750 m.propFix[this.toLowerCase()] = this; 2751 }), k.enctype || (m.propFix.enctype = "encoding"); 2752 var uc = /[\t\r\n\f]/g; 2753 m.fn.extend({ 2754 addClass: function (a) { 2755 var b, 2756 c, 2757 d, 2758 e, 2759 f, 2760 g, 2761 h = 0, 2762 i = this.length, 2763 j = "string" == typeof a && a; 2764 if (m.isFunction(a)) return this.each(function (b) { 2765 m(this).addClass(a.call(this, b, this.className)); 2766 }); 2767 if (j) for (b = (a || "").match(E) || []; i > h; h++) if (c = this[h], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(uc, " ") : " ")) { 2768 f = 0; 2769 while (e = b[f++]) d.indexOf(" " + e + " ") < 0 && (d += e + " "); 2770 g = m.trim(d), c.className !== g && (c.className = g); 2771 } 2772 return this; 2773 }, 2774 removeClass: function (a) { 2775 var b, 2776 c, 2777 d, 2778 e, 2779 f, 2780 g, 2781 h = 0, 2782 i = this.length, 2783 j = 0 === arguments.length || "string" == typeof a && a; 2784 if (m.isFunction(a)) return this.each(function (b) { 2785 m(this).removeClass(a.call(this, b, this.className)); 2786 }); 2787 if (j) for (b = (a || "").match(E) || []; i > h; h++) if (c = this[h], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(uc, " ") : "")) { 2788 f = 0; 2789 while (e = b[f++]) while (d.indexOf(" " + e + " ") >= 0) d = d.replace(" " + e + " ", " "); 2790 g = a ? m.trim(d) : "", c.className !== g && (c.className = g); 2791 } 2792 return this; 2793 }, 2794 toggleClass: function (a, b) { 2795 var c = typeof a; 2796 return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : this.each(m.isFunction(a) ? function (c) { 2797 m(this).toggleClass(a.call(this, c, this.className, b), b); 2798 } : function () { 2799 if ("string" === c) { 2800 var b, 2801 d = 0, 2802 e = m(this), 2803 f = a.match(E) || []; 2804 while (b = f[d++]) e.hasClass(b) ? e.removeClass(b) : e.addClass(b); 2805 } else (c === K || "boolean" === c) && (this.className && m._data(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : m._data(this, "__className__") || ""); 2806 }); 2807 }, 2808 hasClass: function (a) { 2809 for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++) if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(uc, " ").indexOf(b) >= 0) return !0; 2810 return !1; 2811 } 2812 }), m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (a, b) { 2813 m.fn[b] = function (a, c) { 2814 return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b); 2815 }; 2816 }), m.fn.extend({ 2817 hover: function (a, b) { 2818 return this.mouseenter(a).mouseleave(b || a); 2819 }, 2820 bind: function (a, b, c) { 2821 return this.on(a, null, b, c); 2822 }, 2823 unbind: function (a, b) { 2824 return this.off(a, null, b); 2825 }, 2826 delegate: function (a, b, c, d) { 2827 return this.on(b, a, c, d); 2828 }, 2829 undelegate: function (a, b, c) { 2830 return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c); 2831 } 2832 }); 2833 var vc = m.now(), 2834 wc = /\?/, 2835 xc = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g; 2836 m.parseJSON = function (b) { 2837 if (a.JSON && a.JSON.parse) return a.JSON.parse(b + ""); 2838 var c, 2839 d = null, 2840 e = m.trim(b + ""); 2841 return e && !m.trim(e.replace(xc, function (a, b, e, f) { 2842 return c && b && (d = 0), 0 === d ? a : (c = e || b, d += !f - !e, ""); 2843 })) ? Function("return " + e)() : m.error("Invalid JSON: " + b); 2844 }, m.parseXML = function (b) { 2845 var c, d; 2846 if (!b || "string" != typeof b) return null; 2847 try { 2848 a.DOMParser ? (d = new DOMParser(), c = d.parseFromString(b, "text/xml")) : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(b)); 2849 } catch (e) { 2850 c = void 0; 2851 } 2852 return c && c.documentElement && !c.getElementsByTagName("parsererror").length || m.error("Invalid XML: " + b), c; 2853 }; 2854 var yc, 2855 zc, 2856 Ac = /#.*$/, 2857 Bc = /([?&])_=[^&]*/, 2858 Cc = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, 2859 Dc = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 2860 Ec = /^(?:GET|HEAD)$/, 2861 Fc = /^\/\//, 2862 Gc = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, 2863 Hc = {}, 2864 Ic = {}, 2865 Jc = "*/".concat("*"); 2866 try { 2867 zc = location.href; 2868 } catch (Kc) { 2869 zc = y.createElement("a"), zc.href = "", zc = zc.href; 2870 } 2871 yc = Gc.exec(zc.toLowerCase()) || []; 2872 function Lc(a) { 2873 return function (b, c) { 2874 "string" != typeof b && (c = b, b = "*"); 2875 var d, 2876 e = 0, 2877 f = b.toLowerCase().match(E) || []; 2878 if (m.isFunction(c)) while (d = f[e++]) "+" === d.charAt(0) ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c); 2879 }; 2880 } 2881 function Mc(a, b, c, d) { 2882 var e = {}, 2883 f = a === Ic; 2884 function g(h) { 2885 var i; 2886 return e[h] = !0, m.each(a[h] || [], function (a, h) { 2887 var j = h(b, c, d); 2888 return "string" != typeof j || f || e[j] ? f ? !(i = j) : void 0 : (b.dataTypes.unshift(j), g(j), !1); 2889 }), i; 2890 } 2891 return g(b.dataTypes[0]) || !e["*"] && g("*"); 2892 } 2893 function Nc(a, b) { 2894 var c, 2895 d, 2896 e = m.ajaxSettings.flatOptions || {}; 2897 for (d in b) void 0 !== b[d] && ((e[d] ? a : c || (c = {}))[d] = b[d]); 2898 return c && m.extend(!0, a, c), a; 2899 } 2900 function Oc(a, b, c) { 2901 var d, 2902 e, 2903 f, 2904 g, 2905 h = a.contents, 2906 i = a.dataTypes; 2907 while ("*" === i[0]) i.shift(), void 0 === e && (e = a.mimeType || b.getResponseHeader("Content-Type")); 2908 if (e) for (g in h) if (h[g] && h[g].test(e)) { 2909 i.unshift(g); 2910 break; 2911 } 2912 if (i[0] in c) f = i[0];else { 2913 for (g in c) { 2914 if (!i[0] || a.converters[g + " " + i[0]]) { 2915 f = g; 2916 break; 2917 } 2918 d || (d = g); 2919 } 2920 f = f || d; 2921 } 2922 return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0; 2923 } 2924 function Pc(a, b, c, d) { 2925 var e, 2926 f, 2927 g, 2928 h, 2929 i, 2930 j = {}, 2931 k = a.dataTypes.slice(); 2932 if (k[1]) for (g in a.converters) j[g.toLowerCase()] = a.converters[g]; 2933 f = k.shift(); 2934 while (f) if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift()) if ("*" === f) f = i;else if ("*" !== i && i !== f) { 2935 if (g = j[i + " " + f] || j["* " + f], !g) for (e in j) if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) { 2936 g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1])); 2937 break; 2938 } 2939 if (g !== !0) if (g && a["throws"]) b = g(b);else try { 2940 b = g(b); 2941 } catch (l) { 2942 return { 2943 state: "parsererror", 2944 error: g ? l : "No conversion from " + i + " to " + f 2945 }; 2946 } 2947 } 2948 return { 2949 state: "success", 2950 data: b 2951 }; 2952 } 2953 m.extend({ 2954 active: 0, 2955 lastModified: {}, 2956 etag: {}, 2957 ajaxSettings: { 2958 url: zc, 2959 type: "GET", 2960 isLocal: Dc.test(yc[1]), 2961 global: !0, 2962 processData: !0, 2963 async: !0, 2964 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 2965 accepts: { 2966 "*": Jc, 2967 text: "text/plain", 2968 html: "text/html", 2969 xml: "application/xml, text/xml", 2970 json: "application/json, text/javascript" 2971 }, 2972 contents: { 2973 xml: /xml/, 2974 html: /html/, 2975 json: /json/ 2976 }, 2977 responseFields: { 2978 xml: "responseXML", 2979 text: "responseText", 2980 json: "responseJSON" 2981 }, 2982 converters: { 2983 "* text": String, 2984 "text html": !0, 2985 "text json": m.parseJSON, 2986 "text xml": m.parseXML 2987
2987 }, 2988 flatOptions: { 2989 url: !0, 2990 context: !0 2991 } 2992 }, 2993 ajaxSetup: function (a, b) { 2994 return b ? Nc(Nc(a, m.ajaxSettings), b) : Nc(m.ajaxSettings, a); 2995 }, 2996 ajaxPrefilter: Lc(Hc), 2997 ajaxTransport: Lc(Ic), 2998 ajax: function (a, b) { 2999 "object" == typeof a && (b = a, a = void 0), b = b || {}; 3000 var c, 3001 d, 3002 e, 3003 f, 3004 g, 3005 h, 3006 i, 3007 j, 3008 k = m.ajaxSetup({}, b), 3009 l = k.context || k, 3010 n = k.context && (l.nodeType || l.jquery) ? m(l) : m.event, 3011 o = m.Deferred(), 3012 p = m.Callbacks("once memory"), 3013 q = k.statusCode || {}, 3014 r = {}, 3015 s = {}, 3016 t = 0, 3017 u = "canceled", 3018 v = { 3019 readyState: 0, 3020 getResponseHeader: function (a) { 3021 var b; 3022 if (2 === t) { 3023 if (!j) { 3024 j = {}; 3025 while (b = Cc.exec(f)) j[b[1].toLowerCase()] = b[2]; 3026 } 3027 b = j[a.toLowerCase()]; 3028 } 3029 return null == b ? null : b; 3030 }, 3031 getAllResponseHeaders: function () { 3032 return 2 === t ? f : null; 3033 }, 3034 setRequestHeader: function (a, b) { 3035 var c = a.toLowerCase(); 3036 return t || (a = s[c] = s[c] || a, r[a] = b), this; 3037 }, 3038 overrideMimeType: function (a) { 3039 return t || (k.mimeType = a), this; 3040 }, 3041 statusCode: function (a) { 3042 var b; 3043 if (a) if (2 > t) for (b in a) q[b] = [q[b], a[b]];else v.always(a[v.status]); 3044 return this; 3045 }, 3046 abort: function (a) { 3047 var b = a || u; 3048 return i && i.abort(b), x(0, b), this; 3049 } 3050 }; 3051 if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, k.url = ((a || k.url || zc) + "").replace(Ac, "").replace(Fc, yc[1] + "//"), k.type = b.method || b.type || k.method || k.type, k.dataTypes = m.trim(k.dataType || "*").toLowerCase().match(E) || [""], null == k.crossDomain && (c = Gc.exec(k.url.toLowerCase()), k.crossDomain = !(!c || c[1] === yc[1] && c[2] === yc[2] && (c[3] || ("http:" === c[1] ? "80" : "443")) === (yc[3] || ("http:" === yc[1] ? "80" : "443")))), k.data && k.processData && "string" != typeof k.data && (k.data = m.param(k.data, k.traditional)), Mc(Hc, k, b, v), 2 === t) return v;
vendor: 6,296 bytes, lines 3052-3194
3052 h = m.event && k.global, h && 0 === m.active++ && m.event.trigger("ajaxStart"), k.type = k.type.toUpperCase(), k.hasContent = !Ec.test(k.type), e = k.url, k.hasContent || (k.data && (e = k.url += (wc.test(e) ? "&" : "?") + k.data, delete k.data), k.cache === !1 && (k.url = Bc.test(e) ? e.replace(Bc, "$1_=" + vc++) : e + (wc.test(e) ? "&" : "?") + "_=" + vc++)), k.ifModified && (m.lastModified[e] && v.setRequestHeader("If-Modified-Since", m.lastModified[e]), m.etag[e] && v.setRequestHeader("If-None-Match", m.etag[e])), (k.data && k.hasContent && k.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", k.contentType), v.setRequestHeader("Accept", k.dataTypes[0] && k.accepts[k.dataTypes[0]] ? k.accepts[k.dataTypes[0]] + ("*" !== k.dataTypes[0] ? ", " + Jc + "; q=0.01" : "") : k.accepts["*"]); 3053 for (d in k.headers) v.setRequestHeader(d, k.headers[d]); 3054 if (k.beforeSend && (k.beforeSend.call(l, v, k) === !1 || 2 === t)) return v.abort(); 3055 u = "abort"; 3056 for (d in { 3057 success: 1, 3058 error: 1, 3059 complete: 1 3060 }) v[d](k[d]); 3061 if (i = Mc(Ic, k, b, v)) { 3062 v.readyState = 1, h && n.trigger("ajaxSend", [v, k]), k.async && k.timeout > 0 && (g = setTimeout(function () { 3063 v.abort("timeout"); 3064 }, k.timeout)); 3065 try { 3066 t = 1, i.send(r, x); 3067 } catch (w) { 3068 if (!(2 > t)) throw w; 3069 x(-1, w); 3070 } 3071 } else x(-1, "No Transport"); 3072 function x(a, b, c, d) { 3073 var j, 3074 r, 3075 s, 3076 u, 3077 w, 3078 x = b; 3079 2 !== t && (t = 2, g && clearTimeout(g), i = void 0, f = d || "", v.readyState = a > 0 ? 4 : 0, j = a >= 200 && 300 > a || 304 === a, c && (u = Oc(k, v, c)), u = Pc(k, u, v, j), j ? (k.ifModified && (w = v.getResponseHeader("Last-Modified"), w && (m.lastModified[e] = w), w = v.getResponseHeader("etag"), w && (m.etag[e] = w)), 204 === a || "HEAD" === k.type ? x = "nocontent" : 304 === a ? x = "notmodified" : (x = u.state, r = u.data, s = u.error, j = !s)) : (s = x, (a || !x) && (x = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || x) + "", j ? o.resolveWith(l, [r, x, v]) : o.rejectWith(l, [v, x, s]), v.statusCode(q), q = void 0, h && n.trigger(j ? "ajaxSuccess" : "ajaxError", [v, k, j ? r : s]), p.fireWith(l, [v, x]), h && (n.trigger("ajaxComplete", [v, k]), --m.active || m.event.trigger("ajaxStop"))); 3080 } 3081 return v; 3082 }, 3083 getJSON: function (a, b, c) { 3084 return m.get(a, b, c, "json"); 3085 }, 3086 getScript: function (a, b) { 3087 return m.get(a, void 0, b, "script"); 3088 } 3089 }), m.each(["get", "post"], function (a, b) { 3090 m[b] = function (a, c, d, e) { 3091 return m.isFunction(c) && (e = e || d, d = c, c = void 0), m.ajax({ 3092 url: a, 3093 type: b, 3094 dataType: e, 3095 data: c, 3096 success: d 3097 }); 3098 }; 3099 }), m._evalUrl = function (a) { 3100 return m.ajax({ 3101 url: a, 3102 type: "GET", 3103 dataType: "script", 3104 async: !1, 3105 global: !1, 3106 "throws": !0 3107 }); 3108 }, m.fn.extend({ 3109 wrapAll: function (a) { 3110 if (m.isFunction(a)) return this.each(function (b) { 3111 m(this).wrapAll(a.call(this, b)); 3112 }); 3113 if (this[0]) { 3114 var b = m(a, this[0].ownerDocument).eq(0).clone(!0); 3115 this[0].parentNode && b.insertBefore(this[0]), b.map(function () { 3116 var a = this; 3117 while (a.firstChild && 1 === a.firstChild.nodeType) a = a.firstChild; 3118 return a; 3119 }).append(this); 3120 } 3121 return this; 3122 }, 3123 wrapInner: function (a) { 3124 return this.each(m.isFunction(a) ? function (b) { 3125 m(this).wrapInner(a.call(this, b)); 3126 } : function () { 3127 var b = m(this), 3128 c = b.contents(); 3129 c.length ? c.wrapAll(a) : b.append(a); 3130 }); 3131 }, 3132 wrap: function (a) { 3133 var b = m.isFunction(a); 3134 return this.each(function (c) { 3135 m(this).wrapAll(b ? a.call(this, c) : a); 3136 }); 3137 }, 3138 unwrap: function () { 3139 return this.parent().each(function () { 3140 m.nodeName(this, "body") || m(this).replaceWith(this.childNodes); 3141 }).end(); 3142 } 3143 }), m.expr.filters.hidden = function (a) { 3144 return a.offsetWidth <= 0 && a.offsetHeight <= 0 || !k.reliableHiddenOffsets() && "none" === (a.style && a.style.display || m.css(a, "display")); 3145 }, m.expr.filters.visible = function (a) { 3146 return !m.expr.filters.hidden(a); 3147 }; 3148 var Qc = /%20/g, 3149 Rc = /\[\]$/, 3150 Sc = /\r?\n/g, 3151 Tc = /^(?:submit|button|image|reset|file)$/i, 3152 Uc = /^(?:input|select|textarea|keygen)/i; 3153 function Vc(a, b, c, d) { 3154 var e; 3155 if (m.isArray(b)) m.each(b, function (b, e) { 3156 c || Rc.test(a) ? d(a, e) : Vc(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d); 3157 });else if (c || "object" !== m.type(b)) d(a, b);else for (e in b) Vc(a + "[" + e + "]", b[e], c, d); 3158 } 3159 m.param = function (a, b) { 3160 var c, 3161 d = [], 3162 e = function (a, b) { 3163 b = m.isFunction(b) ? b() : null == b ? "" : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b); 3164 }; 3165 if (void 0 === b && (b = m.ajaxSettings && m.ajaxSettings.traditional), m.isArray(a) || a.jquery && !m.isPlainObject(a)) m.each(a, function () { 3166 e(this.name, this.value); 3167 });else for (c in a) Vc(c, a[c], b, e); 3168 return d.join("&").replace(Qc, "+"); 3169 }, m.fn.extend({ 3170 serialize: function () { 3171 return m.param(this.serializeArray()); 3172 }, 3173 serializeArray: function () { 3174 return this.map(function () { 3175 var a = m.prop(this, "elements"); 3176 return a ? m.makeArray(a) : this; 3177 }).filter(function () { 3178 var a = this.type; 3179 return this.name && !m(this).is(":disabled") && Uc.test(this.nodeName) && !Tc.test(a) && (this.checked || !W.test(a)); 3180 }).map(function (a, b) { 3181 var c = m(this).val(); 3182 return null == c ? null : m.isArray(c) ? m.map(c, function (a) { 3183 return { 3184 name: b.name, 3185 value: a.replace(Sc, "\r\n") 3186 }; 3187 }) : { 3188 name: b.name, 3189 value: c.replace(Sc, "\r\n") 3190 }; 3191 }).get(); 3192 } 3193 }), m.ajaxSettings.xhr = void 0 !== a.ActiveXObject ? function () { 3194 return !this.isLocal && /^(get|post|head|put|delete|options)$/i.test(this.t
3194ype) && Zc() || $c(); 3195 } : Zc; 3196 var Wc = 0, 3197 Xc = {}, 3198 Yc = m.ajaxSettings.xhr(); 3199 a.attachEvent && a.attachEvent("onunload", function () { 3200 for (var a in Xc) Xc[a](void 0, !0); 3201 }), k.cors = !!Yc && "withCredentials" in Yc, Yc = k.ajax = !!Yc, Yc && m.ajaxTransport(function (a) { 3202 if (!a.crossDomain || k.cors) { 3203 var b; 3204 return { 3205 send: function (c, d) { 3206 var e, 3207 f = a.xhr(), 3208 g = ++Wc; 3209 if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields) for (e in a.xhrFields) f[e] = a.xhrFields[e]; 3210 a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest"); 3211 for (e in c) void 0 !== c[e] && f.setRequestHeader(e, c[e] + ""); 3212 f.send(a.hasContent && a.data || null), b = function (c, e) { 3213 var h, i, j; 3214 if (b && (e || 4 === f.readyState)) if (delete Xc[g], b = void 0, f.onreadystatechange = m.noop, e) 4 !== f.readyState && f.abort();else { 3215 j = {}, h = f.status, "string" == typeof f.responseText && (j.text = f.responseText); 3216 try { 3217 i = f.statusText; 3218 } catch (k) { 3219 i = ""; 3220 } 3221 h || !a.isLocal || a.crossDomain ? 1223 === h && (h = 204) : h = j.text ? 200 : 404; 3222 } 3223 j && d(h, i, j, f.getAllResponseHeaders()); 3224 }, a.async ? 4 === f.readyState ? setTimeout(b) : f.onreadystatechange = Xc[g] = b : b(); 3225 }, 3226 abort: function () { 3227 b && b(void 0, !0); 3228 } 3229 }; 3230 } 3231 }); 3232 function Zc() { 3233 try { 3234 return new a.XMLHttpRequest(); 3235 } catch (b) {} 3236 } 3237 function $c() { 3238 try { 3239 return new a.ActiveXObject("Microsoft.XMLHTTP"); 3240 } catch (b) {} 3241 } 3242 m.ajaxSetup({ 3243 accepts: { 3244 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 3245 }, 3246 contents: { 3247 script: /(?:java|ecma)script/ 3248 }, 3249 converters: { 3250 "text script": function (a) { 3251 return m.globalEval(a), a; 3252 } 3253 } 3254 }), m.ajaxPrefilter("script", function (a) { 3255 void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET", a.global = !1); 3256 }), m.ajaxTransport("script", function (a) { 3257 if (a.crossDomain) { 3258 var b, 3259 c = y.head || m("head")[0] || y.documentElement; 3260 return { 3261 send: function (d, e) { 3262 b = y.createElement("script"), b.async = !0, a.scriptCharset && (b.charset = a.scriptCharset), b.src = a.url, b.onload = b.onreadystatechange = function (a, c) { 3263 (c || !b.readyState || /loaded|complete/.test(b.readyState)) && (b.onload = b.onreadystatechange = null, b.parentNode && b.parentNode.removeChild(b), b = null, c || e(200, "success")); 3264 }, c.insertBefore(b, c.firstChild); 3265 }, 3266 abort: function () { 3267 b && b.onload(void 0, !0); 3268 } 3269 }; 3270 } 3271 }); 3272 var _c = [], 3273 ad = /(=)\?(?=&|$)|\?\?/; 3274 m.ajaxSetup({ 3275 jsonp: "callback", 3276 jsonpCallback: function () { 3277 var a = _c.pop() || m.expando + "_" + vc++; 3278 return this[a] = !0, a; 3279 } 3280 }), m.ajaxPrefilter("json jsonp", function (b, c, d) { 3281 var e, 3282 f, 3283 g, 3284 h = b.jsonp !== !1 && (ad.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && ad.test(b.data) && "data"); 3285 return h || "jsonp" === b.dataTypes[0] ? (e = b.jsonpCallback = m.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, h ? b[h] = b[h].replace(ad, "$1" + e) : b.jsonp !== !1 && (b.url += (wc.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), b.converters["script json"] = function () { 3286 return g || m.error(e + " was not called"), g[0]; 3287 }, b.dataTypes[0] = "json", f = a[e], a[e] = function () { 3288 g = arguments; 3289 }, d.always(function () { 3290 a[e] = f, b[e] && (b.jsonpCallback = c.jsonpCallback, _c.push(e)), g && m.isFunction(f) && f(g[0]), g = f = void 0; 3291 }), "script") : void 0; 3292 }), m.parseHTML = function (a, b, c) { 3293 if (!a || "string" != typeof a) return null; 3294 "boolean" == typeof b && (c = b, b = !1), b = b || y; 3295 var d = u.exec(a), 3296 e = !c && []; 3297 return d ? [b.createElement(d[1])] : (d = m.buildFragment([a], b, e), e && e.length && m(e).remove(), m.merge([], d.childNodes)); 3298 }; 3299 var bd = m.fn.load; 3300 m.fn.load = function (a, b, c) { 3301 if ("string" != typeof a && bd) return bd.apply(this, arguments); 3302 var d, 3303 e, 3304 f, 3305 g = this, 3306 h = a.indexOf(" "); 3307 return h >= 0 && (d = m.trim(a.slice(h, a.length)), a = a.slice(0, h)), m.isFunction(b) ? (c = b, b = void 0) : b && "object" == typeof b && (f = "POST"), g.length > 0 && m.ajax({ 3308 url: a, 3309 type: f, 3310 dataType: "html", 3311 data: b 3312 }).done(function (a) { 3313 e = arguments, g.html(d ? m("<div>").append(m.parseHTML(a)).find(d) : a); 3314 }).complete(c && function (a, b) { 3315 g.each(c, e || [a.responseText, b, a]); 3316 }), this; 3317 }, m.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (a, b) { 3318 m.fn[b] = function (a) { 3319 return this.on(b, a); 3320 }; 3321 }), m.expr.filters.animated = function (a) { 3322 return m.grep(m.timers, function (b) { 3323 return a === b.elem; 3324 }).length; 3325 }; 3326 var cd = a.document.documentElement; 3327 function dd(a) { 3328 return m.isWindow(a) ? a : 9 === a.nodeType ? a.defaultView || a.parentWindow : !1; 3329 } 3330 m.offset = { 3331 setOffset: function (a, b, c) { 3332 var d, 3333 e, 3334 f, 3335 g, 3336 h, 3337 i, 3338 j, 3339 k = m.css(a, "position"), 3340 l = m(a), 3341 n = {}; 3342 "static" === k && (a.style.position = "relative"), h = l.offset(), f = m.css(a, "top"), i = m.css(a, "left"), j = ("absolute" === k || "fixed" === k) && m.inArray("auto", [f, i]) > -1, j ? (d = l.position(), g = d.top, e = d.left) : (g = parseFloat(f) || 0, e = parseFloat(i) || 0), m.isFunction(b) && (b = b.call(a, c, h)), null != b.top && (n.top = b.top - h.top + g), null != b.left && (n.left = b.left - h.left + e), "using" in b ? b.using.call(a, n) : l.css(n); 3343 } 3344 }, m.fn.extend({ 3345 offset: function (a) {
3346 if (arguments.length) return void 0 === a ? this : this.each(function (b) { 3347 m.offset.setOffset(this, a, b); 3348 }); 3349 var b, 3350 c, 3351 d = { 3352 top: 0, 3353 left: 0 3354 }, 3355 e = this[0], 3356 f = e && e.ownerDocument; 3357 if (f) return b = f.documentElement, m.contains(b, e) ? (typeof e.getBoundingClientRect !== K && (d = e.getBoundingClientRect()), c = dd(f), { 3358 top: d.top + (c.pageYOffset || b.scrollTop) - (b.clientTop || 0), 3359 left: d.left + (c.pageXOffset || b.scrollLeft) - (b.clientLeft || 0) 3360 }) : d; 3361 }, 3362 position: function () { 3363 if (this[0]) { 3364 var a, 3365 b, 3366 c = { 3367 top: 0, 3368 left: 0 3369 }, 3370 d = this[0]; 3371 return "fixed" === m.css(d, "position") ? b = d.getBoundingClientRect() : (a = this.offsetParent(), b = this.offset(), m.nodeName(a[0], "html") || (c = a.offset()), c.top += m.css(a[0], "borderTopWidth", !0), c.left += m.css(a[0], "borderLeftWidth", !0)), { 3372 top: b.top - c.top - m.css(d, "marginTop", !0), 3373 left: b.left - c.left - m.css(d, "marginLeft", !0) 3374 }; 3375 } 3376 }, 3377 offsetParent: function () { 3378 return this.map(function () { 3379 var a = this.offsetParent || cd; 3380 while (a && !m.nodeName(a, "html") && "static" === m.css(a, "position")) a = a.offsetParent; 3381 return a || cd; 3382 }); 3383 } 3384 }), m.each({ 3385 scrollLeft: "pageXOffset", 3386 scrollTop: "pageYOffset" 3387 }, function (a, b) { 3388 var c = /Y/.test(b); 3389 m.fn[a] = function (d) { 3390 return V(this, function (a, d, e) { 3391 var f = dd(a); 3392 return void 0 === e ? f ? b in f ? f[b] : f.document.documentElement[d] : a[d] : void (f ? f.scrollTo(c ? m(f).scrollLeft() : e, c ? e : m(f).scrollTop()) : a[d] = e); 3393 }, a, d, arguments.length, null); 3394 }; 3395 }), m.each(["top", "left"], function (a, b) { 3396 m.cssHooks[b] = Lb(k.pixelPosition, function (a, c) { 3397 return c ? (c = Jb(a, b), Hb.test(c) ? m(a).position()[b] + "px" : c) : void 0; 3398 }); 3399 }), m.each({ 3400 Height: "height", 3401 Width: "width" 3402 }, function (a, b) { 3403 m.each({ 3404 padding: "inner" + a, 3405 content: b, 3406 "": "outer" + a 3407 }, function (c, d) { 3408 m.fn[d] = function (d, e) { 3409 var f = arguments.length && (c || "boolean" != typeof d), 3410 g = c || (d === !0 || e === !0 ? "margin" : "border"); 3411 return V(this, function (b, c, d) { 3412 var e; 3413 return m.isWindow(b) ? b.document.documentElement["client" + a] : 9 === b.nodeType ? (e = b.documentElement, Math.max(b.body["scroll" + a], e["scroll" + a], b.body["offset" + a], e["offset" + a], e["client" + a])) : void 0 === d ? m.css(b, c, g) : m.style(b, c, d, g); 3414 }, b, f ? d : void 0, f, null); 3415 }; 3416 }); 3417 }), m.fn.size = function () { 3418 return this.length; 3419 }, m.fn.andSelf = m.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function () { 3420 return m; 3421 }); 3422 var ed = a.jQuery, 3423 fd = a.$; 3424 return m.noConflict = function (b) { 3425 return a.$ === m && (a.$ = fd), b && a.jQuery === m && (a.jQuery = ed), m; 3426 }, typeof b === K && (a.jQuery = a.$ = m), m; 3427}); 3428 3429/* 3430 _ _ _ _ 3431 ___| (_) ___| | __ (_)___ 3432/ __| | |/ __| |/ / | / __| 3433\__ \ | | (__| < _ | \__ \ 3434|___/_|_|\___|_|\_(_)/ |___/ 3435 |__/ 3436 3437 Version: 1.6.0 3438 Author: Ken Wheeler 3439 Website: http://kenwheeler.github.io 3440 Docs: http://kenwheeler.github.io/slick 3441 Repo: http://github.com/kenwheeler/slick 3442 Issues: http://github.com/kenwheeler/slick/issues 3443 3444 */ 3445!function (a) { 3446 "use strict"; 3447 3448 "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jQuery); 3449}(function (a) { 3450 "use strict"; 3451 3452 var b = window.Slick || {}; 3453 b = function () { 3454 function c(c, d) { 3455 var f, 3456 e = this; 3457 e.defaults = { 3458 accessibility: !0, 3459 adaptiveHeight: !1, 3460 appendArrows: a(c), 3461 appendDots: a(c), 3462 arrows: !0, 3463 asNavFor: null, 3464 prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>', 3465 nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>', 3466 autoplay: !1, 3467 autoplaySpeed: 3e3, 3468 centerMode: !1, 3469 centerPadding: "50px", 3470 cssEase: "ease", 3471 customPaging: function (b, c) { 3472 return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c + 1); 3473 }, 3474 dots: !1, 3475 dotsClass: "slick-dots", 3476 draggable: !0, 3477 easing: "linear", 3478 edgeFriction: .35, 3479 fade: !1, 3480 focusOnSelect: !1, 3481 infinite: !0, 3482 initialSlide: 0, 3483 lazyLoad: "ondemand", 3484 mobileFirst: !1, 3485 pauseOnHover: !0, 3486 pauseOnFocus: !0, 3487 pauseOnDotsHover: !1, 3488 respondTo: "window", 3489 responsive: null, 3490 rows: 1, 3491 rtl: !1, 3492 slide: "", 3493 slidesPerRow: 1, 3494 slidesToShow: 1, 3495 slidesToScroll: 1, 3496 speed: 500, 3497 swipe: !0, 3498 swipeToSlide: !1, 3499 touchMove: !0, 3500 touchThreshold: 5, 3501 useCSS: !0, 3502 useTransform: !0, 3503 variableWidth: !1, 3504 vertical: !1, 3505 verticalSwiping: !1, 3506 waitForAnimate: !0, 3507 zIndex: 1e3 3508 }, e.initials = { 3509 animating: !1, 3510 dragging: !1, 3511 autoPlayTimer: null, 3512 currentDirection: 0, 3513 currentLeft: null, 3514 currentSlide: 0, 3515 direction: 1, 3516 $dots: null, 3517 listWidth: null, 3518 listHeight: null, 3519 loadIndex: 0, 3520 $nextArrow: null, 3521 $prevArrow: null, 3522 slideCount: null, 3523 slideWidth: null, 3524 $slideTrack: null, 3525 $slides: null, 3526 sliding: !1, 3527 slideOffset: 0, 3528 swipeLeft: null, 3529 $list: null, 3530 touchObject: {}, 3531 transformsEnabled: !1, 3532 unslicked: !1 3533 }, a.extend(e, e.initials), e.activeBreakpoint = null, e.animType = null, e.animProp = null, e.breakpoints = [], e.breakpointSettings = [], e.cssTransitions = !1, e.focussed = !1, e.interrupted = !1, e.hidden = "hidden", e.paused = !0, e.positionProp = null, e.respondTo = null, e.rowCount = 1, e.shouldClick = !0, e.$slider = a(c), e.$slidesCache = null, e.transformType = null, e.transitionType = null, e.visibilityChange = "visibilitychange", e.windowWidth = 0, e.
vendor: 7,515 bytes, lines 3533-3635
3533windowTimer = null, f = a(c).data("slick") || {}, e.options = a.extend({}, e.defaults, d, f), e.currentSlide = e.options.initialSlide, e.originalSettings = e.options, "undefined" != typeof document.mozHidden ? (e.hidden = "mozHidden", e.visibilityChange = "mozvisibilitychange") : "undefined" != typeof document.webkitHidden && (e.hidden = "webkitHidden", e.visibilityChange = "webkitvisibilitychange"), e.autoPlay = a.proxy(e.autoPlay, e), e.autoPlayClear = a.proxy(e.autoPlayClear, e), e.autoPlayIterator = a.proxy(e.autoPlayIterator, e), e.changeSlide = a.proxy(e.changeSlide, e), e.clickHandler = a.proxy(e.clickHandler, e), e.selectHandler = a.proxy(e.selectHandler, e), e.setPosition = a.proxy(e.setPosition, e), e.swipeHandler = a.proxy(e.swipeHandler, e), e.dragHandler = a.proxy(e.dragHandler, e), e.keyHandler = a.proxy(e.keyHandler, e), e.instanceUid = b++, e.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, e.registerBreakpoints(), e.init(!0); 3534 } 3535 var b = 0; 3536 return c; 3537 }(), b.prototype.activateADA = function () { 3538 var a = this; 3539 a.$slideTrack.find(".slick-active").attr({ 3540 "aria-hidden": "false" 3541 }).find("a, input, button, select").attr({ 3542 tabindex: "0" 3543 }); 3544 }, b.prototype.addSlide = b.prototype.slickAdd = function (b, c, d) { 3545 var e = this; 3546 if ("boolean" == typeof c) d = c, c = null;else if (0 > c || c >= e.slideCount) return !1; 3547 e.unload(), "number" == typeof c ? 0 === c && 0 === e.$slides.length ? a(b).appendTo(e.$slideTrack) : d ? a(b).insertBefore(e.$slides.eq(c)) : a(b).insertAfter(e.$slides.eq(c)) : d === !0 ? a(b).prependTo(e.$slideTrack) : a(b).appendTo(e.$slideTrack), e.$slides = e.$slideTrack.children(this.options.slide), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.append(e.$slides), e.$slides.each(function (b, c) { 3548 a(c).attr("data-slick-index", b); 3549 }), e.$slidesCache = e.$slides, e.reinit(); 3550 }, b.prototype.animateHeight = function () { 3551 var a = this; 3552 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 3553 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 3554 a.$list.animate({ 3555 height: b 3556 }, a.options.speed); 3557 } 3558 }, b.prototype.animateSlide = function (b, c) { 3559 var d = {}, 3560 e = this; 3561 e.animateHeight(), e.options.rtl === !0 && e.options.vertical === !1 && (b = -b), e.transformsEnabled === !1 ? e.options.vertical === !1 ? e.$slideTrack.animate({ 3562 left: b 3563 }, e.options.speed, e.options.easing, c) : e.$slideTrack.animate({ 3564 top: b 3565 }, e.options.speed, e.options.easing, c) : e.cssTransitions === !1 ? (e.options.rtl === !0 && (e.currentLeft = -e.currentLeft), a({ 3566 animStart: e.currentLeft 3567 }).animate({ 3568 animStart: b 3569 }, { 3570 duration: e.options.speed, 3571 easing: e.options.easing, 3572 step: function (a) { 3573 a = Math.ceil(a), e.options.vertical === !1 ? (d[e.animType] = "translate(" + a + "px, 0px)", e.$slideTrack.css(d)) : (d[e.animType] = "translate(0px," + a + "px)", e.$slideTrack.css(d)); 3574 }, 3575 complete: function () { 3576 c && c.call(); 3577 } 3578 })) : (e.applyTransition(), b = Math.ceil(b), e.options.vertical === !1 ? d[e.animType] = "translate3d(" + b + "px, 0px, 0px)" : d[e.animType] = "translate3d(0px," + b + "px, 0px)", e.$slideTrack.css(d), c && setTimeout(function () { 3579 e.disableTransition(), c.call(); 3580 }, e.options.speed)); 3581 }, b.prototype.getNavTarget = function () { 3582 var b = this, 3583 c = b.options.asNavFor; 3584 return c && null !== c && (c = a(c).not(b.$slider)), c; 3585 }, b.prototype.asNavFor = function (b) { 3586 var c = this, 3587 d = c.getNavTarget(); 3588 null !== d && "object" == typeof d && d.each(function () { 3589 var c = a(this).slick("getSlick"); 3590 c.unslicked || c.slideHandler(b, !0); 3591 }); 3592 }, b.prototype.applyTransition = function (a) { 3593 var b = this, 3594 c = {}; 3595 b.options.fade === !1 ? c[b.transitionType] = b.transformType + " " + b.options.speed + "ms " + b.options.cssEase : c[b.transitionType] = "opacity " + b.options.speed + "ms " + b.options.cssEase, b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c); 3596 }, b.prototype.autoPlay = function () { 3597 var a = this; 3598 a.autoPlayClear(), a.slideCount > a.options.slidesToShow && (a.autoPlayTimer = setInterval(a.autoPlayIterator, a.options.autoplaySpeed)); 3599 }, b.prototype.autoPlayClear = function () { 3600 var a = this; 3601 a.autoPlayTimer && clearInterval(a.autoPlayTimer); 3602 }, b.prototype.autoPlayIterator = function () { 3603 var a = this, 3604 b = a.currentSlide + a.options.slidesToScroll; 3605 a.paused || a.interrupted || a.focussed || (a.options.infinite === !1 && (1 === a.direction && a.currentSlide + 1 === a.slideCount - 1 ? a.direction = 0 : 0 === a.direction && (b = a.currentSlide - a.options.slidesToScroll, a.currentSlide - 1 === 0 && (a.direction = 1))), a.slideHandler(b)); 3606 }, b.prototype.buildArrows = function () { 3607 var b = this; 3608 b.options.arrows === !0 && (b.$prevArrow = a(b.options.prevArrow).addClass("slick-arrow"), b.$nextArrow = a(b.options.nextArrow).addClass("slick-arrow"), b.slideCount > b.options.slidesToShow ? (b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.prependTo(b.options.appendArrows), b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.appendTo(b.options.appendArrows), b.options.infinite !== !0 && b.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({ 3609 "aria-disabled": "true", 3610 tabindex: "-1" 3611 })); 3612 }, b.prototype.buildDots = function () { 3613 var c, 3614 d, 3615 b = this; 3616 if (b.options.dots === !0 && b.slideCount > b.options.slidesToShow) { 3617 for (b.$slider.addClass("slick-dotted"), d = a("<ul />").addClass(b.options.dotsClass), c = 0; c <= b.getDotCount(); c += 1) d.append(a("<li />").append(b.options.customPaging.call(this, b, c))); 3618 b.$dots = d.appendTo(b.options.appendDots), b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden", "false"); 3619 } 3620 }, b.prototype.buildOut = function () { 3621 var b = this; 3622 b.$slides = b.$slider.children(b.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), b.slideCount = b.$slides.length, b.$slides.each(function (b, c) { 3623 a(c).attr("data-slick-index", b).data("originalStyling", a(c).attr("style") || ""); 3624 }), b.$slider.addClass("slick-slider"), b.$slideTrack = 0 === b.slideCount ? a('<div class="slick-track"/>').appendTo(b.$slider) : b.$slides.wrapAll('<div class="slick-track"/>').parent(), b.$list = b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(), b.$slideTrack.css("opacity", 0), (b.options.centerMode === !0 || b.options.swipeToSlide === !0) && (b.options.slidesToScroll = 1), a("img[data-lazy]", b.$slider).not("[src]").addClass("slick-loading"), b.setupInfinite(), b.buildArrows(), b.buildDots(), b.updateDots(), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.options.draggable === !0 && b.$list.addClass("draggable"); 3625 }, b.prototype.buildRows = function () { 3626 var b, 3627 c, 3628 d, 3629 e, 3630 f, 3631 g, 3632 h, 3633 a = this; 3634 if (e = document.createDocumentFragment(), g = a.$slider.children(), a.options.rows > 1) { 3635 for (h = a.options.slidesPerRow * a.options.rows, f = Math.
vendor: 4,014 bytes, lines 3635-3699
3635ceil(g.length / h), b = 0; f > b; b++) { 3636 var i = document.createElement("div"); 3637 for (c = 0; c < a.options.rows; c++) { 3638 var j = document.createElement("div"); 3639 for (d = 0; d < a.options.slidesPerRow; d++) { 3640 var k = b * h + (c * a.options.slidesPerRow + d); 3641 g.get(k) && j.appendChild(g.get(k)); 3642 } 3643 i.appendChild(j); 3644 } 3645 e.appendChild(i); 3646 } 3647 a.$slider.empty().append(e), a.$slider.children().children().children().css({ 3648 width: 100 / a.options.slidesPerRow + "%", 3649 display: "inline-block" 3650 }); 3651 } 3652 }, b.prototype.checkResponsive = function (b, c) { 3653 var e, 3654 f, 3655 g, 3656 d = this, 3657 h = !1, 3658 i = d.$slider.width(), 3659 j = window.innerWidth || a(window).width(); 3660 if ("window" === d.respondTo ? g = j : "slider" === d.respondTo ? g = i : "min" === d.respondTo && (g = Math.min(j, i)), d.options.responsive && d.options.responsive.length && null !== d.options.responsive) { 3661 f = null; 3662 for (e in d.breakpoints) d.breakpoints.hasOwnProperty(e) && (d.originalSettings.mobileFirst === !1 ? g < d.breakpoints[e] && (f = d.breakpoints[e]) : g > d.breakpoints[e] && (f = d.breakpoints[e])); 3663 null !== f ? null !== d.activeBreakpoint ? (f !== d.activeBreakpoint || c) && (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : null !== d.activeBreakpoint && (d.activeBreakpoint = null, d.options = d.originalSettings, b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b), h = f), b || h === !1 || d.$slider.trigger("breakpoint", [d, h]); 3664 } 3665 }, b.prototype.changeSlide = function (b, c) { 3666 var f, 3667 g, 3668 h, 3669 d = this, 3670 e = a(b.currentTarget); 3671 switch (e.is("a") && b.preventDefault(), e.is("li") || (e = e.closest("li")), h = d.slideCount % d.options.slidesToScroll !== 0, f = h ? 0 : (d.slideCount - d.currentSlide) % d.options.slidesToScroll, b.data.message) { 3672 case "previous": 3673 g = 0 === f ? d.options.slidesToScroll : d.options.slidesToShow - f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide - g, !1, c); 3674 break; 3675 case "next": 3676 g = 0 === f ? d.options.slidesToScroll : f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide + g, !1, c); 3677 break; 3678 case "index": 3679 var i = 0 === b.data.index ? 0 : b.data.index || e.index() * d.options.slidesToScroll; 3680 d.slideHandler(d.checkNavigable(i), !1, c), e.children().trigger("focus"); 3681 break; 3682 default: 3683 return; 3684 } 3685 }, b.prototype.checkNavigable = function (a) { 3686 var c, 3687 d, 3688 b = this; 3689 if (c = b.getNavigableIndexes(), d = 0, a > c[c.length - 1]) a = c[c.length - 1];else for (var e in c) { 3690 if (a < c[e]) { 3691 a = d; 3692 break; 3693 } 3694 d = c[e]; 3695 } 3696 return a; 3697 }, b.prototype.cleanUpEvents = function () { 3698 var b = this; 3699 b.options.dots && null !== b.$dots && a("li", b.$dots).off("click.slick", b.changeSlide).off("mouseenter.slick", a.proxy(b.interrupt, b, !0)).off("mouseleave.slick", a.proxy(b.interrupt, b, !1)), b.$slider.off("focus.slick blur.slick"), b.options.arrows === !0 && b.slideCount > b.options.slidesToShow && (b.$prevArrow && b.$prevArrow.off("click.slick", b.changeSlide), b.$nextArrow && b.$nextArrow.off("click.slick", b.changeSlide)), b.$list.off("touchstart.slick mousedown.slick", b.swipeHandler), b.$list.off("touchmove.slick mousemove.slick", b.swipeHandler), b.$list.off("touchend.slick mouseup.slick", b.swipeHandler), b.$list.off("touchcancel.slick mouseleave.
3699slick", b.swipeHandler), b.$list.off("click.slick", b.clickHandler), a(document).off(b.visibilityChange, b.visibility), b.cleanUpSlideEvents(), b.options.accessibility === !0 && b.$list.off("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().off("click.slick", b.selectHandler), a(window).off("orientationchange.slick.slick-" + b.instanceUid, b.orientationChange), a(window).off("resize.slick.slick-" + b.instanceUid, b.resize), a("[draggable!=true]", b.$slideTrack).off("dragstart", b.preventDefault), a(window).off("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).off("ready.slick.slick-" + b.instanceUid, b.setPosition); 3700 }, b.prototype.cleanUpSlideEvents = function () { 3701 var b = this; 3702 b.$list.off("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.off("mouseleave.slick", a.proxy(b.interrupt, b, !1)); 3703 }, b.prototype.cleanUpRows = function () { 3704 var b, 3705 a = this; 3706 a.options.rows > 1 && (b = a.$slides.children().children(), b.removeAttr("style"), a.$slider.empty().append(b)); 3707 }, b.prototype.clickHandler = function (a) { 3708 var b = this; 3709 b.shouldClick === !1 && (a.stopImmediatePropagation(), a.stopPropagation(), a.preventDefault()); 3710 }, b.prototype.destroy = function (b) { 3711 var c = this; 3712 c.autoPlayClear(), c.touchObject = {}, c.cleanUpEvents(), a(".slick-cloned", c.$slider).detach(), c.$dots && c.$dots.remove(), c.$prevArrow && c.$prevArrow.length && (c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.prevArrow) && c.$prevArrow.remove()), c.$nextArrow && c.$nextArrow.length && (c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.nextArrow) && c.$nextArrow.remove()), c.$slides && (c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function () { 3713 a(this).attr("style", a(this).data("originalStyling")); 3714 }), c.$slideTrack.children(this.options.slide).detach(), c.$slideTrack.detach(), c.$list.detach(), c.$slider.append(c.$slides)), c.cleanUpRows(), c.$slider.removeClass("slick-slider"), c.$slider.removeClass("slick-initialized"), c.$slider.removeClass("slick-dotted"), c.unslicked = !0, b || c.$slider.trigger("destroy", [c]); 3715 }, b.prototype.disableTransition = function (a) { 3716 var b = this, 3717 c = {}; 3718 c[b.transitionType] = "", b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c); 3719 }, b.prototype.fadeSlide = function (a, b) { 3720 var c = this; 3721 c.cssTransitions === !1 ? (c.$slides.eq(a).css({ 3722 zIndex: c.options.zIndex 3723 }), c.$slides.eq(a).animate({ 3724 opacity: 1 3725 }, c.options.speed, c.options.easing, b)) : (c.applyTransition(a), c.$slides.eq(a).css({ 3726 opacity: 1, 3727 zIndex: c.options.zIndex 3728 }), b && setTimeout(function () { 3729 c.disableTransition(a), b.call(); 3730 }, c.options.speed)); 3731 }, b.prototype.fadeSlideOut = function (a) { 3732 var b = this; 3733 b.cssTransitions === !1 ? b.$slides.eq(a).animate({ 3734 opacity: 0, 3735 zIndex: b.options.zIndex - 2 3736 }, b.options.speed, b.options.easing) : (b.applyTransition(a), b.$slides.eq(a).css({ 3737 opacity: 0, 3738 zIndex: b.options.zIndex - 2 3739 })); 3740 }, b.prototype.filterSlides = b.prototype.slickFilter = function (a) { 3741 var b = this; 3742 null !== a && (b.$slidesCache = b.$slides, b.unload(), b.$slideTrack.children(this.options.slide).detach(), b.$slidesCache.filter(a).appendTo(b.$slideTrack), b.reinit()); 3743 }, b.prototype.focusHandler = function () { 3744 var b = this; 3745 b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*:not(.slick-arrow)", function (c) { 3746 c.stopImmediatePropagation(); 3747 var d = a(this); 3748 setTimeout(function () { 3749 b.options.pauseOnFocus && (b.focussed = d.is(":focus"), b.autoPlay()); 3750 }, 0); 3751 }); 3752 }, b.prototype.getCurrent = b.prototype.slickCurrentSlide = function () { 3753 var a = this; 3754 return a.currentSlide; 3755 }, b.prototype.getDotCount = function () { 3756 var a = this, 3757 b = 0, 3758 c = 0, 3759 d = 0; 3760 if (a.options.infinite === !0) for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow;else if (a.options.centerMode === !0) d = a.slideCount;else if (a.options.asNavFor) for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow;
vendor: 5,640 bytes, lines 3760-3832
3760else d = 1 + Math.ceil((a.slideCount - a.options.slidesToShow) / a.options.slidesToScroll); 3761 return d - 1; 3762 }, b.prototype.getLeft = function (a) { 3763 var c, 3764 d, 3765 f, 3766 b = this, 3767 e = 0; 3768 return b.slideOffset = 0, d = b.$slides.first().outerHeight(!0), b.options.infinite === !0 ? (b.slideCount > b.options.slidesToShow && (b.slideOffset = b.slideWidth * b.options.slidesToShow * -1, e = d * b.options.slidesToShow * -1), b.slideCount % b.options.slidesToScroll !== 0 && a + b.options.slidesToScroll > b.slideCount && b.slideCount > b.options.slidesToShow && (a > b.slideCount ? (b.slideOffset = (b.options.slidesToShow - (a - b.slideCount)) * b.slideWidth * -1, e = (b.options.slidesToShow - (a - b.slideCount)) * d * -1) : (b.slideOffset = b.slideCount % b.options.slidesToScroll * b.slideWidth * -1, e = b.slideCount % b.options.slidesToScroll * d * -1))) : a + b.options.slidesToShow > b.slideCount && (b.slideOffset = (a + b.options.slidesToShow - b.slideCount) * b.slideWidth, e = (a + b.options.slidesToShow - b.slideCount) * d), b.slideCount <= b.options.slidesToShow && (b.slideOffset = 0, e = 0), b.options.centerMode === !0 && b.options.infinite === !0 ? b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2) - b.slideWidth : b.options.centerMode === !0 && (b.slideOffset = 0, b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2)), c = b.options.vertical === !1 ? a * b.slideWidth * -1 + b.slideOffset : a * d * -1 + e, b.options.variableWidth === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, b.options.centerMode === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow + 1), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, c += (b.$list.width() - f.outerWidth()) / 2)), c; 3769 }, b.prototype.getOption = b.prototype.slickGetOption = function (a) { 3770 var b = this; 3771 return b.options[a]; 3772 }, b.prototype.getNavigableIndexes = function () { 3773 var e, 3774 a = this, 3775 b = 0, 3776 c = 0, 3777 d = []; 3778 for (a.options.infinite === !1 ? e = a.slideCount : (b = -1 * a.options.slidesToScroll, c = -1 * a.options.slidesToScroll, e = 2 * a.slideCount); e > b;) d.push(b), b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 3779 return d; 3780 }, b.prototype.getSlick = function () { 3781 return this; 3782 }, b.prototype.getSlideCount = function () { 3783 var c, 3784 d, 3785 e, 3786 b = this; 3787 return e = b.options.centerMode === !0 ? b.slideWidth * Math.floor(b.options.slidesToShow / 2) : 0, b.options.swipeToSlide === !0 ? (b.$slideTrack.find(".slick-slide").each(function (c, f) { 3788 return f.offsetLeft - e + a(f).outerWidth() / 2 > -1 * b.swipeLeft ? (d = f, !1) : void 0; 3789 }), c = Math.abs(a(d).attr("data-slick-index") - b.currentSlide) || 1) : b.options.slidesToScroll; 3790 }, b.prototype.goTo = b.prototype.slickGoTo = function (a, b) { 3791 var c = this; 3792 c.changeSlide({ 3793 data: { 3794 message: "index", 3795 index: parseInt(a) 3796 } 3797 }, b); 3798 }, b.prototype.init = function (b) { 3799 var c = this; 3800 a(c.$slider).hasClass("slick-initialized") || (a(c.$slider).addClass("slick-initialized"), c.buildRows(), c.buildOut(), c.setProps(), c.startLoad(), c.loadSlider(), c.initializeEvents(), c.updateArrows(), c.updateDots(), c.checkResponsive(!0), c.focusHandler()), b && c.$slider.trigger("init", [c]), c.options.accessibility === !0 && c.initADA(), c.options.autoplay && (c.paused = !1, c.autoPlay()); 3801 }, b.prototype.initADA = function () { 3802 var b = this; 3803 b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({ 3804 "aria-hidden": "true", 3805 tabindex: "-1" 3806 }).find("a, input, button, select").attr({ 3807 tabindex: "-1" 3808 }), b.$slideTrack.attr("role", "listbox"), b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function (c) { 3809 a(this).attr({ 3810 role: "option", 3811 "aria-describedby": "slick-slide" + b.instanceUid + c 3812 }); 3813 }), null !== b.$dots && b.$dots.attr("role", "tablist").find("li").each(function (c) { 3814 a(this).attr({ 3815 role: "presentation", 3816 "aria-selected": "false", 3817 "aria-controls": "navigation" + b.instanceUid + c, 3818 id: "slick-slide" + b.instanceUid + c 3819 }); 3820 }).first().attr("aria-selected", "true").end().find("button").attr("role", "button").end().closest("div").attr("role", "toolbar"), b.activateADA(); 3821 }, b.prototype.initArrowEvents = function () { 3822 var a = this; 3823 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.off("click.slick").on("click.slick", { 3824 message: "previous" 3825 }, a.changeSlide), a.$nextArrow.off("click.slick").on("click.slick", { 3826 message: "next" 3827 }, a.changeSlide)); 3828 }, b.prototype.initDotEvents = function () { 3829 var b = this; 3830 b.options.dots === !0 && b.slideCount > b.options.slidesToShow && a("li", b.$dots).on("click.slick", { 3831 message: "index" 3832 }, b.changeSlide), b.options.dots === !0 && b.options.pauseOnDotsHover === !0 && a("li", b.$dots).on("mouseenter.slick", a.proxy(b.interrupt, b, !0)).on("mouseleave.
3832slick", a.proxy(b.interrupt, b, !1)); 3833 }, b.prototype.initSlideEvents = function () { 3834 var b = this; 3835 b.options.pauseOnHover && (b.$list.on("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.on("mouseleave.slick", a.proxy(b.interrupt, b, !1))); 3836 }, b.prototype.initializeEvents = function () { 3837 var b = this; 3838 b.initArrowEvents(), b.initDotEvents(), b.initSlideEvents(), b.$list.on("touchstart.slick mousedown.slick", { 3839 action: "start" 3840 }, b.swipeHandler), b.$list.on("touchmove.slick mousemove.slick", { 3841 action: "move" 3842 }, b.swipeHandler), b.$list.on("touchend.slick mouseup.slick", { 3843 action: "end" 3844 }, b.swipeHandler), b.$list.on("touchcancel.slick mouseleave.slick", { 3845 action: "end" 3846 }, b.swipeHandler), b.$list.on("click.slick", b.clickHandler), a(document).on(b.visibilityChange, a.proxy(b.visibility, b)), b.options.accessibility === !0 && b.$list.on("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), a(window).on("orientationchange.slick.slick-" + b.instanceUid, a.proxy(b.orientationChange, b)), a(window).on("resize.slick.slick-" + b.instanceUid, a.proxy(b.resize, b)), a("[draggable!=true]", b.$slideTrack).on("dragstart", b.preventDefault), a(window).on("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).on("ready.slick.slick-" + b.instanceUid, b.setPosition); 3847 }, b.prototype.initUI = function () { 3848 var a = this; 3849 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.show(), a.$nextArrow.show()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.show(); 3850 }, b.prototype.keyHandler = function (a) { 3851 var b = this; 3852 a.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === a.keyCode && b.options.accessibility === !0 ? b.changeSlide({ 3853 data: { 3854 message: b.options.rtl === !0 ? "next" : "previous" 3855 } 3856 }) : 39 === a.keyCode && b.options.accessibility === !0 && b.changeSlide({ 3857 data: { 3858 message: b.options.rtl === !0 ? "previous" : "next" 3859 } 3860 })); 3861 }, b.prototype.lazyLoad = function () { 3862 function g(c) { 3863 a("img[data-lazy]", c).each(function () { 3864 var c = a(this), 3865 d = a(this).attr("data-lazy"), 3866 e = document.createElement("img"); 3867 e.onload = function () { 3868 c.animate({ 3869 opacity: 0 3870 }, 100, function () { 3871 c.attr("src", d).animate({ 3872 opacity: 1 3873 }, 200, function () { 3874 c.removeAttr("data-lazy").removeClass("slick-loading"); 3875 }), b.$slider.trigger("lazyLoaded", [b, c, d]); 3876 }); 3877 }, e.onerror = function () { 3878 c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), b.$slider.trigger("lazyLoadError", [b, c, d]); 3879 }, e.src = d; 3880 }); 3881 } 3882 var c, 3883 d, 3884 e, 3885 f, 3886 b = this; 3887 b.options.centerMode === !0 ? b.options.infinite === !0 ? (e = b.currentSlide + (b.options.slidesToShow / 2 + 1), f = e + b.options.slidesToShow + 2) : (e = Math.max(0, b.currentSlide - (b.options.slidesToShow / 2 + 1)), f = 2 + (b.options.slidesToShow / 2 + 1) + b.currentSlide) : (e = b.options.infinite ? b.options.slidesToShow + b.currentSlide : b.currentSlide, f = Math.ceil(e + b.options.slidesToShow), b.options.fade === !0 && (e > 0 && e--, f <= b.slideCount && f++)), c = b.$slider.find(".slick-slide").slice(e, f), g(c), b.slideCount <= b.options.slidesToShow ? (d = b.$slider.find(".slick-slide"), g(d)) : b.currentSlide >= b.slideCount - b.options.slidesToShow ? (d = b.$slider.find(".slick-cloned").slice(0, b.options.slidesToShow), g(d)) : 0 === b.currentSlide && (d = b.$slider.find(".slick-cloned").slice(-1 * b.options.slidesToShow), g(d)); 3888 }, b.prototype.loadSlider = function () { 3889 var a = this; 3890 a.setPosition(), a.$slideTrack.css({ 3891 opacity: 1 3892 }), a.$slider.removeClass("slick-loading"), a.initUI(), "progressive" === a.options.lazyLoad && a.progressiveLazyLoad(); 3893 }, b.prototype.next = b.prototype.slickNext = function () { 3894 var a = this; 3895 a.changeSlide({ 3896 data: { 3897 message: "next" 3898 } 3899 }); 3900 }, b.prototype.orientationChange = function () { 3901 var a = this; 3902 a.checkResponsive(), a.setPosition(); 3903 }, b.prototype.pause = b.prototype.slickPause = function () { 3904 var a = this; 3905 a.autoPlayClear(), a.paused = !0; 3906 }, b.prototype.play = b.prototype.slickPlay = function () { 3907 var a = this; 3908 a.autoPlay(), a.options.autoplay = !0, a.paused = !1, a.focussed = !1, a.interrupted = !1; 3909 }, b.prototype.postSlide = function (a) { 3910 var b = this;
vendor: 6,883 bytes, lines 3911-4024
3911 b.unslicked || (b.$slider.trigger("afterChange", [b, a]), b.animating = !1, b.setPosition(), b.swipeLeft = null, b.options.autoplay && b.autoPlay(), b.options.accessibility === !0 && b.initADA()); 3912 }, b.prototype.prev = b.prototype.slickPrev = function () { 3913 var a = this; 3914 a.changeSlide({ 3915 data: { 3916 message: "previous" 3917 } 3918 }); 3919 }, b.prototype.preventDefault = function (a) { 3920 a.preventDefault(); 3921 }, b.prototype.progressiveLazyLoad = function (b) { 3922 b = b || 1; 3923 var e, 3924 f, 3925 g, 3926 c = this, 3927 d = a("img[data-lazy]", c.$slider); 3928 d.length ? (e = d.first(), f = e.attr("data-lazy"), g = document.createElement("img"), g.onload = function () { 3929 e.attr("src", f).removeAttr("data-lazy").removeClass("slick-loading"), c.options.adaptiveHeight === !0 && c.setPosition(), c.$slider.trigger("lazyLoaded", [c, e, f]), c.progressiveLazyLoad(); 3930 }, g.onerror = function () { 3931 3 > b ? setTimeout(function () { 3932 c.progressiveLazyLoad(b + 1); 3933 }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), c.$slider.trigger("lazyLoadError", [c, e, f]), c.progressiveLazyLoad()); 3934 }, g.src = f) : c.$slider.trigger("allImagesLoaded", [c]); 3935 }, b.prototype.refresh = function (b) { 3936 var d, 3937 e, 3938 c = this; 3939 e = c.slideCount - c.options.slidesToShow, !c.options.infinite && c.currentSlide > e && (c.currentSlide = e), c.slideCount <= c.options.slidesToShow && (c.currentSlide = 0), d = c.currentSlide, c.destroy(!0), a.extend(c, c.initials, { 3940 currentSlide: d 3941 }), c.init(), b || c.changeSlide({ 3942 data: { 3943 message: "index", 3944 index: d 3945 } 3946 }, !1); 3947 }, b.prototype.registerBreakpoints = function () { 3948 var c, 3949 d, 3950 e, 3951 b = this, 3952 f = b.options.responsive || null; 3953 if ("array" === a.type(f) && f.length) { 3954 b.respondTo = b.options.respondTo || "window"; 3955 for (c in f) if (e = b.breakpoints.length - 1, d = f[c].breakpoint, f.hasOwnProperty(c)) { 3956 for (; e >= 0;) b.breakpoints[e] && b.breakpoints[e] === d && b.breakpoints.splice(e, 1), e--; 3957 b.breakpoints.push(d), b.breakpointSettings[d] = f[c].settings; 3958 } 3959 b.breakpoints.sort(function (a, c) { 3960 return b.options.mobileFirst ? a - c : c - a; 3961 }); 3962 } 3963 }, b.prototype.reinit = function () { 3964 var b = this; 3965 b.$slides = b.$slideTrack.children(b.options.slide).addClass("slick-slide"), b.slideCount = b.$slides.length, b.currentSlide >= b.slideCount && 0 !== b.currentSlide && (b.currentSlide = b.currentSlide - b.options.slidesToScroll), b.slideCount <= b.options.slidesToShow && (b.currentSlide = 0), b.registerBreakpoints(), b.setProps(), b.setupInfinite(), b.buildArrows(), b.updateArrows(), b.initArrowEvents(), b.buildDots(), b.updateDots(), b.initDotEvents(), b.cleanUpSlideEvents(), b.initSlideEvents(), b.checkResponsive(!1, !0), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.setPosition(), b.focusHandler(), b.paused = !b.options.autoplay, b.autoPlay(), b.$slider.trigger("reInit", [b]); 3966 }, b.prototype.resize = function () { 3967 var b = this; 3968 a(window).width() !== b.windowWidth && (clearTimeout(b.windowDelay), b.windowDelay = window.setTimeout(function () { 3969 b.windowWidth = a(window).width(), b.checkResponsive(), b.unslicked || b.setPosition(); 3970 }, 50)); 3971 }, b.prototype.removeSlide = b.prototype.slickRemove = function (a, b, c) { 3972 var d = this; 3973 return "boolean" == typeof a ? (b = a, a = b === !0 ? 0 : d.slideCount - 1) : a = b === !0 ? --a : a, d.slideCount < 1 || 0 > a || a > d.slideCount - 1 ? !1 : (d.unload(), c === !0 ? d.$slideTrack.children().remove() : d.$slideTrack.children(this.options.slide).eq(a).remove(), d.$slides = d.$slideTrack.children(this.options.slide), d.$slideTrack.children(this.options.slide).detach(), d.$slideTrack.append(d.$slides), d.$slidesCache = d.$slides, void d.reinit()); 3974 }, b.prototype.setCSS = function (a) { 3975 var d, 3976 e, 3977 b = this, 3978 c = {}; 3979 b.options.rtl === !0 && (a = -a), d = "left" == b.positionProp ? Math.ceil(a) + "px" : "0px", e = "top" == b.positionProp ? Math.ceil(a) + "px" : "0px", c[b.positionProp] = a, b.transformsEnabled === !1 ? b.$slideTrack.css(c) : (c = {}, b.cssTransitions === !1 ? (c[b.animType] = "translate(" + d + ", " + e + ")", b.$slideTrack.css(c)) : (c[b.animType] = "translate3d(" + d + ", " + e + ", 0px)", b.$slideTrack.css(c))); 3980 }, b.prototype.setDimensions = function () { 3981 var a = this; 3982 a.options.vertical === !1 ? a.options.centerMode === !0 && a.$list.css({ 3983 padding: "0px " + a.options.centerPadding 3984 }) : (a.$list.height(a.$slides.first().outerHeight(!0) * a.options.slidesToShow), a.options.centerMode === !0 && a.$list.css({ 3985 padding: a.options.centerPadding + " 0px" 3986 })), a.listWidth = a.$list.width(), a.listHeight = a.$list.height(), a.options.vertical === !1 && a.options.variableWidth === !1 ? (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow), a.$slideTrack.width(Math.ceil(a.slideWidth * a.$slideTrack.children(".slick-slide").length))) : a.options.variableWidth === !0 ? a.$slideTrack.width(5e3 * a.slideCount) : (a.slideWidth = Math.ceil(a.listWidth), a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0) * a.$slideTrack.children(".slick-slide").length))); 3987 var b = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); 3988 a.options.variableWidth === !1 && a.$slideTrack.children(".slick-slide").width(a.slideWidth - b); 3989 }, b.prototype.setFade = function () { 3990 var c, 3991 b = this; 3992 b.$slides.each(function (d, e) { 3993 c = b.slideWidth * d * -1, b.options.rtl === !0 ? a(e).css({ 3994 position: "relative", 3995 right: c, 3996 top: 0, 3997 zIndex: b.options.zIndex - 2, 3998 opacity: 0 3999 }) : a(e).css({ 4000 position: "relative", 4001 left: c, 4002 top: 0, 4003 zIndex: b.options.zIndex - 2, 4004 opacity: 0 4005 }); 4006 }), b.$slides.eq(b.currentSlide).css({ 4007 zIndex: b.options.zIndex - 1, 4008 opacity: 1 4009 }); 4010 }, b.prototype.setHeight = function () { 4011 var a = this; 4012 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 4013 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 4014 a.$list.css("height", b); 4015 } 4016 }, b.prototype.setOption = b.prototype.slickSetOption = function () { 4017 var c, 4018 d, 4019 e, 4020 f, 4021 h, 4022 b = this, 4023 g = !1; 4024 if ("object" === a.type(arguments[0]) ? (e = arguments[0], g = arguments[1], h = "multiple") : "string" === a.type(arguments[0]) && (e = arguments[0], f = arguments[1], g = arguments[2], "responsive" === arguments[0] && "array" === a.type(arguments[1]) ? h
vendor: 14,724 bytes, lines 4024-4172
4024= "responsive" : "undefined" != typeof arguments[1] && (h = "single")), "single" === h) b.options[e] = f;else if ("multiple" === h) a.each(e, function (a, c) { 4025 b.options[a] = c; 4026 });else if ("responsive" === h) for (d in f) if ("array" !== a.type(b.options.responsive)) b.options.responsive = [f[d]];else { 4027 for (c = b.options.responsive.length - 1; c >= 0;) b.options.responsive[c].breakpoint === f[d].breakpoint && b.options.responsive.splice(c, 1), c--; 4028 b.options.responsive.push(f[d]); 4029 } 4030 g && (b.unload(), b.reinit()); 4031 }, b.prototype.setPosition = function () { 4032 var a = this; 4033 a.setDimensions(), a.setHeight(), a.options.fade === !1 ? a.setCSS(a.getLeft(a.currentSlide)) : a.setFade(), a.$slider.trigger("setPosition", [a]); 4034 }, b.prototype.setProps = function () { 4035 var a = this, 4036 b = document.body.style; 4037 a.positionProp = a.options.vertical === !0 ? "top" : "left", "top" === a.positionProp ? a.$slider.addClass("slick-vertical") : a.$slider.removeClass("slick-vertical"), (void 0 !== b.WebkitTransition || void 0 !== b.MozTransition || void 0 !== b.msTransition) && a.options.useCSS === !0 && (a.cssTransitions = !0), a.options.fade && ("number" == typeof a.options.zIndex ? a.options.zIndex < 3 && (a.options.zIndex = 3) : a.options.zIndex = a.defaults.zIndex), void 0 !== b.OTransform && (a.animType = "OTransform", a.transformType = "-o-transform", a.transitionType = "OTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.MozTransform && (a.animType = "MozTransform", a.transformType = "-moz-transform", a.transitionType = "MozTransition", void 0 === b.perspectiveProperty && void 0 === b.MozPerspective && (a.animType = !1)), void 0 !== b.webkitTransform && (a.animType = "webkitTransform", a.transformType = "-webkit-transform", a.transitionType = "webkitTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.msTransform && (a.animType = "msTransform", a.transformType = "-ms-transform", a.transitionType = "msTransition", void 0 === b.msTransform && (a.animType = !1)), void 0 !== b.transform && a.animType !== !1 && (a.animType = "transform", a.transformType = "transform", a.transitionType = "transition"), a.transformsEnabled = a.options.useTransform && null !== a.animType && a.animType !== !1; 4038 }, b.prototype.setSlideClasses = function (a) { 4039 var c, 4040 d, 4041 e, 4042 f, 4043 b = this; 4044 d = b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), b.$slides.eq(a).addClass("slick-current"), b.options.centerMode === !0 ? (c = Math.floor(b.options.slidesToShow / 2), b.options.infinite === !0 && (a >= c && a <= b.slideCount - 1 - c ? b.$slides.slice(a - c, a + c + 1).addClass("slick-active").attr("aria-hidden", "false") : (e = b.options.slidesToShow + a, d.slice(e - c + 1, e + c + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === a ? d.eq(d.length - 1 - b.options.slidesToShow).addClass("slick-center") : a === b.slideCount - 1 && d.eq(b.options.slidesToShow).addClass("slick-center")), b.$slides.eq(a).addClass("slick-center")) : a >= 0 && a <= b.slideCount - b.options.slidesToShow ? b.$slides.slice(a, a + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : d.length <= b.options.slidesToShow ? d.addClass("slick-active").attr("aria-hidden", "false") : (f = b.slideCount % b.options.slidesToShow, e = b.options.infinite === !0 ? b.options.slidesToShow + a : a, b.options.slidesToShow == b.options.slidesToScroll && b.slideCount - a < b.options.slidesToShow ? d.slice(e - (b.options.slidesToShow - f), e + f).addClass("slick-active").attr("aria-hidden", "false") : d.slice(e, e + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false")), "ondemand" === b.options.lazyLoad && b.lazyLoad(); 4045 }, b.prototype.setupInfinite = function () { 4046 var c, 4047 d, 4048 e, 4049 b = this; 4050 if (b.options.fade === !0 && (b.options.centerMode = !1), b.options.infinite === !0 && b.options.fade === !1 && (d = null, b.slideCount > b.options.slidesToShow)) { 4051 for (e = b.options.centerMode === !0 ? b.options.slidesToShow + 1 : b.options.slidesToShow, c = b.slideCount; c > b.slideCount - e; c -= 1) d = c - 1, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d - b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned"); 4052 for (c = 0; e > c; c += 1) d = c, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d + b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned"); 4053 b.$slideTrack.find(".slick-cloned").find("[id]").each(function () { 4054 a(this).attr("id", ""); 4055 }); 4056 } 4057 }, b.prototype.interrupt = function (a) { 4058 var b = this; 4059 a || b.autoPlay(), b.interrupted = a; 4060 }, b.prototype.selectHandler = function (b) { 4061 var c = this, 4062 d = a(b.target).is(".slick-slide") ? a(b.target) : a(b.target).parents(".slick-slide"), 4063 e = parseInt(d.attr("data-slick-index")); 4064 return e || (e = 0), c.slideCount <= c.options.slidesToShow ? (c.setSlideClasses(e), void c.asNavFor(e)) : void c.slideHandler(e); 4065 }, b.prototype.slideHandler = function (a, b, c) { 4066 var d, 4067 e, 4068 f, 4069 g, 4070 j, 4071 h = null, 4072 i = this; 4073 return b = b || !1, i.animating === !0 && i.options.waitForAnimate === !0 || i.options.fade === !0 && i.currentSlide === a || i.slideCount <= i.options.slidesToShow ? void 0 : (b === !1 && i.asNavFor(a), d = a, h = i.getLeft(d), g = i.getLeft(i.currentSlide), i.currentLeft = null === i.swipeLeft ? g : i.swipeLeft, i.options.infinite === !1 && i.options.centerMode === !1 && (0 > a || a > i.getDotCount() * i.options.slidesToScroll) ? void (i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function () { 4074 i.postSlide(d); 4075 }) : i.postSlide(d))) : i.options.infinite === !1 && i.options.centerMode === !0 && (0 > a || a > i.slideCount - i.options.slidesToScroll) ? void (i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function () { 4076 i.postSlide(d); 4077 }) : i.postSlide(d))) : (i.options.autoplay && clearInterval(i.autoPlayTimer), e = 0 > d ? i.slideCount % i.options.slidesToScroll !== 0 ? i.slideCount - i.slideCount % i.options.slidesToScroll : i.slideCount + d : d >= i.slideCount ? i.slideCount % i.options.slidesToScroll !== 0 ? 0 : d - i.slideCount : d, i.animating = !0, i.$slider.trigger("beforeChange", [i, i.currentSlide, e]), f = i.currentSlide, i.currentSlide = e, i.setSlideClasses(i.currentSlide), i.options.asNavFor && (j = i.getNavTarget(), j = j.slick("getSlick"), j.slideCount <= j.options.slidesToShow && j.setSlideClasses(i.currentSlide)), i.updateDots(), i.updateArrows(), i.options.fade === !0 ? (c !== !0 ? (i.fadeSlideOut(f), i.fadeSlide(e, function () { 4078 i.postSlide(e); 4079 })) : i.postSlide(e), void i.animateHeight()) : void (c !== !0 ? i.animateSlide(h, function () { 4080 i.postSlide(e); 4081 }) : i.postSlide(e)))); 4082 }, b.prototype.startLoad = function () { 4083 var a = this; 4084 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.hide(), a.$nextArrow.hide()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.hide(), a.$slider.addClass("slick-loading"); 4085 }, b.prototype.swipeDirection = function () { 4086 var a, 4087 b, 4088 c, 4089 d, 4090 e = this; 4091 return a = e.touchObject.startX - e.touchObject.curX, b = e.touchObject.startY - e.touchObject.curY, c = Math.atan2(b, a), d = Math.round(180 * c / Math.PI), 0 > d && (d = 360 - Math.abs(d)), 45 >= d && d >= 0 ? e.options.rtl === !1 ? "left" : "right" : 360 >= d && d >= 315 ? e.options.rtl === !1 ? "left" : "right" : d >= 135 && 225 >= d ? e.options.rtl === !1 ? "right" : "left" : e.options.verticalSwiping === !0 ? d >= 35 && 135 >= d ? "down" : "up" : "vertical"; 4092 }, b.prototype.swipeEnd = function (a) { 4093 var c, 4094 d, 4095 b = this; 4096 if (b.dragging = !1, b.interrupted = !1, b.shouldClick = b.touchObject.swipeLength > 10 ? !1 : !0, void 0 === b.touchObject.curX) return !1; 4097 if (b.touchObject.edgeHit === !0 && b.$slider.trigger("edge", [b, b.swipeDirection()]), b.touchObject.swipeLength >= b.touchObject.minSwipe) { 4098 switch (d = b.swipeDirection()) { 4099 case "left": 4100 case "down": 4101 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide + b.getSlideCount()) : b.currentSlide + b.getSlideCount(), b.currentDirection = 0; 4102 break; 4103 case "right": 4104 case "up": 4105 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide - b.getSlideCount()) : b.currentSlide - b.getSlideCount(), b.currentDirection = 1; 4106 } 4107 "vertical" != d && (b.slideHandler(c), b.touchObject = {}, b.$slider.trigger("swipe", [b, d])); 4108 } else b.touchObject.startX !== b.touchObject.curX && (b.slideHandler(b.currentSlide), b.touchObject = {}); 4109 }, b.prototype.swipeHandler = function (a) { 4110 var b = this; 4111 if (!(b.options.swipe === !1 || "ontouchend" in document && b.options.swipe === !1 || b.options.draggable === !1 && -1 !== a.type.indexOf("mouse"))) switch (b.touchObject.fingerCount = a.originalEvent && void 0 !== a.originalEvent.touches ? a.originalEvent.touches.length : 1, b.touchObject.minSwipe = b.listWidth / b.options.touchThreshold, b.options.verticalSwiping === !0 && (b.touchObject.minSwipe = b.listHeight / b.options.touchThreshold), a.data.action) { 4112 case "start": 4113 b.swipeStart(a); 4114 break; 4115 case "move": 4116 b.swipeMove(a); 4117 break; 4118 case "end": 4119 b.swipeEnd(a); 4120 } 4121 }, b.prototype.swipeMove = function (a) { 4122 var d, 4123 e, 4124 f, 4125 g, 4126 h, 4127 b = this; 4128 return h = void 0 !== a.originalEvent ? a.originalEvent.touches : null, !b.dragging || h && 1 !== h.length ? !1 : (d = b.getLeft(b.currentSlide), b.touchObject.curX = void 0 !== h ? h[0].pageX : a.clientX, b.touchObject.curY = void 0 !== h ? h[0].pageY : a.clientY, b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curX - b.touchObject.startX, 2))), b.options.verticalSwiping === !0 && (b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curY - b.touchObject.startY, 2)))), e = b.swipeDirection(), "vertical" !== e ? (void 0 !== a.originalEvent && b.touchObject.swipeLength > 4 && a.preventDefault(), g = (b.options.rtl === !1 ? 1 : -1) * (b.touchObject.curX > b.touchObject.startX ? 1 : -1), b.options.verticalSwiping === !0 && (g = b.touchObject.curY > b.touchObject.startY ? 1 : -1), f = b.touchObject.swipeLength, b.touchObject.edgeHit = !1, b.options.infinite === !1 && (0 === b.currentSlide && "right" === e || b.currentSlide >= b.getDotCount() && "left" === e) && (f = b.touchObject.swipeLength * b.options.edgeFriction, b.touchObject.edgeHit = !0), b.options.vertical === !1 ? b.swipeLeft = d + f * g : b.swipeLeft = d + f * (b.$list.height() / b.listWidth) * g, b.options.verticalSwiping === !0 && (b.swipeLeft = d + f * g), b.options.fade === !0 || b.options.touchMove === !1 ? !1 : b.animating === !0 ? (b.swipeLeft = null, !1) : void b.setCSS(b.swipeLeft)) : void 0); 4129 }, b.prototype.swipeStart = function (a) { 4130 var c, 4131 b = this; 4132 return b.interrupted = !0, 1 !== b.touchObject.fingerCount || b.slideCount <= b.options.slidesToShow ? (b.touchObject = {}, !1) : (void 0 !== a.originalEvent && void 0 !== a.originalEvent.touches && (c = a.originalEvent.touches[0]), b.touchObject.startX = b.touchObject.curX = void 0 !== c ? c.pageX : a.clientX, b.touchObject.startY = b.touchObject.curY = void 0 !== c ? c.pageY : a.clientY, void (b.dragging = !0)); 4133 }, b.prototype.unfilterSlides = b.prototype.slickUnfilter = function () { 4134 var a = this; 4135 null !== a.$slidesCache && (a.unload(), a.$slideTrack.children(this.options.slide).detach(), a.$slidesCache.appendTo(a.$slideTrack), a.reinit()); 4136 }, b.prototype.unload = function () { 4137 var b = this; 4138 a(".slick-cloned", b.$slider).remove(), b.$dots && b.$dots.remove(), b.$prevArrow && b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.remove(), b.$nextArrow && b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.remove(), b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", ""); 4139 }, b.prototype.unslick = function (a) { 4140 var b = this; 4141 b.$slider.trigger("unslick", [b, a]), b.destroy(); 4142 }, b.prototype.updateArrows = function () { 4143 var b, 4144 a = this; 4145 b = Math.floor(a.options.slidesToShow / 2), a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && !a.options.infinite && (a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === a.currentSlide ? (a.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - a.options.slidesToShow && a.options.centerMode === !1 ? (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - 1 && a.options.centerMode === !0 && (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))); 4146 }, b.prototype.updateDots = function () { 4147 var a = this; 4148 null !== a.$dots && (a.$dots.find("li").removeClass("slick-active").attr("aria-hidden", "true"), a.$dots.find("li").eq(Math.floor(a.currentSlide / a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden", "false")); 4149 }, b.prototype.visibility = function () { 4150 var a = this; 4151 a.options.autoplay && (document[a.hidden] ? a.interrupted = !0 : a.interrupted = !1); 4152 }, a.fn.slick = function () { 4153 var f, 4154 g, 4155 a = this, 4156 c = arguments[0], 4157 d = Array.prototype.slice.call(arguments, 1), 4158 e = a.length; 4159 for (f = 0; e > f; f++) if ("object" == typeof c || "undefined" == typeof c ? a[f].slick = new b(a[f], c) : g = a[f].slick[c].apply(a[f].slick, d), "undefined" != typeof g) return g; 4160 return a; 4161 }; 4162}); 4163 4164/*! 4165 * VERSION: 1.18.2 4166 * DATE: 2015-12-22 4167 * UPDATES AND DOCS AT: http://greensock.com 4168 * 4169 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin 4170 * 4171 * @license Copyright (c) 2008-2016, GreenSock. All rights reserved. 4172 * This work is subject to the terms at http://greensock.com/standard-license or for
vendor: 12,858 bytes, lines 4173-4355
4173 * Club GreenSock members, the software agreement that was issued with your membership. 4174 * 4175 * @author: Jack Doyle, [email protected] 4176 **/ 4177var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window; 4178(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () { 4179 "use strict"; 4180 4181 _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (a, b, c) { 4182 var d = function (a) { 4183 var b, 4184 c = [], 4185 d = a.length; 4186 for (b = 0; b !== d; c.push(a[b++])); 4187 return c; 4188 }, 4189 e = function (a, b, c) { 4190 var d, 4191 e, 4192 f = a.cycle; 4193 for (d in f) e = f[d], a[d] = "function" == typeof e ? e.call(b[c], c) : e[c % e.length]; 4194 delete a.cycle; 4195 }, 4196 f = function (a, b, d) { 4197 c.call(this, a, b, d), this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._dirty = !0, this.render = f.prototype.render; 4198 }, 4199 g = 1e-10, 4200 h = c._internals, 4201 i = h.isSelector, 4202 j = h.isArray, 4203 k = f.prototype = c.to({}, .1, {}), 4204 l = []; 4205 f.version = "1.18.2", k.constructor = f, k.kill()._gc = !1, f.killTweensOf = f.killDelayedCallsTo = c.killTweensOf, f.getTweensOf = c.getTweensOf, f.lagSmoothing = c.lagSmoothing, f.ticker = c.ticker, f.render = c.render, k.invalidate = function () { 4206 return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), c.prototype.invalidate.call(this); 4207 }, k.updateTo = function (a, b) { 4208 var d, 4209 e = this.ratio, 4210 f = this.vars.immediateRender || a.immediateRender; 4211 b && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay)); 4212 for (d in a) this.vars[d] = a[d]; 4213 if (this._initted || f) if (b) this._initted = !1, f && this.render(0, !0, !0);else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && c._onPluginEvent("_onDisable", this), this._time / this._duration > .998) { 4214 var g = this._totalTime; 4215 this.render(0, !0, !1), this._initted = !1, this.render(g, !0, !1); 4216 } else if (this._initted = !1, this._init(), this._time > 0 || f) for (var h, i = 1 / (1 - e), j = this._firstPT; j;) h = j.s + j.c, j.c *= i, j.s = h - j.c, j = j._next; 4217 return this; 4218 }, k.render = function (a, b, c) { 4219 this._initted || 0 === this._duration && this.vars.repeat && this.invalidate(); 4220 var d, 4221 e, 4222 f, 4223 i, 4224 j, 4225 k, 4226 l, 4227 m, 4228 n = this._dirty ? this.totalDuration() : this._totalDuration, 4229 o = this._time, 4230 p = this._totalTime, 4231 q = this._cycle, 4232 r = this._duration, 4233 s = this._rawPrevTime; 4234 if (a >= n - 1e-7 ? (this._totalTime = n, this._cycle = this._repeat, this._yoyo && 0 !== (1 & this._cycle) ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = r, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (d = !0, e = "onComplete", c = c || this._timeline.autoRemoveChildren), 0 === r && (this._initted || !this.vars.lazy || c) && (this._startTime === this._timeline._duration && (a = 0), (0 > s || 0 >= a && a >= -1e-7 || s === g && "isPause" !== this.data) && s !== a && (c = !0, s > g && (e = "onReverseComplete")), this._rawPrevTime = m = !b || a || s === a ? a : g)) : 1e-7 > a ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== p || 0 === r && s > 0) && (e = "onReverseComplete", d = this._reversed), 0 > a && (this._active = !1, 0 === r && (this._initted || !this.vars.lazy || c) && (s >= 0 && (c = !0), this._rawPrevTime = m = !b || a || s === a ? a : g)), this._initted || (c = !0)) : (this._totalTime = this._time = a, 0 !== this._repeat && (i = r + this._repeatDelay, this._cycle = this._totalTime / i >> 0, 0 !== this._cycle && this._cycle === this._totalTime / i && this._cycle--, this._time = this._totalTime - this._cycle * i, this._yoyo && 0 !== (1 & this._cycle) && (this._time = r - this._time), this._time > r ? this._time = r : this._time < 0 && (this._time = 0)), this._easeType ? (j = this._time / r, k = this._easeType, l = this._easePower, (1 === k || 3 === k && j >= .5) && (j = 1 - j), 3 === k && (j *= 2), 1 === l ? j *= j : 2 === l ? j *= j * j : 3 === l ? j *= j * j * j : 4 === l && (j *= j * j * j * j), 1 === k ? this.ratio = 1 - j : 2 === k ? this.ratio = j : this._time / r < .5 ? this.ratio = j / 2 : this.ratio = 1 - j / 2) : this.ratio = this._ease.getRatio(this._time / r)), o === this._time && !c && q === this._cycle) return void (p !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate"))); 4235 if (!this._initted) { 4236 if (this._init(), !this._initted || this._gc) return; 4237 if (!c && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = o, this._totalTime = p, this._rawPrevTime = s, this._cycle = q, h.lazyTweens.push(this), void (this._lazy = [a, b]); 4238 this._time && !d ? this.ratio = this._ease.getRatio(this._time / r) : d && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)); 4239 } 4240 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== o && a >= 0 && (this._active = !0), 0 === p && (2 === this._initted && a > 0 && this._init(), this._startAt && (a >= 0 ? this._startAt.render(a, b, c) : e || (e = "_dummyGS")), this.vars.onStart && (0 !== this._totalTime || 0 === r) && (b || this._callback("onStart"))), f = this._firstPT; f;) f.f ? f.t[f.p](f.c * this.ratio + f.s) : f.t[f.p] = f.c * this.ratio + f.s, f = f._next; 4241 this._onUpdate && (0 > a && this._startAt && this._startTime && this._startAt.render(a, b, c), b || (this._totalTime !== p || d) && this._callback("onUpdate")), this._cycle !== q && (b || this._gc || this.vars.onRepeat && this._callback("onRepeat")), e && (!this._gc || c) && (0 > a && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(a, b, c), d && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[e] && this._callback(e), 0 === r && this._rawPrevTime === g && m !== g && (this._rawPrevTime = 0)); 4242 }, f.to = function (a, b, c) { 4243 return new f(a, b, c); 4244 }, f.from = function (a, b, c) { 4245 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new f(a, b, c); 4246 }, f.fromTo = function (a, b, c, d) { 4247 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new f(a, b, d); 4248 }, f.staggerTo = f.allTo = function (a, b, g, h, k, m, n) { 4249 h = h || 0; 4250 var o, 4251 p, 4252 q, 4253 r, 4254 s = 0, 4255 t = [], 4256 u = function () { 4257 g.onComplete && g.onComplete.apply(g.onCompleteScope || this, arguments), k.apply(n || g.callbackScope || this, m || l); 4258 }, 4259 v = g.cycle, 4260 w = g.startAt && g.startAt.cycle; 4261 for (j(a) || ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a))), a = a || [], 0 > h && (a = d(a), a.reverse(), h *= -1), o = a.length - 1, q = 0; o >= q; q++) { 4262 p = {}; 4263 for (r in g) p[r] = g[r]; 4264 if (v && e(p, a, q), w) { 4265 w = p.startAt = {}; 4266 for (r in g.startAt) w[r] = g.startAt[r]; 4267 e(p.startAt, a, q); 4268 } 4269 p.delay = s + (p.delay || 0), q === o && k && (p.onComplete = u), t[q] = new f(a[q], b, p), s += h; 4270 } 4271 return t; 4272 }, f.staggerFrom = f.allFrom = function (a, b, c, d, e, g, h) { 4273 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, f.staggerTo(a, b, c, d, e, g, h); 4274 }, f.staggerFromTo = f.allFromTo = function (a, b, c, d, e, g, h, i) { 4275 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, f.staggerTo(a, b, d, e, g, h, i); 4276 }, f.delayedCall = function (a, b, c, d, e) { 4277 return new f(b, 0, { 4278 delay: a, 4279 onComplete: b, 4280 onCompleteParams: c, 4281 callbackScope: d, 4282 onReverseComplete: b, 4283 onReverseCompleteParams: c, 4284 immediateRender: !1, 4285 useFrames: e, 4286 overwrite: 0 4287 }); 4288 }, f.set = function (a, b) { 4289 return new f(a, 0, b); 4290 }, f.isTweening = function (a) { 4291 return c.getTweensOf(a, !0).length > 0; 4292 }; 4293 var m = function (a, b) { 4294 for (var d = [], e = 0, f = a._first; f;) f instanceof c ? d[e++] = f : (b && (d[e++] = f), d = d.concat(m(f, b)), e = d.length), f = f._next; 4295 return d; 4296 }, 4297 n = f.getAllTweens = function (b) { 4298 return m(a._rootTimeline, b).concat(m(a._rootFramesTimeline, b)); 4299 }; 4300 f.killAll = function (a, c, d, e) { 4301 null == c && (c = !0), null == d && (d = !0); 4302 var f, 4303 g, 4304 h, 4305 i = n(0 != e), 4306 j = i.length, 4307 k = c && d && e; 4308 for (h = 0; j > h; h++) g = i[h], (k || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && (a ? g.totalTime(g._reversed ? 0 : g.totalDuration()) : g._enabled(!1, !1)); 4309 }, f.killChildTweensOf = function (a, b) { 4310 if (null != a) { 4311 var e, 4312 g, 4313 k, 4314 l, 4315 m, 4316 n = h.tweenLookup; 4317 if ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a)), j(a)) for (l = a.length; --l > -1;) f.killChildTweensOf(a[l], b);else { 4318 e = []; 4319 for (k in n) for (g = n[k].target.parentNode; g;) g === a && (e = e.concat(n[k].tweens)), g = g.parentNode; 4320 for (m = e.length, l = 0; m > l; l++) b && e[l].totalTime(e[l].totalDuration()), e[l]._enabled(!1, !1); 4321 } 4322 } 4323 }; 4324 var o = function (a, c, d, e) { 4325 c = c !== !1, d = d !== !1, e = e !== !1; 4326 for (var f, g, h = n(e), i = c && d && e, j = h.length; --j > -1;) g = h[j], (i || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && g.paused(a); 4327 }; 4328 return f.pauseAll = function (a, b, c) { 4329 o(!0, a, b, c); 4330 }, f.resumeAll = function (a, b, c) { 4331 o(!1, a, b, c); 4332 }, f.globalTimeScale = function (b) { 4333 var d = a._rootTimeline, 4334 e = c.ticker.time; 4335 return arguments.length ? (b = b || g, d._startTime = e - (e - d._startTime) * d._timeScale / b, d = a._rootFramesTimeline, e = c.ticker.frame, d._startTime = e - (e - d._startTime) * d._timeScale / b, d._timeScale = a._rootTimeline._timeScale = b, b) : d._timeScale; 4336 }, k.progress = function (a) { 4337 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), !1) : this._time / this.duration(); 4338 }, k.totalProgress = function (a) { 4339 return arguments.length ? this.totalTime(this.totalDuration() * a, !1) : this._totalTime / this.totalDuration(); 4340 }, k.time = function (a, b) { 4341 return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time; 4342 }, k.duration = function (b) { 4343 return arguments.length ? a.prototype.duration.call(this, b) : this._duration; 4344 }, k.totalDuration = function (a) { 4345 return arguments.length ? -1 === this._repeat ? this : this.duration((a - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration); 4346 }, k.repeat = function (a) { 4347 return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat; 4348 }, k.repeatDelay = function (a) { 4349 return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay; 4350 }, k.yoyo = function (a) { 4351 return arguments.length ? (this._yoyo = a, this) : this._yoyo; 4352 }, f; 4353 }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (a, b, c) { 4354 var d = function (a) { 4355 b.call(this, a), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUp
vendor: 5,970 bytes, lines 4355-4468
4355date; 4356 var c, 4357 d, 4358 e = this.vars; 4359 for (d in e) c = e[d], i(c) && -1 !== c.join("").indexOf("{self}") && (e[d] = this._swapSelfInParams(c)); 4360 i(e.tweens) && this.add(e.tweens, 0, e.align, e.stagger); 4361 }, 4362 e = 1e-10, 4363 f = c._internals, 4364 g = d._internals = {}, 4365 h = f.isSelector, 4366 i = f.isArray, 4367 j = f.lazyTweens, 4368 k = f.lazyRender, 4369 l = _gsScope._gsDefine.globals, 4370 m = function (a) { 4371 var b, 4372 c = {}; 4373 for (b in a) c[b] = a[b]; 4374 return c; 4375 }, 4376 n = function (a, b, c) { 4377 var d, 4378 e, 4379 f = a.cycle; 4380 for (d in f) e = f[d], a[d] = "function" == typeof e ? e.call(b[c], c) : e[c % e.length]; 4381 delete a.cycle; 4382 }, 4383 o = g.pauseCallback = function () {}, 4384 p = function (a) { 4385 var b, 4386 c = [], 4387 d = a.length; 4388 for (b = 0; b !== d; c.push(a[b++])); 4389 return c; 4390 }, 4391 q = d.prototype = new b(); 4392 return d.version = "1.18.2", q.constructor = d, q.kill()._gc = q._forcingPlayhead = q._hasPause = !1, q.to = function (a, b, d, e) { 4393 var f = d.repeat && l.TweenMax || c; 4394 return b ? this.add(new f(a, b, d), e) : this.set(a, d, e); 4395 }, q.from = function (a, b, d, e) { 4396 return this.add((d.repeat && l.TweenMax || c).from(a, b, d), e); 4397 }, q.fromTo = function (a, b, d, e, f) { 4398 var g = e.repeat && l.TweenMax || c; 4399 return b ? this.add(g.fromTo(a, b, d, e), f) : this.set(a, e, f); 4400 }, q.staggerTo = function (a, b, e, f, g, i, j, k) { 4401 var l, 4402 o, 4403 q = new d({ 4404 onComplete: i, 4405 onCompleteParams: j, 4406 callbackScope: k, 4407 smoothChildTiming: this.smoothChildTiming 4408 }), 4409 r = e.cycle; 4410 for ("string" == typeof a && (a = c.selector(a) || a), a = a || [], h(a) && (a = p(a)), f = f || 0, 0 > f && (a = p(a), a.reverse(), f *= -1), o = 0; o < a.length; o++) l = m(e), l.startAt && (l.startAt = m(l.startAt), l.startAt.cycle && n(l.startAt, a, o)), r && n(l, a, o), q.to(a[o], b, l, o * f); 4411 return this.add(q, g); 4412 }, q.staggerFrom = function (a, b, c, d, e, f, g, h) { 4413 return c.immediateRender = 0 != c.immediateRender, c.runBackwards = !0, this.staggerTo(a, b, c, d, e, f, g, h); 4414 }, q.staggerFromTo = function (a, b, c, d, e, f, g, h, i) { 4415 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, this.staggerTo(a, b, d, e, f, g, h, i); 4416 }, q.call = function (a, b, d, e) { 4417 return this.add(c.delayedCall(0, a, b, d), e); 4418 }, q.set = function (a, b, d) { 4419 return d = this._parseTimeOrLabel(d, 0, !0), null == b.immediateRender && (b.immediateRender = d === this._time && !this._paused), this.add(new c(a, 0, b), d); 4420 }, d.exportRoot = function (a, b) { 4421 a = a || {}, null == a.smoothChildTiming && (a.smoothChildTiming = !0); 4422 var e, 4423 f, 4424 g = new d(a), 4425 h = g._timeline; 4426 for (null == b && (b = !0), h._remove(g, !0), g._startTime = 0, g._rawPrevTime = g._time = g._totalTime = h._time, e = h._first; e;) f = e._next, b && e instanceof c && e.target === e.vars.onComplete || g.add(e, e._startTime - e._delay), e = f; 4427 return h.add(g, 0), g; 4428 }, q.add = function (e, f, g, h) { 4429 var j, k, l, m, n, o; 4430 if ("number" != typeof f && (f = this._parseTimeOrLabel(f, 0, !0, e)), !(e instanceof a)) { 4431 if (e instanceof Array || e && e.push && i(e)) { 4432 for (g = g || "normal", h = h || 0, j = f, k = e.length, l = 0; k > l; l++) i(m = e[l]) && (m = new d({ 4433 tweens: m 4434 })), this.add(m, j), "string" != typeof m && "function" != typeof m && ("sequence" === g ? j = m._startTime + m.totalDuration() / m._timeScale : "start" === g && (m._startTime -= m.delay())), j += h; 4435 return this._uncache(!0); 4436 } 4437 if ("string" == typeof e) return this.addLabel(e, f); 4438 if ("function" != typeof e) throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string."; 4439 e = c.delayedCall(0, e); 4440 } 4441 if (b.prototype.add.call(this, e, f), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration()) for (n = this, o = n.rawTime() > e._startTime; n._timeline;) o && n._timeline.smoothChildTiming ? n.totalTime(n._totalTime, !0) : n._gc && n._enabled(!0, !1), n = n._timeline; 4442 return this; 4443 }, q.remove = function (b) { 4444 if (b instanceof a) { 4445 this._remove(b, !1); 4446 var c = b._timeline = b.vars.useFrames ? a._rootFramesTimeline : a._rootTimeline; 4447 return b._startTime = (b._paused ? b._pauseTime : c._time) - (b._reversed ? b.totalDuration() - b._totalTime : b._totalTime) / b._timeScale, this; 4448 } 4449 if (b instanceof Array || b && b.push && i(b)) { 4450 for (var d = b.length; --d > -1;) this.remove(b[d]); 4451 return this; 4452 } 4453 return "string" == typeof b ? this.removeLabel(b) : this.kill(null, b); 4454 }, q._remove = function (a, c) { 4455 b.prototype._remove.call(this, a, c); 4456 var d = this._last; 4457 return d ? this._time > d._startTime + d._totalDuration / d._timeScale && (this._time = this.duration(), this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this; 4458 }, q.append = function (a, b) { 4459 return this.add(a, this._parseTimeOrLabel(null, b, !0, a)); 4460 }, q.insert = q.insertMultiple = function (a, b, c, d) { 4461 return this.add(a, b || 0, c, d); 4462 }, q.appendMultiple = function (a, b, c, d) { 4463 return this.add(a, this._parseTimeOrLabel(null, b, !0, a), c, d); 4464 }, q.addLabel = function (a, b) { 4465 return this._labels[a] = this._parseTimeOrLabel(b), this; 4466 }, q.addPause = function (a, b, d, e) { 4467 var f = c.delayedCall(0, o, d, e || this); 4468 return f.vars.onComplete = f.vars.onReverseComplete = b, f.data = "isPau
vendor: 32,712 bytes, lines 4468-5028
4468se", this._hasPause = !0, this.add(f, a); 4469 }, q.removeLabel = function (a) { 4470 return delete this._labels[a], this; 4471 }, q.getLabelTime = function (a) { 4472 return null != this._labels[a] ? this._labels[a] : -1; 4473 }, q._parseTimeOrLabel = function (b, c, d, e) { 4474 var f; 4475 if (e instanceof a && e.timeline === this) this.remove(e);else if (e && (e instanceof Array || e.push && i(e))) for (f = e.length; --f > -1;) e[f] instanceof a && e[f].timeline === this && this.remove(e[f]); 4476 if ("string" == typeof c) return this._parseTimeOrLabel(c, d && "number" == typeof b && null == this._labels[c] ? b - this.duration() : 0, d); 4477 if (c = c || 0, "string" != typeof b || !isNaN(b) && null == this._labels[b]) null == b && (b = this.duration());else { 4478 if (f = b.indexOf("="), -1 === f) return null == this._labels[b] ? d ? this._labels[b] = this.duration() + c : c : this._labels[b] + c; 4479 c = parseInt(b.charAt(f - 1) + "1", 10) * Number(b.substr(f + 1)), b = f > 1 ? this._parseTimeOrLabel(b.substr(0, f - 1), 0, d) : this.duration(); 4480 } 4481 return Number(b) + c; 4482 }, q.seek = function (a, b) { 4483 return this.totalTime("number" == typeof a ? a : this._parseTimeOrLabel(a), b !== !1); 4484 }, q.stop = function () { 4485 return this.paused(!0); 4486 }, q.gotoAndPlay = function (a, b) { 4487 return this.play(a, b); 4488 }, q.gotoAndStop = function (a, b) { 4489 return this.pause(a, b); 4490 }, q.render = function (a, b, c) { 4491 this._gc && this._enabled(!0, !1); 4492 var d, 4493 f, 4494 g, 4495 h, 4496 i, 4497 l, 4498 m, 4499 n = this._dirty ? this.totalDuration() : this._totalDuration, 4500 o = this._time, 4501 p = this._startTime, 4502 q = this._timeScale, 4503 r = this._paused; 4504 if (a >= n - 1e-7) this._totalTime = this._time = n, this._reversed || this._hasPausedChild() || (f = !0, h = "onComplete", i = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 >= a && a >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === e) && this._rawPrevTime !== a && this._first && (i = !0, this._rawPrevTime > e && (h = "onReverseComplete"))), this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, a = n + 1e-4;else if (1e-7 > a) { 4505 if (this._totalTime = this._time = 0, (0 !== o || 0 === this._duration && this._rawPrevTime !== e && (this._rawPrevTime > 0 || 0 > a && this._rawPrevTime >= 0)) && (h = "onReverseComplete", f = this._reversed), 0 > a) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (i = f = !0, h = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (i = !0), this._rawPrevTime = a;else { 4506 if (this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f) for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next; 4507 a = 0, this._initted || (i = !0); 4508 } 4509 } else { 4510 if (this._hasPause && !this._forcingPlayhead && !b) { 4511 if (a >= o) for (d = this._first; d && d._startTime <= a && !l;) d._duration || "isPause" !== d.data || d.ratio || 0 === d._startTime && 0 === this._rawPrevTime || (l = d), d = d._next;else for (d = this._last; d && d._startTime >= a && !l;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (l = d), d = d._prev; 4512 l && (this._time = a = l._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay)); 4513 } 4514 this._totalTime = this._time = this._rawPrevTime = a; 4515 } 4516 if (this._time !== o && this._first || c || i || l) { 4517 if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== o && a > 0 && (this._active = !0), 0 === o && this.vars.onStart && 0 !== this._time && (b || this._callback("onStart")), m = this._time, m >= o) for (d = this._first; d && (g = d._next, m === this._time && (!this._paused || r));) (d._active || d._startTime <= m && !d._paused && !d._gc) && (l === d && this.pause(), d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c)), d = g;else for (d = this._last; d && (g = d._prev, m === this._time && (!this._paused || r));) { 4518 if (d._active || d._startTime <= o && !d._paused && !d._gc) { 4519 if (l === d) { 4520 for (l = d._prev; l && l.endTime() > this._time;) l.render(l._reversed ? l.totalDuration() - (a - l._startTime) * l._timeScale : (a - l._startTime) * l._timeScale, b, c), l = l._prev; 4521 l = null, this.pause(); 4522 } 4523 d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c); 4524 } 4525 d = g; 4526 } 4527 this._onUpdate && (b || (j.length && k(), this._callback("onUpdate"))), h && (this._gc || (p === this._startTime || q !== this._timeScale) && (0 === this._time || n >= this.totalDuration()) && (f && (j.length && k(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[h] && this._callback(h))); 4528 } 4529 }, q._hasPausedChild = function () { 4530 for (var a = this._first; a;) { 4531 if (a._paused || a instanceof d && a._hasPausedChild()) return !0; 4532 a = a._next; 4533 } 4534 return !1; 4535 }, q.getChildren = function (a, b, d, e) { 4536 e = e || -9999999999; 4537 for (var f = [], g = this._first, h = 0; g;) g._startTime < e || (g instanceof c ? b !== !1 && (f[h++] = g) : (d !== !1 && (f[h++] = g), a !== !1 && (f = f.concat(g.getChildren(!0, b, d)), h = f.length))), g = g._next; 4538 return f; 4539 }, q.getTweensOf = function (a, b) { 4540 var d, 4541 e, 4542 f = this._gc, 4543 g = [], 4544 h = 0; 4545 for (f && this._enabled(!0, !0), d = c.getTweensOf(a), e = d.length; --e > -1;) (d[e].timeline === this || b && this._contains(d[e])) && (g[h++] = d[e]); 4546 return f && this._enabled(!1, !0), g; 4547 }, q.recent = function () { 4548 return this._recent; 4549 }, q._contains = function (a) { 4550 for (var b = a.timeline; b;) { 4551 if (b === this) return !0; 4552 b = b.timeline; 4553 } 4554 return !1; 4555 }, q.shiftChildren = function (a, b, c) { 4556 c = c || 0; 4557 for (var d, e = this._first, f = this._labels; e;) e._startTime >= c && (e._startTime += a), e = e._next; 4558 if (b) for (d in f) f[d] >= c && (f[d] += a); 4559 return this._uncache(!0); 4560 }, q._kill = function (a, b) { 4561 if (!a && !b) return this._enabled(!1, !1); 4562 for (var c = b ? this.getTweensOf(b) : this.getChildren(!0, !0, !1), d = c.length, e = !1; --d > -1;) c[d]._kill(a, b) && (e = !0); 4563 return e; 4564 }, q.clear = function (a) { 4565 var b = this.getChildren(!1, !0, !0), 4566 c = b.length; 4567 for (this._time = this._totalTime = 0; --c > -1;) b[c]._enabled(!1, !1); 4568 return a !== !1 && (this._labels = {}), this._uncache(!0); 4569 }, q.invalidate = function () { 4570 for (var b = this._first; b;) b.invalidate(), b = b._next; 4571 return a.prototype.invalidate.call(this); 4572 }, q._enabled = function (a, c) { 4573 if (a === this._gc) for (var d = this._first; d;) d._enabled(a, !0), d = d._next; 4574 return b.prototype._enabled.call(this, a, c); 4575 }, q.totalTime = function (b, c, d) { 4576 this._forcingPlayhead = !0; 4577 var e = a.prototype.totalTime.apply(this, arguments); 4578 return this._forcingPlayhead = !1, e; 4579 }, q.duration = function (a) { 4580 return arguments.length ? (0 !== this.duration() && 0 !== a && this.timeScale(this._duration / a), this) : (this._dirty && this.totalDuration(), this._duration); 4581 }, q.totalDuration = function (a) { 4582 if (!arguments.length) { 4583 if (this._dirty) { 4584 for (var b, c, d = 0, e = this._last, f = 999999999999; e;) b = e._prev, e._dirty && e.totalDuration(), e._startTime > f && this._sortChildren && !e._paused ? this.add(e, e._startTime - e._delay) : f = e._startTime, e._startTime < 0 && !e._paused && (d -= e._startTime, this._timeline.smoothChildTiming && (this._startTime += e._startTime / this._timeScale), this.shiftChildren(-e._startTime, !1, -9999999999), f = 0), c = e._startTime + e._totalDuration / e._timeScale, c > d && (d = c), e = b; 4585 this._duration = this._totalDuration = d, this._dirty = !1; 4586 } 4587 return this._totalDuration; 4588 } 4589 return a && this.totalDuration() ? this.timeScale(this._totalDuration / a) : this; 4590 }, q.paused = function (b) { 4591 if (!b) for (var c = this._first, d = this._time; c;) c._startTime === d && "isPause" === c.data && (c._rawPrevTime = 0), c = c._next; 4592 return a.prototype.paused.apply(this, arguments); 4593 }, q.usesFrames = function () { 4594 for (var b = this._timeline; b._timeline;) b = b._timeline; 4595 return b === a._rootFramesTimeline; 4596 }, q.rawTime = function () { 4597 return this._paused ? this._totalTime : (this._timeline.rawTime() - this._startTime) * this._timeScale; 4598 }, d; 4599 }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function (a, b, c) { 4600 var d = function (b) { 4601 a.call(this, b), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0; 4602 }, 4603 e = 1e-10, 4604 f = b._internals, 4605 g = f.lazyTweens, 4606 h = f.lazyRender, 4607 i = new c(null, null, 1, 0), 4608 j = d.prototype = new a(); 4609 return j.constructor = d, j.kill()._gc = !1, d.version = "1.18.2", j.invalidate = function () { 4610 return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), a.prototype.invalidate.call(this); 4611 }, j.addCallback = function (a, c, d, e) { 4612 return this.add(b.delayedCall(0, a, d, e), c); 4613 }, j.removeCallback = function (a, b) { 4614 if (a) if (null == b) this._kill(null, a);else for (var c = this.getTweensOf(a, !1), d = c.length, e = this._parseTimeOrLabel(b); --d > -1;) c[d]._startTime === e && c[d]._enabled(!1, !1); 4615 return this; 4616 }, j.removePause = function (b) { 4617 return this.removeCallback(a._internals.pauseCallback, b); 4618 }, j.tweenTo = function (a, c) { 4619 c = c || {}; 4620 var d, 4621 e, 4622 f, 4623 g = { 4624 ease: i, 4625 useFrames: this.usesFrames(), 4626 immediateRender: !1 4627 }; 4628 for (e in c) g[e] = c[e]; 4629 return g.time = this._parseTimeOrLabel(a), d = Math.abs(Number(g.time) - this._time) / this._timeScale || .001, f = new b(this, d, g), g.onStart = function () { 4630 f.target.paused(!0), f.vars.time !== f.target.time() && d === f.duration() && f.duration(Math.abs(f.vars.time - f.target.time()) / f.target._timeScale), c.onStart && f._callback("onStart"); 4631 }, f; 4632 }, j.tweenFromTo = function (a, b, c) { 4633 c = c || {}, a = this._parseTimeOrLabel(a), c.startAt = { 4634 onComplete: this.seek, 4635 onCompleteParams: [a], 4636 callbackScope: this 4637 }, c.immediateRender = c.immediateRender !== !1; 4638 var d = this.tweenTo(b, c); 4639 return d.duration(Math.abs(d.vars.time - a) / this._timeScale || .001); 4640 }, j.render = function (a, b, c) { 4641 this._gc && this._enabled(!0, !1); 4642 var d, 4643 f, 4644 i, 4645 j, 4646 k, 4647 l, 4648 m, 4649 n, 4650 o = this._dirty ? this.totalDuration() : this._totalDuration, 4651 p = this._duration, 4652 q = this._time, 4653 r = this._totalTime, 4654 s = this._startTime, 4655 t = this._timeScale, 4656 u = this._rawPrevTime, 4657 v = this._paused, 4658 w = this._cycle; 4659 if (a >= o - 1e-7) this._locked || (this._totalTime = o, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (f = !0, j = "onComplete", k = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 >= a && a >= -1e-7 || 0 > u || u === e) && u !== a && this._first && (k = !0, u > e && (j = "onReverseComplete"))), this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, this._yoyo && 0 !== (1 & this._cycle) ? this._time = a = 0 : (this._time = p, a = p + 1e-4);else if (1e-7 > a) { 4660 if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (0 !== q || 0 === p && u !== e && (u > 0 || 0 > a && u >= 0) && !this._locked) && (j = "onReverseComplete", f = this._reversed), 0 > a) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (k = f = !0, j = "onReverseComplete") : u >= 0 && this._first && (k = !0), this._rawPrevTime = a;else { 4661 if (this._rawPrevTime = p || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f) for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next; 4662 a = 0, this._initted || (k = !0); 4663 } 4664 } else if (0 === p && 0 > u && (k = !0), this._time = this._rawPrevTime = a, this._locked || (this._totalTime = a, 0 !== this._repeat && (l = p + this._repeatDelay, this._cycle = this._totalTime / l >> 0, 0 !== this._cycle && this._cycle === this._totalTime / l && this._cycle--, this._time = this._totalTime - this._cycle * l, this._yoyo && 0 !== (1 & this._cycle) && (this._time = p - this._time), this._time > p ? (this._time = p, a = p + 1e-4) : this._time < 0 ? this._time = a = 0 : a = this._time)), this._hasPause && !this._forcingPlayhead && !b) { 4665 if (a = this._time, a >= q) for (d = this._first; d && d._startTime <= a && !m;) d._duration || "isPause" !== d.data || d.ratio || 0 === d._startTime && 0 === this._rawPrevTime || (m = d), d = d._next;else for (d = this._last; d && d._startTime >= a && !m;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (m = d), d = d._prev; 4666 m && (this._time = a = m._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay)); 4667 } 4668 if (this._cycle !== w && !this._locked) { 4669 var x = this._yoyo && 0 !== (1 & w), 4670 y = x === (this._yoyo && 0 !== (1 & this._cycle)), 4671 z = this._totalTime, 4672 A = this._cycle, 4673 B = this._rawPrevTime, 4674 C = this._time; 4675 if (this._totalTime = w * p, this._cycle < w ? x = !x : this._totalTime += p, this._time = q, this._rawPrevTime = 0 === p ? u - 1e-4 : u, this._cycle = w, this._locked = !0, q = x ? 0 : p, this.render(q, b, 0 === p), b || this._gc || this.vars.onRepeat && this._callback("onRepeat"), q !== this._time) return; 4676 if (y && (q = x ? p + 1e-4 : -1e-4, this.render(q, !0, !1)), this._locked = !1, this._paused && !v) return; 4677 this._time = C, this._totalTime = z, this._cycle = A, this._rawPrevTime = B; 4678 } 4679 if (!(this._time !== q && this._first || c || k || m)) return void (r !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate"))); 4680 if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== r && a > 0 && (this._active = !0), 0 === r && this.vars.onStart && 0 !== this._totalTime && (b || this._callback("onStart")), n = this._time, n >= q) for (d = this._first; d && (i = d._next, n === this._time && (!this._paused || v));) (d._active || d._startTime <= this._time && !d._paused && !d._gc) && (m === d && this.pause(), d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c)), d = i;else for (d = this._last; d && (i = d._prev, n === this._time && (!this._paused || v));) { 4681 if (d._active || d._startTime <= q && !d._paused && !d._gc) { 4682 if (m === d) { 4683 for (m = d._prev; m && m.endTime() > this._time;) m.render(m._reversed ? m.totalDuration() - (a - m._startTime) * m._timeScale : (a - m._startTime) * m._timeScale, b, c), m = m._prev; 4684 m = null, this.pause(); 4685 } 4686 d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c); 4687 } 4688 d = i; 4689 } 4690 this._onUpdate && (b || (g.length && h(), this._callback("onUpdate"))), j && (this._locked || this._gc || (s === this._startTime || t !== this._timeScale) && (0 === this._time || o >= this.totalDuration()) && (f && (g.length && h(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[j] && this._callback(j))); 4691 }, j.getActive = function (a, b, c) { 4692 null == a && (a = !0), null == b && (b = !0), null == c && (c = !1); 4693 var d, 4694 e, 4695 f = [], 4696 g = this.getChildren(a, b, c), 4697 h = 0, 4698 i = g.length; 4699 for (d = 0; i > d; d++) e = g[d], e.isActive() && (f[h++] = e); 4700 return f; 4701 }, j.getLabelAfter = function (a) { 4702 a || 0 !== a && (a = this._time); 4703 var b, 4704 c = this.getLabelsArray(), 4705 d = c.length; 4706 for (b = 0; d > b; b++) if (c[b].time > a) return c[b].name; 4707 return null; 4708 }, j.getLabelBefore = function (a) { 4709 null == a && (a = this._time); 4710 for (var b = this.getLabelsArray(), c = b.length; --c > -1;) if (b[c].time < a) return b[c].name; 4711 return null; 4712 }, j.getLabelsArray = function () { 4713 var a, 4714 b = [], 4715 c = 0; 4716 for (a in this._labels) b[c++] = { 4717 time: this._labels[a], 4718 name: a 4719 }; 4720 return b.sort(function (a, b) { 4721 return a.time - b.time; 4722 }), b; 4723 }, j.progress = function (a, b) { 4724 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), b) : this._time / this.duration(); 4725 }, j.totalProgress = function (a, b) { 4726 return arguments.length ? this.totalTime(this.totalDuration() * a, b) : this._totalTime / this.totalDuration(); 4727 }, j.totalDuration = function (b) { 4728 return arguments.length ? -1 !== this._repeat && b ? this.timeScale(this.totalDuration() / b) : this : (this._dirty && (a.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration); 4729 }, j.time = function (a, b) { 4730 return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time; 4731 }, j.repeat = function (a) { 4732 return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat; 4733 }, j.repeatDelay = function (a) { 4734 return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay; 4735 }, j.yoyo = function (a) { 4736 return arguments.length ? (this._yoyo = a, this) : this._yoyo; 4737 }, j.currentLabel = function (a) { 4738 return arguments.length ? this.seek(a, !0) : this.getLabelBefore(this._time + 1e-8); 4739 }, d; 4740 }, !0), function () { 4741 var a = 180 / Math.PI, 4742 b = [], 4743 c = [], 4744 d = [], 4745 e = {}, 4746 f = _gsScope._gsDefine.globals, 4747 g = function (a, b, c, d) { 4748 this.a = a, this.b = b, this.c = c, this.d = d, this.da = d - a, this.ca = c - a, this.ba = b - a; 4749 }, 4750 h = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", 4751 i = function (a, b, c, d) { 4752 var e = { 4753 a: a 4754 }, 4755 f = {}, 4756 g = {}, 4757 h = { 4758 c: d 4759 }, 4760 i = (a + b) / 2, 4761 j = (b + c) / 2, 4762 k = (c + d) / 2, 4763 l = (i + j) / 2, 4764 m = (j + k) / 2, 4765 n = (m - l) / 8; 4766 return e.b = i + (a - i) / 4, f.b = l + n, e.c = f.a = (e.b + f.b) / 2, f.c = g.a = (l + m) / 2, g.b = m - n, h.b = k + (d - k) / 4, g.c = h.a = (g.b + h.b) / 2, [e, f, g, h]; 4767 }, 4768 j = function (a, e, f, g, h) { 4769 var j, 4770 k, 4771 l, 4772 m, 4773 n, 4774 o, 4775 p, 4776 q, 4777 r, 4778 s, 4779 t, 4780 u, 4781 v, 4782 w = a.length - 1, 4783 x = 0, 4784 y = a[0].a; 4785 for (j = 0; w > j; j++) n = a[x], k = n.a, l = n.d, m = a[x + 1].d, h ? (t = b[j], u = c[j], v = (u + t) * e * .25 / (g ? .5 : d[j] || .5), o = l - (l - k) * (g ? .5 * e : 0 !== t ? v / t : 0), p = l + (m - l) * (g ? .5 * e : 0 !== u ? v / u : 0), q = l - (o + ((p - o) * (3 * t / (t + u) + .5) / 4 || 0))) : (o = l - (l - k) * e * .5, p = l + (m - l) * e * .5, q = l - (o + p) / 2), o += q, p += q, n.c = r = o, 0 !== j ? n.b = y : n.b = y = n.a + .6 * (n.c - n.a), n.da = l - k, n.ca = r - k, n.ba = y - k, f ? (s = i(k, y, r, l), a.splice(x, 1, s[0], s[1], s[2], s[3]), x += 4) : x++, y = p; 4786 n = a[x], n.b = y, n.c = y + .4 * (n.d - y), n.da = n.d - n.a, n.ca = n.c - n.a, n.ba = y - n.a, f && (s = i(n.a, y, n.c, n.d), a.splice(x, 1, s[0], s[1], s[2], s[3])); 4787 }, 4788 k = function (a, d, e, f) { 4789 var h, 4790 i, 4791 j, 4792 k, 4793 l, 4794 m, 4795 n = []; 4796 if (f) for (a = [f].concat(a), i = a.length; --i > -1;) "string" == typeof (m = a[i][d]) && "=" === m.charAt(1) && (a[i][d] = f[d] + Number(m.charAt(0) + m.substr(2))); 4797 if (h = a.length - 2, 0 > h) return n[0] = new g(a[0][d], 0, 0, a[-1 > h ? 0 : 1][d]), n; 4798 for (i = 0; h > i; i++) j = a[i][d], k = a[i + 1][d], n[i] = new g(j, 0, 0, k), e && (l = a[i + 2][d], b[i] = (b[i] || 0) + (k - j) * (k - j), c[i] = (c[i] || 0) + (l - k) * (l - k)); 4799 return n[i] = new g(a[i][d], 0, 0, a[i + 1][d]), n; 4800 }, 4801 l = function (a, f, g, i, l, m) { 4802 var n, 4803 o, 4804 p, 4805 q, 4806 r, 4807 s, 4808 t, 4809 u, 4810 v = {}, 4811 w = [], 4812 x = m || a[0]; 4813 l = "string" == typeof l ? "," + l + "," : h, null == f && (f = 1); 4814 for (o in a[0]) w.push(o); 4815 if (a.length > 1) { 4816 for (u = a[a.length - 1], t = !0, n = w.length; --n > -1;) if (o = w[n], Math.abs(x[o] - u[o]) > .05) { 4817 t = !1; 4818 break; 4819 } 4820 t && (a = a.concat(), m && a.unshift(m), a.push(a[1]), m = a[a.length - 3]); 4821 } 4822 for (b.length = c.length = d.length = 0, n = w.length; --n > -1;) o = w[n], e[o] = -1 !== l.indexOf("," + o + ","), v[o] = k(a, o, e[o], m); 4823 for (n = b.length; --n > -1;) b[n] = Math.sqrt(b[n]), c[n] = Math.sqrt(c[n]); 4824 if (!i) { 4825 for (n = w.length; --n > -1;) if (e[o]) for (p = v[w[n]], s = p.length - 1, q = 0; s > q; q++) r = p[q + 1].da / c[q] + p[q].da / b[q], d[q] = (d[q] || 0) + r * r; 4826 for (n = d.length; --n > -1;) d[n] = Math.sqrt(d[n]); 4827 } 4828 for (n = w.length, q = g ? 4 : 1; --n > -1;) o = w[n], p = v[o], j(p, f, g, i, e[o]), t && (p.splice(0, q), p.splice(p.length - q, q)); 4829 return v; 4830 }, 4831 m = function (a, b, c) { 4832 b = b || "soft"; 4833 var d, 4834 e, 4835 f, 4836 h, 4837 i, 4838 j, 4839 k, 4840 l, 4841 m, 4842 n, 4843 o, 4844 p = {}, 4845 q = "cubic" === b ? 3 : 2, 4846 r = "soft" === b, 4847 s = []; 4848 if (r && c && (a = [c].concat(a)), null == a || a.length < q + 1) throw "invalid Bezier data"; 4849 for (m in a[0]) s.push(m); 4850 for (j = s.length; --j > -1;) { 4851 for (m = s[j], p[m] = i = [], n = 0, l = a.length, k = 0; l > k; k++) d = null == c ? a[k][m] : "string" == typeof (o = a[k][m]) && "=" === o.charAt(1) ? c[m] + Number(o.charAt(0) + o.substr(2)) : Number(o), r && k > 1 && l - 1 > k && (i[n++] = (d + i[n - 2]) / 2), i[n++] = d; 4852 for (l = n - q + 1, n = 0, k = 0; l > k; k += q) d = i[k], e = i[k + 1], f = i[k + 2], h = 2 === q ? 0 : i[k + 3], i[n++] = o = 3 === q ? new g(d, e, f, h) : new g(d, (2 * e + d) / 3, (2 * e + f) / 3, f); 4853 i.length = n; 4854 } 4855 return p; 4856 }, 4857 n = function (a, b, c) { 4858 for (var d, e, f, g, h, i, j, k, l, m, n, o = 1 / c, p = a.length; --p > -1;) for (m = a[p], f = m.a, g = m.d - f, h = m.c - f, i = m.b - f, d = e = 0, k = 1; c >= k; k++) j = o * k, l = 1 - j, d = e - (e = (j * j * g + 3 * l * (j * h + l * i)) * j), n = p * c + k - 1, b[n] = (b[n] || 0) + d * d; 4859 }, 4860 o = function (a, b) { 4861 b = b >> 0 || 6; 4862 var c, 4863 d, 4864 e, 4865 f, 4866 g = [], 4867 h = [], 4868 i = 0, 4869 j = 0, 4870 k = b - 1, 4871 l = [], 4872 m = []; 4873 for (c in a) n(a[c], g, b); 4874 for (e = g.length, d = 0; e > d; d++) i += Math.sqrt(g[d]), f = d % b, m[f] = i, f === k && (j += i, f = d / b >> 0, l[f] = m, h[f] = j, i = 0, m = []); 4875 return { 4876 length: j, 4877 lengths: h, 4878 segments: l 4879 }; 4880 }, 4881 p = _gsScope._gsDefine.plugin({ 4882 propName: "bezier", 4883 priority: -1, 4884 version: "1.3.4", 4885 API: 2, 4886 global: !0, 4887 init: function (a, b, c) { 4888 this._target = a, b instanceof Array && (b = { 4889 values: b 4890 }), this._func = {}, this._round = {}, this._props = [], this._timeRes = null == b.timeResolution ? 6 : parseInt(b.timeResolution, 10); 4891 var d, 4892 e, 4893 f, 4894 g, 4895 h, 4896 i = b.values || [], 4897 j = {}, 4898 k = i[0], 4899 n = b.autoRotate || c.vars.orientToBezier; 4900 this._autoRotate = n ? n instanceof Array ? n : [["x", "y", "rotation", n === !0 ? 0 : Number(n) || 0]] : null; 4901 for (d in k) this._props.push(d); 4902 for (f = this._props.length; --f > -1;) d = this._props[f], this._overwriteProps.push(d), e = this._func[d] = "function" == typeof a[d], j[d] = e ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)]() : parseFloat(a[d]), h || j[d] !== i[0][d] && (h = j); 4903 if (this._beziers = "cubic" !== b.type && "quadratic" !== b.type && "soft" !== b.type ? l(i, isNaN(b.curviness) ? 1 : b.curviness, !1, "thruBasic" === b.type, b.correlate, h) : m(i, b.type, j), this._segCount = this._beziers[d].length, this._timeRes) { 4904 var p = o(this._beziers, this._timeRes); 4905 this._length = p.length, this._lengths = p.lengths, this._segments = p.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length; 4906 } 4907 if (n = this._autoRotate) for (this._initialRotations = [], n[0] instanceof Array || (this._autoRotate = n = [n]), f = n.length; --f > -1;) { 4908 for (g = 0; 3 > g; g++) d = n[f][g], this._func[d] = "function" == typeof a[d] ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)] : !1; 4909 d = n[f][2], this._initialRotations[f] = this._func[d] ? this._func[d].call(this._target) : this._target[d]; 4910 } 4911 return this._startRatio = c.vars.runBackwards ? 1 : 0, !0; 4912 }, 4913 set: function (b) { 4914 var c, 4915 d, 4916 e, 4917 f, 4918 g, 4919 h, 4920 i, 4921 j, 4922 k, 4923 l, 4924 m = this._segCount, 4925 n = this._func, 4926 o = this._target, 4927 p = b !== this._startRatio; 4928 if (this._timeRes) { 4929 if (k = this._lengths, l = this._curSeg, b *= this._length, e = this._li, b > this._l2 && m - 1 > e) { 4930 for (j = m - 1; j > e && (this._l2 = k[++e]) <= b;); 4931 this._l1 = k[e - 1], this._li = e, this._curSeg = l = this._segments[e], this._s2 = l[this._s1 = this._si = 0]; 4932 } else if (b < this._l1 && e > 0) { 4933 for (; e > 0 && (this._l1 = k[--e]) >= b;); 4934 0 === e && b < this._l1 ? this._l1 = 0 : e++, this._l2 = k[e], this._li = e, this._curSeg = l = this._segments[e], this._s1 = l[(this._si = l.length - 1) - 1] || 0, this._s2 = l[this._si]; 4935 } 4936 if (c = e, b -= this._l1, e = this._si, b > this._s2 && e < l.length - 1) { 4937 for (j = l.length - 1; j > e && (this._s2 = l[++e]) <= b;); 4938 this._s1 = l[e - 1], this._si = e; 4939 } else if (b < this._s1 && e > 0) { 4940 for (; e > 0 && (this._s1 = l[--e]) >= b;); 4941 0 === e && b < this._s1 ? this._s1 = 0 : e++, this._s2 = l[e], this._si = e; 4942 } 4943 h = (e + (b - this._s1) / (this._s2 - this._s1)) * this._prec; 4944 } else c = 0 > b ? 0 : b >= 1 ? m - 1 : m * b >> 0, h = (b - c * (1 / m)) * m; 4945 for (d = 1 - h, e = this._props.length; --e > -1;) f = this._props[e], g = this._beziers[f][c], i = (h * h * g.da + 3 * d * (h * g.ca + d * g.ba)) * h + g.a, this._round[f] && (i = Math.round(i)), n[f] ? o[f](i) : o[f] = i; 4946 if (this._autoRotate) { 4947 var q, 4948 r, 4949 s, 4950 t, 4951 u, 4952 v, 4953 w, 4954 x = this._autoRotate; 4955 for (e = x.length; --e > -1;) f = x[e][2], v = x[e][3] || 0, w = x[e][4] === !0 ? 1 : a, g = this._beziers[x[e][0]], q = this._beziers[x[e][1]], g && q && (g = g[c], q = q[c], r = g.a + (g.b - g.a) * h, t = g.b + (g.c - g.b) * h, r += (t - r) * h, t += (g.c + (g.d - g.c) * h - t) * h, s = q.a + (q.b - q.a) * h, u = q.b + (q.c - q.b) * h, s += (u - s) * h, u += (q.c + (q.d - q.c) * h - u) * h, i = p ? Math.atan2(u - s, t - r) * w + v : this._initialRotations[e], n[f] ? o[f](i) : o[f] = i); 4956 } 4957 } 4958 }), 4959 q = p.prototype; 4960 p.bezierThrough = l, p.cubicToQuadratic = i, p._autoCSS = !0, p.quadraticToCubic = function (a, b, c) { 4961 return new g(a, (2 * b + a) / 3, (2 * b + c) / 3, c); 4962 }, p._cssRegister = function () { 4963 var a = f.CSSPlugin; 4964 if (a) { 4965 var b = a._internals, 4966 c = b._parseToProxy, 4967 d = b._setPluginRatio, 4968 e = b.CSSPropTween; 4969 b._registerComplexSpecialProp("bezier", { 4970 parser: function (a, b, f, g, h, i) { 4971 b instanceof Array && (b = { 4972 values: b 4973 }), i = new p(); 4974 var j, 4975 k, 4976 l, 4977 m = b.values, 4978 n = m.length - 1, 4979 o = [], 4980 q = {}; 4981 if (0 > n) return h; 4982 for (j = 0; n >= j; j++) l = c(a, m[j], g, h, i, n !== j), o[j] = l.end; 4983 for (k in b) q[k] = b[k]; 4984 return q.values = o, h = new e(a, "bezier", 0, 0, l.pt, 2), h.data = l, h.plugin = i, h.setRatio = d, 0 === q.autoRotate && (q.autoRotate = !0), !q.autoRotate || q.autoRotate instanceof Array || (j = q.autoRotate === !0 ? 0 : Number(q.autoRotate), q.autoRotate = null != l.end.left ? [["left", "top", "rotation", j, !1]] : null != l.end.x ? [["x", "y", "rotation", j, !1]] : !1), q.autoRotate && (g._transform || g._enableTransforms(!1), l.autoRotate = g._target._gsTransform), i._onInitTween(l.proxy, q, g._tween), h; 4985 } 4986 }); 4987 } 4988 }, q._roundProps = function (a, b) { 4989 for (var c = this._overwriteProps, d = c.length; --d > -1;) (a[c[d]] || a.bezier || a.bezierThrough) && (this._round[c[d]] = b); 4990 }, q._kill = function (a) { 4991 var b, 4992 c, 4993 d = this._props; 4994 for (b in this._beziers) if (b in a) for (delete this._beziers[b], delete this._func[b], c = d.length; --c > -1;) d[c] === b && d.splice(c, 1); 4995 return this._super._kill.call(this, a); 4996 }; 4997 }(), _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (a, b) { 4998 var c, 4999 d, 5000 e, 5001 f, 5002 g = function () { 5003 a.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = g.prototype.setRatio; 5004 }, 5005 h = _gsScope._gsDefine.globals, 5006 i = {}, 5007 j = g.prototype = new a("css"); 5008 j.constructor = g, g.version = "1.18.2", g.API = 2, g.defaultTransformPerspective = 0, g.defaultSkewType = "compensated", g.defaultSmoothOrigin = !0, j = "px", g.suffixMap = { 5009 top: j, 5010 right: j, 5011 bottom: j, 5012 left: j, 5013 width: j, 5014 height: j, 5015 fontSize: j, 5016 padding: j, 5017 margin: j, 5018 perspective: j, 5019 lineHeight: "" 5020 }; 5021 var k, 5022 l, 5023 m, 5024 n, 5025 o, 5026 p, 5027 q = /(?:\d|\-\d|\.\d|\-\.\d)+/g, 5028 r = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
5029 s = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, 5030 t = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, 5031 u = /(?:\d|\-|\+|=|#|\.)*/g, 5032 v = /opacity *= *([^)]*)/i, 5033 w = /opacity:([^;]*)/i, 5034 x = /alpha\(opacity *=.+?\)/i, 5035 y = /^(rgb|hsl)/, 5036 z = /([A-Z])/g, 5037 A = /-([a-z])/gi, 5038 B = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, 5039 C = function (a, b) { 5040 return b.toUpperCase(); 5041 }, 5042 D = /(?:Left|Right|Width)/i, 5043 E = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, 5044 F = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, 5045 G = /,(?=[^\)]*(?:\(|$))/gi, 5046 H = Math.PI / 180, 5047 I = 180 / Math.PI, 5048 J = {}, 5049 K = document, 5050 L = function (a) { 5051 return K.createElementNS ? K.createElementNS("http://www.w3.org/1999/xhtml", a) : K.createElement(a); 5052 }, 5053 M = L("div"), 5054 N = L("img"), 5055 O = g._internals = { 5056 _specialProps: i 5057 }, 5058 P = navigator.userAgent, 5059 Q = function () { 5060 var a = P.indexOf("Android"), 5061 b = L("a"); 5062 return m = -1 !== P.indexOf("Safari") && -1 === P.indexOf("Chrome") && (-1 === a || Number(P.substr(a + 8, 1)) > 3), o = m && Number(P.substr(P.indexOf("Version/") + 8, 1)) < 6, n = -1 !== P.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(P) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(P)) && (p = parseFloat(RegExp.$1)), b ? (b.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(b.style.opacity)) : !1; 5063 }(), 5064 R = function (a) { 5065 return v.test("string" == typeof a ? a : (a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1; 5066 }, 5067 S = function (a) { 5068 window.console && console.log(a); 5069 }, 5070 T = "", 5071 U = "", 5072 V = function (a, b) { 5073 b = b || M; 5074 var c, 5075 d, 5076 e = b.style; 5077 if (void 0 !== e[a]) return a; 5078 for (a = a.charAt(0).toUpperCase() + a.substr(1), c = ["O", "Moz", "ms", "Ms", "Webkit"], d = 5; --d > -1 && void 0 === e[c[d] + a];); 5079 return d >= 0 ? (U = 3 === d ? "ms" : c[d], T = "-" + U.toLowerCase() + "-", U + a) : null; 5080 }, 5081 W = K.defaultView ? K.defaultView.getComputedStyle : function () {}, 5082 X = g.getStyle = function (a, b, c, d, e) { 5083 var f; 5084 return Q || "opacity" !== b ? (!d && a.style[b] ? f = a.style[b] : (c = c || W(a)) ? f = c[b] || c.getPropertyValue(b) || c.getPropertyValue(b.replace(z, "-$1").toLowerCase()) : a.currentStyle && (f = a.currentStyle[b]), null == e || f && "none" !== f && "auto" !== f && "auto auto" !== f ? f : e) : R(a); 5085 }, 5086 Y = O.convertToPixels = function (a, c, d, e, f) { 5087 if ("px" === e || !e) return d; 5088 if ("auto" === e || !d) return 0; 5089 var h, 5090 i, 5091 j, 5092 k = D.test(c), 5093 l = a, 5094 m = M.style, 5095 n = 0 > d; 5096 if (n && (d = -d), "%" === e && -1 !== c.indexOf("border")) h = d / 100 * (k ? a.clientWidth : a.clientHeight);else { 5097 if (m.cssText = "border:0 solid red;position:" + X(a, "position") + ";line-height:0;", "%" !== e && l.appendChild && "v" !== e.charAt(0) && "rem" !== e) m[k ? "borderLeftWidth" : "borderTopWidth"] = d + e;else { 5098 if (l = a.parentNode || K.body, i = l._gsCache, j = b.ticker.frame, i && k && i.time === j) return i.width * d / 100; 5099 m[k ? "width" : "height"] = d + e; 5100 } 5101 l.appendChild(M), h = parseFloat(M[k ? "offsetWidth" : "offsetHeight"]), l.removeChild(M), k && "%" === e && g.cacheWidths !== !1 && (i = l._gsCache = l._gsCache || {}, i.time = j, i.width = h / d * 100), 0 !== h || f || (h = Y(a, c, d, e, !0)); 5102 } 5103 return n ? -h : h; 5104 }, 5105 Z = O.calculateOffset = function (a, b, c) { 5106 if ("absolute" !== X(a, "position", c)) return 0; 5107 var d = "left" === b ? "Left" : "Top", 5108 e = X(a, "margin" + d, c); 5109 return a["offset" + d] - (Y(a, b, parseFloat(e), e.replace(u, "")) || 0); 5110 }, 5111 $ = function (a, b) { 5112 var c, 5113 d, 5114 e, 5115 f = {}; 5116 if (b = b || W(a, null)) { 5117 if (c = b.length) for (; --c > -1;) e = b[c], (-1 === e.indexOf("-transform") || za === e) && (f[e.replace(A, C)] = b.getPropertyValue(e));else for (c in b) (-1 === c.indexOf("Transform") || ya === c) && (f[c] = b[c]); 5118 } else if (b = a.currentStyle || a.style) for (c in b) "string" == typeof c && void 0 === f[c] && (f[c.replace(A, C)] = b[c]); 5119 return Q || (f.opacity = R(a)), d = La(a, b, !1), f.rotation = d.rotation, f.skewX
vendor: 50,811 bytes, lines 5119-5926
5119= d.skewX, f.scaleX = d.scaleX, f.scaleY = d.scaleY, f.x = d.x, f.y = d.y, Ba && (f.z = d.z, f.rotationX = d.rotationX, f.rotationY = d.rotationY, f.scaleZ = d.scaleZ), f.filters && delete f.filters, f; 5120 }, 5121 _ = function (a, b, c, d, e) { 5122 var f, 5123 g, 5124 h, 5125 i = {}, 5126 j = a.style; 5127 for (g in c) "cssText" !== g && "length" !== g && isNaN(g) && (b[g] !== (f = c[g]) || e && e[g]) && -1 === g.indexOf("Origin") && ("number" == typeof f || "string" == typeof f) && (i[g] = "auto" !== f || "left" !== g && "top" !== g ? "" !== f && "auto" !== f && "none" !== f || "string" != typeof b[g] || "" === b[g].replace(t, "") ? f : 0 : Z(a, g), void 0 !== j[g] && (h = new oa(j, g, j[g], h))); 5128 if (d) for (g in d) "className" !== g && (i[g] = d[g]); 5129 return { 5130 difs: i, 5131 firstMPT: h 5132 }; 5133 }, 5134 aa = { 5135 width: ["Left", "Right"], 5136 height: ["Top", "Bottom"] 5137 }, 5138 ba = ["marginLeft", "marginRight", "marginTop", "marginBottom"], 5139 ca = function (a, b, c) { 5140 var d = parseFloat("width" === b ? a.offsetWidth : a.offsetHeight), 5141 e = aa[b], 5142 f = e.length; 5143 for (c = c || W(a, null); --f > -1;) d -= parseFloat(X(a, "padding" + e[f], c, !0)) || 0, d -= parseFloat(X(a, "border" + e[f] + "Width", c, !0)) || 0; 5144 return d; 5145 }, 5146 da = function (a, b) { 5147 if ("contain" === a || "auto" === a || "auto auto" === a) return a + " "; 5148 (null == a || "" === a) && (a = "0 0"); 5149 var c = a.split(" "), 5150 d = -1 !== a.indexOf("left") ? "0%" : -1 !== a.indexOf("right") ? "100%" : c[0], 5151 e = -1 !== a.indexOf("top") ? "0%" : -1 !== a.indexOf("bottom") ? "100%" : c[1]; 5152 return null == e ? e = "center" === d ? "50%" : "0" : "center" === e && (e = "50%"), ("center" === d || isNaN(parseFloat(d)) && -1 === (d + "").indexOf("=")) && (d = "50%"), a = d + " " + e + (c.length > 2 ? " " + c[2] : ""), b && (b.oxp = -1 !== d.indexOf("%"), b.oyp = -1 !== e.indexOf("%"), b.oxr = "=" === d.charAt(1), b.oyr = "=" === e.charAt(1), b.ox = parseFloat(d.replace(t, "")), b.oy = parseFloat(e.replace(t, "")), b.v = a), b || a; 5153 }, 5154 ea = function (a, b) { 5155 return "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) : parseFloat(a) - parseFloat(b); 5156 }, 5157 fa = function (a, b) { 5158 return null == a ? b : "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) + b : parseFloat(a); 5159 }, 5160 ga = function (a, b, c, d) { 5161 var e, 5162 f, 5163 g, 5164 h, 5165 i, 5166 j = 1e-6; 5167 return null == a ? h = b : "number" == typeof a ? h = a : (e = 360, f = a.split("_"), i = "=" === a.charAt(1), g = (i ? parseInt(a.charAt(0) + "1", 10) * parseFloat(f[0].substr(2)) : parseFloat(f[0])) * (-1 === a.indexOf("rad") ? 1 : I) - (i ? 0 : b), f.length && (d && (d[c] = b + g), -1 !== a.indexOf("short") && (g %= e, g !== g % (e / 2) && (g = 0 > g ? g + e : g - e)), -1 !== a.indexOf("_cw") && 0 > g ? g = (g + 9999999999 * e) % e - (g / e | 0) * e : -1 !== a.indexOf("ccw") && g > 0 && (g = (g - 9999999999 * e) % e - (g / e | 0) * e)), h = b + g), j > h && h > -j && (h = 0), h; 5168 }, 5169 ha = { 5170 aqua: [0, 255, 255], 5171 lime: [0, 255, 0], 5172 silver: [192, 192, 192], 5173 black: [0, 0, 0], 5174 maroon: [128, 0, 0], 5175 teal: [0, 128, 128], 5176 blue: [0, 0, 255], 5177 navy: [0, 0, 128], 5178 white: [255, 255, 255], 5179 fuchsia: [255, 0, 255], 5180 olive: [128, 128, 0], 5181 yellow: [255, 255, 0], 5182 orange: [255, 165, 0], 5183 gray: [128, 128, 128], 5184 purple: [128, 0, 128], 5185 green: [0, 128, 0], 5186 red: [255, 0, 0], 5187 pink: [255, 192, 203], 5188 cyan: [0, 255, 255], 5189 transparent: [255, 255, 255, 0] 5190 }, 5191 ia = function (a, b, c) { 5192 return a = 0 > a ? a + 1 : a > 1 ? a - 1 : a, 255 * (1 > 6 * a ? b + (c - b) * a * 6 : .5 > a ? c : 2 > 3 * a ? b + (c - b) * (2 / 3 - a) * 6 : b) + .5 | 0; 5193 }, 5194 ja = g.parseColor = function (a, b) { 5195 var c, d, e, f, g, h, i, j, k, l, m; 5196 if (a) { 5197 if ("number" == typeof a) c = [a >> 16, a >> 8 & 255, 255 & a];else { 5198 if ("," === a.charAt(a.length - 1) && (a = a.substr(0, a.length - 1)), ha[a]) c = ha[a];else if ("#" === a.charAt(0)) 4 === a.length && (d = a.charAt(1), e = a.charAt(2), f = a.charAt(3), a = "#" + d + d + e + e + f + f), a = parseInt(a.substr(1), 16), c = [a >> 16, a >> 8 & 255, 255 & a];else if ("hsl" === a.substr(0, 3)) { 5199 if (c = m = a.match(q), b) { 5200 if (-1 !== a.indexOf("=")) return a.match(r); 5201 } else g = Number(c[0]) % 360 / 360, h = Number(c[1]) / 100, i = Number(c[2]) / 100, e = .5 >= i ? i * (h + 1) : i + h - i * h, d = 2 * i - e, c.length > 3 && (c[3] = Number(a[3])), c[0] = ia(g + 1 / 3, d, e), c[1] = ia(g, d, e), c[2] = ia(g - 1 / 3, d, e); 5202 } else c = a.match(q) || ha.transparent; 5203 c[0] = Number(c[0]), c[1] = Number(c[1]), c[2] = Number(c[2]), c.length > 3 && (c[3] = Number(c[3])); 5204 } 5205 } else c = ha.black; 5206 return b && !m && (d = c[0] / 255, e = c[1] / 255, f = c[2] / 255, j = Math.max(d, e, f), k = Math.min(d, e, f), i = (j + k) / 2, j === k ? g = h = 0 : (l = j - k, h = i > .5 ? l / (2 - j - k) : l / (j + k), g = j === d ? (e - f) / l + (f > e ? 6 : 0) : j === e ? (f - d) / l + 2 : (d - e) / l + 4, g *= 60), c[0] = g + .5 | 0, c[1] = 100 * h + .5 | 0, c[2] = 100 * i + .5 | 0), c; 5207 }, 5208 ka = function (a, b) { 5209 var c, 5210 d, 5211 e, 5212 f = a.match(la) || [], 5213 g = 0, 5214 h = f.length ? "" : a; 5215 for (c = 0; c < f.length; c++) d = f[c], e = a.substr(g, a.indexOf(d, g) - g), g += e.length + d.length, d = ja(d, b), 3 === d.length && d.push(1), h += e + (b ? "hsla(" + d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : "rgba(" + d.join(",")) + ")"; 5216 return h; 5217 }, 5218 la = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b"; 5219 for (j in ha) la += "|" + j + "\\b"; 5220 la = new RegExp(la + ")", "gi"), g.colorStringFilter = function (a) { 5221 var b, 5222 c = a[0] + a[1]; 5223 la.lastIndex = 0, la.test(c) && (b = -1 !== c.indexOf("hsl(") || -1 !== c.indexOf("hsla("), a[0] = ka(a[0], b), a[1] = ka(a[1], b)); 5224 }, b.defaultStringFilter || (b.defaultStringFilter = g.colorStringFilter); 5225 var ma = function (a, b, c, d) { 5226 if (null == a) return function (a) { 5227 return a; 5228 }; 5229 var e, 5230 f = b ? (a.match(la) || [""])[0] : "", 5231 g = a.split(f).join("").match(s) || [], 5232 h = a.substr(0, a.indexOf(g[0])), 5233 i = ")" === a.charAt(a.length - 1) ? ")" : "", 5234 j = -1 !== a.indexOf(" ") ? " " : ",", 5235 k = g.length, 5236 l = k > 0 ? g[0].replace(q, "") : ""; 5237 return k ? e = b ? function (a) { 5238 var b, m, n, o; 5239 if ("number" == typeof a) a += l;else if (d && G.test(a)) { 5240 for (o = a.replace(G, "|").split("|"), n = 0; n < o.length; n++) o[n] = e(o[n]); 5241 return o.join(","); 5242 } 5243 if (b = (a.match(la) || [f])[0], m = a.split(b).join("").match(s) || [], n = m.length, k > n--) for (; ++n < k;) m[n] = c ? m[(n - 1) / 2 | 0] : g[n]; 5244 return h + m.join(j) + j + b + i + (-1 !== a.indexOf("inset") ? " inset" : ""); 5245 } : function (a) { 5246 var b, f, m; 5247 if ("number" == typeof a) a += l;else if (d && G.test(a)) { 5248 for (f = a.replace(G, "|").split("|"), m = 0; m < f.length; m++) f[m] = e(f[m]); 5249 return f.join(","); 5250 } 5251 if (b = a.match(s) || [], m = b.length, k > m--) for (; ++m < k;) b[m] = c ? b[(m - 1) / 2 | 0] : g[m]; 5252 return h + b.join(j) + i; 5253 } : function (a) { 5254 return a; 5255 }; 5256 }, 5257 na = function (a) { 5258 return a = a.split(","), function (b, c, d, e, f, g, h) { 5259 var i, 5260 j = (c + "").split(" "); 5261 for (h = {}, i = 0; 4 > i; i++) h[a[i]] = j[i] = j[i] || j[(i - 1) / 2 >> 0]; 5262 return e.parse(b, h, f, g); 5263 }; 5264 }, 5265 oa = (O._setPluginRatio = function (a) { 5266 this.plugin.setRatio(a); 5267 for (var b, c, d, e, f, g = this.data, h = g.proxy, i = g.firstMPT, j = 1e-6; i;) b = h[i.v], i.r ? b = Math.round(b) : j > b && b > -j && (b = 0), i.t[i.p] = b, i = i._next; 5268 if (g.autoRotate && (g.autoRotate.rotation = h.rotation), 1 === a || 0 === a) for (i = g.firstMPT, f = 1 === a ? "e" : "b"; i;) { 5269 if (c = i.t, c.type) { 5270 if (1 === c.type) { 5271 for (e = c.xs0 + c.s + c.xs1, d = 1; d < c.l; d++) e += c["xn" + d] + c["xs" + (d + 1)]; 5272 c[f] = e; 5273 } 5274 } else c[f] = c.s + c.xs0; 5275 i = i._next; 5276 } 5277 }, function (a, b, c, d, e) { 5278 this.t = a, this.p = b, this.v = c, this.r = e, d && (d._prev = this, this._next = d); 5279 }), 5280 pa = (O._parseToProxy = function (a, b, c, d, e, f) { 5281 var g, 5282 h, 5283 i, 5284 j, 5285 k, 5286 l = d, 5287 m = {}, 5288 n = {}, 5289 o = c._transform, 5290 p = J; 5291 for (c._transform = null, J = b, d = k = c.parse(a, b, d, e), J = p, f && (c._transform = o, l && (l._prev = null, l._prev && (l._prev._next = null))); d && d !== l;) { 5292 if (d.type <= 1 && (h = d.p, n[h] = d.s + d.c, m[h] = d.s, f || (j = new oa(d, "s", h, j, d.r), d.c = 0), 1 === d.type)) for (g = d.l; --g > 0;) i = "xn" + g, h = d.p + "_" + i, n[h] = d.data[i], m[h] = d[i], f || (j = new oa(d, i, h, j, d.rxp[i])); 5293 d = d._next; 5294 } 5295 return { 5296 proxy: m, 5297 end: n, 5298 firstMPT: j, 5299 pt: k 5300 }; 5301 }, O.CSSPropTween = function (a, b, d, e, g, h, i, j, k, l, m) { 5302 this.t = a, this.p = b, this.s = d, this.c = e, this.n = i || b, a instanceof pa || f.push(this.n), this.r = j, this.type = h || 0, k && (this.pr = k, c = !0), this.b = void 0 === l ? d : l, this.e = void 0 === m ? d + e : m, g && (this._next = g, g._prev = this); 5303 }), 5304 qa = function (a, b, c, d, e, f) { 5305 var g = new pa(a, b, c, d - c, e, -1, f); 5306 return g.b = c, g.e = g.xs0 = d, g; 5307 }, 5308 ra = g.parseComplex = function (a, b, c, d, e, f, g, h, i, j) { 5309 c = c || f || "", g = new pa(a, b, 0, 0, g, j ? 2 : 1, null, !1, h, c, d), d += ""; 5310 var l, 5311 m, 5312 n, 5313 o, 5314 p, 5315 s, 5316 t, 5317 u, 5318 v, 5319 w, 5320 x, 5321 y, 5322 z, 5323 A = c.split(", ").join(",").split(" "), 5324 B = d.split(", ").join(",").split(" "), 5325 C = A.length, 5326 D = k !== !1; 5327 for ((-1 !== d.indexOf(",") || -1 !== c.indexOf(",")) && (A = A.join(" ").replace(G, ", ").split(" "), B = B.join(" ").replace(G, ", ").split(" "), C = A.length), C !== B.length && (A = (f || "").split(" "), C = A.length), g.plugin = i, g.setRatio = j, la.lastIndex = 0, l = 0; C > l; l++) if (o = A[l], p = B[l], u = parseFloat(o), u || 0 === u) g.appendXtra("", u, ea(p, u), p.replace(r, ""), D && -1 !== p.indexOf("px"), !0);else if (e && la.test(o)) y = "," === p.charAt(p.length - 1) ? ")," : ")", z = -1 !== p.indexOf("hsl") && Q, o = ja(o, z), p = ja(p, z), v = o.length + p.length > 6, v && !Q && 0 === p[3] ? (g["xs" + g.l] += g.l ? " transparent" : "transparent", g.e = g.e.split(B[l]).join("transparent")) : (Q || (v = !1), z ? g.appendXtra(v ? "hsla(" : "hsl(", o[0], ea(p[0], o[0]), ",", !1, !0).appendXtra("", o[1], ea(p[1], o[1]), "%,", !1).appendXtra("", o[2], ea(p[2], o[2]), v ? "%," : "%" + y, !1) : g.appendXtra(v ? "rgba(" : "rgb(", o[0], p[0] - o[0], ",", !0, !0).appendXtra("", o[1], p[1] - o[1], ",", !0).appendXtra("", o[2], p[2] - o[2], v ? "," : y, !0), v && (o = o.length < 4 ? 1 : o[3], g.appendXtra("", o, (p.length < 4 ? 1 : p[3]) - o, y, !1))), la.lastIndex = 0;else if (s = o.match(q)) { 5328 if (t = p.match(r), !t || t.length !== s.length) return g; 5329 for (n = 0, m = 0; m < s.length; m++) x = s[m], w = o.indexOf(x, n), g.appendXtra(o.substr(n, w - n), Number(x), ea(t[m], x), "", D && "px" === o.substr(w + x.length, 2), 0 === m), n = w + x.length; 5330 g["xs" + g.l] += o.substr(n); 5331 } else g["xs" + g.l] += g.l ? " " + p : p; 5332 if (-1 !== d.indexOf("=") && g.data) { 5333 for (y = g.xs0 + g.data.s, l = 1; l < g.l; l++) y += g["xs" + l] + g.data["xn" + l]; 5334 g.e = y + g["xs" + l]; 5335 } 5336 return g.l || (g.type = -1, g.xs0 = g.e), g.xfirst || g; 5337 }, 5338 sa = 9; 5339 for (j = pa.prototype, j.l = j.pr = 0; --sa > 0;) j["xn" + sa] = 0, j["xs" + sa] = ""; 5340 j.xs0 = "", j._next = j._prev = j.xfirst = j.data = j.plugin = j.setRatio = j.rxp = null, j.appendXtra = function (a, b, c, d, e, f) { 5341 var g = this, 5342 h = g.l; 5343 return g["xs" + h] += f && h ? " " + a : a || "", c || 0 === h || g.plugin ? (g.l++, g.type = g.setRatio ? 2 : 1, g["xs" + g.l] = d || "", h > 0 ? (g.data["xn" + h] = b + c, g.rxp["xn" + h] = e, g["xn" + h] = b, g.plugin || (g.xfirst = new pa(g, "xn" + h, b, c, g.xfirst || g, 0, g.n, e, g.pr), g.xfirst.xs0 = 0), g) : (g.data = { 5344 s: b + c 5345 }, g.rxp = {}, g.s = b, g.c = c, g.r = e, g)) : (g["xs" + h] += b + (d || ""), g); 5346 }; 5347 var ta = function (a, b) { 5348 b = b || {}, this.p = b.prefix ? V(a) || a : a, i[a] = i[this.p] = this, this.format = b.formatter || ma(b.defaultValue, b.color, b.collapsible, b.multi), b.parser && (this.parse = b.parser), this.clrs = b.color, this.multi = b.multi, this.keyword = b.keyword, this.dflt = b.defaultValue, this.pr = b.priority || 0; 5349 }, 5350 ua = O._registerComplexSpecialProp = function (a, b, c) { 5351 "object" != typeof b && (b = { 5352 parser: c 5353 }); 5354 var d, 5355 e, 5356 f = a.split(","), 5357 g = b.defaultValue; 5358 for (c = c || [g], d = 0; d < f.length; d++) b.prefix = 0 === d && b.prefix, b.defaultValue = c[d] || g, e = new ta(f[d], b); 5359 }, 5360 va = function (a) { 5361 if (!i[a]) { 5362 var b = a.charAt(0).toUpperCase() + a.substr(1) + "Plugin"; 5363 ua(a, { 5364 parser: function (a, c, d, e, f, g, j) { 5365 var k = h.com.greensock.plugins[b]; 5366 return k ? (k._cssRegister(), i[d].parse(a, c, d, e, f, g, j)) : (S("Error: " + b + " js file not loaded."), f); 5367 } 5368 }); 5369 } 5370 }; 5371 j = ta.prototype, j.parseComplex = function (a, b, c, d, e, f) { 5372 var g, 5373 h, 5374 i, 5375 j, 5376 k, 5377 l, 5378 m = this.keyword; 5379 if (this.multi && (G.test(c) || G.test(b) ? (h = b.replace(G, "|").split("|"), i = c.replace(G, "|").split("|")) : m && (h = [b], i = [c])), i) { 5380 for (j = i.length > h.length ? i.length : h.length, g = 0; j > g; g++) b = h[g] = h[g] || this.dflt, c = i[g] = i[g] || this.dflt, m && (k = b.indexOf(m), l = c.indexOf(m), k !== l && (-1 === l ? h[g] = h[g].split(m).join("") : -1 === k && (h[g] += " " + m))); 5381 b = h.join(", "), c = i.join(", "); 5382 } 5383 return ra(a, this.p, b, c, this.clrs, this.dflt, d, this.pr, e, f); 5384 }, j.parse = function (a, b, c, d, f, g, h) { 5385 return this.parseComplex(a.style, this.format(X(a, this.p, e, !1, this.dflt)), this.format(b), f, g); 5386 }, g.registerSpecialProp = function (a, b, c) { 5387 ua(a, { 5388 parser: function (a, d, e, f, g, h, i) { 5389 var j = new pa(a, e, 0, 0, g, 2, e, !1, c); 5390 return j.plugin = h, j.setRatio = b(a, d, f._tween, e), j; 5391 }, 5392 priority: c 5393 }); 5394 }, g.useSVGTransformAttr = m || n; 5395 var wa, 5396 xa = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), 5397 ya = V("transform"), 5398 za = T + "transform", 5399 Aa = V("transformOrigin"), 5400 Ba = null !== V("perspective"), 5401 Ca = O.Transform = function () { 5402 this.perspective = parseFloat(g.defaultTransformPerspective) || 0, this.force3D = g.defaultForce3D !== !1 && Ba ? g.defaultForce3D || "auto" : !1; 5403 }, 5404 Da = window.SVGElement, 5405 Ea = function (a, b, c) { 5406 var d, 5407 e = K.createElementNS("http://www.w3.org/2000/svg", a), 5408 f = /([a-z])([A-Z])/g; 5409 for (d in c) e.setAttributeNS(null, d.replace(f, "$1-$2").toLowerCase(), c[d]); 5410 return b.appendChild(e), e; 5411 }, 5412 Fa = K.documentElement, 5413 Ga = function () { 5414 var a, 5415 b, 5416 c, 5417 d = p || /Android/i.test(P) && !window.chrome; 5418 return K.createElementNS && !d && (a = Ea("svg", Fa), b = Ea("rect", a, { 5419 width: 100, 5420 height: 50, 5421 x: 100 5422 }), c = b.getBoundingClientRect().width, b.style[Aa] = "50% 50%", b.style[ya] = "scaleX(0.5)", d = c === b.getBoundingClientRect().width && !(n && Ba), Fa.removeChild(a)), d; 5423 }(), 5424 Ha = function (a, b, c, d, e) { 5425 var f, 5426 h, 5427 i, 5428 j, 5429 k, 5430 l, 5431 m, 5432 n, 5433 o, 5434 p, 5435 q, 5436 r, 5437 s, 5438 t, 5439 u = a._gsTransform, 5440 v = Ka(a, !0); 5441 u && (s = u.xOrigin, t = u.yOrigin), (!d || (f = d.split(" ")).length < 2) && (m = a.getBBox(), b = da(b).split(" "), f = [(-1 !== b[0].indexOf("%") ? parseFloat(b[0]) / 100 * m.width : parseFloat(b[0])) + m.x, (-1 !== b[1].indexOf("%") ? parseFloat(b[1]) / 100 * m.height : parseFloat(b[1])) + m.y]), c.xOrigin = j = parseFloat(f[0]), c.yOrigin = k = parseFloat(f[1]), d && v !== Ja && (l = v[0], m = v[1], n = v[2], o = v[3], p = v[4], q = v[5], r = l * o - m * n, h = j * (o / r) + k * (-n / r) + (n * q - o * p) / r, i = j * (-m / r) + k * (l / r) - (l * q - m * p) / r, j = c.xOrigin = f[0] = h, k = c.yOrigin = f[1] = i), u && (e || e !== !1 && g.defaultSmoothOrigin !== !1 ? (h = j - s, i = k - t, u.xOffset += h * v[0] + i * v[2] - h, u.yOffset += h * v[1] + i * v[3] - i) : u.xOffset = u.yOffset = 0), a.setAttribute("data-svg-origin", f.join(" ")); 5442 }, 5443 Ia = function (a) { 5444 return !!(Da && "function" == typeof a.getBBox && a.getCTM && (!a.parentNode || a.parentNode.getBBox && a.parentNode.getCTM)); 5445 }, 5446 Ja = [1, 0, 0, 1, 0, 0], 5447 Ka = function (a, b) { 5448 var c, 5449 d, 5450 e, 5451 f, 5452 g, 5453 h = a._gsTransform || new Ca(), 5454 i = 1e5; 5455 if (ya ? d = X(a, za, null, !0) : a.currentStyle && (d = a.currentStyle.filter.match(E), d = d && 4 === d.length ? [d[0].substr(4), Number(d[2].substr(4)), Number(d[1].substr(4)), d[3].substr(4), h.x || 0, h.y || 0].join(",") : ""), c = !d || "none" === d || "matrix(1, 0, 0, 1, 0, 0)" === d, (h.svg || a.getBBox && Ia(a)) && (c && -1 !== (a.style[ya] + "").indexOf("matrix") && (d = a.style[ya], c = 0), e = a.getAttribute("transform"), c && e && (-1 !== e.indexOf("matrix") ? (d = e, c = 0) : -1 !== e.indexOf("translate") && (d = "matrix(1,0,0,1," + e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")", c = 0))), c) return Ja; 5456 for (e = (d || "").match(/(?:\-|\b)[\d\-\.e]+\b/gi) || [], sa = e.length; --sa > -1;) f = Number(e[sa]), e[sa] = (g = f - (f |= 0)) ? (g * i + (0 > g ? -.5 : .5) | 0) / i + f : f; 5457 return b && e.length > 6 ? [e[0], e[1], e[4], e[5], e[12], e[13]] : e; 5458 }, 5459 La = O.getTransform = function (a, c, d, f) { 5460 if (a._gsTransform && d && !f) return a._gsTransform; 5461 var h, 5462 i, 5463 j, 5464 k, 5465 l, 5466 m, 5467 n = d ? a._gsTransform || new Ca() : new Ca(), 5468 o = n.scaleX < 0, 5469 p = 2e-5, 5470 q = 1e5, 5471 r = Ba ? parseFloat(X(a, Aa, c, !1, "0 0 0").split(" ")[2]) || n.zOrigin || 0 : 0, 5472 s = parseFloat(g.defaultTransformPerspective) || 0; 5473 if (n.svg = !(!a.getBBox || !Ia(a)), n.svg && (Ha(a, X(a, Aa, e, !1, "50% 50%") + "", n, a.getAttribute("data-svg-origin")), wa = g.useSVGTransformAttr || Ga), h = Ka(a), h !== Ja) { 5474 if (16 === h.length) { 5475 var t, 5476 u, 5477 v, 5478 w, 5479 x, 5480 y = h[0], 5481 z = h[1], 5482 A = h[2], 5483 B = h[3], 5484 C = h[4], 5485 D = h[5], 5486 E = h[6], 5487 F = h[7], 5488 G = h[8], 5489 H = h[9], 5490 J = h[10], 5491 K = h[12], 5492 L = h[13], 5493 M = h[14], 5494 N = h[11], 5495 O = Math.atan2(E, J); 5496 n.zOrigin && (M = -n.zOrigin, K = G * M - h[12], L = H * M - h[13], M = J * M + n.zOrigin - h[14]), n.rotationX = O * I, O && (w = Math.cos(-O), x = Math.sin(-O), t = C * w + G * x, u = D * w + H * x, v = E * w + J * x, G = C * -x + G * w, H = D * -x + H * w, J = E * -x + J * w, N = F * -x + N * w, C = t, D = u, E = v), O = Math.atan2(-A, J), n.rotationY = O * I, O && (w = Math.cos(-O), x = Math.sin(-O), t = y * w - G * x, u = z * w - H * x, v = A * w - J * x, H = z * x + H * w, J = A * x + J * w, N = B * x + N * w, y = t, z = u, A = v), O = Math.atan2(z, y), n.rotation = O * I, O && (w = Math.cos(-O), x = Math.sin(-O), y = y * w + C * x, u = z * w + D * x, D = z * -x + D * w, E = A * -x + E * w, z = u), n.rotationX && Math.abs(n.rotationX) + Math.abs(n.rotation) > 359.9 && (n.rotationX = n.rotation = 0, n.rotationY = 180 - n.rotationY), n.scaleX = (Math.sqrt(y * y + z * z) * q + .5 | 0) / q, n.scaleY = (Math.sqrt(D * D + H * H) * q + .5 | 0) / q, n.scaleZ = (Math.sqrt(E * E + J * J) * q + .5 | 0) / q, n.skewX = 0, n.perspective = N ? 1 / (0 > N ? -N : N) : 0, n.x = K, n.y = L, n.z = M, n.svg && (n.x -= n.xOrigin - (n.xOrigin * y - n.yOrigin * C), n.y -= n.yOrigin - (n.yOrigin * z - n.xOrigin * D)); 5497 } else if ((!Ba || f || !h.length || n.x !== h[4] || n.y !== h[5] || !n.rotationX && !n.rotationY) && (void 0 === n.x || "none" !== X(a, "display", c))) { 5498 var P = h.length >= 6, 5499 Q = P ? h[0] : 1, 5500 R = h[1] || 0, 5501 S = h[2] || 0, 5502 T = P ? h[3] : 1; 5503 n.x = h[4] || 0, n.y = h[5] || 0, j = Math.sqrt(Q * Q + R * R), k = Math.sqrt(T * T + S * S), l = Q || R ? Math.atan2(R, Q) * I : n.rotation || 0, m = S || T ? Math.atan2(S, T) * I + l : n.skewX || 0, Math.abs(m) > 90 && Math.abs(m) < 270 && (o ? (j *= -1, m += 0 >= l ? 180 : -180, l += 0 >= l ? 180 : -180) : (k *= -1, m += 0 >= m ? 180 : -180)), n.scaleX = j, n.scaleY = k, n.rotation = l, n.skewX = m, Ba && (n.rotationX = n.rotationY = n.z = 0, n.perspective = s, n.scaleZ = 1), n.svg && (n.x -= n.xOrigin - (n.xOrigin * Q + n.yOrigin * S), n.y -= n.yOrigin - (n.xOrigin * R + n.yOrigin * T)); 5504 } 5505 n.zOrigin = r; 5506 for (i in n) n[i] < p && n[i] > -p && (n[i] = 0); 5507 } 5508 return d && (a._gsTransform = n, n.svg && (wa && a.style[ya] ? b.delayedCall(.001, function () { 5509 Pa(a.style, ya); 5510 }) : !wa && a.getAttribute("transform") && b.delayedCall(.001, function () { 5511 a.removeAttribute("transform"); 5512 }))), n; 5513 }, 5514 Ma = function (a) { 5515 var b, 5516 c, 5517 d = this.data, 5518 e = -d.rotation * H, 5519 f = e + d.skewX * H, 5520 g = 1e5, 5521 h = (Math.cos(e) * d.scaleX * g | 0) / g, 5522 i = (Math.sin(e) * d.scaleX * g | 0) / g, 5523 j = (Math.sin(f) * -d.scaleY * g | 0) / g, 5524 k = (Math.cos(f) * d.scaleY * g | 0) / g, 5525 l = this.t.style, 5526 m = this.t.currentStyle; 5527 if (m) { 5528 c = i, i = -j, j = -c, b = m.filter, l.filter = ""; 5529 var n, 5530 o, 5531 q = this.t.offsetWidth, 5532 r = this.t.offsetHeight, 5533 s = "absolute" !== m.position, 5534 t = "progid:DXImageTransform.Microsoft.Matrix(M11=" + h + ", M12=" + i + ", M21=" + j + ", M22=" + k, 5535 w = d.x + q * d.xPercent / 100, 5536 x = d.y + r * d.yPercent / 100; 5537 if (null != d.ox && (n = (d.oxp ? q * d.ox * .01 : d.ox) - q / 2, o = (d.oyp ? r * d.oy * .01 : d.oy) - r / 2, w += n - (n * h + o * i), x += o - (n * j + o * k)), s ? (n = q / 2, o = r / 2, t += ", Dx=" + (n - (n * h + o * i) + w) + ", Dy=" + (o - (n * j + o * k) + x) + ")") : t += ", sizingMethod='auto expand')", -1 !== b.indexOf("DXImageTransform.Microsoft.Matrix(") ? l.filter = b.replace(F, t) : l.filter = t + " " + b, (0 === a || 1 === a) && 1 === h && 0 === i && 0 === j && 1 === k && (s && -1 === t.indexOf("Dx=0, Dy=0") || v.test(b) && 100 !== parseFloat(RegExp.$1) || -1 === b.indexOf(b.indexOf("Alpha")) && l.removeAttribute("filter")), !s) { 5538 var y, 5539 z, 5540 A, 5541 B = 8 > p ? 1 : -1; 5542 for (n = d.ieOffsetX || 0, o = d.ieOffsetY || 0, d.ieOffsetX = Math.round((q - ((0 > h ? -h : h) * q + (0 > i ? -i : i) * r)) / 2 + w), d.ieOffsetY = Math.round((r - ((0 > k ? -k : k) * r + (0 > j ? -j : j) * q)) / 2 + x), sa = 0; 4 > sa; sa++) z = ba[sa], y = m[z], c = -1 !== y.indexOf("px") ? parseFloat(y) : Y(this.t, z, parseFloat(y), y.replace(u, "")) || 0, A = c !== d[z] ? 2 > sa ? -d.ieOffsetX : -d.ieOffsetY : 2 > sa ? n - d.ieOffsetX : o - d.ieOffsetY, l[z] = (d[z] = Math.round(c - A * (0 === sa || 2 === sa ? 1 : B))) + "px"; 5543 } 5544 } 5545 }, 5546 Na = O.set3DTransformRatio = O.setTransformRatio = function (a) { 5547 var b, 5548 c, 5549 d, 5550 e, 5551 f, 5552 g, 5553 h, 5554 i, 5555 j, 5556 k, 5557 l, 5558 m, 5559 o, 5560 p, 5561 q, 5562 r, 5563 s, 5564 t, 5565 u, 5566 v, 5567 w, 5568 x, 5569 y, 5570 z = this.data, 5571 A = this.t.style, 5572 B = z.rotation, 5573 C = z.rotationX, 5574 D = z.rotationY, 5575 E = z.scaleX, 5576 F = z.scaleY, 5577 G = z.scaleZ, 5578 I = z.x, 5579 J = z.y, 5580 K = z.z, 5581 L = z.svg, 5582 M = z.perspective, 5583 N = z.force3D; 5584 if (((1 === a || 0 === a) && "auto" === N && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !N) && !K && !M && !D && !C && 1 === G || wa && L || !Ba) return void (B || z.skewX || L ? (B *= H, x = z.skewX * H, y = 1e5, b = Math.cos(B) * E, e = Math.sin(B) * E, c = Math.sin(B - x) * -F, f = Math.cos(B - x) * F, x && "simple" === z.skewType && (s = Math.tan(x), s = Math.sqrt(1 + s * s), c *= s, f *= s, z.skewY && (b *= s, e *= s)), L && (I += z.xOrigin - (z.xOrigin * b + z.yOrigin * c) + z.xOffset, J += z.yOrigin - (z.xOrigin * e + z.yOrigin * f) + z.yOffset, wa && (z.xPercent || z.yPercent) && (p = this.t.getBBox(), I += .01 * z.xPercent * p.width, J += .01 * z.yPercent * p.height), p = 1e-6, p > I && I > -p && (I = 0), p > J && J > -p && (J = 0)), u = (b * y | 0) / y + "," + (e * y | 0) / y + "," + (c * y | 0) / y + "," + (f * y | 0) / y + "," + I + "," + J + ")", L && wa ? this.t.setAttribute("transform", "matrix(" + u) : A[ya] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + u) : A[ya] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + E + ",0,0," + F + "," + I + "," + J + ")"); 5585 if (n && (p = 1e-4, p > E && E > -p && (E = G = 2e-5), p > F && F > -p && (F = G = 2e-5), !M || z.z || z.rotationX || z.rotationY || (M = 0)), B || z.skewX) B *= H, q = b = Math.cos(B), r = e = Math.sin(B), z.skewX && (B -= z.skewX * H, q = Math.cos(B), r = Math.sin(B), "simple" === z.skewType && (s = Math.tan(z.skewX * H), s = Math.sqrt(1 + s * s), q *= s, r *= s, z.skewY && (b *= s, e *= s))), c = -r, f = q;else { 5586 if (!(D || C || 1 !== G || M || L)) return void (A[ya] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) translate3d(" : "translate3d(") + I + "px," + J + "px," + K + "px)" + (1 !== E || 1 !== F ? " scale(" + E + "," + F + ")" : "")); 5587 b = f = 1, c = e = 0; 5588 } 5589 j = 1, d = g = h = i = k = l = 0, m = M ? -1 / M : 0, o = z.zOrigin, p = 1e-6, v = ",", w = "0", B = D * H, B && (q = Math.cos(B), r = Math.sin(B), h = -r, k = m * -r, d = b * r, g = e * r, j = q, m *= q, b *= q, e *= q), B = C * H, B && (q = Math.cos(B), r = Math.sin(B), s = c * q + d * r, t = f * q + g * r, i = j * r, l = m * r, d = c * -r + d * q, g = f * -r + g * q, j *= q, m *= q, c = s, f = t), 1 !== G && (d *= G, g *= G, j *= G, m *= G), 1 !== F && (c *= F, f *= F, i *= F, l *= F), 1 !== E && (b *= E, e *= E, h *= E, k *= E), (o || L) && (o && (I += d * -o, J += g * -o, K += j * -o + o), L && (I += z.xOrigin - (z.xOrigin * b + z.yOrigin * c) + z.xOffset, J += z.yOrigin - (z.xOrigin * e + z.yOrigin * f) + z.yOffset), p > I && I > -p && (I = w), p > J && J > -p && (J = w), p > K && K > -p && (K = 0)), u = z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix3d(" : "matrix3d(", u += (p > b && b > -p ? w : b) + v + (p > e && e > -p ? w : e) + v + (p > h && h > -p ? w : h), u += v + (p > k && k > -p ? w : k) + v + (p > c && c > -p ? w : c) + v + (p > f && f > -p ? w : f), C || D || 1 !== G ? (u += v + (p > i && i > -p ? w : i) + v + (p > l && l > -p ? w : l) + v + (p > d && d > -p ? w : d), u += v + (p > g && g > -p ? w : g) + v + (p > j && j > -p ? w : j) + v + (p > m && m > -p ? w : m) + v) : u += ",0,0,0,0,1,0,", u += I + v + J + v + K + v + (M ? 1 + -K / M : 1) + ")", A[ya] = u; 5590 }; 5591 j = Ca.prototype, j.x = j.y = j.z = j.skewX = j.skewY = j.rotation = j.rotationX = j.rotationY = j.zOrigin = j.xPercent = j.yPercent = j.xOffset = j.yOffset = 0, j.scaleX = j.scaleY = j.scaleZ = 1, ua("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin", { 5592 parser: function (a, b, c, d, f, h, i) { 5593 if (d._lastParsedTransform === i) return f; 5594 d._lastParsedTransform = i; 5595 var j, 5596 k, 5597 l, 5598 m, 5599 n, 5600 o, 5601 p, 5602 q, 5603 r, 5604 s, 5605 t = a._gsTransform, 5606 u = a.style, 5607 v = 1e-6, 5608 w = xa.length, 5609 x = i, 5610 y = {}, 5611 z = "transformOrigin"; 5612 if (i.display ? (m = X(a, "display"), u.display = "block", j = La(a, e, !0, i.parseTransform), u.display = m) : j = La(a, e, !0, i.parseTransform), d._transform = j, "string" == typeof x.transform && ya) m = M.style, m[ya] = x.transform, m.display = "block", m.position = "absolute", K.body.appendChild(M), k = La(M, null, !1), K.body.removeChild(M), k.perspective || (k.perspective = j.perspective), null != x.xPercent && (k.xPercent = fa(x.xPercent, j.xPercent)), null != x.yPercent && (k.yPercent = fa(x.yPercent, j.yPercent));else if ("object" == typeof x) { 5613 if (k = { 5614 scaleX: fa(null != x.scaleX ? x.scaleX : x.scale, j.scaleX), 5615 scaleY: fa(null != x.scaleY ? x.scaleY : x.scale, j.scaleY), 5616 scaleZ: fa(x.scaleZ, j.scaleZ), 5617 x: fa(x.x, j.x), 5618 y: fa(x.y, j.y), 5619 z: fa(x.z, j.z), 5620 xPercent: fa(x.xPercent, j.xPercent), 5621 yPercent: fa(x.yPercent, j.yPercent), 5622 perspective: fa(x.transformPerspective, j.perspective) 5623 }, q = x.directionalRotation, null != q) if ("object" == typeof q) for (m in q) x[m] = q[m];else x.rotation = q; 5624 "string" == typeof x.x && -1 !== x.x.indexOf("%") && (k.x = 0, k.xPercent = fa(x.x, j.xPercent)), "string" == typeof x.y && -1 !== x.y.indexOf("%") && (k.y = 0, k.yPercent = fa(x.y, j.yPercent)), k.rotation = ga("rotation" in x ? x.rotation : "shortRotation" in x ? x.shortRotation + "_short" : "rotationZ" in x ? x.rotationZ : j.rotation, j.rotation, "rotation", y), Ba && (k.rotationX = ga("rotationX" in x ? x.rotationX : "shortRotationX" in x ? x.shortRotationX + "_short" : j.rotationX || 0, j.rotationX, "rotationX", y), k.rotationY = ga("rotationY" in x ? x.rotationY : "shortRotationY" in x ? x.shortRotationY + "_short" : j.rotationY || 0, j.rotationY, "rotationY", y)), k.skewX = null == x.skewX ? j.skewX : ga(x.skewX, j.skewX), k.skewY = null == x.skewY ? j.skewY : ga(x.skewY, j.skewY), (l = k.skewY - j.skewY) && (k.skewX += l, k.rotation += l); 5625 } 5626 for (Ba && null != x.force3D && (j.force3D = x.force3D, p = !0), j.skewType = x.skewType || j.skewType || g.defaultSkewType, o = j.force3D || j.z || j.rotationX || j.rotationY || k.z || k.rotationX || k.rotationY || k.perspective, o || null == x.scale || (k.scaleZ = 1); --w > -1;) c = xa[w], n = k[c] - j[c], (n > v || -v > n || null != x[c] || null != J[c]) && (p = !0, f = new pa(j, c, j[c], n, f), c in y && (f.e = y[c]), f.xs0 = 0, f.plugin = h, d._overwriteProps.push(f.n)); 5627 return n = x.transformOrigin, j.svg && (n || x.svgOrigin) && (r = j.xOffset, s = j.yOffset, Ha(a, da(n), k, x.svgOrigin, x.smoothOrigin), f = qa(j, "xOrigin", (t ? j : k).xOrigin, k.xOrigin, f, z), f = qa(j, "yOrigin", (t ? j : k).yOrigin, k.yOrigin, f, z), (r !== j.xOffset || s !== j.yOffset) && (f = qa(j, "xOffset", t ? r : j.xOffset, j.xOffset, f, z), f = qa(j, "yOffset", t ? s : j.yOffset, j.yOffset, f, z)), n = wa ? null : "0px 0px"), (n || Ba && o && j.zOrigin) && (ya ? (p = !0, c = Aa, n = (n || X(a, c, e, !1, "50% 50%")) + "", f = new pa(u, c, 0, 0, f, -1, z), f.b = u[c], f.plugin = h, Ba ? (m = j.zOrigin, n = n.split(" "), j.zOrigin = (n.length > 2 && (0 === m || "0px" !== n[2]) ? parseFloat(n[2]) : m) || 0, f.xs0 = f.e = n[0] + " " + (n[1] || "50%") + " 0px", f = new pa(j, "zOrigin", 0, 0, f, -1, f.n), f.b = m, f.xs0 = f.e = j.zOrigin) : f.xs0 = f.e = n) : da(n + "", j)), p && (d._transformType = j.svg && wa || !o && 3 !== this._transformType ? 2 : 3), f; 5628 }, 5629 prefix: !0 5630 }), ua("boxShadow", { 5631 defaultValue: "0px 0px 0px 0px #999", 5632 prefix: !0, 5633 color: !0, 5634 multi: !0, 5635 keyword: "inset" 5636 }), ua("borderRadius", { 5637 defaultValue: "0px", 5638 parser: function (a, b, c, f, g, h) { 5639 b = this.format(b); 5640 var i, 5641 j, 5642 k, 5643 l, 5644 m, 5645 n, 5646 o, 5647 p, 5648 q, 5649 r, 5650 s, 5651 t, 5652 u, 5653 v, 5654 w, 5655 x, 5656 y = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], 5657 z = a.style; 5658 for (q = parseFloat(a.offsetWidth), r = parseFloat(a.offsetHeight), i = b.split(" "), j = 0; j < y.length; j++) this.p.indexOf("border") && (y[j] = V(y[j])), m = l = X(a, y[j], e, !1, "0px"), -1 !== m.indexOf(" ") && (l = m.split(" "), m = l[0], l = l[1]), n = k = i[j], o = parseFloat(m), t = m.substr((o + "").length), u = "=" === n.charAt(1), u ? (p = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), p *= parseFloat(n), s = n.substr((p + "").length - (0 > p ? 1 : 0)) || "") : (p = parseFloat(n), s = n.substr((p + "").length)), "" === s && (s = d[c] || t), s !== t && (v = Y(a, "borderLeft", o, t), w = Y(a, "borderTop", o, t), "%" === s ? (m = v / q * 100 + "%", l = w / r * 100 + "%") : "em" === s ? (x = Y(a, "borderLeft", 1, "em"), m = v / x + "em", l = w / x + "em") : (m = v + "px", l = w + "px"), u && (n = parseFloat(m) + p + s, k = parseFloat(l) + p + s)), g = ra(z, y[j], m + " " + l, n + " " + k, !1, "0px", g); 5659 return g; 5660 }, 5661 prefix: !0, 5662 formatter: ma("0px 0px 0px 0px", !1, !0) 5663 }), ua("backgroundPosition", { 5664 defaultValue: "0 0", 5665 parser: function (a, b, c, d, f, g) { 5666 var h, 5667 i, 5668 j, 5669 k, 5670 l, 5671 m, 5672 n = "background-position", 5673 o = e || W(a, null), 5674 q = this.format((o ? p ? o.getPropertyValue(n + "-x") + " " + o.getPropertyValue(n + "-y") : o.getPropertyValue(n) : a.currentStyle.backgroundPositionX + " " + a.currentStyle.backgroundPositionY) || "0 0"), 5675 r = this.format(b); 5676 if (-1 !== q.indexOf("%") != (-1 !== r.indexOf("%")) && (m = X(a, "backgroundImage").replace(B, ""), m && "none" !== m)) { 5677 for (h = q.split(" "), i = r.split(" "), N.setAttribute("src", m), j = 2; --j > -1;) q = h[j], k = -1 !== q.indexOf("%"), k !== (-1 !== i[j].indexOf("%")) && (l = 0 === j ? a.offsetWidth - N.width : a.offsetHeight - N.height, h[j] = k ? parseFloat(q) / 100 * l + "px" : parseFloat(q) / l * 100 + "%"); 5678 q = h.join(" "); 5679 } 5680 return this.parseComplex(a.style, q, r, f, g); 5681 }, 5682 formatter: da 5683 }), ua("backgroundSize", { 5684 defaultValue: "0 0", 5685 formatter: da 5686 }), ua("perspective", { 5687 defaultValue: "0px", 5688 prefix: !0 5689 }), ua("perspectiveOrigin", { 5690 defaultValue: "50% 50%", 5691 prefix: !0 5692 }), ua("transformStyle", { 5693 prefix: !0 5694 }), ua("backfaceVisibility", { 5695 prefix: !0 5696 }), ua("userSelect", { 5697 prefix: !0 5698 }), ua("margin", { 5699 parser: na("marginTop,marginRight,marginBottom,marginLeft") 5700 }), ua("padding", { 5701 parser: na("paddingTop,paddingRight,paddingBottom,paddingLeft") 5702 }), ua("clip", { 5703 defaultValue: "rect(0px,0px,0px,0px)", 5704 parser: function (a, b, c, d, f, g) { 5705 var h, i, j; 5706 return 9 > p ? (i = a.currentStyle, j = 8 > p ? " " : ",", h = "rect(" + i.clipTop + j + i.clipRight + j + i.clipBottom + j + i.clipLeft + ")", b = this.format(b).split(",").join(j)) : (h = this.format(X(a, this.p, e, !1, this.dflt)), b = this.format(b)), this.parseComplex(a.style, h, b, f, g); 5707 } 5708 }), ua("textShadow", { 5709 defaultValue: "0px 0px 0px #999", 5710 color: !0, 5711 multi: !0 5712 }), ua("autoRound,strictUnits", { 5713 parser: function (a, b, c, d, e) { 5714 return e; 5715 } 5716 }), ua("border", { 5717 defaultValue: "0px solid #000", 5718 parser: function (a, b, c, d, f, g) { 5719 return this.parseComplex(a.style, this.format(X(a, "borderTopWidth", e, !1, "0px") + " " + X(a, "borderTopStyle", e, !1, "solid") + " " + X(a, "borderTopColor", e, !1, "#000")), this.format(b), f, g); 5720 }, 5721 color: !0, 5722 formatter: function (a) { 5723 var b = a.split(" "); 5724 return b[0] + " " + (b[1] || "solid") + " " + (a.match(la) || ["#000"])[0]; 5725 } 5726 }), ua("borderWidth", { 5727 parser: na("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth") 5728 }), ua("float,cssFloat,styleFloat", { 5729 parser: function (a, b, c, d, e, f) { 5730 var g = a.style, 5731 h = "cssFloat" in g ? "cssFloat" : "styleFloat"; 5732 return new pa(g, h, 0, 0, e, -1, c, !1, 0, g[h], b); 5733 } 5734 }); 5735 var Oa = function (a) { 5736 var b, 5737 c = this.t, 5738 d = c.filter || X(this.data, "filter") || "", 5739 e = this.s + this.c * a | 0; 5740 100 === e && (-1 === d.indexOf("atrix(") && -1 === d.indexOf("radient(") && -1 === d.indexOf("oader(") ? (c.removeAttribute("filter"), b = !X(this.data, "filter")) : (c.filter = d.replace(x, ""), b = !0)), b || (this.xn1 && (c.filter = d = d || "alpha(opacity=" + e + ")"), -1 === d.indexOf("pacity") ? 0 === e && this.xn1 || (c.filter = d + " alpha(opacity=" + e + ")") : c.filter = d.replace(v, "opacity=" + e)); 5741 }; 5742 ua("opacity,alpha,autoAlpha", { 5743 defaultValue: "1", 5744 parser: function (a, b, c, d, f, g) { 5745 var h = parseFloat(X(a, "opacity", e, !1, "1")), 5746 i = a.style, 5747 j = "autoAlpha" === c; 5748 return "string" == typeof b && "=" === b.charAt(1) && (b = ("-" === b.charAt(0) ? -1 : 1) * parseFloat(b.substr(2)) + h), j && 1 === h && "hidden" === X(a, "visibility", e) && 0 !== b && (h = 0), Q ? f = new pa(i, "opacity", h, b - h, f) : (f = new pa(i, "opacity", 100 * h, 100 * (b - h), f), f.xn1 = j ? 1 : 0, i.zoom = 1, f.type = 2, f.b = "alpha(opacity=" + f.s + ")", f.e = "alpha(opacity=" + (f.s + f.c) + ")", f.data = a, f.plugin = g, f.setRatio = Oa), j && (f = new pa(i, "visibility", 0, 0, f, -1, null, !1, 0, 0 !== h ? "inherit" : "hidden", 0 === b ? "hidden" : "inherit"), f.xs0 = "inherit", d._overwriteProps.push(f.n), d._overwriteProps.push(c)), f; 5749 } 5750 }); 5751 var Pa = function (a, b) { 5752 b && (a.removeProperty ? (("ms" === b.substr(0, 2) || "webkit" === b.substr(0, 6)) && (b = "-" + b), a.removeProperty(b.replace(z, "-$1").toLowerCase())) : a.removeAttribute(b)); 5753 }, 5754 Qa = function (a) { 5755 if (this.t._gsClassPT = this, 1 === a || 0 === a) { 5756 this.t.setAttribute("class", 0 === a ? this.b : this.e); 5757 for (var b = this.data, c = this.t.style; b;) b.v ? c[b.p] = b.v : Pa(c, b.p), b = b._next; 5758 1 === a && this.t._gsClassPT === this && (this.t._gsClassPT = null); 5759 } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e); 5760 }; 5761 ua("className", { 5762 parser: function (a, b, d, f, g, h, i) { 5763 var j, 5764 k, 5765 l, 5766 m, 5767 n, 5768 o = a.getAttribute("class") || "", 5769 p = a.style.cssText; 5770 if (g = f._classNamePT = new pa(a, d, 0, 0, g, 2), g.setRatio = Qa, g.pr = -11, c = !0, g.b = o, k = $(a, e), l = a._gsClassPT) { 5771 for (m = {}, n = l.data; n;) m[n.p] = 1, n = n._next; 5772 l.setRatio(1); 5773 } 5774 return a._gsClassPT = g, g.e = "=" !== b.charAt(1) ? b : o.replace(new RegExp("\\s*\\b" + b.substr(2) + "\\b"), "") + ("+" === b.charAt(0) ? " " + b.substr(2) : ""), a.setAttribute("class", g.e), j = _(a, k, $(a), i, m), a.setAttribute("class", o), g.data = j.firstMPT, a.style.cssText = p, g = g.xfirst = f.parse(a, j.difs, g, h); 5775 } 5776 }); 5777 var Ra = function (a) { 5778 if ((1 === a || 0 === a) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { 5779 var b, 5780 c, 5781 d, 5782 e, 5783 f, 5784 g = this.t.style, 5785 h = i.transform.parse; 5786 if ("all" === this.e) g.cssText = "", e = !0;else for (b = this.e.split(" ").join("").split(","), d = b.length; --d > -1;) c = b[d], i[c] && (i[c].parse === h ? e = !0 : c = "transformOrigin" === c ? Aa : i[c].p), Pa(g, c); 5787 e && (Pa(g, ya), f = this.t._gsTransform, f && (f.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform)); 5788 } 5789 }; 5790 for (ua("clearProps", { 5791 parser: function (a, b, d, e, f) { 5792 return f = new pa(a, d, 0, 0, f, 2), f.setRatio = Ra, f.e = b, f.pr = -10, f.data = e._tween, c = !0, f; 5793 } 5794 }), j = "bezier,throwProps,physicsProps,physics2D".split(","), sa = j.length; sa--;) va(j[sa]); 5795 j = g.prototype, j._firstPT = j._lastParsedTransform = j._transform = null, j._onInitTween = function (a, b, h) { 5796 if (!a.nodeType) return !1; 5797 this._target = a, this._tween = h, this._vars = b, k = b.autoRound, c = !1, d = b.suffixMap || g.suffixMap, e = W(a, ""), f = this._overwriteProps; 5798 var j, 5799 n, 5800 p, 5801 q, 5802 r, 5803 s, 5804 t, 5805 u, 5806 v, 5807 x = a.style; 5808 if (l && "" === x.zIndex && (j = X(a, "zIndex", e), ("auto" === j || "" === j) && this._addLazySet(x, "zIndex", 0)), "string" == typeof b && (q = x.cssText, j = $(a, e), x.cssText = q + ";" + b, j = _(a, j, $(a)).difs, !Q && w.test(b) && (j.opacity = parseFloat(RegExp.$1)), b = j, x.cssText = q), b.className ? this._firstPT = n = i.className.parse(a, b.className, "className", this, null, null, b) : this._firstPT = n = this.parse(a, b, null), this._transformType) { 5809 for (v = 3 === this._transformType, ya ? m && (l = !0, "" === x.zIndex && (t = X(a, "zIndex", e), ("auto" === t || "" === t) && this._addLazySet(x, "zIndex", 0)), o && this._addLazySet(x, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (v ? "visible" : "hidden"))) : x.zoom = 1, p = n; p && p._next;) p = p._next; 5810 u = new pa(a, "transform", 0, 0, null, 2), this._linkCSSP(u, null, p), u.setRatio = ya ? Na : Ma, u.data = this._transform || La(a, e, !0), u.tween = h, u.pr = -1, f.pop(); 5811 } 5812 if (c) { 5813 for (; n;) { 5814 for (s = n._next, p = q; p && p.pr > n.pr;) p = p._next; 5815 (n._prev = p ? p._prev : r) ? n._prev._next = n : q = n, (n._next = p) ? p._prev = n : r = n, n = s; 5816 } 5817 this._firstPT = q; 5818 } 5819 return !0; 5820 }, j.parse = function (a, b, c, f) { 5821 var g, 5822 h, 5823 j, 5824 l, 5825 m, 5826 n, 5827 o, 5828 p, 5829 q, 5830 r, 5831 s = a.style; 5832 for (g in b) n = b[g], h = i[g], h ? c = h.parse(a, n, g, this, c, f, b) : (m = X(a, g, e) + "", q = "string" == typeof n, "color" === g || "fill" === g || "stroke" === g || -1 !== g.indexOf("Color") || q && y.test(n) ? (q || (n = ja(n), n = (n.length > 3 ? "rgba(" : "rgb(") + n.join(",") + ")"), c = ra(s, g, m, n, !0, "transparent", c, 0, f)) : !q || -1 === n.indexOf(" ") && -1 === n.indexOf(",") ? (j = parseFloat(m), o = j || 0 === j ? m.substr((j + "").length) : "", ("" === m || "auto" === m) && ("width" === g || "height" === g ? (j = ca(a, g, e), o = "px") : "left" === g || "top" === g ? (j = Z(a, g, e), o = "px") : (j = "opacity" !== g ? 0 : 1, o = "")), r = q && "=" === n.charAt(1), r ? (l = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), l *= parseFloat(n), p = n.replace(u, "")) : (l = parseFloat(n), p = q ? n.replace(u, "") : ""), "" === p && (p = g in d ? d[g] : o), n = l || 0 === l ? (r ? l + j : l) + p : b[g], o !== p && "" !== p && (l || 0 === l) && j && (j = Y(a, g, j, o), "%" === p ? (j /= Y(a, g, 100, "%") / 100, b.strictUnits !== !0 && (m = j + "%")) : "em" === p || "rem" === p || "vw" === p || "vh" === p ? j /= Y(a, g, 1, p) : "px" !== p && (l = Y(a, g, l, p), p = "px"), r && (l || 0 === l) && (n = l + j + p)), r && (l += j), !j && 0 !== j || !l && 0 !== l ? void 0 !== s[g] && (n || n + "" != "NaN" && null != n) ? (c = new pa(s, g, l || j || 0, 0, c, -1, g, !1, 0, m, n), c.xs0 = "none" !== n || "display" !== g && -1 === g.indexOf("Style") ? n : m) : S("invalid " + g + " tween value: " + b[g]) : (c = new pa(s, g, j, l - j, c, 0, g, k !== !1 && ("px" === p || "zIndex" === g), 0, m, n), c.xs0 = p)) : c = ra(s, g, m, n, !0, null, c, 0, f)), f && c && !c.plugin && (c.plugin = f); 5833 return c; 5834 }, j.setRatio = function (a) { 5835 var b, 5836 c, 5837 d, 5838 e = this._firstPT, 5839 f = 1e-6; 5840 if (1 !== a || this._tween._time !== this._tween._duration && 0 !== this._tween._time) { 5841 if (a || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6) for (; e;) { 5842 if (b = e.c * a + e.s, e.r ? b = Math.round(b) : f > b && b > -f && (b = 0), e.type) { 5843 if (1 === e.type) { 5844 if (d = e.l, 2 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2;else if (3 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3;else if (4 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3 + e.xn3 + e.xs4;else if (5 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3 + e.xn3 + e.xs4 + e.xn4 + e.xs5;else { 5845 for (c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)]; 5846 e.t[e.p] = c; 5847 } 5848 } else -1 === e.type ? e.t[e.p] = e.xs0 : e.setRatio && e.setRatio(a); 5849 } else e.t[e.p] = b + e.xs0; 5850 e = e._next; 5851 } else for (; e;) 2 !== e.type ? e.t[e.p] = e.b : e.setRatio(a), e = e._next; 5852 } else for (; e;) { 5853 if (2 !== e.type) { 5854 if (e.r && -1 !== e.type) { 5855 if (b = Math.round(e.s + e.c), e.type) { 5856 if (1 === e.type) { 5857 for (d = e.l, c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)]; 5858 e.t[e.p] = c; 5859 } 5860 } else e.t[e.p] = b + e.xs0; 5861 } else e.t[e.p] = e.e; 5862 } else e.setRatio(a); 5863 e = e._next; 5864 } 5865 }, j._enableTransforms = function (a) { 5866 this._transform = this._transform || La(this._target, e, !0), this._transformType = this._transform.svg && wa || !a && 3 !== this._transformType ? 2 : 3; 5867 }; 5868 var Sa = function (a) { 5869 this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0); 5870 }; 5871 j._addLazySet = function (a, b, c) { 5872 var d = this._firstPT = new pa(a, b, 0, 0, this._firstPT, 2); 5873 d.e = c, d.setRatio = Sa, d.data = this; 5874 }, j._linkCSSP = function (a, b, c, d) { 5875 return a && (b && (b._prev = a), a._next && (a._next._prev = a._prev), a._prev ? a._prev._next = a._next : this._firstPT === a && (this._firstPT = a._next, d = !0), c ? c._next = a : d || null !== this._firstPT || (this._firstPT = a), a._next = b, a._prev = c), a; 5876 }, j._kill = function (b) { 5877 var c, 5878 d, 5879 e, 5880 f = b; 5881 if (b.autoAlpha || b.alpha) { 5882 f = {}; 5883 for (d in b) f[d] = b[d]; 5884 f.opacity = 1, f.autoAlpha && (f.visibility = 1); 5885 } 5886 return b.className && (c = this._classNamePT) && (e = c.xfirst, e && e._prev ? this._linkCSSP(e._prev, c._next, e._prev._prev) : e === this._firstPT && (this._firstPT = c._next), c._next && this._linkCSSP(c._next, c._next._next, e._prev), this._classNamePT = null), a.prototype._kill.call(this, f); 5887 }; 5888 var Ta = function (a, b, c) { 5889 var d, e, f, g; 5890 if (a.slice) for (e = a.length; --e > -1;) Ta(a[e], b, c);else for (d = a.childNodes, e = d.length; --e > -1;) f = d[e], g = f.type, f.style && (b.push($(f)), c && c.push(f)), 1 !== g && 9 !== g && 11 !== g || !f.childNodes.length || Ta(f, b, c); 5891 }; 5892 return g.cascadeTo = function (a, c, d) { 5893 var e, 5894 f, 5895 g, 5896 h, 5897 i = b.to(a, c, d), 5898 j = [i], 5899 k = [], 5900 l = [], 5901 m = [], 5902 n = b._internals.reservedProps; 5903 for (a = i._targets || i.target, Ta(a, k, m), i.render(c, !0, !0), Ta(a, l), i.render(0, !0, !0), i._enabled(!0), e = m.length; --e > -1;) if (f = _(m[e], k[e], l[e]), f.firstMPT) { 5904 f = f.difs; 5905 for (g in d) n[g] && (f[g] = d[g]); 5906 h = {}; 5907 for (g in f) h[g] = k[e][g]; 5908 j.push(b.fromTo(m[e], c, h, f)); 5909 } 5910 return j; 5911 }, a.activate([g]), g; 5912 }, !0), function () { 5913 var a = _gsScope._gsDefine.plugin({ 5914 propName: "roundProps", 5915 version: "1.5", 5916 priority: -1, 5917 API: 2, 5918 init: function (a, b, c) { 5919 return this._tween = c, !0; 5920 } 5921 }), 5922 b = function (a) { 5923 for (; a;) a.f || a.blob || (a.r = 1), a = a._next; 5924 }, 5925 c = a.prototype; 5926 c._onInitAllProps = function () {
5927 for (var a, c, d, e = this._tween, f = e.vars.roundProps.join ? e.vars.roundProps : e.vars.roundProps.split(","), g = f.length, h = {}, i = e._propLookup.roundProps; --g > -1;) h[f[g]] = 1; 5928 for (g = f.length; --g > -1;) for (a = f[g], c = e._firstPT; c;) d = c._next, c.pg ? c.t._roundProps(h, !0) : c.n === a && (2 === c.f && c.t ? b(c.t._firstPT) : (this._add(c.t, a, c.s, c.c), d && (d._prev = c._prev), c._prev ? c._prev._next = d : e._firstPT === c && (e._firstPT = d), c._next = c._prev = null, e._propLookup[a] = i)), c = d; 5929 return !1; 5930 }, c._add = function (a, b, c, d) { 5931 this._addTween(a, b, c, c + d, b, !0), this._overwriteProps.push(b); 5932 }; 5933 }(), function () { 5934 _gsScope._gsDefine.plugin({ 5935 propName: "attr", 5936 API: 2, 5937 version: "0.5.0", 5938 init: function (a, b, c) { 5939 var d; 5940 if ("function" != typeof a.setAttribute) return !1; 5941 for (d in b) this._addTween(a, "setAttribute", a.getAttribute(d) + "", b[d] + "", d, !1, d), this._overwriteProps.push(d); 5942 return !0; 5943 } 5944 }); 5945 }(), _gsScope._gsDefine.plugin({ 5946 propName: "directionalRotation", 5947 version: "0.2.1", 5948 API: 2, 5949 init: function (a, b, c) { 5950 "object" != typeof b && (b = { 5951 rotation: b 5952 }), this.finals = {}; 5953 var d, 5954 e, 5955 f, 5956 g, 5957 h, 5958 i, 5959 j = b.useRadians === !0 ? 2 * Math.PI : 360, 5960 k = 1e-6; 5961 for (d in b) "useRadians" !== d && (i = (b[d] + "").split("_"), e = i[0], f = parseFloat("function" != typeof a[d] ? a[d] : a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)]()), g = this.finals[d] = "string" == typeof e && "=" === e.charAt(1) ? f + parseInt(e.charAt(0) + "1", 10) * Number(e.substr(2)) : Number(e) || 0, h = g - f, i.length && (e = i.join("_"), -1 !== e.indexOf("short") && (h %= j, h !== h % (j / 2) && (h = 0 > h ? h + j : h - j)), -1 !== e.indexOf("_cw") && 0 > h ? h = (h + 9999999999 * j) % j - (h / j | 0) * j : -1 !== e.indexOf("ccw") && h > 0 && (h = (h - 9999999999 * j) % j - (h / j | 0) * j)), (h > k || -k > h) && (this._addTween(a, d, f, f + h, d), this._overwriteProps.push(d))); 5962 return !0; 5963 }, 5964 set: function (a) { 5965 var b; 5966 if (1 !== a) this._super.setRatio.call(this, a);else for (b = this._firstPT; b;) b.f ? b.t[b.p](this.finals[b.p]) : b.t[b.p] = this.finals[b.p], b = b._next; 5967 } 5968 })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function (a) { 5969 var b, 5970 c, 5971 d, 5972 e = _gsScope.GreenSockGlobals || _gsScope, 5973 f = e.com.greensock, 5974 g = 2 * Math.PI, 5975 h = Math.PI / 2, 5976 i = f._class, 5977 j = function (b, c) { 5978 var d = i("easing." + b, function () {}, !0), 5979 e = d.prototype = new a(); 5980 return e.constructor = d, e.getRatio = c, d; 5981 }, 5982 k = a.register || function () {}, 5983 l = function (a, b, c, d, e) { 5984 var f = i("easing." + a, { 5985 easeOut: new b(), 5986 easeIn: new c(), 5987 easeInOut: new d() 5988 }, !0); 5989 return k(f, a), f; 5990 }, 5991 m = function (a, b, c) { 5992 this.t = a, this.v = b, c && (this.next = c, c.prev = this, this.c = c.v - b, this.gap = c.t - a); 5993 }, 5994 n = function (b, c) { 5995 var d = i("easing." + b, function (a) { 5996 this._p1 = a || 0 === a ? a : 1.70158, this._p2 = 1.525 * this._p1; 5997 }, !0), 5998 e = d.prototype = new a(); 5999 return e.constructor = d, e.getRatio = c, e.config = function (a) { 6000 return new d(a); 6001 }, d; 6002 }, 6003 o = l("Back", n("BackOut", function (a) { 6004 return (a -= 1) * a * ((this._p1 + 1) * a + this._p1) + 1; 6005 }), n("BackIn", function (a) { 6006 return a * a * ((this._p1 + 1) * a - this._p1); 6007 }), n("BackInOut", function (a) { 6008 return (a *= 2) < 1 ? .5 * a * a * ((this._p2 + 1) * a - this._p2) : .5 * ((a -= 2) * a * ((this._p2 + 1) * a + this._p2) + 2); 6009 })), 6010 p = i("easing.SlowMo", function (a, b, c) { 6011 b = b || 0 === b ? b : .7, null == a ? a = .7 : a > 1 && (a = 1), this._p = 1 !== a ? b : 0, this._p1 = (1 - a) / 2, this._p2 = a, this._p3 = this._p1 + this._p2, this._calcEnd = c === !0; 6012 }, !0), 6013 q = p.prototype = new a(); 6014 return q.constructor = p, q.getRatio = function (a) { 6015 var b = a + (.5 - a) * this._p; 6016 return a < this._p1 ? this._calcEnd ? 1 - (a = 1 - a / this._p1) * a : b - (a = 1 - a / this._p1) * a * a * a * b : a > this._p3 ? this._calcEnd ? 1 - (a = (a - this._p3) / this._p1) * a : b + (a - b) * (a = (a - this._p3) / this._p1) * a * a * a : this._calcEnd ? 1 : b; 6017 }, p.ease = new p(.7, .7), q.config = p.config = function (a, b, c) { 6018 return new p(a, b, c); 6019 }, b = i("easing.SteppedEase", function (a) { 6020 a = a || 1, this._p1 = 1 / a, this._p2 = a + 1; 6021 }, !0), q = b.prototype = new a(), q.constructor = b, q.getRatio = function (a) { 6022 return 0 > a ? a = 0 : a >= 1 && (a = .999999999), (this._p2 * a >> 0) * this._p1; 6023 }, q.config = b.config = function (a) { 6024 return new b(a); 6025 }, c = i("easing.RoughEase", function (b) { 6026 b = b || {}; 6027 for (var c, d, e, f, g, h, i = b.taper || "none", j = [], k = 0, l = 0 | (b.points || 20), n = l, o = b.randomize !== !1, p = b.clamp === !0, q = b.template instanceof a ? b.template : null, r = "number" == typeof b.strength ? .4 * b.strength : .4; --n > -1;) c = o ? Math.random() : 1 / l * n, d = q ? q.getRatio(c) : c, "none" === i ? e = r : "out" === i ? (f = 1 - c, e = f * f * r) : "in" === i ? e = c * c * r : .5 > c ? (f = 2 * c, e = f * f * .5 * r) : (f = 2 * (1 - c), e = f * f * .5 * r), o ? d += Math.random() * e - .5 * e : n % 2 ? d += .5 * e : d -= .5 * e, p && (d > 1 ? d = 1 : 0 > d && (d = 0)), j[k++] = { 6028 x: c, 6029 y: d 6030 }; 6031 for (j.sort(function (a, b) { 6032 return a.x - b.x; 6033 }), h = new m(1, 1, null), n = l; --n > -1;) g = j[n], h = new m(g.x, g.y, h); 6034 this._prev = new m(0, 0, 0 !== h.t ? h : h.next); 6035 }, !0), q = c.prototype = new a(), q.constructor = c, q.getRatio = function (a) { 6036 var b = this._prev; 6037 if (a > b.t) { 6038 for (; b.next && a >= b.t;) b = b.next; 6039 b = b.prev; 6040 } else for (; b.prev && a <= b.t;) b = b.prev;
6041 return this._prev = b, b.v + (a - b.t) / b.gap * b.c; 6042 }, q.config = function (a) { 6043 return new c(a); 6044 }, c.ease = new c(), l("Bounce", j("BounceOut", function (a) { 6045 return 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375; 6046 }), j("BounceIn", function (a) { 6047 return (a = 1 - a) < 1 / 2.75 ? 1 - 7.5625 * a * a : 2 / 2.75 > a ? 1 - (7.5625 * (a -= 1.5 / 2.75) * a + .75) : 2.5 / 2.75 > a ? 1 - (7.5625 * (a -= 2.25 / 2.75) * a + .9375) : 1 - (7.5625 * (a -= 2.625 / 2.75) * a + .984375); 6048 }), j("BounceInOut", function (a) { 6049 var b = .5 > a; 6050 return a = b ? 1 - 2 * a : 2 * a - 1, a = 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375, b ? .5 * (1 - a) : .5 * a + .5; 6051 })), l("Circ", j("CircOut", function (a) { 6052 return Math.sqrt(1 - (a -= 1) * a); 6053 }), j("CircIn", function (a) { 6054 return -(Math.sqrt(1 - a * a) - 1); 6055 }), j("CircInOut", function (a) { 6056 return (a *= 2) < 1 ? -.5 * (Math.sqrt(1 - a * a) - 1) : .5 * (Math.sqrt(1 - (a -= 2) * a) + 1); 6057 })), d = function (b, c, d) { 6058 var e = i("easing." + b, function (a, b) { 6059 this._p1 = a >= 1 ? a : 1, this._p2 = (b || d) / (1 > a ? a : 1), this._p3 = this._p2 / g * (Math.asin(1 / this._p1) || 0), this._p2 = g / this._p2; 6060 }, !0), 6061 f = e.prototype = new a(); 6062 return f.constructor = e, f.getRatio = c, f.config = function (a, b) { 6063 return new e(a, b); 6064 }, e; 6065 }, l("Elastic", d("ElasticOut", function (a) { 6066 return this._p1 * Math.pow(2, -10 * a) * Math.sin((a - this._p3) * this._p2) + 1; 6067 }, .3), d("ElasticIn", function (a) { 6068 return -(this._p1 * Math.pow(2, 10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2)); 6069 }, .3), d("ElasticInOut", function (a) { 6070 return (a *= 2) < 1 ? -.5 * (this._p1 * Math.pow(2, 10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2) * .5 + 1; 6071 }, .45)), l("Expo", j("ExpoOut", function (a) { 6072 return 1 - Math.pow(2, -10 * a); 6073 }), j("ExpoIn", function (a) { 6074 return Math.pow(2, 10 * (a - 1)) - .001; 6075 }), j("ExpoInOut", function (a) { 6076 return (a *= 2) < 1 ? .5 * Math.pow(2, 10 * (a - 1)) : .5 * (2 - Math.pow(2, -10 * (a - 1))); 6077 })), l("Sine", j("SineOut", function (a) { 6078 return Math.sin(a * h); 6079 }), j("SineIn", function (a) { 6080 return -Math.cos(a * h) + 1; 6081 }), j("SineInOut", function (a) { 6082 return -.5 * (Math.cos(Math.PI * a) - 1); 6083 })), i("easing.EaseLookup", { 6084 find: function (b) { 6085 return a.map[b]; 6086 } 6087 }, !0), k(e.SlowMo, "SlowMo", "ease,"), k(c, "RoughEase", "ease,"), k(b, "SteppedEase", "ease,"), o; 6088 }, !0); 6089}), _gsScope._gsDefine && _gsScope._gsQueue.pop()(), function (a, b) { 6090 "use strict"; 6091 6092 var c = a.GreenSockGlobals = a.GreenSockGlobals || a; 6093 if (!c.TweenLite) { 6094 var d, 6095 e, 6096 f, 6097 g, 6098 h, 6099 i = function (a) { 6100 var b, 6101 d = a.split("."), 6102 e = c; 6103 for (b = 0; b < d.length; b++) e[d[b]] = e = e[d[b]] || {}; 6104 return e; 6105 }, 6106 j = i("com.greensock"), 6107 k = 1e-10, 6108 l = function (a) { 6109 var b, 6110 c = [], 6111 d = a.length; 6112 for (b = 0; b !== d; c.push(a[b++])); 6113 return c; 6114 }, 6115 m = function () {}, 6116 n = function () { 6117 var a = Object.prototype.toString, 6118 b = a.call([]); 6119 return function (c) { 6120 return null != c && (c instanceof Array || "object" == typeof c && !!c.push && a.call(c) === b); 6121 }; 6122 }(), 6123 o = {}, 6124 p = function (d, e, f, g) { 6125 this.sc = o[d] ? o[d].sc : [], o[d] = this, this.gsClass = null, this.func = f; 6126 var h = []; 6127 this.check = function (j) { 6128 for (var k, l, m, n, q, r = e.length, s = r; --r > -1;) (k = o[e[r]] || new p(e[r], [])).gsClass ? (h[r] = k.gsClass, s--) : j && k.sc.push(this); 6129 if (0 === s && f) for (l = ("com.greensock." + d).split("."), m = l.pop(), n = i(l.join("."))[m] = this.gsClass = f.apply(f, h), g && (c[m] = n, q = "undefined" != typeof module && module.exports, !q && "function" == typeof define && define.amd ? define((a.GreenSockAMDPath ? a.GreenSockAMDPath + "/" : "") + d.split(".").pop(), [], function () { 6130 return n; 6131 }) : d === b && q && (module.exports = n)), r = 0; r < this.sc.length; r++) this.sc[r].check(); 6132 }, this.check(!0); 6133 }, 6134 q = a._gsDefine = function (a, b, c, d) { 6135 return new p(a, b, c, d); 6136 }, 6137 r = j._class = function (a, b, c) { 6138 return b = b || function () {}, q(a, [], function () { 6139 return b; 6140 }, c), b; 6141 }; 6142 q.globals = c; 6143 var s = [0, 0, 1, 1], 6144 t = [], 6145 u = r("easing.Ease", function (a, b, c, d) { 6146 this._func = a, this._type = c || 0, this._power = d || 0, this._params = b ? s.concat(b) : s; 6147 }, !0), 6148 v = u.map = {}, 6149 w = u.register = function (a, b, c, d) { 6150 for (var e, f, g, h, i = b.split(","), k = i.length, l = (c || "easeIn,easeOut,easeInOut").split(","); --k > -1;) for (f = i[k], e = d ? r("easing." + f, null, !0) : j.easing[f] || {}, g = l.length; --g > -1;) h = l[g], v[f + "." + h] = v[h + f] = e[h] = a.getRatio ? a : a[h] || new a(); 6151 }; 6152 for (f = u.prototype, f._calcEnd = !1, f.getRatio = function (a) { 6153 if (this._func) return this._params[0] = a, this._func.apply(null, this._params); 6154 var b = this._type, 6155 c = this._power, 6156 d = 1 === b ? 1 - a : 2 === b ? a : .5 > a ? 2 * a : 2 * (1 - a); 6157 return 1 === c ? d *= d : 2 === c ? d *= d * d : 3 === c ? d *= d * d * d : 4 === c && (d *= d * d * d * d), 1 === b ? 1 - d : 2 === b ? d : .5 > a ? d / 2 : 1 - d / 2; 6158 }, d = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], e = d.length; --e > -1;) f = d[e] + ",Power" + e, w(new u(null, null, 1, e), f, "easeOut", !0), w(new u(null, null, 2, e), f, "easeIn"
6158+ (0 === e ? ",easeNone" : "")), w(new u(null, null, 3, e), f, "easeInOut"); 6159 v.linear = j.easing.Linear.easeIn, v.swing = j.easing.Quad.easeInOut; 6160 var x = r("events.EventDispatcher", function (a) { 6161 this._listeners = {}, this._eventTarget = a || this; 6162 }); 6163 f = x.prototype, f.addEventListener = function (a, b, c, d, e) { 6164 e = e || 0; 6165 var f, 6166 i, 6167 j = this._listeners[a], 6168 k = 0; 6169 for (null == j && (this._listeners[a] = j = []), i = j.length; --i > -1;) f = j[i], f.c === b && f.s === c ? j.splice(i, 1) : 0 === k && f.pr < e && (k = i + 1); 6170 j.splice(k, 0, { 6171 c: b, 6172 s: c, 6173 up: d, 6174 pr: e 6175 }), this !== g || h || g.wake(); 6176 }, f.removeEventListener = function (a, b) { 6177 var c, 6178 d = this._listeners[a]; 6179 if (d) for (c = d.length; --c > -1;) if (d[c].c === b) return void d.splice(c, 1); 6180 }, f.dispatchEvent = function (a) { 6181 var b, 6182 c, 6183 d, 6184 e = this._listeners[a]; 6185 if (e) for (b = e.length, c = this._eventTarget; --b > -1;) d = e[b], d && (d.up ? d.c.call(d.s || c, { 6186 type: a, 6187 target: c 6188 }) : d.c.call(d.s || c)); 6189 }; 6190 var y = a.requestAnimationFrame, 6191 z = a.cancelAnimationFrame, 6192 A = Date.now || function () { 6193 return new Date().getTime(); 6194 }, 6195 B = A(); 6196 for (d = ["ms", "moz", "webkit", "o"], e = d.length; --e > -1 && !y;) y = a[d[e] + "RequestAnimationFrame"], z = a[d[e] + "CancelAnimationFrame"] || a[d[e] + "CancelRequestAnimationFrame"]; 6197 r("Ticker", function (a, b) { 6198 var c, 6199 d, 6200 e, 6201 f, 6202 i, 6203 j = this, 6204 l = A(), 6205 n = b !== !1 && y ? "auto" : !1, 6206 o = 500, 6207 p = 33, 6208 q = "tick", 6209 r = function (a) { 6210 var b, 6211 g, 6212 h = A() - B; 6213 h > o && (l += h - p), B += h, j.time = (B - l) / 1e3, b = j.time - i, (!c || b > 0 || a === !0) && (j.frame++, i += b + (b >= f ? .004 : f - b), g = !0), a !== !0 && (e = d(r)), g && j.dispatchEvent(q); 6214 }; 6215 x.call(j), j.time = j.frame = 0, j.tick = function () { 6216 r(!0); 6217 }, j.lagSmoothing = function (a, b) { 6218 o = a || 1 / k, p = Math.min(b, o, 0); 6219 }, j.sleep = function () { 6220 null != e && (n && z ? z(e) : clearTimeout(e), d = m, e = null, j === g && (h = !1)); 6221 }, j.wake = function (a) { 6222 null !== e ? j.sleep() : a ? l += -B + (B = A()) : j.frame > 10 && (B = A() - o + 5), d = 0 === c ? m : n && y ? y : function (a) { 6223 return setTimeout(a, 1e3 * (i - j.time) + 1 | 0); 6224 }, j === g && (h = !0), r(2); 6225 }, j.fps = function (a) { 6226 return arguments.length ? (c = a, f = 1 / (c || 60), i = this.time + f, void j.wake()) : c; 6227 }, j.useRAF = function (a) { 6228 return arguments.length ? (j.sleep(), n = a, void j.fps(c)) : n; 6229 }, j.fps(a), setTimeout(function () { 6230 "auto" === n && j.frame < 5 && "hidden" !== document.visibilityState && j.useRAF(!1); 6231 }, 1500); 6232 }), f = j.Ticker.prototype = new j.events.EventDispatcher(), f.constructor = j.Ticker; 6233 var C = r("core.Animation", function (a, b) { 6234 if (this.vars = b = b || {}, this._duration = this._totalDuration = a || 0, this._delay = Number(b.delay) || 0, this._timeScale = 1, this._active = b.immediateRender === !0, this.data = b.data, this._reversed = b.reversed === !0, V) { 6235 h || g.wake(); 6236 var c = this.vars.useFrames ? U : V; 6237 c.add(this, c._time), this.vars.paused && this.paused(!0); 6238 } 6239 }); 6240 g = C.ticker = new j.Ticker(), f = C.prototype, f._dirty = f._gc = f._initted = f._paused = !1, f._totalTime = f._time = 0, f._rawPrevTime = -1, f._next = f._last = f._onUpdate = f._timeline = f.timeline = null, f._paused = !1; 6241 var D = function () { 6242 h && A() - B > 2e3 && g.wake(), setTimeout(D, 2e3); 6243 }; 6244 D(), f.play = function (a, b) { 6245 return null != a && this.seek(a, b), this.reversed(!1).paused(!1); 6246 }, f.pause = function (a, b) { 6247 return null != a && this.seek(a, b), this.paused(!0); 6248 }, f.resume = function (a, b) { 6249 return null != a && this.seek(a, b), this.paused(!1); 6250 }, f.seek = function (a, b) { 6251 return this.totalTime(Number(a), b !== !1); 6252 }, f.restart = function (a, b) { 6253 return this.reversed(!1).paused(!1).totalTime(a ? -this._delay : 0, b !== !1, !0); 6254 }, f.reverse = function (a, b) { 6255 return null != a && this.seek(a || this.totalDuration(), b), this.reversed(!0).paused(!1); 6256 }, f.render = function (a, b, c) {}, f.invalidate = function () { 6257 return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this; 6258 }, f.isActive = function () { 6259 var a, 6260 b = this._timeline, 6261 c = this._startTime; 6262 return !b || !this._gc && !this._paused && b.isActive() && (a = b.rawTime()) >= c && a < c + this.totalDuration() / this._timeScale; 6263 }, f._enabled = function (a, b) { 6264 return h || g.wake(), this._gc = !a, this._active = this.isActive(), b !== !0 && (a && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !a && this.timeline && this._timeline._remove(this, !0)), !1; 6265 }, f._kill = function (a, b) { 6266 return this._enabled(!1, !1); 6267 }, f.kill = function (a, b) { 6268 return this._kill(a, b), this; 6269 }, f._uncache = function (a) {
vendor: 4,382 bytes, lines 6270-6329
6270 for (var b = a ? this : this.timeline; b;) b._dirty = !0, b = b.timeline; 6271 return this; 6272 }, f._swapSelfInParams = function (a) { 6273 for (var b = a.length, c = a.concat(); --b > -1;) "{self}" === a[b] && (c[b] = this); 6274 return c; 6275 }, f._callback = function (a) { 6276 var b = this.vars; 6277 b[a].apply(b[a + "Scope"] || b.callbackScope || this, b[a + "Params"] || t); 6278 }, f.eventCallback = function (a, b, c, d) { 6279 if ("on" === (a || "").substr(0, 2)) { 6280 var e = this.vars; 6281 if (1 === arguments.length) return e[a]; 6282 null == b ? delete e[a] : (e[a] = b, e[a + "Params"] = n(c) && -1 !== c.join("").indexOf("{self}") ? this._swapSelfInParams(c) : c, e[a + "Scope"] = d), "onUpdate" === a && (this._onUpdate = b); 6283 } 6284 return this; 6285 }, f.delay = function (a) { 6286 return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + a - this._delay), this._delay = a, this) : this._delay; 6287 }, f.duration = function (a) { 6288 return arguments.length ? (this._duration = this._totalDuration = a, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== a && this.totalTime(this._totalTime * (a / this._duration), !0), this) : (this._dirty = !1, this._duration); 6289 }, f.totalDuration = function (a) { 6290 return this._dirty = !1, arguments.length ? this.duration(a) : this._totalDuration; 6291 }, f.time = function (a, b) { 6292 return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(a > this._duration ? this._duration : a, b)) : this._time; 6293 }, f.totalTime = function (a, b, c) { 6294 if (h || g.wake(), !arguments.length) return this._totalTime; 6295 if (this._timeline) { 6296 if (0 > a && !c && (a += this.totalDuration()), this._timeline.smoothChildTiming) { 6297 this._dirty && this.totalDuration(); 6298 var d = this._totalDuration, 6299 e = this._timeline; 6300 if (a > d && !c && (a = d), this._startTime = (this._paused ? this._pauseTime : e._time) - (this._reversed ? d - a : a) / this._timeScale, e._dirty || this._uncache(!1), e._timeline) for (; e._timeline;) e._timeline._time !== (e._startTime + e._totalTime) / e._timeScale && e.totalTime(e._totalTime, !0), e = e._timeline; 6301 } 6302 this._gc && this._enabled(!0, !1), (this._totalTime !== a || 0 === this._duration) && (I.length && X(), this.render(a, b, !1), I.length && X()); 6303 } 6304 return this; 6305 }, f.progress = f.totalProgress = function (a, b) { 6306 var c = this.duration(); 6307 return arguments.length ? this.totalTime(c * a, b) : c ? this._time / c : this.ratio; 6308 }, f.startTime = function (a) { 6309 return arguments.length ? (a !== this._startTime && (this._startTime = a, this.timeline && this.timeline._sortChildren && this.timeline.add(this, a - this._delay)), this) : this._startTime; 6310 }, f.endTime = function (a) { 6311 return this._startTime + (0 != a ? this.totalDuration() : this.duration()) / this._timeScale; 6312 }, f.timeScale = function (a) { 6313 if (!arguments.length) return this._timeScale; 6314 if (a = a || k, this._timeline && this._timeline.smoothChildTiming) { 6315 var b = this._pauseTime, 6316 c = b || 0 === b ? b : this._timeline.totalTime(); 6317 this._startTime = c - (c - this._startTime) * this._timeScale / a; 6318 } 6319 return this._timeScale = a, this._uncache(!1); 6320 }, f.reversed = function (a) { 6321 return arguments.length ? (a != this._reversed && (this._reversed = a, this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)), this) : this._reversed; 6322 }, f.paused = function (a) { 6323 if (!arguments.length) return this._paused; 6324 var b, 6325 c, 6326 d = this._timeline; 6327 return a != this._paused && d && (h || a || g.wake(), b = d.rawTime(), c = b - this._pauseTime, !a && d.smoothChildTiming && (this._startTime += c, this._uncache(!1)), this._pauseTime = a ? b : null, this._paused = a, this._active = this.isActive(), !a && 0 !== c && this._initted && this.duration() && (b = d.smoothChildTiming ? this._totalTime : (b - this._startTime) / this._timeScale, this.render(b, b === this._totalTime, !0))), this._gc && !a && this._enabled(!0, !1), this; 6328 }; 6329 var E = r("core.SimpleTimeline", function (a) {
vendor: 16,009 bytes, lines 6330-6604
6330 C.call(this, 0, a), this.autoRemoveChildren = this.smoothChildTiming = !0; 6331 }); 6332 f = E.prototype = new C(), f.constructor = E, f.kill()._gc = !1, f._first = f._last = f._recent = null, f._sortChildren = !1, f.add = f.insert = function (a, b, c, d) { 6333 var e, f; 6334 if (a._startTime = Number(b || 0) + a._delay, a._paused && this !== a._timeline && (a._pauseTime = a._startTime + (this.rawTime() - a._startTime) / a._timeScale), a.timeline && a.timeline._remove(a, !0), a.timeline = a._timeline = this, a._gc && a._enabled(!0, !0), e = this._last, this._sortChildren) for (f = a._startTime; e && e._startTime > f;) e = e._prev; 6335 return e ? (a._next = e._next, e._next = a) : (a._next = this._first, this._first = a), a._next ? a._next._prev = a : this._last = a, a._prev = e, this._recent = a, this._timeline && this._uncache(!0), this; 6336 }, f._remove = function (a, b) { 6337 return a.timeline === this && (b || a._enabled(!1, !0), a._prev ? a._prev._next = a._next : this._first === a && (this._first = a._next), a._next ? a._next._prev = a._prev : this._last === a && (this._last = a._prev), a._next = a._prev = a.timeline = null, a === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this; 6338 }, f.render = function (a, b, c) { 6339 var d, 6340 e = this._first; 6341 for (this._totalTime = this._time = this._rawPrevTime = a; e;) d = e._next, (e._active || a >= e._startTime && !e._paused) && (e._reversed ? e.render((e._dirty ? e.totalDuration() : e._totalDuration) - (a - e._startTime) * e._timeScale, b, c) : e.render((a - e._startTime) * e._timeScale, b, c)), e = d; 6342 }, f.rawTime = function () { 6343 return h || g.wake(), this._totalTime; 6344 }; 6345 var F = r("TweenLite", function (b, c, d) { 6346 if (C.call(this, c, d), this.render = F.prototype.render, null == b) throw "Cannot tween a null target."; 6347 this.target = b = "string" != typeof b ? b : F.selector(b) || b; 6348 var e, 6349 f, 6350 g, 6351 h = b.jquery || b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType), 6352 i = this.vars.overwrite; 6353 if (this._overwrite = i = null == i ? T[F.defaultOverwrite] : "number" == typeof i ? i >> 0 : T[i], (h || b instanceof Array || b.push && n(b)) && "number" != typeof b[0]) for (this._targets = g = l(b), this._propLookup = [], this._siblings = [], e = 0; e < g.length; e++) f = g[e], f ? "string" != typeof f ? f.length && f !== a && f[0] && (f[0] === a || f[0].nodeType && f[0].style && !f.nodeType) ? (g.splice(e--, 1), this._targets = g = g.concat(l(f))) : (this._siblings[e] = Y(f, this, !1), 1 === i && this._siblings[e].length > 1 && $(f, this, null, 1, this._siblings[e])) : (f = g[e--] = F.selector(f), "string" == typeof f && g.splice(e + 1, 1)) : g.splice(e--, 1);else this._propLookup = {}, this._siblings = Y(b, this, !1), 1 === i && this._siblings.length > 1 && $(b, this, null, 1, this._siblings); 6354 (this.vars.immediateRender || 0 === c && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -k, this.render(-this._delay)); 6355 }, !0), 6356 G = function (b) { 6357 return b && b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType); 6358 }, 6359 H = function (a, b) { 6360 var c, 6361 d = {}; 6362 for (c in a) S[c] || c in b && "transform" !== c && "x" !== c && "y" !== c && "width" !== c && "height" !== c && "className" !== c && "border" !== c || !(!P[c] || P[c] && P[c]._autoCSS) || (d[c] = a[c], delete a[c]); 6363 a.css = d; 6364 }; 6365 f = F.prototype = new C(), f.constructor = F, f.kill()._gc = !1, f.ratio = 0, f._firstPT = f._targets = f._overwrittenProps = f._startAt = null, f._notifyPluginsOfEnabled = f._lazy = !1, F.version = "1.18.2", F.defaultEase = f._ease = new u(null, null, 1, 1), F.defaultOverwrite = "auto", F.ticker = g, F.autoSleep = 120, F.lagSmoothing = function (a, b) { 6366 g.lagSmoothing(a, b); 6367 }, F.selector = a.$ || a.jQuery || function (b) { 6368 var c = a.$ || a.jQuery; 6369 return c ? (F.selector = c, c(b)) : "undefined" == typeof document ? b : document.querySelectorAll ? document.querySelectorAll(b) : document.getElementById("#" === b.charAt(0) ? b.substr(1) : b); 6370 }; 6371 var I = [], 6372 J = {}, 6373 K = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, 6374 L = function (a) { 6375 for (var b, c = this._firstPT, d = 1e-6; c;) b = c.blob ? a ? this.join("") : this.start : c.c * a + c.s, c.r ? b = Math.round(b) : d > b && b > -d && (b = 0), c.f ? c.fp ? c.t[c.p](c.fp, b) : c.t[c.p](b) : c.t[c.p] = b, c = c._next; 6376 }, 6377 M = function (a, b, c, d) { 6378 var e, 6379 f, 6380 g, 6381 h, 6382 i, 6383 j, 6384 k, 6385 l = [a, b], 6386 m = 0, 6387 n = "", 6388 o = 0; 6389 for (l.start = a, c && (c(l), a = l[0], b = l[1]), l.length = 0, e = a.match(K) || [], f = b.match(K) || [], d && (d._next = null, d.blob = 1, l._firstPT = d), i = f.length, h = 0; i > h; h++) k = f[h], j = b.substr(m, b.indexOf(k, m) - m), n += j || !h ? j : ",", m += j.length, o ? o = (o + 1) % 5 : "rgba(" === j.substr(-5) && (o = 1), k === e[h] || e.length <= h ? n += k : (n && (l.push(n), n = ""), g = parseFloat(e[h]), l.push(g), l._firstPT = { 6390 _next: l._firstPT, 6391 t: l, 6392 p: l.length - 1, 6393 s: g, 6394 c: ("=" === k.charAt(1) ? parseInt(k.charAt(0) + "1", 10) * parseFloat(k.substr(2)) : parseFloat(k) - g) || 0, 6395 f: 0, 6396 r: o && 4 > o 6397 }), m += k.length; 6398 return n += b.substr(m), n && l.push(n), l.setRatio = L, l; 6399 }, 6400 N = function (a, b, c, d, e, f, g, h) { 6401 var i, 6402 j, 6403 k = "get" === c ? a[b] : c, 6404 l = typeof a[b], 6405 m = "string" == typeof d && "=" === d.charAt(1), 6406 n = { 6407 t: a, 6408 p: b, 6409 s: k, 6410 f: "function" === l, 6411 pg: 0, 6412 n: e || b, 6413 r: f, 6414 pr: 0, 6415 c: m ? parseInt(d.charAt(0) + "1", 10) * parseFloat(d.substr(2)) : parseFloat(d) - k || 0 6416 }; 6417 return "number" !== l && ("function" === l && "get" === c && (j = b.indexOf("set") || "function" != typeof a["get" + b.substr(3)] ? b : "get" + b.substr(3), n.s = k = g ? a[j](g) : a[j]()), "string" == typeof k && (g || isNaN(k)) ? (n.fp = g, i = M(k, d, h || F.defaultStringFilter, n), n = { 6418 t: i, 6419 p: "setRatio", 6420 s: 0, 6421 c: 1, 6422 f: 2, 6423 pg: 0, 6424 n: e || b, 6425 pr: 0 6426 }) : m || (n.s = parseFloat(k), n.c = parseFloat(d) - n.s || 0)), n.c ? ((n._next = this._firstPT) && (n._next._prev = n), this._firstPT = n, n) : void 0; 6427 }, 6428 O = F._internals = { 6429 isArray: n, 6430 isSelector: G, 6431 lazyTweens: I, 6432 blobDif: M 6433 }, 6434 P = F._plugins = {}, 6435 Q = O.tweenLookup = {}, 6436 R = 0, 6437 S = O.reservedProps = { 6438 ease: 1, 6439 delay: 1, 6440 overwrite: 1, 6441 onComplete: 1, 6442 onCompleteParams: 1, 6443 onCompleteScope: 1, 6444 useFrames: 1, 6445 runBackwards: 1, 6446 startAt: 1, 6447 onUpdate: 1, 6448 onUpdateParams: 1, 6449 onUpdateScope: 1, 6450 onStart: 1, 6451 onStartParams: 1, 6452 onStartScope: 1, 6453 onReverseComplete: 1, 6454 onReverseCompleteParams: 1, 6455 onReverseCompleteScope: 1, 6456 onRepeat: 1, 6457 onRepeatParams: 1, 6458 onRepeatScope: 1, 6459 easeParams: 1, 6460 yoyo: 1, 6461 immediateRender: 1, 6462 repeat: 1, 6463 repeatDelay: 1, 6464 data: 1, 6465 paused: 1, 6466 reversed: 1, 6467 autoCSS: 1, 6468 lazy: 1, 6469 onOverwrite: 1, 6470 callbackScope: 1, 6471 stringFilter: 1 6472 }, 6473 T = { 6474 none: 0, 6475 all: 1, 6476 auto: 2, 6477 concurrent: 3, 6478 allOnStart: 4, 6479 preexisting: 5, 6480 "true": 1, 6481 "false": 0 6482 }, 6483 U = C._rootFramesTimeline = new E(), 6484 V = C._rootTimeline = new E(), 6485 W = 30, 6486 X = O.lazyRender = function () { 6487 var a, 6488 b = I.length; 6489 for (J = {}; --b > -1;) a = I[b], a && a._lazy !== !1 && (a.render(a._lazy[0], a._lazy[1], !0), a._lazy = !1); 6490 I.length = 0; 6491 }; 6492 V._startTime = g.time, U._startTime = g.frame, V._active = U._active = !0, setTimeout(X, 1), C._updateRoot = F.render = function () { 6493 var a, b, c; 6494 if (I.length && X(), V.render((g.time - V._startTime) * V._timeScale, !1, !1), U.render((g.frame - U._startTime) * U._timeScale, !1, !1), I.length && X(), g.frame >= W) { 6495 W = g.frame + (parseInt(F.autoSleep, 10) || 120); 6496 for (c in Q) { 6497 for (b = Q[c].tweens, a = b.length; --a > -1;) b[a]._gc && b.splice(a, 1); 6498 0 === b.length && delete Q[c]; 6499 } 6500 if (c = V._first, (!c || c._paused) && F.autoSleep && !U._first && 1 === g._listeners.tick.length) { 6501 for (; c && c._paused;) c = c._next; 6502 c || g.sleep(); 6503 } 6504 } 6505 }, g.addEventListener("tick", C._updateRoot); 6506 var Y = function (a, b, c) { 6507 var d, 6508 e, 6509 f = a._gsTweenID; 6510 if (Q[f || (a._gsTweenID = f = "t" + R++)] || (Q[f] = { 6511 target: a, 6512 tweens: [] 6513 }), b && (d = Q[f].tweens, d[e = d.length] = b, c)) for (; --e > -1;) d[e] === b && d.splice(e, 1); 6514 return Q[f].tweens; 6515 }, 6516 Z = function (a, b, c, d) { 6517 var e, 6518 f, 6519 g = a.vars.onOverwrite; 6520 return g && (e = g(a, b, c, d)), g = F.onOverwrite, g && (f = g(a, b, c, d)), e !== !1 && f !== !1; 6521 }, 6522 $ = function (a, b, c, d, e) { 6523 var f, g, h, i; 6524 if (1 === d || d >= 4) { 6525 for (i = e.length, f = 0; i > f; f++) if ((h = e[f]) !== b) h._gc || h._kill(null, a, b) && (g = !0);else if (5 === d) break; 6526 return g; 6527 } 6528 var j, 6529 l = b._startTime + k, 6530 m = [], 6531 n = 0, 6532 o = 0 === b._duration; 6533 for (f = e.length; --f > -1;) (h = e[f]) === b || h._gc || h._paused || (h._timeline !== b._timeline ? (j = j || _(b, 0, o), 0 === _(h, j, o) && (m[n++] = h)) : h._startTime <= l && h._startTime + h.totalDuration() / h._timeScale > l && ((o || !h._initted) && l - h._startTime <= 2e-10 || (m[n++] = h))); 6534 for (f = n; --f > -1;) if (h = m[f], 2 === d && h._kill(c, a, b) && (g = !0), 2 !== d || !h._firstPT && h._initted) { 6535 if (2 !== d && !Z(h, b)) continue; 6536 h._enabled(!1, !1) && (g = !0); 6537 } 6538 return g; 6539 }, 6540 _ = function (a, b, c) { 6541 for (var d = a._timeline, e = d._timeScale, f = a._startTime; d._timeline;) { 6542 if (f += d._startTime, e *= d._timeScale, d._paused) return -100; 6543 d = d._timeline; 6544 } 6545 return f /= e, f > b ? f - b : c && f === b || !a._initted && 2 * k > f - b ? k : (f += a.totalDuration() / a._timeScale / e) > b + k ? 0 : f - b - k; 6546 }; 6547 f._init = function () { 6548 var a, 6549 b, 6550 c, 6551 d, 6552 e, 6553 f = this.vars, 6554 g = this._overwrittenProps, 6555 h = this._duration, 6556 i = !!f.immediateRender, 6557 j = f.ease; 6558 if (f.startAt) { 6559 this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), e = {}; 6560 for (d in f.startAt) e[d] = f.startAt[d]; 6561 if (e.overwrite = !1, e.immediateRender = !0, e.lazy = i && f.lazy !== !1, e.startAt = e.delay = null, this._startAt = F.to(this.target, 0, e), i) if (this._time > 0) this._startAt = null;else if (0 !== h) return; 6562 } else if (f.runBackwards && 0 !== h) if (this._startAt) this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null;else { 6563 0 !== this._time && (i = !1), c = {}; 6564 for (d in f) S[d] && "autoCSS" !== d || (c[d] = f[d]); 6565 if (c.overwrite = 0, c.data = "isFromStart", c.lazy = i && f.lazy !== !1, c.immediateRender = i, this._startAt = F.to(this.target, 0, c), i) { 6566 if (0 === this._time) return; 6567 } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null); 6568 } 6569 if (this._ease = j = j ? j instanceof u ? j : "function" == typeof j ? new u(j, f.easeParams) : v[j] || F.defaultEase : F.defaultEase, f.easeParams instanceof Array && j.config && (this._ease = j.config.apply(j, f.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) for (a = this._targets.length; --a > -1;) this._initProps(this._targets[a], this._propLookup[a] = {}, this._siblings[a], g ? g[a] : null) && (b = !0);else b = this._initProps(this.target, this._propLookup, this._siblings, g); 6570 if (b && F._onPluginEvent("_onInitAllProps", this), g && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), f.runBackwards) for (c = this._firstPT; c;) c.s += c.c, c.c = -c.c, c = c._next; 6571 this._onUpdate = f.onUpdate, this._initted = !0; 6572 }, f._initProps = function (b, c, d, e) { 6573 var f, g, h, i, j, k; 6574 if (null == b) return !1; 6575 J[b._gsTweenID] && X(), this.vars.css || b.style && b !== a && b.nodeType && P.css && this.vars.autoCSS !== !1 && H(this.vars, b); 6576 for (f in this.vars) if (k = this.vars[f], S[f]) k && (k instanceof Array || k.push && n(k)) && -1 !== k.join("").indexOf("{self}") && (this.vars[f] = k = this._swapSelfInParams(k, this));else if (P[f] && (i = new P[f]())._onInitTween(b, this.vars[f], this)) { 6577 for (this._firstPT = j = { 6578 _next: this._firstPT, 6579 t: i, 6580 p: "setRatio", 6581 s: 0, 6582 c: 1, 6583 f: 1, 6584 n: f, 6585 pg: 1, 6586 pr: i._priority 6587 }, g = i._overwriteProps.length; --g > -1;) c[i._overwriteProps[g]] = this._firstPT; 6588 (i._priority || i._onInitAllProps) && (h = !0), (i._onDisable || i._onEnable) && (this._notifyPluginsOfEnabled = !0), j._next && (j._next._prev = j); 6589 } else c[f] = N.call(this, b, f, "get", k, f, 0, null, this.vars.stringFilter); 6590 return e && this._kill(e, b) ? this._initProps(b, c, d, e) : this._overwrite > 1 && this._firstPT && d.length > 1 && $(b, this, c, this._overwrite, d) ? (this._kill(c, b), this._initProps(b, c, d, e)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (J[b._gsTweenID] = !0), h); 6591 }, f.render = function (a, b, c) { 6592 var d, 6593 e, 6594 f, 6595 g, 6596 h = this._time, 6597 i = this._duration, 6598 j = this._rawPrevTime; 6599 if (a >= i - 1e-7) this._totalTime = this._time = i, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (d = !0, e = "onComplete", c = c || this._timeline.autoRemoveChildren), 0 === i && (this._initted || !this.vars.lazy || c) && (this._startTime === this._timeline._duration && (a = 0), (0 > j || 0 >= a && a >= -1e-7 || j === k && "isPause" !== this.data) && j !== a && (c = !0, j > k && (e = "onReverseComplete")), this._rawPrevTime = g = !b || a || j === a ? a : k);else if (1e-7 > a) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== h || 0 === i && j > 0) && (e = "onReverseComplete", d = this._reversed), 0 > a && (this._active = !1, 0 === i && (this._initted || !this.vars.lazy || c) && (j >= 0 && (j !== k || "isPause" !== this.data) && (c = !0), this._rawPrevTime = g = !b || a || j === a ? a : k)), this._initted || (c = !0);else if (this._totalTime = this._time = a, this._easeType) { 6600 var l = a / i, 6601 m = this._easeType, 6602 n = this._easePower; 6603 (1 === m || 3 === m && l >= .5) && (l = 1 - l), 3 === m && (l *= 2), 1 === n ? l *= l : 2 === n ? l *= l * l : 3 === n ? l *= l * l * l : 4 === n && (l *= l * l * l * l), 1 === m ? this.ratio = 1 - l : 2 === m ? this.ratio = l : .5 > a / i ? this.ratio = l / 2 : this.ratio = 1 - l / 2; 6604 } else this.ratio = this._ease.getRatio(a / i);
vendor: 5,827 bytes, lines 6605-6692
6605 if (this._time !== h || c) { 6606 if (!this._initted) { 6607 if (this._init(), !this._initted || this._gc) return; 6608 if (!c && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = this._totalTime = h, this._rawPrevTime = j, I.push(this), void (this._lazy = [a, b]); 6609 this._time && !d ? this.ratio = this._ease.getRatio(this._time / i) : d && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)); 6610 } 6611 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== h && a >= 0 && (this._active = !0), 0 === h && (this._startAt && (a >= 0 ? this._startAt.render(a, b, c) : e || (e = "_dummyGS")), this.vars.onStart && (0 !== this._time || 0 === i) && (b || this._callback("onStart"))), f = this._firstPT; f;) f.f ? f.t[f.p](f.c * this.ratio + f.s) : f.t[f.p] = f.c * this.ratio + f.s, f = f._next; 6612 this._onUpdate && (0 > a && this._startAt && a !== -1e-4 && this._startAt.render(a, b, c), b || (this._time !== h || d) && this._callback("onUpdate")), e && (!this._gc || c) && (0 > a && this._startAt && !this._onUpdate && a !== -1e-4 && this._startAt.render(a, b, c), d && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[e] && this._callback(e), 0 === i && this._rawPrevTime === k && g !== k && (this._rawPrevTime = 0)); 6613 } 6614 }, f._kill = function (a, b, c) { 6615 if ("all" === a && (a = null), null == a && (null == b || b === this.target)) return this._lazy = !1, this._enabled(!1, !1); 6616 b = "string" != typeof b ? b || this._targets || this.target : F.selector(b) || b; 6617 var d, 6618 e, 6619 f, 6620 g, 6621 h, 6622 i, 6623 j, 6624 k, 6625 l, 6626 m = c && this._time && c._startTime === this._startTime && this._timeline === c._timeline; 6627 if ((n(b) || G(b)) && "number" != typeof b[0]) for (d = b.length; --d > -1;) this._kill(a, b[d], c) && (i = !0);else { 6628 if (this._targets) { 6629 for (d = this._targets.length; --d > -1;) if (b === this._targets[d]) { 6630 h = this._propLookup[d] || {}, this._overwrittenProps = this._overwrittenProps || [], e = this._overwrittenProps[d] = a ? this._overwrittenProps[d] || {} : "all"; 6631 break; 6632 } 6633 } else { 6634 if (b !== this.target) return !1; 6635 h = this._propLookup, e = this._overwrittenProps = a ? this._overwrittenProps || {} : "all"; 6636 } 6637 if (h) { 6638 if (j = a || h, k = a !== e && "all" !== e && a !== h && ("object" != typeof a || !a._tempKill), c && (F.onOverwrite || this.vars.onOverwrite)) { 6639 for (f in j) h[f] && (l || (l = []), l.push(f)); 6640 if ((l || !a) && !Z(this, c, b, l)) return !1; 6641 } 6642 for (f in j) (g = h[f]) && (m && (g.f ? g.t[g.p](g.s) : g.t[g.p] = g.s, i = !0), g.pg && g.t._kill(j) && (i = !0), g.pg && 0 !== g.t._overwriteProps.length || (g._prev ? g._prev._next = g._next : g === this._firstPT && (this._firstPT = g._next), g._next && (g._next._prev = g._prev), g._next = g._prev = null), delete h[f]), k && (e[f] = 1); 6643 !this._firstPT && this._initted && this._enabled(!1, !1); 6644 } 6645 } 6646 return i; 6647 }, f.invalidate = function () { 6648 return this._notifyPluginsOfEnabled && F._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], C.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -k, this.render(-this._delay)), this; 6649 }, f._enabled = function (a, b) { 6650 if (h || g.wake(), a && this._gc) { 6651 var c, 6652 d = this._targets; 6653 if (d) for (c = d.length; --c > -1;) this._siblings[c] = Y(d[c], this, !0);else this._siblings = Y(this.target, this, !0); 6654 } 6655 return C.prototype._enabled.call(this, a, b), this._notifyPluginsOfEnabled && this._firstPT ? F._onPluginEvent(a ? "_onEnable" : "_onDisable", this) : !1; 6656 }, F.to = function (a, b, c) { 6657 return new F(a, b, c); 6658 }, F.from = function (a, b, c) { 6659 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new F(a, b, c); 6660 }, F.fromTo = function (a, b, c, d) { 6661 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new F(a, b, d); 6662 }, F.delayedCall = function (a, b, c, d, e) { 6663 return new F(b, 0, { 6664 delay: a, 6665 onComplete: b, 6666 onCompleteParams: c, 6667 callbackScope: d, 6668 onReverseComplete: b, 6669 onReverseCompleteParams: c, 6670 immediateRender: !1, 6671 lazy: !1, 6672 useFrames: e, 6673 overwrite: 0 6674 }); 6675 }, F.set = function (a, b) { 6676 return new F(a, 0, b); 6677 }, F.getTweensOf = function (a, b) { 6678 if (null == a) return []; 6679 a = "string" != typeof a ? a : F.selector(a) || a; 6680 var c, d, e, f; 6681 if ((n(a) || G(a)) && "number" != typeof a[0]) { 6682 for (c = a.length, d = []; --c > -1;) d = d.concat(F.getTweensOf(a[c], b)); 6683 for (c = d.length; --c > -1;) for (f = d[c], e = c; --e > -1;) f === d[e] && d.splice(c, 1); 6684 } else for (d = Y(a).concat(), c = d.length; --c > -1;) (d[c]._gc || b && !d[c].isActive()) && d.splice(c, 1); 6685 return d; 6686 }, F.killTweensOf = F.killDelayedCallsTo = function (a, b, c) { 6687 "object" == typeof b && (c = b, b = !1); 6688 for (var d = F.getTweensOf(a, b), e = d.length; --e > -1;) d[e]._kill(c, a); 6689 }; 6690 var aa = r("plugins.TweenPlugin", function (a, b) { 6691 this._overwriteProps = (a || "").split(","), this._propName = this._overwriteProps[0], this._priority = b || 0, this._super = aa.prototype; 6692 }, !0);
6693 if (f = aa.prototype, aa.version = "1.18.0", aa.API = 2, f._firstPT = null, f._addTween = N, f.setRatio = L, f._kill = function (a) { 6694 var b, 6695 c = this._overwriteProps, 6696 d = this._firstPT; 6697 if (null != a[this._propName]) this._overwriteProps = [];else for (b = c.length; --b > -1;) null != a[c[b]] && c.splice(b, 1); 6698 for (; d;) null != a[d.n] && (d._next && (d._next._prev = d._prev), d._prev ? (d._prev._next = d._next, d._prev = null) : this._firstPT === d && (this._firstPT = d._next)), d = d._next; 6699 return !1; 6700 }, f._roundProps = function (a, b) { 6701 for (var c = this._firstPT; c;) (a[this._propName] || null != c.n && a[c.n.split(this._propName + "_").join("")]) && (c.r = b), c = c._next; 6702 }, F._onPluginEvent = function (a, b) { 6703 var c, 6704 d, 6705 e, 6706 f, 6707 g, 6708 h = b._firstPT; 6709 if ("_onInitAllProps" === a) { 6710 for (; h;) { 6711 for (g = h._next, d = e; d && d.pr > h.pr;) d = d._next; 6712 (h._prev = d ? d._prev : f) ? h._prev._next = h : e = h, (h._next = d) ? d._prev = h : f = h, h = g; 6713 } 6714 h = b._firstPT = e; 6715 } 6716 for (; h;) h.pg && "function" == typeof h.t[a] && h.t[a]() && (c = !0), h = h._next; 6717 return c; 6718 }, aa.activate = function (a) { 6719 for (var b = a.length; --b > -1;) a[b].API === aa.API && (P[new a[b]()._propName] = a[b]); 6720 return !0; 6721 }, q.plugin = function (a) { 6722 if (!(a && a.propName && a.init && a.API)) throw "illegal plugin definition."; 6723 var b, 6724 c = a.propName, 6725 d = a.priority || 0, 6726 e = a.overwriteProps, 6727 f = { 6728 init: "_onInitTween", 6729 set: "setRatio", 6730 kill: "_kill", 6731 round: "_roundProps", 6732 initAll: "_onInitAllProps" 6733 }, 6734 g = r("plugins." + c.charAt(0).toUpperCase() + c.substr(1) + "Plugin", function () { 6735 aa.call(this, c, d), this._overwriteProps = e || []; 6736 }, a.global === !0), 6737 h = g.prototype = new aa(c); 6738 h.constructor = g, g.API = a.API; 6739 for (b in f) "function" == typeof a[b] && (h[f[b]] = a[b]); 6740 return g.version = a.version, aa.activate([g]), g; 6741 }, d = a._gsQueue) { 6742 for (e = 0; e < d.length; e++) d[e](); 6743 for (f in o) o[f].func || a.console.log("GSAP encountered missing dependency: com.greensock." + f); 6744 } 6745 h = !1; 6746 } 6747}("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax"); 6748 6749/* TweenMax scrollTo plugin*/ 6750(window._gsQueue || (window._gsQueue = [])).push(function () { 6751 _gsDefine("plugins.ScrollToPlugin", ["plugins.TweenPlugin"], function (t) { 6752 var o = function () { 6753 t.call(this, "scrollTo"), this._overwriteProps.pop(); 6754 }, 6755 s = o.prototype = new t("scrollTo"), 6756 e = function () { 6757 return null != window.pageXOffset ? window.pageXOffset : null != document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft; 6758 }, 6759 i = function () { 6760 return null != window.pageYOffset ? window.pageYOffset : null != document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; 6761 }, 6762 l = t.prototype.setRatio; 6763 return s.constructor = o, o.API = 2, s._onInitTween = function (t, o) { 6764 return this._wdw = t == window, this._target = t, "object" != typeof o && (o = { 6765 y: Number(o) 6766 }), this.x = this._wdw ? e() : t.scrollLeft, this.y = this._wdw ? i() : t.scrollTop, null != o.x ? this._addTween(this, "x", this.x, o.x, "scrollTo_x", !0) : this.skipX = !0, null != o.y ? this._addTween(this, "y", this.y, o.y, "scrollTo_y", !0) : this.skipY = !0, !0; 6767 }, s._kill = function (o) { 6768 return o.scrollTo_x && (this.skipX = !0), o.scrollTo_x && (this.skipY = !0), t.prototype._kill.call(this, o); 6769 }, s.setRatio = function (t) { 6770 l.call(this, t), this._wdw ? window.scrollTo(this.skipX ? e() : this.x, this.skipY ? i() : this.y) : (this.skipY || (this._target.scrollTop = this.y), this.skipX || (this._target.scrollLeft = this.x)); 6771 }, t.activate([o]), o; 6772 }, !0); 6773}), window._gsDefine && _gsQueue.pop()(); 6774 6775/*mousewheel*/ 6776(function (a) { 6777 function d(b) { 6778 var c = b || window.event, 6779 d = [].slice.call(arguments, 1), 6780 e = 0, 6781 f = !0, 6782 g = 0, 6783 h = 0; 6784 return b = a.event.fix(c), b.type = "mousewheel", c.wheelDelta && (e = c.wheelDelta / 120), c.detail && (e = -c.detail / 3), h = e, c.axis !== undefined && c.axis === c.HORIZONTAL_AXIS && (h = 0, g = -1 * e), c.wheelDeltaY !== undefined && (h = c.wheelDeltaY / 120), c.wheelDeltaX !== undefined && (g = -1 * c.wheelDeltaX / 120), d.unshift(b, e, g, h), (a.event.dispatch || a.event.handle).apply(this, d); 6785 } 6786 var b = ["DOMMouseScroll", "mousewheel"]; 6787 if (a.event.fixHooks) for (var c = b.length; c;) a.event.fixHooks[b[--c]] = a.event.mouseHooks; 6788 a.event.special.mousewheel = { 6789 setup: function () { 6790 if (this.addEventListener) for (var a = b.length; a;) this.addEventListener(b[--a], d, !1);else this.onmousewheel = d; 6791 }, 6792 teardown: function () { 6793 if (this.removeEventListener) for (var a = b.length; a;) this.removeEventListener(b[--a], d, !1);else this.onmousewheel = null; 6794 } 6795 }, a.fn.extend({ 6796 mousewheel: function (a) { 6797 return a ? this.bind("mousewheel", a) : this.trigger("mousewheel"); 6798 }, 6799 unmousewheel: function (a) { 6800 return this.unbind("mousewheel", a); 6801 } 6802 }); 6803})(jQuery); 6804/*custom scrollbar*/ 6805(function (c) { 6806 var b = { 6807 init: function (e) { 6808 var f = { 6809 set_width: false, 6810 set_height: false, 6811 horizontalScroll: false, 6812 scrollInertia: 950, 6813 mouseWheel: true, 6814 mouseWheelPixels: "auto", 6815 autoDraggerLength: true, 6816 autoHideScrollbar: false, 6817 snapAmount: null, 6818 snapOffset: 0, 6819 scrollButtons: { 6820 enable: false, 6821 scrollType: "continuous", 6822 scrollSpeed: "auto", 6823 scrollAmount: 40 6824 }, 6825 advanced: { 6826 updateOnBrowserResize: true, 6827 updateOnContentResize: false, 6828 autoExpandHorizontalScroll: false, 6829 autoScrollOnFocus: true, 6830 normalizeMouseWheelDelta: false 6831 }, 6832 contentTouchScroll: true, 6833 callbacks: { 6834 onScrollStart: function () {}, 6835 onScroll: function () {}, 6836 onTotalScroll: function () {}, 6837 onTotalScrollBack: function () {}, 6838 onTotalScrollOffset: 0, 6839 onTotalScrollBackOffset: 0, 6840 whileScrolling: function () {} 6841 }, 6842 theme: "light" 6843 }, 6844 e = c.extend(true, f, e); 6845 return this.each(function () { 6846 var m = c(this); 6847 if (e.set_width) { 6848 m.css("width", e.set_width); 6849 } 6850 if (e.set_height) { 6851 m.css("height", e.set_height); 6852 } 6853 if (!c(document).data("mCustomScrollbar-index")) { 6854 c(document).data("mCustomScrollbar-index", "1"); 6855 } else { 6856 var t = parseInt(c(document).data("mCustomScrollbar-index")); 6857 c(document).data("mCustomScrollbar-index", t + 1); 6858 }
6859 m.wrapInner("<div class='mCustomScrollBox mCS-" + e.theme + "' id='mCSB_" + c(document).data("mCustomScrollbar-index") + "' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_" + c(document).data("mCustomScrollbar-index")); 6860 var g = m.children(".mCustomScrollBox"); 6861 if (e.horizontalScroll) { 6862 g.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />"); 6863 var k = g.children(".mCSB_h_wrapper"); 6864 k.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({ 6865 width: k.children().outerWidth(), 6866 position: "relative" 6867 }).unwrap(); 6868 } else { 6869 g.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />"); 6870 } 6871 var o = g.children(".mCSB_container"); 6872 if (c.support.touch) { 6873 o.addClass("mCS_touch"); 6874 } 6875 o.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>"); 6876 var l = g.children(".mCSB_scrollTools"), 6877 h = l.children(".mCSB_draggerContainer"), 6878 q = h.children(".mCSB_dragger"); 6879 if (e.horizontalScroll) { 6880 q.data("minDraggerWidth", q.width()); 6881 } else { 6882 q.data("minDraggerHeight", q.height()); 6883 } 6884 if (e.scrollButtons.enable) { 6885 if (e.horizontalScroll) { 6886 l.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>"); 6887 } else { 6888 l.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>"); 6889 } 6890 } 6891 g.bind("scroll", function () { 6892 if (!m.is(".mCS_disabled")) { 6893 g.scrollTop(0).scrollLeft(0); 6894 } 6895 }); 6896 m.data({ 6897 mCS_Init: true, 6898 mCustomScrollbarIndex: c(document).data("mCustomScrollbar-index"), 6899 horizontalScroll: e.horizontalScroll, 6900 scrollInertia: e.scrollInertia, 6901 scrollEasing: "mcsEaseOut", 6902 mouseWheel: e.mouseWheel, 6903 mouseWheelPixels: e.mouseWheelPixels, 6904 autoDraggerLength: e.autoDraggerLength, 6905 autoHideScrollbar: e.autoHideScrollbar, 6906 snapAmount: e.snapAmount, 6907 snapOffset: e.snapOffset, 6908 scrollButtons_enable: e.scrollButtons.enable, 6909 scrollButtons_scrollType: e.scrollButtons.scrollType, 6910 scrollButtons_scrollSpeed: e.scrollButtons.scrollSpeed, 6911 scrollButtons_scrollAmount: e.scrollButtons.scrollAmount, 6912 autoExpandHorizontalScroll: e.advanced.autoExpandHorizontalScroll, 6913 autoScrollOnFocus: e.advanced.autoScrollOnFocus, 6914 normalizeMouseWheelDelta: e.advanced.normalizeMouseWheelDelta, 6915 contentTouchScroll: e.contentTouchScroll, 6916 onScrollStart_Callback: e.callbacks.onScrollStart, 6917 onScroll_Callback: e.callbacks.onScroll, 6918 onTotalScroll_Callback: e.callbacks.onTotalScroll, 6919 onTotalScrollBack_Callback: e.callbacks.onTotalScrollBack, 6920 onTotalScroll_Offset: e.callbacks.onTotalScrollOffset, 6921 onTotalScrollBack_Offset: e.callbacks.onTotalScrollBackOffset, 6922 whileScrolling_Callback: e.callbacks.whileScrolling, 6923 bindEvent_scrollbar_drag: false, 6924 bindEvent_content_touch: false, 6925 bindEvent_scrollbar_click: false, 6926 bindEvent_mousewheel: false, 6927 bindEvent_buttonsContinuous_y: false, 6928 bindEvent_buttonsContinuous_x: false, 6929 bindEvent_buttonsPixels_y: false,
6930 bindEvent_buttonsPixels_x: false, 6931 bindEvent_focusin: false, 6932 bindEvent_autoHideScrollbar: false, 6933 mCSB_buttonScrollRight: false, 6934 mCSB_buttonScrollLeft: false, 6935 mCSB_buttonScrollDown: false, 6936 mCSB_buttonScrollUp: false 6937 }); 6938 if (e.horizontalScroll) { 6939 if (m.css("max-width") !== "none") { 6940 if (!e.advanced.updateOnContentResize) { 6941 e.advanced.updateOnContentResize = true; 6942 } 6943 } 6944 } else { 6945 if (m.css("max-height") !== "none") { 6946 var s = false, 6947 r = parseInt(m.css("max-height")); 6948 if (m.css("max-height").indexOf("%") >= 0) { 6949 s = r, r = m.parent().height() * s / 100; 6950 } 6951 m.css("overflow", "hidden"); 6952 g.css("max-height", r); 6953 } 6954 } 6955 m.mCustomScrollbar("update"); 6956 if (e.advanced.updateOnBrowserResize) { 6957 var i, 6958 j = c(window).width(), 6959 u = c(window).height(); 6960 c(window).bind("resize." + m.data("mCustomScrollbarIndex"), function () { 6961 if (i) { 6962 clearTimeout(i); 6963 } 6964 i = setTimeout(function () { 6965 if (!m.is(".mCS_disabled") && !m.is(".mCS_destroyed")) { 6966 var w = c(window).width(), 6967 v = c(window).height(); 6968 if (j !== w || u !== v) { 6969 if (m.css("max-height") !== "none" && s) { 6970 g.css("max-height", m.parent().height() * s / 100); 6971 } 6972 m.mCustomScrollbar("update"); 6973 j = w; 6974 u = v; 6975 } 6976 } 6977 }, 150); 6978 }); 6979 } 6980 if (e.advanced.updateOnContentResize) { 6981 var p; 6982 if (e.horizontalScroll) { 6983 var n = o.outerWidth(); 6984 } else { 6985 var n = o.outerHeight(); 6986 } 6987 p = setInterval(function () { 6988 if (e.horizontalScroll) { 6989 if (e.advanced.autoExpandHorizontalScroll) { 6990 o.css({ 6991 position: "absolute", 6992 width: "auto" 6993 }).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({ 6994 width: o.outerWidth(), 6995 position: "relative" 6996 }).unwrap(); 6997 } 6998 var v = o.outerWidth(); 6999 } else { 7000 var v = o.outerHeight(); 7001 } 7002 if (v != n) { 7003 m.mCustomScrollbar("update"); 7004 n = v; 7005 } 7006 }, 300); 7007 } 7008 }); 7009 }, 7010 update: function () { 7011 var n = c(this), 7012 k = n.children(".mCustomScrollBox"), 7013 q = k.children(".mCSB_container"); 7014 q.removeClass("mCS_no_scrollbar"); 7015 n.removeClass("mCS_disabled mCS_destroyed"); 7016 k.scrollTop(0).scrollLeft(0); 7017 var y = k.children(".mCSB_scrollTools"), 7018 o = y.children(".mCSB_draggerContainer"), 7019 m = o.children(".mCSB_dragger"); 7020 if (n.data("horizontalScroll")) { 7021 var A = y.children(".mCSB_buttonLeft"), 7022 t = y.children(".mCSB_buttonRight"), 7023 f = k.width(); 7024 if (n.data("autoExpandHorizontalScroll")) { 7025 q.css({ 7026 position: "absolute", 7027 width: "auto" 7028 }).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({ 7029 width: q.outerWidth(), 7030 position: "relative" 7031 }).unwrap(); 7032 } 7033 var z = q.outerWidth(); 7034 } else { 7035 var w = y.children(".mCSB_buttonUp"), 7036 g = y.children(".mCSB_buttonDown"), 7037 r = k.height(), 7038 i = q.outerHeight(); 7039 } 7040 if (i > r && !n.data("horizontalScroll")) { 7041 y.css("display", "block"); 7042 var s = o.height(); 7043 if (n.data("autoDraggerLength")) {
7044 var u = Math.round(r / i * s), 7045 l = m.data("minDraggerHeight"); 7046 if (u <= l) { 7047 m.css({ 7048 height: l 7049 }); 7050 } else { 7051 if (u >= s - 10) { 7052 var p = s - 10; 7053 m.css({ 7054 height: p 7055 }); 7056 } else { 7057 m.css({ 7058 height: u 7059 }); 7060 } 7061 } 7062 m.children(".mCSB_dragger_bar").css({ 7063 "line-height": m.height() + "px" 7064 }); 7065 } 7066 var B = m.height(), 7067 x = (i - r) / (s - B); 7068 n.data("scrollAmount", x).mCustomScrollbar("scrolling", k, q, o, m, w, g, A, t); 7069 var D = Math.abs(q.position().top); 7070 n.mCustomScrollbar("scrollTo", D, { 7071 scrollInertia: 0, 7072 trigger: "internal" 7073 }); 7074 } else { 7075 if (z > f && n.data("horizontalScroll")) { 7076 y.css("display", "block"); 7077 var h = o.width(); 7078 if (n.data("autoDraggerLength")) { 7079 var j = Math.round(f / z * h), 7080 C = m.data("minDraggerWidth"); 7081 if (j <= C) { 7082 m.css({ 7083 width: C 7084 }); 7085 } else { 7086 if (j >= h - 10) { 7087 var e = h - 10; 7088 m.css({ 7089 width: e 7090 }); 7091 } else { 7092 m.css({ 7093 width: j 7094 }); 7095 } 7096 } 7097 } 7098 var v = m.width(), 7099 x = (z - f) / (h - v); 7100 n.data("scrollAmount", x).mCustomScrollbar("scrolling", k, q, o, m, w, g, A, t); 7101 var D = Math.abs(q.position().left); 7102 n.mCustomScrollbar("scrollTo", D, { 7103 scrollInertia: 0, 7104 trigger: "internal" 7105 }); 7106 } else { 7107 k.unbind("mousewheel focusin"); 7108 if (n.data("horizontalScroll")) { 7109 m.add(q).css("left", 0); 7110 } else { 7111 m.add(q).css("top", 0); 7112 } 7113 y.css("display", "none"); 7114 q.addClass("mCS_no_scrollbar"); 7115 n.data({ 7116 bindEvent_mousewheel: false, 7117 bindEvent_focusin: false 7118 }); 7119 } 7120 } 7121 }, 7122 scrolling: function (h, p, m, j, w, e, A, v) { 7123 var k = c(this); 7124 if (!k.data("bindEvent_scrollbar_drag")) { 7125 var n, o; 7126 if (c.support.msPointer) { 7127 j.bind("MSPointerDown", function (H) { 7128 H.preventDefault(); 7129 k.data({ 7130 on_drag: true 7131 }); 7132 j.addClass("mCSB_dragger_onDrag"); 7133 var G = c(this), 7134 J = G.offset(), 7135 F = H.originalEvent.pageX - J.left, 7136 I = H.originalEvent.pageY - J.top; 7137 if (F < G.width() && F > 0 && I < G.height() && I > 0) { 7138 n = I; 7139 o = F; 7140 } 7141 }); 7142 c(document).bind("MSPointerMove." + k.data("mCustomScrollbarIndex"), function (H) { 7143 H.preventDefault(); 7144 if (k.data("on_drag")) { 7145 var G = j, 7146 J = G.offset(), 7147 F = H.originalEvent.pageX - J.left, 7148 I = H.originalEvent.pageY - J.top; 7149 D(n, o, I, F); 7150 } 7151 }).bind("MSPointerUp." + k.data("mCustomScrollbarIndex"), function (x) { 7152 k.data({ 7153 on_drag: false 7154 }); 7155 j.removeClass("mCSB_dragger_onDrag"); 7156 }); 7157 } else { 7158 j.bind("mousedown touchstart", function (H) { 7159 H.preventDefault(); 7160 H.stopImmediatePropagation(); 7161 var G = c(this), 7162 K = G.offset(), 7163 F, 7164 J; 7165 if (H.type === "touchstart") { 7166 var I = H.originalEvent.touches[0] || H.originalEvent.changedTouches[0];
7167 F = I.pageX - K.left; 7168 J = I.pageY - K.top; 7169 } else { 7170 k.data({ 7171 on_drag: true 7172 }); 7173 j.addClass("mCSB_dragger_onDrag"); 7174 F = H.pageX - K.left; 7175 J = H.pageY - K.top; 7176 } 7177 if (F < G.width() && F > 0 && J < G.height() && J > 0) { 7178 n = J; 7179 o = F; 7180 } 7181 }).bind("touchmove", function (H) { 7182 H.preventDefault(); 7183 H.stopImmediatePropagation(); 7184 var K = H.originalEvent.touches[0] || H.originalEvent.changedTouches[0], 7185 G = c(this), 7186 J = G.offset(), 7187 F = K.pageX - J.left, 7188 I = K.pageY - J.top; 7189 D(n, o, I, F); 7190 }); 7191 c(document).bind("mousemove." + k.data("mCustomScrollbarIndex"), function (H) { 7192 if (k.data("on_drag")) { 7193 var G = j, 7194 J = G.offset(), 7195 F = H.pageX - J.left, 7196 I = H.pageY - J.top; 7197 D(n, o, I, F); 7198 } 7199 }).bind("mouseup." + k.data("mCustomScrollbarIndex"), function (x) { 7200 k.data({ 7201 on_drag: false 7202 }); 7203 j.removeClass("mCSB_dragger_onDrag"); 7204 }); 7205 } 7206 k.data({ 7207 bindEvent_scrollbar_drag: true 7208 }); 7209 } 7210 function D(G, H, I, F) { 7211 if (k.data("horizontalScroll")) { 7212 k.mCustomScrollbar("scrollTo", j.position().left - H + F, { 7213 moveDragger: true, 7214 trigger: "internal" 7215 }); 7216 } else { 7217 k.mCustomScrollbar("scrollTo", j.position().top - G + I, { 7218 moveDragger: true, 7219 trigger: "internal" 7220 }); 7221 } 7222 } 7223 if (c.support.touch && k.data("contentTouchScroll")) { 7224 if (!k.data("bindEvent_content_touch")) { 7225 var l, B, r, s, u, C, E; 7226 p.bind("touchstart", function (x) { 7227 x.stopImmediatePropagation(); 7228 l = x.originalEvent.touches[0] || x.originalEvent.changedTouches[0]; 7229 B = c(this); 7230 r = B.offset(); 7231 u = l.pageX - r.left; 7232 s = l.pageY - r.top; 7233 C = s; 7234 E = u; 7235 }); 7236 p.bind("touchmove", function (x) { 7237 x.preventDefault(); 7238 x.stopImmediatePropagation(); 7239 l = x.originalEvent.touches[0] || x.originalEvent.changedTouches[0]; 7240 B = c(this).parent(); 7241 r = B.offset(); 7242 u = l.pageX - r.left; 7243 s = l.pageY - r.top; 7244 if (k.data("horizontalScroll")) { 7245 k.mCustomScrollbar("scrollTo", E - u, { 7246 trigger: "internal" 7247 }); 7248 } else { 7249 k.mCustomScrollbar("scrollTo", C - s, { 7250 trigger: "internal" 7251 }); 7252 } 7253 }); 7254 } 7255 } 7256 if (!k.data("bindEvent_scrollbar_click")) { 7257 m.bind("click", function (F) { 7258 var x = (F.pageY - m.offset().top) * k.data("scrollAmount"), 7259 y = c(F.target); 7260 if (k.data("horizontalScroll")) { 7261 x = (F.pageX - m.offset().left) * k.data("scrollAmount"); 7262 } 7263 if (y.hasClass("mCSB_draggerContainer") || y.hasClass("mCSB_draggerRail")) { 7264 k.mCustomScrollbar("scrollTo", x, { 7265 trigger: "internal", 7266 scrollEasing: "draggerRailEase" 7267 }); 7268 } 7269 }); 7270 k.data({ 7271 bindEvent_scrollbar_click: true 7272 }); 7273 } 7274 if (k.data("mouseWheel")) { 7275 if (!k.data("bindEvent_mousewheel")) { 7276 h.bind("mousewheel", function (H, J) { 7277 var G, 7278 F = k.data("mouseWheelPixels"), 7279 x = Math.abs(p.position().top), 7280 I = j.position().top, 7281 y = m.height() - j.height(); 7282 if (k.data("normalizeMouseWheelDelta")) { 7283 if (J < 0) { 7284 J = -1; 7285 } else { 7286 J = 1; 7287 } 7288 } 7289 if (F === "auto") { 7290 F = 100 + Math.round(k.data("scrollAmount") / 2); 7291 } 7292 if (k.data("horizontalScroll")) { 7293 I = j.position().left; 7294 y = m.width() - j.width(); 7295 x = Math.abs(p.position().left); 7296 } 7297 if (J > 0 && I !== 0 || J < 0 && I !== y) { 7298 H.preventDefault(); 7299 H.stopImmediatePropagation(); 7300 } 7301 G = x - J * F; 7302 k.mCustomScrollbar("scrollTo", G, { 7303 trigger: "internal" 7304 }); 7305 }); 7306 k.data({ 7307 bindEvent_mousewheel: true 7308 }); 7309 } 7310 } 7311 if (k.data("scrollButtons_enable")) { 7312 if (k.data("scrollButtons_scrollType") === "pixels") { 7313 if (k.data("horizontalScroll")) { 7314 v.add(A).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend", i, g); 7315 k.data({
7316 bindEvent_buttonsContinuous_x: false 7317 }); 7318 if (!k.data("bindEvent_buttonsPixels_x")) { 7319 v.bind("click", function (x) { 7320 x.preventDefault(); 7321 q(Math.abs(p.position().left) + k.data("scrollButtons_scrollAmount")); 7322 }); 7323 A.bind("click", function (x) { 7324 x.preventDefault(); 7325 q(Math.abs(p.position().left) - k.data("scrollButtons_scrollAmount")); 7326 }); 7327 k.data({ 7328 bindEvent_buttonsPixels_x: true 7329 }); 7330 } 7331 } else { 7332 e.add(w).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend", i, g); 7333 k.data({ 7334 bindEvent_buttonsContinuous_y: false 7335 }); 7336 if (!k.data("bindEvent_buttonsPixels_y")) { 7337 e.bind("click", function (x) { 7338 x.preventDefault(); 7339 q(Math.abs(p.position().top) + k.data("scrollButtons_scrollAmount")); 7340 }); 7341 w.bind("click", function (x) { 7342 x.preventDefault(); 7343 q(Math.abs(p.position().top) - k.data("scrollButtons_scrollAmount")); 7344 }); 7345 k.data({ 7346 bindEvent_buttonsPixels_y: true 7347 }); 7348 } 7349 } 7350 function q(x) { 7351 if (!j.data("preventAction")) { 7352 j.data("preventAction", true); 7353 k.mCustomScrollbar("scrollTo", x, { 7354 trigger: "internal" 7355 }); 7356 } 7357 } 7358 } else { 7359 if (k.data("horizontalScroll")) { 7360 v.add(A).unbind("click"); 7361 k.data({ 7362 bindEvent_buttonsPixels_x: false 7363 }); 7364 if (!k.data("bindEvent_buttonsContinuous_x")) { 7365 v.bind("mousedown touchstart MSPointerDown", function (y) { 7366 y.preventDefault(); 7367 var x = z(); 7368 k.data({ 7369 mCSB_buttonScrollRight: setInterval(function () { 7370 k.mCustomScrollbar("scrollTo", Math.abs(p.position().left) + x, { 7371 trigger: "internal", 7372 scrollEasing: "easeOutCirc" 7373 }); 7374 }, 17) 7375 }); 7376 }); 7377 var i = function (x) { 7378 x.preventDefault(); 7379 clearInterval(k.data("mCSB_buttonScrollRight")); 7380 }; 7381 v.bind("mouseup touchend MSPointerUp mouseout MSPointerOut", i); 7382 A.bind("mousedown touchstart MSPointerDown", function (y) { 7383 y.preventDefault(); 7384 var x = z(); 7385 k.data({ 7386 mCSB_buttonScrollLeft: setInterval(function () { 7387 k.mCustomScrollbar("scrollTo", Math.abs(p.position().left) - x, { 7388 trigger: "internal", 7389 scrollEasing: "easeOutCirc" 7390 }); 7391 }, 17) 7392 }); 7393 }); 7394 var g = function (x) { 7395 x.preventDefault(); 7396 clearInterval(k.data("mCSB_buttonScrollLeft")); 7397 }; 7398 A.bind("mouseup touchend MSPointerUp mouseout MSPointerOut", g); 7399 k.data({ 7400 bindEvent_buttonsContinuous_x: true 7401 }); 7402 } 7403 } else { 7404 e.add(w).unbind("click"); 7405 k.data({ 7406 bindEvent_buttonsPixels_y: false 7407 }); 7408 if (!k.data("bindEvent_buttonsContinuous_y")) { 7409 e.bind("mousedown touchstart MSPointerDown", function (y) { 7410 y.preventDefault(); 7411 var x = z(); 7412 k.data({ 7413 mCSB_buttonScrollDown: setInterval(function () { 7414 k.mCustomScrollbar("scrollTo", Math.abs(p.position().top) + x, { 7415 trigger: "internal", 7416 scrollEasing: "easeOutCirc" 7417 }); 7418 }, 17) 7419 }); 7420 }); 7421 var t = function (x) { 7422 x.preventDefault(); 7423 clearInterval(k.data("mCSB_buttonScrollDown")); 7424 }; 7425 e.bind("mouseup touchend MSPointerUp mouseout MSPointerOut", t); 7426 w.bind("mousedown touchstart MSPointerDown", function (y) { 7427 y.preventDefault(); 7428 var x = z(); 7429 k.data({ 7430 mCSB_buttonScrollUp: setInterval(function () { 7431 k.mCustomScrollbar("scrollTo", Math.abs(p.position().top) - x, { 7432 trigger: "internal", 7433 scrollEasing: "easeOutCirc" 7434 }); 7435 }, 17) 7436 }); 7437 }); 7438 var f = function (x) { 7439 x.preventDefault(); 7440 clearInterval(k.data("mCSB_buttonScrollUp")); 7441 }; 7442 w.bind("mouseup touchend MSPointerUp mouseout MSPointerOut", f); 7443 k.data({ 7444 bindEvent_buttonsContinuous_y: true 7445 }); 7446 } 7447 } 7448 function z() { 7449 var x = k.data("scrollButtons_scrollSpeed"); 7450 if (k.data("scrollButtons_scrollSpeed") === "auto") { 7451 x = Math.round((k.data("scrollInertia") + 100) / 40); 7452 } 7453 return x; 7454 } 7455 } 7456 } 7457 if (k.data("autoScrollOnFocus")) { 7458 if (!k.data("bindEvent_focusin")) { 7459 h.bind("focusin", function () { 7460 h.scrollTop(0).scrollLeft(0); 7461 var x = c(document.activeElement); 7462 if (x.is("input,textarea,select,button,a[tabindex],area,object")) { 7463 var G = p.position().top, 7464 y = x.position().top, 7465 F = h.height() - x.outerHeight(); 7466 if (k.data("horizontalScroll")) { 7467 G = p.position().left; 7468 y = x.position().left; 7469 F = h.width() - x.outerWidth(); 7470 } 7471 if (G + y < 0 || G + y > F) { 7472 k.mCustomScrollbar("scrollTo", y, { 7473 trigger: "internal" 7474 }); 7475 } 7476 } 7477 }); 7478 k.data({ 7479 bindEvent_focusin: true 7480 }); 7481 } 7482 } 7483 if (k.data("autoHideScrollbar")) { 7484 if (!k.data("bindEvent_autoHideScrollbar")) { 7485 h.bind("mouseenter", function (x) { 7486 h.addClass("mCS-mouse-over"); 7487 d.showScrollbar.call(h.children(".mCSB_scrollTools")); 7488 }).bind("mouseleave touchend", function (x) { 7489 h.removeClass("mCS-mouse-over"); 7490 if (x.type === "mouseleave") { 7491 d.hideScrollbar.call(h.children(".mCSB_scrollTools")); 7492 } 7493 }); 7494 k.data({ 7495 bindEvent_autoHideScrollbar: true 7496 }); 7497 } 7498 } 7499 }, 7500 scrollTo: function (e, f) { 7501 var i = c(this), 7502 o = { 7503 moveDragger: false, 7504 trigger: "external", 7505 callbacks: true, 7506 scrollInertia: i.data("scrollInertia"), 7507 scrollEasing: i.data("scrollEasing") 7508 }, 7509 f = c.extend(o, f), 7510 p, 7511 g = i.children(".mCustomScrollBox"), 7512 k = g.children(".mCSB_container"), 7513 r = g.children(".mCSB_scrollTools"), 7514 j = r.children(".mCSB_draggerContainer"), 7515 h = j.children(".mCSB_dragger"), 7516 t = draggerSpeed = f.scrollInertia, 7517 q, 7518 s, 7519 m, 7520 l; 7521 if (!k.hasClass("mCS_no_scrollbar")) { 7522 i.data({ 7523 mCS_trigger: f.trigger 7524 }); 7525 if (i.data("mCS_Init")) { 7526 f.callbacks = false;
7527 } 7528 if (e || e === 0) { 7529 if (typeof e === "number") { 7530 if (f.moveDragger) { 7531 p = e; 7532 if (i.data("horizontalScroll")) { 7533 e = h.position().left * i.data("scrollAmount"); 7534 } else { 7535 e = h.position().top * i.data("scrollAmount"); 7536 } 7537 draggerSpeed = 0; 7538 } else { 7539 p = e / i.data("scrollAmount"); 7540 } 7541 } else { 7542 if (typeof e === "string") { 7543 var v; 7544 if (e === "top") { 7545 v = 0; 7546 } else { 7547 if (e === "bottom" && !i.data("horizontalScroll")) { 7548 v = k.outerHeight() - g.height(); 7549 } else { 7550 if (e === "left") { 7551 v = 0; 7552 } else { 7553 if (e === "right" && i.data("horizontalScroll")) { 7554 v = k.outerWidth() - g.width(); 7555 } else { 7556 if (e === "first") { 7557 v = i.find(".mCSB_container").find(":first"); 7558 } else { 7559 if (e === "last") { 7560 v = i.find(".mCSB_container").find(":last"); 7561 } else { 7562 v = i.find(e); 7563 } 7564 } 7565 } 7566 } 7567 } 7568 } 7569 if (v.length === 1) { 7570 if (i.data("horizontalScroll")) { 7571 e = v.position().left; 7572 } else { 7573 e = v.position().top; 7574 } 7575 p = e / i.data("scrollAmount"); 7576 } else { 7577 p = e = v; 7578 } 7579 } 7580 } 7581 if (i.data("horizontalScroll")) { 7582 if (i.data("onTotalScrollBack_Offset")) { 7583 s = -i.data("onTotalScrollBack_Offset"); 7584 } 7585 if (i.data("onTotalScroll_Offset")) { 7586 l = g.width() - k.outerWidth() + i.data("onTotalScroll_Offset"); 7587 } 7588 if (p < 0) { 7589 p = e = 0; 7590 clearInterval(i.data("mCSB_buttonScrollLeft")); 7591 if (!s) { 7592 q = true; 7593 } 7594 } else { 7595 if (p >= j.width() - h.width()) { 7596 p = j.width() - h.width(); 7597 e = g.width() - k.outerWidth(); 7598 clearInterval(i.data("mCSB_buttonScrollRight")); 7599 if (!l) { 7600 m = true; 7601 } 7602 } else { 7603 e = -e; 7604 } 7605 } 7606 var n = i.data("snapAmount"); 7607 if (n) { 7608 e = Math.round(e / n) * n - i.data("snapOffset"); 7609 } 7610 d.mTweenAxis.call(this, h[0], "left", Math.round(p), draggerSpeed, f.scrollEasing); 7611 d.mTweenAxis.call(this, k[0], "left", Math.round(e), t, f.scrollEasing, { 7612 onStart: function () { 7613 if (f.callbacks && !i.data("mCS_tweenRunning")) { 7614 u("onScrollStart"); 7615 } 7616 if (i.data("autoHideScrollbar")) { 7617 d.showScrollbar.call(r); 7618 } 7619 }, 7620 onUpdate: function () { 7621 if (f.callbacks) { 7622 u("whileScrolling"); 7623 } 7624 }, 7625 onComplete: function () { 7626 if (f.callbacks) { 7627 u("onScroll"); 7628 if (q || s && k.position().left >= s) { 7629 u("onTotalScrollBack"); 7630 } 7631 if (m || l && k.position().left <= l) { 7632 u("onTotalScroll"); 7633 } 7634 } 7635 h.data("preventAction", false); 7636 i.data("mCS_tweenRunning", false); 7637 if (i.data("autoHideScrollbar")) { 7638 if (!g.hasClass("mCS-mouse-over")) { 7639 d.hideScrollbar.call(r); 7640 } 7641 } 7642 } 7643 }); 7644 } else { 7645 if (i.data("onTotalScrollBack_Offset")) { 7646 s = -i.data("onTotalScrollBack_Offset"); 7647 } 7648 if (i.data("onTotalScroll_Offset")) { 7649 l = g.height() - k.outerHeight() + i.data("onTotalScroll_Offset"); 7650 } 7651 if (p < 0) { 7652 p = e = 0; 7653 clearInterval(i.data("mCSB_buttonScrollUp")); 7654 if (!s) { 7655 q = true; 7656 } 7657 } else { 7658 if (p >= j.height() - h.height()) { 7659 p = j.height() - h.height(); 7660 e = g.height() - k.outerHeight(); 7661 clearInterval(i.data("mCSB_buttonScrollDown")); 7662 if (!l) { 7663 m = true; 7664 } 7665 } else { 7666 e = -e; 7667 } 7668 } 7669 var n = i.data("snapAmount"); 7670 if (n) { 7671 e = Math.round(e / n) * n - i.data("snapOffset"); 7672 } 7673 d.mTweenAxis.call(this, h[0], "top", Math.round(p), draggerSpeed, f.scrollEasing); 7674 d.mTweenAxis.call(this, k[0], "top", Math.round(e), t, f.scrollEasing, { 7675 onStart: function () { 7676 if (f.callbacks && !i.data("mCS_tweenRunning")) { 7677 u("onScrollStart"); 7678 } 7679 if (i.data("autoHideScrollbar")) { 7680 d.showScrollbar.call(r); 7681 } 7682 }, 7683 onUpdate: function () { 7684 if (f.callbacks) { 7685 u("whileScrolling"); 7686 } 7687 }, 7688 onComplete: function () { 7689 if (f.callbacks) { 7690 u("onScroll"); 7691 if (q || s && k.position().top >= s) { 7692 u("onTotalScrollBack"); 7693 } 7694 if (m || l && k.position().top <= l) { 7695 u("onTotalScroll"); 7696 } 7697 } 7698 h.data("preventAction", false); 7699 i.data("mCS_tweenRunning", false); 7700 if (i.data("autoHideScrollbar")) { 7701 if (!g.hasClass("mCS-mouse-over")) { 7702 d.hideScrollbar.call(r); 7703 } 7704 } 7705 } 7706 }); 7707 } 7708 if (i.data("mCS_Init")) { 7709 i.data({ 7710 mCS_Init: false 7711 }); 7712 } 7713 } 7714 } 7715 function u(w) { 7716 this.mcs = { 7717 top: k.position().top, 7718 left: k.position().left, 7719 draggerTop: h.position().top, 7720 draggerLeft: h.position().left, 7721 topPct: Math.round(100 * Math.abs(k.position().top) / Math.abs(k.outerHeight() - g.height())), 7722 leftPct: Math.round(100 * Math.abs(k.position().left) / Math.abs(k.outerWidth() - g.width())) 7723 }; 7724 switch (w) { 7725 case "onScrollStart": 7726 i.data("mCS_tweenRunning", true).data("onScrollStart_Callback").call(i, this.mcs); 7727 break; 7728 case "whileScrolling": 7729 i.data("whileScrolling_Callback").call(i, this.mcs); 7730 break; 7731 case "onScroll": 7732 i.data("onScroll_Callback").call(i, this.mcs); 7733 break; 7734 case "onTotalScrollBack": 7735 i.data("onTotalScrollBack_Callback").call(i, this.mcs); 7736 break; 7737 case "onTotalScroll": 7738 i.data("onTotalScroll_Callback").call(i, this.mcs); 7739 break; 7740 } 7741 } 7742 }, 7743 stop: function () { 7744 var g = c(this), 7745 e = g.children().children(".mCSB_container"), 7746 f = g.children().children().children().children(".mCSB_dragger"); 7747 d.mTweenAxisStop.call(this, e[0]); 7748 d.mTweenAxisStop.call(this, f[0]); 7749 }, 7750 disable: function (e) { 7751 var j = c(this), 7752 f = j.children(".mCustomScrollBox"), 7753 h = f.children(".mCSB_container"), 7754 g = f.children(".mCSB_scrollTools"), 7755 i = g.children().children(".mCSB_dragger"); 7756 f.unbind("mousewheel focusin mouseenter mouseleave touchend"); 7757 h.unbind("touchstart touchmove"); 7758 if (e) { 7759 if (j.data("horizontalScroll")) { 7760 i.add(h).css("left", 0); 7761 } else { 7762 i.add(h).css("top", 0); 7763 } 7764 } 7765 g.css("display", "none"); 7766 h.addClass("mCS_no_scrollbar"); 7767 j.data({ 7768 bindEvent_mousewheel: false, 7769 bindEvent_focusin: false, 7770 bindEvent_content_touch: false, 7771 bindEvent_autoHideScrollbar: false 7772 }).addClass("mCS_disabled"); 7773 }, 7774 destroy: function () { 7775 var e = c(this); 7776 e.removeClass("mCustomScrollbar _mCS_" + e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove(); 7777 c(document).unbind("mousemove." + e.data("mCustomScrollbarIndex") + " mouseup." + e.data("mCustomScrollbarIndex") + " MSPointerMove." + e.data("mCustomScrollbarIndex") + " MSPointerUp." + e.data("mCustomScrollbarIndex")); 7778 c(window).unbind("resize." + e.data("mCustomScrollbarIndex")); 7779 } 7780 }, 7781 d = { 7782 showScrollbar: function () { 7783 this.stop().animate({ 7784 opacity: 1 7785 }, "fast"); 7786 }, 7787 hideScrollbar: function () { 7788 this.stop().animate({ 7789 opacity: 0 7790 }, "fast"); 7791 }, 7792 mTweenAxis: function (g, i, h, f, o, y) { 7793 var y = y || {}, 7794 v = y.onStart || function () {}, 7795 p = y.onUpdate || function () {}, 7796 w = y.onComplete || function () {}; 7797 var n = t(), 7798 l, 7799 j = 0, 7800 r = g.offsetTop, 7801 s = g.style; 7802 if (i === "left") { 7803 r = g.offsetLeft; 7804 } 7805 var m = h - r; 7806 q(); 7807 e(); 7808 function t() { 7809 if (window.performance && window.performance.now) { 7810 return window.performance.now(); 7811 } else { 7812 if (window.performance && window.performance.webkitNow) { 7813 return window.performance.webkitNow(); 7814 } else { 7815 if (Date.now) { 7816 return Date.now(); 7817 } else { 7818 return new Date().getTime(); 7819 } 7820 } 7821 } 7822 } 7823 function x() { 7824 if (!j) { 7825 v.call(); 7826 } 7827 j = t() - n; 7828 u(); 7829 if (j >= g._time) { 7830 g._time = j > g._time ? j + l - (j - g._time) : j + l - 1; 7831 if (g._time < j + 1) { 7832 g._time = j + 1; 7833 } 7834 } 7835 if (g._time < f) { 7836 g._id = _request(x); 7837 } else { 7838 w.call(); 7839 } 7840 } 7841 function u() { 7842 if (f > 0) { 7843 g.currVal = k(g._time, r, m, f, o); 7844 s[i] = Math.round(g.currVal) + "px"; 7845 } else { 7846 s[i] = h + "px"; 7847 } 7848 p.call(); 7849 } 7850 function e() { 7851 l = 1000 / 60; 7852 g._time = j + l; 7853 _request = !window.requestAnimationFrame ? function (z) { 7854 u(); 7855 return setTimeout(z, 0.01); 7856 } : window.requestAnimationFrame; 7857 g._id = _request(x); 7858 } 7859 function q() { 7860 if (g._id == null) { 7861 return; 7862 } 7863 if (!window.requestAnimationFrame) { 7864 clearTimeout(g._id); 7865 } else { 7866 window.cancelAnimationFrame(g._id); 7867 } 7868 g._id = null; 7869 } 7870 function k(B, A, F, E, C) { 7871 switch (C) { 7872 case "linear": 7873 return F * B / E + A; 7874 break; 7875 case "easeOutQuad": 7876 B /= E; 7877 return -F * B * (B - 2) + A; 7878 break; 7879 case "easeInOutQuad": 7880 B /= E / 2; 7881 if (B < 1) { 7882 return F / 2 * B * B + A; 7883 } 7884 B--; 7885 return -F / 2 * (B * (B - 2) - 1) + A; 7886 break; 7887 case "easeOutCubic": 7888 B /= E; 7889 B--; 7890 return F * (B * B * B + 1) + A; 7891 break; 7892 case "easeOutQuart": 7893 B /= E; 7894 B--; 7895 return -F * (B * B * B * B - 1) + A; 7896 break; 7897 case "easeOutQuint": 7898 B /= E; 7899 B--; 7900 return F * (B * B * B * B * B + 1) + A; 7901 break; 7902 case "easeOutCirc": 7903 B /= E; 7904 B--; 7905 return F * Math.sqrt(1 - B * B) + A; 7906 break; 7907 case "easeOutSine": 7908 return F * Math.sin(B / E * (Math.PI / 2)) + A; 7909 break; 7910 case "easeOutExpo": 7911 return F * (-Math.pow(2, -10 * B / E) + 1) + A; 7912 break; 7913 case "mcsEaseOut": 7914 var D = (B /= E) * B, 7915 z = D * B; 7916 return A + F * (0.499999999999997 * z * D + -2.5 * D * D + 5.5 * z + -6.5 * D + 4 * B); 7917 break; 7918 case "draggerRailEase": 7919 B /= E / 2; 7920 if (B < 1) { 7921 return F / 2 * B * B * B + A; 7922 } 7923 B -= 2; 7924 return F / 2 * (B * B * B + 2) + A; 7925 break; 7926 } 7927 } 7928 }, 7929 mTweenAxisStop: function (e) { 7930 if (e._id == null) { 7931 return; 7932 } 7933 if (!window.requestAnimationFrame) { 7934 clearTimeout(e._id); 7935 } else { 7936 window.cancelAnimationFrame(e._id); 7937 } 7938 e._id = null; 7939 }, 7940 rafPolyfill: function () { 7941 var f = ["ms", "moz", "webkit", "o"], 7942 e = f.length; 7943 while (--e > -1 && !window.requestAnimationFrame) { 7944 window.requestAnimationFrame = window[f[e] + "RequestAnimationFrame"]; 7945 window.cancelAnimationFrame = window[f[e] + "CancelAnimationFrame"] || window[f[e] + "CancelRequestAnimationFrame"]; 7946 } 7947 } 7948 }; 7949 d.rafPolyfill.call(); 7950 c.support.touch = !!("ontouchstart" in window); 7951 c.support.msPointer = window.navigator.msPointerEnabled; 7952 var a = "https:" == document.location.protocol ? "https:" : "http:";
7953 c.event.special.mousewheel || document.write('<script src="' + a + '//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>'); 7954 c.fn.mCustomScrollbar = function (e) { 7955 if (b[e]) { 7956 return b[e].apply(this, Array.prototype.slice.call(arguments, 1)); 7957 } else { 7958 if (typeof e === "object" || !e) { 7959 return b.init.apply(this, arguments); 7960 } else { 7961 c.error("Method " + e + " does not exist"); 7962 } 7963 } 7964 }; 7965})(jQuery); 7966 7967/** 7968 * Arctext.js 7969 * A jQuery plugin for curved text 7970 * http://www.codrops.com 7971 * 7972 * Copyright 2011, Pedro Botelho / Codrops 7973 * Free to use under the MIT license. 7974 * 7975 * Date: Mon Jan 23 2012 7976 */ 7977(function (c, d) { 7978 /*! 7979 * FitText.js 1.0 7980 * 7981 * Copyright 2011, Dave Rupert http://daverupert.com 7982 * Released under the WTFPL license 7983 * http://sam.zoy.org/wtfpl/ 7984 * 7985 * Date: Thu May 05 14:23:00 2011 -0600 7986 */ 7987 ; 7988 c.fn.fitText = function (h, f) { 7989 var g = { 7990 minFontSize: Number.NEGATIVE_INFINITY, 7991 maxFontSize: Number.POSITIVE_INFINITY 7992 }; 7993 return this.each(function () { 7994 var i = c(this); 7995 var k = h || 1; 7996 if (f) { 7997 c.extend(g, f); 7998 } 7999 var j = function () { 8000 i.css("font-size", Math.max(Math.min(i.width() / (k * 10), parseFloat(g.maxFontSize)), parseFloat(g.minFontSize))); 8001 }; 8002 j(); 8003 c(window).resize(j); 8004 }); 8005 }; 8006 function e(i, k, f, l) { 8007 var g = i.text().split(k), 8008 h = "", 8009 j; 8010 if (g.length) { 8011 c(g).each(function (m, n) { 8012 j = ""; 8013 if (n === " ") { 8014 j = " empty"; 8015 n = " "; 8016 } 8017 h += '<span class="' + f + (m + 1) + j + '">' + n + "</span>" + l; 8018 }); 8019 i.empty().append(h); 8020 } 8021 } 8022 var a = { 8023 init: function () { 8024 return this.each(function () { 8025 e(c(this), "", "char", ""); 8026 }); 8027 }, 8028 words: function () { 8029 return this.each(function () { 8030 e(c(this), " ", "word", " "); 8031 }); 8032 }, 8033 lines: function () { 8034 return this.each(function () { 8035 var f = "eefec303079ad17405c889e092e105b0"; 8036 e(c(this).children("br").replaceWith(f).end(), f, "line", ""); 8037 }); 8038 } 8039 }; 8040 c.fn.lettering = function (f) { 8041 if (f && a[f]) { 8042 return a[f].apply(this, [].slice.call(arguments, 1)); 8043 } else { 8044 if (f === "letters" || !f) { 8045 return a.init.apply(this, [].slice.call(arguments, 0)); 8046 } 8047 } 8048 c.error("Method " + f + " does not exist on jQuery.lettering"); 8049 return this; 8050 }; 8051 c.Arctext = function (f, g) { 8052 this.$el = c(g); 8053 this._init(f); 8054 }; 8055 c.Arctext.defaults = { 8056 radius: 0, 8057 dir: 1, 8058 rotate: true, 8059 fitText: false 8060 }; 8061 c.Arctext.prototype = { 8062 _init: function (f) { 8063 this.options = c.extend(true, {}, c.Arctext.defaults, f); 8064 this._applyLettering(); 8065 this.$el.data("arctext", true); 8066 this._calc(); 8067 this._rotateWord(); 8068 this._loadEvents(); 8069 }, 8070 _applyLettering: function () { 8071 this.$el.lettering(); 8072 if (this.options.fitText) { 8073 this.$el.fitText(); 8074 } 8075 this.$letters = this.$el.find("span").css("display", "inline-block"); 8076 }, 8077 _calc: function () { 8078 if (this.options.radius === -1) { 8079 return false; 8080 } 8081 this._calcBase(); 8082 this._calcLetters(); 8083 }, 8084 _calcBase: function () { 8085 this.dtWord = 0; 8086 var f = this; 8087 this.$letters.each(function (j) { 8088 var l = c(this), 8089 k = l.outerWidth(true); 8090 f.dtWord += k; 8091 l.data("center", f.dtWord - k / 2); 8092 }); 8093 var g = this.dtWord / 2; 8094 if (this.options.radius < g) { 8095 this.options.radius = g; 8096 } 8097 this.dtArcBase = this.dtWord; 8098 var h = 2 * Math.asin(this.dtArcBase / (2 * this.options.radius)); 8099 this.dtArc = this.options.radius * h; 8100 }, 8101 _calcLetters: function () { 8102 var f = this, 8103 g = 0; 8104 this.$letters.each(function (o) { 8105 var s = c(this), 8106 k = s.outerWidth(true) / f.dtWord * f.dtArc, 8107 u = k / f.options.radius, 8108 p = f.options.radius * Math.cos(u / 2), 8109 m = Math.acos((f.dtWord / 2 - g) / f.options.radius), 8110 j = m + u / 2,
8111 t = Math.cos(j) * p, 8112 r = Math.sin(j) * p, 8113 n = g + Math.abs(f.dtWord / 2 - t - g), 8114 v = 0 | n - s.data("center"), 8115 q = 0 | f.options.radius - r, 8116 l = f.options.rotate ? 0 | -Math.asin(t / f.options.radius) * (180 / Math.PI) : 0; 8117 g = 2 * n - g; 8118 s.data({ 8119 x: v, 8120 y: f.options.dir === 1 ? q : -q, 8121 a: f.options.dir === 1 ? l : -l 8122 }); 8123 }); 8124 }, 8125 _rotateWord: function (g) { 8126 if (!this.$el.data("arctext")) { 8127 return false; 8128 } 8129 var f = this; 8130 this.$letters.each(function (h) { 8131 var l = c(this), 8132 j = f.options.radius === -1 ? "none" : "translateX(" + l.data("x") + "px) translateY(" + l.data("y") + "px) rotate(" + l.data("a") + "deg)", 8133 k = g ? "all " + (g.speed || 0) + "ms " + (g.easing || "linear") : "none"; 8134 l.css({ 8135 "-webkit-transition": k, 8136 "-moz-transition": k, 8137 "-o-transition": k, 8138 "-ms-transition": k, 8139 transition: k 8140 }).css({ 8141 "-webkit-transform": j, 8142 "-moz-transform": j, 8143 "-o-transform": j, 8144 "-ms-transform": j, 8145 transform: j 8146 }); 8147 }); 8148 }, 8149 _loadEvents: function () { 8150 if (this.options.fitText) { 8151 var f = this; 8152 c(window).on("resize.arctext", function () { 8153 f._calc(); 8154 f._rotateWord(); 8155 }); 8156 } 8157 }, 8158 set: function (f) { 8159 if (!f.radius && !f.dir && f.rotate === "undefined") { 8160 return false; 8161 } 8162 this.options.radius = f.radius || this.options.radius; 8163 this.options.dir = f.dir || this.options.dir; 8164 if (f.rotate !== d) { 8165 this.options.rotate = f.rotate; 8166 } 8167 this._calc(); 8168 this._rotateWord(f.animation); 8169 }, 8170 destroy: function () { 8171 this.options.radius = -1; 8172 this._rotateWord(); 8173 this.$letters.removeData("x y a center"); 8174 this.$el.removeData("arctext"); 8175 c(window).off(".arctext"); 8176 } 8177 }; 8178 var b = function (f) { 8179 if (this.console) { 8180 console.error(f); 8181 } 8182 }; 8183 c.fn.arctext = function (g) { 8184 if (typeof g === "string") { 8185 var f = Array.prototype.slice.call(arguments, 1); 8186 this.each(function () { 8187 var h = c.data(this, "arctext"); 8188 if (!h) { 8189 b("cannot call methods on arctext prior to initialization; attempted to call method '" + g + "'"); 8190 return; 8191 } 8192 if (!c.isFunction(h[g]) || g.charAt(0) === "_") { 8193 b("no such method '" + g + "' for arctext instance"); 8194 return; 8195 } 8196 h[g].apply(h, f); 8197 }); 8198 } else { 8199 this.each(function () { 8200 var h = c.data(this, "arctext"); 8201 if (!h) { 8202 c.data(this, "arctext", new c.Arctext(g, this)); 8203 } 8204 }); 8205 } 8206 return this; 8207 }; 8208})(jQuery); 8209 8210/* infinite-scroll plugin*/ 8211(function (o, i, k) { 8212 i.infinitescroll = function z(D, F, E) { 8213 this.element = i(E); 8214 if (!this._create(D, F)) { 8215 this.failed = true; 8216 } 8217 }; 8218 i.infinitescroll.defaults = { 8219 loading: { 8220 finished: k, 8221 finishedMsg: "<em>Congratulations, you've reached the end of the internet.</em>", 8222 img: "data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2L
8222RwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSH
8222MzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2G
8222iqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7", 8223 msg: null, 8224 msgText: "<em>Loading the next set of posts...</em>", 8225 selector: null, 8226 speed: "fast", 8227 start: k 8228 }, 8229 state: { 8230 isDuringAjax: false, 8231 isInvalidPage: false,
8232 isDestroyed: false, 8233 isDone: false, 8234 isPaused: false, 8235 currPage: 1 8236 }, 8237 debug: false, 8238 behavior: k, 8239 binder: i(o), 8240 nextSelector: "div.navigation a:first", 8241 navSelector: "div.navigation", 8242 contentSelector: null, 8243 extraScrollPx: 150, 8244 itemSelector: "div.post", 8245 animate: false, 8246 pathParse: k, 8247 dataType: "html", 8248 appendCallback: true, 8249 bufferPx: 40, 8250 errorCallback: function () {}, 8251 infid: 0, 8252 pixelsFromNavToBottom: k, 8253 path: k, 8254 prefill: false, 8255 maxPage: k 8256 }; 8257 i.infinitescroll.prototype = { 8258 _binding: function g(F) { 8259 var D = this, 8260 E = D.options; 8261 E.v = "2.0b2.120520"; 8262 if (!!E.behavior && this["_binding_" + E.behavior] !== k) { 8263 this["_binding_" + E.behavior].call(this); 8264 return; 8265 } 8266 if (F !== "bind" && F !== "unbind") { 8267 this._debug("Binding value " + F + " not valid"); 8268 return false; 8269 } 8270 if (F === "unbind") { 8271 this.options.binder.unbind("smartscroll.infscr." + D.options.infid); 8272 } else { 8273 this.options.binder[F]("smartscroll.infscr." + D.options.infid, function () { 8274 D.scroll(); 8275 }); 8276 } 8277 this._debug("Binding", F); 8278 }, 8279 _create: function t(F, J) { 8280 var G = i.extend(true, {}, i.infinitescroll.defaults, F); 8281 this.options = G; 8282 var I = i(o); 8283 var D = this; 8284 if (!D._validate(F)) { 8285 return false; 8286 } 8287 var H = i(G.nextSelector).attr("href"); 8288 if (!H) { 8289 this._debug("Navigation selector not found"); 8290 return false; 8291 } 8292 G.path = G.path || this._determinepath(H); 8293 G.contentSelector = G.contentSelector || this.element; 8294 G.loading.selector = G.loading.selector || G.contentSelector; 8295 G.loading.msg = G.loading.msg || i('<div id="infscr-loading"><img alt="Loading..." src="' + G.loading.img + '" /><div>' + G.loading.msgText + "</div></div>"); 8296 new Image().src = G.loading.img; 8297 if (G.pixelsFromNavToBottom === k) { 8298 G.pixelsFromNavToBottom = i(document).height() - i(G.navSelector).offset().top; 8299 } 8300 var E = this; 8301 G.loading.start = G.loading.start || function () { 8302 i(G.navSelector).hide(); 8303 G.loading.msg.appendTo(G.loading.selector).show(G.loading.speed, i.proxy(function () { 8304 this.beginAjax(G); 8305 }, E)); 8306 }; 8307 G.loading.finished = G.loading.finished || function () { 8308 G.loading.msg.fadeOut(G.loading.speed); 8309 }; 8310 G.callback = function (K, M, L) { 8311 if (!!G.behavior && K["_callback_" + G.behavior] !== k) { 8312 K["_callback_" + G.behavior].call(i(G.contentSelector)[0], M, L); 8313 } 8314 if (J) { 8315 J.call(i(G.contentSelector)[0], M, G, L); 8316 } 8317 if (G.prefill) { 8318 I.bind("resize.infinite-scroll", K._prefill); 8319 } 8320 }; 8321 if (F.debug) { 8322 if (Function.prototype.bind && (typeof console === "object" || typeof console === "function") && typeof console.log === "object") { 8323 ["log", "info", "warn", "error", "assert", "dir", "clear", "profile", "profileEnd"].forEach(function (K) { 8324 console[K] = this.call(console[K], console); 8325 }, Function.prototype.bind); 8326 } 8327 } 8328 this._setup(); 8329 if (G.prefill) { 8330 this._prefill(); 8331 } 8332 return true; 8333 }, 8334 _prefill: function n() { 8335 var D = this; 8336 var G = i(document); 8337 var F = i(o); 8338 function E() { 8339 return G.height() <= F.height(); 8340 } 8341 this._prefill = function () { 8342 if (E()) { 8343 D.scroll(); 8344 } 8345 F.bind("resize.infinite-scroll", function () { 8346 if (E()) { 8347 F.unbind("resize.infinite-scroll"); 8348 D.scroll(); 8349 } 8350 }); 8351 }; 8352 this._prefill(); 8353 }, 8354 _debug: function q() { 8355 if (true !== this.options.debug) { 8356 return; 8357 } 8358 if (typeof console !== "undefined" && typeof console.log === "function") { 8359 if (Array.prototype.slice.call(arguments).length === 1 && typeof Array.prototype.slice.call(arguments)[0] === "string") { 8360 console.log(Array.prototype.slice.call(arguments).toString()); 8361 } else { 8362 console.log(Array.prototype.slice.call(arguments)); 8363 } 8364 } else { 8365 if (!Function.prototype.bind && typeof console !== "undefined" && typeof console.log === "object") { 8366 Function.prototype.call.call(console.log, console, Array.prototype.slice.call(arguments)); 8367 } 8368 } 8369 }, 8370 _determinepath: function A(E) { 8371 var D = this.options; 8372 if (!!D.behavior && this["_determinepath_" + D.behavior] !== k) { 8373 return this["_determinepath_" + D.behavior].call(this, E); 8374 } 8375 if (!!D.pathParse) { 8376 this._debug("pathParse manual"); 8377 return D.pathParse(E, this.options.state.currPage + 1); 8378 } else { 8379 if (E.match(/^(.*?)\b2\b(.*?$)/)) { 8380 E = E.match(/^(.*?)\b2\b(.*?$)/).slice(1); 8381 } else { 8382 if (E.match(/^(.*?)2(.*?$)/)) { 8383 if (E.match(/^(.*?page=)2(\/.*|$)/)) { 8384 E = E.match(/^(.*?page=)2(\/.*|$)/).slice(1); 8385 return E; 8386 } 8387 E = E.match(/^(.*?)2(.*?$)/).slice(1); 8388 } else { 8389 if (E.match(/^(.*?page=)1(\/.*|$)/)) { 8390 E = E.match(/^(.*?page=)1(\/.*|$)/).slice(1); 8391 return E; 8392 } else { 8393 this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."); 8394 D.state.isInvalidPage = true; 8395 } 8396 } 8397 } 8398 } 8399 this._debug("determinePath", E); 8400 return E; 8401 }, 8402 _error: function v(E) { 8403 var D = this.options; 8404 if (!!D.behavior && this["_error_" + D.behavior] !== k) { 8405 this["_error_" + D.behavior].call(this, E); 8406 return; 8407 } 8408 if (E !== "destroy" && E !== "end") { 8409 E = "unknown"; 8410 } 8411 this._debug("Error", E); 8412 if (E === "end") { 8413 this._showdonemsg(); 8414 } 8415 D.state.isDone = true; 8416 D.state.currPage = 1;
8417 D.state.isPaused = false; 8418 this._binding("unbind"); 8419 }, 8420 _loadcallback: function c(H, G, E) { 8421 var D = this.options, 8422 J = this.options.callback, 8423 L = D.state.isDone ? "done" : !D.appendCallback ? "no-append" : "append", 8424 K; 8425 if (!!D.behavior && this["_loadcallback_" + D.behavior] !== k) { 8426 this["_loadcallback_" + D.behavior].call(this, H, G); 8427 return; 8428 } 8429 switch (L) { 8430 case "done": 8431 this._showdonemsg(); 8432 return false; 8433 case "no-append": 8434 if (D.dataType === "html") { 8435 G = "<div>" + G + "</div>"; 8436 G = i(G).find(D.itemSelector); 8437 } 8438 break; 8439 case "append": 8440 var F = H.children(); 8441 if (F.length === 0) { 8442 return this._error("end"); 8443 } 8444 K = document.createDocumentFragment(); 8445 while (H[0].firstChild) { 8446 K.appendChild(H[0].firstChild); 8447 } 8448 this._debug("contentSelector", i(D.contentSelector)[0]); 8449 i(D.contentSelector)[0].appendChild(K); 8450 G = F.get(); 8451 break; 8452 } 8453 D.loading.finished.call(i(D.contentSelector)[0], D); 8454 if (D.animate) { 8455 var I = i(o).scrollTop() + i("#infscr-loading").height() + D.extraScrollPx + "px"; 8456 i("html,body").animate({ 8457 scrollTop: I 8458 }, 800, function () { 8459 D.state.isDuringAjax = false; 8460 }); 8461 } 8462 if (!D.animate) { 8463 D.state.isDuringAjax = false; 8464 } 8465 J(this, G, E); 8466 if (D.prefill) { 8467 this._prefill(); 8468 } 8469 }, 8470 _nearbottom: function u() { 8471 var E = this.options, 8472 D = 0 + i(document).height() - E.binder.scrollTop() - i(o).height(); 8473 if (!!E.behavior && this["_nearbottom_" + E.behavior] !== k) { 8474 return this["_nearbottom_" + E.behavior].call(this); 8475 } 8476 this._debug("math:", D, E.pixelsFromNavToBottom); 8477 return D - E.bufferPx < E.pixelsFromNavToBottom; 8478 }, 8479 _pausing: function l(E) { 8480 var D = this.options; 8481 if (!!D.behavior && this["_pausing_" + D.behavior] !== k) { 8482 this["_pausing_" + D.behavior].call(this, E); 8483 return; 8484 } 8485 if (E !== "pause" && E !== "resume" && E !== null) { 8486 this._debug("Invalid argument. Toggling pause value instead"); 8487 } 8488 E = E && (E === "pause" || E === "resume") ? E : "toggle"; 8489 switch (E) { 8490 case "pause": 8491 D.state.isPaused = true; 8492 break; 8493 case "resume": 8494 D.state.isPaused = false; 8495 break; 8496 case "toggle": 8497 D.state.isPaused = !D.state.isPaused; 8498 break; 8499 } 8500 this._debug("Paused", D.state.isPaused); 8501 return false; 8502 }, 8503 _setup: function r() { 8504 var D = this.options; 8505 if (!!D.behavior && this["_setup_" + D.behavior] !== k) { 8506 this["_setup_" + D.behavior].call(this); 8507 return; 8508 } 8509 this._binding("bind"); 8510 return false; 8511 }, 8512 _showdonemsg: function a() { 8513 var D = this.options; 8514 if (!!D.behavior && this["_showdonemsg_" + D.behavior] !== k) { 8515 this["_showdonemsg_" + D.behavior].call(this); 8516 return; 8517 } 8518 D.loading.msg.find("img").hide().parent().find("div").html(D.loading.finishedMsg).animate({ 8519 opacity: 1 8520 }, 2000, function () { 8521 i(this).parent().fadeOut(D.loading.speed); 8522 }); 8523 D.errorCallback.call(i(D.contentSelector)[0], "done"); 8524 }, 8525 _validate: function w(E) { 8526 for (var D in E) { 8527 if (D.indexOf && D.indexOf("Selector") > -1 && i(E[D]).length === 0) { 8528 this._debug("Your " + D + " found no elements."); 8529 return false; 8530 } 8531 } 8532 return true; 8533 }, 8534 bind: function p() { 8535 this._binding("bind"); 8536 }, 8537 destroy: function C() { 8538 this.options.state.isDestroyed = true; 8539 this.options.loading.finished(); 8540 return this._error("destroy"); 8541 }, 8542 pause: function e() { 8543 this._pausing("pause"); 8544 }, 8545 resume: function h() { 8546 this._pausing("resume"); 8547 }, 8548 beginAjax: function B(G) { 8549 var E = this, 8550 I = G.path, 8551 F, 8552 D, 8553 K, 8554 J; 8555 G.state.currPage++; 8556 if (G.maxPage != k && G.state.currPage > G.maxPage) { 8557 this.destroy(); 8558 return; 8559 } 8560 F = i(G.contentSelector).is("table") ? i("<tbody/>") : i("<div/>"); 8561 D = typeof I === "function" ? I(G.state.currPage) : I.join(G.state.currPage); 8562 E._debug("heading into ajax", D); 8563 K = G.dataType === "html" || G.dataType === "json" ? G.dataType : "html+callback"; 8564 if (G.appendCallback && G.dataType === "html") { 8565 K += "+callback"; 8566 } 8567 switch (K) { 8568 case "html+callback": 8569 E._debug("Using HTML via .load() method"); 8570 F.load(D + " " + G.itemSelector, k, function H(L) { 8571 E._loadcallback(F, L, D); 8572 }); 8573 break; 8574 case "html": 8575 E._debug("Using " + K.toUpperCase() + " via $.ajax() method"); 8576 i.ajax({ 8577 url: D, 8578 dataType: G.dataType, 8579 complete: function H(L, M) { 8580 J = typeof L.isResolved !== "undefined" ? L.isResolved() : M === "success" || M === "notmodified"; 8581 if (J) { 8582 E._loadcallback(F, L.responseText, D); 8583 } else { 8584 E._error("end"); 8585 } 8586 } 8587 }); 8588 break; 8589 case "json": 8590 E._debug("Using " + K.toUpperCase() + " via $.ajax() method"); 8591 i.ajax({ 8592 dataType: "json", 8593 type: "GET", 8594 url: D, 8595 success: function (N, O, M) { 8596 J = typeof M.isResolved !== "undefined" ? M.isResolved() : O === "success" || O === "notmodified"; 8597 if (G.appendCallback) { 8598 if (G.template !== k) { 8599 var L = G.template(N); 8600 F.append(L); 8601 if (J) { 8602 E._loadcallback(F, L); 8603 } else { 8604 E._error("end"); 8605 } 8606 } else { 8607 E._debug("template must be defined."); 8608 E._error("end"); 8609 } 8610 } else { 8611 if (J) { 8612 E._loadcallback(F, N, D); 8613 } else { 8614 E._error("end"); 8615 } 8616 } 8617 }, 8618 error: function () { 8619 E._debug("JSON ajax request failed."); 8620 E._error("end"); 8621 } 8622 }); 8623 break; 8624 } 8625 }, 8626 retrieve: function b(F) { 8627 F = F || null; 8628 var D = this, 8629 E = D.options; 8630 if (!!E.behavior && this["retrieve_" + E.behavior] !== k) { 8631 this["retrieve_" + E.behavior].call(this, F); 8632 return; 8633 } 8634 if (E.state.isDestroyed) { 8635 this._debug("Instance is destroyed"); 8636 return false;
8637 } 8638 E.state.isDuringAjax = true; 8639 E.loading.start.call(i(E.contentSelector)[0], E); 8640 }, 8641 scroll: function f() { 8642 var D = this.options, 8643 E = D.state; 8644 if (!!D.behavior && this["scroll_" + D.behavior] !== k) { 8645 this["scroll_" + D.behavior].call(this); 8646 return; 8647 } 8648 if (E.isDuringAjax || E.isInvalidPage || E.isDone || E.isDestroyed || E.isPaused) { 8649 return; 8650 } 8651 if (!this._nearbottom()) { 8652 return; 8653 } 8654 this.retrieve(); 8655 }, 8656 toggle: function y() { 8657 this._pausing(); 8658 }, 8659 unbind: function m() { 8660 this._binding("unbind"); 8661 }, 8662 update: function j(D) { 8663 if (i.isPlainObject(D)) { 8664 this.options = i.extend(true, this.options, D); 8665 } 8666 } 8667 }; 8668 i.fn.infinitescroll = function d(F, G) { 8669 var E = typeof F; 8670 switch (E) { 8671 case "string": 8672 var D = Array.prototype.slice.call(arguments, 1); 8673 this.each(function () { 8674 var H = i.data(this, "infinitescroll"); 8675 if (!H) { 8676 return false; 8677 } 8678 if (!i.isFunction(H[F]) || F.charAt(0) === "_") { 8679 return false; 8680 } 8681 H[F].apply(H, D); 8682 }); 8683 break; 8684 case "object": 8685 this.each(function () { 8686 var H = i.data(this, "infinitescroll"); 8687 if (H) { 8688 H.update(F); 8689 } else { 8690 H = new i.infinitescroll(F, G, this); 8691 if (!H.failed) { 8692 i.data(this, "infinitescroll", H); 8693 } 8694 } 8695 }); 8696 break; 8697 } 8698 return this; 8699 }; 8700 var x = i.event, 8701 s; 8702 x.special.smartscroll = { 8703 setup: function () { 8704 i(this).bind("scroll", x.special.smartscroll.handler); 8705 }, 8706 teardown: function () { 8707 i(this).unbind("scroll", x.special.smartscroll.handler); 8708 }, 8709 handler: function (G, D) { 8710 var F = this, 8711 E = arguments; 8712 G.type = "smartscroll"; 8713 if (s) { 8714 clearTimeout(s); 8715 } 8716 s = setTimeout(function () { 8717 i(F).trigger("smartscroll", E); 8718 }, D === "execAsap" ? 0 : 100); 8719 } 8720 }; 8721 i.fn.smartscroll = function (D) { 8722 return D ? this.bind("smartscroll", D) : this.trigger("smartscroll", ["execAsap"]); 8723 }; 8724})(window, jQuery); 8725 8726/*! Lazy Load 1.9.3 - MIT license - Copyright 2010-2013 Mika Tuupola */ 8727!function (a, b, c, d) { 8728 var e = a(b); 8729 a.fn.lazyload = function (f) { 8730 function g() { 8731 var b = 0; 8732 i.each(function () { 8733 var c = a(this); 8734 if (!j.skip_invisible || c.is(":visible")) if (a.abovethetop(this, j) || a.leftofbegin(this, j)) ;else if (a.belowthefold(this, j) || a.rightoffold(this, j)) { 8735 if (++b >
8735 j.failure_limit) return !1; 8736 } else c.trigger("appear"), b = 0; 8737 }); 8738 } 8739 var h, 8740 i = this, 8741 j = { 8742 threshold: 0, 8743 failure_limit: 0, 8744 event: "scroll", 8745 effect: "show", 8746 container: b, 8747 data_attribute: "original", 8748 skip_invisible: !0, 8749 appear: null, 8750 load: null, 8751 placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" 8752 }; 8753 return f && (d !== f.failurelimit && (f.failure_limit = f.failurelimit, delete f.failurelimit), d !== f.effectspeed && (f.effect_speed = f.effectspeed, delete f.effectspeed), a.extend(j, f)), h = j.container === d || j.container === b ? e : a(j.container), 0 === j.event.indexOf("scroll") && h.bind(j.event, function () { 8754 return g(); 8755 }), this.each(function () { 8756 var b = this, 8757 c = a(b); 8758 b.loaded = !1, (c.attr("src") === d || c.attr("src") === !1) && c.is("img") && c.attr("src", j.placeholder), c.one("appear", function () { 8759 if (!this.loaded) { 8760 if (j.appear) { 8761 var d = i.length; 8762 j.appear.call(b, d, j); 8763 } 8764 a("<img />").bind("load", function () { 8765 var d = c.attr("data-" + j.data_attribute); 8766 c.hide(), c.is("img") ? c.attr("src", d) : c.css("background-image", "url('" + d + "')"), c[j.effect](j.effect_speed), b.loaded = !0; 8767 var e = a.grep(i, function (a) { 8768 return !a.loaded; 8769 }); 8770 if (i = a(e), j.load) { 8771 var f = i.length; 8772 j.load.call(b, f, j); 8773 } 8774 }).attr("src", c.attr("data-" + j.data_attribute)); 8775 } 8776 }), 0 !== j.event.indexOf("scroll") && c.bind(j.event, function () { 8777 b.loaded || c.trigger("appear"); 8778 }); 8779 }), e.bind("resize", function () { 8780 g(); 8781 }), /(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion) && e.bind("pageshow", function (b) { 8782 b.originalEvent && b.originalEvent.persisted && i.each(function () { 8783 a(this).trigger("appear"); 8784 }); 8785 }), a(c).ready(function () { 8786 g(); 8787 }), this; 8788 }, a.belowthefold = function (c, f) { 8789 var g; 8790 return g = f.container === d || f.container === b ? (b.innerHeight ? b.innerHeight : e.height()) + e.scrollTop() : a(f.container).offset().top + a(f.container).height(), g <= a(c).offset().top - f.threshold; 8791 }, a.rightoffold = function (c, f) { 8792 var g; 8793 return g = f.container === d || f.container === b ? e.width() + e.scrollLeft() : a(f.container).offset().left + a(f.container).width(), g <= a(c).offset().left - f.threshold; 8794 }, a.abovethetop = function (c, f) { 8795 var g; 8796 return g = f.container === d || f.container === b ? e.scrollTop() : a(f.container).offset().top, g >= a(c).offset().top + f.threshold + a(c).height(); 8797 }, a.leftofbegin = function (c, f) { 8798 var g; 8799 return g = f.container === d || f.container === b ? e.scrollLeft() : a(f.container).offset().left, g >= a(c).offset().left + f.threshold + a(c).width(); 8800 }, a.inviewport = function (b, c) { 8801 return !(a.rightoffold(b, c) || a.leftofbegin(b, c) || a.belowthefold(b, c) || a.abovethetop(b, c)); 8802 }, a.extend(a.expr[":"], { 8803 "below-the-fold": function (b) { 8804 return a.belowthefold(b, { 8805 threshold: 0 8806 }); 8807 }, 8808 "above-the-top": function (b) { 8809 return !a.belowthefold(b, { 8810 threshold: 0 8811 }); 8812 }, 8813 "right-of-screen": function (b) { 8814 return a.rightoffold(b, { 8815 threshold: 0 8816 }); 8817 }, 8818 "left-of-screen": function (b) { 8819 return !a.rightoffold(b, { 8820 threshold: 0 8821 }); 8822 }, 8823 "in-viewport": function (b) { 8824 return a.inviewport(b, { 8825 threshold: 0 8826 }); 8827 }, 8828 "above-the-fold": function (b) { 8829 return !a.belowthefold(b, { 8830 threshold: 0 8831 }); 8832 }, 8833 "right-of-fold": function (b) { 8834 return a.rightoffold(b, { 8835 threshold: 0 8836 }); 8837 }, 8838 "left-of-fold": function (b) { 8839 return !a.rightoffold(b, { 8840 threshold: 0 8841 }); 8842 } 8843 }); 8844}(jQuery, window, document); 8845 8846/*! jQuery DrawSVG v1.1.0 (2016-10-05) - git.io/vGFa5 - Copyright (c) 2016 Leonardo Santos - MIT License */ 8847!function (t) { 8848 "function" == typeof define && define.amd ? define(["jquery"], t) : "object" == typeof module && module.exports ? module.exports = function (e, n) { 8849 return void 0 === n && (n = "undefined" != typeof window ? require("jquery") : require("jquery")(e)), t(n), n; 8850 } : t(jQuery); 8851}(function (t) { 8852 "use strict"; 8853 8854 var e = "drawsvg", 8855 n = { 8856 duration: 1e3, 8857 stagger: 200, 8858 easing: "swing", 8859 reverse: !1, 8860 callback: t.noop 8861 }, 8862 a = function () { 8863 var a = function (a, o) { 8864 var i = this, 8865 r = t.extend(n, o); 8866 i.$elm = t(a), i.$elm.is("svg") && (i.options = r, i.$paths = i.$elm.find("path"), i.totalDuration = r.duration + r.stagger * i.$paths.length, i.duration = r.duration / i.totalDuration, i.$paths.each(function (t, e) { 8867 var n = e.getTotalLength(); 8868 e.pathLen = n, e.delay = r.stagger * t / i.totalDuration, e.style.strokeDasharray = [n, n].join(" "), e.style.strokeDashoffset = n; 8869 }), i.$elm.attr("class", function (t, n) { 8870 return [n, e + "-initialized"].join(" "); 8871 })); 8872 }; 8873 return a.prototype.getVal = function (e, n) { 8874 return 1 - t.easing[n](e, e, 0, 1, 1); 8875 }, a.prototype.progress = function (t) { 8876 var e = this, 8877 n = e.options, 8878 a = e.duration; 8879 e.$paths.each(function (o, i) { 8880 var r = i.style; 8881 if (1 === t) r.strokeDashoffset = 0;else if (0 === t) r.strokeDashoffset = i.pathLen + "px";else if (t >= i.delay && t <= a + i.delay) { 8882 var s = (t - i.delay) / a; 8883 r.strokeDashoffset = e.getVal(s, n.easing) * i.pathLen * (n.reverse ? -1 : 1) + "px"; 8884 } 8885 }); 8886 }, a.prototype.animate = function () { 8887 var n = this; 8888 n.$elm.attr("class", function (t, n) { 8889 return [n, e + "-animating"].join(" "); 8890 }), t({ 8891 len: 0 8892 }).animate({ 8893 len: 1 8894 }, { 8895 easing: "linear", 8896 duration: n.totalDuration, 8897 step: function (t, e) { 8898 n.progress.call(n, t / e.end); 8899 }, 8900 complete: function () { 8901 n.options.callback.call(this), n.$elm.attr("class", function (t, n) {
vendor: 8,913 bytes, lines 8902-9174
8902 return n.replace(e + "-animating", ""); 8903 }); 8904 } 8905 }); 8906 }, a; 8907 }(); 8908 t.fn[e] = function (n, o) { 8909 return this.each(function () { 8910 var i = t.data(this, e); 8911 i && "" + n === n && i[n] ? i[n](o) : t.data(this, e, new a(this, n)); 8912 }); 8913 }; 8914}); 8915 8916/** 8917 * Swiper 10.3.1 8918 * Most modern mobile touch slider and framework with hardware accelerated transitions 8919 * https://swiperjs.com 8920 * 8921 * Copyright 2014-2023 Vladimir Kharlampidi 8922 * 8923 * Released under the MIT License 8924 * 8925 * Released on: September 28, 2023 8926 */ 8927 8928var Swiper = function () { 8929 "use strict"; 8930 8931 function e(e) { 8932 return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object; 8933 } 8934 function t(s, a) { 8935 void 0 === s && (s = {}), void 0 === a && (a = {}), Object.keys(a).forEach(i => { 8936 void 0 === s[i] ? s[i] = a[i] : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]); 8937 }); 8938 } 8939 const s = { 8940 body: {}, 8941 addEventListener() {}, 8942 removeEventListener() {}, 8943 activeElement: { 8944 blur() {}, 8945 nodeName: "" 8946 }, 8947 querySelector: () => null, 8948 querySelectorAll: () => [], 8949 getElementById: () => null, 8950 createEvent: () => ({ 8951 initEvent() {} 8952 }), 8953 createElement: () => ({ 8954 children: [], 8955 childNodes: [], 8956 style: {}, 8957 setAttribute() {}, 8958 getElementsByTagName: () => [] 8959 }), 8960 createElementNS: () => ({}), 8961 importNode: () => null, 8962 location: { 8963 hash: "", 8964 host: "", 8965 hostname: "", 8966 href: "", 8967 origin: "", 8968 pathname: "", 8969 protocol: "", 8970 search: "" 8971 } 8972 }; 8973 function a() { 8974 const e = "undefined" != typeof document ? document : {}; 8975 return t(e, s), e; 8976 } 8977 const i = { 8978 document: s, 8979 navigator: { 8980 userAgent: "" 8981 }, 8982 location: { 8983 hash: "", 8984 host: "", 8985 hostname: "", 8986 href: "", 8987 origin: "", 8988 pathname: "", 8989 protocol: "", 8990 search: "" 8991 }, 8992 history: { 8993 replaceState() {}, 8994 pushState() {}, 8995 go() {}, 8996 back() {} 8997 }, 8998 CustomEvent: function () { 8999 return this; 9000 }, 9001 addEventListener() {}, 9002 removeEventListener() {}, 9003 getComputedStyle: () => ({ 9004 getPropertyValue: () => "" 9005 }), 9006 Image() {}, 9007 Date() {}, 9008 screen: {}, 9009 setTimeout() {}, 9010 clearTimeout() {}, 9011 matchMedia: () => ({}), 9012 requestAnimationFrame: e => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), 9013 cancelAnimationFrame(e) { 9014 "undefined" != typeof setTimeout && clearTimeout(e); 9015 } 9016 }; 9017 function r() { 9018 const e = "undefined" != typeof window ? window : {}; 9019 return t(e, i), e; 9020 } 9021 function n(e, t) { 9022 return void 0 === t && (t = 0), setTimeout(e, t); 9023 } 9024 function l() { 9025 return Date.now(); 9026 } 9027 function o(e, t) { 9028 void 0 === t && (t = "x"); 9029 const s = r(); 9030 let a, i, n; 9031 const l = function (e) { 9032 const t = r(); 9033 let s; 9034 return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s; 9035 }(e); 9036 return s.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map(e => e.replace(",", ".")).join(", ")), n = new s.WebKitCSSMatrix("none" === i ? "" : i)) : (n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), a = n.toString().split(",")), "x" === t && (i = s.WebKitCSSMatrix ? n.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? n.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0; 9037 } 9038 function d(e) { 9039 return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1); 9040 } 9041 function c() { 9042 const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), 9043 t = ["__proto__", "constructor", "prototype"]; 9044 for (let a = 1; a < arguments.length; a += 1) { 9045 const i = a < 0 || arguments.length <= a ? void 0 : arguments[a]; 9046 if (null != i && (s = i, !("undefined" != typeof window && void 0 !== window.HTMLElement ? s instanceof HTMLElement : s && (1 === s.nodeType || 11 === s.nodeType)))) { 9047 const s = Object.keys(Object(i)).filter(e => t.indexOf(e) < 0); 9048 for (let t = 0, a = s.length; t < a; t += 1) { 9049 const a = s[t], 9050 r = Object.getOwnPropertyDescriptor(i, a); 9051 void 0 !== r && r.enumerable && (d(e[a]) && d(i[a]) ? i[a].__swiper__ ? e[a] = i[a] : c(e[a], i[a]) : !d(e[a]) && d(i[a]) ? (e[a] = {}, i[a].__swiper__ ? e[a] = i[a] : c(e[a], i[a])) : e[a] = i[a]); 9052 } 9053 } 9054 } 9055 var s; 9056 return e; 9057 } 9058 function p(e, t, s) { 9059 e.style.setProperty(t, s); 9060 } 9061 function u(e) { 9062 let { 9063 swiper: t, 9064 targetPosition: s, 9065 side: a 9066 } = e; 9067 const i = r(), 9068 n = -t.translate; 9069 let l, 9070 o = null; 9071 const d = t.params.speed; 9072 t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID); 9073 const c = s > n ? "next" : "prev", 9074 p = (e, t) => "next" === c && e >= t || "prev" === c && e <= t, 9075 u = () => { 9076 l = new Date().getTime(), null === o && (o = l); 9077 const e = Math.max(Math.min((l - o) / d, 1), 0), 9078 r = .5 - Math.cos(e * Math.PI) / 2; 9079 let c = n + r * (s - n); 9080 if (p(c, s) && (c = s), t.wrapperEl.scrollTo({ 9081 [a]: c 9082 }), p(c, s)) return t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => { 9083 t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({ 9084 [a]: c 9085 }); 9086 }), void i.cancelAnimationFrame(t.cssModeFrameID); 9087 t.cssModeFrameID = i.requestAnimationFrame(u); 9088 }; 9089 u(); 9090 } 9091 function m(e) { 9092 return e.querySelector(".swiper-slide-transform") || e.shadowRoot && e.shadowRoot.querySelector(".swiper-slide-transform") || e; 9093 } 9094 function h(e, t) { 9095 return void 0 === t && (t = ""), [...e.children].filter(e => e.matches(t)); 9096 } 9097 function f(e, t) { 9098 void 0 === t && (t = []); 9099 const s = document.createElement(e); 9100 return s.classList.add(...(Array.isArray(t) ? t : [t])), s; 9101 } 9102 function g(e) { 9103 const t = r(), 9104 s = a(), 9105 i = e.getBoundingClientRect(), 9106 n = s.body, 9107 l = e.clientTop || n.clientTop || 0, 9108 o = e.clientLeft || n.clientLeft || 0, 9109 d = e === t ? t.scrollY : e.scrollTop, 9110 c = e === t ? t.scrollX : e.scrollLeft; 9111 return { 9112 top: i.top + d - l, 9113 left: i.left + c - o 9114 }; 9115 } 9116 function v(e, t) { 9117 return r().getComputedStyle(e, null).getPropertyValue(t); 9118 } 9119 function w(e) { 9120 let t, 9121 s = e; 9122 if (s) { 9123 for (t = 0; null !== (s = s.previousSibling);) 1 === s.nodeType && (t += 1); 9124 return t; 9125 } 9126 } 9127 function b(e, t) { 9128 const s = []; 9129 let a = e.parentElement; 9130 for (; a;) t ? a.matches(t) && s.push(a) : s.push(a), a = a.parentElement; 9131 return s; 9132 } 9133 function y(e, t) { 9134 t && e.addEventListener("transitionend", function s(a) { 9135 a.target === e && (t.call(e, a), e.removeEventListener("transitionend", s)); 9136 }); 9137 } 9138 function E(e, t, s) { 9139 const a = r(); 9140 return s ? e["width" === t ? "offsetWidth" : "offsetHeight"] + parseFloat(a.getComputedStyle(e, null).getPropertyValue("width" === t ? "margin-right" : "margin-top")) + parseFloat(a.getComputedStyle(e, null).getPropertyValue("width" === t ? "margin-left" : "margin-bottom")) : e.offsetWidth; 9141 } 9142 let x, S, T; 9143 function M() { 9144 return x || (x = function () { 9145 const e = r(), 9146 t = a(); 9147 return { 9148 smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style, 9149 touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch) 9150 }; 9151 }()), x; 9152 } 9153 function C(e) { 9154 return void 0 === e && (e = {}), S || (S = function (e) { 9155 let { 9156 userAgent: t 9157 } = void 0 === e ? {} : e; 9158 const s = M(), 9159 a = r(), 9160 i = a.navigator.platform, 9161 n = t || a.navigator.userAgent, 9162 l = { 9163 ios: !1, 9164 android: !1 9165 }, 9166 o = a.screen.width, 9167 d = a.screen.height, 9168 c = n.match(/(Android);?[\s\/]+([\d.]+)?/); 9169 let p = n.match(/(iPad).*OS\s([\d_]+)/); 9170 const u = n.match(/(iPod)(.*OS\s([\d_]+))?/), 9171 m = !p && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), 9172 h = "Win32" === i; 9173 let f = "MacIntel" === i; 9174 return !p && f && s.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${o}x${d}`) >= 0 && (p = n.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), f = !1), c && !h && (l.os
9174= "android", l.android = !0), (p || m || u) && (l.os = "ios", l.ios = !0), l; 9175 }(e)), S; 9176 } 9177 function P() { 9178 return T || (T = function () { 9179 const e = r(); 9180 let t = !1; 9181 function s() { 9182 const t = e.navigator.userAgent.toLowerCase(); 9183 return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0; 9184 } 9185 if (s()) { 9186 const s = String(e.navigator.userAgent); 9187 if (s.includes("Version/")) { 9188 const [e, a] = s.split("Version/")[1].split(" ")[0].split(".").map(e => Number(e)); 9189 t = e < 16 || 16 === e && a < 2; 9190 } 9191 } 9192 return { 9193 isSafari: t || s(), 9194 needPerspectiveFix: t, 9195 isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent) 9196 }; 9197 }()), T; 9198 } 9199 var L = { 9200 on(e, t, s) { 9201 const a = this; 9202 if (!a.eventsListeners || a.destroyed) return a; 9203 if ("function" != typeof t) return a; 9204 const i = s ? "unshift" : "push"; 9205 return e.split(" ").forEach(e => { 9206 a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t); 9207 }), a; 9208 }, 9209 once(e, t, s) { 9210 const a = this; 9211 if (!a.eventsListeners || a.destroyed) return a; 9212 if ("function" != typeof t) return a; 9213 function i() { 9214 a.off(e, i), i.__emitterProxy && delete i.__emitterProxy; 9215 for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) r[n] = arguments[n]; 9216 t.apply(a, r); 9217 } 9218 return i.__emitterProxy = t, a.on(e, i, s); 9219 }, 9220 onAny(e, t) { 9221 const s = this; 9222 if (!s.eventsListeners || s.destroyed) return s; 9223 if ("function" != typeof e) return s; 9224 const a = t ? "unshift" : "push"; 9225 return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s; 9226 }, 9227 offAny(e) { 9228 const t = this; 9229 if (!t.eventsListeners || t.destroyed) return t; 9230 if (!t.eventsAnyListeners) return t; 9231 const s = t.eventsAnyListeners.indexOf(e); 9232 return s >= 0 && t.eventsAnyListeners.splice(s, 1), t; 9233 }, 9234 off(e, t) { 9235 const s = this; 9236 return !s.eventsListeners || s.destroyed ? s : s.eventsListeners ? (e.split(" ").forEach(e => { 9237 void 0 === t ? s.eventsListeners[e] = [] : s.eventsListeners[e] && s.eventsListeners[e].forEach((a, i) => { 9238 (a === t || a.__emitterProxy && a.__emitterProxy === t) && s.eventsListeners[e].splice(i, 1); 9239 }); 9240 }), s) : s; 9241 }, 9242 emit() { 9243 const e = this; 9244 if (!e.eventsListeners || e.destroyed) return e; 9245 if (!e.eventsListeners) return e; 9246 let t, s, a; 9247 for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++) r[n] = arguments[n]; 9248 "string" == typeof r[0] || Array.isArray(r[0]) ? (t = r[0], s = r.slice(1, r.length), a = e) : (t = r[0].events, s = r[0].data, a = r[0].context || e), s.unshift(a); 9249 return (Array.isArray(t) ? t : t.split(" ")).forEach(t => { 9250 e.eventsAnyListeners && e.eventsAnyListeners.length && e.eventsAnyListeners.forEach(e => { 9251 e.apply(a, [t, ...s]); 9252 }), e.eventsListeners && e.eventsListeners[t] && e.eventsListeners[t].forEach(e => { 9253 e.apply(a, s); 9254 }); 9255 }), e; 9256 } 9257 }; 9258 const z = (e, t) => { 9259 if (!e || e.destroyed || !e.params) return; 9260 const s = t.closest(e.isElement ? "swiper-slide" : `.${e.params.slideClass}`); 9261 if (s) { 9262 let t = s.querySelector(`.${e.params.lazyPreloaderClass}`); 9263 !t && e.isElement && (s.shadowRoot ? t = s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`) : requestAnimationFrame(() => { 9264 s.shadowRoot && (t = s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`), t && t.remove()); 9265 })), t && t.remove(); 9266 } 9267 }, 9268 A = (e, t) => { 9269 if (!e.slides[t]) return; 9270 const s = e.slides[t].querySelector('[loading="lazy"]'); 9271 s && s.removeAttribute("loading"); 9272 }, 9273 $ = e => { 9274 if (!e || e.destroyed || !e.params) return; 9275 let t = e.params.lazyPreloadPrevNext; 9276 const s = e.slides.length; 9277 if (!s || !t || t < 0) return; 9278 t = Math.min(t, s); 9279 const a = "auto" === e.params.slidesPerView ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), 9280 i = e.activeIndex; 9281 if (e.params.grid && e.params.grid.rows > 1) { 9282 const s = i, 9283 r = [s - t]; 9284 return r.push(...Array.from({ 9285 length: t 9286 }).map((e, t) =>
9286 s + a + t)), void e.slides.forEach((t, s) => { 9287 r.includes(t.column) && A(e, s); 9288 }); 9289 } 9290 const r = i + a - 1; 9291 if (e.params.rewind || e.params.loop) for (let a = i - t; a <= r + t; a += 1) { 9292 const t = (a % s + s) % s; 9293 (t < i || t > r) && A(e, t); 9294 } else for (let a = Math.max(i - t, 0); a <= Math.min(r + t, s - 1); a += 1) a !== i && (a > r || a < i) && A(e, a); 9295 }; 9296 var I = { 9297 updateSize: function () { 9298 const e = this; 9299 let t, s; 9300 const a = e.el; 9301 t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a.clientWidth, s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a.clientHeight, 0 === t && e.isHorizontal() || 0 === s && e.isVertical() || (t = t - parseInt(v(a, "padding-left") || 0, 10) - parseInt(v(a, "padding-right") || 0, 10), s = s - parseInt(v(a, "padding-top") || 0, 10) - parseInt(v(a, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, { 9302 width: t, 9303 height: s, 9304 size: e.isHorizontal() ? t : s 9305 })); 9306 }, 9307 updateSlides: function () { 9308 const e = this; 9309 function t(t) { 9310 return e.isHorizontal() ? t : { 9311 width: "height", 9312 "margin-top": "margin-left", 9313 "margin-bottom ": "margin-right", 9314 "margin-left": "margin-top", 9315 "margin-right": "margin-bottom", 9316 "padding-left": "padding-top", 9317 "padding-right": "padding-bottom", 9318 marginRight: "marginBottom" 9319 }[t]; 9320 } 9321 function s(e, s) { 9322 return parseFloat(e.getPropertyValue(t(s)) || 0); 9323 } 9324 const a = e.params, 9325 { 9326 wrapperEl: i, 9327 slidesEl: r, 9328 size: n, 9329 rtlTranslate: l, 9330 wrongRTL: o 9331 } = e, 9332 d = e.virtual && a.virtual.enabled, 9333 c = d ? e.virtual.slides.length : e.slides.length, 9334 u = h(r, `.${e.params.slideClass}, swiper-slide`), 9335 m = d ? e.virtual.slides.length : u.length; 9336 let f = []; 9337 const g = [], 9338 w = []; 9339 let b = a.slidesOffsetBefore; 9340 "function" == typeof b && (b = a.slidesOffsetBefore.call(e)); 9341 let y = a.slidesOffsetAfter; 9342 "function" == typeof y && (y = a.slidesOffsetAfter.call(e)); 9343 const x = e.snapGrid.length, 9344 S = e.slidesGrid.length; 9345 let T = a.spaceBetween, 9346 M = -b, 9347 C = 0, 9348 P = 0; 9349 if (void 0 === n) return; 9350 "string" == typeof T && T.indexOf("%") >= 0 ? T = parseFloat(T.replace("%", "")) / 100 * n : "string" == typeof T && (T = parseFloat(T)), e.virtualSize = -T, u.forEach(e => { 9351 l ? e.style.marginLeft = "" : e.style.marginRight = "", e.style.marginBottom = "", e.style.marginTop = ""; 9352 }), a.centeredSlides && a.cssMode && (p(i, "--swiper-centered-offset-before", ""), p(i, "--swiper-centered-offset-after", "")); 9353 const L = a.grid && a.grid.rows > 1 && e.grid; 9354 let z; 9355 L && e.grid.initSlides(m); 9356 const A = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter(e => void 0 !== a.breakpoints[e].slidesPerView).length > 0; 9357 for (let i = 0; i < m; i += 1) { 9358 let r; 9359 if (z = 0, u[i] && (r = u[i]), L && e.grid.updateSlide(i, r, m, t), !u[i] || "none" !== v(r, "display")) { 9360 if ("auto" === a.slidesPerView) { 9361 A && (u[i].style[t("width")] = ""); 9362 const n = getComputedStyle(r), 9363 l = r.style.transform, 9364 o = r.style.webkitTransform; 9365 if (l && (r.style.transform = "none"), o && (r.style.webkitTransform = "none"), a.roundLengths) z = e.isHorizontal() ? E(r, "width", !0) : E(r, "height", !0);else { 9366 const e = s(n, "width"), 9367 t = s(n, "padding-left"), 9368 a = s(n, "padding-right"), 9369 i = s(n, "margin-left"), 9370 l = s(n, "margin-right"), 9371 o = n.getPropertyValue("box-sizing"); 9372 if (o && "border-box" === o) z = e + i + l;else { 9373 const {
9374 clientWidth: s, 9375 offsetWidth: n 9376 } = r; 9377 z = e + t + a + i + l + (n - s); 9378 } 9379 } 9380 l && (r.style.transform = l), o && (r.style.webkitTransform = o), a.roundLengths && (z = Math.floor(z)); 9381 } else z = (n - (a.slidesPerView - 1) * T) / a.slidesPerView, a.roundLengths && (z = Math.floor(z)), u[i] && (u[i].style[t("width")] = `${z}px`); 9382 u[i] && (u[i].swiperSlideSize = z), w.push(z), a.centeredSlides ? (M = M + z / 2 + C / 2 + T, 0 === C && 0 !== i && (M = M - n / 2 - T), 0 === i && (M = M - n / 2 - T), Math.abs(M) < .001 && (M = 0), a.roundLengths && (M = Math.floor(M)), P % a.slidesPerGroup == 0 && f.push(M), g.push(M)) : (a.roundLengths && (M = Math.floor(M)), (P - Math.min(e.params.slidesPerGroupSkip, P)) % e.params.slidesPerGroup == 0 && f.push(M), g.push(M), M = M + z + T), e.virtualSize += z + T, C = z, P += 1; 9383 } 9384 } 9385 if (e.virtualSize = Math.max(e.virtualSize, n) + y, l && o && ("slide" === a.effect || "coverflow" === a.effect) && (i.style.width = `${e.virtualSize + T}px`), a.setWrapperSize && (i.style[t("width")] = `${e.virtualSize + T}px`), L && e.grid.updateWrapperSize(z, f, t), !a.centeredSlides) { 9386 const t = []; 9387 for (let s = 0; s < f.length; s += 1) { 9388 let i = f[s]; 9389 a.roundLengths && (i = Math.floor(i)), f[s] <= e.virtualSize - n && t.push(i); 9390 } 9391 f = t, Math.floor(e.virtualSize - n) - Math.floor(f[f.length - 1]) > 1 && f.push(e.virtualSize - n); 9392 } 9393 if (d && a.loop) { 9394 const t = w[0] + T; 9395 if (a.slidesPerGroup > 1) { 9396 const s = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / a.slidesPerGroup), 9397 i = t * a.slidesPerGroup; 9398 for (let e = 0; e < s; e += 1) f.push(f[f.length - 1] + i); 9399 } 9400 for (let s = 0; s < e.virtual.slidesBefore + e.virtual.slidesAfter; s += 1) 1 === a.slidesPerGroup && f.push(f[f.length - 1] + t), g.push(g[g.length - 1] + t), e.virtualSize += t; 9401 } 9402 if (0 === f.length && (f = [0]), 0 !== T) { 9403 const s = e.isHorizontal() && l ? "marginLeft" : t("marginRight"); 9404 u.filter((e, t) => !(a.cssMode && !a.loop) || t !== u.length - 1).forEach(e => { 9405 e.style[s] = `${T}px`; 9406 }); 9407 } 9408 if (a.centeredSlides && a.centeredSlidesBounds) { 9409 let e = 0; 9410 w.forEach(t => { 9411 e += t + (T || 0); 9412 }), e -= T; 9413 const t = e - n; 9414 f = f.map(e => e <= 0 ? -b : e > t ? t + y : e); 9415 } 9416 if (a.centerInsufficientSlides) { 9417 let e = 0; 9418 if (w.forEach(t => { 9419 e += t + (T || 0); 9420 }), e -= T, e < n) { 9421 const t = (n - e) / 2; 9422 f.forEach((e, s) => { 9423 f[s] = e - t; 9424 }), g.forEach((e, s) => { 9425 g[s] = e + t; 9426 }); 9427 } 9428 } 9429 if (Object.assign(e, { 9430 slides: u, 9431 snapGrid: f, 9432 slidesGrid: g, 9433 slidesSizesGrid: w 9434 }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) { 9435 p(i, "--swiper-centered-offset-before", -f[0] + "px"), p(i, "--swiper-centered-offset-after", e.size / 2 - w[w.length - 1] / 2 + "px"); 9436 const t = -e.snapGrid[0], 9437 s = -e.slidesGrid[0]; 9438 e.snapGrid = e.snapGrid.map(e => e + t), e.slidesGrid = e.slidesGrid.map(e => e + s); 9439 } 9440 if (m !== c && e.emit("slidesLengthChange"), f.length !== x && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), g.length !== S && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset(), !(d || a.cssMode || "slide" !== a.effect && "fade" !== a.effect)) { 9441 const t = `${a.containerModifierClass}backface-hidden`, 9442 s = e.el.classList.contains(t); 9443 m <= a.maxBackfaceHiddenSlides ? s || e.el.classList.add(t) : s && e.el.classList.remove(t); 9444 } 9445 }, 9446 updateAutoHeight: function (e) { 9447 const t = this, 9448 s = [], 9449 a = t.virtual && t.params.virtual.enabled; 9450 let i, 9451 r = 0; 9452 "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed); 9453 const n = e => a ? t.slides[t.getSlideIndexByData(e)] : t.slides[e]; 9454 if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) { 9455 if (t.params.centeredSlides) (t.visibleSlides || []).forEac
9455h(e => { 9456 s.push(e); 9457 });else for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { 9458 const e = t.activeIndex + i; 9459 if (e > t.slides.length && !a) break; 9460 s.push(n(e)); 9461 } 9462 } else s.push(n(t.activeIndex)); 9463 for (i = 0; i < s.length; i += 1) if (void 0 !== s[i]) { 9464 const e = s[i].offsetHeight; 9465 r = e > r ? e : r; 9466 } 9467 (r || 0 === r) && (t.wrapperEl.style.height = `${r}px`); 9468 }, 9469 updateSlidesOffset: function () { 9470 const e = this, 9471 t = e.slides, 9472 s = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0; 9473 for (let a = 0; a < t.length; a += 1) t[a].swiperSlideOffset = (e.isHorizontal() ? t[a].offsetLeft : t[a].offsetTop) - s - e.cssOverflowAdjustment(); 9474 }, 9475 updateSlidesProgress: function (e) { 9476 void 0 === e && (e = this && this.translate || 0); 9477 const t = this, 9478 s = t.params, 9479 { 9480 slides: a, 9481 rtlTranslate: i, 9482 snapGrid: r 9483 } = t; 9484 if (0 === a.length) return; 9485 void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset(); 9486 let n = -e; 9487 i && (n = e), a.forEach(e => { 9488 e.classList.remove(s.slideVisibleClass); 9489 }), t.visibleSlidesIndexes = [], t.visibleSlides = []; 9490 let l = s.spaceBetween; 9491 "string" == typeof l && l.indexOf("%") >= 0 ? l = parseFloat(l.replace("%", "")) / 100 * t.size : "string" == typeof l && (l = parseFloat(l)); 9492 for (let e = 0; e < a.length; e += 1) { 9493 const o = a[e]; 9494 let d = o.swiperSlideOffset; 9495 s.cssMode && s.centeredSlides && (d -= a[0].swiperSlideOffset); 9496 const c = (n + (s.centeredSlides ? t.minTranslate() : 0) - d) / (o.swiperSlideSize + l), 9497 p = (n - r[0] + (s.centeredSlides ? t.minTranslate() : 0) - d) / (o.swiperSlideSize + l), 9498 u = -(n - d), 9499 m = u + t.slidesSizesGrid[e]; 9500 (u >= 0 && u < t.size - 1 || m > 1 && m <= t.size || u <= 0 && m >= t.size) && (t.visibleSlides.push(o), t.visibleSlidesIndexes.push(e), a[e].classList.add(s.slideVisibleClass)), o.progress = i ? -c : c, o.originalProgress = i ? -p : p; 9501 } 9502 }, 9503 updateProgress: function (e) { 9504 const t = this; 9505 if (void 0 === e) { 9506 const s = t.rtlTranslate ? -1 : 1; 9507 e = t && t.translate && t.translate * s || 0; 9508 } 9509 const s = t.params, 9510 a = t.maxTranslate() - t.minTranslate(); 9511 let { 9512 progress: i, 9513 isBeginning: r, 9514 isEnd: n, 9515 progressLoop: l 9516 } = t; 9517 const o = r, 9518 d = n; 9519 if (0 === a) i = 0, r = !0, n = !0;else { 9520 i = (e - t.minTranslate()) / a; 9521 const s = Math.abs(e - t.minTranslate()) < 1, 9522 l = Math.abs(e - t.maxTranslate()) < 1; 9523 r = s || i <= 0, n = l || i >= 1, s && (i = 0), l && (i = 1); 9524 } 9525 if (s.loop) { 9526 const s = t.getSlideIndexByData(0), 9527 a = t.getSlideIndexByData(t.slides.length - 1), 9528 i = t.slidesGrid[s], 9529 r = t.slidesGrid[a], 9530 n = t.slidesGrid[t.slidesGrid.length - 1], 9531 o = Math.abs(e); 9532 l = o >= i ? (o - i) / n : (o + n - r) / n, l > 1 && (l -= 1); 9533 } 9534 Object.assign(t, { 9535 progress: i, 9536 progressLoop: l, 9537 isBeginning: r, 9538 isEnd: n 9539 }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), r && !o && t.emit("reachBeginning toEdge"), n && !d && t.emit("reachEnd toEdge"), (o && !r || d && !n) && t.emit("fromEdge"), t.emit("progress", i); 9540 }, 9541 updateSlidesClasses: function () { 9542 const e = this, 9543 { 9544 slides: t, 9545 params: s, 9546 slidesEl: a, 9547 activeIndex: i 9548 } = e, 9549 r = e.virtual && s.virtual.enabled, 9550 n = e => h(a, `.${s.slideClass}${e}, swiper-slide${e}`)[0]; 9551 let l; 9552 if (t.forEach(e => { 9553 e.classList.remove(s.slideActiveClass, s.slideNextClass, s.slidePrevClass); 9554 }), r) { 9555 if (s.loop) { 9556 let t = i - e.virtual.slidesBefore; 9557 t < 0 && (t = e.virtual.slides.length + t), t >= e.virtual.slides.length && (t -= e.virtual.slides.length), l = n(`[data-swiper-slide-index="${t}"]`); 9558 } else l = n(`[data-swiper-slide-index="${i}"]`); 9559 } else l = t[i]; 9560 if (l) { 9561 l.classList.add(s.slideActiveClass); 9562 let e = function (e, t) { 9563 const s = []; 9564 for (; e.nextElementSibling;) { 9565 const a = e.nextElementSibling; 9566 t ? a.matches(t) && s.push(a) : s.push(a), e = a; 9567 } 9568 return s; 9569 }(l, `.${s.slideClass}, swiper-slide`)[0]; 9570 s.loop && !e && (e = t[0]), e && e.classList.add(s.slideNextClass); 9571 let a = function (e, t) { 9572 const s = []; 9573 for (; e.previousElementSibling;) { 9574 const a = e.previousElementSibling; 9575 t ? a.matches(t) && s.push(a) : s.push(a), e = a; 9576 } 9577 return s; 9578 }(l, `.${s.slideClass}, swiper-slide`)[0]; 9579 s.loop && 0 === !a && (a = t[t.length - 1]), a && a.classList.add(s.slidePrevClass); 9580 } 9581 e.emitSlidesClasses(); 9582 }, 9583 updateActiveIndex: function (e) { 9584 const t = this, 9585 s = t.rtlTranslate ? t.translate : -t.translate, 9586 { 9587 snapGrid: a, 9588 params: i, 9589 activeIndex: r, 9590 realIndex: n, 9591 snapIndex: l 9592 } = t; 9593 let o, 9594 d = e; 9595 const c = e => { 9596 let s = e - t.virtual.slidesBefore; 9597 return s < 0 && (s = t.virtual.slides.length + s), s >= t.virtual.slides.length && (s -= t.virtual.slides.length), s; 9598 }; 9599 if (void 0 === d && (d = function (e) { 9600 const { 9601 slidesGrid: t, 9602 params: s 9603 } = e, 9604 a = e.rtlTranslate ? e.translate : -e.translate; 9605 let i; 9606 for (let e = 0; e < t.length; e += 1) void 0 !== t[e + 1] ? a >= t[e] && a < t[e + 1] - (t[e + 1] - t[e]) / 2 ? i = e : a >= t[e] && a < t[e + 1] && (i = e + 1) : a >= t[e] && (i = e); 9607 return s.normalizeSlideIndex && (i < 0 || void 0 === i) && (i = 0), i; 9608 }(t)), a.indexOf(s) >= 0) o = a.indexOf(s);else { 9609 const e = Math.min(i.slidesPerGroupSkip, d); 9610 o = e + Math.floor((d - e) / i.slidesPerGroup); 9611 } 9612 if (o >= a.length && (o = a.length - 1), d === r) return o !== l && (t.snapIndex = o, t.emit("snapIndexChange")), void (t.params.loop && t.virtual && t.params.virtual.enabled && (t.realIndex = c(d))); 9613 let p; 9614 p = t.virtual && i.virtual.enabled && i.loop ? c(d) : t.slides[d] ? parseInt(t.slides[d].getAttribute("data-swiper-slide-index") || d, 10) : d, Object.assign(t, { 9615 previousSnapIndex: l, 9616 snapIndex: o, 9617 previousRealIndex: n, 9618 realIndex: p, 9619 previousIndex: r, 9620 activeIndex: d 9621 }), t.initialized && $(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (n !== p && t.emit("realIndexChange"), t.emit("slideChange")); 9622 }, 9623 updateClickedSlide: function (e, t) { 9624 const s = this, 9625 a = s.params; 9626 let i = e.closest(`.${a.slideClass}, swiper-slide`); 9627 !i && s.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEac
vendor: 5,164 bytes, lines 9627-9748
9627h(e => { 9628 !i && e.matches && e.matches(`.${a.slideClass}, swiper-slide`) && (i = e); 9629 }); 9630 let r, 9631 n = !1; 9632 if (i) for (let e = 0; e < s.slides.length; e += 1) if (s.slides[e] === i) { 9633 n = !0, r = e; 9634 break; 9635 } 9636 if (!i || !n) return s.clickedSlide = void 0, void (s.clickedIndex = void 0); 9637 s.clickedSlide = i, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(i.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex = r, a.slideToClickedSlide && void 0 !== s.clickedIndex && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide(); 9638 } 9639 }; 9640 var k = { 9641 getTranslate: function (e) { 9642 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 9643 const { 9644 params: t, 9645 rtlTranslate: s, 9646 translate: a, 9647 wrapperEl: i 9648 } = this; 9649 if (t.virtualTranslate) return s ? -a : a; 9650 if (t.cssMode) return a; 9651 let r = o(i, e); 9652 return r += this.cssOverflowAdjustment(), s && (r = -r), r || 0; 9653 }, 9654 setTranslate: function (e, t) { 9655 const s = this, 9656 { 9657 rtlTranslate: a, 9658 params: i, 9659 wrapperEl: r, 9660 progress: n 9661 } = s; 9662 let l, 9663 o = 0, 9664 d = 0; 9665 s.isHorizontal() ? o = a ? -e : e : d = e, i.roundLengths && (o = Math.floor(o), d = Math.floor(d)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? o : d, i.cssMode ? r[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -o : -d : i.virtualTranslate || (s.isHorizontal() ? o -= s.cssOverflowAdjustment() : d -= s.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${d}px, 0px)`); 9666 const c = s.maxTranslate() - s.minTranslate(); 9667 l = 0 === c ? 0 : (e - s.minTranslate()) / c, l !== n && s.updateProgress(e), s.emit("setTranslate", s.translate, t); 9668 }, 9669 minTranslate: function () { 9670 return -this.snapGrid[0]; 9671 }, 9672 maxTranslate: function () { 9673 return -this.snapGrid[this.snapGrid.length - 1]; 9674 }, 9675 translateTo: function (e, t, s, a, i) { 9676 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), void 0 === a && (a = !0); 9677 const r = this, 9678 { 9679 params: n, 9680 wrapperEl: l 9681 } = r; 9682 if (r.animating && n.preventInteractionOnTransition) return !1; 9683 const o = r.minTranslate(), 9684 d = r.maxTranslate(); 9685 let c; 9686 if (c = a && e > o ? o : a && e < d ? d : e, r.updateProgress(c), n.cssMode) { 9687 const e = r.isHorizontal(); 9688 if (0 === t) l[e ? "scrollLeft" : "scrollTop"] = -c;else { 9689 if (!r.support.smoothScroll) return u({ 9690 swiper: r, 9691 targetPosition: -c, 9692 side: e ? "left" : "top" 9693 }), !0; 9694 l.scrollTo({ 9695 [e ? "left" : "top"]: -c, 9696 behavior: "smooth" 9697 }); 9698 } 9699 return !0; 9700 } 9701 return 0 === t ? (r.setTransition(0), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function (e) { 9702 r && !r.destroyed && e.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, s && r.emit("transitionEnd")); 9703 }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0; 9704 } 9705 }; 9706 function O(e) { 9707 let { 9708 swiper: t, 9709 runCallbacks: s, 9710 direction: a, 9711 step: i 9712 } = e; 9713 const { 9714 activeIndex: r, 9715 previousIndex: n 9716 } = t; 9717 let l = a; 9718 if (l || (l = r > n ? "next" : r < n ? "prev" : "reset"), t.emit(`transition${i}`), s && r !== n) { 9719 if ("reset" === l) return void t.emit(`slideResetTransition${i}`); 9720 t.emit(`slideChangeTransition${i}`), "next" === l ? t.emit(`slideNextTransition${i}`) : t.emit(`slidePrevTransition${i}`); 9721 } 9722 } 9723 var D = { 9724 slideTo: function (e, t, s, a, i) { 9725 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "string" == typeof e && (e = parseInt(e, 10)); 9726 const r = this; 9727 let n = e; 9728 n < 0 && (n = 0); 9729 const { 9730 params: l, 9731 snapGrid: o, 9732 slidesGrid: d, 9733 previousIndex: c, 9734 activeIndex: p, 9735 rtlTranslate: m, 9736 wrapperEl: h, 9737 enabled: f 9738 } = r; 9739 if (r.animating && l.preventInteractionOnTransition || !f && !a && !i) return !1; 9740 const g = Math.min(r.params.slidesPerGroupSkip, n); 9741 let v = g + Math.floor((n - g) / r.params.slidesPerGroup); 9742 v >= o.length && (v = o.length - 1); 9743 const w = -o[v]; 9744 if (l.normalizeSlideIndex) for (let e = 0; e < d.length; e += 1) { 9745 const t = -Math.floor(100 * w), 9746 s = Math.floor(100 * d[e]), 9747 a = Math.floor(100 * d[e + 1]); 9748 void 0 !== d[e + 1] ? t >
9748= s && t < a - (a - s) / 2 ? n = e : t >= s && t < a && (n = e + 1) : t >= s && (n = e); 9749 } 9750 if (r.initialized && n !== p) { 9751 if (!r.allowSlideNext && (m ? w > r.translate && w > r.minTranslate() : w < r.translate && w < r.minTranslate())) return !1; 9752 if (!r.allowSlidePrev && w > r.translate && w > r.maxTranslate() && (p || 0) !== n) return !1; 9753 } 9754 let b; 9755 if (n !== (c || 0) && s && r.emit("beforeSlideChangeStart"), r.updateProgress(w), b = n > p ? "next" : n < p ? "prev" : "reset", m && -w === r.translate || !m && w === r.translate) return r.updateActiveIndex(n), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== l.effect && r.setTranslate(w), "reset" !== b && (r.transitionStart(s, b), r.transitionEnd(s, b)), !1; 9756 if (l.cssMode) { 9757 const e = r.isHorizontal(), 9758 s = m ? w : -w; 9759 if (0 === t) { 9760 const t = r.virtual && r.params.virtual.enabled; 9761 t && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), t && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => { 9762 h[e ? "scrollLeft" : "scrollTop"] = s; 9763 })) : h[e ? "scrollLeft" : "scrollTop"] = s, t && requestAnimationFrame(() => { 9764 r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1; 9765 }); 9766 } else { 9767 if (!r.support.smoothScroll) return u({ 9768 swiper: r, 9769 targetPosition: s, 9770 side: e ? "left" : "top" 9771 }), !0; 9772 h.scrollTo({ 9773 [e ? "left" : "top"]: s, 9774 behavior: "smooth" 9775 }); 9776 } 9777 return !0; 9778 } 9779 return r.setTransition(t), r.setTranslate(w), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(s, b), 0 === t ? r.transitionEnd(s, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function (e) { 9780 r && !r.destroyed && e.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, b)); 9781 }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0; 9782 }, 9783 slideToLoop: function (e, t, s, a) { 9784 if (void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "string" == typeof e) { 9785 e = parseInt(e, 10); 9786 } 9787 const i = this; 9788 let r = e; 9789 return i.params.loop && (i.virtual && i.params.virtual.enabled ? r += i.virtual.slidesBefore : r = i.getSlideIndexByData(r)), i.slideTo(r, t, s, a); 9790 }, 9791 slideNext: function (e, t, s) { 9792 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 9793 const a = this, 9794 { 9795 enabled: i, 9796 params: r, 9797 animating: n 9798 } = a; 9799 if (!i) return a; 9800 let l = r.slidesPerGroup; 9801 "auto" === r.slidesPerView && 1 === r.slidesPerGroup && r.slidesPerGroupAuto && (l = Math.max(a.slidesPerViewDynamic("current", !0), 1)); 9802 const o = a.activeIndex < r.slidesPerGroupSkip ? 1 : l, 9803 d = a.virtual && r.virtual.enabled; 9804 if (r.loop) { 9805 if (n && !d && r.loopPreventsSliding) return !1; 9806 if (a.loopFix({ 9807 direction: "next" 9808 }), a._clientLeft = a.wrapperEl.clientLeft, a.activeIndex === a.slides.length - 1 && r.cssMode) return requestAnimationFrame(() => { 9809 a.slideTo(a.activeIndex + o, e, t, s); 9810 }), !0; 9811 } 9812 return r.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + o, e, t, s); 9813 }, 9814 slidePrev: function (e, t, s) { 9815 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 9816 const a = this, 9817 { 9818 params: i, 9819 snapGrid: r, 9820 slidesGrid: n, 9821 rtlTranslate: l, 9822 enabled: o, 9823 animating: d 9824 } = a; 9825 if (!o) return a; 9826 const c = a.virtual && i.virtual.enabled; 9827 if (i.loop) { 9828 if (d && !c && i.loopPreventsSliding) return !1; 9829 a.loopFix({ 9830 direction: "prev" 9831 }), a._clientLeft = a.wrapperEl.clientLeft; 9832 } 9833 function p(e) { 9834 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e); 9835 } 9836 const u = p(l ? a.translate : -a.translate), 9837 m = r.map(e => p(e)); 9838 let h = r[m.indexOf(u) - 1]; 9839 if (void 0 === h && i.cssMode) { 9840 let e; 9841 r.forEach((t, s) => { 9842 u >= t && (e = s); 9843 }), void 0 !== e && (h = r[e > 0 ? e - 1 : e]); 9844 } 9845 let f = 0; 9846 if (void 0 !== h && (f = n.indexOf(h), f < 0 && (f = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && (f = f - a.slidesPerViewDynamic("previous", !0) + 1, f = Math.max(f, 0))), i.rewind && a.isBeginning) { 9847 const i = a.params.virtual && a.params.virtual.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1; 9848 return a.slideTo(i, e, t, s); 9849 } 9850 return i.loop && 0 === a.activeIndex && i.cssMode ? (requestAnimationFrame(() => { 9851 a.slideTo(f, e, t, s); 9852 }), !0) : a.slideTo(f, e, t, s); 9853 }, 9854 slideReset: function (e, t, s) { 9855 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, s); 9856 }, 9857 slideToClosest: function (e, t, s, a) { 9858 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === a && (a = .5); 9859 const i = this; 9860 let r = i.activeIndex; 9861 const n = Math.min(i.params.slidesPerGroupSkip, r), 9862 l = n + Math.floor((r - n) / i.params.slidesPerGroup), 9863 o = i.rtlTranslate ? i.translate : -i.translate; 9864 if (o >= i.snapGrid[l]) { 9865 const e = i.snapGrid[l]; 9866 o - e > (i.snapGrid[l + 1] - e) * a && (r += i.params.slidesPerGroup); 9867 } else { 9868 const e = i.snapGrid[l - 1]; 9869 o - e <= (i.snapGrid[l] - e) * a && (r -= i.params.slidesPerGroup); 9870 } 9871 return r = Math.max(r, 0), r = Math.min(r, i.slidesGrid.length - 1), i.slideTo(r, e, t, s); 9872 }, 9873 slideToClickedSlide: function () { 9874 const e = this, 9875 { 9876 params: t, 9877 slidesEl: s 9878 } = e, 9879 a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView; 9880 let i, 9881 r = e.clickedIndex; 9882 const l = e.isElement ? "swiper-slide" : `.${t.slideClass}`; 9883 if (t.loop) { 9884 if (e.animating) return; 9885 i = parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? r < e.loopedSlides - a / 2 || r > e.slides.length - e.loopedSlides + a / 2 ? (e.loopFix(), r = e.getSlideIndex(h(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), n(() => { 9886 e.slideTo(r); 9887 })) : e.slideTo(r) : r > e.slides.length - a ? (e.loopFix(), r = e.getSlideIndex(h(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), n(() => { 9888 e.slideTo(r); 9889 })) : e.slideTo(r); 9890 } else e.slideTo(r); 9891 } 9892 }; 9893 var G = { 9894 loopCreate: function (e) { 9895 const t = this, 9896 { 9897 params: s, 9898 slidesEl: a 9899 } = t; 9900 if (!s.loop || t.virtual && t.params.virtual.enabled) return; 9901 h(a, `.${s.slideClass}, swiper-slide`).forEach((e, t) => { 9902 e.setAttribute("data-swiper-slide-index", t); 9903 }), t.loopFix({ 9904 slideRealIndex: e, 9905 direction: s.centeredSlides ? void 0 : "next" 9906 }); 9907 }, 9908 loopFix: function (e) { 9909 let { 9910 slideRealIndex: t, 9911 slideTo: s = !0, 9912 direction: a, 9913 setTranslate: i, 9914 activeSlideIndex: r, 9915 byController: n, 9916 byMousewheel: l 9917 } = void 0 === e ? {} : e; 9918 const o = this; 9919 if (!o.params.loop) return; 9920 o.emit("beforeLoopFix"); 9921 const { 9922 slides: d, 9923 allowSlidePrev: c, 9924 allowSlideNext: p, 9925 slidesEl: u, 9926 params: m 9927 } = o; 9928 if (o.allowSlidePrev = !0, o.allowSlideNext = !0, o.virtual && m.virtual.enabled) return s && (m.centeredSlides || 0 !== o.snapIndex ? m.centeredSlides && o.snapIndex < m.slidesPerView ? o.slideTo(o.virtual.slides.length + o.snapIndex, 0, !1, !0) : o.snapIndex === o.snapGrid.length - 1 && o.slideTo(o.virtual.slidesBefore, 0, !1, !0) : o.slideTo(o.virtual.slides.length, 0, !1, !0)), o.allowSlidePrev = c, o.allowSlideNext = p, void o.emit("loopFix"); 9929 const h = "auto" === m.slidesPerView ? o.slidesPerViewDynamic() : Math.ceil(parseFloat(m.slidesPerView, 10)); 9930 let f = m.loopedSlides || h; 9931 f % m.slidesPerGroup != 0 && (f += m.slidesPerGroup - f % m.slidesPerGroup), o.loopedSlides = f; 9932 const g = [], 9933 v = []; 9934 let w = o.activeIndex; 9935 void 0 === r ? r = o.getSlideIndex(o.slides.filter(e => e.classList.contains(m.slideActiveClass))[0]) : w = r; 9936 const b = "next" === a || !a, 9937 y = "prev" === a || !a; 9938 let E = 0, 9939 x = 0; 9940 if (r < f) { 9941 E = Math.max(f - r, m.slidesPerGroup); 9942 for (let e = 0; e < f - r; e += 1) { 9943 const t = e - Math.floor(e / d.length) * d.length; 9944 g.push(d.length - t - 1); 9945 } 9946 } else if (r > o.slides.length - 2 * f) { 9947 x = Math.max(r - (o.slides.length - 2 * f), m.slidesPerGroup); 9948 for (let e = 0; e < x; e += 1) { 9949 const t = e - Math.floor(e / d.length) * d.length; 9950 v.push(t); 9951 } 9952 } 9953 if (y && g.forEach(e => { 9954 o.slides[e].swiperLoopMoveDOM = !0, u.prepend(o.slides[e]), o.slides[e].swiperLoopMoveDOM = !1; 9955 }), b && v.forEach(e => {
9956 o.slides[e].swiperLoopMoveDOM = !0, u.append(o.slides[e]), o.slides[e].swiperLoopMoveDOM = !1; 9957 }), o.recalcSlides(), "auto" === m.slidesPerView && o.updateSlides(), m.watchSlidesProgress && o.updateSlidesOffset(), s) if (g.length > 0 && y) { 9958 if (void 0 === t) { 9959 const e = o.slidesGrid[w], 9960 t = o.slidesGrid[w + E] - e; 9961 l ? o.setTranslate(o.translate - t) : (o.slideTo(w + E, 0, !1, !0), i && (o.touches[o.isHorizontal() ? "startX" : "startY"] += t, o.touchEventsData.currentTranslate = o.translate)); 9962 } else i && (o.slideToLoop(t, 0, !1, !0), o.touchEventsData.currentTranslate = o.translate); 9963 } else if (v.length > 0 && b) if (void 0 === t) { 9964 const e = o.slidesGrid[w], 9965 t = o.slidesGrid[w - x] - e; 9966 l ? o.setTranslate(o.translate - t) : (o.slideTo(w - x, 0, !1, !0), i && (o.touches[o.isHorizontal() ? "startX" : "startY"] += t, o.touchEventsData.currentTranslate = o.translate)); 9967 } else o.slideToLoop(t, 0, !1, !0); 9968 if (o.allowSlidePrev = c, o.allowSlideNext = p, o.controller && o.controller.control && !n) { 9969 const e = { 9970 slideRealIndex: t, 9971 direction: a, 9972 setTranslate: i, 9973 activeSlideIndex: r, 9974 byController: !0 9975 }; 9976 Array.isArray(o.controller.control) ? o.controller.control.forEach(t => { 9977 !t.destroyed && t.params.loop && t.loopFix({ 9978 ...e, 9979 slideTo: t.params.slidesPerView === m.slidesPerView && s 9980 }); 9981 }) : o.controller.control instanceof o.constructor && o.controller.control.params.loop && o.controller.control.loopFix({ 9982 ...e, 9983 slideTo: o.controller.control.params.slidesPerView === m.slidesPerView && s 9984 }); 9985 } 9986 o.emit("loopFix"); 9987 }, 9988 loopDestroy: function () { 9989 const e = this, 9990 { 9991 params: t, 9992 slidesEl: s 9993 } = e; 9994 if (!t.loop || e.virtual && e.params.virtual.enabled) return; 9995 e.recalcSlides(); 9996 const a = []; 9997 e.slides.forEach(e => { 9998 const t = void 0 === e.swiperSlideIndex ? 1 * e.getAttribute("data-swiper-slide-index") : e.swiperSlideIndex; 9999 a[t] = e; 10000 }), e.slides.forEach(e => { 10001 e.removeAttribute("data-swiper-slide-index"); 10002 }), a.forEach(e => { 10003 s.append(e); 10004 }), e.recalcSlides(), e.slideTo(e.realIndex, 0); 10005 } 10006 }; 10007 function H(e) { 10008 const t = this, 10009 s = a(), 10010 i = r(), 10011 n = t.touchEventsData; 10012 n.evCache.push(e); 10013 const { 10014 params: o, 10015 touches: d, 10016 enabled: c 10017 } = t; 10018 if (!c) return; 10019 if (!o.simulateTouch && "mouse" === e.pointerType) return; 10020 if (t.animating && o.preventInteractionOnTransition) return; 10021 !t.animating && o.cssMode && o.loop && t.loopFix(); 10022 let p = e; 10023 p.originalEvent && (p = p.originalEvent); 10024 let u = p.target; 10025 if ("wrapper" === o.touchEventsTarget && !t.wrapperEl.contains(u)) return; 10026 if ("which" in p && 3 === p.which) return; 10027 if ("button" in p && p.button > 0) return; 10028 if (n.isTouched && n.isMoved) return; 10029 const m = !!o.noSwipingClass && "" !== o.noSwipingClass, 10030 h = e.composedPath ? e.composedPath() : e.path; 10031 m && p.target && p.target.shadowRoot && h && (u = h[0]); 10032 const f = o.noSwipingSelector ? o.noSwipingSelector : `.${o.noSwipingClass}`, 10033 g = !(!p.target || !p.target.shadowRoot); 10034 if (o.noSwiping && (g ? function (e, t) { 10035 return void 0 === t && (t = this), function t(s) { 10036 if (!s || s === a() || s === r()) return null; 10037 s.assignedSlot && (s = s.assignedSlot); 10038 const i = s.closest(e); 10039 return i || s.getRootNode ? i || t(s.getRootNode().host) : null; 10040 }(t); 10041 }(f, u) : u.closest(f))) return void (t.allowClick = !0); 10042 if (o.swipeHandler && !u.closest(o.swipeHandler)) return; 10043 d.currentX = p.pageX, d.currentY = p.pageY; 10044 const v = d.currentX, 10045 w = d.currentY, 10046 b = o.edgeSwipeDetection || o.iOSEdgeSwipeDetection, 10047 y = o.edgeSwipeThreshold || o.iOSEdgeSwipeThreshold; 10048 if (b && (v <= y || v >= i.innerWidth - y)) { 10049 if ("prevent" !== b) return; 10050 e.preventDefault(); 10051 } 10052 Object.assign(n, { 10053 isTouched: !0, 10054 isMoved: !1, 10055 allowTouchCallbacks: !0, 10056 isScrolling: void 0, 10057 startMoving: void 0 10058 }), d.startX = v, d.startY = w, n.touchStartTime = l(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, o.threshold > 0 && (n.allowThresholdMove = !1); 10059 let E = !0; 10060 u.matches(n.focusableElements) && (E = !1, "SELECT" === u.no
10060deName && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== u && s.activeElement.blur(); 10061 const x = E && t.allowTouchMove && o.touchStartPreventDefault; 10062 !o.touchStartForcePreventDefault && !x || u.isContentEditable || p.preventDefault(), o.freeMode && o.freeMode.enabled && t.freeMode && t.animating && !o.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", p); 10063 } 10064 function X(e) { 10065 const t = a(), 10066 s = this, 10067 i = s.touchEventsData, 10068 { 10069 params: r, 10070 touches: n, 10071 rtlTranslate: o, 10072 enabled: d 10073 } = s; 10074 if (!d) return; 10075 if (!r.simulateTouch && "mouse" === e.pointerType) return; 10076 let c = e; 10077 if (c.originalEvent && (c = c.originalEvent), !i.isTouched) return void (i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", c)); 10078 const p = i.evCache.findIndex(e => e.pointerId === c.pointerId); 10079 p >= 0 && (i.evCache[p] = c); 10080 const u = i.evCache.length > 1 ? i.evCache[0] : c, 10081 m = u.pageX, 10082 h = u.pageY; 10083 if (c.preventedByNestedSwiper) return n.startX = m, void (n.startY = h); 10084 if (!s.allowTouchMove) return c.target.matches(i.focusableElements) || (s.allowClick = !1), void (i.isTouched && (Object.assign(n, { 10085 startX: m, 10086 startY: h, 10087 prevX: s.touches.currentX, 10088 prevY: s.touches.currentY, 10089 currentX: m, 10090 currentY: h 10091 }), i.touchStartTime = l())); 10092 if (r.touchReleaseOnEdges && !r.loop) if (s.isVertical()) { 10093 if (h < n.startY && s.translate <= s.maxTranslate() || h > n.startY && s.translate >= s.minTranslate()) return i.isTouched = !1, void (i.isMoved = !1); 10094 } else if (m < n.startX && s.translate <= s.maxTranslate() || m > n.startX && s.translate >= s.minTranslate()) return; 10095 if (t.activeElement && c.target === t.activeElement && c.target.matches(i.focusableElements)) return i.isMoved = !0, void (s.allowClick = !1); 10096 if (i.allowTouchCallbacks && s.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1) return; 10097 n.currentX = m, n.currentY = h; 10098 const f = n.currentX - n.startX, 10099 g = n.currentY - n.startY; 10100 if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return; 10101 if (void 0 === i.isScrolling) { 10102 let e; 10103 s.isHorizontal() && n.currentY === n.startY || s.isVertical() && n.currentX === n.startX ? i.isScrolling = !1 : f * f + g * g >= 25 && (e = 180 * Math.atan2(Math.abs(g), Math.abs(f)) / Math.PI, i.isScrolling = s.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle); 10104 } 10105 if (i.isScrolling && s.emit("touchMoveOpposite", c), void 0 === i.startMoving && (n.currentX === n.startX && n.currentY === n.startY || (i.startMoving = !0)), i.isScrolling || s.zoom && s.params.zoom && s.params.zoom.enabled && i.evCache.length > 1) return void (i.isTouched = !1); 10106 if (!i.startMoving) return; 10107 s.allowClick = !1, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation(); 10108 let v = s.isHorizontal() ? f : g, 10109 w = s.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY; 10110 r.oneWayMovement && (v = Math.abs(v) * (o ? 1 : -1), w = Math.abs(w) * (o ? 1 : -1)), n.diff = v, v *= r.touchRatio, o && (v = -v, w = -w); 10111 const b = s.touchesDirection; 10112 s.swipeDirection = v > 0 ? "prev" : "next", s.touchesDirection = w > 0 ? "prev" : "next"; 10113 const y = s.params.loop && !r.cssMode, 10114 E = "next" === s.swipeDirection && s.allowSlideNext || "prev" === s.swipeDirection && s.allowSlidePrev; 10115 if (!i.isMoved) { 10116 if (y && E && s.loopFix({ 10117 direction: s.swipeDirection 10118 }), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) { 10119 const e = new window.CustomEvent("transitionend", { 10120 bubbles: !0, 10121 cancelable: !0 10122 }); 10123 s.wrapperEl.dispatchEvent(e); 10124 } 10125 i.allowMomentumBounce = !1, !r.grabCursor || !0 !== s.allowSlideNext && !0 !== s.allowSlidePrev || s.setGrabCursor(!0), s.emit("sliderFirstMove", c); 10126 } 10127 let x; 10128 i.isMoved && b !== s.touchesDirection && y && E && Math.abs(v) >= 1 && (s.loopFix({ 10129 direction: s.swipeDirection, 10130 setTranslate: !0 10131 }), x = !0), s.emit("sliderMove", c), i.isMoved = !0, i.currentTranslate = v + i.startTranslate; 10132 let S = !0, 10133 T = r.resistanceRatio; 10134 if (r.touchReleaseOnEdges && (T = 0), v > 0 ? (y && E && !x && i.currentTranslate > (r.centeredSlides ? s.minTranslate() - s.size / 2 : s.minTranslate()) && s.loopFix({ 10135 direction: "prev", 10136 setTranslate: !0, 10137 activeSlideIndex: 0 10138 }), i.currentTranslate > s.minTranslate() && (S = !1, r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** T))) : v < 0 && (y && E && !x && i.currentTranslate < (r.centeredSlides ? s.maxTranslate() + s.size / 2 : s.maxTranslate()) && s.loopFix({
vendor: 19,386 bytes, lines 10139-10590
10139 direction: "next", 10140 setTranslate: !0, 10141 activeSlideIndex: s.slides.length - ("auto" === r.slidesPerView ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10))) 10142 }), i.currentTranslate < s.maxTranslate() && (S = !1, r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** T))), S && (c.preventedByNestedSwiper = !0), !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), r.threshold > 0) { 10143 if (!(Math.abs(v) > r.threshold || i.allowThresholdMove)) return void (i.currentTranslate = i.startTranslate); 10144 if (!i.allowThresholdMove) return i.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, i.currentTranslate = i.startTranslate, void (n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY); 10145 } 10146 r.followFinger && !r.cssMode && ((r.freeMode && r.freeMode.enabled && s.freeMode || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)); 10147 } 10148 function Y(e) { 10149 const t = this, 10150 s = t.touchEventsData, 10151 a = s.evCache.findIndex(t => t.pointerId === e.pointerId); 10152 if (a >= 0 && s.evCache.splice(a, 1), ["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(e.type)) { 10153 if (!(["pointercancel", "contextmenu"].includes(e.type) && (t.browser.isSafari || t.browser.isWebView))) return; 10154 } 10155 const { 10156 params: i, 10157 touches: r, 10158 rtlTranslate: o, 10159 slidesGrid: d, 10160 enabled: c 10161 } = t; 10162 if (!c) return; 10163 if (!i.simulateTouch && "mouse" === e.pointerType) return; 10164 let p = e; 10165 if (p.originalEvent && (p = p.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", p), s.allowTouchCallbacks = !1, !s.isTouched) return s.isMoved && i.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, void (s.startMoving = !1); 10166 i.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 10167 const u = l(), 10168 m = u - s.touchStartTime; 10169 if (t.allowClick) { 10170 const e = p.path || p.composedPath && p.composedPath(); 10171 t.updateClickedSlide(e && e[0] || p.target, e), t.emit("tap click", p), m < 300 && u - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", p); 10172 } 10173 if (s.lastClickTime = l(), n(() => { 10174 t.destroyed || (t.allowClick = !0); 10175 }), !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === r.diff || s.currentTranslate === s.startTranslate) return s.isTouched = !1, s.isMoved = !1, void (s.startMoving = !1); 10176 let h; 10177 if (s.isTouched = !1, s.isMoved = !1, s.startMoving = !1, h = i.followFinger ? o ? t.translate : -t.translate : -s.currentTranslate, i.cssMode) return; 10178 if (i.freeMode && i.freeMode.enabled) return void t.freeMode.onTouchEnd({ 10179 currentPos: h 10180 }); 10181 let f = 0, 10182 g = t.slidesSizesGrid[0]; 10183 for (let e = 0; e < d.length; e += e < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) { 10184 const t = e < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup; 10185 void 0 !== d[e + t] ? h >= d[e] && h < d[e + t] && (f = e, g = d[e + t] - d[e]) : h >= d[e] && (f = e, g = d[d.length - 1] - d[d.length - 2]); 10186 } 10187 let v = null, 10188 w = null; 10189 i.rewind && (t.isBeginning ? w = i.virtual && i.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (v = 0)); 10190 const b = (h - d[f]) / g, 10191 y = f < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup; 10192 if (m > i.longSwipesMs) { 10193 if (!i.longSwipes) return void t.slideTo(t.activeIndex); 10194 "next" === t.swipeDirection && (b >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? v : f + y) : t.slideTo(f)), "prev" === t.swipeDirection && (b > 1 - i.longSwipesRatio ? t.slideTo(f + y) : null !== w && b < 0 && Math.abs(b) > i.longSwipesRatio ? t.slideTo(w) : t.slideTo(f)); 10195 } else { 10196 if (!i.shortSwipes) return void t.slideTo(t.activeIndex); 10197 t.navigation && (p.target === t.navigation.nextEl || p.target === t.navigation.prevEl) ? p.target === t.navigation.nextEl ? t.slideTo(f + y) : t.slideTo(f) : ("next" === t.swipeDirection && t.slideTo(null !== v ? v : f + y), "prev" === t.swipeDirection && t.slideTo(null !== w ? w : f)); 10198 } 10199 } 10200 function N() { 10201 const e = this, 10202 { 10203 params: t, 10204 el: s 10205 } = e; 10206 if (s && 0 === s.offsetWidth) return; 10207 t.breakpoints && e.setBreakpoint(); 10208 const { 10209 allowSlideNext: a, 10210 allowSlidePrev: i, 10211 snapGrid: r 10212 } = e, 10213 n = e.virtual && e.params.virtual.enabled; 10214 e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses(); 10215 const l = n && t.loop; 10216 !("auto" === t.slidesPerView || t.slidesPerView > 1) || !e.isEnd || e.isBeginning || e.params.centeredSlides || l ? e.params.loop && !n ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0) : e.slideTo(e.slides.length - 1, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), e.autoplay.resizeTimeout = setTimeout(() => { 10217 e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume(); 10218 }, 500)), e.allowSlidePrev = i, e.allowSlideNext = a, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow(); 10219 } 10220 function B(e) { 10221 const t = this; 10222 t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))); 10223 } 10224 function R() { 10225 const e = this, 10226 { 10227 wrapperEl: t, 10228 rtlTranslate: s, 10229 enabled: a 10230 } = e; 10231 if (!a) return; 10232 let i; 10233 e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, 0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses(); 10234 const r = e.maxTranslate() - e.minTranslate(); 10235 i = 0 === r ? 0 : (e.translate - e.minTranslate()) / r, i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1); 10236 } 10237 function q(e) { 10238 const t = this; 10239 z(t, e.target), t.params.cssMode || "auto" !== t.params.slidesPerView && !t.params.autoHeight || t.update(); 10240 } 10241 let V = !1; 10242 function F() {} 10243 const _ = (e, t) => { 10244 const s = a(), 10245 { 10246 params: i, 10247 el: r, 10248 wrapperEl: n, 10249 device: l 10250 } = e, 10251 o = !!i.nested, 10252 d = "on" === t ? "addEventListener" : "removeEventListener", 10253 c = t; 10254 r[d]("pointerdown", e.onTouchStart, { 10255 passive: !1 10256 }), s[d]("pointermove", e.onTouchMove, { 10257 passive: !1, 10258 capture: o 10259 }), s[d]("pointerup", e.onTouchEnd, { 10260 passive: !0 10261 }), s[d]("pointercancel", e.onTouchEnd, { 10262 passive: !0 10263 }), s[d]("pointerout", e.onTouchEnd, { 10264 passive: !0 10265 }), s[d]("pointerleave", e.onTouchEnd, { 10266 passive: !0 10267 }), s[d]("contextmenu", e.onTouchEnd, { 10268 passive: !0 10269 }), (i.preventClicks || i.preventClicksPropagation) && r[d]("click", e.onClick, !0), i.cssMode && n[d]("scroll", e.onScroll), i.updateOnWindowResize ? e[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", N, !0) : e[c]("observerUpdate", N, !0), r[d]("load", e.onLoad, { 10270 capture: !0 10271 }); 10272 }; 10273 const j = (e, t) => e.grid && t.grid && t.grid.rows > 1; 10274 var W = { 10275 init: !0, 10276 direction: "horizontal", 10277 oneWayMovement: !1, 10278 touchEventsTarget: "wrapper", 10279 initialSlide: 0, 10280 speed: 300, 10281 cssMode: !1, 10282 updateOnWindowResize: !0, 10283 resizeObserver: !0, 10284 nested: !1, 10285 createElements: !1, 10286 enabled: !0, 10287 focusableElements: "input, select, option, textarea, button, video, label", 10288 width: null, 10289 height: null, 10290 preventInteractionOnTransition: !1, 10291 userAgent: null, 10292 url: null, 10293 edgeSwipeDetection: !1, 10294 edgeSwipeThreshold: 20, 10295 autoHeight: !1, 10296 setWrapperSize: !1, 10297 virtualTranslate: !1, 10298 effect: "slide", 10299 breakpoints: void 0, 10300 breakpointsBase: "window", 10301 spaceBetween: 0, 10302 slidesPerView: 1, 10303 slidesPerGroup: 1, 10304 slidesPerGroupSkip: 0, 10305 slidesPerGroupAuto: !1, 10306 centeredSlides: !1, 10307 centeredSlidesBounds: !1, 10308 slidesOffsetBefore: 0, 10309 slidesOffsetAfter: 0, 10310 normalizeSlideIndex: !0, 10311 centerInsufficientSlides: !1, 10312 watchOverflow: !0, 10313 roundLengths: !1, 10314 touchRatio: 1, 10315 touchAngle: 45, 10316 simulateTouch: !0, 10317 shortSwipes: !0, 10318 longSwipes: !0, 10319 longSwipesRatio: .5, 10320 longSwipesMs: 300, 10321 followFinger: !0, 10322 allowTouchMove: !0, 10323 threshold: 5, 10324 touchMoveStopPropagation: !1, 10325 touchStartPreventDefault: !0, 10326 touchStartForcePreventDefault: !1, 10327 touchReleaseOnEdges: !1, 10328 uniqueNavElements: !0, 10329 resistance: !0, 10330 resistanceRatio: .85, 10331 watchSlidesProgress: !1, 10332 grabCursor: !1, 10333 preventClicks: !0, 10334 preventClicksPropagation: !0, 10335 slideToClickedSlide: !1, 10336 loop: !1, 10337 loopedSlides: null, 10338 loopPreventsSliding: !0, 10339 rewind: !1, 10340 allowSlidePrev: !0, 10341 allowSlideNext: !0, 10342 swipeHandler: null, 10343 noSwiping: !0, 10344 noSwipingClass: "swiper-no-swiping", 10345 noSwipingSelector: null, 10346 passiveListeners: !0, 10347 maxBackfaceHiddenSlides: 10, 10348 containerModifierClass: "swiper-", 10349 slideClass: "swiper-slide", 10350 slideActiveClass: "swiper-slide-active", 10351 slideVisibleClass: "swiper-slide-visible", 10352 slideNextClass: "swiper-slide-next", 10353 slidePrevClass: "swiper-slide-prev", 10354 wrapperClass: "swiper-wrapper", 10355 lazyPreloaderClass: "swiper-lazy-preloader", 10356 lazyPreloadPrevNext: 0, 10357 runCallbacksOnInit: !0, 10358 _emitClasses: !1 10359 }; 10360 function U(e, t) { 10361 return function (s) { 10362 void 0 === s && (s = {}); 10363 const a = Object.keys(s)[0], 10364 i = s[a]; 10365 "object" == typeof i && null !== i ? (!0 === e[a] && (e[a] = { 10366 enabled: !0 10367 }), "navigation" === a && e[a] && e[a].enabled && !e[a].prevEl && !e[a].nextEl && (e[a].auto = !0), ["pagination", "scrollbar"].indexOf(a) >= 0 && e[a] && e[a].enabled && !e[a].el && (e[a].auto = !0), a in e && "enabled" in i ? ("object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { 10368 enabled: !1 10369 }), c(t, s)) : c(t, s)) : c(t, s); 10370 }; 10371 } 10372 const K = { 10373 eventsEmitter: L, 10374 update: I, 10375 translate: k, 10376 transition: { 10377 setTransition: function (e, t) { 10378 const s = this; 10379 s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${e}ms`, s.wrapperEl.style.transitionDelay = 0 === e ? "0ms" : ""), s.emit("setTransition", e, t); 10380 }, 10381 transitionStart: function (e, t) { 10382 void 0 === e && (e = !0); 10383 const s = this, 10384 { 10385 params: a 10386 } = s; 10387 a.cssMode || (a.autoHeight && s.updateAutoHeight(), O({ 10388 swiper: s, 10389 runCallbacks: e, 10390 direction: t, 10391 step: "Start" 10392 })); 10393 }, 10394 transitionEnd: function (e, t) { 10395 void 0 === e && (e = !0); 10396 const s = this, 10397 { 10398 params: a 10399 } = s; 10400 s.animating = !1, a.cssMode || (s.setTransition(0), O({ 10401 swiper: s, 10402 runCallbacks: e, 10403 direction: t, 10404 step: "End" 10405 })); 10406 } 10407 }, 10408 slide: D, 10409 loop: G, 10410 grabCursor: { 10411 setGrabCursor: function (e) { 10412 const t = this; 10413 if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return; 10414 const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; 10415 t.isElement && (t.__preventObserver__ = !0), s.style.cursor = "move", s.style.cursor = e ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => { 10416 t.__preventObserver__ = !1; 10417 }); 10418 }, 10419 unsetGrabCursor: function () { 10420 const e = this; 10421 e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => { 10422 e.__preventObserver__ = !1; 10423 })); 10424 } 10425 }, 10426 events: { 10427 attachEvents: function () { 10428 const e = this, 10429 t = a(), 10430 { 10431 params: s 10432 } = e; 10433 e.onTouchStart = H.bind(e), e.onTouchMove = X.bind(e), e.onTouchEnd = Y.bind(e), s.cssMode && (e.onScroll = R.bind(e)), e.onClick = B.bind(e), e.onLoad = q.bind(e), V || (t.addEventListener("touchstart", F), V = !0), _(e, "on"); 10434 }, 10435 detachEvents: function () { 10436 _(this, "off"); 10437 } 10438 }, 10439 breakpoints: { 10440 setBreakpoint: function () { 10441 const e = this, 10442 { 10443 realIndex: t, 10444 initialized: s, 10445 params: a, 10446 el: i 10447 } = e, 10448 r = a.breakpoints; 10449 if (!r || r && 0 === Object.keys(r).length) return; 10450 const n = e.getBreakpoint(r, e.params.breakpointsBase, e.el); 10451 if (!n || e.currentBreakpoint === n) return; 10452 const l = (n in r ? r[n] : void 0) || e.originalParams, 10453 o = j(e, a), 10454 d = j(e, l), 10455 p = a.enabled; 10456 o && !d ? (i.classList.remove(`${a.containerModifierClass}grid`, `${a.containerModifierClass}grid-column`), e.emitContainerClasses()) : !o && d && (i.classList.add(`${a.containerModifierClass}grid`), (l.grid.fill && "column" === l.grid.fill || !l.grid.fill && "column" === a.grid.fill) && i.classList.add(`${a.containerModifierClass}grid-column`), e.emitContainerClasses()), ["navigation", "pagination", "scrollbar"].forEach(t => { 10457 if (void 0 === l[t]) return; 10458 const s = a[t] && a[t].enabled, 10459 i = l[t] && l[t].enabled; 10460 s && !i && e[t].disable(), !s && i && e[t].enable(); 10461 }); 10462 const u = l.direction && l.direction !== a.direction, 10463 m = a.loop && (l.slidesPerView !== a.slidesPerView || u), 10464 h = a.loop; 10465 u && s && e.changeDirection(), c(e.params, l); 10466 const f = e.params.enabled, 10467 g = e.params.loop; 10468 Object.assign(e, { 10469 allowTouchMove: e.params.allowTouchMove, 10470 allowSlideNext: e.params.allowSlideNext, 10471 allowSlidePrev: e.params.allowSlidePrev 10472 }), p && !f ? e.disable() : !p && f && e.enable(), e.currentBreakpoint = n, e.emit("_beforeBreakpoint", l), s && (m ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !h && g ? (e.loopCreate(t), e.updateSlides()) : h && !g && e.loopDestroy()), e.emit("breakpoint", l); 10473 }, 10474 getBreakpoint: function (e, t, s) { 10475 if (void 0 === t && (t = "window"), !e || "container" === t && !s) return; 10476 let a = !1; 10477 const i = r(), 10478 n = "window" === t ? i.innerHeight : s.clientHeight, 10479 l = Object.keys(e).map(e => { 10480 if ("string" == typeof e && 0 === e.indexOf("@")) { 10481 const t = parseFloat(e.substr(1)); 10482 return { 10483 value: n * t, 10484 point: e 10485 }; 10486 } 10487 return { 10488 value: e, 10489 point: e 10490 }; 10491 }); 10492 l.sort((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10)); 10493 for (let e = 0; e < l.length; e += 1) { 10494 const { 10495 point: r, 10496 value: n 10497 } = l[e]; 10498 "window" === t ? i.matchMedia(`(min-width: ${n}px)`).matches && (a = r) : n <= s.clientWidth && (a = r); 10499 } 10500 return a || "max"; 10501 } 10502 }, 10503 checkOverflow: { 10504 checkOverflow: function () { 10505 const e = this, 10506 { 10507 isLocked: t, 10508 params: s 10509 } = e, 10510 { 10511 slidesOffsetBefore: a 10512 } = s; 10513 if (a) { 10514 const t = e.slides.length - 1, 10515 s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a; 10516 e.isLocked = e.size > s; 10517 } else e.isLocked = 1 === e.snapGrid.length; 10518 !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock"); 10519 } 10520 }, 10521 classes: { 10522 addClasses: function () { 10523 const e = this, 10524 { 10525 classNames: t, 10526 params: s, 10527 rtl: a, 10528 el: i, 10529 device: r 10530 } = e, 10531 n = function (e, t) { 10532 const s = []; 10533 return e.forEach(e => { 10534 "object" == typeof e ? Object.keys(e).forEach(a => { 10535 e[a] && s.push(t + a); 10536 }) : "string" == typeof e && s.push(t + e); 10537 }), s; 10538 }(["initialized", s.direction, { 10539 "free-mode": e.params.freeMode && s.freeMode.enabled 10540 }, { 10541 autoheight: s.autoHeight 10542 }, { 10543 rtl: a 10544 }, { 10545 grid: s.grid && s.grid.rows > 1 10546 }, { 10547 "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill 10548 }, { 10549 android: r.android 10550 }, { 10551 ios: r.ios 10552 }, { 10553 "css-mode": s.cssMode 10554 }, { 10555 centered: s.cssMode && s.centeredSlides 10556 }, { 10557 "watch-progress": s.watchSlidesProgress 10558 }], s.containerModifierClass); 10559 t.push(...n), i.classList.add(...t), e.emitContainerClasses(); 10560 }, 10561 removeClasses: function () { 10562 const { 10563 el: e, 10564 classNames: t 10565 } = this; 10566 e.classList.remove(...t), this.emitContainerClasses(); 10567 } 10568 } 10569 }, 10570 Z = {}; 10571 class Q { 10572 constructor() { 10573 let e, t; 10574 for (var s = arguments.length, i = new Array(s), r = 0; r < s; r++) i[r] = arguments[r]; 10575 1 === i.length && i[0].constructor && "Object" === Object.prototype.toString.call(i[0]).slice(8, -1) ? t = i[0] : [e, t] = i, t || (t = {}), t = c({}, t), e && !t.el && (t.el = e); 10576 const n = a(); 10577 if (t.el && "string" == typeof t.el && n.querySelectorAll(t.el).length > 1) { 10578 const e = []; 10579 return n.querySelectorAll(t.el).forEach(s => { 10580 const a = c({}, t, { 10581 el: s 10582 }); 10583 e.push(new Q(a)); 10584 }), e; 10585 } 10586 const l = this; 10587 l.__swiper__ = !0, l.support = M(), l.device = C({ 10588 userAgent: t.userAgent 10589 }), l.browser = P(), l.eventsListeners = {}, l.eventsAnyListeners = [], l.modules = [...l.__modules__], t.modules && Array.isArray(t.modules) && l.modules.push(...t.modules); 10590 const o = {};
10591 l.modules.forEach(e => { 10592 e({ 10593 params: t, 10594 swiper: l, 10595 extendParams: U(t, o), 10596 on: l.on.bind(l), 10597 once: l.once.bind(l), 10598 off: l.off.bind(l), 10599 emit: l.emit.bind(l) 10600 }); 10601 }); 10602 const d = c({}, W, o); 10603 return l.params = c({}, d, Z, t), l.originalParams = c({}, l.params), l.passedParams = c({}, t), l.params && l.params.on && Object.keys(l.params.on).forEach(e => { 10604 l.on(e, l.params.on[e]); 10605 }), l.params && l.params.onAny && l.onAny(l.params.onAny), Object.assign(l, { 10606 enabled: l.params.enabled, 10607 el: e, 10608 classNames: [], 10609 slides: [], 10610 slidesGrid: [], 10611 snapGrid: [], 10612 slidesSizesGrid: [], 10613 isHorizontal: () => "horizontal" === l.params.direction, 10614 isVertical: () => "vertical" === l.params.direction, 10615 activeIndex: 0, 10616 realIndex: 0, 10617 isBeginning: !0, 10618 isEnd: !1, 10619 translate: 0, 10620 previousTranslate: 0, 10621 progress: 0, 10622 velocity: 0, 10623 animating: !1, 10624 cssOverflowAdjustment() { 10625 return Math.trunc(this.translate / 2 ** 23) * 2 ** 23; 10626 }, 10627 allowSlideNext: l.params.allowSlideNext, 10628 allowSlidePrev: l.params.allowSlidePrev, 10629 touchEventsData: { 10630 isTouched: void 0, 10631 isMoved: void 0, 10632 allowTouchCallbacks: void 0, 10633 touchStartTime: void 0, 10634 isScrolling: void 0, 10635 currentTranslate: void 0, 10636 startTranslate: void 0, 10637 allowThresholdMove: void 0, 10638 focusableElements: l.params.focusableElements, 10639 lastClickTime: 0, 10640 clickTimeout: void 0, 10641 velocities: [], 10642 allowMomentumBounce: void 0, 10643 startMoving: void 0, 10644 evCache: [] 10645 }, 10646 allowClick: !0, 10647 allowTouchMove: l.params.allowTouchMove, 10648 touches: { 10649 startX: 0, 10650 startY: 0, 10651 currentX: 0, 10652 currentY: 0, 10653 diff: 0 10654 }, 10655 imagesToLoad: [], 10656 imagesLoaded: 0 10657 }), l.emit("_swiper"), l.params.init && l.init(), l; 10658 } 10659 getSlideIndex(e) { 10660 const { 10661 slidesEl: t, 10662 params: s 10663 } = this, 10664 a = w(h(t, `.${s.slideClass}, swiper-slide`)[0]); 10665 return w(e) - a; 10666 } 10667 getSlideIndexByData(e) { 10668 return this.getSlideIndex(this.slides.filter(t => 1 * t.getAttribute("data-swiper-slide-index") === e)[0]); 10669 } 10670 recalcSlides() { 10671 const { 10672 slidesEl: e, 10673 params: t 10674 } = this; 10675 this.slides = h(e, `.${t.slideClass}, swiper-slide`); 10676 } 10677 enable() { 10678 const e = this; 10679 e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable")); 10680 } 10681 disable() { 10682 const e = this; 10683 e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")); 10684 } 10685 setProgress(e, t) { 10686 const s = this; 10687 e = Math.min(Math.max(e, 0), 1); 10688 const a = s.minTranslate(), 10689 i = (s.maxTranslate() - a) * e + a; 10690 s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses(); 10691 } 10692 emitContainerClasses() { 10693 const e = this; 10694 if (!e.params._emitClasses || !e.el) return; 10695 const t = e.el.className.split(" ").filter(t => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass)); 10696 e.emit("_containerClasses", t.join(" ")); 10697 } 10698 getSlideClasses(e) { 10699 const t = this; 10700 return t.destroyed ? "" : e.className.split(" ").filter(e => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass)).join(" "); 10701 } 10702 emitSlidesClasses() { 10703 const e = this; 10704 if (!e.params._emitClasses || !e.el) return; 10705 const t = []; 10706 e.slides.forEach(s => { 10707 const a = e.getSlideClasses(s); 10708 t.push({ 10709 slideEl: s, 10710 classNames: a 10711 }), e.emit("_slideClass", s, a); 10712 }), e.emit("_slideClasses", t); 10713 } 10714 slidesPerViewDynamic(e, t) { 10715 void 0 === e && (e = "current"), void 0 === t && (t = !1); 10716 const { 10717 params: s, 10718 slides: a, 10719 slidesGrid: i, 10720 slidesSizesGrid: r, 10721 size: n, 10722 activeIndex: l 10723 } = this; 10724 let o = 1; 10725 if ("number" == typeof s.slidesPerView) return s.slidesPerView; 10726 if (s.centeredSlides) { 10727 let e, 10728 t = a[l] ? a[l].swiperSlideSize : 0; 10729 for (let s = l + 1; s < a.length; s += 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)); 10730 for (let s = l - 1; s >= 0; s -= 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)); 10731 } else if ("current" === e) for (let e = l + 1; e < a.length; e += 1) { 10732 (t ? i[e] + r[e] - i[l] < n : i[e] - i[l] < n) && (o += 1); 10733 } else for (let e = l - 1; e >= 0; e -= 1) { 10734 i[l] - i[e] < n && (o += 1); 10735 } 10736 return o; 10737 } 10738 update() { 10739 const e = this; 10740 if (!e || e.destroyed) return; 10741 const { 10742 snapGrid: t, 10743 params: s 10744 } = e; 10745 function a() { 10746 const t = e.rtlTranslate ? -1 * e.translate : e.translate, 10747 s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 10748 e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses(); 10749 } 10750 let i; 10751 if (s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEac
10751h(t => { 10752 t.complete && z(e, t); 10753 }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), s.freeMode && s.freeMode.enabled && !s.cssMode) a(), s.autoHeight && e.updateAutoHeight();else { 10754 if (("auto" === s.slidesPerView || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) { 10755 const t = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides; 10756 i = e.slideTo(t.length - 1, 0, !1, !0); 10757 } else i = e.slideTo(e.activeIndex, 0, !1, !0); 10758 i || a(); 10759 } 10760 s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update"); 10761 } 10762 changeDirection(e, t) { 10763 void 0 === t && (t = !0); 10764 const s = this, 10765 a = s.params.direction; 10766 return e || (e = "horizontal" === a ? "vertical" : "horizontal"), e === a || "horizontal" !== e && "vertical" !== e || (s.el.classList.remove(`${s.params.containerModifierClass}${a}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach(t => { 10767 "vertical" === e ? t.style.width = "" : t.style.height = ""; 10768 }), s.emit("changeDirection"), t && s.update()), s; 10769 } 10770 changeLanguageDirection(e) { 10771 const t = this; 10772 t.rtl && "rtl" === e || !t.rtl && "ltr" === e || (t.rtl = "rtl" === e, t.rtlTranslate = "horizontal" === t.params.direction && t.rtl, t.rtl ? (t.el.classList.add(`${t.params.containerModifierClass}rtl`), t.el.dir = "rtl") : (t.el.classList.remove(`${t.params.containerModifierClass}rtl`), t.el.dir = "ltr"), t.update()); 10773 } 10774 mount(e) { 10775 const t = this; 10776 if (t.mounted) return !0; 10777 let s = e || t.params.el; 10778 if ("string" == typeof s && (s = document.querySelector(s)), !s) return !1; 10779 s.swiper = t, s.parentNode && s.parentNode.host && "SWIPER-CONTAINER" === s.parentNode.host.nodeName && (t.isElement = !0); 10780 const a = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`; 10781 let i = (() => { 10782 if (s && s.shadowRoot && s.shadowRoot.querySelector) { 10783 return s.shadowRoot.querySelector(a()); 10784 } 10785 return h(s, a())[0]; 10786 })(); 10787 return !i && t.params.createElements && (i = f("div", t.params.wrapperClass), s.append(i), h(s, `.${t.params.slideClass}`).forEach(e => { 10788 i.append(e); 10789 })), Object.assign(t, { 10790 el: s, 10791 wrapperEl: i, 10792 slidesEl: t.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : i, 10793 hostEl: t.isElement ? s.parentNode.host : s, 10794 mounted: !0, 10795 rtl: "rtl" === s.dir.toLowerCase() || "rtl" === v(s, "direction"), 10796 rtlTranslate: "horizontal" === t.params.direction && ("rtl" === s.dir.toLowerCase() || "rtl" === v(s, "direction")), 10797 wrongRTL: "-webkit-box" === v(i, "display") 10798 }), !0; 10799 } 10800 init(e) { 10801 const t = this; 10802 if (t.initialized) return t; 10803 if (!1 === t.mount(e)) return t; 10804 t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual.enabled ? t.slideTo(t.params.initialSlide + t.virtual.slidesBefore, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.params.loop && t.loopCreate(), t.attachEvents(); 10805 const s = [...t.el.querySelectorAll('[loading="lazy"]')]; 10806 return t.isElement && s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')), s.forEach(e => { 10807 e.complete ? z(t, e) : e.addEventListener("load", e => { 10808 z(t, e.target); 10809 }); 10810 }), $(t), t.initialized = !0, $(t), t.emit("init"), t.emit("afterInit"), t; 10811 } 10812 destroy(e, t) { 10813 void 0 === e && (e = !0), void 0 === t && (t = !0); 10814 const s = this, 10815 { 10816 params: a, 10817 el: i, 10818 wrapperEl: r, 10819 slides: n 10820 } = s; 10821 return void 0 === s.params || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), t && (s.removeClasses(), i.removeAttribute("style"), r.removeAttribute("style"), n && n.length && n.forEac
10821h(e => { 10822 e.classList.remove(a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index"); 10823 })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach(e => { 10824 s.off(e); 10825 }), !1 !== e && (s.el.swiper = null, function (e) { 10826 const t = e; 10827 Object.keys(t).forEach(e => { 10828 try { 10829 t[e] = null; 10830 } catch (e) {} 10831 try { 10832 delete t[e]; 10833 } catch (e) {} 10834 }); 10835 }(s)), s.destroyed = !0), null; 10836 } 10837 static extendDefaults(e) { 10838 c(Z, e); 10839 } 10840 static get extendedDefaults() { 10841 return Z; 10842 } 10843 static get defaults() { 10844 return W; 10845 } 10846 static installModule(e) { 10847 Q.prototype.__modules__ || (Q.prototype.__modules__ = []); 10848 const t = Q.prototype.__modules__; 10849 "function" == typeof e && t.indexOf(e) < 0 && t.push(e); 10850 } 10851 static use(e) { 10852 return Array.isArray(e) ? (e.forEach(e => Q.installModule(e)), Q) : (Q.installModule(e), Q); 10853 } 10854 } 10855 function J(e, t, s, a) { 10856 return e.params.createElements && Object.keys(a).forEach(i => { 10857 if (!s[i] && !0 === s.auto) { 10858 let r = h(e.el, `.${a[i]}`)[0]; 10859 r || (r = f("div", a[i]), r.className = a[i], e.el.append(r)), s[i] = r, t[i] = r; 10860 } 10861 }), s; 10862 } 10863 function ee(e) { 10864 return void 0 === e && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`; 10865 } 10866 function te(e) { 10867 const t = this, 10868 { 10869 params: s, 10870 slidesEl: a 10871 } = t; 10872 s.loop && t.loopDestroy(); 10873 const i = e => { 10874 if ("string" == typeof e) { 10875 const t = document.createElement("div"); 10876 t.innerHTML = e, a.append(t.children[0]), t.innerHTML = ""; 10877 } else a.append(e); 10878 }; 10879 if ("object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1) e[t] && i(e[t]);else i(e); 10880 t.recalcSlides(), s.loop && t.loopCreate(), s.observer && !t.isElement || t.update(); 10881 } 10882 function se(e) { 10883 const t = this, 10884 { 10885 params: s, 10886 activeIndex: a, 10887 slidesEl: i 10888 } = t; 10889 s.loop && t.loopDestroy(); 10890 let r = a + 1; 10891 const n = e => { 10892 if ("string" == typeof e) { 10893 const t = document.createElement("div"); 10894 t.innerHTML = e, i.prepend(t.children[0]), t.innerHTML = ""; 10895 } else i.prepend(e); 10896 }; 10897 if ("object" == typeof e && "length" in e) { 10898 for (let t = 0; t < e.length; t += 1) e[t] && n(e[t]); 10899 r = a + e.length; 10900 } else n(e); 10901 t.recalcSlides(), s.loop && t.loopCreate(), s.observer && !t.isElement || t.update(), t.slideTo(r, 0, !1); 10902 } 10903 function ae(e, t) { 10904 const s = this, 10905 { 10906 params: a, 10907 activeIndex: i, 10908 slidesEl: r 10909 } = s; 10910 let n = i; 10911 a.loop && (n -= s.loopedSlides, s.loopDestroy(), s.recalcSlides()); 10912 const l = s.slides.length; 10913 if (e <= 0) return void s.prependSlide(t); 10914 if (e >= l) return void s.appendSlide(t); 10915 let o = n > e ? n + 1 : n; 10916 const d = []; 10917 for (let t = l - 1; t >= e; t -= 1) { 10918 const e = s.slides[t]; 10919 e.remove(), d.unshift(e); 10920 } 10921 if ("object" == typeof t && "length" in t) { 10922 for (let e = 0; e < t.length; e += 1) t[e] && r.append(t[e]); 10923 o = n > e ? n + t.length : n; 10924 } else r.append(t); 10925 for (let e = 0; e < d.length; e += 1) r.append(d[e]); 10926 s.recalcSlides(), a.loop && s.loopCreate(), a.observer && !s.isElement || s.update(), a.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1); 10927 } 10928 function ie(e) { 10929 const t = this, 10930 { 10931 params: s, 10932 activeIndex: a 10933 } = t; 10934 let i = a; 10935 s.loop && (i -= t.loopedSlides, t.loopDestroy()); 10936 let r, 10937 n = i; 10938 if ("object" == typeof e && "length" in e) { 10939 for (let s = 0; s < e.length; s += 1) r = e[s], t.slides[r] && t.slides[r].remove(), r < n && (n -= 1); 10940 n = Math.max(n, 0); 10941 } else r = e, t.slides[r] && t.slides[r].remove(), r < n && (n -= 1), n = Math.max(n, 0); 10942 t.recalcSlides(), s.loop && t.loopCreate(), s.observer && !t.isElement || t.update(
10942), s.loop ? t.slideTo(n + t.loopedSlides, 0, !1) : t.slideTo(n, 0, !1); 10943 } 10944 function re() { 10945 const e = this, 10946 t = []; 10947 for (let s = 0; s < e.slides.length; s += 1) t.push(s); 10948 e.removeSlide(t); 10949 } 10950 function ne(e) { 10951 const { 10952 effect: t, 10953 swiper: s, 10954 on: a, 10955 setTranslate: i, 10956 setTransition: r, 10957 overwriteParams: n, 10958 perspective: l, 10959 recreateShadows: o, 10960 getEffectParams: d 10961 } = e; 10962 let c; 10963 a("beforeInit", () => { 10964 if (s.params.effect !== t) return; 10965 s.classNames.push(`${s.params.containerModifierClass}${t}`), l && l() && s.classNames.push(`${s.params.containerModifierClass}3d`); 10966 const e = n ? n() : {}; 10967 Object.assign(s.params, e), Object.assign(s.originalParams, e); 10968 }), a("setTranslate", () => { 10969 s.params.effect === t && i(); 10970 }), a("setTransition", (e, a) => { 10971 s.params.effect === t && r(a); 10972 }), a("transitionEnd", () => { 10973 if (s.params.effect === t && o) { 10974 if (!d || !d().slideShadows) return; 10975 s.slides.forEach(e => { 10976 e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e => e.remove()); 10977 }), o(); 10978 } 10979 }), a("virtualUpdate", () => { 10980 s.params.effect === t && (s.slides.length || (c = !0), requestAnimationFrame(() => { 10981 c && s.slides && s.slides.length && (i(), c = !1); 10982 })); 10983 }); 10984 } 10985 function le(e, t) { 10986 const s = m(t); 10987 return s !== t && (s.style.backfaceVisibility = "hidden", s.style["-webkit-backface-visibility"] = "hidden"), s; 10988 } 10989 function oe(e) { 10990 let { 10991 swiper: t, 10992 duration: s, 10993 transformElements: a, 10994 allSlides: i 10995 } = e; 10996 const { 10997 activeIndex: r 10998 } = t; 10999 if (t.params.virtualTranslate && 0 !== s) { 11000 let e, 11001 s = !1; 11002 e = i ? a : a.filter(e => { 11003 const s = e.classList.contains("swiper-slide-transform") ? (e => { 11004 if (!e.parentElement) return t.slides.filter(t => t.shadowRoot && t.shadowRoot === e.parentNode)[0]; 11005 return e.parentElement; 11006 })(e) : e; 11007 return t.getSlideIndex(s) === r; 11008 }), e.forEach(e => { 11009 y(e, () => { 11010 if (s) return; 11011 if (!t || t.destroyed) return; 11012 s = !0, t.animating = !1; 11013 const e = new window.CustomEvent("transitionend", { 11014 bubbles: !0, 11015 cancelable: !0 11016 }); 11017 t.wrapperEl.dispatchEvent(e); 11018 }); 11019 }); 11020 } 11021 } 11022 function de(e, t, s) { 11023 const a = `swiper-slide-shadow${s ? `-${s}` : ""}${e ? ` swiper-slide-shadow-${e}` : ""}`, 11024 i = m(t); 11025 let r = i.querySelector(`.${a.split(" ").join(".")}`); 11026 return r || (r = f("div", a.split(" ")), i.append(r)), r; 11027 } 11028 Object.keys(K).forEach(e => { 11029 Object.keys(K[e]).forEach(t => { 11030 Q.prototype[t] = K[e][t]; 11031 }); 11032 }), Q.use([function (e) { 11033 let { 11034 swiper: t, 11035 on: s, 11036 emit: a 11037 } = e; 11038 const i = r(); 11039 let n = null, 11040 l = null; 11041 const o = () => { 11042 t && !t.destroyed && t.initialized && (a("beforeResize"), a("resize")); 11043 }, 11044 d = () => { 11045 t && !t.destroyed && t.initialized && a("orientationchange"); 11046 }; 11047 s("init", () => { 11048 t.params.resizeObserver && void 0 !== i.ResizeObserver ? t && !t.destroyed && t.initialized && (n = new ResizeObserver(e => { 11049 l = i.requestAnimationFrame(() => { 11050 const { 11051 width: s, 11052 height: a 11053 } = t; 11054 let i = s, 11055 r = a; 11056 e.forEach(e => { 11057 let { 11058 contentBoxSize: s, 11059 contentRect: a, 11060 target: n 11061 } = e; 11062 n && n !== t.el || (i = a ? a.width : (s[0] || s).inlineSize, r = a ? a.height : (s[0] || s).blockSize); 11063 }), i === s && r === a || o(); 11064 }); 11065 }), n.observe(t.el)) : (i.addEventListener("resize", o), i.addEventListener("orientationchange", d)); 11066 }), s("destroy", () => { 11067 l && i.cancelAnimationFrame(l), n && n.unobserve && t.el && (n.unobserve(t.el), n = null), i.removeEventListener("resize", o), i.removeEventListener("orientationchange", d); 11068 }); 11069 }, function (e) { 11070 let { 11071 swiper: t, 11072 extendParams: s, 11073 on: a, 11074 emit: i 11075 } = e; 11076 const n = [], 11077 l = r(), 11078 o = function (e, s) { 11079 void 0 === s && (s = {}); 11080 const a = new (l.MutationObserver || l.WebkitMutationObserver)(e => { 11081 if (t.__preventObserver__) return; 11082 if (1 === e.length) return void i("observerUpdate", e[0]); 11083 const s = function () { 11084 i("observerUpdate", e[0]); 11085 }; 11086 l.requestAnimationFrame ? l.requestAnimationFrame(s) : l.setTimeout(s, 0); 11087 }); 11088 a.observe(e, { 11089 attributes: void 0 === s.attributes || s.attributes, 11090 childList: void 0 === s.childList || s.childList, 11091 characterData: void 0 === s.characterData || s.characterData 11092 }), n.push(a); 11093 }; 11094 s({ 11095 observer: !1, 11096 observeParents: !1, 11097 observeSlideChildren: !1 11098 }), a("init", () => { 11099 if (t.params.observer) { 11100 if (t.params.observeParents) { 11101 const e = b(t.hostEl); 11102 for (let t = 0; t < e.length; t += 1) o(e[t]); 11103 } 11104 o(t.hostEl, { 11105 childList: t.params.observeSlideChildren 11106 }), o(t.wrapperEl, { 11107 attributes: !1 11108 }); 11109 } 11110 }), a("destroy", () => {
11111 n.forEach(e => { 11112 e.disconnect(); 11113 }), n.splice(0, n.length); 11114 }); 11115 }]); 11116 const ce = [function (e) { 11117 let t, 11118 { 11119 swiper: s, 11120 extendParams: i, 11121 on: r, 11122 emit: n 11123 } = e; 11124 i({ 11125 virtual: { 11126 enabled: !1, 11127 slides: [], 11128 cache: !0, 11129 renderSlide: null, 11130 renderExternal: null, 11131 renderExternalUpdate: !0, 11132 addSlidesBefore: 0, 11133 addSlidesAfter: 0 11134 } 11135 }); 11136 const l = a(); 11137 s.virtual = { 11138 cache: {}, 11139 from: void 0, 11140 to: void 0, 11141 slides: [], 11142 offset: 0, 11143 slidesGrid: [] 11144 }; 11145 const o = l.createElement("div"); 11146 function d(e, t) { 11147 const a = s.params.virtual; 11148 if (a.cache && s.virtual.cache[t]) return s.virtual.cache[t]; 11149 let i; 11150 return a.renderSlide ? (i = a.renderSlide.call(s, e, t), "string" == typeof i && (o.innerHTML = i, i = o.children[0])) : i = s.isElement ? f("swiper-slide") : f("div", s.params.slideClass), i.setAttribute("data-swiper-slide-index", t), a.renderSlide || (i.innerHTML = e), a.cache && (s.virtual.cache[t] = i), i; 11151 } 11152 function c(e) { 11153 const { 11154 slidesPerView: t, 11155 slidesPerGroup: a, 11156 centeredSlides: i, 11157 loop: r 11158 } = s.params, 11159 { 11160 addSlidesBefore: l, 11161 addSlidesAfter: o 11162 } = s.params.virtual, 11163 { 11164 from: c, 11165 to: p, 11166 slides: u, 11167 slidesGrid: m, 11168 offset: f 11169 } = s.virtual; 11170 s.params.cssMode || s.updateActiveIndex(); 11171 const g = s.activeIndex || 0; 11172 let v, w, b; 11173 v = s.rtlTranslate ? "right" : s.isHorizontal() ? "left" : "top", i ? (w = Math.floor(t / 2) + a + o, b = Math.floor(t / 2) + a + l) : (w = t + (a - 1) + o, b = (r ? t : a) + l); 11174 let y = g - b, 11175 E = g + w; 11176 r || (y = Math.max(y, 0), E = Math.min(E, u.length - 1)); 11177 let x = (s.slidesGrid[y] || 0) - (s.slidesGrid[0] || 0); 11178 function S() { 11179 s.updateSlides(), s.updateProgress(), s.updateSlidesClasses(), n("virtualUpdate"); 11180 } 11181 if (r && g >= b ? (y -= b, i || (x += s.slidesGrid[0])) : r && g < b && (y = -b, i && (x += s.slidesGrid[0])), Object.assign(s.virtual, { 11182 from: y, 11183 to: E, 11184 offset: x, 11185 slidesGrid: s.slidesGrid, 11186 slidesBefore: b, 11187 slidesAfter: w 11188 }), c === y && p === E && !e) return s.slidesGrid !== m && x !== f && s.slides.forEach(e => { 11189 e.style[v] = x - Math.abs(s.cssOverflowAdjustment()) + "px"; 11190 }), s.updateProgress(), void n("virtualUpdate"); 11191 if (s.params.virtual.renderExternal) return s.params.virtual.renderExternal.call(s, { 11192 offset: x, 11193 from: y, 11194 to: E, 11195 slides: function () { 11196 const e = []; 11197 for (let t = y; t <= E; t += 1) e.push(u[t]); 11198 return e; 11199 }() 11200 }), void (s.params.virtual.renderExternalUpdate ? S() : n("virtualUpdate")); 11201 const T = [], 11202 M = [], 11203 C = e => { 11204 let t = e; 11205 return e < 0 ? t = u.length + e : t >= u.length && (t -= u.length), t; 11206 }; 11207 if (e) s.slides.filter(e => e.matches(`.${s.params.slideClass}, swiper-slide`)).forEach(e => { 11208 e.remove(); 11209 });else for (let e = c; e <= p; e += 1) if (e < y || e > E) { 11210 const t = C(e); 11211 s.slides.filter(e => e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`)).forEach(e => { 11212 e.remove(); 11213 }); 11214 } 11215 const P = r ? -u.length : 0, 11216 L = r ? 2 * u.length : u.length; 11217 for (let t = P; t < L; t += 1) if (t >= y && t <= E) { 11218 const s = C(t); 11219 void 0 === p || e ? M.push(s) : (t > p && M.push(s), t < c && T.push(s)); 11220 } 11221 if (M.forEach(e => { 11222 s.slidesEl.append(d(u[e], e)); 11223 }), r) for (let e = T.length - 1; e >= 0; e -= 1) { 11224 const t = T[e]; 11225 s.slidesEl.prepend(d(u[t], t)); 11226 } else T.sort((e, t) => t - e), T.forEach(e => { 11227 s.slidesEl.prepend(d(u[e], e)); 11228 }); 11229 h(s.slidesEl, ".swiper-slide, swiper-slide").forEach(e => { 11230 e.style[v] = x - Math.abs(s.cssOverflowAdjustment()) + "px"; 11231 }), S(); 11232 } 11233 r("beforeInit", () => { 11234 if (!s.params.virtual.enabled) return; 11235 let e; 11236 if (void 0 === s.passedParams.virtual.slides) { 11237 const t = [...s.slidesEl.children].filter(e => e.matches(`.${s.params.slideClass}, swiper-slide`)); 11238 t && t.length && (s.virtual.slides = [...t], e = !0, t.forEach((e, t) => { 11239 e.setAttribute("data-swiper-slide-index", t), s.virtual.cache[t] = e, e.remove(); 11240 })); 11241 } 11242 e || (s.virtual.slides = s.params.virtual.slides), s.classNames.push(`${s.params.containerModifierClass}virtual`), s.params.watchSlidesProgress = !0, s.originalParams.watchSlidesProgress = !0, c(); 11243 }), r("setTranslate", () => { 11244 s.params.virtual.enabled && (s.params.cssMode && !s._immediateVirtual ? (clearTimeout(t), t = setTimeout(() => { 11245 c(); 11246 }, 100)) : c()); 11247 }), r("init update resize", () => { 11248 s.params.virtual.enabled && s.params.cssMode && p(s.wrapperEl, "--swiper-virtual-size", `${s.virtualSize}px`); 11249 }), Object.assign(s.virtual, { 11250 appendSlide: function (e) { 11251 if ("object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.push(e[t]);else s.virtual.slides.push(e); 11252 c(!0); 11253 }, 11254 prependSlide: function (e) { 11255 const t = s.activeIndex; 11256 let a = t + 1, 11257 i = 1; 11258 if (Array.isArray(e)) { 11259 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.unshift(e[t]); 11260 a = t + e.length, i = e.length; 11261 } else s.virtual.slides.unshift(e); 11262 if (s.params.virtual.cache) { 11263 const e = s.virtual.cache, 11264 t = {}; 11265 Object.keys(e).forEach(s => { 11266 const a = e[s], 11267 r = a.getAttribute("data-swiper-slide-index"); 11268 r && a.setAttribute("data-swiper-slide-index", parseInt(r, 10) + i), t[parseInt(s, 10) + i] = a; 11269 }), s.virtual.cache = t; 11270 } 11271 c(!0), s.slideTo(a, 0); 11272 }, 11273 removeSlide: function (e) { 11274 if (null == e) return; 11275 let t = s.activeIndex; 11276 if (Array.isArray(e)) for (let a = e.length - 1; a >= 0; a -= 1) s.params.virtual.cache && (delete s.virtual.cache[e[a]], Object.keys(s.virtual.cache).forEach(t => { 11277 t > e && (s.virtual.cache[t - 1] = s.virtual.cache[t], s.virtual.cache[t - 1].setAttribute("data-swiper-slide-index", t - 1), delete s.virtual.cache[t]); 11278 })), s.virtual.slides.splice(e[a], 1), e[a] < t && (t -= 1), t = Math.max(t, 0);else s.params.virtual.cache && (delete s.virtual.cache[e], Object.keys(s.virtual.cache).forEach(t => { 11279 t > e && (s.virtual.cache[t - 1] = s.virtual.cache[t], s.virtual.cache[t - 1].setAttribute("data-swiper-slide-index", t - 1), delete s.virtual.cache[t]); 11280 })), s.virtual.slides.splice(e, 1), e < t && (t -= 1), t = Math.max(t, 0); 11281 c(!0), s.slideTo(t, 0); 11282 }, 11283 removeAllSlides: function () { 11284 s.virtual.slides = [], s.params.virtual.cache && (s.virtual.cache = {}), c(!0), s.slideTo(0, 0); 11285 }, 11286 update: c 11287 }); 11288 }, function (e) { 11289 let { 11290 swiper: t, 11291 extendParams: s, 11292 on: i, 11293 emit: n 11294 } = e; 11295 const l = a(), 11296 o = r(); 11297 function d(e) { 11298 if (!t.enabled) return; 11299 const { 11300 rtlTranslate: s 11301 } = t; 11302 let a = e; 11303 a.originalEvent && (a = a.originalEvent); 11304 const i = a.keyCode || a.charCode, 11305 r = t.params.keyboard.pageUpDown, 11306 d = r && 33 === i, 11307 c = r && 34 === i, 11308 p = 37 === i, 11309 u = 39 === i, 11310 m = 38 === i, 11311 h = 40 === i; 11312 if (!t.allowSlideNext && (t.isHorizontal() && u || t.isVertical() && h || c)) return !1; 11313 if (!t.allowSlidePrev && (t.isHorizontal() && p || t.isVertical() && m || d)) return !1; 11314 if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || l.activeElement && l.activeElement.nodeName && ("input" === l.activeElement.nodeName.toLowerCase() || "textarea" === l.activeElement.nodeName.toLowerCase()))) { 11315 if (t.params.keyboard.onlyInViewport && (d || c || p || u || m || h)) { 11316 let e = !1; 11317 if (b(t.el, `.${t.params.slideClass}, swiper-slide`).length > 0 && 0 === b(t.el, `.${t.params.slideActiveClass}`).length) return; 11318 const a = t.el, 11319 i = a.clientWidth,
vendor: 9,103 bytes, lines 11320-11529
11320 r = a.clientHeight, 11321 n = o.innerWidth, 11322 l = o.innerHeight, 11323 d = g(a); 11324 s && (d.left -= a.scrollLeft); 11325 const c = [[d.left, d.top], [d.left + i, d.top], [d.left, d.top + r], [d.left + i, d.top + r]]; 11326 for (let t = 0; t < c.length; t += 1) { 11327 const s = c[t]; 11328 if (s[0] >= 0 && s[0] <= n && s[1] >= 0 && s[1] <= l) { 11329 if (0 === s[0] && 0 === s[1]) continue; 11330 e = !0; 11331 } 11332 } 11333 if (!e) return; 11334 } 11335 t.isHorizontal() ? ((d || c || p || u) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), ((c || u) && !s || (d || p) && s) && t.slideNext(), ((d || p) && !s || (c || u) && s) && t.slidePrev()) : ((d || c || m || h) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (c || h) && t.slideNext(), (d || m) && t.slidePrev()), n("keyPress", i); 11336 } 11337 } 11338 function c() { 11339 t.keyboard.enabled || (l.addEventListener("keydown", d), t.keyboard.enabled = !0); 11340 } 11341 function p() { 11342 t.keyboard.enabled && (l.removeEventListener("keydown", d), t.keyboard.enabled = !1); 11343 } 11344 t.keyboard = { 11345 enabled: !1 11346 }, s({ 11347 keyboard: { 11348 enabled: !1, 11349 onlyInViewport: !0, 11350 pageUpDown: !0 11351 } 11352 }), i("init", () => { 11353 t.params.keyboard.enabled && c(); 11354 }), i("destroy", () => { 11355 t.keyboard.enabled && p(); 11356 }), Object.assign(t.keyboard, { 11357 enable: c, 11358 disable: p 11359 }); 11360 }, function (e) { 11361 let { 11362 swiper: t, 11363 extendParams: s, 11364 on: a, 11365 emit: i 11366 } = e; 11367 const o = r(); 11368 let d; 11369 s({ 11370 mousewheel: { 11371 enabled: !1, 11372 releaseOnEdges: !1, 11373 invert: !1, 11374 forceToAxis: !1, 11375 sensitivity: 1, 11376 eventsTarget: "container", 11377 thresholdDelta: null, 11378 thresholdTime: null, 11379 noMousewheelClass: "swiper-no-mousewheel" 11380 } 11381 }), t.mousewheel = { 11382 enabled: !1 11383 }; 11384 let c, 11385 p = l(); 11386 const u = []; 11387 function m() { 11388 t.enabled && (t.mouseEntered = !0); 11389 } 11390 function h() { 11391 t.enabled && (t.mouseEntered = !1); 11392 } 11393 function f(e) { 11394 return !(t.params.mousewheel.thresholdDelta && e.delta < t.params.mousewheel.thresholdDelta) && !(t.params.mousewheel.thresholdTime && l() - p < t.params.mousewheel.thresholdTime) && (e.delta >= 6 && l() - p < 60 || (e.direction < 0 ? t.isEnd && !t.params.loop || t.animating || (t.slideNext(), i("scroll", e.raw)) : t.isBeginning && !t.params.loop || t.animating || (t.slidePrev(), i("scroll", e.raw)), p = new o.Date().getTime(), !1)); 11395 } 11396 function g(e) { 11397 let s = e, 11398 a = !0; 11399 if (!t.enabled) return; 11400 if (e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`)) return; 11401 const r = t.params.mousewheel; 11402 t.params.cssMode && s.preventDefault(); 11403 let o = t.el; 11404 "container" !== t.params.mousewheel.eventsTarget && (o = document.querySelector(t.params.mousewheel.eventsTarget)); 11405 const p = o && o.contains(s.target); 11406 if (!t.mouseEntered && !p && !r.releaseOnEdges) return !0; 11407 s.originalEvent && (s = s.originalEvent); 11408 let m = 0; 11409 const h = t.rtlTranslate ? -1 : 1, 11410 g = function (e) { 11411 let t = 0, 11412 s = 0, 11413 a = 0, 11414 i = 0; 11415 return "detail" in e && (s = e.detail), "wheelDelta" in e && (s = -e.wheelDelta / 120), "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = s, s = 0), a = 10 * t, i = 10 * s, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (a = e.deltaX), e.shiftKey && !a && (a = i, i = 0), (a || i) && e.deltaMode && (1 === e.deltaMode ? (a *= 40, i *= 40) : (a *= 800, i *= 800)), a && !t && (t = a < 1 ? -1 : 1), i && !s && (s = i < 1 ? -1 : 1), { 11416 spinX: t, 11417 spinY: s, 11418 pixelX: a, 11419 pixelY: i 11420 }; 11421 }(s); 11422 if (r.forceToAxis) { 11423 if (t.isHorizontal()) { 11424 if (!(Math.abs(g.pixelX) > Math.abs(g.pixelY))) return !0; 11425 m = -g.pixelX * h; 11426 } else { 11427 if (!(Math.abs(g.pixelY) > Math.abs(g.pixelX))) return !0; 11428 m = -g.pixelY; 11429 } 11430 } else m = Math.abs(g.pixelX) > Math.abs(g.pixelY) ? -g.pixelX * h : -g.pixelY; 11431 if (0 === m) return !0; 11432 r.invert && (m = -m); 11433 let v = t.getTranslate() + m * r.sensitivity; 11434 if (v >= t.minTranslate() && (v = t.minTranslate()), v <= t.maxTranslate() && (v = t.maxTranslate()), a = !!t.params.loop || !(v === t.minTranslate() || v === t.maxTranslate()), a && t.params.nested && s.stopPropagation(), t.params.freeMode && t.params.freeMode.enabled) { 11435 const e = { 11436 time: l(), 11437 delta: Math.abs(m), 11438 direction: Math.sign(m) 11439 }, 11440 a = c && e.time < c.time + 500 && e.delta <= c.delta && e.direction === c.direction; 11441 if (!a) { 11442 c = void 0; 11443 let l = t.getTranslate() + m * r.sensitivity; 11444 const o = t.isBeginning, 11445 p = t.isEnd; 11446 if (l >= t.minTranslate() && (l = t.minTranslate()), l <= t.maxTranslate() && (l = t.maxTranslate()), t.setTransition(0), t.setTranslate(l), t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses(), (!o && t.isBeginning || !p && t.isEnd) && t.updateSlidesClasses(), t.params.loop && t.loopFix({ 11447 direction: e.direction < 0 ? "next" : "prev", 11448 byMousewheel: !0 11449 }), t.params.freeMode.sticky) { 11450 clearTimeout(d), d = void 0, u.length >= 15 && u.shift(); 11451 const s = u.length ? u[u.length - 1] : void 0, 11452 a = u[0]; 11453 if (u.push(e), s && (e.delta > s.delta || e.direction !== s.direction)) u.splice(0);else if (u.length >= 15 && e.time - a.time < 500 && a.delta - e.delta >= 1 && e.delta <= 6) { 11454 const s = m > 0 ? .8 : .2; 11455 c = e, u.splice(0), d = n(() => { 11456 t.slideToClosest(t.params.speed, !0, void 0, s); 11457 }, 0); 11458 } 11459 d || (d = n(() => { 11460 c = e, u.splice(0), t.slideToClosest(t.params.speed, !0, void 0, .5); 11461 }, 500)); 11462 } 11463 if (a || i("scroll", s), t.params.autoplay && t.params.autoplayDisableOnInteraction && t.autoplay.stop(), r.releaseOnEdges && (l === t.minTranslate() || l === t.maxTranslate())) return !0; 11464 } 11465 } else { 11466 const s = { 11467 time: l(), 11468 delta: Math.abs(m), 11469 direction: Math.sign(m), 11470 raw: e 11471 }; 11472 u.length >= 2 && u.shift(); 11473 const a = u.length ? u[u.length - 1] : void 0; 11474 if (u.push(s), a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && f(s) : f(s), function (e) { 11475 const s = t.params.mousewheel; 11476 if (e.direction < 0) { 11477 if (t.isEnd && !t.params.loop && s.releaseOnEdges) return !0; 11478 } else if (t.isBeginning && !t.params.loop && s.releaseOnEdges) return !0; 11479 return !1; 11480 }(s)) return !0; 11481 } 11482 return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1; 11483 } 11484 function v(e) { 11485 let s = t.el; 11486 "container" !== t.params.mousewheel.eventsTarget && (s = document.querySelector(t.params.mousewheel.eventsTarget)), s[e]("mouseenter", m), s[e]("mouseleave", h), s[e]("wheel", g); 11487 } 11488 function w() { 11489 return t.params.cssMode ? (t.wrapperEl.removeEventListener("wheel", g), !0) : !t.mousewheel.enabled && (v("addEventListener"), t.mousewheel.enabled = !0, !0); 11490 } 11491 function b() { 11492 return t.params.cssMode ? (t.wrapperEl.addEventListener(event, g), !0) : !!t.mousewheel.enabled && (v("removeEventListener"), t.mousewheel.enabled = !1, !0); 11493 } 11494 a("init", () => { 11495 !t.params.mousewheel.enabled && t.params.cssMode && b(), t.params.mousewheel.enabled && w(); 11496 }), a("destroy", () => { 11497 t.params.cssMode && w(), t.mousewheel.enabled && b(); 11498 }), Object.assign(t.mousewheel, { 11499 enable: w, 11500 disable: b 11501 }); 11502 }, function (e) { 11503 let { 11504 swiper: t, 11505 extendParams: s, 11506 on: a, 11507 emit: i 11508 } = e; 11509 s({ 11510 navigation: { 11511 nextEl: null, 11512 prevEl: null, 11513 hideOnClick: !1, 11514 disabledClass: "swiper-button-disabled", 11515 hiddenClass: "swiper-button-hidden", 11516 lockClass: "swiper-button-lock", 11517 navigationDisabledClass: "swiper-navigation-disabled" 11518 } 11519 }), t.navigation = { 11520 nextEl: null, 11521 prevEl: null 11522 }; 11523 const r = e => (Array.isArray(e) ? e : [e]).filter(e => !!e); 11524 function n(e) { 11525 let s; 11526 return e && "string" == typeof e && t.isElement && (s = t.el.querySelector(e), s) ? s : (e && ("string" == typeof e && (s = [...document.querySelectorAll(e)]), t.params.uniqueNavElements && "string" == typeof e && s.length > 1 && 1 === t.el.querySelectorAll(e).length && (s = t.el.querySelector(e))), e && !s ? e : s); 11527 } 11528 function l(e, s) { 11529 const a = t.params.navigation;
11530 (e = r(e)).forEach(e => { 11531 e && (e.classList[s ? "add" : "remove"](...a.disabledClass.split(" ")), "BUTTON" === e.tagName && (e.disabled = s), t.params.watchOverflow && t.enabled && e.classList[t.isLocked ? "add" : "remove"](a.lockClass)); 11532 }); 11533 } 11534 function o() { 11535 const { 11536 nextEl: e, 11537 prevEl: s 11538 } = t.navigation; 11539 if (t.params.loop) return l(s, !1), void l(e, !1); 11540 l(s, t.isBeginning && !t.params.rewind), l(e, t.isEnd && !t.params.rewind); 11541 } 11542 function d(e) { 11543 e.preventDefault(), (!t.isBeginning || t.params.loop || t.params.rewind) && (t.slidePrev(), i("navigationPrev")); 11544 } 11545 function c(e) { 11546 e.preventDefault(), (!t.isEnd || t.params.loop || t.params.rewind) && (t.slideNext(), i("navigationNext")); 11547 } 11548 function p() { 11549 const e = t.params.navigation; 11550 if (t.params.navigation = J(t, t.originalParams.navigation, t.params.navigation, { 11551 nextEl: "swiper-button-next", 11552 prevEl: "swiper-button-prev" 11553 }), !e.nextEl && !e.prevEl) return; 11554 let s = n(e.nextEl), 11555 a = n(e.prevEl); 11556 Object.assign(t.navigation, { 11557 nextEl: s, 11558 prevEl: a 11559 }), s = r(s), a = r(a); 11560 const i = (s, a) => { 11561 s && s.addEventListener("click", "next" === a ? c : d), !t.enabled && s && s.classList.add(...e.lockClass.split(" ")); 11562 }; 11563 s.forEach(e => i(e, "next")), a.forEach(e => i(e, "prev")); 11564 } 11565 function u() { 11566 let { 11567 nextEl: e, 11568 prevEl: s 11569 } = t.navigation; 11570 e = r(e), s = r(s); 11571 const a = (e, s) => { 11572 e.removeEventListener("click", "next" === s ? c : d), e.classList.remove(...t.params.navigation.disabledClass.split(" ")); 11573 }; 11574 e.forEach(e => a(e, "next")), s.forEach(e => a(e, "prev")); 11575 } 11576 a("init", () => { 11577 !1 === t.params.navigation.enabled ? m() : (p(), o()); 11578 }), a("toEdge fromEdge lock unlock", () => { 11579 o(); 11580 }), a("destroy", () => { 11581 u(); 11582 }), a("enable disable", () => { 11583 let { 11584 nextEl: e, 11585 prevEl: s 11586 } = t.navigation; 11587 e = r(e), s = r(s), t.enabled ? o() : [...e, ...s].filter(e => !!e).forEach(e => e.classList.add(t.params.navigation.lockClass)); 11588 }), a("click", (e, s) => { 11589 let { 11590 nextEl: a, 11591 prevEl: n 11592 } = t.navigation; 11593 a = r(a), n = r(n); 11594 const l = s.target; 11595 if (t.params.navigation.hideOnClick && !n.includes(l) && !a.includes(l)) { 11596 if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === l || t.pagination.el.contains(l))) return; 11597 let e; 11598 a.length ? e = a[0].classList.contains(t.params.navigation.hiddenClass) : n.length && (e = n[0].classList.contains(t.params.navigation.hiddenClass)), i(!0 === e ? "navigationShow" : "navigationHide"), [...a, ...n].filter(e => !!e).forEach(e => e.classList.toggle(t.params.navigation.hiddenClass)); 11599 } 11600 }); 11601 const m = () => { 11602 t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")), u(); 11603 }; 11604 Object.assign(t.navigation, { 11605 enable: () => { 11606 t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")), p(), o(); 11607 }, 11608 disable: m, 11609 update: o, 11610 init: p, 11611 destroy: u 11612 }); 11613 }, function (e) { 11614 let { 11615 swiper: t, 11616 extendParams: s, 11617 on: a, 11618 emit: i 11619 } = e; 11620 const r = "swiper-pagination"; 11621 let n; 11622 s({ 11623 pagination: { 11624 el: null, 11625 bulletElement: "span", 11626 clickable: !1, 11627 hideOnClick: !1, 11628 renderBullet: null, 11629 renderProgressbar: null, 11630 renderFraction: null, 11631 renderCustom: null, 11632 progressbarOpposite: !1, 11633 type: "bullets", 11634 dynamicBullets: !1, 11635 dynamicMainBullets: 1, 11636 formatFractionCurrent: e => e, 11637 formatFractionTotal: e => e, 11638 bulletClass: `${r}-bullet`, 11639 bulletActiveClass: `${r}-bullet-active`, 11640 modifierClass: `${r}-`, 11641 currentClass: `${r}-current`, 11642 totalClass: `${r}-total`, 11643 hiddenClass: `${r}-hidden`, 11644 progressbarFillClass: `${r}-progressbar-fill`, 11645 progressbarOppositeClass: `${r}-progressbar-opposite`, 11646 clickableClass: `${r}-clickable`, 11647 lockClass: `${r}-lock`, 11648 horizontalClass: `${r}-horizontal`, 11649 verticalClass: `${r}-vertical`, 11650 paginationDisabledClass: `${r}-disabled` 11651 } 11652 }), t.pagination = { 11653 el: null, 11654 bullets: [] 11655 }; 11656 let l = 0; 11657 const o = e => (Array.isArray(e) ? e : [e]).filter(e => !!e); 11658 function d() { 11659 return !t.params.pagination.el || !t.pagination.el || Array.isArray(t.pagination.el) && 0 === t.pagination.el.length; 11660 } 11661 function c(e, s) { 11662 const { 11663 bulletActiveClass: a 11664 } = t.params.pagination; 11665 e && (e = e[("prev" === s ? "previous" : "next") + "ElementSibling"]) && (e.classList.add(`${a}-${s}`), (e = e[("prev" === s ? "previous" : "next") + "ElementSibling"]) && e.classList.add(`${a}-${s}-${s}`)); 11666 } 11667 function p(e) { 11668 const s = e.target.closest(ee(t.params.pagination.bulletClass)); 11669 if (!s) return; 11670 e.preventDefault(); 11671 const a = w(s) * t.params.slidesPerGroup; 11672 if (t.params.loop) { 11673 if (t.realIndex === a) return; 11674 const e = t.realIndex, 11675 s = t.getSlideIndexByData(a), 11676 i = t.getSlideIndexByData(t.realIndex), 11677 r = a => { 11678 const i = t.activeIndex; 11679 t.loopFix({ 11680 direction: a, 11681 activeSlideIndex: s, 11682 slideTo: !1 11683 }); 11684 i === t.activeIndex && t.slideToLoop(e, 0, !1, !0); 11685 }; 11686 if (s > t.slides.length - t.loopedSlides) r(s > i ? "next" : "prev");else if (t.params.centeredSlides) { 11687 const e = "auto" === t.params.slidesPerView ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(t.params.slidesPerView, 10)); 11688 s < Math.floor(e / 2) && r("prev"); 11689 } 11690 t.slideToLoop(a); 11691 } else t.slideTo(a); 11692 } 11693 function u() { 11694 const e = t.rtl, 11695 s = t.params.pagination; 11696 if (d()) return; 11697 let a, 11698 r, 11699 p = t.pagination.el; 11700 p = o(p); 11701 const u = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 11702 m = t.params.loop ? Math.ceil(u / t.params.slidesPerGroup) : t.snapGrid.length; 11703 if (t.params.loop ? (r = t.previousRealIndex || 0, a = t.params.slidesPerGroup > 1 ? Math.floor(t.realIndex / t.params.slidesPerGroup) : t.realIndex) : void 0 !== t.snapIndex ? (a = t.snapIndex, r = t.previousSnapIndex) : (r = t.previousIndex || 0, a = t.activeIndex || 0), "bullets" === s.type && t.pagination.bullets && t.pagination.bullets.length > 0) { 11704 const i = t.pagination.bullets; 11705 let o, d, u; 11706 if (s.dynamicBullets && (n = E(i[0], t.isHorizontal() ? "width" : "height", !0), p.forEach(e => { 11707 e.style[t.isHorizontal() ? "width" : "height"] = n * (s.dynamicMainBullets + 4) + "px"; 11708 }), s.dynamicMainBullets > 1 && void 0 !== r && (l += a - (r || 0), l > s.dynamicMainBullets - 1 ? l = s.dynamicMainBullets - 1 : l < 0 && (l = 0)), o = Math.max(a - l, 0), d = o + (Math.min(i.length, s.dynamicMainBullets) - 1), u = (d + o) / 2), i.forEac
11708h(e => { 11709 const t = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map(e => `${s.bulletActiveClass}${e}`)].map(e => "string" == typeof e && e.includes(" ") ? e.split(" ") : e).flat(); 11710 e.classList.remove(...t); 11711 }), p.length > 1) i.forEach(e => { 11712 const i = w(e); 11713 i === a ? e.classList.add(...s.bulletActiveClass.split(" ")) : t.isElement && e.setAttribute("part", "bullet"), s.dynamicBullets && (i >= o && i <= d && e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")), i === o && c(e, "prev"), i === d && c(e, "next")); 11714 });else { 11715 const e = i[a]; 11716 if (e && e.classList.add(...s.bulletActiveClass.split(" ")), t.isElement && i.forEach((e, t) => { 11717 e.setAttribute("part", t === a ? "bullet-active" : "bullet"); 11718 }), s.dynamicBullets) { 11719 const e = i[o], 11720 t = i[d]; 11721 for (let e = o; e <= d; e += 1) i[e] && i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" ")); 11722 c(e, "prev"), c(t, "next"); 11723 } 11724 } 11725 if (s.dynamicBullets) { 11726 const a = Math.min(i.length, s.dynamicMainBullets + 4), 11727 r = (n * a - n) / 2 - u * n, 11728 l = e ? "right" : "left"; 11729 i.forEach(e => { 11730 e.style[t.isHorizontal() ? l : "top"] = `${r}px`; 11731 }); 11732 } 11733 } 11734 p.forEach((e, r) => { 11735 if ("fraction" === s.type && (e.querySelectorAll(ee(s.currentClass)).forEach(e => { 11736 e.textContent = s.formatFractionCurrent(a + 1); 11737 }), e.querySelectorAll(ee(s.totalClass)).forEach(e => { 11738 e.textContent = s.formatFractionTotal(m); 11739 })), "progressbar" === s.type) { 11740 let i; 11741 i = s.progressbarOpposite ? t.isHorizontal() ? "vertical" : "horizontal" : t.isHorizontal() ? "horizontal" : "vertical"; 11742 const r = (a + 1) / m; 11743 let n = 1, 11744 l = 1; 11745 "horizontal" === i ? n = r : l = r, e.querySelectorAll(ee(s.progressbarFillClass)).forEach(e => { 11746 e.style.transform = `translate3d(0,0,0) scaleX(${n}) scaleY(${l})`, e.style.transitionDuration = `${t.params.speed}ms`; 11747 }); 11748 } 11749 "custom" === s.type && s.renderCustom ? (e.innerHTML = s.renderCustom(t, a + 1, m), 0 === r && i("paginationRender", e)) : (0 === r && i("paginationRender", e), i("paginationUpdate", e)), t.params.watchOverflow && t.enabled && e.classList[t.isLocked ? "add" : "remove"](s.lockClass); 11750 }); 11751 } 11752 function m() { 11753 const e = t.params.pagination; 11754 if (d()) return; 11755 const s = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length; 11756 let a = t.pagination.el; 11757 a = o(a); 11758 let r = ""; 11759 if ("bullets" === e.type) { 11760 let a = t.params.loop ? Math.ceil(s / t.params.slidesPerGroup) : t.snapGrid.length; 11761 t.params.freeMode && t.params.freeMode.enabled && a > s && (a = s); 11762 for (let s = 0; s < a; s += 1) e.renderBullet ? r += e.renderBullet.call(t, s, e.bulletClass) : r += `<${e.bulletElement} ${t.isElement ? 'part="bullet"' : ""} class="${e.bulletClass}"></${e.bulletElement}>`; 11763 } 11764 "fraction" === e.type && (r = e.renderFraction ? e.renderFraction.call(t, e.currentClass, e.totalClass) : `<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`), "progressbar" === e.type && (r = e.renderProgressbar ? e.renderProgressbar.call(t, e.progressbarFillClass) : `<span class="${e.progressbarFillClass}"></span>`), t.pagination.bullets = [], a.forEach(s => { 11765 "custom" !== e.type && (s.innerHTML = r || ""), "bullets" === e.type && t.pagination.bullets.push(...s.querySelectorAll(ee(e.bulletClass))); 11766 }), "custom" !== e.type && i("paginationRender", a[0]); 11767 } 11768 function h() { 11769 t.params.pagination = J(t, t.originalParams.pagination, t.params.pagination, { 11770 el: "swiper-pagination" 11771 }); 11772 const e = t.params.pagination; 11773 if (!e.el) return; 11774 let s; 11775 "string" == typeof e.el && t.isElement && (s = t.el.querySelector(e.el)), s || "string" != typeof e.el || (s = [...document.querySelectorAll(e.el)]), s || (s = e.el), s && 0 !== s.length && (t.params.uniqueNavElements && "string" == typeof e.el && Array.isArray(s) && s.length > 1 && (s = [...t.el.querySelectorAll(e.el)], s.length > 1 && (s = s.filter(e => b(e, ".swiper")[0] === t.el)[0])), Array.isArray(s) && 1 === s.length && (s = s[0]), Object.assign(t.pagination, { 11776 el: s 11777 }
11777), s = o(s), s.forEach(s => { 11778 "bullets" === e.type && e.clickable && s.classList.add(...(e.clickableClass || "").split(" ")), s.classList.add(e.modifierClass + e.type), s.classList.add(t.isHorizontal() ? e.horizontalClass : e.verticalClass), "bullets" === e.type && e.dynamicBullets && (s.classList.add(`${e.modifierClass}${e.type}-dynamic`), l = 0, e.dynamicMainBullets < 1 && (e.dynamicMainBullets = 1)), "progressbar" === e.type && e.progressbarOpposite && s.classList.add(e.progressbarOppositeClass), e.clickable && s.addEventListener("click", p), t.enabled || s.classList.add(e.lockClass); 11779 })); 11780 } 11781 function f() { 11782 const e = t.params.pagination; 11783 if (d()) return; 11784 let s = t.pagination.el; 11785 s && (s = o(s), s.forEach(s => { 11786 s.classList.remove(e.hiddenClass), s.classList.remove(e.modifierClass + e.type), s.classList.remove(t.isHorizontal() ? e.horizontalClass : e.verticalClass), e.clickable && (s.classList.remove(...(e.clickableClass || "").split(" ")), s.removeEventListener("click", p)); 11787 })), t.pagination.bullets && t.pagination.bullets.forEach(t => t.classList.remove(...e.bulletActiveClass.split(" "))); 11788 } 11789 a("changeDirection", () => { 11790 if (!t.pagination || !t.pagination.el) return; 11791 const e = t.params.pagination; 11792 let { 11793 el: s 11794 } = t.pagination; 11795 s = o(s), s.forEach(s => { 11796 s.classList.remove(e.horizontalClass, e.verticalClass), s.classList.add(t.isHorizontal() ? e.horizontalClass : e.verticalClass); 11797 }); 11798 }), a("init", () => { 11799 !1 === t.params.pagination.enabled ? g() : (h(), m(), u()); 11800 }), a("activeIndexChange", () => { 11801 void 0 === t.snapIndex && u(); 11802 }), a("snapIndexChange", () => { 11803 u(); 11804 }), a("snapGridLengthChange", () => { 11805 m(), u(); 11806 }), a("destroy", () => { 11807 f(); 11808 }), a("enable disable", () => { 11809 let { 11810 el: e 11811 } = t.pagination; 11812 e && (e = o(e), e.forEach(e => e.classList[t.enabled ? "remove" : "add"](t.params.pagination.lockClass))); 11813 }), a("lock unlock", () => { 11814 u(); 11815 }), a("click", (e, s) => { 11816 const a = s.target, 11817 r = o(t.pagination.el); 11818 if (t.params.pagination.el && t.params.pagination.hideOnClick && r && r.length > 0 && !a.classList.contains(t.params.pagination.bulletClass)) { 11819 if (t.navigation && (t.navigation.nextEl && a === t.navigation.nextEl || t.navigation.prevEl && a === t.navigation.prevEl)) return; 11820 const e = r[0].classList.contains(t.params.pagination.hiddenClass); 11821 i(!0 === e ? "paginationShow" : "paginationHide"), r.forEach(e => e.classList.toggle(t.params.pagination.hiddenClass)); 11822 } 11823 }); 11824 const g = () => { 11825 t.el.classList.add(t.params.pagination.paginationDisabledClass); 11826 let { 11827 el: e 11828 } = t.pagination; 11829 e && (e = o(e), e.forEach(e => e.classList.add(t.params.pagination.paginationDisabledClass))), f(); 11830 }; 11831 Object.assign(t.pagination, { 11832 enable: () => { 11833 t.el.classList.remove(t.params.pagination.paginationDisabledClass); 11834 let { 11835 el: e 11836 } = t.pagination; 11837 e && (e = o(e), e.forEach(e => e.classList.remove(t.params.pagination.paginationDisabledClass))), h(), m(), u(); 11838 }, 11839 disable: g, 11840 render: m, 11841 update: u, 11842 init: h, 11843 destroy: f 11844 }); 11845 }, function (e) { 11846 let { 11847 swiper: t, 11848 extendParams: s, 11849 on: i, 11850 emit: r 11851 } = e; 11852 const l = a(); 11853 let o, 11854 d, 11855 c, 11856 p, 11857 u = !1, 11858 m = null, 11859 h = null; 11860 function v() { 11861 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 11862 const { 11863 scrollbar: e, 11864 rtlTranslate: s 11865 } = t, 11866 { 11867 dragEl: a, 11868 el: i 11869 } = e, 11870 r = t.params.scrollbar, 11871 n = t.params.loop ? t.progressLoop : t.progress; 11872 let l = d, 11873 o = (c - d) * n; 11874 s ? (o = -o, o > 0 ? (l = d - o, o = 0) : -o + d > c && (l = c + o)) : o < 0 ? (l = d + o, o = 0) : o + d > c && (l = c - o), t.isHorizontal() ? (a.style.transform = `translate3d(${o}px, 0, 0)`, a.style.width = `${l}px`) : (a.style.transform = `translate3d(0px, ${o}
11874px, 0)`, a.style.height = `${l}px`), r.hide && (clearTimeout(m), i.style.opacity = 1, m = setTimeout(() => { 11875 i.style.opacity = 0, i.style.transitionDuration = "400ms"; 11876 }, 1e3)); 11877 } 11878 function w() { 11879 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 11880 const { 11881 scrollbar: e 11882 } = t, 11883 { 11884 dragEl: s, 11885 el: a 11886 } = e; 11887 s.style.width = "", s.style.height = "", c = t.isHorizontal() ? a.offsetWidth : a.offsetHeight, p = t.size / (t.virtualSize + t.params.slidesOffsetBefore - (t.params.centeredSlides ? t.snapGrid[0] : 0)), d = "auto" === t.params.scrollbar.dragSize ? c * p : parseInt(t.params.scrollbar.dragSize, 10), t.isHorizontal() ? s.style.width = `${d}px` : s.style.height = `${d}px`, a.style.display = p >= 1 ? "none" : "", t.params.scrollbar.hide && (a.style.opacity = 0), t.params.watchOverflow && t.enabled && e.el.classList[t.isLocked ? "add" : "remove"](t.params.scrollbar.lockClass); 11888 } 11889 function b(e) { 11890 return t.isHorizontal() ? e.clientX : e.clientY; 11891 } 11892 function y(e) { 11893 const { 11894 scrollbar: s, 11895 rtlTranslate: a 11896 } = t, 11897 { 11898 el: i 11899 } = s; 11900 let r; 11901 r = (b(e) - g(i)[t.isHorizontal() ? "left" : "top"] - (null !== o ? o : d / 2)) / (c - d), r = Math.max(Math.min(r, 1), 0), a && (r = 1 - r); 11902 const n = t.minTranslate() + (t.maxTranslate() - t.minTranslate()) * r; 11903 t.updateProgress(n), t.setTranslate(n), t.updateActiveIndex(), t.updateSlidesClasses(); 11904 } 11905 function E(e) { 11906 const s = t.params.scrollbar, 11907 { 11908 scrollbar: a, 11909 wrapperEl: i 11910 } = t, 11911 { 11912 el: n, 11913 dragEl: l 11914 } = a; 11915 u = !0, o = e.target === l ? b(e) - e.target.getBoundingClientRect()[t.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(), i.style.transitionDuration = "100ms", l.style.transitionDuration = "100ms", y(e), clearTimeout(h), n.style.transitionDuration = "0ms", s.hide && (n.style.opacity = 1), t.params.cssMode && (t.wrapperEl.style["scroll-snap-type"] = "none"), r("scrollbarDragStart", e); 11916 } 11917 function x(e) { 11918 const { 11919 scrollbar: s, 11920 wrapperEl: a 11921 } = t, 11922 { 11923 el: i, 11924 dragEl: n 11925 } = s; 11926 u && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, y(e), a.style.transitionDuration = "0ms", i.style.transitionDuration = "0ms", n.style.transitionDuration = "0ms", r("scrollbarDragMove", e)); 11927 } 11928 function S(e) { 11929 const s = t.params.scrollbar, 11930 { 11931 scrollbar: a, 11932 wrapperEl: i 11933 } = t, 11934 { 11935 el: l 11936 } = a; 11937 u && (u = !1, t.params.cssMode && (t.wrapperEl.style["scroll-snap-type"] = "", i.style.transitionDuration = ""), s.hide && (clearTimeout(h), h = n(() => { 11938 l.style.opacity = 0, l.style.transitionDuration = "400ms"; 11939 }, 1e3)), r("scrollbarDragEnd", e), s.snapOnRelease && t.slideToClosest()); 11940 } 11941 function T(e) { 11942 const { 11943 scrollbar: s, 11944 params: a 11945 } = t, 11946 i = s.el; 11947 if (!i) return; 11948 const r = i, 11949 n = !!a.passiveListeners && { 11950 passive: !1, 11951 capture: !1 11952 }, 11953 o = !!a.passiveListeners && { 11954 passive: !0, 11955 capture: !1 11956 }; 11957 if (!r) return; 11958 const d = "on" === e ? "addEventListener" : "removeEventListener"; 11959 r[d]("pointerdown", E, n), l[d]("pointermove", x, n), l[d]("pointerup", S, o); 11960 } 11961 function M() { 11962 const { 11963 scrollbar: e, 11964 el: s 11965 } = t; 11966 t.params.scrollbar = J(t, t.originalParams.scrollbar, t.params.scrollbar, { 11967 el: "swiper-scrollbar" 11968 }); 11969 const a = t.params.scrollbar; 11970 if (!a.el) return; 11971 let i, r; 11972 "string" == typeof a.el && t.isElement && (i = t.el.querySelector(a.el)), i || "string" != typeof a.el ? i || (i = a.el) : i = l.querySelectorAll(a.el), t.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.querySelectorAll(a.el).length && (i = s.querySelector(a.el)), i.length > 0 && (i = i[0]), i.classList.add(t.isHorizontal() ? a.horizontalClass : a.verticalClass), i && (r = i.querySelector(`.${t.params.scrollbar.dragClass}`), r || (r = f("div", t.params.scrollbar.dragClass), i.append(r))), Object.assign(e, { 11973 el: i, 11974 dragEl: r 11975 }), a.draggable && t.params.scrollbar.el && t.scrollbar.el && T("on"), i && i.classList[t.enabled ? "remove" : "add"](t.params.scrollbar.lockClass); 11976 } 11977 function C() { 11978 const e = t.params.scrollbar, 11979 s = t.scrollbar.el; 11980 s && s.classList.remove(t.isHorizontal() ? e.horizontalClass : e.verticalClass), t.params.scrollbar.el && t.scrollbar.el && T("off"); 11981 } 11982 s({ 11983 scrollbar: { 11984 el: null, 11985 dragSize: "auto", 11986 hide: !1, 11987 draggable: !1, 11988 snapOnRelease: !0, 11989 lockClass: "swiper-scrollbar-lock", 11990 dragClass: "swiper-scrollbar-drag", 11991 scrollbarDisabledClass: "swiper-scrollbar-disabled", 11992 horizontalClass: "swiper-scrollbar-horizontal", 11993 verticalClass: "swiper-scrollbar-vertical" 11994 } 11995 }), t.scrollbar = { 11996 el: null, 11997 dragEl: null 11998 }, i("init", () => { 11999 !1 === t.params.scrollbar.enabled ? P() : (M(), w(), v()); 12000 }), i("update resize observerUpdate lock unlock", () => { 12001 w(); 12002 }), i("setTranslate", () => { 12003 v(); 12004 }), i("setTransition", (e, s) => { 12005 !function (e) { 12006 t.params.scrollbar.el && t.scrollbar.el && (t.scrollbar.dragEl.style.transitionDuration = `${e}ms`); 12007 }(s); 12008 }), i("enable disable", () => { 12009 const { 12010 el: e 12011 } = t.scrollbar; 12012 e && e.classList[t.enabled ? "remove" : "add"](t.params.scrollbar.lockClass); 12013 }), i("destroy", () => { 12014 C(); 12015 }); 12016 const P = () => { 12017 t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.el && t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass), C(); 12018 };
12019 Object.assign(t.scrollbar, { 12020 enable: () => { 12021 t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.el && t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass), M(), w(), v(); 12022 }, 12023 disable: P, 12024 updateSize: w, 12025 setTranslate: v, 12026 init: M, 12027 destroy: C 12028 }); 12029 }, function (e) { 12030 let { 12031 swiper: t, 12032 extendParams: s, 12033 on: a 12034 } = e; 12035 s({ 12036 parallax: { 12037 enabled: !1 12038 } 12039 }); 12040 const i = "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]", 12041 r = (e, s) => { 12042 const { 12043 rtl: a 12044 } = t, 12045 i = a ? -1 : 1, 12046 r = e.getAttribute("data-swiper-parallax") || "0"; 12047 let n = e.getAttribute("data-swiper-parallax-x"), 12048 l = e.getAttribute("data-swiper-parallax-y"); 12049 const o = e.getAttribute("data-swiper-parallax-scale"), 12050 d = e.getAttribute("data-swiper-parallax-opacity"), 12051 c = e.getAttribute("data-swiper-parallax-rotate"); 12052 if (n || l ? (n = n || "0", l = l || "0") : t.isHorizontal() ? (n = r, l = "0") : (l = r, n = "0"), n = n.indexOf("%") >= 0 ? parseInt(n, 10) * s * i + "%" : n * s * i + "px", l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s + "%" : l * s + "px", null != d) { 12053 const t = d - (d - 1) * (1 - Math.abs(s)); 12054 e.style.opacity = t; 12055 } 12056 let p = `translate3d(${n}, ${l}, 0px)`; 12057 if (null != o) { 12058 p += ` scale(${o - (o - 1) * (1 - Math.abs(s))})`; 12059 } 12060 if (c && null != c) { 12061 p += ` rotate(${c * s * -1}deg)`; 12062 } 12063 e.style.transform = p; 12064 }, 12065 n = () => { 12066 const { 12067 el: e, 12068 slides: s, 12069 progress: a, 12070 snapGrid: n, 12071 isElement: l 12072 } = t, 12073 o = h(e, i); 12074 t.isElement && o.push(...h(t.hostEl, i)), o.forEach(e => { 12075 r(e, a); 12076 }), s.forEach((e, s) => { 12077 let l = e.progress; 12078 t.params.slidesPerGroup > 1 && "auto" !== t.params.slidesPerView && (l += Math.ceil(s / 2) - a * (n.length - 1)), l = Math.min(Math.max(l, -1), 1
12078), e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(e => { 12079 r(e, l); 12080 }); 12081 }); 12082 }; 12083 a("beforeInit", () => { 12084 t.params.parallax.enabled && (t.params.watchSlidesProgress = !0, t.originalParams.watchSlidesProgress = !0); 12085 }), a("init", () => { 12086 t.params.parallax.enabled && n(); 12087 }), a("setTranslate", () => { 12088 t.params.parallax.enabled && n(); 12089 }), a("setTransition", (e, s) => { 12090 t.params.parallax.enabled && function (e) { 12091 void 0 === e && (e = t.params.speed); 12092 const { 12093 el: s, 12094 hostEl: a 12095 } = t, 12096 r = [...s.querySelectorAll(i)]; 12097 t.isElement && r.push(...a.querySelectorAll(i)), r.forEach(t => { 12098 let s = parseInt(t.getAttribute("data-swiper-parallax-duration"), 10) || e; 12099 0 === e && (s = 0), t.style.transitionDuration = `${s}ms`; 12100 }); 12101 }(s); 12102 }); 12103 }, function (e) { 12104 let { 12105 swiper: t, 12106 extendParams: s, 12107 on: a, 12108 emit: i 12109 } = e; 12110 const n = r(); 12111 s({ 12112 zoom: { 12113 enabled: !1, 12114 maxRatio: 3, 12115 minRatio: 1, 12116 toggle: !0, 12117 containerClass: "swiper-zoom-container", 12118 zoomedSlideClass: "swiper-slide-zoomed" 12119 } 12120 }), t.zoom = { 12121 enabled: !1 12122 }; 12123 let l, 12124 d, 12125 c = 1, 12126 p = !1; 12127 const u = [], 12128 m = { 12129 originX: 0, 12130 originY: 0, 12131 slideEl: void 0, 12132 slideWidth: void 0, 12133 slideHeight: void 0, 12134 imageEl: void 0, 12135 imageWrapEl: void 0, 12136 maxRatio: 3 12137 }, 12138 f = { 12139 isTouched: void 0, 12140 isMoved: void 0, 12141 currentX: void 0, 12142 currentY: void 0, 12143 minX: void 0, 12144 minY: void 0, 12145 maxX: void 0, 12146 maxY: void 0, 12147 width: void 0, 12148 height: void 0, 12149 startX: void 0, 12150 startY: void 0, 12151 touchesStart: {}, 12152 touchesCurrent: {} 12153 }, 12154 v = { 12155 x: void 0, 12156 y: void 0, 12157 prevPositionX: void 0, 12158 prevPositionY: void 0, 12159 prevTime: void 0 12160 }; 12161 let w = 1; 12162 function y() { 12163 if (u.length < 2) return 1; 12164 const e = u[0].pageX, 12165 t = u[0].pageY, 12166 s = u[1].pageX, 12167 a = u[1].pageY; 12168 return Math.sqrt((s - e) ** 2 + (a - t) ** 2); 12169 } 12170 function E(e) { 12171 const s = t.isElement ? "swiper-slide" : `.${t.params.slideClass}`; 12172 return !!e.target.matches(s) || t.slides.filter(t => t.contains(e.target)).length > 0; 12173 } 12174 function x(e) { 12175 if ("mouse" === e.pointerType && u.splice(0, u.length), !E(e)) return; 12176 const s = t.params.zoom; 12177 if (l = !1, d = !1, u.push(e), !(u.length < 2)) { 12178 if (l = !0, m.scaleStart = y(), !m.slideEl) { 12179 m.slideEl = e.target.closest(`.${t.params.slideClass}, swiper-slide`), m.slideEl || (m.slideEl = t.slides[t.activeIndex]); 12180 let a = m.slideEl.querySelector(`.${s.containerClass}`); 12181 if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), m.imageEl = a, m.imageWrapEl = a ? b(m.imageEl, `.${s.containerClass}`)[0] : void 0, !m.imageWrapEl) return void (m.imageEl = void 0); 12182 m.maxRatio = m.imageWrapEl.getAttribute("data-swiper-zoom") || s.maxRatio; 12183 } 12184 if (m.imageEl) { 12185 const [e, t] = function () { 12186 if (u.length < 2) return { 12187 x: null, 12188 y: null 12189 }; 12190 const e = m.imageEl.getBoundingClientRect(); 12191 return [(u[0].pageX + (u[1].pageX - u[0].pageX) / 2 - e.x - n.scrollX) / c, (u[0].pageY + (u[1].pageY - u[0].pageY) / 2 - e.y - n.scrollY) / c]; 12192 }(); 12193 m.originX = e, m.originY = t, m.imageEl.style.transitionDuration = "0ms"; 12194 } 12195 p = !0; 12196 } 12197 } 12198 function S(e) { 12199 if (!E(e)) return; 12200 const s = t.params.zoom, 12201 a = t.zoom, 12202 i = u.findIndex(t => t.pointerId === e.pointerId); 12203 i >= 0 && (u[i] = e), u.length < 2 || (d = !0, m.scaleMove = y(), m.imageEl && (a.scale = m.scaleMove / m.scaleStart * c, a.scale > m.maxRatio && (a.scale = m.maxRatio - 1 + (a.scale - m.maxRatio + 1) ** .5), a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** .5), m.imageEl.style.transform = `translate3d(0,
vendor: 6,250 bytes, lines 12203-12254
122030,0) scale(${a.scale})`)); 12204 } 12205 function T(e) { 12206 if (!E(e)) return; 12207 if ("mouse" === e.pointerType && "pointerout" === e.type) return; 12208 const s = t.params.zoom, 12209 a = t.zoom, 12210 i = u.findIndex(t => t.pointerId === e.pointerId); 12211 i >= 0 && u.splice(i, 1), l && d && (l = !1, d = !1, m.imageEl && (a.scale = Math.max(Math.min(a.scale, m.maxRatio), s.minRatio), m.imageEl.style.transitionDuration = `${t.params.speed}ms`, m.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, c = a.scale, p = !1, a.scale > 1 && m.slideEl ? m.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && m.slideEl && m.slideEl.classList.remove(`${s.zoomedSlideClass}`), 1 === a.scale && (m.originX = 0, m.originY = 0, m.slideEl = void 0))); 12212 } 12213 function M(e) { 12214 if (!E(e) || !function (e) { 12215 const s = `.${t.params.zoom.containerClass}`; 12216 return !!e.target.matches(s) || [...t.hostEl.querySelectorAll(s)].filter(t => t.contains(e.target)).length > 0; 12217 }(e)) return; 12218 const s = t.zoom; 12219 if (!m.imageEl) return; 12220 if (!f.isTouched || !m.slideEl) return; 12221 f.isMoved || (f.width = m.imageEl.offsetWidth, f.height = m.imageEl.offsetHeight, f.startX = o(m.imageWrapEl, "x") || 0, f.startY = o(m.imageWrapEl, "y") || 0, m.slideWidth = m.slideEl.offsetWidth, m.slideHeight = m.slideEl.offsetHeight, m.imageWrapEl.style.transitionDuration = "0ms"); 12222 const a = f.width * s.scale, 12223 i = f.height * s.scale; 12224 if (a < m.slideWidth && i < m.slideHeight) return; 12225 f.minX = Math.min(m.slideWidth / 2 - a / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - i / 2, 0), f.maxY = -f.minY, f.touchesCurrent.x = u.length > 0 ? u[0].pageX : e.pageX, f.touchesCurrent.y = u.length > 0 ? u[0].pageY : e.pageY; 12226 if (Math.max(Math.abs(f.touchesCurrent.x - f.touchesStart.x), Math.abs(f.touchesCurrent.y - f.touchesStart.y)) > 5 && (t.allowClick = !1), !f.isMoved && !p) { 12227 if (t.isHorizontal() && (Math.floor(f.minX) === Math.floor(f.startX) && f.touchesCurrent.x < f.touchesStart.x || Math.floor(f.maxX) === Math.floor(f.startX) && f.touchesCurrent.x > f.touchesStart.x)) return void (f.isTouched = !1); 12228 if (!t.isHorizontal() && (Math.floor(f.minY) === Math.floor(f.startY) && f.touchesCurrent.y < f.touchesStart.y || Math.floor(f.maxY) === Math.floor(f.startY) && f.touchesCurrent.y > f.touchesStart.y)) return void (f.isTouched = !1); 12229 } 12230 e.cancelable && e.preventDefault(), e.stopPropagation(), f.isMoved = !0; 12231 const r = (s.scale - c) / (m.maxRatio - t.params.zoom.minRatio), 12232 { 12233 originX: n, 12234 originY: l 12235 } = m; 12236 f.currentX = f.touchesCurrent.x - f.touchesStart.x + f.startX + r * (f.width - 2 * n), f.currentY = f.touchesCurrent.y - f.touchesStart.y + f.startY + r * (f.height - 2 * l), f.currentX < f.minX && (f.currentX = f.minX + 1 - (f.minX - f.currentX + 1) ** .8), f.currentX > f.maxX && (f.currentX = f.maxX - 1 + (f.currentX - f.maxX + 1) ** .8), f.currentY < f.minY && (f.currentY = f.minY + 1 - (f.minY - f.currentY + 1) ** .8), f.currentY > f.maxY && (f.currentY = f.maxY - 1 + (f.currentY - f.maxY + 1) ** .8), v.prevPositionX || (v.prevPositionX = f.touchesCurrent.x), v.prevPositionY || (v.prevPositionY = f.touchesCurrent.y), v.prevTime || (v.prevTime = Date.now()), v.x = (f.touchesCurrent.x - v.prevPositionX) / (Date.now() - v.prevTime) / 2, v.y = (f.touchesCurrent.y - v.prevPositionY) / (Date.now() - v.prevTime) / 2, Math.abs(f.touchesCurrent.x - v.prevPositionX) < 2 && (v.x = 0), Math.abs(f.touchesCurrent.y - v.prevPositionY) < 2 && (v.y = 0), v.prevPositionX = f.touchesCurrent.x, v.prevPositionY = f.touchesCurrent.y, v.prevTime = Date.now(), m.imageWrapEl.style.transform = `translate3d(${f.currentX}px, ${f.currentY}px,0)`; 12237 } 12238 function C() { 12239 const e = t.zoom; 12240 m.slideEl && t.activeIndex !== t.slides.indexOf(m.slideEl) && (m.imageEl && (m.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), m.imageWrapEl && (m.imageWrapEl.style.transform = "translate3d(0,0,0)"), m.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`), e.scale = 1, c = 1, m.slideEl = void 0, m.imageEl = void 0, m.imageWrapEl = void 0, m.originX = 0, m.originY = 0); 12241 } 12242 function P(e) { 12243 const s = t.zoom, 12244 a = t.params.zoom; 12245 if (!m.slideEl) { 12246 e && e.target && (m.slideEl = e.target.closest(`.${t.params.slideClass}, swiper-slide`)), m.slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? m.slideEl = h(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : m.slideEl = t.slides[t.activeIndex]); 12247 let s = m.slideEl.querySelector(`.${a.containerClass}`); 12248 s && (s = s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), m.imageEl = s, m.imageWrapEl = s ? b(m.imageEl, `.${a.containerClass}`)[0] : void 0; 12249 } 12250 if (!m.imageEl || !m.imageWrapEl) return; 12251 let i, r, l, o, d, p, u, v, w, y, E, x, S, T, M, C, P, L; 12252 t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), m.slideEl.classList.add(`${a.zoomedSlideClass}`), void 0 === f.touchesStart.x && e ? (i = e.pageX, r = e.pageY) : (i = f.touchesStart.x, r = f.touchesStart.y); 12253 const z = "number" == typeof e ? e : null; 12254 1 === c && z && (i = void 0, r = void 0), s.scale = z || m.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio, c = z || m.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio, !e || 1 === c && z ? (u = 0, v = 0) : (P = m.slideEl.offsetWidth, L = m.slideEl.offsetHeight, l = g(m.slideEl).left + n.scrollX, o = g(m.slideEl).top + n.scrollY, d = l + P / 2 - i, p = o + L / 2 - r, w = m.imageEl.offsetWidth, y = m.imageEl.offsetHeight, E = w * s.scale, x = y * s.scale, S = Math.min(P / 2 - E / 2, 0), T = Math.min(L / 2 - x / 2, 0), M = -S, C = -T, u = d * s.scale, v = p * s.scale, u < S && (u = S), u > M && (u = M), v < T && (v = T), v > C && (v = C)), z && 1 === s.scale && (m.originX = 0, m.originY = 0), m.imageWrapEl.style.transitionDuration = "300ms", m.imageWrapEl.style.transform = `translate3d(${u}px, ${v}px,0)`, m.imageEl.style.transitionDuration = "300ms", m.imageEl.style.transform = `translate3d(0,
122540,0) scale(${s.scale})`; 12255 } 12256 function L() { 12257 const e = t.zoom, 12258 s = t.params.zoom; 12259 if (!m.slideEl) { 12260 t.params.virtual && t.params.virtual.enabled && t.virtual ? m.slideEl = h(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : m.slideEl = t.slides[t.activeIndex]; 12261 let e = m.slideEl.querySelector(`.${s.containerClass}`); 12262 e && (e = e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), m.imageEl = e, m.imageWrapEl = e ? b(m.imageEl, `.${s.containerClass}`)[0] : void 0; 12263 } 12264 m.imageEl && m.imageWrapEl && (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), e.scale = 1, c = 1, m.imageWrapEl.style.transitionDuration = "300ms", m.imageWrapEl.style.transform = "translate3d(0,0,0)", m.imageEl.style.transitionDuration = "300ms", m.imageEl.style.transform = "translate3d(0,0,0) scale(1)", m.slideEl.classList.remove(`${s.zoomedSlideClass}`), m.slideEl = void 0, m.originX = 0, m.originY = 0); 12265 } 12266 function z(e) { 12267 const s = t.zoom; 12268 s.scale && 1 !== s.scale ? L() : P(e); 12269 } 12270 function A() { 12271 return { 12272 passiveListener: !!t.params.passiveListeners && { 12273 passive: !0, 12274 capture: !1 12275 }, 12276 activeListenerWithCapture: !t.params.passiveListeners || { 12277 passive: !1, 12278 capture: !0 12279 } 12280 }; 12281 } 12282 function $() { 12283 const e = t.zoom; 12284 if (e.enabled) return; 12285 e.enabled = !0; 12286 const { 12287 passiveListener: s, 12288 activeListenerWithCapture: a 12289 } = A(); 12290 t.wrapperEl.addEventListener("pointerdown", x, s), t.wrapperEl.addEventListener("pointermove", S, a), ["pointerup", "pointercancel", "pointerout"].forEach(e => { 12291 t.wrapperEl.addEventListener(e, T, s); 12292 }), t.wrapperEl.addEventListener("pointermove", M, a); 12293 } 12294 function I() { 12295 const e = t.zoom; 12296 if (!e.enabled) return; 12297 e.enabled = !1; 12298 const { 12299 passiveListener: s, 12300 activeListenerWithCapture: a 12301 } = A(); 12302 t.wrapperEl.removeEventListener("pointerdown", x, s), t.wrapperEl.removeEventListener("pointermove", S, a), ["pointerup", "pointercancel", "pointerout"].forEach(e => { 12303 t.wrapperEl.removeEventListener(e, T, s); 12304 }), t.wrapperEl.removeEventListener("pointermove", M, a); 12305 } 12306 Object.defineProperty(t.zoom, "scale", { 12307 get: () => w, 12308 set(e) { 12309 if (w !== e) { 12310 const t = m.imageEl, 12311 s = m.slideEl; 12312 i("zoomChange", e, t, s); 12313 } 12314 w = e; 12315 } 12316 }), a("init", () => { 12317 t.params.zoom.enabled && $(); 12318 }), a("destroy", () => { 12319 I(); 12320 }), a("touchStart", (e, s) => { 12321 t.zoom.enabled && function (e) { 12322 const s = t.device; 12323 if (!m.imageEl) return; 12324 if (f.isTouched) return; 12325 s.android && e.cancelable && e.preventDefault(), f.isTouched = !0; 12326 const a = u.length > 0 ? u[0] : e; 12327 f.touchesStart.x = a.pageX, f.touchesStart.y = a.pageY; 12328 }(s); 12329 }), a("touchEnd", (e, s) => { 12330 t.zoom.enabled && function () { 12331 const e = t.zoom; 12332 if (!m.imageEl) return; 12333 if (!f.isTouched || !f.isMoved) return f.isTouched = !1, void (f.isMoved = !1); 12334 f.isTouched = !1, f.isMoved = !1; 12335 let s = 300, 12336 a = 300; 12337 const i = v.x * s, 12338 r = f.currentX + i, 12339 n = v.y * a, 12340 l = f.currentY + n; 12341 0 !== v.x && (s = Math.abs((r - f.currentX) / v.x)), 0 !== v.y && (a = Math.abs((l - f.currentY) / v.y)); 12342 const o = Math.max(s, a); 12343 f.currentX = r, f.currentY = l; 12344 const d = f.width * e.scale, 12345 c = f.height * e.scale; 12346 f.minX = Math.min(m.slideWidth / 2 - d / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - c / 2, 0), f.maxY = -f.minY, f.currentX = Math.max(Math.min(f.currentX, f.maxX), f.minX), f.currentY = Math.max(Math.min(f.currentY, f.maxY), f.minY), m.imageWrapEl.style.transitionDuration = `${o}ms`, m.imageWrapEl.style.transform = `translate3d(${f.currentX}px, ${f.currentY}px,0)`; 12347 }(); 12348 }), a("doubleTap", (e, s) => { 12349 !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && z(s); 12350 }), a("transitionEnd", () => { 12351 t.zoom.enabled && t.params.zoom.enabled && C(); 12352 }), a("slideChange", () => { 12353 t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && C(); 12354 }), Object.assign(t.zoom, { 12355 enable: $, 12356 disable: I, 12357 in: P, 12358 out: L, 12359 toggle: z 12360 }); 12361 }, function (e) { 12362 let { 12363 swiper: t, 12364 extendParams: s, 12365 on: a 12366 } = e; 12367 function i(e, t) { 12368 const s = function () { 12369 let e, t, s; 12370 return (a, i) => { 12371 for (t = -1, e = a.length; e - t > 1;) s = e + t >> 1, a[s] <= i ? t = s : e = s; 12372 return e; 12373 }; 12374 }(); 12375 let a, i; 12376 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { 12377 return e ? (i = s(this.x, e), a = i - 1, (e - this.x[a]) * (this.y[i] - this.y[a]) / (this.x[i] - this.x[a]) + this.y[a]) : 0; 12378 }, this; 12379 } 12380 function r() { 12381 t.controller.control && t.controller.spline && (t.controller.spline = void 0, delete t.controller.spline); 12382 } 12383 s({ 12384 controller: { 12385 control: void 0, 12386 inverse: !1, 12387 by: "slide" 12388 } 12389 }), t.controller = { 12390 control: void 0 12391 }, a("beforeInit", () => { 12392 if ("undefined" != typeof window && ("string" == typeof t.params.controller.control || t.params.controller.control instanceof HTMLElement)) { 12393 const e = document.querySelector(t.params.controller.control); 12394 if (e && e.swiper) t.controller.control = e.swiper;else if (e) { 12395 const s = a => {
12396 t.controller.control = a.detail[0], t.update(), e.removeEventListener("init", s); 12397 }; 12398 e.addEventListener("init", s); 12399 } 12400 } else t.controller.control = t.params.controller.control; 12401 }), a("update", () => { 12402 r(); 12403 }), a("resize", () => { 12404 r(); 12405 }), a("observerUpdate", () => { 12406 r(); 12407 }), a("setTranslate", (e, s, a) => { 12408 t.controller.control && !t.controller.control.destroyed && t.controller.setTranslate(s, a); 12409 }), a("setTransition", (e, s, a) => { 12410 t.controller.control && !t.controller.control.destroyed && t.controller.setTransition(s, a); 12411 }), Object.assign(t.controller, { 12412 setTranslate: function (e, s) { 12413 const a = t.controller.control; 12414 let r, n; 12415 const l = t.constructor; 12416 function o(e) { 12417 if (e.destroyed) return; 12418 const s = t.rtlTranslate ? -t.translate : t.translate; 12419 "slide" === t.params.controller.by && (!function (e) { 12420 t.controller.spline = t.params.loop ? new i(t.slidesGrid, e.slidesGrid) : new i(t.snapGrid, e.snapGrid); 12421 }(e), n = -t.controller.spline.interpolate(-s)), n && "container" !== t.params.controller.by || (r = (e.maxTranslate() - e.minTranslate()) / (t.maxTranslate() - t.minTranslate()), !Number.isNaN(r) && Number.isFinite(r) || (r = 1), n = (s - t.minTranslate()) * r + e.minTranslate()), t.params.controller.inverse && (n = e.maxTranslate() - n), e.updateProgress(n), e.setTranslate(n, t), e.updateActiveIndex(), e.updateSlidesClasses(); 12422 } 12423 if (Array.isArray(a)) for (let e = 0; e < a.length; e += 1) a[e] !== s && a[e] instanceof l && o(a[e]);else a instanceof l && s !== a && o(a); 12424 }, 12425 setTransition: function (e, s) { 12426 const a = t.constructor, 12427 i = t.controller.control; 12428 let r; 12429 function l(s) { 12430 s.destroyed || (s.setTransition(e, t), 0 !== e && (s.transitionStart(), s.params.autoHeight && n(() => { 12431 s.updateAutoHeight(); 12432 }), y(s.wrapperEl, () => { 12433 i && s.transitionEnd(); 12434 }))); 12435 } 12436 if (Array.isArray(i)) for (r = 0; r < i.length; r += 1) i[r] !== s && i[r] instanceof a && l(i[r]);else i instanceof a && s !== i && l(i); 12437 } 12438 }); 12439 }, function (e) { 12440 let { 12441 swiper: t, 12442 extendParams: s, 12443 on: a 12444 } = e; 12445 s({ 12446 a11y: { 12447 enabled: !0, 12448 notificationClass: "swiper-notification", 12449 prevSlideMessage: "Previous slide", 12450 nextSlideMessage: "Next slide", 12451 firstSlideMessage: "This is the first slide", 12452 lastSlideMessage: "This is the last slide", 12453 paginationBulletMessage: "Go to slide {{index}}", 12454 slideLabelMessage: "{{index}} / {{slidesLength}}", 12455 containerMessage: null, 12456 containerRoleDescriptionMessage: null, 12457 itemRoleDescriptionMessage: null, 12458 slideRole: "group", 12459 id: null 12460 } 12461 }), t.a11y = { 12462 clicked: !1 12463 }; 12464 let i = null; 12465 function r(e) { 12466 const t = i; 12467 0 !== t.length && (t.innerHTML = "", t.innerHTML = e); 12468 } 12469 const n = e => (Array.isArray(e) ? e : [e]).filter(e => !!e); 12470 function l(e) { 12471 (e = n(e)).forEach(e => { 12472 e.setAttribute("tabIndex", "0"); 12473 }); 12474 } 12475 function o(e) { 12476 (e = n(e)).forEach(e => { 12477 e.setAttribute("tabIndex", "-1"); 12478 }); 12479 } 12480 function d(e, t) { 12481 (e = n(e)).forEach(e => { 12482 e.setAttribute("role", t); 12483 }); 12484 } 12485 function c(e, t) { 12486 (e = n(e)).forEach(e => { 12487 e.setAttribute("aria-roledescription", t); 12488 }); 12489 } 12490 function p(e, t) { 12491 (e = n(e)).forEach(e => { 12492 e.setAttribute("aria-label", t); 12493 }); 12494 } 12495 function u(e) { 12496 (e = n(e)).forEach(e => { 12497 e.setAttribute("aria-disabled", !0); 12498 }); 12499 } 12500 function m(e) { 12501 (e = n(e)).forEach(e => { 12502 e.setAttribute("aria-disabled", !1); 12503 }); 12504 } 12505 function h(e) { 12506 if (13 !== e.keyCode && 32 !== e.keyCode) return; 12507 const s = t.params.a11y, 12508 a = e.target; 12509 t.pagination && t.pagination.el && (a === t.pagination.el || t.pagination.el.contains(e.target)) && !e.target.matches(ee(t.params.pagination.bulletClass)) || (t.navigation && t.navigation.nextEl && a === t.navigation.nextEl && (t.isEnd && !t.params.loop || t.slideNext(), t.isEnd ? r(s.lastSlideMessage) : r(s.nextSlideMessage)), t.navigation && t.navigation.prevEl && a === t.navigation.prevEl && (t.isBeginning && !t.params.loop || t.slidePrev(), t.isBeginning ? r(s.firstSlideMessage) : r(s.prevSlideMessage)), t.pagination && a.matches(ee(t.params.pagination.bulletClass)) && a.click()); 12510 } 12511 function g() { 12512 return t.pagination && t.pagination.bullets && t.pagination.bullets.length; 12513 } 12514 function v() { 12515 return g() && t.params.pagination.clickable; 12516 } 12517 const b = (e, t, s) => { 12518 l(e), "BUTTON" !== e.tagName && (d(e, "button"), e.addEventListener("keydown", h)), p(e, s), function (e, t) {
12519 (e = n(e)).forEach(e => { 12520 e.setAttribute("aria-controls", t); 12521 }); 12522 }(e, t); 12523 }, 12524 y = () => { 12525 t.a11y.clicked = !0; 12526 }, 12527 E = () => { 12528 requestAnimationFrame(() => { 12529 requestAnimationFrame(() => { 12530 t.destroyed || (t.a11y.clicked = !1); 12531 }); 12532 }); 12533 }, 12534 x = e => { 12535 if (t.a11y.clicked) return; 12536 const s = e.target.closest(`.${t.params.slideClass}, swiper-slide`); 12537 if (!s || !t.slides.includes(s)) return; 12538 const a = t.slides.indexOf(s) === t.activeIndex, 12539 i = t.params.watchSlidesProgress && t.visibleSlides && t.visibleSlides.includes(s); 12540 a || i || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (t.isHorizontal() ? t.el.scrollLeft = 0 : t.el.scrollTop = 0, t.slideTo(t.slides.indexOf(s), 0)); 12541 }, 12542 S = () => { 12543 const e = t.params.a11y; 12544 e.itemRoleDescriptionMessage && c(t.slides, e.itemRoleDescriptionMessage), e.slideRole && d(t.slides, e.slideRole); 12545 const s = t.slides.length; 12546 e.slideLabelMessage && t.slides.forEach((a, i) => { 12547 const r = t.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : i; 12548 p(a, e.slideLabelMessage.replace(/\{\{index\}\}/, r + 1).replace(/\{\{slidesLength\}\}/, s)); 12549 }); 12550 }, 12551 T = () => { 12552 const e = t.params.a11y; 12553 t.el.append(i); 12554 const s = t.el; 12555 e.containerRoleDescriptionMessage && c(s, e.containerRoleDescriptionMessage), e.containerMessage && p(s, e.containerMessage); 12556 const a = t.wrapperEl, 12557 r = e.id || a.getAttribute("id") || `swiper-wrapper-${l = 16, void 0 === l && (l = 16), "x".repeat(l).replace(/x/g, () => Math.round(16 * Math.random()).toString(16))}`; 12558 var l; 12559 const o = t.params.autoplay && t.params.autoplay.enabled ? "off" : "polite"; 12560 var d; 12561 d = r, n(a).forEach(e => { 12562 e.setAttribute("id", d); 12563 }), function (e, t) { 12564 (e = n(e)).forEach(e => { 12565 e.setAttribute("aria-live", t); 12566 }); 12567 }(a, o), S(); 12568 let { 12569 nextEl: u, 12570 prevEl: m 12571 } = t.navigation ? t.navigation : {}; 12572 if (u = n(u), m = n(m), u && u.forEach(t => b(t, r, e.nextSlideMessage)), m && m.forEach(t => b(t, r, e.prevSlideMessage)), v()) { 12573 (Array.isArray(t.pagination.el) ? t.pagination.el : [t.pagination.el]).forEach(e => { 12574 e.addEventListener("keydown", h); 12575 }); 12576 } 12577 t.el.addEventListener("focus", x, !0), t.el.addEventListener("pointerdown", y, !0), t.el.addEventListener("pointerup", E, !0); 12578 }; 12579 a("beforeInit", () => { 12580 i = f("span", t.params.a11y.notificationClass), i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"); 12581 }), a("afterInit", () => { 12582 t.params.a11y.enabled && T(); 12583 }), a("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => { 12584 t.params.a11y.enabled && S(); 12585 }), a("fromEdge toEdge afterInit lock unlock", () => { 12586 t.params.a11y.enabled && function () { 12587 if (t.params.loop || t.params.rewind || !t.navigation) return; 12588 const { 12589 nextEl: e, 12590 prevEl: s 12591 } = t.navigation; 12592 s && (t.isBeginning ? (u(s), o(s)) : (m(s), l(s))), e && (t.isEnd ? (u(e), o(e)) : (m(e), l(e))); 12593 }(); 12594 }), a("paginationUpdate", () => { 12595 t.params.a11y.enabled && function () { 12596 const e = t.params.a11y; 12597 g() && t.pagination.bullets.forEach(s => { 12598 t.params.pagination.clickable && (l(s), t.params.pagination.renderBullet || (d(s, "button"), p(s, e.paginationBulletMessage.replace(/\{\{index\}\}/, w(s) + 1)))), s.matches(ee(t.params.pagination.bulletActiveClass)) ? s.setAttribute("aria-current", "true") : s.removeAttribute("aria-current"); 12599 }); 12600 }(); 12601 }), a("destroy", () => { 12602 t.params.a11y.enabled && function () { 12603 i && i.remove(); 12604 let { 12605 nextEl: e, 12606 prevEl: s 12607 } = t.navigation ? t.navigation : {}; 12608 e = n(e), s = n(s), e && e.forEach(e =>
12608 e.removeEventListener("keydown", h)), s && s.forEach(e => e.removeEventListener("keydown", h)), v() && (Array.isArray(t.pagination.el) ? t.pagination.el : [t.pagination.el]).forEach(e => { 12609 e.removeEventListener("keydown", h); 12610 }); 12611 t.el.removeEventListener("focus", x, !0), t.el.removeEventListener("pointerdown", y, !0), t.el.removeEventListener("pointerup", E, !0); 12612 }(); 12613 }); 12614 }, function (e) { 12615 let { 12616 swiper: t, 12617 extendParams: s, 12618 on: a 12619 } = e; 12620 s({ 12621 history: { 12622 enabled: !1, 12623 root: "", 12624 replaceState: !1, 12625 key: "slides", 12626 keepQuery: !1 12627 } 12628 }); 12629 let i = !1, 12630 n = {}; 12631 const l = e => e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), 12632 o = e => { 12633 const t = r(); 12634 let s; 12635 s = e ? new URL(e) : t.location; 12636 const a = s.pathname.slice(1).split("/").filter(e => "" !== e), 12637 i = a.length; 12638 return { 12639 key: a[i - 2], 12640 value: a[i - 1] 12641 }; 12642 }, 12643 d = (e, s) => { 12644 const a = r(); 12645 if (!i || !t.params.history.enabled) return; 12646 let n; 12647 n = t.params.url ? new URL(t.params.url) : a.location; 12648 const o = t.slides[s]; 12649 let d = l(o.getAttribute("data-history")); 12650 if (t.params.history.root.length > 0) { 12651 let s = t.params.history.root; 12652 "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), d = `${s}/${e ? `${e}/` : ""}${d}`; 12653 } else n.pathname.includes(e) || (d = `${e ? `${e}/` : ""}${d}`); 12654 t.params.history.keepQuery && (d += n.search); 12655 const c = a.history.state; 12656 c && c.value === d || (t.params.history.replaceState ? a.history.replaceState({ 12657 value: d 12658 }, null, d) : a.history.pushState({ 12659 value: d 12660 }, null, d)); 12661 }, 12662 c = (e, s, a) => { 12663 if (s) for (let i = 0, r = t.slides.length; i < r; i += 1) { 12664 const r = t.slides[i]; 12665 if (l(r.getAttribute("data-history")) === s) { 12666 const s = t.getSlideIndex(r); 12667 t.slideTo(s, e, a); 12668 } 12669 } else t.slideTo(0, e, a); 12670 }, 12671 p = () => { 12672 n = o(t.params.url), c(t.params.speed, n.value, !1); 12673 }; 12674 a("init", () => { 12675 t.params.history.enabled && (() => { 12676 const e = r(); 12677 if (t.params.history) { 12678 if (!e.history || !e.history.pushState) return t.params.history.enabled = !1, void (t.params.hashNavigation.enabled = !0); 12679 i = !0, n = o(t.params.url), n.key || n.value ? (c(0, n.value, t.params.runCallbacksOnInit), t.params.history.replaceState || e.addEventListener("popstate", p)) : t.params.history.replaceState || e.addEventListener("popstate", p); 12680 } 12681 })(); 12682 }), a("destroy", () => { 12683 t.params.history.enabled && (() => { 12684 const e = r(); 12685 t.params.history.replaceState || e.removeEventListener("popstate", p); 12686 })(); 12687 }), a("transitionEnd _freeModeNoMomentumRelease", () => { 12688 i && d(t.params.history.key, t.activeIndex); 12689 }), a("slideChange", () => { 12690 i && t.params.cssMode && d(t.params.history.key, t.activeIndex); 12691 }); 12692 }, function (e) { 12693 let { 12694 swiper: t, 12695 extendParams: s, 12696 emit: i, 12697 on: n 12698 } = e, 12699 l = !1; 12700 const o = a(), 12701 d = r(); 12702 s({ 12703 hashNavigation: { 12704 enabled: !1, 12705 replaceState: !1, 12706 watchState: !1, 12707 getSlideIndex(e, s) { 12708 if (t.virtual && t.params.virtual.enabled) { 12709 const e = t.slides.filter(e => e.getAttribute("data-hash") === s)[0]; 12710 if (!e) return 0; 12711 return parseInt(e.getAttribute("data-swiper-slide-index"), 10); 12712 } 12713 return t.getSlideIndex(h(t.slidesEl, `.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0]); 12714 } 12715 } 12716 }); 12717 const c = () => { 12718 i("hashChange"); 12719 const e = o.location.hash.replace("#", ""), 12720 s = t.virtual && t.params.virtual.enabled ? t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`) : t.slides[t.activeIndex]; 12721 if (e !== (s ? s.getAttribute("data-hash") : "")) { 12722 const s = t.params.hashNavigation.getSlideIndex(t, e); 12723 if (void 0 === s || Number.isNaN(s)) return; 12724 t.slideTo(s); 12725 } 12726 }, 12727 p = () => { 12728 if (!l || !t.params.hashNavigation.enabled) return; 12729 const e = t.virtual && t.params.virtual.enabled ? t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`) : t.slides[t.activeIndex], 12730 s = e ? e.getAttribute("data-hash") || e.getAttribute("data-history") : ""; 12731 t.params.hashNavigation.replaceState && d.history && d.history.replaceState ? (d.history.replaceState(null, null, `#${s}` || ""), i("hashSet")) : (o.location.hash = s || "", i("hashSet")); 12732 }; 12733 n("init", () => { 12734 t.params.hashNavigation.enabled && (() => { 12735 if (!t.params.hashNavigation.enabled || t.params.history && t.params.history.enabled) return; 12736 l = !0; 12737 const e = o.location.hash.replace("#", ""); 12738 if (e) { 12739 const s = 0, 12740 a = t.params.hashNavigation.getSlideIndex(t, e); 12741 t.slideTo(a || 0, s, t.params.runCallbacksOnInit, !0); 12742 } 12743 t.params.hashNavigation.watchState && d.addEventListener("hashchange", c); 12744 })(); 12745 }), n("destroy", () => { 12746 t.params.hashNavigation.enabled && t.params.hashNavigation.watchState && d.removeEventListener("hashchange", c); 12747 }), n("transitionEnd _freeModeNoMomentumRelease", () => { 12748 l && p(); 12749 }), n("slideChange", () => { 12750 l && t.params.cssMode && p(); 12751 }); 12752 }, function (e) { 12753 let t, 12754 s, 12755 { 12756 swiper: i, 12757 extendParams: r, 12758 on: n, 12759 emit: l, 12760 params: o 12761 } = e; 12762 i.autoplay = { 12763 running: !1, 12764 paused: !1, 12765 timeLeft: 0 12766 }, r({ 12767 autoplay: { 12768 enabled: !1, 12769 delay: 3e3, 12770 waitForTransition: !0, 12771 disableOnInteraction: !0, 12772 stopOnLastSlide: !1, 12773 reverseDirection: !1, 12774 pauseOnMouseEnter: !1 12775 } 12776 }); 12777 let d, 12778 c, 12779 p, 12780 u, 12781 m, 12782 h, 12783 f, 12784 g = o && o.autoplay ? o.autoplay.delay : 3e3, 12785 v = o && o.autoplay ? o.autoplay.delay : 3e3, 12786 w = new Date().getTime; 12787 function b(e) { 12788 i && !i.destroyed && i.wrapperEl && e.target === i.wrapperEl && (i.wrapperEl.removeEventListener("transitionend", b), M()); 12789 } 12790 const y = () => { 12791 if (i.destroyed || !i.autoplay.running) return; 12792 i.autoplay.paused ? c = !0 : c && (v = d, c = !1); 12793 const e = i.autoplay.paused ? d : w + v - new Date().getTime(); 12794 i.autoplay.timeLeft = e, l("autoplayTimeLeft", e, e / g), s = requestAnimationFrame(() => { 12795 y(); 12796 }); 12797 }, 12798 E = e => { 12799 if (i.destroyed || !i.autoplay.running) return; 12800 cancelAnimationFrame(s), y(); 12801 let a = void 0 === e ? i.params.autoplay.delay : e; 12802 g = i.params.autoplay.delay, v = i.params.autoplay.delay; 12803 const r = (() => { 12804 let e; 12805 if (e = i.virtual && i.params.virtual.enabled ? i.slides.filter(e => e.classList.contains("swiper-slide-active"))[0] : i.slides[i.activeIndex], !e) return; 12806 return parseInt(e.getAttribute("data-swiper-autoplay"), 10); 12807 })(); 12808 !Number.isNaN(r) && r > 0 && void 0 === e && (a = r, g = r, v = r), d = a; 12809 const n = i.params.speed, 12810 o = () => { 12811 i && !i.destroyed && (i.params.autoplay.reverseDirection ? !i.isBeginning || i.params.loop || i.params.rewind ? (i.slidePrev(n, !0, !0), l("autoplay")) : i.params.autoplay.stopOnLastSlide || (i.slideTo(i.slides.length - 1, n, !0, !0), l("autoplay")) : !i.isEnd || i.params.loop || i.params.rewind ? (i.slideNext(n, !0, !0), l("autoplay")) : i.params.autoplay.stopOnLastSlide || (i.slideTo(0, n, !0, !0), l("autoplay")), i.params.cssMode && (w = new Date().getTime(), requestAnimationFrame(() => { 12812 E(); 12813 }))); 12814 }; 12815 return a > 0 ? (clearTimeout(t), t = setTimeout(() => { 12816 o(); 12817 }, a)) : requestAnimationFrame(() => { 12818 o(); 12819 }), a; 12820 }, 12821 x = () => { 12822 i.autoplay.running = !0, E(), l("autoplayStart"); 12823 }, 12824 S = () => { 12825 i.autoplay.running = !1, clearTimeout(t), cancelAnimationFrame(s), l("autoplayStop"); 12826 }, 12827 T = (e, s) => { 12828 if (i.destroyed || !i.autoplay.running) return; 12829 clearTimeout(t), e || (f = !0); 12830 const a = () => { 12831 l("autoplayPause"), i.params.autoplay.waitForTransition ? i.wrapperEl.addEventListener("transitionend", b) : M(); 12832 }; 12833 if (i.autoplay.paused = !0, s) return h && (d = i.params.autoplay.delay), h = !1, void a(); 12834 const r = d || i.params.autoplay.delay; 12835 d = r - (new Date().getTime() - w), i.isEnd && d < 0 && !i.params.loop || (d < 0 && (d = 0), a()); 12836 }, 12837 M = () => { 12838 i.isEnd && d < 0 && !i.params.loop || i.destroyed || !i.autoplay.running || (w = new Date().getTime(), f ? (f = !1, E(d)) : E(), i.autoplay.paused = !1, l("autoplayResume")); 12839 }, 12840 C = () => { 12841 if (i.destroyed || !i.autoplay.running) return; 12842 const e = a(); 12843 "hidden" === e.visibilityState && (f = !0, T(!0)), "visible" === e.visibilityState && M(); 12844 }, 12845 P = e => { 12846 "mouse" === e.pointerType && (f = !0, i.animating || i.autoplay.paused || T(!0)); 12847 }, 12848 L = e => { 12849 "mouse" === e.pointerType && i.autoplay.paused && M(); 12850 }; 12851 n("init", () => { 12852 i.params.autoplay.enabled && (i.params.autoplay.pauseOnMouseEnter && (i.el.addEventListener("pointerenter", P), i.el.addEventListener("pointerleave", L)), a().addEventListener("visibilitychange", C), w = new Date().getTime(), x()); 12853 }), n("destroy", () => { 12854 i.el.removeEventListener("pointerenter", P), i.el.removeEventListener("pointerleave", L), a().removeEventListener("visibilitychange", C), i.autoplay.running && S(); 12855 }), n("beforeTransitionStart", (e, t, s) => { 12856 !i.destroyed && i.autoplay.running && (s || !i.params.autoplay.disableOnInteraction ? T(!0, !0) : S()); 12857 }), n("sliderFirstMove", () => { 12858 !i.destroyed && i.autoplay.running && (i.params.autoplay.disableOnInteraction ? S() : (p = !0, u = !1, f = !1, m = setTimeout(() => { 12859 f = !0, u = !0, T(!0); 12860 }, 200))); 12861 }), n("touchEnd", () => { 12862 if (!i.destroyed && i.autoplay.running && p) { 12863 if (clearTimeout(m), clearTimeout(t), i.params.autoplay.disableOnInteraction) return u = !1, void (p = !1); 12864 u && i.params.cssMode && M(), u = !1, p = !1; 12865 } 12866 }), n("slideChange", () => { 12867 !i.destroyed && i.autoplay.running && (h = !0); 12868 }), Object.assign(i.autoplay, { 12869 start: x, 12870 stop: S, 12871 pause: T, 12872 resume: M 12873 }); 12874 }, function (e) { 12875 let { 12876 swiper: t, 12877 extendParams: s, 12878 on: i 12879 } = e; 12880 s({ 12881 thumbs: { 12882 swiper: null, 12883 multipleActiveThumbs: !0, 12884 autoScrollOffset: 0, 12885 slideThumbActiveClass: "swiper-slide-thumb-active", 12886 thumbsContainerClass: "swiper-thumbs" 12887 } 12888 }); 12889 let r = !1, 12890 n = !1; 12891 function l() { 12892 const e = t.thumbs.swiper; 12893 if (!e || e.destroyed) return; 12894 const s = e.clickedIndex, 12895 a = e.clickedSlide;
vendor: 7,277 bytes, lines 12896-13058
12896 if (a && a.classList.contains(t.params.thumbs.slideThumbActiveClass)) return; 12897 if (null == s) return; 12898 let i; 12899 i = e.params.loop ? parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : s, t.params.loop ? t.slideToLoop(i) : t.slideTo(i); 12900 } 12901 function o() { 12902 const { 12903 thumbs: e 12904 } = t.params; 12905 if (r) return !1; 12906 r = !0; 12907 const s = t.constructor; 12908 if (e.swiper instanceof s) t.thumbs.swiper = e.swiper, Object.assign(t.thumbs.swiper.originalParams, { 12909 watchSlidesProgress: !0, 12910 slideToClickedSlide: !1 12911 }), Object.assign(t.thumbs.swiper.params, { 12912 watchSlidesProgress: !0, 12913 slideToClickedSlide: !1 12914 }), t.thumbs.swiper.update();else if (d(e.swiper)) { 12915 const a = Object.assign({}, e.swiper); 12916 Object.assign(a, { 12917 watchSlidesProgress: !0, 12918 slideToClickedSlide: !1 12919 }), t.thumbs.swiper = new s(a), n = !0; 12920 } 12921 return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass), t.thumbs.swiper.on("tap", l), !0; 12922 } 12923 function c(e) { 12924 const s = t.thumbs.swiper; 12925 if (!s || s.destroyed) return; 12926 const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView; 12927 let i = 1; 12928 const r = t.params.thumbs.slideThumbActiveClass; 12929 if (t.params.slidesPerView > 1 && !t.params.centeredSlides && (i = t.params.slidesPerView), t.params.thumbs.multipleActiveThumbs || (i = 1), i = Math.floor(i), s.slides.forEach(e => e.classList.remove(r)), s.params.loop || s.params.virtual && s.params.virtual.enabled) for (let e = 0; e < i; e += 1) h(s.slidesEl, `[data-swiper-slide-index="${t.realIndex + e}"]`).forEach(e => { 12930 e.classList.add(r); 12931 });else for (let e = 0; e < i; e += 1) s.slides[t.realIndex + e] && s.slides[t.realIndex + e].classList.add(r); 12932 const n = t.params.thumbs.autoScrollOffset, 12933 l = n && !s.params.loop; 12934 if (t.realIndex !== s.realIndex || l) { 12935 const i = s.activeIndex; 12936 let r, o; 12937 if (s.params.loop) { 12938 const e = s.slides.filter(e => e.getAttribute("data-swiper-slide-index") === `${t.realIndex}`)[0]; 12939 r = s.slides.indexOf(e), o = t.activeIndex > t.previousIndex ? "next" : "prev"; 12940 } else r = t.realIndex, o = r > t.previousIndex ? "next" : "prev"; 12941 l && (r += "next" === o ? n : -1 * n), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(r) < 0 && (s.params.centeredSlides ? r = r > i ? r - Math.floor(a / 2) + 1 : r + Math.floor(a / 2) - 1 : r > i && s.params.slidesPerGroup, s.slideTo(r, e ? 0 : void 0)); 12942 } 12943 } 12944 t.thumbs = { 12945 swiper: null 12946 }, i("beforeInit", () => { 12947 const { 12948 thumbs: e 12949 } = t.params; 12950 if (e && e.swiper) if ("string" == typeof e.swiper || e.swiper instanceof HTMLElement) { 12951 const s = a(), 12952 i = () => { 12953 const a = "string" == typeof e.swiper ? s.querySelector(e.swiper) : e.swiper; 12954 if (a && a.swiper) e.swiper = a.swiper, o(), c(!0);else if (a) { 12955 const s = i => { 12956 e.swiper = i.detail[0], a.removeEventListener("init", s), o(), c(!0), e.swiper.update(), t.update(); 12957 }; 12958 a.addEventListener("init", s); 12959 } 12960 return a; 12961 }, 12962 r = () => { 12963 if (t.destroyed) return; 12964 i() || requestAnimationFrame(r); 12965 }; 12966 requestAnimationFrame(r); 12967 } else o(), c(!0); 12968 }), i("slideChange update resize observerUpdate", () => { 12969 c(); 12970 }), i("setTransition", (e, s) => { 12971 const a = t.thumbs.swiper; 12972 a && !a.destroyed && a.setTransition(s); 12973 }), i("beforeDestroy", () => { 12974 const e = t.thumbs.swiper; 12975 e && !e.destroyed && n && e.destroy(); 12976 }), Object.assign(t.thumbs, { 12977 init: o, 12978 update: c 12979 }); 12980 }, function (e) { 12981 let { 12982 swiper: t, 12983 extendParams: s, 12984 emit: a, 12985 once: i 12986 } = e; 12987 s({ 12988 freeMode: { 12989 enabled: !1, 12990 momentum: !0, 12991 momentumRatio: 1, 12992 momentumBounce: !0, 12993 momentumBounceRatio: 1, 12994 momentumVelocityRatio: 1, 12995 sticky: !1, 12996 minimumVelocity: .02 12997 } 12998 }), Object.assign(t, { 12999 freeMode: { 13000 onTouchStart: function () { 13001 if (t.params.cssMode) return; 13002 const e = t.getTranslate(); 13003 t.setTranslate(e), t.setTransition(0), t.touchEventsData.velocities.length = 0, t.freeMode.onTouchEnd({ 13004 currentPos: t.rtl ? t.translate : -t.translate 13005 }); 13006 }, 13007 onTouchMove: function () { 13008 if (t.params.cssMode) return; 13009 const { 13010 touchEventsData: e, 13011 touches: s 13012 } = t; 13013 0 === e.velocities.length && e.velocities.push({ 13014 position: s[t.isHorizontal() ? "startX" : "startY"], 13015 time: e.touchStartTime 13016 }), e.velocities.push({ 13017 position: s[t.isHorizontal() ? "currentX" : "currentY"], 13018 time: l() 13019 }); 13020 }, 13021 onTouchEnd: function (e) { 13022 let { 13023 currentPos: s 13024 } = e; 13025 if (t.params.cssMode) return; 13026 const { 13027 params: r, 13028 wrapperEl: n, 13029 rtlTranslate: o, 13030 snapGrid: d, 13031 touchEventsData: c 13032 } = t, 13033 p = l() - c.touchStartTime; 13034 if (s < -t.minTranslate()) t.slideTo(t.activeIndex);else if (s > -t.maxTranslate()) t.slides.length < d.length ? t.slideTo(d.length - 1) : t.slideTo(t.slides.length - 1);else { 13035 if (r.freeMode.momentum) { 13036 if (c.velocities.length > 1) { 13037 const e = c.velocities.pop(), 13038 s = c.velocities.pop(), 13039 a = e.position - s.position, 13040 i = e.time - s.time; 13041 t.velocity = a / i, t.velocity /= 2, Math.abs(t.velocity) < r.freeMode.minimumVelocity && (t.velocity = 0), (i > 150 || l() - e.time > 300) && (t.velocity = 0); 13042 } else t.velocity = 0; 13043 t.velocity *= r.freeMode.momentumVelocityRatio, c.velocities.length = 0; 13044 let e = 1e3 * r.freeMode.momentumRatio; 13045 const s = t.velocity * e; 13046 let p = t.translate + s; 13047 o && (p = -p); 13048 let u, 13049 m = !1; 13050 const h = 20 * Math.abs(t.velocity) * r.freeMode.momentumBounceRatio; 13051 let f; 13052 if (p < t.maxTranslate()) r.freeMode.momentumBounce ? (p + t.maxTranslate() < -h && (p = t.maxTranslate() - h), u = t.maxTranslate(), m = !0, c.allowMomentumBounce = !0) : p = t.maxTranslate(), r.loop && r.centeredSlides && (f = !0);else if (p > t.minTranslate()) r.freeMode.momentumBounce ? (p - t.minTranslate() > h && (p = t.minTranslate() + h), u = t.minTranslate(), m = !0, c.allowMomentumBounce = !0) : p = t.minTranslate(), r.loop && r.centeredSlides && (f = !0);else if (r.freeMode.sticky) { 13053 let e; 13054 for (let t = 0; t < d.length; t += 1) if (d[t] > -p) { 13055 e = t; 13056 break; 13057 } 13058 p = Math.abs(d[e] - p) < Math.abs(d[e - 1] - p) || "next" === t.swipeDirection ? d[e]
13058: d[e - 1], p = -p; 13059 } 13060 if (f && i("transitionEnd", () => { 13061 t.loopFix(); 13062 }), 0 !== t.velocity) { 13063 if (e = o ? Math.abs((-p - t.translate) / t.velocity) : Math.abs((p - t.translate) / t.velocity), r.freeMode.sticky) { 13064 const s = Math.abs((o ? -p : p) - t.translate), 13065 a = t.slidesSizesGrid[t.activeIndex]; 13066 e = s < a ? r.speed : s < 2 * a ? 1.5 * r.speed : 2.5 * r.speed; 13067 } 13068 } else if (r.freeMode.sticky) return void t.slideToClosest(); 13069 r.freeMode.momentumBounce && m ? (t.updateProgress(u), t.setTransition(e), t.setTranslate(p), t.transitionStart(!0, t.swipeDirection), t.animating = !0, y(n, () => { 13070 t && !t.destroyed && c.allowMomentumBounce && (a("momentumBounce"), t.setTransition(r.speed), setTimeout(() => { 13071 t.setTranslate(u), y(n, () => { 13072 t && !t.destroyed && t.transitionEnd(); 13073 }); 13074 }, 0)); 13075 }
13075)) : t.velocity ? (a("_freeModeNoMomentumRelease"), t.updateProgress(p), t.setTransition(e), t.setTranslate(p), t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, y(n, () => { 13076 t && !t.destroyed && t.transitionEnd(); 13077 }))) : t.updateProgress(p), t.updateActiveIndex(), t.updateSlidesClasses(); 13078 } else { 13079 if (r.freeMode.sticky) return void t.slideToClosest(); 13080 r.freeMode && a("_freeModeNoMomentumRelease"); 13081 } 13082 (!r.freeMode.momentum || p >= r.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()); 13083 } 13084 } 13085 } 13086 }); 13087 }, function (e) { 13088 let t, 13089 s, 13090 a, 13091 i, 13092 { 13093 swiper: r, 13094 extendParams: n, 13095 on: l 13096 } = e; 13097 n({ 13098 grid: { 13099 rows: 1, 13100 fill: "column" 13101 } 13102 }); 13103 const o = () => { 13104 let e = r.params.spaceBetween; 13105 return "string" == typeof e && e.indexOf("%") >= 0 ? e = parseFloat(e.replace("%", "")) / 100 * r.size : "string" == typeof e && (e = parseFloat(e)), e; 13106 }; 13107 l("init", () => { 13108 i = r.params.grid && r.params.grid.rows > 1; 13109 }), l("update", () => { 13110 const { 13111 params: e, 13112 el: t 13113 } = r, 13114 s = e.grid && e.grid.rows > 1; 13115 i && !s ? (t.classList.remove(`${e.containerModifierClass}grid`, `${e.containerModifierClass}grid-column`), a = 1, r.emitContainerClasses()) : !i && s && (t.classList.add(`${e.containerModifierClass}grid`), "column" === e.grid.fill && t.classList.add(`${e.containerModifierClass}grid-column`), r.emitContainerClasses()), i = s; 13116 }), r.grid = { 13117 initSlides: e => { 13118 const { 13119 slidesPerView: i 13120 } = r.params, 13121 { 13122 rows: n, 13123 fill: l 13124 } = r.params.grid; 13125 a = Math.floor(e / n), t = Math.floor(e / n) === e / n ? e : Math.ceil(e / n) * n, "auto" !== i && "row" === l && (t = Math.max(t, i * n)), s = t / n; 13126 }, 13127 updateSlide: (e, i, n, l) => { 13128 const { 13129 slidesPerGroup: d 13130 } = r.params, 13131 c = o(), 13132 { 13133 rows: p, 13134 fill: u 13135 } = r.params.grid; 13136 let m, h, f; 13137 if ("row" === u && d > 1) { 13138 const s = Math.floor(e / (d * p)), 13139 a = e - p * d * s, 13140 r = 0 === s ? d : Math.min(Math.ceil((n - s * p * d) / p), d); 13141 f = Math.floor(a / r), h = a - f * r + s * d, m = h + f * t / p, i.style.order = m; 13142 } else "column" === u ? (h = Math.floor(e / p), f = e - h * p, (h > a || h === a && f === p - 1) && (f += 1, f >= p && (f = 0, h += 1))) : (f = Math.floor(e / s), h = e - f * s); 13143 i.row = f, i.column = h, i.style[l("margin-top")] = 0 !== f ? c && `${c}px` : ""; 13144 }, 13145 updateWrapperSize: (e, s, a) => { 13146 const { 13147 centeredSlides: i, 13148 roundLengths: n 13149 } = r.params, 13150 l = o(), 13151 { 13152 rows: d 13153 } = r.params.grid; 13154 if (r.virtualSize = (e + l) * t, r.virtualSize = Math.ceil(r.virtualSize / d) - l, r.wrapperEl.style[a("width")] = `${r.virtualSize + l}px`, i) { 13155 const e = []; 13156 for (let t = 0; t < s.length; t += 1) { 13157 let a = s[t]; 13158 n && (a = Math.floor(a)), s[t] < r.virtualSize + s[0] && e.push(a); 13159 } 13160 s.splice(0, s.length), s.push(...e); 13161 } 13162 } 13163 }; 13164 }, function (e) { 13165 let { 13166 swiper: t 13167 } = e; 13168 Object.assign(t, { 13169 appendSlide: te.bind(t), 13170 prependSlide: se.bind(t), 13171 addSlide: ae.bind(t), 13172 removeSlide: ie.bind(t), 13173 removeAllSlides: re.bind(t) 13174 }); 13175 }, function (e) { 13176 let { 13177 swiper: t, 13178 extendParams: s, 13179 on: a 13180 } = e; 13181 s({ 13182 fadeEffect: { 13183 crossFade: !1 13184 } 13185 }), ne({ 13186 effect: "fade", 13187 swiper: t, 13188 on: a, 13189 setTranslate: () => { 13190 const { 13191 slides: e 13192 } = t; 13193 t.params.fadeEffect; 13194 for (let s = 0; s < e.length; s += 1) { 13195 const e = t.slides[s]; 13196 let a = -e.swiperSlideOffset; 13197 t.params.virtualTranslate || (a -= t.translate); 13198 let i = 0; 13199 t.isHorizontal() || (i = a, a = 0); 13200 const r = t.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(e.progress), 0) : 1 + Math.min(Math.max(e.progress, -1), 0), 13201 n = le(0, e); 13202 n.style.opacity = r, n.style.transform = `translate3d(${a}px, ${i}px, 0px)`; 13203 } 13204 }, 13205 setTransition: e => { 13206 const s = t.slides.map(e => m(e));
vendor: 9,690 bytes, lines 13207-13447
13207 s.forEach(t => { 13208 t.style.transitionDuration = `${e}ms`; 13209 }), oe({ 13210 swiper: t, 13211 duration: e, 13212 transformElements: s, 13213 allSlides: !0 13214 }); 13215 }, 13216 overwriteParams: () => ({ 13217 slidesPerView: 1, 13218 slidesPerGroup: 1, 13219 watchSlidesProgress: !0, 13220 spaceBetween: 0, 13221 virtualTranslate: !t.params.cssMode 13222 }) 13223 }); 13224 }, function (e) { 13225 let { 13226 swiper: t, 13227 extendParams: s, 13228 on: a 13229 } = e; 13230 s({ 13231 cubeEffect: { 13232 slideShadows: !0, 13233 shadow: !0, 13234 shadowOffset: 20, 13235 shadowScale: .94 13236 } 13237 }); 13238 const i = (e, t, s) => { 13239 let a = s ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), 13240 i = s ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom"); 13241 a || (a = f("div", ("swiper-slide-shadow-cube swiper-slide-shadow-" + (s ? "left" : "top")).split(" ")), e.append(a)), i || (i = f("div", ("swiper-slide-shadow-cube swiper-slide-shadow-" + (s ? "right" : "bottom")).split(" ")), e.append(i)), a && (a.style.opacity = Math.max(-t, 0)), i && (i.style.opacity = Math.max(t, 0)); 13242 }; 13243 ne({ 13244 effect: "cube", 13245 swiper: t, 13246 on: a, 13247 setTranslate: () => { 13248 const { 13249 el: e, 13250 wrapperEl: s, 13251 slides: a, 13252 width: r, 13253 height: n, 13254 rtlTranslate: l, 13255 size: o, 13256 browser: d 13257 } = t, 13258 c = t.params.cubeEffect, 13259 p = t.isHorizontal(), 13260 u = t.virtual && t.params.virtual.enabled; 13261 let m, 13262 h = 0; 13263 c.shadow && (p ? (m = t.wrapperEl.querySelector(".swiper-cube-shadow"), m || (m = f("div", "swiper-cube-shadow"), t.wrapperEl.append(m)), m.style.height = `${r}px`) : (m = e.querySelector(".swiper-cube-shadow"), m || (m = f("div", "swiper-cube-shadow"), e.append(m)))); 13264 for (let e = 0; e < a.length; e += 1) { 13265 const t = a[e]; 13266 let s = e; 13267 u && (s = parseInt(t.getAttribute("data-swiper-slide-index"), 10)); 13268 let r = 90 * s, 13269 n = Math.floor(r / 360); 13270 l && (r = -r, n = Math.floor(-r / 360)); 13271 const d = Math.max(Math.min(t.progress, 1), -1); 13272 let m = 0, 13273 f = 0, 13274 g = 0; 13275 s % 4 == 0 ? (m = 4 * -n * o, g = 0) : (s - 1) % 4 == 0 ? (m = 0, g = 4 * -n * o) : (s - 2) % 4 == 0 ? (m = o + 4 * n * o, g = o) : (s - 3) % 4 == 0 && (m = -o, g = 3 * o + 4 * o * n), l && (m = -m), p || (f = m, m = 0); 13276 const v = `rotateX(${p ? 0 : -r}deg) rotateY(${p ? r : 0}deg) translate3d(${m}px, ${f}px, ${g}px)`; 13277 d <= 1 && d > -1 && (h = 90 * s + 90 * d, l && (h = 90 * -s - 90 * d)), t.style.transform = v, c.slideShadows && i(t, d, p); 13278 } 13279 if (s.style.transformOrigin = `50% 50% -${o / 2}px`, s.style["-webkit-transform-origin"] = `50% 50% -${o / 2}px`, c.shadow) if (p) m.style.transform = `translate3d(0px, ${r / 2 + c.shadowOffset}px, ${-r / 2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`;else { 13280 const e = Math.abs(h) - 90 * Math.floor(Math.abs(h) / 90), 13281 t = 1.5 - (Math.sin(2 * e * Math.PI / 360) / 2 + Math.cos(2 * e * Math.PI / 360) / 2), 13282 s = c.shadowScale, 13283 a = c.shadowScale / t, 13284 i = c.shadowOffset; 13285 m.style.transform = `scale3d(${s}, 1, ${a}) translate3d(0px, ${n / 2 + i}px, ${-n / 2 / a}px) rotateX(-90deg)`; 13286 } 13287 const g = (d.isSafari || d.isWebView) && d.needPerspectiveFix ? -o / 2 : 0; 13288 s.style.transform = `translate3d(0px,0,${g}px) rotateX(${t.isHorizontal() ? 0 : h}deg) rotateY(${t.isHorizontal() ? -h : 0}deg)`, s.style.setProperty("--swiper-cube-translate-z", `${g}px`); 13289 }, 13290 setTransition: e => { 13291 const { 13292 el: s, 13293 slides: a 13294 } = t; 13295 if (a.forEach(t => { 13296 t.style.transitionDuration = `${e}ms`, t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t => { 13297 t.style.transitionDuration = `${e}ms`; 13298 }); 13299 }), t.params.cubeEffect.shadow && !t.isHorizontal()) { 13300 const t = s.querySelector(".swiper-cube-shadow"); 13301 t && (t.style.transitionDuration = `${e}ms`); 13302 } 13303 }, 13304 recreateShadows: () => { 13305 const e = t.isHorizontal(); 13306 t.slides.forEach(t => { 13307 const s = Math.max(Math.min(t.progress, 1), -1); 13308 i(t, s, e); 13309 }); 13310 }, 13311 getEffectParams: () => t.params.cubeEffect, 13312 perspective: () => !0, 13313 overwriteParams: () => ({ 13314 slidesPerView: 1, 13315 slidesPerGroup: 1, 13316 watchSlidesProgress: !0, 13317 resistanceRatio: 0, 13318 spaceBetween: 0, 13319 centeredSlides: !1, 13320 virtualTranslate: !0 13321 }) 13322 }); 13323 }, function (e) { 13324 let { 13325 swiper: t, 13326 extendParams: s, 13327 on: a 13328 } = e; 13329 s({ 13330 flipEffect: { 13331 slideShadows: !0, 13332 limitRotation: !0 13333 } 13334 }); 13335 const i = (e, s) => { 13336 let a = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), 13337 i = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom"); 13338 a || (a = de("flip", e, t.isHorizontal() ? "left" : "top")), i || (i = de("flip", e, t.isHorizontal() ? "right" : "bottom")), a && (a.style.opacity = Math.max(-s, 0)), i && (i.style.opacity = Math.max(s, 0)); 13339 }; 13340 ne({ 13341 effect: "flip", 13342 swiper: t, 13343 on: a, 13344 setTranslate: () => { 13345 const { 13346 slides: e, 13347 rtlTranslate: s 13348 } = t, 13349 a = t.params.flipEffect; 13350 for (let r = 0; r < e.length; r += 1) { 13351 const n = e[r]; 13352 let l = n.progress; 13353 t.params.flipEffect.limitRotation && (l = Math.max(Math.min(n.progress, 1), -1)); 13354 const o = n.swiperSlideOffset; 13355 let d = -180 * l, 13356 c = 0, 13357 p = t.params.cssMode ? -o - t.translate : -o, 13358 u = 0; 13359 t.isHorizontal() ? s && (d = -d) : (u = p, p = 0, c = -d, d = 0), n.style.zIndex = -Math.abs(Math.round(l)) + e.length, a.slideShadows && i(n, l); 13360 const m = `translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)`; 13361 le(0, n).style.transform = m; 13362 } 13363 }, 13364 setTransition: e => { 13365 const s = t.slides.map(e => m(e)); 13366 s.forEach(t => { 13367 t.style.transitionDuration = `${e}ms`, t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t => { 13368 t.style.transitionDuration = `${e}ms`; 13369 }); 13370 }), oe({ 13371 swiper: t, 13372 duration: e, 13373 transformElements: s 13374 }); 13375 }, 13376 recreateShadows: () => { 13377 t.params.flipEffect, t.slides.forEach(e => { 13378 let s = e.progress; 13379 t.params.flipEffect.limitRotation && (s = Math.max(Math.min(e.progress, 1), -1)), i(e, s); 13380 }); 13381 }, 13382 getEffectParams: () => t.params.flipEffect, 13383 perspective: () => !0, 13384 overwriteParams: () => ({ 13385 slidesPerView: 1, 13386 slidesPerGroup: 1, 13387 watchSlidesProgress: !0, 13388 spaceBetween: 0, 13389 virtualTranslate: !t.params.cssMode 13390 }) 13391 }); 13392 }, function (e) { 13393 let { 13394 swiper: t, 13395 extendParams: s, 13396 on: a 13397 } = e; 13398 s({ 13399 coverflowEffect: { 13400 rotate: 50, 13401 stretch: 0, 13402 depth: 100, 13403 scale: 1, 13404 modifier: 1, 13405 slideShadows: !0 13406 } 13407 }), ne({ 13408 effect: "coverflow", 13409 swiper: t, 13410 on: a, 13411 setTranslate: () => { 13412 const { 13413 width: e, 13414 height: s, 13415 slides: a, 13416 slidesSizesGrid: i 13417 } = t, 13418 r = t.params.coverflowEffect, 13419 n = t.isHorizontal(), 13420 l = t.translate, 13421 o = n ? e / 2 - l : s / 2 - l, 13422 d = n ? r.rotate : -r.rotate, 13423 c = r.depth; 13424 for (let e = 0, t = a.length; e < t; e += 1) { 13425 const t = a[e], 13426 s = i[e], 13427 l = (o - t.swiperSlideOffset - s / 2) / s, 13428 p = "function" == typeof r.modifier ? r.modifier(l) : l * r.modifier; 13429 let u = n ? d * p : 0, 13430 m = n ? 0 : d * p, 13431 h = -c * Math.abs(p), 13432 f = r.stretch; 13433 "string" == typeof f && -1 !== f.indexOf("%") && (f = parseFloat(r.stretch) / 100 * s); 13434 let g = n ? 0 : f * p, 13435 v = n ? f * p : 0, 13436 w = 1 - (1 - r.scale) * Math.abs(p); 13437 Math.abs(v) < .001 && (v = 0), Math.abs(g) < .001 && (g = 0), Math.abs(h) < .001 && (h = 0), Math.abs(u) < .001 && (u = 0), Math.abs(m) < .001 && (m = 0), Math.abs(w) < .001 && (w = 0); 13438 const b = `translate3d(${v}px,${g}px,${h}px) rotateX(${m}deg) rotateY(${u}deg) scale(${w})`; 13439 if (le(0, t).style.transform = b, t.style.zIndex = 1 - Math.abs(Math.round(p)), r.slideShadows) { 13440 let e = n ? t.querySelector(".swiper-slide-shadow-left") : t.querySelector(".swiper-slide-shadow-top"), 13441 s = n ? t.querySelector(".swiper-slide-shadow-right") : t.querySelector(".swiper-slide-shadow-bottom"); 13442 e || (e = de("coverflow", t, n ? "left" : "top")), s || (s = de("coverflow", t, n ? "right" : "bottom")), e && (e.style.opacity = p > 0 ? p : 0), s && (s.style.opacity = -p > 0 ? -p : 0); 13443 } 13444 } 13445 }, 13446 setTransition: e => { 13447 t.slides.map(e =>
vendor: 6,484 bytes, lines 13447-13624
13447 m(e)).forEach(t => { 13448 t.style.transitionDuration = `${e}ms`, t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t => { 13449 t.style.transitionDuration = `${e}ms`; 13450 }); 13451 }); 13452 }, 13453 perspective: () => !0, 13454 overwriteParams: () => ({ 13455 watchSlidesProgress: !0 13456 }) 13457 }); 13458 }, function (e) { 13459 let { 13460 swiper: t, 13461 extendParams: s, 13462 on: a 13463 } = e; 13464 s({ 13465 creativeEffect: { 13466 limitProgress: 1, 13467 shadowPerProgress: !1, 13468 progressMultiplier: 1, 13469 perspective: !0, 13470 prev: { 13471 translate: [0, 0, 0], 13472 rotate: [0, 0, 0], 13473 opacity: 1, 13474 scale: 1 13475 }, 13476 next: { 13477 translate: [0, 0, 0], 13478 rotate: [0, 0, 0], 13479 opacity: 1, 13480 scale: 1 13481 } 13482 } 13483 }); 13484 const i = e => "string" == typeof e ? e : `${e}px`; 13485 ne({ 13486 effect: "creative", 13487 swiper: t, 13488 on: a, 13489 setTranslate: () => { 13490 const { 13491 slides: e, 13492 wrapperEl: s, 13493 slidesSizesGrid: a 13494 } = t, 13495 r = t.params.creativeEffect, 13496 { 13497 progressMultiplier: n 13498 } = r, 13499 l = t.params.centeredSlides; 13500 if (l) { 13501 const e = a[0] / 2 - t.params.slidesOffsetBefore || 0; 13502 s.style.transform = `translateX(calc(50% - ${e}px))`; 13503 } 13504 for (let s = 0; s < e.length; s += 1) { 13505 const a = e[s], 13506 o = a.progress, 13507 d = Math.min(Math.max(a.progress, -r.limitProgress), r.limitProgress); 13508 let c = d; 13509 l || (c = Math.min(Math.max(a.originalProgress, -r.limitProgress), r.limitProgress)); 13510 const p = a.swiperSlideOffset, 13511 u = [t.params.cssMode ? -p - t.translate : -p, 0, 0], 13512 m = [0, 0, 0]; 13513 let h = !1; 13514 t.isHorizontal() || (u[1] = u[0], u[0] = 0); 13515 let f = { 13516 translate: [0, 0, 0], 13517 rotate: [0, 0, 0], 13518 scale: 1, 13519 opacity: 1 13520 }; 13521 d < 0 ? (f = r.next, h = !0) : d > 0 && (f = r.prev, h = !0), u.forEach((e, t) => { 13522 u[t] = `calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d * n)}))`; 13523 }), m.forEach((e, t) => { 13524 m[t] = f.rotate[t] * Math.abs(d * n); 13525 }), a.style.zIndex = -Math.abs(Math.round(o)) + e.length; 13526 const g = u.join(", "), 13527 v = `rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`, 13528 w = c < 0 ? `scale(${1 + (1 - f.scale) * c * n})` : `scale(${1 - (1 - f.scale) * c * n})`, 13529 b = c < 0 ? 1 + (1 - f.opacity) * c * n : 1 - (1 - f.opacity) * c * n, 13530 y = `translate3d(${g}) ${v} ${w}`; 13531 if (h && f.shadow || !h) { 13532 let e = a.querySelector(".swiper-slide-shadow"); 13533 if (!e && f.shadow && (e = de("creative", a)), e) { 13534 const t = r.shadowPerProgress ? d * (1 / r.limitProgress) : d; 13535 e.style.opacity = Math.min(Math.max(Math.abs(t), 0), 1); 13536 } 13537 } 13538 const E = le(0, a); 13539 E.style.transform = y, E.style.opacity = b, f.origin && (E.style.transformOrigin = f.origin); 13540 } 13541 }, 13542 setTransition: e => { 13543 const s = t.slides.map(e => m(e)); 13544 s.forEach(t => { 13545 t.style.transitionDuration = `${e}ms`, t.querySelectorAll(".swiper-slide-shadow").forEach(t => { 13546 t.style.transitionDuration = `${e}ms`; 13547 }); 13548 }), oe({ 13549 swiper: t, 13550 duration: e, 13551 transformElements: s, 13552 allSlides: !0 13553 }); 13554 }, 13555 perspective: () => t.params.creativeEffect.perspective, 13556 overwriteParams: () => ({ 13557 watchSlidesProgress: !0, 13558 virtualTranslate: !t.params.cssMode 13559 }) 13560 }); 13561 }, function (e) { 13562 let { 13563 swiper: t, 13564 extendParams: s, 13565 on: a 13566 } = e; 13567 s({ 13568 cardsEffect: { 13569 slideShadows: !0, 13570 rotate: !0, 13571 perSlideRotate: 2, 13572 perSlideOffset: 8 13573 } 13574 }), ne({ 13575 effect: "cards", 13576 swiper: t, 13577 on: a, 13578 setTranslate: () => { 13579 const { 13580 slides: e, 13581 activeIndex: s, 13582 rtlTranslate: a 13583 } = t, 13584 i = t.params.cardsEffect, 13585 { 13586 startTranslate: r, 13587 isTouched: n 13588 } = t.touchEventsData, 13589 l = a ? -t.translate : t.translate; 13590 for (let o = 0; o < e.length; o += 1) { 13591 const d = e[o], 13592 c = d.progress, 13593 p = Math.min(Math.max(c, -4), 4); 13594 let u = d.swiperSlideOffset; 13595 t.params.centeredSlides && !t.params.cssMode && (t.wrapperEl.style.transform = `translateX(${t.minTranslate()}px)`), t.params.centeredSlides && t.params.cssMode && (u -= e[0].swiperSlideOffset); 13596 let m = t.params.cssMode ? -u - t.translate : -u, 13597 h = 0; 13598 const f = -100 * Math.abs(p); 13599 let g = 1, 13600 v = -i.perSlideRotate * p, 13601 w = i.perSlideOffset - .75 * Math.abs(p); 13602 const b = t.virtual && t.params.virtual.enabled ? t.virtual.from + o : o, 13603 y = (b === s || b === s - 1) && p > 0 && p < 1 && (n || t.params.cssMode) && l < r, 13604 E = (b === s || b === s + 1) && p < 0 && p > -1 && (n || t.params.cssMode) && l > r; 13605 if (y || E) { 13606 const e = (1 - Math.abs((Math.abs(p) - .5) / .5)) ** .5; 13607 v += -28 * p * e, g += -.5 * e, w += 96 * e, h = -25 * e * Math.abs(p) + "%"; 13608 } 13609 if (m = p < 0 ? `calc(${m}px ${a ? "-" : "+"} (${w * Math.abs(p)}%))` : p > 0 ? `calc(${m}px ${a ? "-" : "+"} (-${w * Math.abs(p)}%))` : `${m}px`, !t.isHorizontal()) { 13610 const e = h; 13611 h = m, m = e; 13612 } 13613 const x = p < 0 ? "" + (1 + (1 - g) * p) : "" + (1 - (1 - g) * p), 13614 S = `\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate ? a ? -v : v : 0}deg)\n scale(${x})\n `; 13615 if (i.slideShadows) { 13616 let e = d.querySelector(".swiper-slide-shadow"); 13617 e || (e = de("cards", d)), e && (e.style.opacity = Math.min(Math.max((Math.abs(p) - .5) / .5, 0), 1)); 13618 } 13619 d.style.zIndex = -Math.abs(Math.round(c)) + e.length; 13620 le(0, d).style.transform = S; 13621 } 13622 }, 13623 setTransition: e => { 13624 const s = t.slides.map(e => m(e));
13625 s.forEach(t => { 13626 t.style.transitionDuration = `${e}ms`, t.querySelectorAll(".swiper-slide-shadow").forEach(t => { 13627 t.style.transitionDuration = `${e}ms`; 13628 }); 13629 }), oe({ 13630 swiper: t, 13631 duration: e, 13632 transformElements: s 13633 }); 13634 }, 13635 perspective: () => !0, 13636 overwriteParams: () => ({ 13637 watchSlidesProgress: !0, 13638 virtualTranslate: !t.params.cssMode 13639 }) 13640 }); 13641 }]; 13642 return Q.use(ce), Q; 13643}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.