function fireScripts() {
    setupFacebookEvents(), jQuery("#nav-icon1").unbind().click(function () {
        jQuery(this).toggleClass("open"), jQuery("#hamburger-menu").toggleClass("open")
    }), fireParallax(), jQuery("no-smoothState.menu-item a").addClass("no-smoothState"), jQuery("a.video-section-play-button").click(function (e) {
        e.preventDefault();
        var t = jQuery(this), n = jQuery(t.attr("href")), o = n.find(".flex-video"), r = o.find("iframe");
        if (n.addClass("play"), "undefined" != typeof r[0])sendVimeoCommand(r[0], "play"); else {
            var i = jQuery(t.attr("href") + "-audio");
            i[0].play()
        }
    }), jQuery(".section-video .close-button").click(function (e) {
        e.preventDefault();
        var t = jQuery(this), n = jQuery(t.attr("href")), o = n.find("iframe");
        if (n.removeClass("play"), "undefined" != typeof o[0])sendVimeoCommand(o[0], "pause"); else {
            var r = jQuery(t.attr("href") + "-audio");
            r[0].pause()
        }
    }), jQuery("img.section-background-image").each(function () {
        var e = jQuery(this);
        e.ready(function () {
            e.addClass("loaded")
        })
    }), jQuery("video.section-background-image").each(function (e) {
        $video = jQuery(this), $poster = jQuery(".video-backup"), $video.on("canplaythrough", function () {
            $video.addClass("loaded"), $poster.fadeOut()
        }), $video[0].readyState > 3 && ($video.addClass("loaded"), $poster.fadeOut())
    }), jQuery("a.scroll").click(function () {
        if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
            var e = jQuery(this.hash);
            if (e = e.length ? e : jQuery("[name=" + this.hash.slice(1) + "]"), e.length)return jQuery("html,body").animate({scrollTop: e.offset().top}, 300), !1
        }
    }), jQuery(".lightbox").magnificPopup({type: "image"}), jQuery(".gallery-item").magnificPopup({type: "image", gallery: {enabled: !0}, zoom: {enabled: !0, duration: 200, easing: "ease-in-out", opener: function (e) {
        return e.is("img") ? e : e.find("img")
    }}})
}
function gaTrack(e) {
    "function" == typeof ga && (ga("set", {page: e}), ga("send", "pageview"))
}
function parseFacebookDateString(e) {
    var t = e.split("T")[0], n = e.split("T")[1].substring(0, 8), o = new Date(t.split("-")[0], t.split("-")[1] - 1, t.split("-")[2], n.split(":")[0], n.split(":")[1], n.split(":")[2]);
    return o
}
function setupFacebookEvents() {
    console.log(typeof Vue), "undefined" != typeof Vue && (console.log(Vue), Vue.config.delimiters = ["[[", "]]"], Vue.component("event", {template: "#event-template", props: ["event"], methods: {open: function () {
        this.event.open = !this.event.open, console.log(this.event.open)
    }}}), new Vue({el: "#facebook-events", data: {events: []}, ready: function () {
        var e = this;
        jQuery.ajax({url: "/wp-content/themes/soulschurch/library/facebook-events.php", method: "GET", success: function (t) {
            console.log(t), e.events = t.data, e.events.forEach(function (e, t, n) {
                e.link = "http://www.facebook.com/events/" + e.id, e.open = !1, console.log(e.start_time), e.date = parseFacebookDateString(e.start_time), console.log(e.date), e.dateString = e.date.toLocaleDateString() + " | " + e.date.toLocaleTimeString()
            }), e.events.sort(function (e, t) {
                return Date.parse(e.start_time) - Date.parse(t.start_time)
            }), e.events.length > 6 && (e.events.length = 6)
        }, error: function (e) {
            alert(JSON.stringify(e))
        }})
    }}))
}
function fireParallax() {
    jQuery(".parallax").each(function () {
        function e() {
            window.requestAnimationFrame(function () {
                var e = jQuery(window).scrollTop(), a = o.offset().top;
                l = a - r, u = a + s, e >= l && e <= u && (f = 1 / d * e + -u / d + .5, t = (100 * (f + .5)).toFixed(1), n = "50% " + t + "%", t != o.percent && (o.css("perspective-origin", n), o.percent = t, i.css("animation-delay", -(f + .5) + "s"))), window.storedPosition = e
            })
        }

        var t, n, o = jQuery(this), r = (o.height(), o.offset().top, o.find(".section-background-div"), jQuery(window).height()), i = (jQuery("#wrapper").height(), o.find(".lined")), a = (o.find(".antipar"), o.offset().top), s = o.height(), c = jQuery(window).scrollTop(), l = a - r, u = a + s, d = u - l, f = (1 / d * c + -u / d + .5).toFixed(3);
        setInterval(e, 1e3 / 60)
    })
}
function sendVimeoCommand(e, t) {
    var n = {};
    n.method = t, n.value = "void";
    var o = "*", r = JSON.stringify(n);
    e.contentWindow.postMessage(r, o)
}
function loadYouTubeAPI() {
    var e = document.createElement("script");
    e.src = "https://www.youtube.com/iframe_api";
    var t = document.getElementsByTagName("script")[0];
    t.parentNode.insertBefore(e, t)
}
!function (e) {
    "function" == typeof define && define.amd ? define(["jquery"], e) : e("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto)
}(function (e) {
    var t, n, o, r, i, a, s = "Close", c = "BeforeClose", l = "AfterClose", u = "BeforeAppend", d = "MarkupParse", f = "Open", p = "Change", m = "mfp", g = "." + m, h = "mfp-ready", v = "mfp-removing", y = "mfp-prevent-close", b = function () {
    }, w = !!window.jQuery, C = e(window), x = function (e, n) {
        t.ev.on(m + e + g, n)
    }, k = function (t, n, o, r) {
        var i = document.createElement("div");
        return i.className = "mfp-" + t, o && (i.innerHTML = o), r ? n && n.appendChild(i) : (i = e(i), n && i.appendTo(n)), i
    }, S = function (n, o) {
        t.ev.triggerHandler(m + n, o), t.st.callbacks && (n = n.charAt(0).toLowerCase() + n.slice(1), t.st.callbacks[n] && t.st.callbacks[n].apply(t, e.isArray(o) ? o : [o]))
    }, I = function (n) {
        return n === a && t.currTemplate.closeBtn || (t.currTemplate.closeBtn = e(t.st.closeMarkup.replace("%title%", t.st.tClose)), a = n), t.currTemplate.closeBtn
    }, T = function () {
        e.magnificPopup.instance || (t = new b, t.init(), e.magnificPopup.instance = t)
    }, E = function () {
        var e = document.createElement("p").style, t = ["ms", "O", "Moz", "Webkit"];
        if (void 0 !== e.transition)return!0;
        for (; t.length;)if (t.pop() + "Transition"in e)return!0;
        return!1
    };
    b.prototype = {constructor: b, init: function () {
        var n = navigator.appVersion;
        t.isLowIE = t.isIE8 = document.all && !document.addEventListener, t.isAndroid = /android/gi.test(n), t.isIOS = /iphone|ipad|ipod/gi.test(n), t.supportsTransition = E(), t.probablyMobile = t.isAndroid || t.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), o = e(document), t.popupsCache = {}
    }, open: function (n) {
        var r;
        if (n.isObj === !1) {
            t.items = n.items.toArray(), t.index = 0;
            var a, s = n.items;
            for (r = 0; r < s.length; r++)if (a = s[r], a.parsed && (a = a.el[0]), a === n.el[0]) {
                t.index = r;
                break
            }
        } else t.items = e.isArray(n.items) ? n.items : [n.items], t.index = n.index || 0;
        if (t.isOpen)return void t.updateItemHTML();
        t.types = [], i = "", n.mainEl && n.mainEl.length ? t.ev = n.mainEl.eq(0) : t.ev = o, n.key ? (t.popupsCache[n.key] || (t.popupsCache[n.key] = {}), t.currTemplate = t.popupsCache[n.key]) : t.currTemplate = {}, t.st = e.extend(!0, {}, e.magnificPopup.defaults, n), t.fixedContentPos = "auto" === t.st.fixedContentPos ? !t.probablyMobile : t.st.fixedContentPos, t.st.modal && (t.st.closeOnContentClick = !1, t.st.closeOnBgClick = !1, t.st.showCloseBtn = !1, t.st.enableEscapeKey = !1), t.bgOverlay || (t.bgOverlay = k("bg").on("click" + g, function () {
            t.close()
        }), t.wrap = k("wrap").attr("tabindex", -1).on("click" + g, function (e) {
            t._checkIfClose(e.target) && t.close()
        }), t.container = k("container", t.wrap)), t.contentContainer = k("content"), t.st.preloader && (t.preloader = k("preloader", t.container, t.st.tLoading));
        var c = e.magnificPopup.modules;
        for (r = 0; r < c.length; r++) {
            var l = c[r];
            l = l.charAt(0).toUpperCase() + l.slice(1), t["init" + l].call(t)
        }
        S("BeforeOpen"), t.st.showCloseBtn && (t.st.closeBtnInside ? (x(d, function (e, t, n, o) {
            n.close_replaceWith = I(o.type)
        }), i += " mfp-close-btn-in") : t.wrap.append(I())), t.st.alignTop && (i += " mfp-align-top"), t.fixedContentPos ? t.wrap.css({overflow: t.st.overflowY, overflowX: "hidden", overflowY: t.st.overflowY}) : t.wrap.css({top: C.scrollTop(), position: "absolute"}), (t.st.fixedBgPos === !1 || "auto" === t.st.fixedBgPos && !t.fixedContentPos) && t.bgOverlay.css({height: o.height(), position: "absolute"}), t.st.enableEscapeKey && o.on("keyup" + g, function (e) {
            27 === e.keyCode && t.close()
        }), C.on("resize" + g, function () {
            t.updateSize()
        }), t.st.closeOnContentClick || (i += " mfp-auto-cursor"), i && t.wrap.addClass(i);
        var u = t.wH = C.height(), p = {};
        if (t.fixedContentPos && t._hasScrollBar(u)) {
            var m = t._getScrollbarSize();
            m && (p.marginRight = m)
        }
        t.fixedContentPos && (t.isIE7 ? e("body, html").css("overflow", "hidden") : p.overflow = "hidden");
        var v = t.st.mainClass;
        return t.isIE7 && (v += " mfp-ie7"), v && t._addClassToMFP(v), t.updateItemHTML(), S("BuildControls"), e("html").css(p), t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo || e(document.body)), t._lastFocusedEl = document.activeElement, setTimeout(function () {
            t.content ? (t._addClassToMFP(h), t._setFocus()) : t.bgOverlay.addClass(h), o.on("focusin" + g, t._onFocusIn)
        }, 16), t.isOpen = !0, t.updateSize(u), S(f), n
    }, close: function () {
        t.isOpen && (S(c), t.isOpen = !1, t.st.removalDelay && !t.isLowIE && t.supportsTransition ? (t._addClassToMFP(v), setTimeout(function () {
            t._close()
        }, t.st.removalDelay)) : t._close())
    }, _close: function () {
        S(s);
        var n = v + " " + h + " ";
        if (t.bgOverlay.detach(), t.wrap.detach(), t.container.empty(), t.st.mainClass && (n += t.st.mainClass + " "), t._removeClassFromMFP(n), t.fixedContentPos) {
            var r = {marginRight: ""};
            t.isIE7 ? e("body, html").css("overflow", "") : r.overflow = "", e("html").css(r)
        }
        o.off("keyup" + g + " focusin" + g), t.ev.off(g), t.wrap.attr("class", "mfp-wrap").removeAttr("style"), t.bgOverlay.attr("class", "mfp-bg"), t.container.attr("class", "mfp-container"), !t.st.showCloseBtn || t.st.closeBtnInside && t.currTemplate[t.currItem.type] !== !0 || t.currTemplate.closeBtn && t.currTemplate.closeBtn.detach(), t.st.autoFocusLast && t._lastFocusedEl && e(t._lastFocusedEl).focus(), t.currItem = null, t.content = null, t.currTemplate = null, t.prevHeight = 0, S(l)
    }, updateSize: function (e) {
        if (t.isIOS) {
            var n = document.documentElement.clientWidth / window.innerWidth, o = window.innerHeight * n;
            t.wrap.css("height", o), t.wH = o
        } else t.wH = e || C.height();
        t.fixedContentPos || t.wrap.css("height", t.wH), S("Resize")
    }, updateItemHTML: function () {
        var n = t.items[t.index];
        t.contentContainer.detach(), t.content && t.content.detach(), n.parsed || (n = t.parseEl(t.index));
        var o = n.type;
        if (S("BeforeChange", [t.currItem ? t.currItem.type : "", o]), t.currItem = n, !t.currTemplate[o]) {
            var i = !!t.st[o] && t.st[o].markup;
            S("FirstMarkupParse", i), i ? t.currTemplate[o] = e(i) : t.currTemplate[o] = !0
        }
        r && r !== n.type && t.container.removeClass("mfp-" + r + "-holder");
        var a = t["get" + o.charAt(0).toUpperCase() + o.slice(1)](n, t.currTemplate[o]);
        t.appendContent(a, o), n.preloaded = !0, S(p, n), r = n.type, t.container.prepend(t.contentContainer), S("AfterChange")
    }, appendContent: function (e, n) {
        t.content = e, e ? t.st.showCloseBtn && t.st.closeBtnInside && t.currTemplate[n] === !0 ? t.content.find(".mfp-close").length || t.content.append(I()) : t.content = e : t.content = "", S(u), t.container.addClass("mfp-" + n + "-holder"), t.contentContainer.append(t.content)
    }, parseEl: function (n) {
        var o, r = t.items[n];
        if (r.tagName ? r = {el: e(r)} : (o = r.type, r = {data: r, src: r.src}), r.el) {
            for (var i = t.types, a = 0; a < i.length; a++)if (r.el.hasClass("mfp-" + i[a])) {
                o = i[a];
                break
            }
            r.src = r.el.attr("data-mfp-src"), r.src || (r.src = r.el.attr("href"))
        }
        return r.type = o || t.st.type || "inline", r.index = n, r.parsed = !0, t.items[n] = r, S("ElementParse", r), t.items[n]
    }, addGroup: function (e, n) {
        var o = function (o) {
            o.mfpEl = this, t._openClick(o, e, n)
        };
        n || (n = {});
        var r = "click.magnificPopup";
        n.mainEl = e, n.items ? (n.isObj = !0, e.off(r).on(r, o)) : (n.isObj = !1, n.delegate ? e.off(r).on(r, n.delegate, o) : (n.items = e, e.off(r).on(r, o)))
    }, _openClick: function (n, o, r) {
        var i = void 0 !== r.midClick ? r.midClick : e.magnificPopup.defaults.midClick;
        if (i || !(2 === n.which || n.ctrlKey || n.metaKey || n.altKey || n.shiftKey)) {
            var a = void 0 !== r.disableOn ? r.disableOn : e.magnificPopup.defaults.disableOn;
            if (a)if (e.isFunction(a)) {
                if (!a.call(t))return!0
            } else if (C.width() < a)return!0;
            n.type && (n.preventDefault(), t.isOpen && n.stopPropagation()), r.el = e(n.mfpEl), r.delegate && (r.items = o.find(r.delegate)), t.open(r)
        }
    }, updateStatus: function (e, o) {
        if (t.preloader) {
            n !== e && t.container.removeClass("mfp-s-" + n), o || "loading" !== e || (o = t.st.tLoading);
            var r = {status: e, text: o};
            S("UpdateStatus", r), e = r.status, o = r.text, t.preloader.html(o), t.preloader.find("a").on("click", function (e) {
                e.stopImmediatePropagation()
            }), t.container.addClass("mfp-s-" + e), n = e
        }
    }, _checkIfClose: function (n) {
        if (!e(n).hasClass(y)) {
            var o = t.st.closeOnContentClick, r = t.st.closeOnBgClick;
            if (o && r)return!0;
            if (!t.content || e(n).hasClass("mfp-close") || t.preloader && n === t.preloader[0])return!0;
            if (n === t.content[0] || e.contains(t.content[0], n)) {
                if (o)return!0
            } else if (r && e.contains(document, n))return!0;
            return!1
        }
    }, _addClassToMFP: function (e) {
        t.bgOverlay.addClass(e), t.wrap.addClass(e)
    }, _removeClassFromMFP: function (e) {
        this.bgOverlay.removeClass(e), t.wrap.removeClass(e)
    }, _hasScrollBar: function (e) {
        return(t.isIE7 ? o.height() : document.body.scrollHeight) > (e || C.height())
    }, _setFocus: function () {
        (t.st.focus ? t.content.find(t.st.focus).eq(0) : t.wrap).focus()
    }, _onFocusIn: function (n) {
        if (n.target !== t.wrap[0] && !e.contains(t.wrap[0], n.target))return t._setFocus(), !1
    }, _parseMarkup: function (t, n, o) {
        var r;
        o.data && (n = e.extend(o.data, n)), S(d, [t, n, o]), e.each(n, function (n, o) {
            if (void 0 === o || o === !1)return!0;
            if (r = n.split("_"), r.length > 1) {
                var i = t.find(g + "-" + r[0]);
                if (i.length > 0) {
                    var a = r[1];
                    "replaceWith" === a ? i[0] !== o[0] && i.replaceWith(o) : "img" === a ? i.is("img") ? i.attr("src", o) : i.replaceWith(e("<img>").attr("src", o).attr("class", i.attr("class"))) : i.attr(r[1], o)
                }
            } else t.find(g + "-" + n).html(o)
        })
    }, _getScrollbarSize: function () {
        if (void 0 === t.scrollbarSize) {
            var e = document.createElement("div");
            e.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(e), t.scrollbarSize = e.offsetWidth - e.clientWidth, document.body.removeChild(e)
        }
        return t.scrollbarSize
    }}, e.magnificPopup = {instance: null, proto: b.prototype, modules: [], open: function (t, n) {
        return T(), t = t ? e.extend(!0, {}, t) : {}, t.isObj = !0, t.index = n || 0, this.instance.open(t)
    }, close: function () {
        return e.magnificPopup.instance && e.magnificPopup.instance.close()
    }, registerModule: function (t, n) {
        n.options && (e.magnificPopup.defaults[t] = n.options), e.extend(this.proto, n.proto), this.modules.push(t)
    }, defaults: {disableOn: 0, key: null, midClick: !1, mainClass: "", preloader: !0, focus: "", closeOnContentClick: !1, closeOnBgClick: !0, closeBtnInside: !0, showCloseBtn: !0, enableEscapeKey: !0, modal: !1, alignTop: !1, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '<button title="%title%" type="button" class="mfp-close">&#215;</button>', tClose: "Close (Esc)", tLoading: "Loading...", autoFocusLast: !0}}, e.fn.magnificPopup = function (n) {
        T();
        var o = e(this);
        if ("string" == typeof n)if ("open" === n) {
            var r, i = w ? o.data("magnificPopup") : o[0].magnificPopup, a = parseInt(arguments[1], 10) || 0;
            i.items ? r = i.items[a] : (r = o, i.delegate && (r = r.find(i.delegate)), r = r.eq(a)), t._openClick({mfpEl: r}, o, i)
        } else t.isOpen && t[n].apply(t, Array.prototype.slice.call(arguments, 1)); else n = e.extend(!0, {}, n), w ? o.data("magnificPopup", n) : o[0].magnificPopup = n, t.addGroup(o, n);
        return o
    };
    var O, j, _, P = "inline", z = function () {
        _ && (j.after(_.addClass(O)).detach(), _ = null)
    };
    e.magnificPopup.registerModule(P, {options: {hiddenClass: "hide", markup: "", tNotFound: "Content not found"}, proto: {initInline: function () {
        t.types.push(P), x(s + "." + P, function () {
            z()
        })
    }, getInline: function (n, o) {
        if (z(), n.src) {
            var r = t.st.inline, i = e(n.src);
            if (i.length) {
                var a = i[0].parentNode;
                a && a.tagName && (j || (O = r.hiddenClass, j = k(O), O = "mfp-" + O), _ = i.after(j).detach().removeClass(O)), t.updateStatus("ready")
            } else t.updateStatus("error", r.tNotFound), i = e("<div>");
            return n.inlineElement = i, i
        }
        return t.updateStatus("ready"), t._parseMarkup(o, {}, n), o
    }}});
    var Q, M = "ajax", A = function () {
        Q && e(document.body).removeClass(Q)
    }, B = function () {
        A(), t.req && t.req.abort()
    };
    e.magnificPopup.registerModule(M, {options: {settings: null, cursor: "mfp-ajax-cur", tError: '<a href="%url%">The content</a> could not be loaded.'}, proto: {initAjax: function () {
        t.types.push(M), Q = t.st.ajax.cursor, x(s + "." + M, B), x("BeforeChange." + M, B)
    }, getAjax: function (n) {
        Q && e(document.body).addClass(Q), t.updateStatus("loading");
        var o = e.extend({url: n.src, success: function (o, r, i) {
            var a = {data: o, xhr: i};
            S("ParseAjax", a), t.appendContent(e(a.data), M), n.finished = !0, A(), t._setFocus(), setTimeout(function () {
                t.wrap.addClass(h)
            }, 16), t.updateStatus("ready"), S("AjaxContentAdded")
        }, error: function () {
            A(), n.finished = n.loadError = !0, t.updateStatus("error", t.st.ajax.tError.replace("%url%", n.src))
        }}, t.st.ajax.settings);
        return t.req = e.ajax(o), ""
    }}});
    var L, F = function (n) {
        if (n.data && void 0 !== n.data.title)return n.data.title;
        var o = t.st.image.titleSrc;
        if (o) {
            if (e.isFunction(o))return o.call(t, n);
            if (n.el)return n.el.attr(o) || ""
        }
        return""
    };
    e.magnificPopup.registerModule("image", {options: {markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: !0, tError: '<a href="%url%">The image</a> could not be loaded.'}, proto: {initImage: function () {
        var n = t.st.image, o = ".image";
        t.types.push("image"), x(f + o, function () {
            "image" === t.currItem.type && n.cursor && e(document.body).addClass(n.cursor)
        }), x(s + o, function () {
            n.cursor && e(document.body).removeClass(n.cursor), C.off("resize" + g)
        }), x("Resize" + o, t.resizeImage), t.isLowIE && x("AfterChange", t.resizeImage)
    }, resizeImage: function () {
        var e = t.currItem;
        if (e && e.img && t.st.image.verticalFit) {
            var n = 0;
            t.isLowIE && (n = parseInt(e.img.css("padding-top"), 10) + parseInt(e.img.css("padding-bottom"), 10)), e.img.css("max-height", t.wH - n)
        }
    }, _onImageHasSize: function (e) {
        e.img && (e.hasSize = !0, L && clearInterval(L), e.isCheckingImgSize = !1, S("ImageHasSize", e), e.imgHidden && (t.content && t.content.removeClass("mfp-loading"), e.imgHidden = !1))
    }, findImageSize: function (e) {
        var n = 0, o = e.img[0], r = function (i) {
            L && clearInterval(L), L = setInterval(function () {
                return o.naturalWidth > 0 ? void t._onImageHasSize(e) : (n > 200 && clearInterval(L), n++, void(3 === n ? r(10) : 40 === n ? r(50) : 100 === n && r(500)))
            }, i)
        };
        r(1)
    }, getImage: function (n, o) {
        var r = 0, i = function () {
            n && (n.img[0].complete ? (n.img.off(".mfploader"), n === t.currItem && (t._onImageHasSize(n), t.updateStatus("ready")), n.hasSize = !0, n.loaded = !0, S("ImageLoadComplete")) : (r++, r < 200 ? setTimeout(i, 100) : a()))
        }, a = function () {
            n && (n.img.off(".mfploader"), n === t.currItem && (t._onImageHasSize(n), t.updateStatus("error", s.tError.replace("%url%", n.src))), n.hasSize = !0, n.loaded = !0, n.loadError = !0)
        }, s = t.st.image, c = o.find(".mfp-img");
        if (c.length) {
            var l = document.createElement("img");
            l.className = "mfp-img", n.el && n.el.find("img").length && (l.alt = n.el.find("img").attr("alt")), n.img = e(l).on("load.mfploader", i).on("error.mfploader", a), l.src = n.src, c.is("img") && (n.img = n.img.clone()), l = n.img[0], l.naturalWidth > 0 ? n.hasSize = !0 : l.width || (n.hasSize = !1)
        }
        return t._parseMarkup(o, {title: F(n), img_replaceWith: n.img}, n), t.resizeImage(), n.hasSize ? (L && clearInterval(L), n.loadError ? (o.addClass("mfp-loading"), t.updateStatus("error", s.tError.replace("%url%", n.src))) : (o.removeClass("mfp-loading"), t.updateStatus("ready")), o) : (t.updateStatus("loading"), n.loading = !0, n.hasSize || (n.imgHidden = !0, o.addClass("mfp-loading"), t.findImageSize(n)), o)
    }}});
    var H, q = function () {
        return void 0 === H && (H = void 0 !== document.createElement("p").style.MozTransform), H
    };
    e.magnificPopup.registerModule("zoom", {options: {enabled: !1, easing: "ease-in-out", duration: 300, opener: function (e) {
        return e.is("img") ? e : e.find("img")
    }}, proto: {initZoom: function () {
        var e, n = t.st.zoom, o = ".zoom";
        if (n.enabled && t.supportsTransition) {
            var r, i, a = n.duration, l = function (e) {
                var t = e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), o = "all " + n.duration / 1e3 + "s " + n.easing, r = {position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden"}, i = "transition";
                return r["-webkit-" + i] = r["-moz-" + i] = r["-o-" + i] = r[i] = o, t.css(r), t
            }, u = function () {
                t.content.css("visibility", "visible")
            };
            x("BuildControls" + o, function () {
                if (t._allowZoom()) {
                    if (clearTimeout(r), t.content.css("visibility", "hidden"), e = t._getItemToZoom(), !e)return void u();
                    i = l(e), i.css(t._getOffset()), t.wrap.append(i), r = setTimeout(function () {
                        i.css(t._getOffset(!0)), r = setTimeout(function () {
                            u(), setTimeout(function () {
                                i.remove(), e = i = null, S("ZoomAnimationEnded")
                            }, 16)
                        }, a)
                    }, 16)
                }
            }), x(c + o, function () {
                if (t._allowZoom()) {
                    if (clearTimeout(r), t.st.removalDelay = a, !e) {
                        if (e = t._getItemToZoom(), !e)return;
                        i = l(e)
                    }
                    i.css(t._getOffset(!0)), t.wrap.append(i), t.content.css("visibility", "hidden"), setTimeout(function () {
                        i.css(t._getOffset())
                    }, 16)
                }
            }), x(s + o, function () {
                t._allowZoom() && (u(), i && i.remove(), e = null)
            })
        }
    }, _allowZoom: function () {
        return"image" === t.currItem.type
    }, _getItemToZoom: function () {
        return!!t.currItem.hasSize && t.currItem.img
    }, _getOffset: function (n) {
        var o;
        o = n ? t.currItem.img : t.st.zoom.opener(t.currItem.el || t.currItem);
        var r = o.offset(), i = parseInt(o.css("padding-top"), 10), a = parseInt(o.css("padding-bottom"), 10);
        r.top -= e(window).scrollTop() - i;
        var s = {width: o.width(), height: (w ? o.innerHeight() : o[0].offsetHeight) - a - i};
        return q() ? s["-moz-transform"] = s.transform = "translate(" + r.left + "px," + r.top + "px)" : (s.left = r.left, s.top = r.top), s
    }}});
    var R = "iframe", D = "//about:blank", N = function (e) {
        if (t.currTemplate[R]) {
            var n = t.currTemplate[R].find("iframe");
            n.length && (e || (n[0].src = D), t.isIE8 && n.css("display", e ? "block" : "none"))
        }
    };
    e.magnificPopup.registerModule(R, {options: {markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', srcAction: "iframe_src", patterns: {youtube: {index: "youtube.com", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1"}, vimeo: {index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1"}, gmaps: {index: "//maps.google.", src: "%id%&output=embed"}}}, proto: {initIframe: function () {
        t.types.push(R), x("BeforeChange", function (e, t, n) {
            t !== n && (t === R ? N() : n === R && N(!0))
        }), x(s + "." + R, function () {
            N()
        })
    }, getIframe: function (n, o) {
        var r = n.src, i = t.st.iframe;
        e.each(i.patterns, function () {
            if (r.indexOf(this.index) > -1)return this.id && (r = "string" == typeof this.id ? r.substr(r.lastIndexOf(this.id) + this.id.length, r.length) : this.id.call(this, r)), r = this.src.replace("%id%", r), !1
        });
        var a = {};
        return i.srcAction && (a[i.srcAction] = r), t._parseMarkup(o, a, n), t.updateStatus("ready"), o
    }}});
    var W = function (e) {
        var n = t.items.length;
        return e > n - 1 ? e - n : e < 0 ? n + e : e
    }, Y = function (e, t, n) {
        return e.replace(/%curr%/gi, t + 1).replace(/%total%/gi, n)
    };
    e.magnificPopup.registerModule("gallery", {options: {enabled: !1, arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%"}, proto: {initGallery: function () {
        var n = t.st.gallery, r = ".mfp-gallery";
        return t.direction = !0, !(!n || !n.enabled) && (i += " mfp-gallery", x(f + r, function () {
            n.navigateByImgClick && t.wrap.on("click" + r, ".mfp-img", function () {
                if (t.items.length > 1)return t.next(), !1
            }), o.on("keydown" + r, function (e) {
                37 === e.keyCode ? t.prev() : 39 === e.keyCode && t.next()
            })
        }), x("UpdateStatus" + r, function (e, n) {
            n.text && (n.text = Y(n.text, t.currItem.index, t.items.length))
        }), x(d + r, function (e, o, r, i) {
            var a = t.items.length;
            r.counter = a > 1 ? Y(n.tCounter, i.index, a) : ""
        }), x("BuildControls" + r, function () {
            if (t.items.length > 1 && n.arrows && !t.arrowLeft) {
                var o = n.arrowMarkup, r = t.arrowLeft = e(o.replace(/%title%/gi, n.tPrev).replace(/%dir%/gi, "left")).addClass(y), i = t.arrowRight = e(o.replace(/%title%/gi, n.tNext).replace(/%dir%/gi, "right")).addClass(y);
                r.click(function () {
                    t.prev()
                }), i.click(function () {
                    t.next()
                }), t.container.append(r.add(i))
            }
        }), x(p + r, function () {
            t._preloadTimeout && clearTimeout(t._preloadTimeout), t._preloadTimeout = setTimeout(function () {
                t.preloadNearbyImages(), t._preloadTimeout = null
            }, 16)
        }), void x(s + r, function () {
            o.off(r), t.wrap.off("click" + r), t.arrowRight = t.arrowLeft = null
        }))
    }, next: function () {
        t.direction = !0, t.index = W(t.index + 1), t.updateItemHTML()
    }, prev: function () {
        t.direction = !1, t.index = W(t.index - 1), t.updateItemHTML()
    }, goTo: function (e) {
        t.direction = e >= t.index, t.index = e, t.updateItemHTML()
    }, preloadNearbyImages: function () {
        var e, n = t.st.gallery.preload, o = Math.min(n[0], t.items.length), r = Math.min(n[1], t.items.length);
        for (e = 1; e <= (t.direction ? r : o); e++)t._preloadItem(t.index + e);
        for (e = 1; e <= (t.direction ? o : r); e++)t._preloadItem(t.index - e)
    }, _preloadItem: function (n) {
        if (n = W(n), !t.items[n].preloaded) {
            var o = t.items[n];
            o.parsed || (o = t.parseEl(n)), S("LazyLoad", o), "image" === o.type && (o.img = e('<img class="mfp-img" />').on("load.mfploader", function () {
                o.hasSize = !0
            }).on("error.mfploader", function () {
                o.hasSize = !0, o.loadError = !0, S("LazyLoadError", o)
            }).attr("src", o.src)), o.preloaded = !0
        }
    }}});
    var X = "retina";
    e.magnificPopup.registerModule(X, {options: {replaceSrc: function (e) {
        return e.src.replace(/\.\w+$/, function (e) {
            return"@2x" + e
        })
    }, ratio: 1}, proto: {initRetina: function () {
        if (window.devicePixelRatio > 1) {
            var e = t.st.retina, n = e.ratio;
            n = isNaN(n) ? n() : n, n > 1 && (x("ImageHasSize." + X, function (e, t) {
                t.img.css({"max-width": t.img[0].naturalWidth / n, width: "100%"})
            }), x("ElementParse." + X, function (t, o) {
                o.src = e.replaceSrc(o, n)
            }))
        }
    }}}), T()
}), console.log("Master app.js"), jQuery(document).foundation(), jQuery(function () {
    jQuery("#wrapper").trigger("fire_scripts"), jQuery(".no-smoothState.menu-item a").addClass("no-smoothState");
    var e = jQuery("html, body");
    jQuery("#wrapper").smoothState({prefetch: !0, pageCacheSize: 4, blacklist: '.no-smoothState, form, a[href=""], .scroll, input, input[type="submit"], .wpcf7-form-control .wpcf7-submit, .gallery-item a', development: !1, onStart: {duration: 400, render: function (t, n) {
        jQuery("#wrapper").addClass("is-exiting"), e.animate({scrollTop: 0})
    }}, onReady: {duration: 0, render: function (e, t) {
        jQuery("#wrapper").removeClass("is-exiting"), jQuery("#wrapper").html(t)
    }}, onEnd: {duration: 0, render: function (t, n, o) {

    }}, onAfter: function (e, t, n) {
        jQuery(document).foundation(), console.log("Trigger fire_scripts event"), jQuery("#wrapper").trigger("fire_scripts"), gaTrack(window.location.pathname)
    }}).data("smoothState")
}), jQuery(document).on("fire_scripts", "#wrapper", function () {
    console.log("fire_scripts event triggered"), fireScripts()
}), !function (e) {

}(function (e, t, n, o) {
    "use strict";
    if (!t.history.pushState)return e.fn.smoothState = function () {
        return this
    }, void(e.fn.smoothState.options = {});
    if (!e.fn.smoothState) {
        var r = e("html, body"), i = t.console, a = {debug: !1, anchors: "a", hrefRegex: "", forms: "form", allowFormCaching: !1, repeatDelay: 500, blacklist: ".no-smoothState", prefetch: !1, prefetchOn: "mouseover touchstart", prefetchBlacklist: ".no-prefetch", cacheLength: 0, loadingClass: "is-loading", scroll: !0, alterRequest: function (e) {
            return e
        }, alterChangeState: function (e, t, n) {
            return e
        }, onBefore: function (e, t) {
        }, onStart: {duration: 0, render: function (e) {
        }}, onProgress: {duration: 0, render: function (e) {
        }}, onReady: {duration: 0, render: function (e, t) {
            e.html(t)
        }}, onAfter: function (e, t) {
        }}, s = {isExternal: function (e) {
            var n = e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);
            return"string" == typeof n[1] && n[1].length > 0 && n[1].toLowerCase() !== t.location.protocol || "string" == typeof n[2] && n[2].length > 0 && n[2].replace(new RegExp(":(" + {"http:": 80, "https:": 443}[t.location.protocol] + ")?$"), "") !== t.location.host
        }, stripHash: function (e) {
            return e.replace(/#.*/, "")
        }, isHash: function (e, n) {
            n = n || t.location.href;
            var o = e.indexOf("#") > -1, r = s.stripHash(e) === s.stripHash(n);
            return o && r
        }, translate: function (t) {
            var n = {dataType: "html", type: "GET"};
            return t = "string" == typeof t ? e.extend({}, n, {url: t}) : e.extend({}, n, t)
        }, shouldLoadAnchor: function (e, t, n) {
            var r = e.prop("href");
            return!(s.isExternal(r) || s.isHash(r) || e.is(t) || e.prop("target") || typeof n !== o && "" !== n && -1 === e.prop("href").search(n))
        }, clearIfOverCapacity: function (e, t) {
            return Object.keys || (Object.keys = function (e) {
                var t, n = [];
                for (t in e)Object.prototype.hasOwnProperty.call(e, t) && n.push(t);
                return n
            }), Object.keys(e).length > t && (e = {}), e
        }, storePageIn: function (t, n, o, r, i) {
            var a = e("<html></html>").append(e(o));
            return t[n] = {status: "loaded", title: a.find("title").first().text(), html: a.find("#" + r), doc: o, state: i}, t
        }, triggerAllAnimationEndEvent: function (t, n) {
            n = " " + n || "";
            var o = 0, r = "animationstart webkitAnimationStart oanimationstart MSAnimationStart", i = "animationend webkitAnimationEnd oanimationend MSAnimationEnd", a = "allanimationend", c = function (n) {
                e(n.delegateTarget).is(t) && (n.stopPropagation(), o++)
            }, l = function (n) {
                e(n.delegateTarget).is(t) && (n.stopPropagation(), o--, 0 === o && t.trigger(a))
            };
            t.on(r, c), t.on(i, l), t.on("allanimationend" + n, function () {
                o = 0, s.redraw(t)
            })
        }, redraw: function (e) {
            e.height()
        }}, c = function (n) {
            if (null !== n.state) {
                var o = t.location.href, r = e("#" + n.state.id), i = r.data("smoothState"), a = i.href !== o && !s.isHash(o, i.href), c = n.state !== i.cache[i.href].state;
                (a || c) && (c && i.clear(i.href), i.load(o, !1))
            }
        }, l = function (a, c) {
            var l = e(a), u = l.prop("id"), d = null, f = !1, p = {}, m = {}, g = t.location.href, h = function (e) {
                e = e || !1, e && p.hasOwnProperty(e) ? delete p[e] : p = {}, l.data("smoothState").cache = p
            }, v = function (t, n) {
                n = n || e.noop;
                var o = s.translate(t);
                if (p = s.clearIfOverCapacity(p, c.cacheLength), !p.hasOwnProperty(o.url) || "undefined" != typeof o.data) {
                    p[o.url] = {status: "fetching"};
                    var r = e.ajax(o);
                    r.done(function (e) {
                        s.storePageIn(p, o.url, e, u), l.data("smoothState").cache = p
                    }), r.fail(function () {
                        p[o.url].status = "error"
                    }), n && r.always(n)
                }
            }, y = function () {
                if (d) {
                    var t = e(d, l);
                    if (t.length) {
                        var n = t.offset().top;
                        r.scrollTop(n)
                    }
                    d = null
                }
            }, b = function (o) {
                var a = "#" + u, s = p[o] ? e(p[o].html.html()) : null;
                s.length ? (n.title = p[o].title, l.data("smoothState").href = o, c.loadingClass && r.removeClass(c.loadingClass), c.onReady.render(l, s), l.one("ss.onReadyEnd", function () {
                    f = !1, c.onAfter(l, s), c.scroll && y(), E(l)
                }), t.setTimeout(function () {
                    l.trigger("ss.onReadyEnd")
                }, c.onReady.duration)) : !s && c.debug && i ? i.warn("No element with an id of " + a + " in response from " + o + " in " + p) : t.location = o
            }, w = function (e, n, o) {
                var a = s.translate(e);
                "undefined" == typeof n && (n = !0), "undefined" == typeof o && (o = !0);
                var d = !1, f = !1, g = {loaded: function () {
                    var e = d ? "ss.onProgressEnd" : "ss.onStartEnd";
                    f && d ? f && b(a.url) : l.one(e, function () {
                        b(a.url), o || h(a.url)
                    }), n && (m = c.alterChangeState({id: u}, p[a.url].title, a.url), p[a.url].state = m, t.history.pushState(m, p[a.url].title, a.url)), f && !o && h(a.url)
                }, fetching: function () {
                    d || (d = !0, l.one("ss.onStartEnd", function () {
                        c.loadingClass && r.addClass(c.loadingClass), c.onProgress.render(l), t.setTimeout(function () {
                            l.trigger("ss.onProgressEnd"), f = !0
                        }, c.onProgress.duration)
                    })), t.setTimeout(function () {
                        p.hasOwnProperty(a.url) && g[p[a.url].status]()
                    }, 10)
                }, error: function () {
                    c.debug && i ? i.log("There was an error loading: " + a.url) : t.location = a.url
                }};
                p.hasOwnProperty(a.url) || v(a), c.onStart.render(l), t.setTimeout(function () {
                    c.scroll && r.scrollTop(0), l.trigger("ss.onStartEnd")
                }, c.onStart.duration), g[p[a.url].status]()
            }, C = function (t) {
                var n, o = e(t.currentTarget);
                s.shouldLoadAnchor(o, c.blacklist, c.hrefRegex) && !f && (t.stopPropagation(), n = s.translate(o.prop("href")), n = c.alterRequest(n), v(n))
            }, x = function (t) {
                var n = e(t.currentTarget);
                if (!t.metaKey && !t.ctrlKey && s.shouldLoadAnchor(n, c.blacklist, c.hrefRegex) && (t.stopPropagation(), t.preventDefault(), !I())) {
                    T();
                    var o = s.translate(n.prop("href"));
                    f = !0, d = n.prop("hash"), o = c.alterRequest(o), c.onBefore(n, l), w(o)
                }
            }, k = function (t) {
                var n = e(t.currentTarget);
                if (!n.is(c.blacklist) && (t.preventDefault(), t.stopPropagation(), !I())) {
                    T();
                    var r = {url: n.prop("action"), data: n.serialize(), type: n.prop("method")};
                    f = !0, r = c.alterRequest(r), "get" === r.type.toLowerCase() && (r.url = r.url + "?" + r.data), c.onBefore(n, l), w(r, o, c.allowFormCaching)
                }
            }, S = 0, I = function () {
                var e = null === c.repeatDelay, t = parseInt(Date.now()) > S;
                return!(e || t)
            }, T = function () {
                S = parseInt(Date.now()) + parseInt(c.repeatDelay)
            }, E = function (e) {
                c.anchors && c.prefetch && e.find(c.anchors).not(c.prefetchBlacklist).on(c.prefetchOn, null, C)
            }, O = function (e) {
                c.anchors && (e.on("click", c.anchors, x), E(e)), c.forms && e.on("submit", c.forms, k)
            }, j = function () {
                var e = l.prop("class");
                l.removeClass(e), s.redraw(l), l.addClass(e)
            };
            return c = e.extend({}, e.fn.smoothState.options, c), null === t.history.state ? (m = c.alterChangeState({id: u}, n.title, g), t.history.replaceState(m, n.title, g)) : m = {}, s.storePageIn(p, g, n.documentElement.outerHTML, u, m), s.triggerAllAnimationEndEvent(l, "ss.onStartEnd ss.onProgressEnd ss.onEndEnd"), O(l), {href: g, cache: p, clear: h, load: w, fetch: v, restartCSSAnimations: j}
        }, u = function (t) {
            return this.each(function () {
                var n = this.tagName.toLowerCase();
                this.id && "body" !== n && "html" !== n && !e.data(this, "smoothState") ? e.data(this, "smoothState", new l(this, t)) : !this.id && i ? i.warn("Every smoothState container needs an id but the following one does not have one:", this) : "body" !== n && "html" !== n || !i || i.warn("The smoothstate container cannot be the " + this.tagName + " tag")
            })
        };
        t.onpopstate = c, e.smoothStateUtility = s, e.fn.smoothState = u, e.fn.smoothState.options = a
    }
}), function (e, t) {
    "function" == typeof define && define.amd ? define(["jquery"], t) : "object" == typeof exports ? module.exports = t(require("jquery")) : t(e.jQuery)
}(window, function (e) {
    function t(e) {
        if (e in d.style)return e;
        for (var t = ["Moz", "Webkit", "O", "ms"], n = e.charAt(0).toUpperCase() + e.substr(1), o = 0; o < t.length; ++o) {
            var r = t[o] + n;
            if (r in d.style)return r
        }
    }

    function n() {
        return d.style[f.transform] = "", d.style[f.transform] = "rotateY(90deg)", "" !== d.style[f.transform]
    }

    function o(e) {
        return"string" == typeof e && this.parse(e), this
    }

    function r(e, t, n) {
        t === !0 ? e.queue(n) : t ? e.queue(t, n) : e.each(function () {
            n.call(this)
        })
    }

    function i(t) {
        var n = [];
        return e.each(t, function (t) {
            t = e.camelCase(t), t = e.transit.propertyMap[t] || e.cssProps[t] || t, t = c(t), f[t] && (t = c(f[t])), e.inArray(t, n) === -1 && n.push(t)
        }), n
    }

    function a(t, n, o, r) {
        var a = i(t);
        e.cssEase[o] && (o = e.cssEase[o]);
        var s = "" + u(n) + " " + o;
        parseInt(r, 10) > 0 && (s += " " + u(r));
        var c = [];
        return e.each(a, function (e, t) {
            c.push(t + " " + s)
        }), c.join(", ")
    }

    function s(t, n) {
        n || (e.cssNumber[t] = !0), e.transit.propertyMap[t] = f.transform, e.cssHooks[t] = {get: function (n) {
            var o = e(n).css("transit:transform");
            return o.get(t)
        }, set: function (n, o) {
            var r = e(n).css("transit:transform");
            r.setFromString(t, o), e(n).css({"transit:transform": r})
        }}
    }

    function c(e) {
        return e.replace(/([A-Z])/g, function (e) {
            return"-" + e.toLowerCase()
        })
    }

    function l(e, t) {
        return"string" != typeof e || e.match(/^[\-0-9\.]+$/) ? "" + e + t : e
    }

    function u(t) {
        var n = t;
        return"string" != typeof n || n.match(/^[\-0-9\.]+/) || (n = e.fx.speeds[n] || e.fx.speeds._default), l(n, "ms")
    }

    e.transit = {version: "0.9.12", propertyMap: {marginLeft: "margin", marginRight: "margin", marginBottom: "margin", marginTop: "margin", paddingLeft: "padding", paddingRight: "padding", paddingBottom: "padding", paddingTop: "padding"}, enabled: !0, useTransitionEnd: !1};
    var d = document.createElement("div"), f = {}, p = navigator.userAgent.toLowerCase().indexOf("chrome") > -1;
    f.transition = t("transition"), f.transitionDelay = t("transitionDelay"), f.transform = t("transform"), f.transformOrigin = t("transformOrigin"), f.filter = t("Filter"), f.transform3d = n();
    var m = {transition: "transitionend", MozTransition: "transitionend", OTransition: "oTransitionEnd", WebkitTransition: "webkitTransitionEnd", msTransition: "MSTransitionEnd"}, g = f.transitionEnd = m[f.transition] || null;
    for (var h in f)f.hasOwnProperty(h) && "undefined" == typeof e.support[h] && (e.support[h] = f[h]);
    return d = null, e.cssEase = {_default: "ease", "in": "ease-in", out: "ease-out", "in-out": "ease-in-out", snap: "cubic-bezier(0,1,.5,1)", easeInCubic: "cubic-bezier(.550,.055,.675,.190)", easeOutCubic: "cubic-bezier(.215,.61,.355,1)", easeInOutCubic: "cubic-bezier(.645,.045,.355,1)", easeInCirc: "cubic-bezier(.6,.04,.98,.335)", easeOutCirc: "cubic-bezier(.075,.82,.165,1)", easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)", easeInExpo: "cubic-bezier(.95,.05,.795,.035)", easeOutExpo: "cubic-bezier(.19,1,.22,1)", easeInOutExpo: "cubic-bezier(1,0,0,1)", easeInQuad: "cubic-bezier(.55,.085,.68,.53)", easeOutQuad: "cubic-bezier(.25,.46,.45,.94)", easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)", easeInQuart: "cubic-bezier(.895,.03,.685,.22)", easeOutQuart: "cubic-bezier(.165,.84,.44,1)", easeInOutQuart: "cubic-bezier(.77,0,.175,1)", easeInQuint: "cubic-bezier(.755,.05,.855,.06)", easeOutQuint: "cubic-bezier(.23,1,.32,1)", easeInOutQuint: "cubic-bezier(.86,0,.07,1)", easeInSine: "cubic-bezier(.47,0,.745,.715)", easeOutSine: "cubic-bezier(.39,.575,.565,1)", easeInOutSine: "cubic-bezier(.445,.05,.55,.95)", easeInBack: "cubic-bezier(.6,-.28,.735,.045)", easeOutBack: "cubic-bezier(.175, .885,.32,1.275)", easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)"}, e.cssHooks["transit:transform"] = {get: function (t) {
        return e(t).data("transform") || new o
    }, set: function (t, n) {
        var r = n;
        r instanceof o || (r = new o(r)), "WebkitTransform" !== f.transform || p ? t.style[f.transform] = r.toString() : t.style[f.transform] = r.toString(!0), e(t).data("transform", r)
    }}, e.cssHooks.transform = {set: e.cssHooks["transit:transform"].set}, e.cssHooks.filter = {get: function (e) {
        return e.style[f.filter]
    }, set: function (e, t) {
        e.style[f.filter] = t
    }}, e.fn.jquery < "1.8" && (e.cssHooks.transformOrigin = {get: function (e) {
        return e.style[f.transformOrigin]
    }, set: function (e, t) {
        e.style[f.transformOrigin] = t
    }}, e.cssHooks.transition = {get: function (e) {
        return e.style[f.transition]
    }, set: function (e, t) {
        e.style[f.transition] = t
    }}), s("scale"), s("scaleX"), s("scaleY"), s("translate"), s("rotate"), s("rotateX"), s("rotateY"), s("rotate3d"), s("perspective"), s("skewX"), s("skewY"), s("x", !0), s("y", !0), o.prototype = {setFromString: function (e, t) {
        var n = "string" == typeof t ? t.split(",") : t.constructor === Array ? t : [t];
        n.unshift(e), o.prototype.set.apply(this, n)
    }, set: function (e) {
        var t = Array.prototype.slice.apply(arguments, [1]);
        this.setter[e] ? this.setter[e].apply(this, t) : this[e] = t.join(",")
    }, get: function (e) {
        return this.getter[e] ? this.getter[e].apply(this) : this[e] || 0
    }, setter: {rotate: function (e) {
        this.rotate = l(e, "deg")
    }, rotateX: function (e) {
        this.rotateX = l(e, "deg")
    }, rotateY: function (e) {
        this.rotateY = l(e, "deg")
    }, scale: function (e, t) {
        void 0 === t && (t = e), this.scale = e + "," + t
    }, skewX: function (e) {
        this.skewX = l(e, "deg")
    }, skewY: function (e) {
        this.skewY = l(e, "deg")
    }, perspective: function (e) {
        this.perspective = l(e, "px")
    }, x: function (e) {
        this.set("translate", e, null)
    }, y: function (e) {
        this.set("translate", null, e)
    }, translate: function (e, t) {
        void 0 === this._translateX && (this._translateX = 0), void 0 === this._translateY && (this._translateY = 0), null !== e && void 0 !== e && (this._translateX = l(e, "px")), null !== t && void 0 !== t && (this._translateY = l(t, "px")), this.translate = this._translateX + "," + this._translateY
    }}, getter: {x: function () {
        return this._translateX || 0
    }, y: function () {
        return this._translateY || 0
    }, scale: function () {
        var e = (this.scale || "1,1").split(",");
        return e[0] && (e[0] = parseFloat(e[0])), e[1] && (e[1] = parseFloat(e[1])), e[0] === e[1] ? e[0] : e
    }, rotate3d: function () {
        for (var e = (this.rotate3d || "0,0,0,0deg").split(","), t = 0; t <= 3; ++t)e[t] && (e[t] = parseFloat(e[t]));
        return e[3] && (e[3] = l(e[3], "deg")), e
    }}, parse: function (e) {
        var t = this;
        e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function (e, n, o) {
            t.setFromString(n, o)
        })
    }, toString: function (e) {
        var t = [];
        for (var n in this)if (this.hasOwnProperty(n)) {
            if (!f.transform3d && ("rotateX" === n || "rotateY" === n || "perspective" === n || "transformOrigin" === n))continue;
            "_" !== n[0] && (e && "scale" === n ? t.push(n + "3d(" + this[n] + ",1)") : e && "translate" === n ? t.push(n + "3d(" + this[n] + ",0)") : t.push(n + "(" + this[n] + ")"))
        }
        return t.join(" ")
    }}, e.fn.transition = e.fn.transit = function (t, n, o, i) {
        var s = this, c = 0, l = !0, d = e.extend(!0, {}, t);
        "function" == typeof n && (i = n, n = void 0), "object" == typeof n && (o = n.easing, c = n.delay || 0, l = "undefined" == typeof n.queue || n.queue, i = n.complete, n = n.duration), "function" == typeof o && (i = o, o = void 0), "undefined" != typeof d.easing && (o = d.easing, delete d.easing), "undefined" != typeof d.duration && (n = d.duration, delete d.duration), "undefined" != typeof d.complete && (i = d.complete, delete d.complete), "undefined" != typeof d.queue && (l = d.queue, delete d.queue), "undefined" != typeof d.delay && (c = d.delay, delete d.delay), "undefined" == typeof n && (n = e.fx.speeds._default), "undefined" == typeof o && (o = e.cssEase._default), n = u(n);
        var p = a(d, n, o, c), m = e.transit.enabled && f.transition, h = m ? parseInt(n, 10) + parseInt(c, 10) : 0;
        if (0 === h) {
            var v = function (e) {
                s.css(d), i && i.apply(s), e && e()
            };
            return r(s, l, v), s
        }
        var y = {}, b = function (t) {
            var n = !1, o = function () {
                n && s.unbind(g, o), h > 0 && s.each(function () {
                    this.style[f.transition] = y[this] || null
                }), "function" == typeof i && i.apply(s), "function" == typeof t && t()
            };
            h > 0 && g && e.transit.useTransitionEnd ? (n = !0, s.bind(g, o)) : window.setTimeout(o, h), s.each(function () {
                h > 0 && (this.style[f.transition] = p), e(this).css(d)
            })
        }, w = function (e) {
            this.offsetWidth = this.offsetWidth, b(e)
        };
        return r(s, l, w), this
    }, e.transit.getTransitionValue = a, e
});