PageSourceSearch

https://www.arohatours.co.nz/scripts/misc.js?v=2

js arohatours.co.nz collected 2026-10-04 13:27:42 UTC 121,351 bytes, 605 lines download raw bytes

1/*! @vimeo/player v2.2.0 | (c) 2017 Vimeo | MIT License | https://github.com/vimeo/player.js 
2
3!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e.Vimeo = e.Vimeo || {}, e.Vimeo.Player = t()) }(this, function () { "use strict"; function e(e, t) { return t = { exports: {} }, e(t, t.exports), t.exports } function t(e, t, n) { var r = E.get(e.element) || {}; t in r || (r[t] = []), r[t].push(n), E.set(e.element, r) } function n(e, t) { return (E.get(e.element) || {})[t] || [] } function r(e, t, n) { var r = E.get(e.element) || {}; if (!r[t]) return !0; if (!n) return r[t] = [], E.set(e.element, r), !0; var i = r[t].indexOf(n); return -1 !== i && r[t].splice(i, 1), E.set(e.element, r), r[t] && 0 === r[t].length } function i(e, t) { var i = n(e, t); if (i.length < 1) return !1; var o = i.shift(); return r(e, t, o), o } function o(e, t) { var n = E.get(e); E.set(t, n), E.delete(e) } function a(e, t) { return 0 === e.indexOf(t.toLowerCase()) ? e : "" + t.toLowerCase() + e.substr(0, 1).toUpperCase() + e.substr(1) } function u(e) { return e instanceof window.HTMLElement } function s(e) { return !isNaN(parseFloat(e)) && isFinite(e) && Math.floor(e) == e } function c(e) { return /^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(e) } function f() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.id, n = e.url, r = t || n; if (!r) throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute."); if (s(r)) return "https://vimeo.com/" + r; if (c(r)) return r.replace("http:", "https:"); if (t) throw new TypeError("“" + t + "” is not a valid video id."); throw new TypeError("“" + r + "” is not a vimeo.com url.") } function l(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return T.reduce(function (t, n) { var r = e.getAttribute("data-vimeo-" + n); return (r || "" === r) && (t[n] = "" === r ? 1 : r), t }, t) } function h(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return new Promise(function (n, r) { if (!c(e)) throw new TypeError("“" + e + "” is not a vimeo.com url."); var i = "https://vimeo.com/api/oembed.json?url=" + encodeURIComponent(e); for (var o in t) t.hasOwnProperty(o) && (i += "&" + o + "=" + encodeURIComponent(t[o])); var a = "XDomainRequest" in window ? new XDomainRequest : new XMLHttpRequest; a.open("GET", i, !0), a.onload = function () { if (404 === a.status) return void r(new Error("“" + e + "” was not found.")); if (403 === a.status) return void r(new Error("“" + e + "” is not embeddable.")); try { var t = JSON.parse(a.responseText); n(t) } catch (e) { r(e) } }, a.onerror = function () { var e = a.status ? " (" + a.status + ")" : ""; r(new Error("There was an error fetching the embed code from Vimeo" + e + ".")) }, a.send() }) } function d(e, t) { var n = e.html; if (!t) throw new TypeError("An element must be provided"); if (null !== t.getAttribute("data-vimeo-initialized")) return t.querySelector("iframe"); var r = document.createElement("div"); return r.innerHTML = n, t.appendChild(r.firstChild), t.setAttribute("data-vimeo-initialized", "true"), t.querySelector("iframe") } function v(e) { return "string" == typeof e && (e = JSON.parse(e)), e } function p(e, t, n) { if (e.element.contentWindow && e.element.contentWindow.postMessage) { var r = { method: t }; void 0 !== n && (r.value = n); var i = parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/, "$1")); i >= 8 && i < 10 && (r = JSON.stringify(r)), e.element.contentWindow.postMessage(r, e.origin) } } function y(e, t) { t = v(t); var o = [], a = void 0; if (t.event) { if ("error" === t.event) { n(e, t.data.method).forEach(function (n) { var i = new Error(t.data.message); i.name = t.data.name, n.reject(i), r(e, t.data.method, n) }) } o = n(e, "event:" + t.event), a = t.data } else if (t.method) { var u = i(e, t.method); u && (o.push(u), a = t.value) } o.forEach(function (t) { try { if ("function" == typeof t) return void t.call(e, a); t.resolve(a) } catch (e) { } }) } function m(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } var g = void 0 !== Array.prototype.indexOf, w = void 0 !== window.postMessage; if (!g || !w) throw new Error("Sorry, the Vimeo Player API is not available in this browser."); var k = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, b = (e(function (e, t) { !function (e) { function t(e, t) { function r(e) { if (!this || this.constructor !== r) return new r(e); this._keys = [], this._values = [], this._itp = [], this.objectOnly = t, e && n.call(this, e) } return t || w(e, "size", { get: y }), e.constructor = r, r.prototype = e, r } function n(e) { this.add ? e.forEach(this.add, this) : e.forEach(function (e) { this.set(e[0], e[1]) }, this) } function r(e) { return this.has(e) && (this._keys.splice(g, 1), this._values.splice(g, 1), this._itp.forEach(function (e) { g < e[0] && e[0]-- })), -1 < g } function i(e) { return this.has(e) ? this._values[g] : void 0 } function o(e, t) { if (this.objectOnly && t !== Object(t)) throw new TypeError("Invalid value used as weak collection key"); if (t != t || 0 === t) for (g = e.length; g-- && !k(e[g], t);); else g = e.indexOf(t); return -1 < g } function a(e) { return o.call(this, this._values, e) } function u(e) { return o.call(this, this._keys, e) } function s(e, t) { return this.has(e) ? this._values[g] = t : this._values[this._keys.push(e) - 1] = t, this } function c(e) { return this.has(e) || this._values.push(e), this } function f() { (this._keys || 0).length = this._values.length = 0 } function l() { return p(this._itp, this._keys) } function h() { return p(this._itp, this._values) } function d() { return p(this._itp, this._keys, this._values) } function v() { return p(this._itp, this._values, this._values) } function p(e, t, n) { var r = [0], i = !1; return e.push(r), { next: function () { var o, a = r[0]; return !i && a < t.length ? (o = n ? [t[a], n[a]] : t[a], r[0]++) : (i = !0, e.splice(e.indexOf(r), 1)), { done: i, value: o } } } } function y() { return this._values.length } function m(e, t) { for (var n = this.entries(); ;) { var r = n.next(); if (r.done) break; e.call(t, r.value[1], r.value[0], this) } } var g, w = Object.defineProperty, k = function (e, t) { return e === t || e !== e && t !== t }; "undefined" == typeof WeakMap && (e.WeakMap = t({ delete: r, clear: f, get: i, has: u, set: s }, !0)), "undefined" != typeof Map && "function" == typeof (new Map).values && (new Map).values().next || (e.Map = t({ delete: r, has: u, get: i, set: s, keys: l, values: h, entries: d, forEac
3h: m, clear: f })), "undefined" != typeof Set && "function" == typeof (new Set).values && (new Set).values().next || (e.Set = t({ has: a, add: c, delete: r, clear: f, keys: h, values: h, entries: v, forEach: m })), "undefined" == typeof WeakSet && (e.WeakSet = t({ delete: r, add: c, clear: f, has: a }, !0)) }(void 0 !== k ? k : window) }), e(function (e) { var t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }; !function (t, n, r) { n[t] = n[t] || r(), e.exports && (e.exports = n[t]) }("Promise", k, function () { function e(e, t) { d.add(e, t), h || (h = p(d.drain)) } function n(e) { var n, r = void 0 === e ? "undefined" : t(e); return null == e || "object" != r && "function" != r || (n = e.then), "function" == typeof n && n } function r() { for (var e = 0; e < this.chain.length; e++) i(this, 1 === this.state ? this.chain[e].success : this.chain[e].failure, this.chain[e]); this.chain.length = 0 } function i(e, t, r) { var i, o; try { !1 === t ? r.reject(e.msg) : (i = !0 === t ? e.msg : t.call(void 0, e.msg), i === r.promise ? r.reject(TypeError("Promise-chain cycle")) : (o = n(i)) ? o.call(i, r.resolve, r.reject) : r.resolve(i)) } catch (e) { r.reject(e) } } function o(t) { var i, u = this; if (!u.triggered) { u.triggered = !0, u.def && (u = u.def); try { (i = n(t)) ? e(function () { var e = new s(u); try { i.call(t, function () { o.apply(e, arguments) }, function () { a.apply(e, arguments) }) } catch (t) { a.call(e, t) } }) : (u.msg = t, u.state = 1, u.chain.length > 0 && e(r, u)) } catch (e) { a.call(new s(u), e) } } } function a(t) { var n = this; n.triggered || (n.triggered = !0, n.def && (n = n.def), n.msg = t, n.state = 2, n.chain.length > 0 && e(r, n)) } function u(e, t, n, r) { for (var i = 0; i < t.length; i++) !function (i) { e.resolve(t[i]).then(function (e) { n(i, e) }, r) }(i) } function s(e) { this.def = e, this.triggered = !1 } function c(e) { this.promise = e, this.state = 0, this.triggered = !1, this.chain = [], this.msg = void 0 } function f(t) { if ("function" != typeof t) throw TypeError("Not a function"); if (0 !== this.__NPO__) throw TypeError("Not a promise"); this.__NPO__ = 1; var n = new c(this); this.then = function (t, i) { var o = { success: "function" != typeof t || t, failure: "function" == typeof i && i }; return o.promise = new this.constructor(function (e, t) { if ("function" != typeof e || "function" != typeof t) throw TypeError("Not a function"); o.resolve = e, o.reject = t }), n.chain.push(o), 0 !== n.state && e(r, n), o.promise }, this.catch = function (e) { return this.then(void 0, e) }; try { t.call(void 0, function (e) { o.call(n, e) }, function (e) { a.call(n, e) }) } catch (e) { a.call(n, e) } } var l, h, d, v = Object.prototype.toString, p = "undefined" != typeof setImmediate ? function (e) { return setImmediate(e) } : setTimeout; try { Object.defineProperty({}, "x", {}), l = function (e, t, n, r) { return Object.defineProperty(e, t, { value: n, writable: !0, configurable: !1 !== r }) } } catch (e) { l = function (e, t, n) { return e[t] = n, e } } d = function () { function e(e, t) { this.fn = e, this.self = t, this.next = void 0 } var t, n, r; return { add: function (i, o) { r = new e(i, o), n ? n.next = r : t = r, n = r, r = void 0 }, drain: function () { var e = t; for (t = n = h = void 0; e;) e.fn.call(e.self), e = e.next } } }(); var y = l({}, "constructor", f, !1); return f.prototype = y, l(y, "__NPO__", 0, !1), l(f, "resolve", function (e) { var n = this; return e && "object" == (void 0 === e ? "undefined" : t(e)) && 1 === e.__NPO__ ? e : new n(function (t, n) { if ("function" != typeof t || "function" != typeof n) throw TypeError("Not a function"); t(e) }) }), l(f, "reject", function (e) { return new this(function (t, n) { if ("function" != typeof t || "function" != typeof n) throw TypeError("Not a function"); n(e) }) }), l(f, "all", function (e) { var t = this; return "[object Array]" != v.call(e) ? t.reject(TypeError("Not an array")) : 0 === e.length ? t.resolve([]) : new t(function (n, r) { if ("function" != typeof n || "function" != typeof r) throw TypeError("Not a function"); var i = e.length, o = Array(i), a = 0; u(t, e, function (e, t) { o[e] = t, ++a === i && n(o) }, r) }) }), l(f, "race", function (e) { var t = this; return "[object Array]" != v.call(e) ? t.reject(TypeError("Not an array")) : new t(function (n, r) { if ("function" != typeof n || "function" != typeof r) throw TypeError("Not a function"); u(t, e, function (e, t) { n(t) }, r) }) }), f }) })), E = new WeakMap, T = ["id", "url", "width", "maxwidth", "height", "maxheight", "portrait", "title", "byline", "color", "autoplay", "autopause", "loop", "responsive", "speed"], _ = function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t } }(), j = new WeakMap, x = new WeakMap, Player = function () { function Player(e) { var t = this, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (m(this, Player), window.jQuery && e instanceof jQuery && (e.length > 1 && window.console && console.warn && console.warn("A jQuery object with multiple elements was passed, using the first element."), e = e[0]), "string" == typeof e && (e = document.getElementById(e)), !u(e)) throw new TypeError("You must pass either a valid element or a valid id."); if ("IFRAME" !== e.nodeName) { var r = e.querySelector("iframe"); r && (e = r) }
3 if ("IFRAME" === e.nodeName && !c(e.getAttribute("src") || "")) throw new Error("The player element passed isn’t a Vimeo embed."); if (j.has(e)) return j.get(e); this.element = e, this.origin = "*"; var i = new b(function (r, i) { var a = function (e) { if (c(e.origin) && t.element.contentWindow === e.source) { "*" === t.origin && (t.origin = e.origin); var n = v(e.data), i = "event" in n && "ready" === n.event, o = "method" in n && "ping" === n.method; if (i || o) return t.element.setAttribute("data-ready", "true"), void r(); y(t, n) } }; if (window.addEventListener ? window.addEventListener("message", a, !1) : window.attachEvent && window.attachEvent("onmessage", a), "IFRAME" !== t.element.nodeName) { var u = l(e, n); h(f(u), u).then(function (n) { var r = d(n, e); return t.element = r, o(e, r), j.set(t.element, t), n }).catch(function (e) { return i(e) }) } }); return x.set(this, i), j.set(this.element, this), "IFRAME" === this.element.nodeName && p(this, "ping"), this } return _(Player, [{ key: "callMethod", value: function (e) { var n = this, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return new b(function (i, o) { return n.ready().then(function () { t(n, e, { resolve: i, reject: o }), p(n, e, r) }) }) } }, { key: "get", value: function (e) { var n = this; return new b(function (r, i) { return e = a(e, "get"), n.ready().then(function () { t(n, e, { resolve: r, reject: i }), p(n, e) }) }) } }, { key: "set", value: function (e, n) { var r = this; return b.resolve(n).then(function (n) { if (e = a(e, "set"), void 0 === n || null === n) throw new TypeError("There must be a value to set."); return r.ready().then(function () { return new b(function (i, o) { t(r, e, { resolve: i, reject: o }), p(r, e, n) }) }) }) } }, { key: "on", value: function (e, r) { if (!e) throw new TypeError("You must pass an event name."); if (!r) throw new TypeError("You must pass a callback function."); if ("function" != typeof r) throw new TypeError("The callback must be a function."); 0 === n(this, "event:" + e).length && this.callMethod("addEventListener", e).catch(function () { }), t(this, "event:" + e, r) } }, { key: "off", value: function (e, t) { if (!e) throw new TypeError("You must pass an event name."); if (t && "function" != typeof t) throw new TypeError("The callback must be a function."); r(this, "event:" + e, t) && this.callMethod("removeEventListener", e).catch(function (e) { }) } }, { key: "loadVideo", value: function (e) { return this.callMethod("loadVideo", e) } }, { key: "ready", value: function () { var e = x.get(this); return b.resolve(e) } }, { key: "addCuePoint", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return this.callMethod("addCuePoint", { time: e, data: t }) } }, { key: "removeCuePoint", value: function (e) { return this.callMethod("removeCuePoint", e) } }, { key: "enableTextTrack", value: function (e, t) { if (!e) throw new TypeError("You must pass a language."); return this.callMethod("enableTextTrack", { language: e, kind: t }) } }, { key: "disableTextTrack", value: function () { return this.callMethod("disableTextTrack") } }, { key: "pause", value: function () { return this.callMethod("pause") } }, { key: "play", value: function () { return this.callMethod("play") } }, { key: "unload", value: function () { return this.callMethod("unload") } }, { key: "getAutopause", value: function () { return this.get("autopause") } }, { key: "setAutopause", value: function (e) { return this.set("autopause", e) } }, { key: "getColor", value: function () { return this.get("color") } }, { key: "setColor", value: function (e) { return this.set("color", e) } }, { key: "getCuePoints", value: function () { return this.get("cuePoints") } }, { key: "getCurrentTime", value: function () { return this.get("currentTime") } }, { key: "setCurrentTime", value: function (e) { return this.set("currentTime", e) } }, { key: "getDuration", value: function () { return this.get("duration") } }, { key: "getEnded", value: function () { return this.get("ended") } }, { key: "getLoop", value: function () { return this.get("loop") } }, { key: "setLoop", value: function (e) { return this.set("loop", e) } }, { key: "getPaused", value: function () { return this.get("paused") } }, { key: "getPlaybackRate", value: function () { return this.get("playbackRate") } }, { key: "setPlaybackRate", value: function (e) { return this.set("playbackRate", e) } }, { key: "getTextTracks", value: function () { return this.get("textTracks") } }, { key: "getVideoEmbedCode", value: function () { return this.get("videoEmbedCode") } }, { key: "getVideoId", value: function () { return this.get("videoId") } }, { key: "getVideoTitle", value: function () { return this.get("videoTitle") } }, { key: "getVideoWidth", value: function () { return this.get("videoWidth") } }, { key: "getVideoHeight", value: function () { return this.get("videoHeight") } }, { key: "getVideoUrl", value: function () { return this.get("videoUrl") } }, { key: "getVolume", value: function () { return this.get("volume") } }, { key: "setVolume", value: function (e) { return this.set("volume", e) } }
3]), Player }(); return function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : document, t = [].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")), n = function (e) { "console" in window && console.error && console.error("There was an error creating an embed: " + e) }; t.forEach(function (e) { try { if (null !== e.getAttribute("data-vimeo-defer")) return; var t = l(e); h(f(t), t).then(function (t) { return d(t, e) }).catch(n) } catch (e) { n(e) } }) }(), function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : document, t = function (t) { if (c(t.origin) && t.data && "spacechange" === t.data.event) for (var n = e.querySelectorAll("iframe"), r = 0; r < n.length; r++) if (n[r].contentWindow === t.source) { var i = n[r].parentElement; i && -1 !== i.className.indexOf("vimeo-space") && (i.style.paddingBottom = t.data.data[0].bottom + "px"); break } }; window.addEventListener ? window.addEventListener("message", t, !1) : window.attachEvent && window.attachEvent("onmessage", t) }(), Player });
4*/
5//IE object-fit
6!function () { "use strict"; if ("undefined" != typeof window) { var t = window.navigator.userAgent.match(/Edge\/(\d{2})\./), e = t ? parseInt(t[1], 10) : null, n = !!e && (16 <= e && e <= 18); if (!("objectFit" in document.documentElement.style != !1) || n) { var o = function (t, e, i) { var n, o, l, a, d; if ((i = i.split(" ")).length < 2 && (i[1] = i[0]), "x" === t) n = i[0], o = i[1], l = "left", a = "right", d = e.clientWidth; else { if ("y" !== t) return; n = i[1], o = i[0], l = "top", a = "bottom", d = e.clientHeight } if (n !== l && o !== l) { if (n !== a && o !== a) return "center" === n || "50%" === n ? (e.style[l] = "50%", void (e.style["margin-" + l] = d / -2 + "px")) : void (0 <= n.indexOf("%") ? (n = parseInt(n, 10)) < 50 ? (e.style[l] = n + "%", e.style["margin-" + l] = d * (n / -100) + "px") : (n = 100 - n, e.style[a] = n + "%", e.style["margin-" + a] = d * (n / -100) + "px") : e.style[l] = n); e.style[a] = "0" } else e.style[l] = "0" }, l = function (t) { var e = t.dataset ? t.dataset.objectFit : t.getAttribute("data-object-fit"), i = t.dataset ? t.dataset.objectPosition : t.getAttribute("data-object-position"); e = e || "cover", i = i || "50% 50%"; var n = t.parentNode; return function (t) { var e = window.getComputedStyle(t, null), i = e.getPropertyValue("position"), n = e.getPropertyValue("overflow"), o = e.getPropertyValue("display"); i && "static" !== i || (t.style.position = "relative"), "hidden" !== n && (t.style.overflow = "hidden"), o && "inline" !== o || (t.style.display = "block"), 0 === t.clientHeight && (t.style.height = "100%"), -1 === t.className.indexOf("object-fit-polyfill") && (t.className = t.className + " object-fit-polyfill") }(n), function (t) { var e = window.getComputedStyle(t, null), i = { "max-width": "none", "max-height": "none", "min-width": "0px", "min-height": "0px", top: "auto", right: "auto", bottom: "auto", left: "auto", "margin-top": "0px", "margin-right": "0px", "margin-bottom": "0px", "margin-left": "0px" }; for (var n in i) e.getPropertyValue(n) !== i[n] && (t.style[n] = i[n]) }(t), t.style.position = "absolute", t.style.width = "auto", t.style.height = "auto", "scale-down" === e && (e = t.clientWidth < n.clientWidth && t.clientHeight < n.clientHeight ? "none" : "contain"), "none" === e ? (o("x", t, i), void o("y", t, i)) : "fill" === e ? (t.style.width = "100%", t.style.height = "100%", o("x", t, i), void o("y", t, i)) : (t.style.height = "100%", void ("cover" === e && t.clientWidth > n.clientWidth || "contain" === e && t.clientWidth < n.clientWidth ? (t.style.top = "0", t.style.marginTop = "0", o("x", t, i)) : (t.style.width = "100%", t.style.height = "auto", t.style.left = "0", t.style.marginLeft = "0", o("y", t, i)))) }, i = function (t) { if (void 0 === t || t instanceof Event) t = document.querySelectorAll("[data-object-fit]"); else if (t && t.nodeName) t = [t]; else { if ("object" != typeof t || !t.length || !t[0].nodeName) return !1; t = t } for (var e = 0; e < t.length; e++)if (t[e].nodeName) { var i = t[e].nodeName.toLowerCase(); if ("img" === i) { if (n) continue; t[e].complete ? l(t[e]) : t[e].addEventListener("load", function () { l(this) }) } else "video" === i ? 0 < t[e].readyState ? l(t[e]) : t[e].addEventListener("loadedmetadata", function () { l(this) }) : l(t[e]) } return !0 }; "loading" === document.readyState ? document.addEventListener("DOMContentLoaded", i) : i(), window.addEventListener("resize", i), window.objectFitPolyfill = i } else window.objectFitPolyfill = function () { return !1 } } }();
7
8
9$(document).ready(function () {
10
11    if ($("#bannerVideo").length > 0) {
12        var velmPromise = $("#bannerVideo")[0].play();
13        if (velmPromise !== undefined) {
14            velmPromise.then(function () {
15                $(".banner-image").remove();
16            }).catch(function () {
17                player.pause();
18                $(".banner-image").css("opacity", "1");
19                $(".video-container").remove();
20            });
21        }
22        objectFitPolyfill($("#bannerVideo"));
23    }
24
25    var valert = $('.valert');
26    if (valert.length > 0) {
27        $('.valert .close .vclose').click(function () {
28            sessionStorage.setItem('clicked', "1");
29            $("header").css({ "top": "0" });
30            valert.css({ "display": "none" });
31        });
32    }
33
34    if (sessionStorage.getItem('clicked') !== "1" && valert.length > 0) {
35        setTimeout(function () {
36            $("header").css({ "top": valert.height() - 40 });
37            valert.css({ "display": "flex" });
38        }, 1000);
39    }
40
41    if ($('.slide').length > 1 || $('.hero-slider-nav').length > 0) {
42        $('.hero-slider').slick({
43            slidesToShow: 1,
44            slidesToScroll: 1,
45            arrows: false,
46            fade: true,
47            dots: false,
48            autoplay: true,
49            autoplaySpeed: 10000,
50            asNavFor: '.hero-slider-nav'
51        });
52        $('.hero-slider-nav').slick({
53            slidesToShow: 1,
54            slidesToScroll: 1,
55            //asNavFor: '.hero-slider',
56            fade: true,
57            dots: true,
58            arrows: false,
59            focusOnSelect: true
60        });
61        $('.hero-slider-right').slick({
62            slidesToShow: 1,
63            slidesToScroll: 1,
64            fade: true,
65            dots: true,
66            arrows: false,
67            focusOnSelect: true,
68            autoplay: true,
69            autoplaySpeed: 5000
70        });
71    }
72
73    // MOBILE MENU
74    $('.menu, .overlay').click(function () {
75        $('.menu').toggleClass('active');
76        if ($('.menu').hasClass('active')) {
77            $('header nav').slideDown();
78            $('.overlay').fadeIn();
79        }
80        else {
81            $('header nav').slideUp();
82            $('.overlay').fadeOut();
83        }
84    });
85
86    // BOOK BOX
87    $('.book-main').click(function () {
88        $(this).parent('.book').toggleClass('active').find('.book-form').slideToggle();
89    });
90
91    // SCROLL TOP
92    $('.scroll-top').click(function () {
93        $('html, body').animate({ scrollTop: 0 }, 800);
94        return false;
95    });
96
97    // MAIN MENU DROPDOWN EFFECTS
98    $('.parent').hover(
99        function () {
100            $('.parent').find('li').hide();
101            if (width > 1200)
102                $(this).find('ul').addClass('active').find('.link').slideDown(100);
103            else
104                $(this).find('ul').addClass('active').find('li').slideDown(100);
105        }, function () {
106            $(this).find('ul').removeClass('active').find('li').slideUp(100);
107        }
108    );
109
110    $("#priority").priorityNav();
111
112    $('.parent > a, .subparent > a, .priority-parent > a').click(function (event) {
113        if ($(window).width() <= 1024) {
114            var parent = $(this).parent('li');
115            if (parent.hasClass('active')) {
116                parent.removeClass('active');
117                parent.find('ul').delay(500).find('li').slideUp(100);
118            }
119            else {
120                parent.find('ul').find('li').slideDown(100);
121                parent.addClass('active');
122            }
123            event.preventDefault();
124        }
125    });
126
127    // MISC
128    $('.tour-type, .item').hover(
129        function () {
130            $(this).find('.teaser').slideDown(200);
131        },
132        function () {
133            $(this).find('.teaser').slideUp(200);
134        });
135
136    $(window).resize().scroll();
137
138    $('nav li').scroll(function () {
139        var marginTop = $(this).css('margin-top');
140        $(this).css('margin-top', marginTop - 1);
141        //alert('a');
142    });
143
144    var userAgent = navigator.userAgent.toLowerCase();
145    if (userAgent.indexOf('safari') != -1) {
146        if (userAgent.indexOf('chrome') > -1) {
147            //browser is chrome
148        } else if ((userAgent.indexOf('opera') > -1) || (userAgent.indexOf('opr') > -1)) {
149            //browser is opera 
150        } else {
151            //browser is safari, add css
152            $('.section.footer .row-fluid .contourField').css('margin-right', '-4px');
153        }
154    }
155
156    if ($('.section.hero .video').length > 0) {
157
158        if ($('.video iframe').length > 0) {
159            var iframe = $('.video iframe');
160            player = new Vimeo.Player(iframe);
161
162            //if ($(window).width() > 480 && !$('.video').hasClass('no-auto')) {
163            //player.setVolume(0);
164            player.play();
165            //}
166        }
167
168
169
170        $('.audio-switch').click(function () {
171            $(this).toggleClass('active');
172            if ($(this).hasClass('active')) {
173                trackEvent('Button Click', 'Sound On');
174                player.setVolume(1);
175            }
176            else {
177                trackEvent('Button Click', 'Sound Off');
178                player.setVolume(0);
179            }
180        });
181    }
182
183    new WOW().init();
184});
185
186function resizeBoxes() {
187    if (width > 0) {
188        width = $(window).width();
189
190        clearTimeout(resizeTimer);
191        resizeTimer = setTimeout(function () {
192            //$('.items .item').css('min-height', $('.items .item img').height());
193            $('.duration').css('min-height', $('.duration img').height());
194            $('.location').css('min-height', $('.location img').height());
195
196            if ($('.section.hero .video').length > 0) {
197                //if (width > 480) {
198                player.play();
199                var iframe = $('.video iframe');
200                var heroHeight = width <= 1366 ? (iframe.height() - 15) : iframe.height();
201                $('.section.hero').css('height', heroHeight);
202
203                //    $('.section.hero .hero-slider').hide();
204                $('.section.hero .video').show();
205                //}
206                //else {
207                //    player.pause();
208                //    $('.section.hero').css('height', 'auto');
209                //    $('.section.hero .hero-slider').show();
210                //    $('.section.hero .video').hide();
211                //}
212            }
213        }, 500);
214    }
215}
216
217
218$(window).resize(function () {
219    resizeBoxes();
220});
221
222
223var lastScrollTop = 0;
224
225$(window).scroll(function () {
226    var scroll = $(window).scrollTop();
227    if (width > 1200) {
228        if (scroll >= 200) {
229            $('header').addClass('active');
230            $('.section.hero .overlay-left, .section.hero .overlay-right').css('top', (100 + scroll));
231        }
232        else {
233            $('header').removeClass('active');
234            $('.section.hero .overlay-left, .section.hero .overlay-right').css('top', (200 + scroll));
235        }
236    }
237
238    // hide header or scroll down
239    if (width <= 1200) {
240        if (scroll > lastScrollTop) {
241            if (scroll > 200 && !$('header').hasClass('scrolldown'))
242                $('header').addClass('scrolldown');
243        } else {
244            $('header').removeClass('scrolldown');
245        }
246        lastScrollTop = scroll;
247    }
248
249    // //Click Event to Scroll to Top
250    if (scroll > 300) {
251        $('.scroll-top').fadeIn();
252    } else {
253        $('.scroll-top').fadeOut();
254    }
255});
256
257
258$('a[href*=\\#]').on('click', function (event) {
259    $('html,body').animate({ scrollTop: $(this.hash).offset().top - 90 }, 500);
260});
261
262$(window).load(function () { $(window).resize(); });
263
264
265
266// VARIABLES
267var
268    resizeTimer,
269    // HERO
270    heroBreakPoint = 991, // viewport width where hero feature text starts being placed below image
271    otherWidth, menuItem, menuItemWidth, ctr, padding, width, player
272    ;
273
274// lightbox 2
275!function (t, i) { "function" == typeof define && define.amd ? define(["jquery"], i) : "object" == typeof exports ? module.exports = i(require("jquery")) : t.lightbox = i(t.jQuery) }(this, function (t) { function i(i) { this.album = [], this.currentImageIndex = void 0, this.init(), this.options = t.extend({}, this.constructor.defaults), this.option(i) } return i.defaults = { albumLabel: "Image %1 of %2", alwaysShowNavOnTouchDevices: !1, fadeDuration: 600, fitImagesInViewport: !0, imageFadeDuration: 600, positionFromTop: 50, resizeDuration: 700, showImageNumberLabel: !0, wrapAround: !1, disableScrolling: !1, sanitizeTitle: !1 }, i.prototype.option = function (i) { t.extend(this.options, i) }, i.prototype.imageCountLabel = function (t, i) { return this.options.albumLabel.replace(/%1/g, t).replace(/%2/g, i) }, i.prototype.init = function () { var i = this; t(document).ready(function () { i.enable(), i.build() }) }, i.prototype.enable = function () { var i = this; t("body").on("click", "a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]", function (e) { return i.start(t(e.currentTarget)), !1 }) }, i.prototype.build = function () { var i = this; t('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(t("body")), this.$lightbox = t("#lightbox"), this.$overlay 
275= t("#lightboxOverlay"), this.$outerContainer = this.$lightbox.find(".lb-outerContainer"), this.$container = this.$lightbox.find(".lb-container"), this.$image = this.$lightbox.find(".lb-image"), this.$nav = this.$lightbox.find(".lb-nav"), this.containerPadding = { top: parseInt(this.$container.css("padding-top"), 10), right: parseInt(this.$container.css("padding-right"), 10), bottom: parseInt(this.$container.css("padding-bottom"), 10), left: parseInt(this.$container.css("padding-left"), 10) }, this.imageBorderWidth = { top: parseInt(this.$image.css("border-top-width"), 10), right: parseInt(this.$image.css("border-right-width"), 10), bottom: parseInt(this.$image.css("border-bottom-width"), 10), left: parseInt(this.$image.css("border-left-width"), 10) }, this.$overlay.hide().on("click", function () { return i.end(), !1 }), this.$lightbox.hide().on("click", function (e) { return "lightbox" === t(e.target).attr("id") && i.end(), !1 }), this.$outerContainer.on("click", function (e) { return "lightbox" === t(e.target).attr("id") && i.end(), !1 }), this.$lightbox.find(".lb-prev").on("click", function () { return 0 === i.currentImageIndex ? i.changeImage(i.album.length - 1) : i.changeImage(i.currentImageIndex - 1), !1 }), this.$lightbox.find(".lb-next").on("click", function () { return i.currentImageIndex === i.album.length - 1 ? i.changeImage(0) : i.changeImage(i.currentImageIndex + 1), !1 }), this.$nav.on("mousedown", function (t) { 3 === t.which && (i.$nav.css("pointer-events", "none"), i.$lightbox.one("contextmenu", function () { setTimeout(function () { this.$nav.css("pointer-events", "auto") }.bind(i), 0) })) }), this.$lightbox.find(".lb-loader, .lb-close").on("click", function () { return i.end(), !1 }) }, i.prototype.start = function (i) { function e(t) { n.album.push({ link: t.attr("href"), title: t.attr("data-title") || t.attr("title") }) } var n = this, o = t(window); o.on("resize", t.proxy(this.sizeOverlay, this)), t("select, object, embed").css({ visibility: "hidden" }), this.sizeOverlay(), this.album = []; var a, s = 0, r = i.attr("data-lightbox"); if (r) { a = t(i.prop("tagName") + '[data-lightbox="' + r + '"]'); for (var h = 0; h < a.length; h = ++h) e(t(a[h])), a[h] === i[0] && (s = h) } else if ("lightbox" === i.attr("rel")) e(i); else { a = t(i.prop("tagName") + '[rel="' + i.attr("rel") + '"]'); for (var l = 0; l < a.length; l = ++l) e(t(a[l])), a[l] === i[0] && (s = l) } var d = o.scrollTop() + this.options.positionFromTop, g = o.scrollLeft(); this.$lightbox.css({ top: d + "px", left: g + "px" }).fadeIn(this.options.fadeDuration), this.options.disableScrolling && t("body").addClass("lb-disable-scrolling"), this.changeImage(s) }, i.prototype.changeImage = function (i) { var e = this; this.disableKeyboardNav(); var n = this.$lightbox.find(".lb-image"); this.$overlay.fadeIn(this.options.fadeDuration), t(".lb-loader").fadeIn("slow"), this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(), this.$outerContainer.addClass("animating"); var o = new Image; o.onload = function () { var a, s, r, h, l, d, g; n.attr("src", e.album[i].link), a = t(o), n.width(o.width), n.height(o.height), e.options.fitImagesInViewport && (g = t(window).width(), d = t(window).height(), l = g - e.containerPadding.left - e.containerPadding.right - e.imageBorderWidth.left - e.imageBorderWidth.right - 20, h = d - e.containerPadding.top - e.containerPadding.bottom - e.imageBorderWidth.top - e.imageBorderWidth.bottom - 120, e.options.maxWidth && e.options.maxWidth < l && (l = e.options.maxWidth), e.o
275ptions.maxHeight && e.options.maxHeight < l && (h = e.options.maxHeight), (o.width > l || o.height > h) && (o.width / l > o.height / h ? (r = l, s = parseInt(o.height / (o.width / r), 10), n.width(r), n.height(s)) : (s = h, r = parseInt(o.width / (o.height / s), 10), n.width(r), n.height(s)))), e.sizeContainer(n.width(), n.height()) }, o.src = this.album[i].link, this.currentImageIndex = i }, i.prototype.sizeOverlay = function () { this.$overlay.width(t(document).width()).height(t(document).height()) }, i.prototype.sizeContainer = function (t, i) { function e() { n.$lightbox.find(".lb-dataContainer").width(s), n.$lightbox.find(".lb-prevLink").height(r), n.$lightbox.find(".lb-nextLink").height(r), n.showImage() } var n = this, o = this.$outerContainer.outerWidth(), a = this.$outerContainer.outerHeight(), s = t + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right, r = i + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom; o !== s || a !== r ? this.$outerContainer.animate({ width: s, height: r }, this.options.resizeDuration, "swing", function () { e() }) : e() }, i.prototype.showImage = function () { this.$lightbox.find(".lb-loader").stop(!0).hide(), this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration), this.updateNav(), this.updateDetails(), this.preloadNeighboringImages(), this.enableKeyboardNav() }, i.prototype.updateNav = function () { var t = !1; try { document.createEvent("TouchEvent"), t = this.options.alwaysShowNavOnTouchDevices ? !0 : !1 } catch (i) { } this.$lightbox.find(".lb-nav").show(), this.album.length > 1 && (this.options.wrapAround ? (t && this.$lightbox.find(".lb-prev, .lb-next").css("opacity", "1"), this.$lightbox.find(".lb-prev, .lb-next").show()) : (this.currentImageIndex > 0 && (this.$lightbox.find(".lb-prev").show(), t && this.$lightbox.find(".lb-prev").css("opacity", "1")), this.currentImageIndex < this.album.length - 1 && (this.$lightbox.find(".lb-next").show(), t && this.$lightbox.find(".lb-next").css("opacity", "1")))) }, i.prototype.updateDetails = function () { var i = this; if ("undefined" != typeof this.album[this.currentImageIndex].title && "" !== this.album[this.currentImageIndex].title) { var e = this.$lightbox.find(".lb-caption"); this.options.sanitizeTitle ? e.text(this.album[this.currentImageIndex].title) : e.html(this.album[this.currentImageIndex].title), e.fadeIn("fast").find("a").on("click", function (i) { void 0 !== t(this).attr("target") ? window.open(t(this).attr("href"), t(this).attr("target")) : location.href = t(this).attr("href") }) } if (this.album.length > 1 && this.options.showImageNumberLabel) { var n = this.imageCountLabel(this.currentImageIndex + 1, this.album.length); this.$lightbox.find(".lb-number").text(n).fadeIn("fast") } else this.$lightbox.find(".lb-number").hide(); this.$outerContainer.removeClass("animating"), this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration, function () { return i.sizeOverlay() }) }, i.prototype.preloadNeighboringImages = function () { if (this.album.length > this.currentImageIndex + 1) { var t = new Image; t.src = this.album[this.currentImageIndex + 1].link } if (this.currentImageIndex > 0) { var i = new Image; i.src = this.album[this.currentImageIndex - 1].link } }, i.prototype.enableKeyboardNav = function () { t(document).on("keyup.keyboard", t.proxy(this.keyboardAction, this)) }, i.prototype.disableKeyboardNav = function () { t(document).off(".keyboard") }, i.prototype.keyboardAction = function (t) { var i = 27, e = 37, n = 39, o = t.keyCode, a = String.fromCharCode(o).toLowerCase(); o === i || a.match(/x|o|c/) ? this.end() : "p" === a || o === e ? 0 !== this.currentImageIndex ? this.changeImage(this.currentImageIndex - 1) : this.options.wrapAround && this.album.length > 1 && this.changeImage(this.album.length - 1) : ("n" === a || o === n) && (this.currentImageIndex !== this.album.length - 1 ? this.changeImage(this.currentImageIndex + 1) : this.options.wrapAround && this.album.length > 1 && this.changeImage(0)) }, i.prototype.end = function () { this.disableKeyboardNav(), t(window).off("resize", this.sizeOverlay), this.$lightbox.fadeOut(this.options.fadeDuration), this.$overlay.fadeOut(this.options.fadeDuration), t("select, object, embed").css({ visibility: "visible" }), this.options.disableScrolling && t("body").removeClass("lb-disable-scrolling") }, new i });
276
277/*!
278 * imagesLoaded PACKAGED v3.1.8
279 * JavaScript is all like "You images are done yet or what?"
280 * MIT License
281 */
282(function () { function e() { } function t(e, t) { for (var n = e.length; n--;
282) if (e[n].listener === t) return n; return -1 } function n(e) { return function () { return this[e].apply(this, arguments) } } var i = e.prototype, r = this, o = r.EventEmitter; i.getListeners = function (e) { var t, n, i = this._getEvents(); if ("object" == typeof e) { t = {}; for (n in i) i.hasOwnProperty(n) && e.test(n) && (t[n] = i[n]) } else t = i[e] || (i[e] = []); return t }, i.flattenListeners = function (e) { var t, n = []; for (t = 0; e.length > t; t += 1) n.push(e[t].listener); return n }, i.getListenersAsObject = function (e) { var t, n = this.getListeners(e); return n instanceof Array && (t = {}, t[e] = n), t || n }, i.addListener = function (e, n) { var i, r = this.getListenersAsObject(e), o = "object" == typeof n; for (i in r) r.hasOwnProperty(i) && -1 === t(r[i], n) && r[i].push(o ? n : { listener: n, once: !1 }); return this }, i.on = n("addListener"), i.addOnceListener = function (e, t) { return this.addListener(e, { listener: t, once: !0 }) }, i.once = n("addOnceListener"), i.defineEvent = function (e) { return this.getListeners(e), this }, i.defineEvents = function (e) { for (var t = 0; e.length > t; t += 1) this.defineEvent(e[t]); return this }, i.removeListener = function (e, n) { var i, r, o = this.getListenersAsObject(e); for (r in o) o.hasOwnProperty(r) && (i = t(o[r], n), -1 !== i && o[r].splice(i, 1)); return this }, i.off = n("removeListener"), i.addListeners = function (e, t) { return this.manipulateListeners(!1, e, t) }, i.removeListeners = function (e, t) { return this.manipulateListeners(!0, e, t) }, i.manipulateListeners = function (e, t, n) { var i, r, o = e ? this.removeListener : this.addListener, s = e ? this.removeListeners : this.addListeners; if ("object" != typeof t || t instanceof RegExp) for (i = n.length; i--;) o.call(this, t, n[i]); else for (i in t) t.hasOwnProperty(i) && (r = t[i]) && ("function" == typeof r ? o.call(this, i, r) : s.call(this, i, r)); return this }, i.removeEvent = function (e) { var t, n = typeof e, i = this._getEvents(); if ("string" === n) delete i[e]; else if ("object" === n) for (t in i) i.hasOwnProperty(t) && e.test(t) && delete i[t]; else delete this._events; return this }, i.removeAllListeners = n("removeEvent"), i.emitEvent = function (e, t) { var n, i, r, o, s = this.getListenersAsObject(e); for (r in s) if (s.hasOwnProperty(r)) for (i = s[r].length; i--;) n = s[r][i], n.once === !0 && this.removeListener(e, n.listener), o = n.listener.apply(this, t || []), o === this._getOnceReturnValue() && this.removeListener(e, n.listener); return this }, i.trigger = n("emitEvent"), i.emit = function (e) { var t = Array.prototype.slice.call(arguments, 1); return this.emitEvent(e, t) }, i.setOnceReturnValue = function (e) { return this._onceReturnValue = e, this }, i._getOnceReturnValue = function () { return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 }, i._getEvents = function () { return this._events || (this._events = {}) }, e.noConflict = function () { return r.EventEmitter = o, e }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function () { return e }) : "object" == typeof module && module.exports ? module.exports = e : this.EventEmitter = e }).call(this), function (e) { function t(t) { var n = e.event; return n.target = n.target || n.srcElement || t, n } var n = document.documentElement, i = function () { }; n.addEventListener ? i = function (e, t, n) { e.addEventListener(t, n, !1) } : n.attachEvent && (i = function (e, n, i) { e[n + i] = i.handleEvent ? function () { var n = t(e); i.handleEvent.call(i, n) } : function () { var n = t(e); i.call(e, n) }, e.attachEvent("on" + n, e[n + i]) }); var r = function () { }; n.removeEventListener ? r = function (e, t, n) { e.removeEventListener(t, n, !1) } : n.detachEvent && (r = function (e, t, n) { e.detachEvent("on" + t, e[t + n]); try { delete e[t + n] } catch (i) { e[t + n] = void 0 } }); var o = { bind: i, unbind: r }; "function" == typeof define && define.amd ? define("eventie/eventie", o) : e.eventie = o }(this), function (e, t) { "function" == typeof define && define.amd ? define(["eventEmitter/EventEmitter", "eventie/eventie"], function (n, i) { return t(e, n, i) }) : "object" == typeof exports ? module.exports = t(e, require("wolfy87-eventemitter"), require("eventie")) : e.imagesLoaded = t(e, e.EventEmitter, e.eventie) }(window, function (e, t, n) { function i(e, t) { for (var n in t) e[n] = t[n]; return e } function r(e) { return "[object Array]" === d.call(e) } function o(e) { var t = []; if (r(e)) t = e; else if ("number" == typeof e.length) for (var n = 0, i = e.length; i > n; n++) t.push(e[n]); else t.push(e); return t } function s(e, t, n) { if (!(this instanceof s)) return new s(e, t); "string" == typeof e && (e = document.querySelectorAll(e)), this.elements = o(e), this.options = i({}, this.options), "function" == typeof t ? n = t : i(this.options, t), n && this.on("always", n), this.getImages(), a && (this.jqDeferred = new a.Deferred); var r = this; setTimeout(function () { r.check() }) } function f(e) { this.img = e } function c(e) { this.src = e, v[e] = this } var a = e.jQuery, u = e.console, h = u !== void 0, d = Object.prototype.toString; s.prototype = new t, s.prototype.options = {}, s.prototype.getImages = function () { this.images = []; for (var e = 0, t = this.elements.length; t > e; e++) { var n = this.elements[e]; "IMG" === n.nodeName && this.addImage(n); var i = n.nodeType; if (i && (1 === i || 9 === i || 11 === i)) for (var r = n.querySelectorAll("img"), o = 0, s = r.length; s > o; o++) { var f = r[o]; this.addImage(f) } } }, s.prototype.addImage = function (e) { var t = new f(e); this.images.push(t) }
282, s.prototype.check = function () { function e(e, r) { return t.options.debug && h && u.log("confirm", e, r), t.progress(e), n++ , n === i && t.complete(), !0 } var t = this, n = 0, i = this.images.length; if (this.hasAnyBroken = !1, !i) return this.complete(), void 0; for (var r = 0; i > r; r++) { var o = this.images[r]; o.on("confirm", e), o.check() } }, s.prototype.progress = function (e) { this.hasAnyBroken = this.hasAnyBroken || !e.isLoaded; var t = this; setTimeout(function () { t.emit("progress", t, e), t.jqDeferred && t.jqDeferred.notify && t.jqDeferred.notify(t, e) }) }, s.prototype.complete = function () { var e = this.hasAnyBroken ? "fail" : "done"; this.isComplete = !0; var t = this; setTimeout(function () { if (t.emit(e, t), t.emit("always", t), t.jqDeferred) { var n = t.hasAnyBroken ? "reject" : "resolve"; t.jqDeferred[n](t) } }) }, a && (a.fn.imagesLoaded = function (e, t) { var n = new s(this, e, t); return n.jqDeferred.promise(a(this)) }), f.prototype = new t, f.prototype.check = function () { var e = v[this.img.src] || new c(this.img.src); if (e.isConfirmed) return this.confirm(e.isLoaded, "cached was confirmed"), void 0; if (this.img.complete && void 0 !== this.img.naturalWidth) return this.confirm(0 !== this.img.naturalWidth, "naturalWidth"), void 0; var t = this; e.on("confirm", function (e, n) { return t.confirm(e.isLoaded, n), !0 }), e.check() }, f.prototype.confirm = function (e, t) { this.isLoaded = e, this.emit("confirm", this, t) }; var v = {}; return c.prototype = new t, c.prototype.check = function () { if (!this.isChecked) { var e = new Image; n.bind(e, "load", this), n.bind(e, "error", this), e.src = this.src, this.isChecked = !0 } }, c.prototype.handleEvent = function (e) { var t = "on" + e.type; this[t] && this[t](e) }, c.prototype.onload = function (e) { this.confirm(!0, "onload"), this.unbindProxyEvents(e) }, c.prototype.onerror = function (e) { this.confirm(!1, "onerror"), this.unbindProxyEvents(e) }, c.prototype.confirm = function (e, t) { this.isConfirmed = !0, this.isLoaded = e, this.emit("confirm", this, t) }, c.prototype.unbindProxyEvents = function (e) { n.unbind(e.target, "load", this), n.unbind(e.target, "error", this) }, s });
283
284/* Lazy Load XT 1.1.0 | MIT License
285!function (a, b, c, d) { function e(a, b) { return a[b] === d ? t[b] : a[b] } function f() { var a = b.pageYOffset; return a === d ? r.scrollTop : a } function g(a, b) { var c = t["on" + a]; c && (w(c) ? c.call(b[0]) : (c.addClass && b.addClass(c.addClass), c.removeClass && b.removeClass(c.removeClass))), b.trigger("lazy" + a, [b]), k() } function h(b) { g(b.type, a(this).off(p, h)) } function i(c) { if (z.length) { c = c || t.forceLoad, A = 1 / 0; var d, e, i = f(), j = b.innerHeight || r.clientHeight, k = b.innerWidth || r.clientWidth; for (d = 0, e = z.length; e > d; d++) { var l, m = z[d], q = m[0], s = m[n], u = !1, v = c || y(q, o) < 0; if (a.contains(r, q)) { if (c || !s.visibleOnly || q.offsetWidth || q.offsetHeight) { if (!v) { var x = q.getBoundingClientRect(), B = s.edgeX, C = s.edgeY; l = x.top + i - C - j, v = i >= l && x.bottom > -C && x.left <= k + B && x.right > -B } if (v) { m.on(p, h), g("show", m); var D = s.srcAttr, E = w(D) ? D(m) : q.getAttribute(D); E && (q.src = E), u = !0 } else A > l && (A = l) } } else u = !0; u && (y(q, o, 0), z.splice(d--, 1), e--) } e || g("complete", a(r)) } } function j() { B > 1 ? (B = 1, i(), setTimeout(j, t.throttle)) : B = 0 } function k(a) { z.length && (a && "scroll" === a.type && a.currentTarget === b && A >= f() || (B || setTimeout(j, 0), B = 2)) } function l() { v.lazyLoadXT() } function m() { i(!0) } var n = "lazyLoadXT", o = "lazied", p = "load error", q = "lazy-hidden", r = c.documentElement || c.body, s = b.onscroll === d || !!b.operamini || !r.getBoundingClientRect, t = { autoInit: !0, selector: "img[data-src]", blankImage: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", throttle: 5, forceLoad: s, loadEvent: "pageshow", updateEvent: "load orientationchange resize scroll touchmove focus", forceEvent: "lazyloadall", oninit: { removeClass: "lazy" }, onshow: { addClass: q }, onload: { removeClass: q, addClass: "lazy-loaded" }, onerror: { removeClass: q }, checkDuplicates: !0 }, u = { srcAttr: "data-src", edgeX: 0, edgeY: 0, visibleOnly: !0 }, v = a(b), w = a.isFunction, x = a.extend, y = a.data || function (b, c) { return a(b).data(c) }, z = [], A = 0, B = 0; a[n] = x(t, u, a[n]), a.fn[n] = function (c) { c = c || {}; var d, f = e(c, "blankImage"), h = e(c, "checkDuplicates"), i = e(c, "scrollC
vendor: 5,801 bytes, lines 285-440
285ontainer"), j = e(c, "show"), l = {}; a(i).on("scroll", k); for (d in u) l[d] = e(c, d); return this.each(function (d, e) { if (e === b) a(t.selector).lazyLoadXT(c); else { var i = h && y(e, o), m = a(e).data(o, j ? -1 : 1); if (i) return void k(); f && "IMG" === e.tagName && !e.src && (e.src = f), m[n] = x({}, l), g("init", m), z.push(m), k() } }) }, a(c).ready(function () { g("start", v), v.on(t.updateEvent, k).on(t.forceEvent, m), a(c).on(t.updateEvent, k), t.autoInit && (v.on(t.loadEvent, l), l()) }) }(window.jQuery || window.Zepto || window.$, window, document);
286 */
287
288(function ($, window, document, undefined) {
289    'use strict';
290
291    // options
292    var lazyLoadXT = 'lazyLoadXT',
293        dataLazied = 'lazied',
294        load_error = 'load error',
295        classLazyHidden = 'lazy-hidden',
296        docElement = document.documentElement || document.body,
297        //  force load all images in Opera Mini and some mobile browsers without scroll event or getBoundingClientRect()
298        forceLoad = (window.onscroll === undefined || !!window.operamini || !docElement.getBoundingClientRect),
299        options = {
300            autoInit: true, // auto initialize in $.ready
301            selector: 'img[data-src]', // selector for lazyloading elements
302            blankImage: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
303            throttle: 0, // interval (ms) for changes check
304            forceLoad: forceLoad, // force auto load all images
305
306            loadEvent: 'pageshow', // check AJAX-loaded content in jQueryMobile
307            updateEvent: 'load orientationchange resize scroll touchmove focus', // page-modified events
308            forceEvent: 'lazyloadall', // force loading of all elements
309
310            //onstart: null,
311            oninit: { removeClass: 'lazy' }, // init handler
312            onshow: { addClass: classLazyHidden }, // start loading handler
313            onload: { removeClass: classLazyHidden, addClass: 'lazy-loaded' }, // load success handler
314            onerror: { removeClass: classLazyHidden }, // error handler
315            //oncomplete: null, // complete handler
316
317            //scrollContainer: undefined,
318            checkDuplicates: true
319        },
320        elementOptions = {
321            srcAttr: 'data-src',
322            edgeX: 0,
323            edgeY: 0,
324            visibleOnly: true
325        },
326        $window = $(window),
327        $isFunction = $.isFunction,
328        $extend = $.extend,
329        $data = $.data || function (el, name) {
330            return $(el).data(name);
331        },
332        elements = [],
333        topLazy = 0,
334        /*
335         waitingMode=0 : no setTimeout
336         waitingMode=1 : setTimeout, no deferred events
337         waitingMode=2 : setTimeout, deferred events
338         */
339        waitingMode = 0;
340
341    $[lazyLoadXT] = $extend(options, elementOptions, $[lazyLoadXT]);
342
343
344    function getOrDef(obj, prop) {
345        return obj[prop] === undefined ? options[prop] : obj[prop];
346    }
347
348
349    function scrollTop() {
350        var scroll = window.pageYOffset;
351        return (scroll === undefined) ? docElement.scrollTop : scroll;
352    }
353
354
355    $.fn[lazyLoadXT] = function (overrides) {
356        overrides = overrides || {};
357
358        var blankImage = getOrDef(overrides, 'blankImage'),
359            checkDuplicates = getOrDef(overrides, 'checkDuplicates'),
360            scrollContainer = getOrDef(overrides, 'scrollContainer'),
361            forceShow = getOrDef(overrides, 'show'),
362            elementOptionsOverrides = {},
363            prop;
364
365        // empty overrides.scrollContainer is supported by both jQuery and Zepto
366        $(scrollContainer).on('scroll', queueCheckLazyElements);
367
368        for (prop in elementOptions) {
369            elementOptionsOverrides[prop] = getOrDef(overrides, prop);
370        }
371
372        return this.each(function (index, el) {
373            if (el === window) {
374                $(options.selector).lazyLoadXT(overrides);
375            } else {
376                var duplicate = checkDuplicates && $data(el, dataLazied),
377                    $el = $(el).data(dataLazied, forceShow ? -1 : 1);
378
379                // prevent duplicates
380                if (duplicate) {
381                    queueCheckLazyElements();
382                    return;
383                }
384
385                if (blankImage && el.tagName === 'IMG' && !el.src) {
386                    el.src = blankImage;
387                }
388
389                // clone elementOptionsOverrides object
390                $el[lazyLoadXT] = $extend({}, elementOptionsOverrides);
391
392                triggerEvent('init', $el);
393
394                elements.push($el);
395                queueCheckLazyElements();
396            }
397        });
398    };
399
400
401
402    function triggerEvent(event, $el) {
403        var handler = options['on' + event];
404        if (handler) {
405            if ($isFunction(handler)) {
406                handler.call($el[0]);
407            } else {
408                if (handler.addClass) {
409                    $el.addClass(handler.addClass);
410                }
411                if (handler.removeClass) {
412                    $el.removeClass(handler.removeClass);
413                }
414            }
415        }
416
417        $el.trigger('lazy' + event, [$el]);
418
419        // queue next check as images may be resized after loading of actual file
420        queueCheckLazyElements();
421    }
422
423
424
425    function triggerLoadOrError(e) {
426        triggerEvent(e.type, $(this).off(load_error, triggerLoadOrError));
427    }
428
429
430
431    function checkLazyElements(force) {
432        if (!elements.length) {
433            return;
434        }
435
436        force = force || options.forceLoad;
437
438        topLazy = Infinity;
439
440        var viewportTop = scrollTop(),
441            viewportHeight = window.innerHeight || docElement.clientHeight,
442            viewportWidth = window.innerWidth || docElement.clientWidth,
443            i,
444            length;
445
446        for (i = 0, length = elements.length; i < length; i++) {
447            var $el = elements[i],
448                el = $el[0],
449                objData = $el[lazyLoadXT],
450                removeNode = false,
451                visible = force || $data(el, dataLazied) < 0,
452                topEdge;
453
454            // remove items that are not in DOM
455            if (!$.contains(docElement, el)) {
456                removeNode = true;
457            } else if (force || !objData.visibleOnly || el.offsetWidth || el.offsetHeight) {
458
459                if (!visible) {
460                    var elPos = el.getBoundingClientRect(),
461                        edgeX = objData.edgeX,
462                        edgeY = objData.edgeY;
463
464                    topEdge = (elPos.top + viewportTop - edgeY) - viewportHeight;
465
466                    visible = (topEdge <= viewportTop && elPos.bottom > -edgeY &&
467                        elPos.left <= viewportWidth + edgeX && elPos.right > -edgeX);
468                }
469
470                if (visible) {
471                    $el.on(load_error, triggerLoadOrError);
472
473                    triggerEvent('show', $el);
474
475                    var srcAttr = objData.srcAttr,
476                        src = $isFunction(srcAttr) ? srcAttr($el) : el.getAttribute(srcAttr);
477
478                    if (src) {
479                        el.src = src;
480                    }
481
482                    removeNode = true;
483                } else {
484                    if (topEdge < topLazy) {
485                        topLazy = topEdge;
486                    }
487                }
488            }
489
490            if (removeNode) {
491                $data(el, dataLazied, 0);
492                elements.splice(i--, 1);
493                length--;
494            }
495        }
496
497        if (!length) {
498            triggerEvent('complete', $(docElement));
499        }
500    }
501
502
503    /**
504     * Run check of lazy elements after timeout
505     */
506    function timeoutLazyElements() {
507        if (waitingMode > 1) {
508            waitingMode = 1;
509            checkLazyElements();
510            setTimeout(timeoutLazyElements, options.throttle);
511        } else {
512            waitingMode = 0;
513        }
514    }
515
516
517
518    function queueCheckLazyElements(e) {
519        if (!elements.length) {
520            return;
521        }
522
523        // fast check for scroll event without new visible elements
524        if (e && e.type === 'scroll' && e.currentTarget === window) {
525            if (topLazy >= scrollTop()) {
526                return;
527            }
528        }
529
530        if (!waitingMode) {
531            setTimeout(timeoutLazyElements, 0);
532        }
533        waitingMode = 2;
534    }
535
536
537    /**
538     * Initialize list of hidden elements
539     */
540    function initLazyElements() {
541        $window.lazyLoadXT();
542    }
543
544
545    /**
546     * Loading of all elements
547     */
548    function forceLoadAll() {
549        checkLazyElements(true);
550    }
551
552
553    /**
554     * Initialization
555     */
556    $(document).ready(function () {
557        triggerEvent('start', $window);
558
559        $window
560            .on(options.updateEvent, queueCheckLazyElements)
561            .on(options.forceEvent, forceLoadAll);
562
563        $(document).on(options.updateEvent, queueCheckLazyElements);
564
565        if (options.autoInit) {
566            $window.on(options.loadEvent, initLazyElements);
567            initLazyElements(); // standard initialization
568        }
569    });
570
571})(window.jQuery || window.Zepto || window.$, window, document);
572
573// August Priority nav
574function reduceMenu() { for (var i = 0; menuWidth + otherElementsWidth > width && (i++ , lowest = getLowestPriority("nav > ul > li.visible"), null != lowest && lowest.addClass("hidden").removeClass("visible"), 0 == fromMobile ? (lowest = getLowestPriority(".priority-nav .menu-item.hidden"), null != lowest && lowest.addClass("visible").removeClass("hidden")) : fromMobile = !1, $(".priority-menu").hasClass("show") || $(".priority-menu").addClass("show"), menuWidth = $("nav").width(), !(i > 5));); } function getLowestPriority(i) { var e = null, t = null; return $(i).each(function () { var i = $(this).data("id") ? parseInt($(this).data("id"), 10) : 0; (null === e || e > i) && (e = i, t = $(this)) }), t } var priorityMenuMinWidth = 767, priorityMenuPadPerChar = 10, moreLinkWidth = 150, menuWidth, otherElements, otherElementsWidth = 0, oldWidth = 0, additionalPadding, fromMobile = !1, lowest; $.fn.priorityNav = function (i) { var e = { mainNav: "nav", priorityMenuMinWidth: 767, priorityMenuPadPerChar: 10, moreLinkWidth: 150, moreText: "More+", otherElements: [".logo"], additionalPadding: 200 }, t = $.extend({}, e, i); if (priorityMenuMinWidth = t.priorityMenuMinWidth, priorityMenuPadPerChar = t.priorityMenuPadPerChar, moreLinkWidth = t.moreLinkWidth, menuWidth = $(t.mainNav).width(), additionalPadding = width < 1200 ? t.additionalPadding + 250 : t.additionalPadding, otherElementsLength = t.otherElements.length, otherElementsLength > 0) for (var r = 0; r < otherElementsLength; r++) otherElementsWidth += $(t.otherElements[r]).outerWidth(); return otherElements = t.otherElements, otherElementsWidth += additionalPadding, this.each(function () { var i = $(this), e = i.html(); e = '<li class="priority-menu"><a href="javascript:void()">' + t.moreText + '</a><ul class="priority-nav">' + e + "</ul></li></ul>", i.append(e); var r = $(".priority-nav"); r.find("> li").addClass("hidden").removeClass("visible"), $(".priority-nav > li").each(function () { $(this).hasClass("parent") && $(this).removeClass("parent").addClass("priority-parent") }) }) }, $(window).resize(function () { if (width = $(window).width(), width >= priorityMenuMinWidth) { ctr = 0, otherElementsWidth = 0; for (var i = 0; i < otherElements.length; i++) otherElementsWidth += $(otherElements[i]).outerWidth(); switch (otherElementsWidth += additionalPadding, !0) { case oldWidth < width && 0 != oldWidth: if (padding = $(".priority-nav li").first().children("a").text().length * priorityMenuPadPerChar, 0 == $(".priority-nav").find(".visible").length ? $(".priority-menu").removeClass("show") : $(".priority-menu").addClass("show"), menuWidth + otherElementsWidth + padding < width) for (; menuWidth + otherElementsWidth + padding < width && (ctr++ , lowest = getLowestPriority(".priority-nav > li.visible"), lowest && lowest.removeClass("visible").addClass("hidden"), 0 == $(".priority-nav .menu-item.visible").length ? $(".priority-menu").removeClass("show") : $(".priority-menu").addClass("show"), lowest = getLowestPriority("nav > ul > li.menu-item:hidden"), lowest && lowest.removeClass("hidden").addClass("visible"), menuWidth = $("nav").width(), padding = $(".priority-nav li").first().children("a").text().length * priorityMenuPadPerChar, !(ctr > 5));); else reduceMenu(); break; default: reduceMenu() } } else $(".priority-menu").removeClass("show"), $(".priority-nav").find("> li").removeClass("hidden visible").addClass("hidden"), $("nav > ul > li").removeClass("hidden visible").addClass("visible").show(), fromMobile = !0; oldWidth = width });
575
576/*! WOW - v1.1.3 - 2016-05-06
577* Copyright (c) 2016 Matthieu Aussaguel;*/(function () { var a, b, c, d, e, f = function (a, b) { return function () { return a.apply(b, arguments) } }, g = [].indexOf || function (a) { for (var b = 0, c = this.length; c > b; b++) if (b in this && this[b] === a) return b; return -1 }; b = function () { function a() { } return a.prototype.extend = function (a, b) { var c, d; for (c in b) d = b[c], null == a[c] && (a[c] = d); return a }, a.prototype.isMobile = function (a) { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a) }, a.prototype.createEvent = function (a, b, c, d) { var e; return null == b && (b = !1), null == c && (c = !1), null == d && (d = null), null != document.createEvent ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(a, b, c, d)) : null != document.createEventObject ? (e = document.createEventObject(), e.eventType = a) : e.eventName = a, e }, a.prototype.emitEvent = function (a, b) { return null != a.dispatchEvent ? a.dispatchEvent(b) : b in (null != a) ? a[b]() : "on" + b in (null != a) ? a["on" 
vendor: 6,494 bytes, line 577
577+ b]() : void 0 }, a.prototype.addEvent = function (a, b, c) { return null != a.addEventListener ? a.addEventListener(b, c, !1) : null != a.attachEvent ? a.attachEvent("on" + b, c) : a[b] = c }, a.prototype.removeEvent = function (a, b, c) { return null != a.removeEventListener ? a.removeEventListener(b, c, !1) : null != a.detachEvent ? a.detachEvent("on" + b, c) : delete a[b] }, a.prototype.innerHeight = function () { return "innerHeight" in window ? window.innerHeight : document.documentElement.clientHeight }, a }(), c = this.WeakMap || this.MozWeakMap || (c = function () { function a() { this.keys = [], this.values = [] } return a.prototype.get = function (a) { var b, c, d, e, f; for (f = this.keys, b = d = 0, e = f.length; e > d; b = ++d) if (c = f[b], c === a) return this.values[b] }, a.prototype.set = function (a, b) { var c, d, e, f, g; for (g = this.keys, c = e = 0, f = g.length; f > e; c = ++e) if (d = g[c], d === a) return void (this.values[c] = b); return this.keys.push(a), this.values.push(b) }, a }()), a = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (a = function () { function a() { "undefined" != typeof console && null !== console && console.warn("MutationObserver is not supported by your browser."), "undefined" != typeof console && null !== console && console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.") } return a.notSupported = !0, a.prototype.observe = function () { }, a }()), d = this.getComputedStyle || function (a, b) { return this.getPropertyValue = function (b) { var c; return "float" === b && (b = "styleFloat"), e.test(b) && b.replace(e, function (a, b) { return b.toUpperCase() }), (null != (c = a.currentStyle) ? c[b] : void 0) || null }, this }, e = /(\-([a-z]){1})/g, this.WOW = function () { function e(a) { null == a && (a = {}), this.scrollCallback = f(this.scrollCallback, this), this.scrollHandler = f(this.scrollHandler, this), this.resetAnimation = f(this.resetAnimation, this), this.start = f(this.start, this), this.scrolled = !0, this.config = this.util().extend(a, this.defaults), null != a.scrollContainer && (this.config.scrollContainer = document.querySelector(a.scrollContainer)), this.animationNameCache = new c, this.wowEvent = this.util().createEvent(this.config.boxClass) } return e.prototype.defaults = { boxClass: "wow", animateClass: "animated", offset: 0, mobile: !0, live: !0, callback: null, scrollContainer: null }, e.prototype.init = function () { var a; return this.element = window.document.documentElement, "interactive" === (a = document.readyState) || "complete" === a ? this.start() : this.util().addEvent(document, "DOMContentLoaded", this.start), this.finished = [] }, e.prototype.start = function () { var b, c, d, e; if (this.stopped = !1, this.boxes = function () { var a, c, d, e; for (d = this.element.querySelectorAll("." + this.config.boxClass), e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b); return e }.call(this), this.all = function () { var a, c, d, e; for (d = this.boxes, e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b); return e }.call(this), this.boxes.length) if (this.disabled()) this.resetStyle(); else for (e = this.boxes, c = 0, d = e.length; d > c; c++) b = e[c], this.applyStyle(b, !0); return this.disabled() || (this.util().addEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().addEvent(window, "resize", this.scrollHandler), this.interval = setInterval(this.scrollCallback, 50)), this.config.live ? new a(function (a) { return function (b) { var c, d, e, f, g; for (g = [], c = 0, d = b.length; d > c; c++) f = b[c], g.push(function () { var a, b, c, d; for (c = f.addedNodes || [], d = [], a = 0, b = c.length; b > a; a++) e = c[a], d.push(this.doSync(e)); return d }.call(a)); return g } }(this)).observe(document.body, { childList: !0, subtree: !0 }) : void 0 }, e.prototype.stop = function () { return this.stopped = !0, this.util().removeEvent(this.config.scrollContainer || window, "scroll", this.scrollHandler), this.util().removeEvent(window, "resize", this.scrollHandler), null != this.interval ? clearInterval(this.interval) : void 0 }, e.prototype.sync = function (b) { return a.notSupported ? this.doSync(this.element) : void 0 }, e.prototype.doSync = function (a) { var b, c, d, e, f; if (null == a && (a = this.element), 1 === a.nodeType) { for (a = a.parentNode || a, e = a.querySelectorAll("." + this.config.boxClass), f = [], c = 0, d = e.length; d > c; c++) b = e[c], g.call(this.all, b) < 0 ? (this.boxes.push(b), this.all.push(b), this.stopped || this.disabled() ? this.resetStyle() : this.applyStyle(b, !0), f.push(this.scrolled = !0)) : f.push(void 0); return f } }, e.prototype.show = function (a) { return this.applyStyle(a), a.className = a.className + " " + this.config.animateClass, null != this.config.callback && this.config.callback(a), this.util().emitEvent(a, this.wowEvent), this.util().addEvent(a, "animationend", this.resetAnimation), this.util().addEvent(a, "oanimationend", this.resetAnimation), this.util().addEvent(a, "webkitAnimationEnd", this.resetAnimation), this.util().addEvent(a, "MSAnimationEnd", this.resetAnimation), a }, e.prototype.applyStyle = function (a, b) { var c, d, e; return d = a.getAttribute("data-wow-duration"), c = a.getAttribute("data-wow-delay"), e = a.getAttribute("data-wow-iteration"), this.animate(function (f) { return function () { return f.customStyle(a, b, d, c, e) } }(this)) }, e.prototype.animate = function () { return "requestAnimationFrame" in window ? function (a) { return window.requestAnimationFrame(a) } : function (a) { return a() } }(), e.prototype.resetStyle = function () { var a, b, c, d, e; for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], e.push(a.style.visibility = "visible"); return e }, e.prototype.resetAnimation = function (a) { var b; return a.type.toLowerCase().indexOf("animationend") >= 0 ? (b = a.target || a.srcElement, b.className = b.className.replace(this.config.animateClass, "").trim()) : void 0 }, e.prototype.customStyle = function (a, b, c, d, e) { return b && this.cacheAnimationName(a), a.style.visibility = b ? "hidden" : "visible", c && this.vendorSet(a.style, { animationDuration: c }), d && this.vendorSet(a.style, { animationDelay: d }), e && this.vendorSet(a.style, { animationIterationCount: e }), this.vendorSet(a.style, { animationName: b ? "none" : this.cachedAnimationName(a) }), a }
577, e.prototype.vendors = ["moz", "webkit"], e.prototype.vendorSet = function (a, b) { var c, d, e, f; d = []; for (c in b) e = b[c], a["" + c] = e, d.push(function () { var b, d, g, h; for (g = this.vendors, h = [], b = 0, d = g.length; d > b; b++) f = g[b], h.push(a["" + f + c.charAt(0).toUpperCase() + c.substr(1)] = e); return h }.call(this)); return d }, e.prototype.vendorCSS = function (a, b) { var c, e, f, g, h, i; for (h = d(a), g = h.getPropertyCSSValue(b), f = this.vendors, c = 0, e = f.length; e > c; c++) i = f[c], g = g || h.getPropertyCSSValue("-" + i + "-" + b); return g }, e.prototype.animationName = function (a) { var b; try { b = this.vendorCSS(a, "animation-name").cssText } catch (c) { b = d(a).getPropertyValue("animation-name") } return "none" === b ? "" : b }, e.prototype.cacheAnimationName = function (a) { return this.animationNameCache.set(a, this.animationName(a)) }, e.prototype.cachedAnimationName = function (a) { return this.animationNameCache.get(a) }, e.prototype.scrollHandler = function () { return this.scrolled = !0 }, e.prototype.scrollCallback = function () { var a; return !this.scrolled || (this.scrolled = !1, this.boxes = function () { var b, c, d, e; for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], a && (this.isVisible(a) ? this.show(a) : e.push(a)); return e }.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop() }, e.prototype.offsetTop = function (a) { for (var b; void 0 === a.offsetTop;) a = a.parentNode; for (b = a.offsetTop; a = a.offsetParent;) b += a.offsetTop; return b }, e.prototype.isVisible = function (a) { var b, c, d, e, f; return c = a.getAttribute("data-wow-offset") || this.config.offset, f = this.config.scrollContainer && this.config.scrollContainer.scrollTop || window.pageYOffset, e = f + Math.min(this.element.clientHeight, this.util().innerHeight()) - c, d = this.offsetTop(a), b = d + a.clientHeight, e >= d && b >= f }, e.prototype.util = function () { return null != this._util ? this._util : this._util = new b }, e.prototype.disabled = function () { return !this.config.mobile && this.util().isMobile(navigator.userAgent) }, e }() }).call(this);
578
579/*
580     _ _      _       _
581 ___| (_) ___| | __  (_)___
582/ __| | |/ __| |/ /  | / __|
583\__ \ | | (__|   < _ | \__ \
584|___/_|_|\___|_|\_(_)/ |___/
585                   |__/
586
587 Version: 1.6.0
588  Author: Ken Wheeler
589 Website: http://kenwheeler.github.io
590    Docs: http://kenwheeler.github.io/slick
591    Repo: http://github.com/kenwheeler/slick
592  Issues: http://github.com/kenwheeler/slick/issues
593
594 */
595!function (a) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jQuery) }(function (a) {
596    "use strict"; var b = window.Slick || {}; b = function () { function c(c, d) { var f, e = this; e.defaults = { accessibility: !0, adaptiveHeight: !1, appendArrows: a(c), appendDots: a(c), arrows: !0, asNavFor: null, prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>', nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>', autoplay: !1, autoplaySpeed: 3e3, centerMode: !1, centerPadding: "50px", cssEase: "ease", customPaging: function (b, c) { return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c + 1) }, dots: !1, dotsClass: "slick-dots", draggable: !0, easing: "linear", edgeFriction: .35, fade: !1, focusOnSelect: !1, infinite: !0, initialSlide: 0, lazyLoad: "ondemand", mobileFirst: !1, pauseOnHover: !0, pauseOnFocus: !0, pauseOnDotsHover: !1, respondTo: "window", responsive: null, rows: 1, rtl: !1, slide: "", slidesPerRow: 1, slidesToShow: 1, slidesToScroll: 1, speed: 500, swipe: !0, swipeToSlide: !1, touchMove: !0, touchThreshold: 5, useCSS: !0, useTransform: !0, variableWidth: !1, vertical: !1, verticalSwiping: !1, waitForAnimate: !0, zIndex: 1e3 }, e.initials = { animating: !1, dragging: !1, autoPlayTimer: null, currentDirection: 0, currentLeft: null, currentSlide: 0, direction: 1, $dots: null, listWidth: null, listHeight: null, loadIndex: 0, $nextArrow: null, $prevArrow: null, slideCount: null, slideWidth: null, $slideTrack: null, $slides: null, sliding: !1, slideOffset: 0, swipeLeft: null, $list: null, touchObject: {}, transformsEnabled: !1, unslicked: !1 }, 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,026 bytes, line 596
596windowTimer = 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) } var b = 0; return c }(), b.prototype.activateADA = function () { var a = this; a.$slideTrack.find(".slick-active").attr({ "aria-hidden": "false" }).find("a, input, button, select").attr({ tabindex: "0" }) }, b.prototype.addSlide = b.prototype.slickAdd = function (b, c, d) { var e = this; if ("boolean" == typeof c) d = c, c = null; else if (0 > c || c >= e.slideCount) return !1; 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) { a(c).attr("data-slick-index", b) }), e.$slidesCache = e.$slides, e.reinit() }, b.prototype.animateHeight = function () { var a = this; if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { var b = a.$slides.eq(a.currentSlide).outerHeight(!0); a.$list.animate({ height: b }, a.options.speed) } }, b.prototype.animateSlide = function (b, c) { var d = {}, e = this; e.animateHeight(), e.options.rtl === !0 && e.options.vertical === !1 && (b = -b), e.transformsEnabled === !1 ? e.options.vertical === !1 ? e.$slideTrack.animate({ left: b }, e.options.speed, e.options.easing, c) : e.$slideTrack.animate({ top: b }, e.options.speed, e.options.easing, c) : e.cssTransitions === !1 ? (e.options.rtl === !0 && (e.currentLeft = -e.currentLeft), a({ animStart: e.currentLeft }).animate({ animStart: b }, { duration: e.options.speed, easing: e.options.easing, step: function (a) { 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)) }, complete: function () { c && c.call() } })) : (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 () { e.disableTransition(), c.call() }, e.options.speed)) }, b.prototype.getNavTarget = function () { var b = this, c = b.options.asNavFor; return c && null !== c && (c = a(c).not(b.$slider)), c }, b.prototype.asNavFor = function (b) { var c = this, d = c.getNavTarget(); null !== d && "object" == typeof d && d.each(function () { var c = a(this).slick("getSlick"); c.unslicked || c.slideHandler(b, !0) }) }, b.prototype.applyTransition = function (a) { var b = this, c = {}; 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) }, b.prototype.autoPlay = function () { var a = this; a.autoPlayClear(), a.slideCount > a.options.slidesToShow && (a.autoPlayTimer = setInterval(a.autoPlayIterator, a.options.autoplaySpeed)) }, b.prototype.autoPlayClear = function () { var a = this; a.autoPlayTimer && clearInterval(a.autoPlayTimer) }, b.prototype.autoPlayIterator = function () { var a = this, b = a.currentSlide + a.options.slidesToScroll; 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)) }, b.prototype.buildArrows = function () { var b = this; 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({ "aria-disabled": "true", tabindex: "-1" })) }, b.prototype.buildDots = function () { var c, d, b = this; if (b.options.dots === !0 && b.slideCount > b.options.slidesToShow) { 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))); b.$dots = d.appendTo(b.options.appendDots), b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden", "false") } }, b.prototype.buildOut = function () { var b = this; 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) { a(c).attr("data-slick-index", b).data("originalStyling", a(c).attr("style") || "") }), 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") }, b.prototype.buildRows = function () { var b, c, d, e, f, g, h, a = this; if (e = document.createDocumentFragment(), g = a.$slider.children(), a.options.rows > 1) { for (h = a.options.slidesPerRow * a.options.rows, f = Math.
vendor: 3,604 bytes, line 596
596ceil(g.length / h), b = 0; f > b; b++) { var i = document.createElement("div"); for (c = 0; c < a.options.rows; c++) { var j = document.createElement("div"); for (d = 0; d < a.options.slidesPerRow; d++) { var k = b * h + (c * a.options.slidesPerRow + d); g.get(k) && j.appendChild(g.get(k)) } i.appendChild(j) } e.appendChild(i) } a.$slider.empty().append(e), a.$slider.children().children().children().css({ width: 100 / a.options.slidesPerRow + "%", display: "inline-block" }) } }, b.prototype.checkResponsive = function (b, c) { var e, f, g, d = this, h = !1, i = d.$slider.width(), j = window.innerWidth || a(window).width(); 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) { f = null; 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])); 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]) } }, b.prototype.changeSlide = function (b, c) { var f, g, h, d = this, e = a(b.currentTarget); 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) { case "previous": g = 0 === f ? d.options.slidesToScroll : d.options.slidesToShow - f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide - g, !1, c); break; case "next": g = 0 === f ? d.options.slidesToScroll : f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide + g, !1, c); break; case "index": var i = 0 === b.data.index ? 0 : b.data.index || e.index() * d.options.slidesToScroll; d.slideHandler(d.checkNavigable(i), !1, c), e.children().trigger("focus"); break; default: return } }, b.prototype.checkNavigable = function (a) { var c, d, b = this; if (c = b.getNavigableIndexes(), d = 0, a > c[c.length - 1]) a = c[c.length - 1]; else for (var e in c) { if (a < c[e]) { a = d; break } d = c[e] } return a }, b.prototype.cleanUpEvents = function () { var b = this; 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.
596slick", 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) }, b.prototype.cleanUpSlideEvents = function () { var b = this; b.$list.off("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.off("mouseleave.slick", a.proxy(b.interrupt, b, !1)) }, b.prototype.cleanUpRows = function () { var b, a = this; a.options.rows > 1 && (b = a.$slides.children().children(), b.removeAttr("style"), a.$slider.empty().append(b)) }, b.prototype.clickHandler = function (a) { var b = this; b.shouldClick === !1 && (a.stopImmediatePropagation(), a.stopPropagation(), a.preventDefault()) }, b.prototype.destroy = function (b) { var c = this; 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 () { a(this).attr("style", a(this).data("originalStyling")) }), 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]) }, b.prototype.disableTransition = function (a) { var b = this, c = {}; c[b.transitionType] = "", b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) }, b.prototype.fadeSlide = function (a, b) { var c = this; c.cssTransitions === !1 ? (c.$slides.eq(a).css({ zIndex: c.options.zIndex }), c.$slides.eq(a).animate({ opacity: 1 }, c.options.speed, c.options.easing, b)) : (c.applyTransition(a), c.$slides.eq(a).css({ opacity: 1, zIndex: c.options.zIndex }), b && setTimeout(function () { c.disableTransition(a), b.call() }, c.options.speed)) }, b.prototype.fadeSlideOut = function (a) { var b = this; b.cssTransitions === !1 ? b.$slides.eq(a).animate({ opacity: 0, zIndex: b.options.zIndex - 2 }, b.options.speed, b.options.easing) : (b.applyTransition(a), b.$slides.eq(a).css({ opacity: 0, zIndex: b.options.zIndex - 2 })) }, b.prototype.filterSlides = b.prototype.slickFilter = function (a) { var b = this; null !== a && (b.$slidesCache = b.$slides, b.unload(), b.$slideTrack.children(this.options.slide).detach(), b.$slidesCache.filter(a).appendTo(b.$slideTrack), b.reinit()) }, b.prototype.focusHandler = function () { var b = this; b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*:not(.slick-arrow)", function (c) { c.stopImmediatePropagation(); var d = a(this); setTimeout(function () { b.options.pauseOnFocus && (b.focussed = d.is(":focus"), b.autoPlay()) }, 0) }) }, b.prototype.getCurrent = b.prototype.slickCurrentSlide = function () { var a = this; return a.currentSlide }, b.prototype.getDotCount = function () { var a = this, b = 0, c = 0, d = 0; 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,280 bytes, line 596
596 else d = 1 + Math.ceil((a.slideCount - a.options.slidesToShow) / a.options.slidesToScroll); return d - 1 }, b.prototype.getLeft = function (a) { var c, d, f, b = this, e = 0; 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 }, b.prototype.getOption = b.prototype.slickGetOption = function (a) { var b = this; return b.options[a] }, b.prototype.getNavigableIndexes = function () { var e, a = this, b = 0, c = 0, d = []; 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; return d }, b.prototype.getSlick = function () { return this }, b.prototype.getSlideCount = function () { var c, d, e, b = this; 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) { return f.offsetLeft - e + a(f).outerWidth() / 2 > -1 * b.swipeLeft ? (d = f, !1) : void 0 }), c = Math.abs(a(d).attr("data-slick-index") - b.currentSlide) || 1) : b.options.slidesToScroll }, b.prototype.goTo = b.prototype.slickGoTo = function (a, b) { var c = this; c.changeSlide({ data: { message: "index", index: parseInt(a) } }, b) }, b.prototype.init = function (b) { var c = this; 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()) }, b.prototype.initADA = function () { var b = this; b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({ "aria-hidden": "true", tabindex: "-1" }).find("a, input, button, select").attr({ tabindex: "-1" }), b.$slideTrack.attr("role", "listbox"), b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function (c) { a(this).attr({ role: "option", "aria-describedby": "slick-slide" + b.instanceUid + c }) }), null !== b.$dots && b.$dots.attr("role", "tablist").find("li").each(function (c) { a(this).attr({ role: "presentation", "aria-selected": "false", "aria-controls": "navigation" + b.instanceUid + c, id: "slick-slide" + b.instanceUid + c }) }).first().attr("aria-selected", "true").end().find("button").attr("role", "button").end().closest("div").attr("role", "toolbar"), b.activateADA() }, b.prototype.initArrowEvents = function () { var a = this; a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.off("click.slick").on("click.slick", { message: "previous" }, a.changeSlide), a.$nextArrow.off("click.slick").on("click.slick", { message: "next" }, a.changeSlide)) }, b.prototype.initDotEvents = function () { var b = this; b.options.dots === !0 && b.slideCount > b.options.slidesToShow && a("li", b.$dots).on("click.slick", { message: "index" }, 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.
596slick", a.proxy(b.interrupt, b, !1)) }, b.prototype.initSlideEvents = function () { var b = this; 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))) }, b.prototype.initializeEvents = function () { var b = this; b.initArrowEvents(), b.initDotEvents(), b.initSlideEvents(), b.$list.on("touchstart.slick mousedown.slick", { action: "start" }, b.swipeHandler), b.$list.on("touchmove.slick mousemove.slick", { action: "move" }, b.swipeHandler), b.$list.on("touchend.slick mouseup.slick", { action: "end" }, b.swipeHandler), b.$list.on("touchcancel.slick mouseleave.slick", { action: "end" }, 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) }, b.prototype.initUI = function () { var a = this; 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() }, b.prototype.keyHandler = function (a) { var b = this; a.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === a.keyCode && b.options.accessibility === !0 ? b.changeSlide({ data: { message: b.options.rtl === !0 ? "next" : "previous" } }) : 39 === a.keyCode && b.options.accessibility === !0 && b.changeSlide({ data: { message: b.options.rtl === !0 ? "previous" : "next" } })) }, b.prototype.lazyLoad = function () { function g(c) { a("img[data-lazy]", c).each(function () { var c = a(this), d = a(this).attr("data-lazy"), e = document.createElement("img"); e.onload = function () { c.animate({ opacity: 0 }, 100, function () { c.attr("src", d).animate({ opacity: 1 }, 200, function () { c.removeAttr("data-lazy").removeClass("slick-loading") }), b.$slider.trigger("lazyLoaded", [b, c, d]) }) }, e.onerror = function () { c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), b.$slider.trigger("lazyLoadError", [b, c, d]) }, e.src = d }) } var c, d, e, f, b = this; 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)) }, b.prototype.loadSlider = function () { var a = this; a.setPosition(), a.$slideTrack.css({ opacity: 1 }), a.$slider.removeClass("slick-loading"), a.initUI(), "progressive" === a.options.lazyLoad && a.progressiveLazyLoad() }, b.prototype.next = b.prototype.slickNext = function () { var a = this; a.changeSlide({ data: { message: "next" } }) }, b.prototype.orientationChange = function () { var a = this; a.checkResponsive(), a.setPosition() }, b.prototype.pause = b.prototype.slickPause = function () { var a = this; a.autoPlayClear(), a.paused = !0 }, b.prototype.play = b.prototype.slickPlay = function () { var a = this; a.autoPlay(), a.options.autoplay = !0, a.paused = !1, a.focussed = !1, a.interrupted = !1 }, b.prototype.postSlide = function (a) { var b = this; 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()
vendor: 6,085 bytes, line 596
596) }, b.prototype.prev = b.prototype.slickPrev = function () { var a = this; a.changeSlide({ data: { message: "previous" } }) }, b.prototype.preventDefault = function (a) { a.preventDefault() }, b.prototype.progressiveLazyLoad = function (b) { b = b || 1; var e, f, g, c = this, d = a("img[data-lazy]", c.$slider); d.length ? (e = d.first(), f = e.attr("data-lazy"), g = document.createElement("img"), g.onload = function () { 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() }, g.onerror = function () { 3 > b ? setTimeout(function () { c.progressiveLazyLoad(b + 1) }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), c.$slider.trigger("lazyLoadError", [c, e, f]), c.progressiveLazyLoad()) }, g.src = f) : c.$slider.trigger("allImagesLoaded", [c]) }, b.prototype.refresh = function (b) { var d, e, c = this; 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, { currentSlide: d }), c.init(), b || c.changeSlide({ data: { message: "index", index: d } }, !1) }, b.prototype.registerBreakpoints = function () { var c, d, e, b = this, f = b.options.responsive || null; if ("array" === a.type(f) && f.length) { b.respondTo = b.options.respondTo || "window"; for (c in f) if (e = b.breakpoints.length - 1, d = f[c].breakpoint, f.hasOwnProperty(c)) { for (; e >= 0;) b.breakpoints[e] && b.breakpoints[e] === d && b.breakpoints.splice(e, 1), e--; b.breakpoints.push(d), b.breakpointSettings[d] = f[c].settings } b.breakpoints.sort(function (a, c) { return b.options.mobileFirst ? a - c : c - a }) } }, b.prototype.reinit = function () { var b = this; 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]) }, b.prototype.resize = function () { var b = this; a(window).width() !== b.windowWidth && (clearTimeout(b.windowDelay), b.windowDelay = window.setTimeout(function () { b.windowWidth = a(window).width(), b.checkResponsive(), b.unslicked || b.setPosition() }, 50)) }, b.prototype.removeSlide = b.prototype.slickRemove = function (a, b, c) { var d = this; 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()) }, b.prototype.setCSS = function (a) { var d, e, b = this, c = {}; 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))) }, b.prototype.setDimensions = function () { var a = this; a.options.vertical === !1 ? a.options.centerMode === !0 && a.$list.css({ padding: "0px " + a.options.centerPadding }) : (a.$list.height(a.$slides.first().outerHeight(!0) * a.options.slidesToShow), a.options.centerMode === !0 && a.$list.css({ padding: a.options.centerPadding + " 0px" })), 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))); var b = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); a.options.variableWidth === !1 && a.$slideTrack.children(".slick-slide").width(a.slideWidth - b) }, b.prototype.setFade = function () { var c, b = this; b.$slides.each(function (d, e) { c = b.slideWidth * d * -1, b.options.rtl === !0 ? a(e).css({ position: "relative", right: c, top: 0, zIndex: b.options.zIndex - 2, opacity: 0 }) : a(e).css({ position: "relative", left: c, top: 0, zIndex: b.options.zIndex - 2, opacity: 0 }) }), b.$slides.eq(b.currentSlide).css({ zIndex: b.options.zIndex - 1, opacity: 1 }) }, b.prototype.setHeight = function () { var a = this; if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { var b = a.$slides.eq(a.currentSlide).outerHeight(!0); a.$list.css("height", b) } }, b.prototype.setOption = b.prototype.slickSetOption = function () { var c, d, e, f, h, b = this, g = !1; 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: 8,037 bytes, lines 596-599
596= "responsive" : "undefined" != typeof arguments[1] && (h = "single")), "single" === h) b.options[e] = f; else if ("multiple" === h) a.each(e, function (a, c) { b.options[a] = c }); else if ("responsive" === h) for (d in f) if ("array" !== a.type(b.options.responsive)) b.options.responsive = [f[d]]; else { for (c = b.options.responsive.length - 1; c >= 0;) b.options.responsive[c].breakpoint === f[d].breakpoint && b.options.responsive.splice(c, 1), c--; b.options.responsive.push(f[d]) } g && (b.unload(), b.reinit()) }, b.prototype.setPosition = function () { var a = this; a.setDimensions(), a.setHeight(), a.options.fade === !1 ? a.setCSS(a.getLeft(a.currentSlide)) : a.setFade(), a.$slider.trigger("setPosition", [a]) }, b.prototype.setProps = function () { var a = this, b = document.body.style; 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 }, b.prototype.setSlideClasses = function (a) {
597        var c, d, e, f, b = this; 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,
598            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()
599    }, b.prototype.setupInfinite = function () { var c, d, e, b = this; if (b.options.fade === !0 && (b.options.centerMode = !1), b.options.infinite === !0 && b.options.fade === !1 && (d = null, b.slideCount > b.options.slidesToShow)) { 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"); 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"); b.$slideTrack.find(".slick-cloned").find("[id]").each(function () { a(this).attr("id", "") }) } }, b.prototype.interrupt = function (a) { var b = this; a || b.autoPlay(), b.interrupted = a }, b.prototype.selectHandler = function (b) { var c = this, d = a(b.target).is(".slick-slide") ? a(b.target) : a(b.target).parents(".slick-slide"), e = parseInt(d.attr("data-slick-index")); return e || (e = 0), c.slideCount <= c.options.slidesToShow ? (c.setSlideClasses(e), void c.asNavFor(e)) : void c.slideHandler(e) }, b.prototype.slideHandler = function (a, b, c) { var d, e, f, g, j, h = null, i = this; 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 () { i.postSlide(d) }) : 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 () { i.postSlide(d) }) : 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 () { i.postSlide(e) })) : i.postSlide(e), void i.animateHeight()) : void (c !== !0 ? i.animateSlide(h, function () { i.postSlide(e) }) : i.postSlide(e)))) }, b.prototype.startLoad = function () { var a = this; 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") }, b.prototype.swipeDirection = function () { var a, b, c, d, e = this; 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" }, b.prototype.swipeEnd = function (a) { var c, d, b = this; if (b.dragging = !1, b.interrupted = !1, b.shouldClick = b.touchObject.swipeLength > 10 ? !1 : !0, void 0 === b.touchObject.curX) return !1; if (b.touchObject.edgeHit === !0 && b.$slider.trigger("edge", [b, b.swipeDirection()]), b.touchObject.swipeLength >= b.touchObject.minSwipe) { switch (d = b.swipeDirection()) { case "left"
599: case "down": c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide + b.getSlideCount()) : b.currentSlide + b.getSlideCount(), b.currentDirection = 0; break; case "right": case "up": c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide - b.getSlideCount()) : b.currentSlide - b.getSlideCount(), b.currentDirection = 1 } "vertical" != d && (b.slideHandler(c), b.touchObject = {}, b.$slider.trigger("swipe", [b, d])) } else b.touchObject.startX !== b.touchObject.curX && (b.slideHandler(b.currentSlide), b.touchObject = {}) }, b.prototype.swipeHandler = function (a) { var b = this; 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) { case "start": b.swipeStart(a); break; case "move": b.swipeMove(a); break; case "end": b.swipeEnd(a) } }, b.prototype.swipeMove = function (a) { var d, e, f, g, h, b = this; 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) }, b.prototype.swipeStart = function (a) { var c, b = this; 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)) }, b.prototype.unfilterSlides = b.prototype.slickUnfilter = function () { var a = this; null !== a.$slidesCache && (a.unload(), a.$slideTrack.children(this.options.slide).detach(), a.$slidesCache.appendTo(a.$slideTrack), a.reinit()) }, b.prototype.unload = function () { var b = this; 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", "") }, b.prototype.unslick = function (a) { var b = this; b.$slider.trigger("unslick", [b, a]), b.destroy() }, b.prototype.updateArrows = function () { var b, a = this; 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"))) }, b.prototype.updateDots = function () { var a = this; 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")) }, b.prototype.visibility = function () { var a = this; a.options.autoplay && (document[a.hidden] ? a.interrupted = !0 : a.interrupted = !1) }, a.fn.slick = function () { var f, g, a = this, c = arguments[0], d = Array.prototype.slice.call(arguments, 1), e = a.length; 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; return a }
600});
601
602function trackEvent(category, action) {
603    ga('send', 'event', category, action);
604    console.log(category, action);
605}

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.