")
.append(m.parseHTML(a))
.find(d)
: a
);
})
.complete(
c &&
function(a, b) {
g.each(c, e || [a.responseText, b, a]);
}
),
this
);
}),
(m.expr.filters.animated = function(a) {
return m.grep(m.timers, function(b) {
return a === b.elem;
}).length;
});
var cd = a.document.documentElement;
function dd(a) {
return m.isWindow(a)
? a
: 9 === a.nodeType
? a.defaultView || a.parentWindow
: !1;
}
(m.offset = {
setOffset: function(a, b, c) {
var d,
e,
f,
g,
h,
i,
j,
k = m.css(a, "position"),
l = m(a),
n = {};
"static" === k && (a.style.position = "relative"),
(h = l.offset()),
(f = m.css(a, "top")),
(i = m.css(a, "left")),
(j =
("absolute" === k || "fixed" === k) &&
m.inArray("auto", [f, i]) > -1),
j
? ((d = l.position()), (g = d.top), (e = d.left))
: ((g = parseFloat(f) || 0), (e = parseFloat(i) || 0)),
m.isFunction(b) && (b = b.call(a, c, h)),
null != b.top && (n.top = b.top - h.top + g),
null != b.left && (n.left = b.left - h.left + e),
"using" in b ? b.using.call(a, n) : l.css(n);
}
}),
m.fn.extend({
offset: function(a) {
if (arguments.length)
return void 0 === a
? this
: this.each(function(b) {
m.offset.setOffset(this, a, b);
});
var b,
c,
d = { top: 0, left: 0 },
e = this[0],
f = e && e.ownerDocument;
if (f)
return (
(b = f.documentElement),
m.contains(b, e)
? (typeof e.getBoundingClientRect !== K &&
(d = e.getBoundingClientRect()),
(c = dd(f)),
{
top:
d.top + (c.pageYOffset || b.scrollTop) - (b.clientTop || 0),
left:
d.left +
(c.pageXOffset || b.scrollLeft) -
(b.clientLeft || 0)
})
: d
);
},
position: function() {
if (this[0]) {
var a,
b,
c = { top: 0, left: 0 },
d = this[0];
return (
"fixed" === m.css(d, "position")
? (b = d.getBoundingClientRect())
: ((a = this.offsetParent()),
(b = this.offset()),
m.nodeName(a[0], "html") || (c = a.offset()),
(c.top += m.css(a[0], "borderTopWidth", !0)),
(c.left += m.css(a[0], "borderLeftWidth", !0))),
{
top: b.top - c.top - m.css(d, "marginTop", !0),
left: b.left - c.left - m.css(d, "marginLeft", !0)
}
);
}
},
offsetParent: function() {
return this.map(function() {
var a = this.offsetParent || cd;
while (
a &&
!m.nodeName(a, "html") &&
"static" === m.css(a, "position")
)
a = a.offsetParent;
return a || cd;
});
}
}),
m.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
a,
b
) {
var c = /Y/.test(b);
m.fn[a] = function(d) {
return V(
this,
function(a, d, e) {
var f = dd(a);
return void 0 === e
? f
? b in f
? f[b]
: f.document.documentElement[d]
: a[d]
: void (f
? f.scrollTo(
c ? m(f).scrollLeft() : e,
c ? e : m(f).scrollTop()
)
: (a[d] = e));
},
a,
d,
arguments.length,
null
);
};
}),
m.each(["top", "left"], function(a, b) {
m.cssHooks[b] = Lb(k.pixelPosition, function(a, c) {
return c
? ((c = Jb(a, b)), Hb.test(c) ? m(a).position()[b] + "px" : c)
: void 0;
});
}),
m.each({ Height: "height", Width: "width" }, function(a, b) {
m.each({ padding: "inner" + a, content: b, "": "outer" + a }, function(
c,
d
) {
m.fn[d] = function(d, e) {
var f = arguments.length && (c || "boolean" != typeof d),
g = c || (d === !0 || e === !0 ? "margin" : "border");
return V(
this,
function(b, c, d) {
var e;
return m.isWindow(b)
? b.document.documentElement["client" + a]
: 9 === b.nodeType
? ((e = b.documentElement),
Math.max(
b.body["scroll" + a],
e["scroll" + a],
b.body["offset" + a],
e["offset" + a],
e["client" + a]
))
: void 0 === d
? m.css(b, c, g)
: m.style(b, c, d, g);
},
b,
f ? d : void 0,
f,
null
);
};
});
}),
(m.fn.size = function() {
return this.length;
}),
(m.fn.andSelf = m.fn.addBack),
"function" == typeof define &&
define.amd &&
define("jquery", [], function() {
return m;
});
var ed = a.jQuery,
fd = a.$;
return (
(m.noConflict = function(b) {
return a.$ === m && (a.$ = fd), b && a.jQuery === m && (a.jQuery = ed), m;
}),
typeof b === K && (a.jQuery = a.$ = m),
m
);
});
/*!
* Bootstrap v3.3.4 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if ("undefined" == typeof jQuery)
throw new Error("Bootstrap's JavaScript requires jQuery");
+(function(a) {
"use strict";
var b = a.fn.jquery.split(" ")[0].split(".");
if ((b[0] < 2 && b[1] < 9) || (1 == b[0] && 9 == b[1] && b[2] < 1))
throw new Error(
"Bootstrap's JavaScript requires jQuery version 1.9.1 or higher"
);
})(jQuery),
+(function(a) {
"use strict";
function b() {
var a = document.createElement("bootstrap"),
b = {
WebkitTransition: "webkitTransitionEnd",
MozTransition: "transitionend",
OTransition: "oTransitionEnd otransitionend",
transition: "transitionend"
};
for (var c in b) if (void 0 !== a.style[c]) return { end: b[c] };
return !1;
}
(a.fn.emulateTransitionEnd = function(b) {
var c = !1,
d = this;
a(this).one("bsTransitionEnd", function() {
c = !0;
});
var e = function() {
c || a(d).trigger(a.support.transition.end);
};
return setTimeout(e, b), this;
}),
a(function() {
(a.support.transition = b()),
a.support.transition &&
(a.event.special.bsTransitionEnd = {
bindType: a.support.transition.end,
delegateType: a.support.transition.end,
handle: function(b) {
return a(b.target).is(this)
? b.handleObj.handler.apply(this, arguments)
: void 0;
}
});
});
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var c = a(this),
e = c.data("bs.alert");
e || c.data("bs.alert", (e = new d(this))),
"string" == typeof b && e[b].call(c);
});
}
var c = '[data-dismiss="alert"]',
d = function(b) {
a(b).on("click", c, this.close);
};
(d.VERSION = "3.3.4"),
(d.TRANSITION_DURATION = 150),
(d.prototype.close = function(b) {
function c() {
g.detach()
.trigger("closed.bs.alert")
.remove();
}
var e = a(this),
f = e.attr("data-target");
f || ((f = e.attr("href")), (f = f && f.replace(/.*(?=#[^\s]*$)/, "")));
var g = a(f);
b && b.preventDefault(),
g.length || (g = e.closest(".alert")),
g.trigger((b = a.Event("close.bs.alert"))),
b.isDefaultPrevented() ||
(g.removeClass("in"),
a.support.transition && g.hasClass("fade")
? g
.one("bsTransitionEnd", c)
.emulateTransitionEnd(d.TRANSITION_DURATION)
: c());
});
var e = a.fn.alert;
(a.fn.alert = b),
(a.fn.alert.Constructor = d),
(a.fn.alert.noConflict = function() {
return (a.fn.alert = e), this;
}),
a(document).on("click.bs.alert.data-api", c, d.prototype.close);
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.button"),
f = "object" == typeof b && b;
e || d.data("bs.button", (e = new c(this, f))),
"toggle" == b ? e.toggle() : b && e.setState(b);
});
}
var c = function(b, d) {
(this.$element = a(b)),
(this.options = a.extend({}, c.DEFAULTS, d)),
(this.isLoading = !1);
};
(c.VERSION = "3.3.4"),
(c.DEFAULTS = { loadingText: "loading..." }),
(c.prototype.setState = function(b) {
var c = "disabled",
d = this.$element,
e = d.is("input") ? "val" : "html",
f = d.data();
(b += "Text"),
null == f.resetText && d.data("resetText", d[e]()),
setTimeout(
a.proxy(function() {
d[e](null == f[b] ? this.options[b] : f[b]),
"loadingText" == b
? ((this.isLoading = !0), d.addClass(c).attr(c, c))
: this.isLoading &&
((this.isLoading = !1), d.removeClass(c).removeAttr(c));
}, this),
0
);
}),
(c.prototype.toggle = function() {
var a = !0,
b = this.$element.closest('[data-toggle="buttons"]');
if (b.length) {
var c = this.$element.find("input");
"radio" == c.prop("type") &&
(c.prop("checked") && this.$element.hasClass("active")
? (a = !1)
: b.find(".active").removeClass("active")),
a &&
c
.prop("checked", !this.$element.hasClass("active"))
.trigger("change");
} else
this.$element.attr("aria-pressed", !this.$element.hasClass("active"));
a && this.$element.toggleClass("active");
});
var d = a.fn.button;
(a.fn.button = b),
(a.fn.button.Constructor = c),
(a.fn.button.noConflict = function() {
return (a.fn.button = d), this;
}),
a(document)
.on("click.bs.button.data-api", '[data-toggle^="button"]', function(c) {
var d = a(c.target);
d.hasClass("btn") || (d = d.closest(".btn")),
b.call(d, "toggle"),
c.preventDefault();
})
.on(
"focus.bs.button.data-api blur.bs.button.data-api",
'[data-toggle^="button"]',
function(b) {
a(b.target)
.closest(".btn")
.toggleClass("focus", /^focus(in)?$/.test(b.type));
}
);
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.carousel"),
f = a.extend({}, c.DEFAULTS, d.data(), "object" == typeof b && b),
g = "string" == typeof b ? b : f.slide;
e || d.data("bs.carousel", (e = new c(this, f))),
"number" == typeof b
? e.to(b)
: g
? e[g]()
: f.interval && e.pause().cycle();
});
}
var c = function(b, c) {
(this.$element = a(b)),
(this.$indicators = this.$element.find(".carousel-indicators")),
(this.options = c),
(this.paused = null),
(this.sliding = null),
(this.interval = null),
(this.$active = null),
(this.$items = null),
this.options.keyboard &&
this.$element.on("keydown.bs.carousel", a.proxy(this.keydown, this)),
"hover" == this.options.pause &&
!("ontouchstart" in document.documentElement) &&
this.$element
.on("mouseenter.bs.carousel", a.proxy(this.pause, this))
.on("mouseleave.bs.carousel", a.proxy(this.cycle, this));
};
(c.VERSION = "3.3.4"),
(c.TRANSITION_DURATION = 600),
(c.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0, keyboard: !0 }),
(c.prototype.keydown = function(a) {
if (!/input|textarea/i.test(a.target.tagName)) {
switch (a.which) {
case 37:
this.prev();
break;
case 39:
this.next();
break;
default:
return;
}
a.preventDefault();
}
}),
(c.prototype.cycle = function(b) {
return (
b || (this.paused = !1),
this.interval && clearInterval(this.interval),
this.options.interval &&
!this.paused &&
(this.interval = setInterval(
a.proxy(this.next, this),
this.options.interval
)),
this
);
}),
(c.prototype.getItemIndex = function(a) {
return (
(this.$items = a.parent().children(".item")),
this.$items.index(a || this.$active)
);
}),
(c.prototype.getItemForDirection = function(a, b) {
var c = this.getItemIndex(b),
d =
("prev" == a && 0 === c) ||
("next" == a && c == this.$items.length - 1);
if (d && !this.options.wrap) return b;
var e = "prev" == a ? -1 : 1,
f = (c + e) % this.$items.length;
return this.$items.eq(f);
}),
(c.prototype.to = function(a) {
var b = this,
c = this.getItemIndex(
(this.$active = this.$element.find(".item.active"))
);
return a > this.$items.length - 1 || 0 > a
? void 0
: this.sliding
? this.$element.one("slid.bs.carousel", function() {
b.to(a);
})
: c == a
? this.pause().cycle()
: this.slide(a > c ? "next" : "prev", this.$items.eq(a));
}),
(c.prototype.pause = function(b) {
return (
b || (this.paused = !0),
this.$element.find(".next, .prev").length &&
a.support.transition &&
(this.$element.trigger(a.support.transition.end), this.cycle(!0)),
(this.interval = clearInterval(this.interval)),
this
);
}),
(c.prototype.next = function() {
return this.sliding ? void 0 : this.slide("next");
}),
(c.prototype.prev = function() {
return this.sliding ? void 0 : this.slide("prev");
}),
(c.prototype.slide = function(b, d) {
var e = this.$element.find(".item.active"),
f = d || this.getItemForDirection(b, e),
g = this.interval,
h = "next" == b ? "left" : "right",
i = this;
if (f.hasClass("active")) return (this.sliding = !1);
var j = f[0],
k = a.Event("slide.bs.carousel", { relatedTarget: j, direction: h });
if ((this.$element.trigger(k), !k.isDefaultPrevented())) {
if (
((this.sliding = !0), g && this.pause(), this.$indicators.length)
) {
this.$indicators.find(".active").removeClass("active");
var l = a(this.$indicators.children()[this.getItemIndex(f)]);
l && l.addClass("active");
}
var m = a.Event("slid.bs.carousel", {
relatedTarget: j,
direction: h
});
return (
a.support.transition && this.$element.hasClass("slide")
? (f.addClass(b),
f[0].offsetWidth,
e.addClass(h),
f.addClass(h),
e
.one("bsTransitionEnd", function() {
f.removeClass([b, h].join(" ")).addClass("active"),
e.removeClass(["active", h].join(" ")),
(i.sliding = !1),
setTimeout(function() {
i.$element.trigger(m);
}, 0);
})
.emulateTransitionEnd(c.TRANSITION_DURATION))
: (e.removeClass("active"),
f.addClass("active"),
(this.sliding = !1),
this.$element.trigger(m)),
g && this.cycle(),
this
);
}
});
var d = a.fn.carousel;
(a.fn.carousel = b),
(a.fn.carousel.Constructor = c),
(a.fn.carousel.noConflict = function() {
return (a.fn.carousel = d), this;
});
var e = function(c) {
var d,
e = a(this),
f = a(
e.attr("data-target") ||
((d = e.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, ""))
);
if (f.hasClass("carousel")) {
var g = a.extend({}, f.data(), e.data()),
h = e.attr("data-slide-to");
h && (g.interval = !1),
b.call(f, g),
h && f.data("bs.carousel").to(h),
c.preventDefault();
}
};
a(document)
.on("click.bs.carousel.data-api", "[data-slide]", e)
.on("click.bs.carousel.data-api", "[data-slide-to]", e),
a(window).on("load", function() {
a('[data-ride="carousel"]').each(function() {
var c = a(this);
b.call(c, c.data());
});
});
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
var c,
d =
b.attr("data-target") ||
((c = b.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, ""));
return a(d);
}
function c(b) {
return this.each(function() {
var c = a(this),
e = c.data("bs.collapse"),
f = a.extend({}, d.DEFAULTS, c.data(), "object" == typeof b && b);
!e && f.toggle && /show|hide/.test(b) && (f.toggle = !1),
e || c.data("bs.collapse", (e = new d(this, f))),
"string" == typeof b && e[b]();
});
}
var d = function(b, c) {
(this.$element = a(b)),
(this.options = a.extend({}, d.DEFAULTS, c)),
(this.$trigger = a(
'[data-toggle="collapse"][href="#' +
b.id +
'"],[data-toggle="collapse"][data-target="#' +
b.id +
'"]'
)),
(this.transitioning = null),
this.options.parent
? (this.$parent = this.getParent())
: this.addAriaAndCollapsedClass(this.$element, this.$trigger),
this.options.toggle && this.toggle();
};
(d.VERSION = "3.3.4"),
(d.TRANSITION_DURATION = 350),
(d.DEFAULTS = { toggle: !0 }),
(d.prototype.dimension = function() {
var a = this.$element.hasClass("width");
return a ? "width" : "height";
}),
(d.prototype.show = function() {
if (!this.transitioning && !this.$element.hasClass("in")) {
var b,
e =
this.$parent &&
this.$parent.children(".panel").children(".in, .collapsing");
if (
!(
e &&
e.length &&
((b = e.data("bs.collapse")), b && b.transitioning)
)
) {
var f = a.Event("show.bs.collapse");
if ((this.$element.trigger(f), !f.isDefaultPrevented())) {
e &&
e.length &&
(c.call(e, "hide"), b || e.data("bs.collapse", null));
var g = this.dimension();
this.$element
.removeClass("collapse")
.addClass("collapsing")
[g](0)
.attr("aria-expanded", !0),
this.$trigger
.removeClass("collapsed")
.attr("aria-expanded", !0),
(this.transitioning = 1);
var h = function() {
this.$element
.removeClass("collapsing")
.addClass("collapse in")
[g](""),
(this.transitioning = 0),
this.$element.trigger("shown.bs.collapse");
};
if (!a.support.transition) return h.call(this);
var i = a.camelCase(["scroll", g].join("-"));
this.$element
.one("bsTransitionEnd", a.proxy(h, this))
.emulateTransitionEnd(d.TRANSITION_DURATION)
[g](this.$element[0][i]);
}
}
}
}),
(d.prototype.hide = function() {
if (!this.transitioning && this.$element.hasClass("in")) {
var b = a.Event("hide.bs.collapse");
if ((this.$element.trigger(b), !b.isDefaultPrevented())) {
var c = this.dimension();
this.$element[c](this.$element[c]())[0].offsetHeight,
this.$element
.addClass("collapsing")
.removeClass("collapse in")
.attr("aria-expanded", !1),
this.$trigger.addClass("collapsed").attr("aria-expanded", !1),
(this.transitioning = 1);
var e = function() {
(this.transitioning = 0),
this.$element
.removeClass("collapsing")
.addClass("collapse")
.trigger("hidden.bs.collapse");
};
return a.support.transition
? void this.$element[c](0)
.one("bsTransitionEnd", a.proxy(e, this))
.emulateTransitionEnd(d.TRANSITION_DURATION)
: e.call(this);
}
}
}),
(d.prototype.toggle = function() {
this[this.$element.hasClass("in") ? "hide" : "show"]();
}),
(d.prototype.getParent = function() {
return a(this.options.parent)
.find(
'[data-toggle="collapse"][data-parent="' +
this.options.parent +
'"]'
)
.each(
a.proxy(function(c, d) {
var e = a(d);
this.addAriaAndCollapsedClass(b(e), e);
}, this)
)
.end();
}),
(d.prototype.addAriaAndCollapsedClass = function(a, b) {
var c = a.hasClass("in");
a.attr("aria-expanded", c),
b.toggleClass("collapsed", !c).attr("aria-expanded", c);
});
var e = a.fn.collapse;
(a.fn.collapse = c),
(a.fn.collapse.Constructor = d),
(a.fn.collapse.noConflict = function() {
return (a.fn.collapse = e), this;
}),
a(document).on(
"click.bs.collapse.data-api",
'[data-toggle="collapse"]',
function(d) {
var e = a(this);
e.attr("data-target") || d.preventDefault();
var f = b(e),
g = f.data("bs.collapse"),
h = g ? "toggle" : e.data();
c.call(f, h);
}
);
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
(b && 3 === b.which) ||
(a(e).remove(),
a(f).each(function() {
var d = a(this),
e = c(d),
f = { relatedTarget: this };
e.hasClass("open") &&
(e.trigger((b = a.Event("hide.bs.dropdown", f))),
b.isDefaultPrevented() ||
(d.attr("aria-expanded", "false"),
e.removeClass("open").trigger("hidden.bs.dropdown", f)));
}));
}
function c(b) {
var c = b.attr("data-target");
c ||
((c = b.attr("href")),
(c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, "")));
var d = c && a(c);
return d && d.length ? d : b.parent();
}
function d(b) {
return this.each(function() {
var c = a(this),
d = c.data("bs.dropdown");
d || c.data("bs.dropdown", (d = new g(this))),
"string" == typeof b && d[b].call(c);
});
}
var e = ".dropdown-backdrop",
f = '[data-toggle="dropdown"]',
g = function(b) {
a(b).on("click.bs.dropdown", this.toggle);
};
(g.VERSION = "3.3.4"),
(g.prototype.toggle = function(d) {
var e = a(this);
if (!e.is(".disabled, :disabled")) {
var f = c(e),
g = f.hasClass("open");
if ((b(), !g)) {
"ontouchstart" in document.documentElement &&
!f.closest(".navbar-nav").length &&
a('
')
.insertAfter(a(this))
.on("click", b);
var h = { relatedTarget: this };
if (
(f.trigger((d = a.Event("show.bs.dropdown", h))),
d.isDefaultPrevented())
)
return;
e.trigger("focus").attr("aria-expanded", "true"),
f.toggleClass("open").trigger("shown.bs.dropdown", h);
}
return !1;
}
}),
(g.prototype.keydown = function(b) {
if (
/(38|40|27|32)/.test(b.which) &&
!/input|textarea/i.test(b.target.tagName)
) {
var d = a(this);
if (
(b.preventDefault(),
b.stopPropagation(),
!d.is(".disabled, :disabled"))
) {
var e = c(d),
g = e.hasClass("open");
if ((!g && 27 != b.which) || (g && 27 == b.which))
return (
27 == b.which && e.find(f).trigger("focus"), d.trigger("click")
);
var h = " li:not(.disabled):visible a",
i = e.find('[role="menu"]' + h + ', [role="listbox"]' + h);
if (i.length) {
var j = i.index(b.target);
38 == b.which && j > 0 && j--,
40 == b.which && j < i.length - 1 && j++,
~j || (j = 0),
i.eq(j).trigger("focus");
}
}
}
});
var h = a.fn.dropdown;
(a.fn.dropdown = d),
(a.fn.dropdown.Constructor = g),
(a.fn.dropdown.noConflict = function() {
return (a.fn.dropdown = h), this;
}),
a(document)
.on("click.bs.dropdown.data-api", b)
.on("click.bs.dropdown.data-api", ".dropdown form", function(a) {
a.stopPropagation();
})
.on("click.bs.dropdown.data-api", f, g.prototype.toggle)
.on("keydown.bs.dropdown.data-api", f, g.prototype.keydown)
.on(
"keydown.bs.dropdown.data-api",
'[role="menu"]',
g.prototype.keydown
)
.on(
"keydown.bs.dropdown.data-api",
'[role="listbox"]',
g.prototype.keydown
);
})(jQuery),
+(function(a) {
"use strict";
function b(b, d) {
return this.each(function() {
var e = a(this),
f = e.data("bs.modal"),
g = a.extend({}, c.DEFAULTS, e.data(), "object" == typeof b && b);
f || e.data("bs.modal", (f = new c(this, g))),
"string" == typeof b ? f[b](d) : g.show && f.show(d);
});
}
var c = function(b, c) {
(this.options = c),
(this.$body = a(document.body)),
(this.$element = a(b)),
(this.$dialog = this.$element.find(".modal-dialog")),
(this.$backdrop = null),
(this.isShown = null),
(this.originalBodyPad = null),
(this.scrollbarWidth = 0),
(this.ignoreBackdropClick = !1),
this.options.remote &&
this.$element.find(".modal-content").load(
this.options.remote,
a.proxy(function() {
this.$element.trigger("loaded.bs.modal");
}, this)
);
};
(c.VERSION = "3.3.4"),
(c.TRANSITION_DURATION = 300),
(c.BACKDROP_TRANSITION_DURATION = 150),
(c.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }),
(c.prototype.toggle = function(a) {
return this.isShown ? this.hide() : this.show(a);
}),
(c.prototype.show = function(b) {
var d = this,
e = a.Event("show.bs.modal", { relatedTarget: b });
this.$element.trigger(e),
this.isShown ||
e.isDefaultPrevented() ||
((this.isShown = !0),
this.checkScrollbar(),
this.setScrollbar(),
this.$body.addClass("modal-open"),
this.escape(),
this.resize(),
this.$element.on(
"click.dismiss.bs.modal",
'[data-dismiss="modal"]',
a.proxy(this.hide, this)
),
this.$dialog.on("mousedown.dismiss.bs.modal", function() {
d.$element.one("mouseup.dismiss.bs.modal", function(b) {
a(b.target).is(d.$element) && (d.ignoreBackdropClick = !0);
});
}),
this.backdrop(function() {
var e = a.support.transition && d.$element.hasClass("fade");
d.$element.parent().length || d.$element.appendTo(d.$body),
d.$element.show().scrollTop(0),
d.adjustDialog(),
e && d.$element[0].offsetWidth,
d.$element.addClass("in").attr("aria-hidden", !1),
d.enforceFocus();
var f = a.Event("shown.bs.modal", { relatedTarget: b });
e
? d.$dialog
.one("bsTransitionEnd", function() {
d.$element.trigger("focus").trigger(f);
})
.emulateTransitionEnd(c.TRANSITION_DURATION)
: d.$element.trigger("focus").trigger(f);
}));
}),
(c.prototype.hide = function(b) {
b && b.preventDefault(),
(b = a.Event("hide.bs.modal")),
this.$element.trigger(b),
this.isShown &&
!b.isDefaultPrevented() &&
((this.isShown = !1),
this.escape(),
this.resize(),
a(document).off("focusin.bs.modal"),
this.$element
.removeClass("in")
.attr("aria-hidden", !0)
.off("click.dismiss.bs.modal")
.off("mouseup.dismiss.bs.modal"),
this.$dialog.off("mousedown.dismiss.bs.modal"),
a.support.transition && this.$element.hasClass("fade")
? this.$element
.one("bsTransitionEnd", a.proxy(this.hideModal, this))
.emulateTransitionEnd(c.TRANSITION_DURATION)
: this.hideModal());
}),
(c.prototype.enforceFocus = function() {
a(document)
.off("focusin.bs.modal")
.on(
"focusin.bs.modal",
a.proxy(function(a) {
this.$element[0] === a.target ||
this.$element.has(a.target).length ||
this.$element.trigger("focus");
}, this)
);
}),
(c.prototype.escape = function() {
this.isShown && this.options.keyboard
? this.$element.on(
"keydown.dismiss.bs.modal",
a.proxy(function(a) {
27 == a.which && this.hide();
}, this)
)
: this.isShown || this.$element.off("keydown.dismiss.bs.modal");
}),
(c.prototype.resize = function() {
this.isShown
? a(window).on("resize.bs.modal", a.proxy(this.handleUpdate, this))
: a(window).off("resize.bs.modal");
}),
(c.prototype.hideModal = function() {
var a = this;
this.$element.hide(),
this.backdrop(function() {
a.$body.removeClass("modal-open"),
a.resetAdjustments(),
a.resetScrollbar(),
a.$element.trigger("hidden.bs.modal");
});
}),
(c.prototype.removeBackdrop = function() {
this.$backdrop && this.$backdrop.remove(), (this.$backdrop = null);
}),
(c.prototype.backdrop = function(b) {
var d = this,
e = this.$element.hasClass("fade") ? "fade" : "";
if (this.isShown && this.options.backdrop) {
var f = a.support.transition && e;
if (
((this.$backdrop = a(
'
'
).appendTo(this.$body)),
this.$element.on(
"click.dismiss.bs.modal",
a.proxy(function(a) {
return this.ignoreBackdropClick
? void (this.ignoreBackdropClick = !1)
: void (
a.target === a.currentTarget &&
("static" == this.options.backdrop
? this.$element[0].focus()
: this.hide())
);
}, this)
),
f && this.$backdrop[0].offsetWidth,
this.$backdrop.addClass("in"),
!b)
)
return;
f
? this.$backdrop
.one("bsTransitionEnd", b)
.emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION)
: b();
} else if (!this.isShown && this.$backdrop) {
this.$backdrop.removeClass("in");
var g = function() {
d.removeBackdrop(), b && b();
};
a.support.transition && this.$element.hasClass("fade")
? this.$backdrop
.one("bsTransitionEnd", g)
.emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION)
: g();
} else b && b();
}),
(c.prototype.handleUpdate = function() {
this.adjustDialog();
}),
(c.prototype.adjustDialog = function() {
var a =
this.$element[0].scrollHeight > document.documentElement.clientHeight;
this.$element.css({
paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : "",
paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : ""
});
}),
(c.prototype.resetAdjustments = function() {
this.$element.css({ paddingLeft: "", paddingRight: "" });
}),
(c.prototype.checkScrollbar = function() {
var a = window.innerWidth;
if (!a) {
var b = document.documentElement.getBoundingClientRect();
a = b.right - Math.abs(b.left);
}
(this.bodyIsOverflowing = document.body.clientWidth < a),
(this.scrollbarWidth = this.measureScrollbar());
}),
(c.prototype.setScrollbar = function() {
var a = parseInt(this.$body.css("padding-right") || 0, 10);
(this.originalBodyPad = document.body.style.paddingRight || ""),
this.bodyIsOverflowing &&
this.$body.css("padding-right", a + this.scrollbarWidth);
}),
(c.prototype.resetScrollbar = function() {
this.$body.css("padding-right", this.originalBodyPad);
}),
(c.prototype.measureScrollbar = function() {
var a = document.createElement("div");
(a.className = "modal-scrollbar-measure"), this.$body.append(a);
var b = a.offsetWidth - a.clientWidth;
return this.$body[0].removeChild(a), b;
});
var d = a.fn.modal;
(a.fn.modal = b),
(a.fn.modal.Constructor = c),
(a.fn.modal.noConflict = function() {
return (a.fn.modal = d), this;
}),
a(document).on(
"click.bs.modal.data-api",
'[data-toggle="modal"]',
function(c) {
var d = a(this),
e = d.attr("href"),
f = a(
d.attr("data-target") || (e && e.replace(/.*(?=#[^\s]+$)/, ""))
),
g = f.data("bs.modal")
? "toggle"
: a.extend({ remote: !/#/.test(e) && e }, f.data(), d.data());
d.is("a") && c.preventDefault(),
f.one("show.bs.modal", function(a) {
a.isDefaultPrevented() ||
f.one("hidden.bs.modal", function() {
d.is(":visible") && d.trigger("focus");
});
}),
b.call(f, g, this);
}
);
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.tooltip"),
f = "object" == typeof b && b;
(e || !/destroy|hide/.test(b)) &&
(e || d.data("bs.tooltip", (e = new c(this, f))),
"string" == typeof b && e[b]());
});
}
var c = function(a, b) {
(this.type = null),
(this.options = null),
(this.enabled = null),
(this.timeout = null),
(this.hoverState = null),
(this.$element = null),
this.init("tooltip", a, b);
};
(c.VERSION = "3.3.4"),
(c.TRANSITION_DURATION = 150),
(c.DEFAULTS = {
animation: !0,
placement: "top",
selector: !1,
template:
'
',
trigger: "hover focus",
title: "",
delay: 0,
html: !1,
container: !1,
viewport: { selector: "body", padding: 0 }
}),
(c.prototype.init = function(b, c, d) {
if (
((this.enabled = !0),
(this.type = b),
(this.$element = a(c)),
(this.options = this.getOptions(d)),
(this.$viewport =
this.options.viewport &&
a(this.options.viewport.selector || this.options.viewport)),
this.$element[0] instanceof document.constructor &&
!this.options.selector)
)
throw new Error(
"`selector` option must be specified when initializing " +
this.type +
" on the window.document object!"
);
for (var e = this.options.trigger.split(" "), f = e.length; f--; ) {
var g = e[f];
if ("click" == g)
this.$element.on(
"click." + this.type,
this.options.selector,
a.proxy(this.toggle, this)
);
else if ("manual" != g) {
var h = "hover" == g ? "mouseenter" : "focusin",
i = "hover" == g ? "mouseleave" : "focusout";
this.$element.on(
h + "." + this.type,
this.options.selector,
a.proxy(this.enter, this)
),
this.$element.on(
i + "." + this.type,
this.options.selector,
a.proxy(this.leave, this)
);
}
}
this.options.selector
? (this._options = a.extend({}, this.options, {
trigger: "manual",
selector: ""
}))
: this.fixTitle();
}),
(c.prototype.getDefaults = function() {
return c.DEFAULTS;
}),
(c.prototype.getOptions = function(b) {
return (
(b = a.extend({}, this.getDefaults(), this.$element.data(), b)),
b.delay &&
"number" == typeof b.delay &&
(b.delay = { show: b.delay, hide: b.delay }),
b
);
}),
(c.prototype.getDelegateOptions = function() {
var b = {},
c = this.getDefaults();
return (
this._options &&
a.each(this._options, function(a, d) {
c[a] != d && (b[a] = d);
}),
b
);
}),
(c.prototype.enter = function(b) {
var c =
b instanceof this.constructor
? b
: a(b.currentTarget).data("bs." + this.type);
return c && c.$tip && c.$tip.is(":visible")
? void (c.hoverState = "in")
: (c ||
((c = new this.constructor(
b.currentTarget,
this.getDelegateOptions()
)),
a(b.currentTarget).data("bs." + this.type, c)),
clearTimeout(c.timeout),
(c.hoverState = "in"),
c.options.delay && c.options.delay.show
? void (c.timeout = setTimeout(function() {
"in" == c.hoverState && c.show();
}, c.options.delay.show))
: c.show());
}),
(c.prototype.leave = function(b) {
var c =
b instanceof this.constructor
? b
: a(b.currentTarget).data("bs." + this.type);
return (
c ||
((c = new this.constructor(
b.currentTarget,
this.getDelegateOptions()
)),
a(b.currentTarget).data("bs." + this.type, c)),
clearTimeout(c.timeout),
(c.hoverState = "out"),
c.options.delay && c.options.delay.hide
? void (c.timeout = setTimeout(function() {
"out" == c.hoverState && c.hide();
}, c.options.delay.hide))
: c.hide()
);
}),
(c.prototype.show = function() {
var b = a.Event("show.bs." + this.type);
if (this.hasContent() && this.enabled) {
this.$element.trigger(b);
var d = a.contains(
this.$element[0].ownerDocument.documentElement,
this.$element[0]
);
if (b.isDefaultPrevented() || !d) return;
var e = this,
f = this.tip(),
g = this.getUID(this.type);
this.setContent(),
f.attr("id", g),
this.$element.attr("aria-describedby", g),
this.options.animation && f.addClass("fade");
var h =
"function" == typeof this.options.placement
? this.options.placement.call(this, f[0], this.$element[0])
: this.options.placement,
i = /\s?auto?\s?/i,
j = i.test(h);
j && (h = h.replace(i, "") || "top"),
f
.detach()
.css({ top: 0, left: 0, display: "block" })
.addClass(h)
.data("bs." + this.type, this),
this.options.container
? f.appendTo(this.options.container)
: f.insertAfter(this.$element);
var k = this.getPosition(),
l = f[0].offsetWidth,
m = f[0].offsetHeight;
if (j) {
var n = h,
o = this.options.container
? a(this.options.container)
: this.$element.parent(),
p = this.getPosition(o);
(h =
"bottom" == h && k.bottom + m > p.bottom
? "top"
: "top" == h && k.top - m < p.top
? "bottom"
: "right" == h && k.right + l > p.width
? "left"
: "left" == h && k.left - l < p.left
? "right"
: h),
f.removeClass(n).addClass(h);
}
var q = this.getCalculatedOffset(h, k, l, m);
this.applyPlacement(q, h);
var r = function() {
var a = e.hoverState;
e.$element.trigger("shown.bs." + e.type),
(e.hoverState = null),
"out" == a && e.leave(e);
};
a.support.transition && this.$tip.hasClass("fade")
? f
.one("bsTransitionEnd", r)
.emulateTransitionEnd(c.TRANSITION_DURATION)
: r();
}
}),
(c.prototype.applyPlacement = function(b, c) {
var d = this.tip(),
e = d[0].offsetWidth,
f = d[0].offsetHeight,
g = parseInt(d.css("margin-top"), 10),
h = parseInt(d.css("margin-left"), 10);
isNaN(g) && (g = 0),
isNaN(h) && (h = 0),
(b.top = b.top + g),
(b.left = b.left + h),
a.offset.setOffset(
d[0],
a.extend(
{
using: function(a) {
d.css({ top: Math.round(a.top), left: Math.round(a.left) });
}
},
b
),
0
),
d.addClass("in");
var i = d[0].offsetWidth,
j = d[0].offsetHeight;
"top" == c && j != f && (b.top = b.top + f - j);
var k = this.getViewportAdjustedDelta(c, b, i, j);
k.left ? (b.left += k.left) : (b.top += k.top);
var l = /top|bottom/.test(c),
m = l ? 2 * k.left - e + i : 2 * k.top - f + j,
n = l ? "offsetWidth" : "offsetHeight";
d.offset(b), this.replaceArrow(m, d[0][n], l);
}),
(c.prototype.replaceArrow = function(a, b, c) {
this.arrow()
.css(c ? "left" : "top", 50 * (1 - a / b) + "%")
.css(c ? "top" : "left", "");
}),
(c.prototype.setContent = function() {
var a = this.tip(),
b = this.getTitle();
a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b),
a.removeClass("fade in top bottom left right");
}),
(c.prototype.hide = function(b) {
function d() {
"in" != e.hoverState && f.detach(),
e.$element
.removeAttr("aria-describedby")
.trigger("hidden.bs." + e.type),
b && b();
}
var e = this,
f = a(this.$tip),
g = a.Event("hide.bs." + this.type);
return (
this.$element.trigger(g),
g.isDefaultPrevented()
? void 0
: (f.removeClass("in"),
a.support.transition && f.hasClass("fade")
? f
.one("bsTransitionEnd", d)
.emulateTransitionEnd(c.TRANSITION_DURATION)
: d(),
(this.hoverState = null),
this)
);
}),
(c.prototype.fixTitle = function() {
var a = this.$element;
(a.attr("title") || "string" != typeof a.attr("data-original-title")) &&
a
.attr("data-original-title", a.attr("title") || "")
.attr("title", "");
}),
(c.prototype.hasContent = function() {
return this.getTitle();
}),
(c.prototype.getPosition = function(b) {
b = b || this.$element;
var c = b[0],
d = "BODY" == c.tagName,
e = c.getBoundingClientRect();
null == e.width &&
(e = a.extend({}, e, {
width: e.right - e.left,
height: e.bottom - e.top
}));
var f = d ? { top: 0, left: 0 } : b.offset(),
g = {
scroll: d
? document.documentElement.scrollTop || document.body.scrollTop
: b.scrollTop()
},
h = d
? { width: a(window).width(), height: a(window).height() }
: null;
return a.extend({}, e, g, h, f);
}),
(c.prototype.getCalculatedOffset = function(a, b, c, d) {
return "bottom" == a
? { top: b.top + b.height, left: b.left + b.width / 2 - c / 2 }
: "top" == a
? { top: b.top - d, left: b.left + b.width / 2 - c / 2 }
: "left" == a
? { top: b.top + b.height / 2 - d / 2, left: b.left - c }
: { top: b.top + b.height / 2 - d / 2, left: b.left + b.width };
}),
(c.prototype.getViewportAdjustedDelta = function(a, b, c, d) {
var e = { top: 0, left: 0 };
if (!this.$viewport) return e;
var f = (this.options.viewport && this.options.viewport.padding) || 0,
g = this.getPosition(this.$viewport);
if (/right|left/.test(a)) {
var h = b.top - f - g.scroll,
i = b.top + f - g.scroll + d;
h < g.top
? (e.top = g.top - h)
: i > g.top + g.height && (e.top = g.top + g.height - i);
} else {
var j = b.left - f,
k = b.left + f + c;
j < g.left
? (e.left = g.left - j)
: k > g.width && (e.left = g.left + g.width - k);
}
return e;
}),
(c.prototype.getTitle = function() {
var a,
b = this.$element,
c = this.options;
return (a =
b.attr("data-original-title") ||
("function" == typeof c.title ? c.title.call(b[0]) : c.title));
}),
(c.prototype.getUID = function(a) {
do a += ~~(1e6 * Math.random());
while (document.getElementById(a));
return a;
}),
(c.prototype.tip = function() {
return (this.$tip = this.$tip || a(this.options.template));
}),
(c.prototype.arrow = function() {
return (this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow"));
}),
(c.prototype.enable = function() {
this.enabled = !0;
}),
(c.prototype.disable = function() {
this.enabled = !1;
}),
(c.prototype.toggleEnabled = function() {
this.enabled = !this.enabled;
}),
(c.prototype.toggle = function(b) {
var c = this;
b &&
((c = a(b.currentTarget).data("bs." + this.type)),
c ||
((c = new this.constructor(
b.currentTarget,
this.getDelegateOptions()
)),
a(b.currentTarget).data("bs." + this.type, c))),
c.tip().hasClass("in") ? c.leave(c) : c.enter(c);
}),
(c.prototype.destroy = function() {
var a = this;
clearTimeout(this.timeout),
this.hide(function() {
a.$element.off("." + a.type).removeData("bs." + a.type);
});
});
var d = a.fn.tooltip;
(a.fn.tooltip = b),
(a.fn.tooltip.Constructor = c),
(a.fn.tooltip.noConflict = function() {
return (a.fn.tooltip = d), this;
});
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.popover"),
f = "object" == typeof b && b;
(e || !/destroy|hide/.test(b)) &&
(e || d.data("bs.popover", (e = new c(this, f))),
"string" == typeof b && e[b]());
});
}
var c = function(a, b) {
this.init("popover", a, b);
};
if (!a.fn.tooltip) throw new Error("Popover requires tooltip.js");
(c.VERSION = "3.3.4"),
(c.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, {
placement: "right",
trigger: "click",
content: "",
template:
'
'
})),
(c.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype)),
(c.prototype.constructor = c),
(c.prototype.getDefaults = function() {
return c.DEFAULTS;
}),
(c.prototype.setContent = function() {
var a = this.tip(),
b = this.getTitle(),
c = this.getContent();
a.find(".popover-title")[this.options.html ? "html" : "text"](b),
a
.find(".popover-content")
.children()
.detach()
.end()
[
this.options.html
? "string" == typeof c
? "html"
: "append"
: "text"
](c),
a.removeClass("fade top bottom left right in"),
a.find(".popover-title").html() || a.find(".popover-title").hide();
}),
(c.prototype.hasContent = function() {
return this.getTitle() || this.getContent();
}),
(c.prototype.getContent = function() {
var a = this.$element,
b = this.options;
return (
a.attr("data-content") ||
("function" == typeof b.content ? b.content.call(a[0]) : b.content)
);
}),
(c.prototype.arrow = function() {
return (this.$arrow = this.$arrow || this.tip().find(".arrow"));
});
var d = a.fn.popover;
(a.fn.popover = b),
(a.fn.popover.Constructor = c),
(a.fn.popover.noConflict = function() {
return (a.fn.popover = d), this;
});
})(jQuery),
+(function(a) {
"use strict";
function b(c, d) {
(this.$body = a(document.body)),
(this.$scrollElement = a(a(c).is(document.body) ? window : c)),
(this.options = a.extend({}, b.DEFAULTS, d)),
(this.selector = (this.options.target || "") + " .nav li > a"),
(this.offsets = []),
(this.targets = []),
(this.activeTarget = null),
(this.scrollHeight = 0),
this.$scrollElement.on(
"scroll.bs.scrollspy",
a.proxy(this.process, this)
),
this.refresh(),
this.process();
}
function c(c) {
return this.each(function() {
var d = a(this),
e = d.data("bs.scrollspy"),
f = "object" == typeof c && c;
e || d.data("bs.scrollspy", (e = new b(this, f))),
"string" == typeof c && e[c]();
});
}
(b.VERSION = "3.3.4"),
(b.DEFAULTS = { offset: 10 }),
(b.prototype.getScrollHeight = function() {
return (
this.$scrollElement[0].scrollHeight ||
Math.max(
this.$body[0].scrollHeight,
document.documentElement.scrollHeight
)
);
}),
(b.prototype.refresh = function() {
var b = this,
c = "offset",
d = 0;
(this.offsets = []),
(this.targets = []),
(this.scrollHeight = this.getScrollHeight()),
a.isWindow(this.$scrollElement[0]) ||
((c = "position"), (d = this.$scrollElement.scrollTop())),
this.$body
.find(this.selector)
.map(function() {
var b = a(this),
e = b.data("target") || b.attr("href"),
f = /^#./.test(e) && a(e);
return (
(f && f.length && f.is(":visible") && [[f[c]().top + d, e]]) ||
null
);
})
.sort(function(a, b) {
return a[0] - b[0];
})
.each(function() {
b.offsets.push(this[0]), b.targets.push(this[1]);
});
}),
(b.prototype.process = function() {
var a,
b = this.$scrollElement.scrollTop() + this.options.offset,
c = this.getScrollHeight(),
d = this.options.offset + c - this.$scrollElement.height(),
e = this.offsets,
f = this.targets,
g = this.activeTarget;
if ((this.scrollHeight != c && this.refresh(), b >= d))
return g != (a = f[f.length - 1]) && this.activate(a);
if (g && b < e[0]) return (this.activeTarget = null), this.clear();
for (a = e.length; a--; )
g != f[a] &&
b >= e[a] &&
(void 0 === e[a + 1] || b < e[a + 1]) &&
this.activate(f[a]);
}),
(b.prototype.activate = function(b) {
(this.activeTarget = b), this.clear();
var c =
this.selector +
'[data-target="' +
b +
'"],' +
this.selector +
'[href="' +
b +
'"]',
d = a(c)
.parents("li")
.addClass("active");
d.parent(".dropdown-menu").length &&
(d = d.closest("li.dropdown").addClass("active")),
d.trigger("activate.bs.scrollspy");
}),
(b.prototype.clear = function() {
a(this.selector)
.parentsUntil(this.options.target, ".active")
.removeClass("active");
});
var d = a.fn.scrollspy;
(a.fn.scrollspy = c),
(a.fn.scrollspy.Constructor = b),
(a.fn.scrollspy.noConflict = function() {
return (a.fn.scrollspy = d), this;
}),
a(window).on("load.bs.scrollspy.data-api", function() {
a('[data-spy="scroll"]').each(function() {
var b = a(this);
c.call(b, b.data());
});
});
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.tab");
e || d.data("bs.tab", (e = new c(this))),
"string" == typeof b && e[b]();
});
}
var c = function(b) {
this.element = a(b);
};
(c.VERSION = "3.3.4"),
(c.TRANSITION_DURATION = 150),
(c.prototype.show = function() {
var b = this.element,
c = b.closest("ul:not(.dropdown-menu)"),
d = b.data("target");
if (
(d ||
((d = b.attr("href")), (d = d && d.replace(/.*(?=#[^\s]*$)/, ""))),
!b.parent("li").hasClass("active"))
) {
var e = c.find(".active:last a"),
f = a.Event("hide.bs.tab", { relatedTarget: b[0] }),
g = a.Event("show.bs.tab", { relatedTarget: e[0] });
if (
(e.trigger(f),
b.trigger(g),
!g.isDefaultPrevented() && !f.isDefaultPrevented())
) {
var h = a(d);
this.activate(b.closest("li"), c),
this.activate(h, h.parent(), function() {
e.trigger({ type: "hidden.bs.tab", relatedTarget: b[0] }),
b.trigger({ type: "shown.bs.tab", relatedTarget: e[0] });
});
}
}
}),
(c.prototype.activate = function(b, d, e) {
function f() {
g
.removeClass("active")
.find("> .dropdown-menu > .active")
.removeClass("active")
.end()
.find('[data-toggle="tab"]')
.attr("aria-expanded", !1),
b
.addClass("active")
.find('[data-toggle="tab"]')
.attr("aria-expanded", !0),
h ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"),
b.parent(".dropdown-menu").length &&
b
.closest("li.dropdown")
.addClass("active")
.end()
.find('[data-toggle="tab"]')
.attr("aria-expanded", !0),
e && e();
}
var g = d.find("> .active"),
h =
e &&
a.support.transition &&
((g.length && g.hasClass("fade")) || !!d.find("> .fade").length);
g.length && h
? g
.one("bsTransitionEnd", f)
.emulateTransitionEnd(c.TRANSITION_DURATION)
: f(),
g.removeClass("in");
});
var d = a.fn.tab;
(a.fn.tab = b),
(a.fn.tab.Constructor = c),
(a.fn.tab.noConflict = function() {
return (a.fn.tab = d), this;
});
var e = function(c) {
c.preventDefault(), b.call(a(this), "show");
};
a(document)
.on("click.bs.tab.data-api", '[data-toggle="tab"]', e)
.on("click.bs.tab.data-api", '[data-toggle="pill"]', e);
})(jQuery),
+(function(a) {
"use strict";
function b(b) {
return this.each(function() {
var d = a(this),
e = d.data("bs.affix"),
f = "object" == typeof b && b;
e || d.data("bs.affix", (e = new c(this, f))),
"string" == typeof b && e[b]();
});
}
var c = function(b, d) {
(this.options = a.extend({}, c.DEFAULTS, d)),
(this.$target = a(this.options.target)
.on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this))
.on(
"click.bs.affix.data-api",
a.proxy(this.checkPositionWithEventLoop, this)
)),
(this.$element = a(b)),
(this.affixed = null),
(this.unpin = null),
(this.pinnedOffset = null),
this.checkPosition();
};
(c.VERSION = "3.3.4"),
(c.RESET = "affix affix-top affix-bottom"),
(c.DEFAULTS = { offset: 0, target: window }),
(c.prototype.getState = function(a, b, c, d) {
var e = this.$target.scrollTop(),
f = this.$element.offset(),
g = this.$target.height();
if (null != c && "top" == this.affixed) return c > e ? "top" : !1;
if ("bottom" == this.affixed)
return null != c
? e + this.unpin <= f.top
? !1
: "bottom"
: a - d >= e + g
? !1
: "bottom";
var h = null == this.affixed,
i = h ? e : f.top,
j = h ? g : b;
return null != c && c >= e
? "top"
: null != d && i + j >= a - d
? "bottom"
: !1;
}),
(c.prototype.getPinnedOffset = function() {
if (this.pinnedOffset) return this.pinnedOffset;
this.$element.removeClass(c.RESET).addClass("affix");
var a = this.$target.scrollTop(),
b = this.$element.offset();
return (this.pinnedOffset = b.top - a);
}),
(c.prototype.checkPositionWithEventLoop = function() {
setTimeout(a.proxy(this.checkPosition, this), 1);
}),
(c.prototype.checkPosition = function() {
if (this.$element.is(":visible")) {
var b = this.$element.height(),
d = this.options.offset,
e = d.top,
f = d.bottom,
g = a(document.body).height();
"object" != typeof d && (f = e = d),
"function" == typeof e && (e = d.top(this.$element)),
"function" == typeof f && (f = d.bottom(this.$element));
var h = this.getState(g, b, e, f);
if (this.affixed != h) {
null != this.unpin && this.$element.css("top", "");
var i = "affix" + (h ? "-" + h : ""),
j = a.Event(i + ".bs.affix");
if ((this.$element.trigger(j), j.isDefaultPrevented())) return;
(this.affixed = h),
(this.unpin = "bottom" == h ? this.getPinnedOffset() : null),
this.$element
.removeClass(c.RESET)
.addClass(i)
.trigger(i.replace("affix", "affixed") + ".bs.affix");
}
"bottom" == h && this.$element.offset({ top: g - b - f });
}
});
var d = a.fn.affix;
(a.fn.affix = b),
(a.fn.affix.Constructor = c),
(a.fn.affix.noConflict = function() {
return (a.fn.affix = d), this;
}),
a(window).on("load", function() {
a('[data-spy="affix"]').each(function() {
var c = a(this),
d = c.data();
(d.offset = d.offset || {}),
null != d.offsetBottom && (d.offset.bottom = d.offsetBottom),
null != d.offsetTop && (d.offset.top = d.offsetTop),
b.call(c, d);
});
});
})(jQuery);
!(function(s) {
"use strict";
function n(s) {
return new RegExp("(^|\\s+)" + s + "(\\s+|$)");
}
var a, t, c;
function e(s, e) {
(a(s, e) ? c : t)(s, e);
}
"classList" in document.documentElement
? ((a = function(s, e) {
return s.classList.contains(e);
}),
(t = function(s, e) {
s.classList.add(e);
}),
(c = function(s, e) {
s.classList.remove(e);
}))
: ((a = function(s, e) {
return n(e).test(s.className);
}),
(t = function(s, e) {
a(s, e) || (s.className = s.className + " " + e);
}),
(c = function(s, e) {
s.className = s.className.replace(n(e), " ");
}));
var i = {
hasClass: a,
addClass: t,
removeClass: c,
toggleClass: e,
has: a,
add: t,
remove: c,
toggle: e
};
"function" == typeof define && define.amd ? define(i) : (s.classie = i);
})(window);
var cbpAnimatedHeader = (function() {
var n = document.documentElement,
a = document.querySelector(".navbar-default"),
r = !1,
t = 30;
function o() {
var e = window.pageYOffset || n.scrollTop;
t <= e
? classie.add(a, "navbar-shrink")
: classie.remove(a, "navbar-shrink"),
(r = !1);
}
window.addEventListener(
"scroll",
function(e) {
r || ((r = !0), setTimeout(o, 250));
},
!1
);
})();
!(function(m) {
var u = [],
t = {
options: {
prependExistingHelpBlock: !1,
sniffHtml: !0,
preventSubmit: !0,
submitError: !1,
submitSuccess: !1,
semanticallyStrict: !1,
autoAdd: { helpBlocks: !0 },
filter: function() {
return !0;
}
},
methods: {
init: function(a) {
var v = m.extend(!0, {}, t);
v.options = m.extend(!0, v.options, a);
var e = m.unique(
this.map(function() {
return m(this).parents("form")[0];
}).toArray()
);
return (
m(e).bind("submit", function(a) {
var e = m(this),
i = 0,
t = e
.find("input,textarea,select")
.not("[type=submit],[type=image]")
.filter(v.options.filter);
t
.trigger("submit.validation")
.trigger("validationLostFocus.validation"),
t.each(function(a, e) {
var t = m(e)
.parents(".form-group")
.first();
t.hasClass("warning") &&
(t.removeClass("warning").addClass("error"), i++);
}),
t.trigger("validationLostFocus.validation"),
i
? (v.options.preventSubmit && a.preventDefault(),
e.addClass("error"),
m.isFunction(v.options.submitError) &&
v.options.submitError(
e,
a,
t.jqBootstrapValidation("collectErrors", !0)
))
: (e.removeClass("error"),
m.isFunction(v.options.submitSuccess) &&
v.options.submitSuccess(e, a));
}),
this.each(function() {
var l = m(this),
t = l.parents(".form-group").first(),
i = t.find(".help-block").first(),
r = l.parents("form").first(),
n = [];
if (
(!i.length &&
v.options.autoAdd &&
v.options.autoAdd.helpBlocks &&
((i = m('
')),
t.find(".controls").append(i),
u.push(i[0])),
v.options.sniffHtml)
) {
var a = "";
if (
(void 0 !== l.attr("pattern") &&
((a =
"Not in the expected format\x3c!-- data-validation-pattern-message to override --\x3e"),
l.data("validationPatternMessage") &&
(a = l.data("validationPatternMessage")),
l.data("validationPatternMessage", a),
l.data("validationPatternRegex", l.attr("pattern"))),
void 0 !== l.attr("max") ||
void 0 !== l.attr("aria-valuemax"))
) {
var e =
void 0 !== l.attr("max")
? l.attr("max")
: l.attr("aria-valuemax");
(a =
"Too high: Maximum of '" +
e +
"'\x3c!-- data-validation-max-message to override --\x3e"),
l.data("validationMaxMessage") &&
(a = l.data("validationMaxMessage")),
l.data("validationMaxMessage", a),
l.data("validationMaxMax", e);
}
if (
void 0 !== l.attr("min") ||
void 0 !== l.attr("aria-valuemin")
) {
var o =
void 0 !== l.attr("min")
? l.attr("min")
: l.attr("aria-valuemin");
(a =
"Too low: Minimum of '" +
o +
"'\x3c!-- data-validation-min-message to override --\x3e"),
l.data("validationMinMessage") &&
(a = l.data("validationMinMessage")),
l.data("validationMinMessage", a),
l.data("validationMinMin", o);
}
void 0 !== l.attr("maxlength") &&
((a =
"Too long: Maximum of '" +
l.attr("maxlength") +
"' characters\x3c!-- data-validation-maxlength-message to override --\x3e"),
l.data("validationMaxlengthMessage") &&
(a = l.data("validationMaxlengthMessage")),
l.data("validationMaxlengthMessage", a),
l.data("validationMaxlengthMaxlength", l.attr("maxlength"))),
void 0 !== l.attr("minlength") &&
((a =
"Too short: Minimum of '" +
l.attr("minlength") +
"' characters\x3c!-- data-validation-minlength-message to override --\x3e"),
l.data("validationMinlengthMessage") &&
(a = l.data("validationMinlengthMessage")),
l.data("validationMinlengthMessage", a),
l.data(
"validationMinlengthMinlength",
l.attr("minlength")
)),
(void 0 === l.attr("required") &&
void 0 === l.attr("aria-required")) ||
((a = v.builtInValidators.required.message),
l.data("validationRequiredMessage") &&
(a = l.data("validationRequiredMessage")),
l.data("validationRequiredMessage", a)),
void 0 !== l.attr("type") &&
"number" === l.attr("type").toLowerCase() &&
((a = v.builtInValidators.number.message),
l.data("validationNumberMessage") &&
(a = l.data("validationNumberMessage")),
l.data("validationNumberMessage", a)),
void 0 !== l.attr("type") &&
"email" === l.attr("type").toLowerCase() &&
((a =
"Not a valid email address\x3c!-- data-validator-validemail-message to override --\x3e"),
l.data("validationValidemailMessage")
? (a = l.data("validationValidemailMessage"))
: l.data("validationEmailMessage") &&
(a = l.data("validationEmailMessage")),
l.data("validationValidemailMessage", a)),
void 0 !== l.attr("minchecked") &&
((a =
"Not enough options checked; Minimum of '" +
l.attr("minchecked") +
"' required\x3c!-- data-validation-minchecked-message to override --\x3e"),
l.data("validationMincheckedMessage") &&
(a = l.data("validationMincheckedMessage")),
l.data("validationMincheckedMessage", a),
l.data(
"validationMincheckedMinchecked",
l.attr("minchecked")
)),
void 0 !== l.attr("maxchecked") &&
((a =
"Too many options checked; Maximum of '" +
l.attr("maxchecked") +
"' required\x3c!-- data-validation-maxchecked-message to override --\x3e"),
l.data("validationMaxcheckedMessage") &&
(a = l.data("validationMaxcheckedMessage")),
l.data("validationMaxcheckedMessage", a),
l.data(
"validationMaxcheckedMaxchecked",
l.attr("maxchecked")
));
}
void 0 !== l.data("validation") &&
(n = l.data("validation").split(",")),
m.each(l.data(), function(a, e) {
var t = a.replace(/([A-Z])/g, ",$1").split(",");
"validation" === t[0] && t[1] && n.push(t[1]);
});
for (
var s = n, d = [];
m.each(n, function(a, e) {
n[a] = g(e);
}),
(n = m.unique(n)),
(d = []),
m.each(s, function(a, e) {
if (void 0 !== l.data("validation" + e + "Shortcut"))
m.each(
l.data("validation" + e + "Shortcut").split(","),
function(a, e) {
d.push(e);
}
);
else if (v.builtInValidators[e.toLowerCase()]) {
var t = v.builtInValidators[e.toLowerCase()];
"shortcut" === t.type.toLowerCase() &&
m.each(t.shortcut.split(","), function(a, e) {
(e = g(e)), d.push(e), n.push(e);
});
}
}),
0 < (s = d).length;
);
var c = {};
m.each(n, function(a, t) {
var i = l.data("validation" + t + "Message"),
e = void 0 !== i,
n = !1;
if (
((i =
i ||
"'" +
t +
"' validation failed \x3c!-- Add attribute 'data-validation-" +
t.toLowerCase() +
"-message' to input to change this message --\x3e"),
m.each(v.validatorTypes, function(a, e) {
void 0 === c[a] && (c[a] = []),
n ||
void 0 === l.data("validation" + t + g(e.name)) ||
(c[a].push(
m.extend(
!0,
{ name: g(e.name), message: i },
e.init(l, t)
)
),
(n = !0));
}),
!n && v.builtInValidators[t.toLowerCase()])
) {
var o = m.extend(
!0,
{},
v.builtInValidators[t.toLowerCase()]
);
e && (o.message = i);
var r = o.type.toLowerCase();
"shortcut" === r
? (n = !0)
: m.each(v.validatorTypes, function(a, e) {
void 0 === c[a] && (c[a] = []),
n ||
r !== a.toLowerCase() ||
(l.data(
"validation" + t + g(e.name),
o[e.name.toLowerCase()]
),
c[r].push(m.extend(o, e.init(l, t))),
(n = !0));
});
}
n || m.error("Cannot find validation info for '" + t + "'");
}),
i.data(
"original-contents",
i.data("original-contents")
? i.data("original-contents")
: i.html()
),
i.data(
"original-role",
i.data("original-role")
? i.data("original-role")
: i.attr("role")
),
t.data(
"original-classes",
t.data("original-clases")
? t.data("original-classes")
: t.attr("class")
),
l.data(
"original-aria-invalid",
l.data("original-aria-invalid")
? l.data("original-aria-invalid")
: l.attr("aria-invalid")
),
l.bind("validation.validation", function(a, e) {
var i = h(l),
n = [];
return (
m.each(c, function(t, a) {
(i ||
i.length ||
(e && e.includeEmpty) ||
(v.validatorTypes[t].blockSubmit &&
e &&
e.submitting)) &&
m.each(a, function(a, e) {
v.validatorTypes[t].validate(l, i, e) &&
n.push(e.message);
});
}),
n
);
}),
l.bind("getValidators.validation", function() {
return c;
}),
l.bind("submit.validation", function() {
return l.triggerHandler("change.validation", {
submitting: !0
});
}),
l.bind(
[
"keyup",
"focus",
"blur",
"click",
"keydown",
"keypress",
"change"
].join(".validation ") + ".validation",
function(a, n) {
var e = h(l),
o = [];
t.find("input,textarea,select").each(function(a, e) {
var t = o.length;
if (
(m.each(
m(e).triggerHandler("validation.validation", n),
function(a, e) {
o.push(e);
}
),
o.length > t)
)
m(e).attr("aria-invalid", "true");
else {
var i = l.data("original-aria-invalid");
m(e).attr("aria-invalid", void 0 !== i && i);
}
}),
r
.find("input,select,textarea")
.not(l)
.not('[name="' + l.attr("name") + '"]')
.trigger("validationLostFocus.validation"),
(o = m.unique(o.sort())).length
? (t.removeClass("success error").addClass("warning"),
v.options.semanticallyStrict && 1 === o.length
? i.html(
o[0] +
(v.options.prependExistingHelpBlock
? i.data("original-contents")
: "")
)
: i.html(
'
" +
(v.options.prependExistingHelpBlock
? i.data("original-contents")
: "")
))
: (t.removeClass("warning error success"),
0 < e.length && t.addClass("success"),
i.html(i.data("original-contents"))),
"blur" === a.type && t.removeClass("success");
}
),
l.bind("validationLostFocus.validation", function() {
t.removeClass("success");
});
})
);
},
destroy: function() {
return this.each(function() {
var a = m(this),
e = a.parents(".form-group").first(),
t = e.find(".help-block").first();
a.unbind(".validation"),
t.html(t.data("original-contents")),
e.attr("class", e.data("original-classes")),
a.attr("aria-invalid", a.data("original-aria-invalid")),
t.attr("role", a.data("original-role")),
-1 < u.indexOf(t[0]) && t.remove();
});
},
collectErrors: function(a) {
var o = {};
return (
this.each(function(a, e) {
var t = m(e),
i = t.attr("name"),
n = t.triggerHandler("validation.validation", {
includeEmpty: !0
});
o[i] = m.extend(!0, n, o[i]);
}),
m.each(o, function(a, e) {
0 === e.length && delete o[a];
}),
o
);
},
hasErrors: function() {
var t = [];
return (
this.each(function(a, e) {
t = t.concat(
m(e).triggerHandler("getValidators.validation")
? m(e).triggerHandler("validation.validation", {
submitting: !0
})
: []
);
}),
0 < t.length
);
},
override: function(a) {
t = m.extend(!0, t, a);
}
},
validatorTypes: {
callback: {
name: "callback",
init: function(a, e) {
return {
validatorName: e,
callback: a.data("validation" + e + "Callback"),
lastValue: a.val(),
lastValid: !0,
lastFinished: !0
};
},
validate: function(a, e, t) {
if (t.lastValue === e && t.lastFinished) return !t.lastValid;
if (!0 === t.lastFinished) {
(t.lastValue = e), (t.lastValid = !0), (t.lastFinished = !1);
var i = t,
n = a;
!(function(a, e) {
for (
var t = Array.prototype.slice.call(arguments).splice(2),
i = a.split("."),
n = i.pop(),
o = 0;
o < i.length;
o++
)
e = e[i[o]];
e[n].apply(this, t);
})(t.callback, window, a, e, function(a) {
i.lastValue === a.value &&
((i.lastValid = a.valid),
a.message && (i.message = a.message),
(i.lastFinished = !0),
n.data("validation" + i.validatorName + "Message", i.message),
setTimeout(function() {
n.trigger("change.validation");
}, 1));
});
}
return !1;
}
},
ajax: {
name: "ajax",
init: function(a, e) {
return {
validatorName: e,
url: a.data("validation" + e + "Ajax"),
lastValue: a.val(),
lastValid: !0,
lastFinished: !0
};
},
validate: function(e, a, t) {
return "" + t.lastValue == "" + a && !0 === t.lastFinished
? !1 === t.lastValid
: (!0 === t.lastFinished &&
((t.lastValue = a),
(t.lastValid = !0),
(t.lastFinished = !1),
m.ajax({
url: t.url,
data: "value=" + a + "&field=" + e.attr("name"),
dataType: "json",
success: function(a) {
"" + t.lastValue == "" + a.value &&
((t.lastValid = !!a.valid),
a.message && (t.message = a.message),
(t.lastFinished = !0),
e.data(
"validation" + t.validatorName + "Message",
t.message
),
setTimeout(function() {
e.trigger("change.validation");
}, 1));
},
failure: function() {
(t.lastValid = !0),
(t.message = "ajax call failed"),
(t.lastFinished = !0),
e.data(
"validation" + t.validatorName + "Message",
t.message
),
setTimeout(function() {
e.trigger("change.validation");
}, 1);
}
})),
!1);
}
},
regex: {
name: "regex",
init: function(a, e) {
return {
regex: ((t = a.data("validation" + e + "Regex")),
new RegExp("^" + t + "$"))
};
var t;
},
validate: function(a, e, t) {
return (
(!t.regex.test(e) && !t.negative) ||
(t.regex.test(e) && t.negative)
);
}
},
required: {
name: "required",
init: function(a, e) {
return {};
},
validate: function(a, e, t) {
return (
!(0 !== e.length || t.negative) || !!(0 < e.length && t.negative)
);
},
blockSubmit: !0
},
match: {
name: "match",
init: function(a, e) {
var t = a
.parents("form")
.first()
.find('[name="' + a.data("validation" + e + "Match") + '"]')
.first();
return (
t.bind("validation.validation", function() {
a.trigger("change.validation", { submitting: !0 });
}),
{ element: t }
);
},
validate: function(a, e, t) {
return (
(e !== t.element.val() && !t.negative) ||
(e === t.element.val() && t.negative)
);
},
blockSubmit: !0
},
max: {
name: "max",
init: function(a, e) {
return { max: a.data("validation" + e + "Max") };
},
validate: function(a, e, t) {
return (
(parseFloat(e, 10) > parseFloat(t.max, 10) && !t.negative) ||
(parseFloat(e, 10) <= parseFloat(t.max, 10) && t.negative)
);
}
},
min: {
name: "min",
init: function(a, e) {
return { min: a.data("validation" + e + "Min") };
},
validate: function(a, e, t) {
return (
(parseFloat(e) < parseFloat(t.min) && !t.negative) ||
(parseFloat(e) >= parseFloat(t.min) && t.negative)
);
}
},
maxlength: {
name: "maxlength",
init: function(a, e) {
return { maxlength: a.data("validation" + e + "Maxlength") };
},
validate: function(a, e, t) {
return (
(e.length > t.maxlength && !t.negative) ||
(e.length <= t.maxlength && t.negative)
);
}
},
minlength: {
name: "minlength",
init: function(a, e) {
return { minlength: a.data("validation" + e + "Minlength") };
},
validate: function(a, e, t) {
return (
(e.length < t.minlength && !t.negative) ||
(e.length >= t.minlength && t.negative)
);
}
},
maxchecked: {
name: "maxchecked",
init: function(a, e) {
var t = a
.parents("form")
.first()
.find('[name="' + a.attr("name") + '"]');
return (
t.bind("click.validation", function() {
a.trigger("change.validation", { includeEmpty: !0 });
}),
{
maxchecked: a.data("validation" + e + "Maxchecked"),
elements: t
}
);
},
validate: function(a, e, t) {
return (
(t.elements.filter(":checked").length > t.maxchecked &&
!t.negative) ||
(t.elements.filter(":checked").length <= t.maxchecked &&
t.negative)
);
},
blockSubmit: !0
},
minchecked: {
name: "minchecked",
init: function(a, e) {
var t = a
.parents("form")
.first()
.find('[name="' + a.attr("name") + '"]');
return (
t.bind("click.validation", function() {
a.trigger("change.validation", { includeEmpty: !0 });
}),
{
minchecked: a.data("validation" + e + "Minchecked"),
elements: t
}
);
},
validate: function(a, e, t) {
return (
(t.elements.filter(":checked").length < t.minchecked &&
!t.negative) ||
(t.elements.filter(":checked").length >= t.minchecked &&
t.negative)
);
},
blockSubmit: !0
}
},
builtInValidators: {
email: { name: "Email", type: "shortcut", shortcut: "validemail" },
validemail: {
name: "Validemail",
type: "regex",
regex: "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}",
message:
"Not a valid email address\x3c!-- data-validator-validemail-message to override --\x3e"
},
passwordagain: {
name: "Passwordagain",
type: "match",
match: "password",
message:
"Does not match the given password\x3c!-- data-validator-paswordagain-message to override --\x3e"
},
positive: {
name: "Positive",
type: "shortcut",
shortcut: "number,positivenumber"
},
negative: {
name: "Negative",
type: "shortcut",
shortcut: "number,negativenumber"
},
number: {
name: "Number",
type: "regex",
regex: "([+-]?\\d+(\\.\\d*)?([eE][+-]?[0-9]+)?)?",
message:
"Must be a number\x3c!-- data-validator-number-message to override --\x3e"
},
integer: {
name: "Integer",
type: "regex",
regex: "[+-]?\\d+",
message:
"No decimal places allowed\x3c!-- data-validator-integer-message to override --\x3e"
},
positivenumber: {
name: "Positivenumber",
type: "min",
min: 0,
message:
"Must be a positive number\x3c!-- data-validator-positivenumber-message to override --\x3e"
},
negativenumber: {
name: "Negativenumber",
type: "max",
max: 0,
message:
"Must be a negative number\x3c!-- data-validator-negativenumber-message to override --\x3e"
},
required: {
name: "Required",
type: "required",
message:
"This is required\x3c!-- data-validator-required-message to override --\x3e"
},
checkone: {
name: "Checkone",
type: "minchecked",
minchecked: 1,
message:
"Check at least one option\x3c!-- data-validation-checkone-message to override --\x3e"
}
}
},
g = function(a) {
return a.toLowerCase().replace(/(^|\s)([a-z])/g, function(a, e, t) {
return e + t.toUpperCase();
});
},
h = function(a) {
var e = a.val(),
t = a.attr("type");
return (
"checkbox" === t && (e = a.is(":checked") ? e : ""),
"radio" === t &&
(e =
0 < m('input[name="' + a.attr("name") + '"]:checked').length
? e
: ""),
e
);
};
(m.fn.jqBootstrapValidation = function(a) {
return t.methods[a]
? t.methods[a].apply(this, Array.prototype.slice.call(arguments, 1))
: "object" != typeof a && a
? (m.error(
"Method " + a + " does not exist on jQuery.jqBootstrapValidation"
),
null)
: t.methods.init.apply(this, arguments);
}),
(m.jqBootstrapValidation = function(a) {
m(":input")
.not("[type=image],[type=submit]")
.jqBootstrapValidation.apply(this, arguments);
});
})(jQuery);
$(function() {
$("#contactForm input,#contactForm textarea").jqBootstrapValidation({
preventSubmit: !0,
submitError: function(t, e, s) {},
submitSuccess: function(t, e) {
e.preventDefault();
var s = $("input#name").val(),
a = $("input#email").val(),
n = $("input#phone").val(),
c = $("textarea#message").val(),
r = s;
0 <= r.indexOf(" ") &&
(r = s
.split(" ")
.slice(0, -1)
.join(" ")),
$.ajax({
url: "././mail/contact_me.php",
type: "POST",
data: { name: s, phone: n, email: a, message: c },
cache: !1,
success: function() {
$("#success").html("
"),
$("#success > .alert-success")
.html(
"×"
)
.append(" "),
$("#success > .alert-success").append(
"Ваше сообщение отправлено. "
),
$("#success > .alert-success").append("
"),
$("#contactForm").trigger("reset");
},
error: function() {
$("#success").html("
"),
$("#success > .alert-danger")
.html(
"×"
)
.append(" "),
$("#success > .alert-danger").append(
"Sorry " +
r +
", it seems that my mail server is not responding. Please try again later!"
),
$("#success > .alert-danger").append("
"),
$("#contactForm").trigger("reset");
}
});
},
filter: function() {
return $(this).is(":visible");
}
}),
$('a[data-toggle="tab"]').click(function(t) {
t.preventDefault(), $(this).tab("show");
});
}),
$("#name").focus(function() {
$("#success").html("");
});
$(document).ready(function() {
$(".open-form").click(function() {
$(this).hide(), $(".calc-form").slideToggle();
});
var t = $("#counterTemplate").html();
function e() {
var t = Number($("#val_floors").val()),
e = Number($("#val_apart_floor").val()),
c = 0;
(c = t && e ? t * e : ""), $("#val_apart_entrance").val(c);
}
function c(t) {
var e = $("#" + t),
c = e.val().replace(/[^\d]+/g, "");
e.val(c);
}
$(".calc-form")
.on("keyup", ".lined input", function() {
("val_floors" != $(this).attr("id") &&
"val_apart_floor" != $(this).attr("id")) ||
e(),
c($(this).attr("id"));
})
.on("change", ".lined input", function() {
("val_floors" != $(this).attr("id") &&
"val_apart_floor" != $(this).attr("id")) ||
e(),
c($(this).attr("id"));
})
.on("click", ".calc-form__counters__btn.add", function() {
$(this).before(t),
1 < $(".calc-form__counters__item").length
? $(".calc-form__counters__btn.del").show()
: $(".calc-form__counters__btn.del").hide();
})
.on("click", ".calc-form__counters__btn.del", function() {
$(".calc-form__counters__item")
.last()
.remove(),
1 < $(".calc-form__counters__item").length
? $(".calc-form__counters__btn.del").show()
: $(".calc-form__counters__btn.del").hide();
})
.on("change", ".calc-form__counters__item__list", function() {
$(this).val();
if ("self" == $(this).val()) {
$(this).addClass("is-hide"),
$(".calc-form__counters__item .repeat").show();
var t = $(this).next(".self");
t.removeClass("is-hide"), t.focus();
} else $(".calc-form__counters__item .repeat").hide();
})
.on("click", ".remove", function() {
$(this)
.parent()
.parent()
.remove();
})
.on("click", ".repeat", function() {
$(this)
.parent()
.next()
.children(".self")
.addClass("is-hide"),
$(this)
.parent()
.next()
.children("select")
.removeClass("is-hide")
.val("0"),
$(this)
.parent()
.next()
.children("select")
.children("option:nth-last-child(1)")
.attr("value", "self")
.text("Добавьте свой элемент"),
$(this).hide();
})
.on("keyup", ".calc-form__counters__item .self", function() {
var t = $(this).val();
$(this)
.prev("select")
.children("option:nth-last-child(1)")
.attr("value", t)
.text(t);
})
.on("submit", function() {
$(this).serialize();
});
var a = $("#calcForm");
$(
"#calcForm input,#calcForm textarea,#calcForm select"
).jqBootstrapValidation({
preventSubmit: !0,
submitError: function(t, e, c) {},
submitSuccess: function(t, e) {
e.preventDefault();
var c = t.serialize();
$.ajax({
url: a.attr("destination"),
type: "POST",
data: c,
success: function(t) {
a.after(
'
' + t + "
"
),
a.trigger("reset"),
a.slideToggle(),
$("html, body")
.stop()
.animate({ scrollTop: $("#calc").offset().top - 70 }, 500);
},
error: function(t) {
$("#calc-success").after(
'
Ошибка отправки! Попробуйте еще раз.
'
);
}
});
}
});
});
$(".navbar-collapse ul li a").click(function() {
$(".navbar-toggle:visible").click();
});
/*! WOW - v1.0.3 - 2015-01-14
* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */ (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.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) {
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.start = f(this.start, this)),
(this.scrolled = !0),
(this.config = this.util().extend(a, this.defaults)),
(this.animationNameCache = new c());
}
return (
(e.prototype.defaults = {
boxClass: "wow",
animateClass: "animated",
offset: 0,
mobile: !0,
live: !0,
callback: 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(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 = [], e = 0, f = b.length; f > e; e++)
(d = b[e]),
g.push(
function() {
var a, b, e, f;
for (
e = d.addedNodes || [],
f = [],
a = 0,
b = e.length;
b > a;
a++
)
(c = e[a]), f.push(this.doSync(c));
return f;
}.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(window, "scroll", this.scrollHandler),
this.util().removeEvent(window, "resize", this.scrollHandler),
null != this.interval ? clearInterval(this.interval) : void 0
);
}),
(e.prototype.sync = function() {
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) : void 0
);
}),
(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.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
);
}),
(e.prototype.vendors = ["moz", "webkit"]),
(e.prototype.vendorSet = function(a, b) {
var c, d, e, f;
f = [];
for (c in b)
(d = b[c]),
(a["" + c] = d),
f.push(
function() {
var b, f, g, h;
for (
g = this.vendors, h = [], b = 0, f = g.length;
f > b;
b++
)
(e = g[b]),
h.push(
(a[
"" + e + c.charAt(0).toUpperCase() + c.substr(1)
] = d)
);
return h;
}.call(this)
);
return f;
}),
(e.prototype.vendorCSS = function(a, b) {
var c, e, f, g, h, i;
for (
e = d(a),
c = e.getPropertyCSSValue(b),
i = this.vendors,
g = 0,
h = i.length;
h > g;
g++
)
(f = i[g]), (c = c || e.getPropertyCSSValue("-" + f + "-" + b));
return c;
}),
(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 = 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));
/**
* Owl Carousel v2.1.0
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
!(function(a, b, c, d) {
function e(b, c) {
(this.settings = null),
(this.options = a.extend({}, e.Defaults, c)),
(this.$element = a(b)),
(this._handlers = {}),
(this._plugins = {}),
(this._supress = {}),
(this._current = null),
(this._speed = null),
(this._coordinates = []),
(this._breakpoint = null),
(this._width = null),
(this._items = []),
(this._clones = []),
(this._mergers = []),
(this._widths = []),
(this._invalidated = {}),
(this._pipe = []),
(this._drag = {
time: null,
target: null,
pointer: null,
stage: { start: null, current: null },
direction: null
}),
(this._states = {
current: {},
tags: {
initializing: ["busy"],
animating: ["busy"],
dragging: ["interacting"]
}
}),
a.each(
["onResize", "onThrottledResize"],
a.proxy(function(b, c) {
this._handlers[c] = a.proxy(this[c], this);
}, this)
),
a.each(
e.Plugins,
a.proxy(function(a, b) {
this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this);
}, this)
),
a.each(
e.Workers,
a.proxy(function(b, c) {
this._pipe.push({ filter: c.filter, run: a.proxy(c.run, this) });
}, this)
),
this.setup(),
this.initialize();
}
(e.Defaults = {
items: 3,
loop: !1,
center: !1,
rewind: !1,
mouseDrag: !0,
touchDrag: !0,
pullDrag: !0,
freeDrag: !1,
margin: 0,
stagePadding: 0,
merge: !1,
mergeFit: !0,
autoWidth: !1,
startPosition: 0,
rtl: !1,
smartSpeed: 250,
fluidSpeed: !1,
dragEndSpeed: !1,
responsive: {},
responsiveRefreshRate: 200,
responsiveBaseElement: b,
fallbackEasing: "swing",
info: !1,
nestedItemSelector: !1,
itemElement: "div",
stageElement: "div",
refreshClass: "owl-refresh",
loadedClass: "owl-loaded",
loadingClass: "owl-loading",
rtlClass: "owl-rtl",
responsiveClass: "owl-responsive",
dragClass: "owl-drag",
itemClass: "owl-item",
stageClass: "owl-stage",
stageOuterClass: "owl-stage-outer",
grabClass: "owl-grab"
}),
(e.Width = { Default: "default", Inner: "inner", Outer: "outer" }),
(e.Type = { Event: "event", State: "state" }),
(e.Plugins = {}),
(e.Workers = [
{
filter: ["width", "settings"],
run: function() {
this._width = this.$element.width();
}
},
{
filter: ["width", "items", "settings"],
run: function(a) {
a.current = this._items && this._items[this.relative(this._current)];
}
},
{
filter: ["items", "settings"],
run: function() {
this.$stage.children(".cloned").remove();
}
},
{
filter: ["width", "items", "settings"],
run: function(a) {
var b = this.settings.margin || "",
c = !this.settings.autoWidth,
d = this.settings.rtl,
e = {
width: "auto",
"margin-left": d ? b : "",
"margin-right": d ? "" : b
};
!c && this.$stage.children().css(e), (a.css = e);
}
},
{
filter: ["width", "items", "settings"],
run: function(a) {
var b =
(this.width() / this.settings.items).toFixed(3) -
this.settings.margin,
c = null,
d = this._items.length,
e = !this.settings.autoWidth,
f = [];
for (a.items = { merge: !1, width: b }; d--; )
(c = this._mergers[d]),
(c =
(this.settings.mergeFit && Math.min(c, this.settings.items)) ||
c),
(a.items.merge = c > 1 || a.items.merge),
(f[d] = e ? b * c : this._items[d].width());
this._widths = f;
}
},
{
filter: ["items", "settings"],
run: function() {
var b = [],
c = this._items,
d = this.settings,
e = Math.max(2 * d.items, 4),
f = 2 * Math.ceil(c.length / 2),
g = d.loop && c.length ? (d.rewind ? e : Math.max(e, f)) : 0,
h = "",
i = "";
for (g /= 2; g--; )
b.push(this.normalize(b.length / 2, !0)),
(h += c[b[b.length - 1]][0].outerHTML),
b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)),
(i = c[b[b.length - 1]][0].outerHTML + i);
(this._clones = b),
a(h)
.addClass("cloned")
.appendTo(this.$stage),
a(i)
.addClass("cloned")
.prependTo(this.$stage);
}
},
{
filter: ["width", "items", "settings"],
run: function() {
for (
var a = this.settings.rtl ? 1 : -1,
b = this._clones.length + this._items.length,
c = -1,
d = 0,
e = 0,
f = [];
++c < b;
)
(d = f[c - 1] || 0),
(e = this._widths[this.relative(c)] + this.settings.margin),
f.push(d + e * a);
this._coordinates = f;
}
},
{
filter: ["width", "items", "settings"],
run: function() {
var a = this.settings.stagePadding,
b = this._coordinates,
c = {
width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a,
"padding-left": a || "",
"padding-right": a || ""
};
this.$stage.css(c);
}
},
{
filter: ["width", "items", "settings"],
run: function(a) {
var b = this._coordinates.length,
c = !this.settings.autoWidth,
d = this.$stage.children();
if (c && a.items.merge)
for (; b--; )
(a.css.width = this._widths[this.relative(b)]),
d.eq(b).css(a.css);
else c && ((a.css.width = a.items.width), d.css(a.css));
}
},
{
filter: ["items"],
run: function() {
this._coordinates.length < 1 && this.$stage.removeAttr("style");
}
},
{
filter: ["width", "items", "settings"],
run: function(a) {
(a.current = a.current ? this.$stage.children().index(a.current) : 0),
(a.current = Math.max(
this.minimum(),
Math.min(this.maximum(), a.current)
)),
this.reset(a.current);
}
},
{
filter: ["position"],
run: function() {
this.animate(this.coordinates(this._current));
}
},
{
filter: ["width", "position", "items", "settings"],
run: function() {
var a,
b,
c,
d,
e = this.settings.rtl ? 1 : -1,
f = 2 * this.settings.stagePadding,
g = this.coordinates(this.current()) + f,
h = g + this.width() * e,
i = [];
for (c = 0, d = this._coordinates.length; d > c; c++)
(a = this._coordinates[c - 1] || 0),
(b = Math.abs(this._coordinates[c]) + f * e),
((this.op(a, "<=", g) && this.op(a, ">", h)) ||
(this.op(b, "<", g) && this.op(b, ">", h))) &&
i.push(c);
this.$stage.children(".active").removeClass("active"),
this.$stage
.children(":eq(" + i.join("), :eq(") + ")")
.addClass("active"),
this.settings.center &&
(this.$stage.children(".center").removeClass("center"),
this.$stage
.children()
.eq(this.current())
.addClass("center"));
}
}
]),
(e.prototype.initialize = function() {
if (
(this.enter("initializing"),
this.trigger("initialize"),
this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl),
this.settings.autoWidth && !this.is("pre-loading"))
) {
var b, c, e;
(b = this.$element.find("img")),
(c = this.settings.nestedItemSelector
? "." + this.settings.nestedItemSelector
: d),
(e = this.$element.children(c).width()),
b.length && 0 >= e && this.preloadAutoWidthImages(b);
}
this.$element.addClass(this.options.loadingClass),
(this.$stage = a(
"<" +
this.settings.stageElement +
' class="' +
this.settings.stageClass +
'"/>'
).wrap('
')),
this.$element.append(this.$stage.parent()),
this.replace(this.$element.children().not(this.$stage.parent())),
this.$element.is(":visible")
? this.refresh()
: this.invalidate("width"),
this.$element
.removeClass(this.options.loadingClass)
.addClass(this.options.loadedClass),
this.registerEventHandlers(),
this.leave("initializing"),
this.trigger("initialized");
}),
(e.prototype.setup = function() {
var b = this.viewport(),
c = this.options.responsive,
d = -1,
e = null;
c
? (a.each(c, function(a) {
b >= a && a > d && (d = Number(a));
}),
(e = a.extend({}, this.options, c[d])),
delete e.responsive,
e.responsiveClass &&
this.$element.attr(
"class",
this.$element
.attr("class")
.replace(
new RegExp(
"(" + this.options.responsiveClass + "-)\\S+\\s",
"g"
),
"$1" + d
)
))
: (e = a.extend({}, this.options)),
(null !== this.settings && this._breakpoint === d) ||
(this.trigger("change", { property: { name: "settings", value: e } }),
(this._breakpoint = d),
(this.settings = e),
this.invalidate("settings"),
this.trigger("changed", {
property: { name: "settings", value: this.settings }
}));
}),
(e.prototype.optionsLogic = function() {
this.settings.autoWidth &&
((this.settings.stagePadding = !1), (this.settings.merge = !1));
}),
(e.prototype.prepare = function(b) {
var c = this.trigger("prepare", { content: b });
return (
c.data ||
(c.data = a("<" + this.settings.itemElement + "/>")
.addClass(this.options.itemClass)
.append(b)),
this.trigger("prepared", { content: c.data }),
c.data
);
}),
(e.prototype.update = function() {
for (
var b = 0,
c = this._pipe.length,
d = a.proxy(function(a) {
return this[a];
}, this._invalidated),
e = {};
c > b;
)
(this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) &&
this._pipe[b].run(e),
b++;
(this._invalidated = {}), !this.is("valid") && this.enter("valid");
}),
(e.prototype.width = function(a) {
switch ((a = a || e.Width.Default)) {
case e.Width.Inner:
case e.Width.Outer:
return this._width;
default:
return (
this._width - 2 * this.settings.stagePadding + this.settings.margin
);
}
}),
(e.prototype.refresh = function() {
this.enter("refreshing"),
this.trigger("refresh"),
this.setup(),
this.optionsLogic(),
this.$element.addClass(this.options.refreshClass),
this.update(),
this.$element.removeClass(this.options.refreshClass),
this.leave("refreshing"),
this.trigger("refreshed");
}),
(e.prototype.onThrottledResize = function() {
b.clearTimeout(this.resizeTimer),
(this.resizeTimer = b.setTimeout(
this._handlers.onResize,
this.settings.responsiveRefreshRate
));
}),
(e.prototype.onResize = function() {
return this._items.length
? this._width === this.$element.width()
? !1
: this.$element.is(":visible")
? (this.enter("resizing"),
this.trigger("resize").isDefaultPrevented()
? (this.leave("resizing"), !1)
: (this.invalidate("width"),
this.refresh(),
this.leave("resizing"),
void this.trigger("resized")))
: !1
: !1;
}),
(e.prototype.registerEventHandlers = function() {
a.support.transition &&
this.$stage.on(
a.support.transition.end + ".owl.core",
a.proxy(this.onTransitionEnd, this)
),
this.settings.responsive !== !1 &&
this.on(b, "resize", this._handlers.onThrottledResize),
this.settings.mouseDrag &&
(this.$element.addClass(this.options.dragClass),
this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)),
this.$stage.on("dragstart.owl.core selectstart.owl.core", function() {
return !1;
})),
this.settings.touchDrag &&
(this.$stage.on(
"touchstart.owl.core",
a.proxy(this.onDragStart, this)
),
this.$stage.on(
"touchcancel.owl.core",
a.proxy(this.onDragEnd, this)
));
}),
(e.prototype.onDragStart = function(b) {
var d = null;
3 !== b.which &&
(a.support.transform
? ((d = this.$stage
.css("transform")
.replace(/.*\(|\)| /g, "")
.split(",")),
(d = {
x: d[16 === d.length ? 12 : 4],
y: d[16 === d.length ? 13 : 5]
}))
: ((d = this.$stage.position()),
(d = {
x: this.settings.rtl
? d.left +
this.$stage.width() -
this.width() +
this.settings.margin
: d.left,
y: d.top
})),
this.is("animating") &&
(a.support.transform ? this.animate(d.x) : this.$stage.stop(),
this.invalidate("position")),
this.$element.toggleClass(
this.options.grabClass,
"mousedown" === b.type
),
this.speed(0),
(this._drag.time = new Date().getTime()),
(this._drag.target = a(b.target)),
(this._drag.stage.start = d),
(this._drag.stage.current = d),
(this._drag.pointer = this.pointer(b)),
a(c).on(
"mouseup.owl.core touchend.owl.core",
a.proxy(this.onDragEnd, this)
),
a(c).one(
"mousemove.owl.core touchmove.owl.core",
a.proxy(function(b) {
var d = this.difference(this._drag.pointer, this.pointer(b));
a(c).on(
"mousemove.owl.core touchmove.owl.core",
a.proxy(this.onDragMove, this)
),
(Math.abs(d.x) < Math.abs(d.y) && this.is("valid")) ||
(b.preventDefault(),
this.enter("dragging"),
this.trigger("drag"));
}, this)
));
}),
(e.prototype.onDragMove = function(a) {
var b = null,
c = null,
d = null,
e = this.difference(this._drag.pointer, this.pointer(a)),
f = this.difference(this._drag.stage.start, e);
this.is("dragging") &&
(a.preventDefault(),
this.settings.loop
? ((b = this.coordinates(this.minimum())),
(c = this.coordinates(this.maximum() + 1) - b),
(f.x = ((((f.x - b) % c) + c) % c) + b))
: ((b = this.settings.rtl
? this.coordinates(this.maximum())
: this.coordinates(this.minimum())),
(c = this.settings.rtl
? this.coordinates(this.minimum())
: this.coordinates(this.maximum())),
(d = this.settings.pullDrag ? (-1 * e.x) / 5 : 0),
(f.x = Math.max(Math.min(f.x, b + d), c + d))),
(this._drag.stage.current = f),
this.animate(f.x));
}),
(e.prototype.onDragEnd = function(b) {
var d = this.difference(this._drag.pointer, this.pointer(b)),
e = this._drag.stage.current,
f = (d.x > 0) ^ this.settings.rtl ? "left" : "right";
a(c).off(".owl.core"),
this.$element.removeClass(this.options.grabClass),
((0 !== d.x && this.is("dragging")) || !this.is("valid")) &&
(this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed),
this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)),
this.invalidate("position"),
this.update(),
(this._drag.direction = f),
(Math.abs(d.x) > 3 || new Date().getTime() - this._drag.time > 300) &&
this._drag.target.one("click.owl.core", function() {
return !1;
})),
this.is("dragging") &&
(this.leave("dragging"), this.trigger("dragged"));
}),
(e.prototype.closest = function(b, c) {
var d = -1,
e = 30,
f = this.width(),
g = this.coordinates();
return (
this.settings.freeDrag ||
a.each(
g,
a.proxy(function(a, h) {
return (
"left" === c && b > h - e && h + e > b
? (d = a)
: "right" === c && b > h - f - e && h - f + e > b
? (d = a + 1)
: this.op(b, "<", h) &&
this.op(b, ">", g[a + 1] || h - f) &&
(d = "left" === c ? a + 1 : a),
-1 === d
);
}, this)
),
this.settings.loop ||
(this.op(b, ">", g[this.minimum()])
? (d = b = this.minimum())
: this.op(b, "<", g[this.maximum()]) && (d = b = this.maximum())),
d
);
}),
(e.prototype.animate = function(b) {
var c = this.speed() > 0;
this.is("animating") && this.onTransitionEnd(),
c && (this.enter("animating"), this.trigger("translate")),
a.support.transform3d && a.support.transition
? this.$stage.css({
transform: "translate3d(" + b + "px,0px,0px)",
transition: this.speed() / 1e3 + "s"
})
: c
? this.$stage.animate(
{ left: b + "px" },
this.speed(),
this.settings.fallbackEasing,
a.proxy(this.onTransitionEnd, this)
)
: this.$stage.css({ left: b + "px" });
}),
(e.prototype.is = function(a) {
return this._states.current[a] && this._states.current[a] > 0;
}),
(e.prototype.current = function(a) {
if (a === d) return this._current;
if (0 === this._items.length) return d;
if (((a = this.normalize(a)), this._current !== a)) {
var b = this.trigger("change", {
property: { name: "position", value: a }
});
b.data !== d && (a = this.normalize(b.data)),
(this._current = a),
this.invalidate("position"),
this.trigger("changed", {
property: { name: "position", value: this._current }
});
}
return this._current;
}),
(e.prototype.invalidate = function(b) {
return (
"string" === a.type(b) &&
((this._invalidated[b] = !0),
this.is("valid") && this.leave("valid")),
a.map(this._invalidated, function(a, b) {
return b;
})
);
}),
(e.prototype.reset = function(a) {
(a = this.normalize(a)),
a !== d &&
((this._speed = 0),
(this._current = a),
this.suppress(["translate", "translated"]),
this.animate(this.coordinates(a)),
this.release(["translate", "translated"]));
}),
(e.prototype.normalize = function(a, b) {
var c = this._items.length,
e = b ? 0 : this._clones.length;
return (
!this.isNumeric(a) || 1 > c
? (a = d)
: (0 > a || a >= c + e) &&
(a = ((((a - e / 2) % c) + c) % c) + e / 2),
a
);
}),
(e.prototype.relative = function(a) {
return (a -= this._clones.length / 2), this.normalize(a, !0);
}),
(e.prototype.maximum = function(a) {
var b,
c = this.settings,
d = this._coordinates.length,
e = Math.abs(this._coordinates[d - 1]) - this._width,
f = -1;
if (c.loop) d = this._clones.length / 2 + this._items.length - 1;
else if (c.autoWidth || c.merge)
for (; d - f > 1; )
Math.abs(this._coordinates[(b = (d + f) >> 1)]) < e
? (f = b)
: (d = b);
else d = c.center ? this._items.length - 1 : this._items.length - c.items;
return a && (d -= this._clones.length / 2), Math.max(d, 0);
}),
(e.prototype.minimum = function(a) {
return a ? 0 : this._clones.length / 2;
}),
(e.prototype.items = function(a) {
return a === d
? this._items.slice()
: ((a = this.normalize(a, !0)), this._items[a]);
}),
(e.prototype.mergers = function(a) {
return a === d
? this._mergers.slice()
: ((a = this.normalize(a, !0)), this._mergers[a]);
}),
(e.prototype.clones = function(b) {
var c = this._clones.length / 2,
e = c + this._items.length,
f = function(a) {
return a % 2 === 0 ? e + a / 2 : c - (a + 1) / 2;
};
return b === d
? a.map(this._clones, function(a, b) {
return f(b);
})
: a.map(this._clones, function(a, c) {
return a === b ? f(c) : null;
});
}),
(e.prototype.speed = function(a) {
return a !== d && (this._speed = a), this._speed;
}),
(e.prototype.coordinates = function(b) {
var c,
e = 1,
f = b - 1;
return b === d
? a.map(
this._coordinates,
a.proxy(function(a, b) {
return this.coordinates(b);
}, this)
)
: (this.settings.center
? (this.settings.rtl && ((e = -1), (f = b + 1)),
(c = this._coordinates[b]),
(c += ((this.width() - c + (this._coordinates[f] || 0)) / 2) * e))
: (c = this._coordinates[f] || 0),
(c = Math.ceil(c)));
}),
(e.prototype.duration = function(a, b, c) {
return 0 === c
? 0
: Math.min(Math.max(Math.abs(b - a), 1), 6) *
Math.abs(c || this.settings.smartSpeed);
}),
(e.prototype.to = function(a, b) {
var c = this.current(),
d = null,
e = a - this.relative(c),
f = (e > 0) - (0 > e),
g = this._items.length,
h = this.minimum(),
i = this.maximum();
this.settings.loop
? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += -1 * f * g),
(a = c + e),
(d = ((((a - h) % g) + g) % g) + h),
d !== a &&
i >= d - e &&
d - e > 0 &&
((c = d - e), (a = d), this.reset(c)))
: this.settings.rewind
? ((i += 1), (a = ((a % i) + i) % i))
: (a = Math.max(h, Math.min(i, a))),
this.speed(this.duration(c, a, b)),
this.current(a),
this.$element.is(":visible") && this.update();
}),
(e.prototype.next = function(a) {
(a = a || !1), this.to(this.relative(this.current()) + 1, a);
}),
(e.prototype.prev = function(a) {
(a = a || !1), this.to(this.relative(this.current()) - 1, a);
}),
(e.prototype.onTransitionEnd = function(a) {
return a !== d &&
(a.stopPropagation(),
(a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))
? !1
: (this.leave("animating"), void this.trigger("translated"));
}),
(e.prototype.viewport = function() {
var d;
if (this.options.responsiveBaseElement !== b)
d = a(this.options.responsiveBaseElement).width();
else if (b.innerWidth) d = b.innerWidth;
else {
if (!c.documentElement || !c.documentElement.clientWidth)
throw "Can not detect viewport width.";
d = c.documentElement.clientWidth;
}
return d;
}),
(e.prototype.replace = function(b) {
this.$stage.empty(),
(this._items = []),
b && (b = b instanceof jQuery ? b : a(b)),
this.settings.nestedItemSelector &&
(b = b.find("." + this.settings.nestedItemSelector)),
b
.filter(function() {
return 1 === this.nodeType;
})
.each(
a.proxy(function(a, b) {
(b = this.prepare(b)),
this.$stage.append(b),
this._items.push(b),
this._mergers.push(
1 *
b
.find("[data-merge]")
.andSelf("[data-merge]")
.attr("data-merge") || 1
);
}, this)
),
this.reset(
this.isNumeric(this.settings.startPosition)
? this.settings.startPosition
: 0
),
this.invalidate("items");
}),
(e.prototype.add = function(b, c) {
var e = this.relative(this._current);
(c = c === d ? this._items.length : this.normalize(c, !0)),
(b = b instanceof jQuery ? b : a(b)),
this.trigger("add", { content: b, position: c }),
(b = this.prepare(b)),
0 === this._items.length || c === this._items.length
? (0 === this._items.length && this.$stage.append(b),
0 !== this._items.length && this._items[c - 1].after(b),
this._items.push(b),
this._mergers.push(
1 *
b
.find("[data-merge]")
.andSelf("[data-merge]")
.attr("data-merge") || 1
))
: (this._items[c].before(b),
this._items.splice(c, 0, b),
this._mergers.splice(
c,
0,
1 *
b
.find("[data-merge]")
.andSelf("[data-merge]")
.attr("data-merge") || 1
)),
this._items[e] && this.reset(this._items[e].index()),
this.invalidate("items"),
this.trigger("added", { content: b, position: c });
}),
(e.prototype.remove = function(a) {
(a = this.normalize(a, !0)),
a !== d &&
(this.trigger("remove", { content: this._items[a], position: a }),
this._items[a].remove(),
this._items.splice(a, 1),
this._mergers.splice(a, 1),
this.invalidate("items"),
this.trigger("removed", { content: null, position: a }));
}),
(e.prototype.preloadAutoWidthImages = function(b) {
b.each(
a.proxy(function(b, c) {
this.enter("pre-loading"),
(c = a(c)),
a(new Image())
.one(
"load",
a.proxy(function(a) {
c.attr("src", a.target.src),
c.css("opacity", 1),
this.leave("pre-loading"),
!this.is("pre-loading") &&
!this.is("initializing") &&
this.refresh();
}, this)
)
.attr(
"src",
c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")
);
}, this)
);
}),
(e.prototype.destroy = function() {
this.$element.off(".owl.core"),
this.$stage.off(".owl.core"),
a(c).off(".owl.core"),
this.settings.responsive !== !1 &&
(b.clearTimeout(this.resizeTimer),
this.off(b, "resize", this._handlers.onThrottledResize));
for (var d in this._plugins) this._plugins[d].destroy();
this.$stage.children(".cloned").remove(),
this.$stage.unwrap(),
this.$stage
.children()
.contents()
.unwrap(),
this.$stage.children().unwrap(),
this.$element
.removeClass(this.options.refreshClass)
.removeClass(this.options.loadingClass)
.removeClass(this.options.loadedClass)
.removeClass(this.options.rtlClass)
.removeClass(this.options.dragClass)
.removeClass(this.options.grabClass)
.attr(
"class",
this.$element
.attr("class")
.replace(
new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"),
""
)
)
.removeData("owl.carousel");
}),
(e.prototype.op = function(a, b, c) {
var d = this.settings.rtl;
switch (b) {
case "<":
return d ? a > c : c > a;
case ">":
return d ? c > a : a > c;
case ">=":
return d ? c >= a : a >= c;
case "<=":
return d ? a >= c : c >= a;
}
}),
(e.prototype.on = function(a, b, c, d) {
a.addEventListener
? a.addEventListener(b, c, d)
: a.attachEvent && a.attachEvent("on" + b, c);
}),
(e.prototype.off = function(a, b, c, d) {
a.removeEventListener
? a.removeEventListener(b, c, d)
: a.detachEvent && a.detachEvent("on" + b, c);
}),
(e.prototype.trigger = function(b, c, d, f, g) {
var h = { item: { count: this._items.length, index: this.current() } },
i = a.camelCase(
a
.grep(["on", b, d], function(a) {
return a;
})
.join("-")
.toLowerCase()
),
j = a.Event(
[b, "owl", d || "carousel"].join(".").toLowerCase(),
a.extend({ relatedTarget: this }, h, c)
);
return (
this._supress[b] ||
(a.each(this._plugins, function(a, b) {
b.onTrigger && b.onTrigger(j);
}),
this.register({ type: e.Type.Event, name: b }),
this.$element.trigger(j),
this.settings &&
"function" == typeof this.settings[i] &&
this.settings[i].call(this, j)),
j
);
}),
(e.prototype.enter = function(b) {
a.each(
[b].concat(this._states.tags[b] || []),
a.proxy(function(a, b) {
this._states.current[b] === d && (this._states.current[b] = 0),
this._states.current[b]++;
}, this)
);
}),
(e.prototype.leave = function(b) {
a.each(
[b].concat(this._states.tags[b] || []),
a.proxy(function(a, b) {
this._states.current[b]--;
}, this)
);
}),
(e.prototype.register = function(b) {
if (b.type === e.Type.Event) {
if (
(a.event.special[b.name] || (a.event.special[b.name] = {}),
!a.event.special[b.name].owl)
) {
var c = a.event.special[b.name]._default;
(a.event.special[b.name]._default = function(a) {
return !c ||
!c.apply ||
(a.namespace && -1 !== a.namespace.indexOf("owl"))
? a.namespace && a.namespace.indexOf("owl") > -1
: c.apply(this, arguments);
}),
(a.event.special[b.name].owl = !0);
}
} else
b.type === e.Type.State &&
(this._states.tags[b.name]
? (this._states.tags[b.name] = this._states.tags[b.name].concat(
b.tags
))
: (this._states.tags[b.name] = b.tags),
(this._states.tags[b.name] = a.grep(
this._states.tags[b.name],
a.proxy(function(c, d) {
return a.inArray(c, this._states.tags[b.name]) === d;
}, this)
)));
}),
(e.prototype.suppress = function(b) {
a.each(
b,
a.proxy(function(a, b) {
this._supress[b] = !0;
}, this)
);
}),
(e.prototype.release = function(b) {
a.each(
b,
a.proxy(function(a, b) {
delete this._supress[b];
}, this)
);
}),
(e.prototype.pointer = function(a) {
var c = { x: null, y: null };
return (
(a = a.originalEvent || a || b.event),
(a =
a.touches && a.touches.length
? a.touches[0]
: a.changedTouches && a.changedTouches.length
? a.changedTouches[0]
: a),
a.pageX
? ((c.x = a.pageX), (c.y = a.pageY))
: ((c.x = a.clientX), (c.y = a.clientY)),
c
);
}),
(e.prototype.isNumeric = function(a) {
return !isNaN(parseFloat(a));
}),
(e.prototype.difference = function(a, b) {
return { x: a.x - b.x, y: a.y - b.y };
}),
(a.fn.owlCarousel = function(b) {
var c = Array.prototype.slice.call(arguments, 1);
return this.each(function() {
var d = a(this),
f = d.data("owl.carousel");
f ||
((f = new e(this, "object" == typeof b && b)),
d.data("owl.carousel", f),
a.each(
[
"next",
"prev",
"to",
"destroy",
"refresh",
"replace",
"add",
"remove"
],
function(b, c) {
f.register({ type: e.Type.Event, name: c }),
f.$element.on(
c + ".owl.carousel.core",
a.proxy(function(a) {
a.namespace &&
a.relatedTarget !== this &&
(this.suppress([c]),
f[c].apply(this, [].slice.call(arguments, 1)),
this.release([c]));
}, f)
);
}
)),
"string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c);
});
}),
(a.fn.owlCarousel.Constructor = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this._core = b),
(this._interval = null),
(this._visible = null),
(this._handlers = {
"initialized.owl.carousel": a.proxy(function(a) {
a.namespace && this._core.settings.autoRefresh && this.watch();
}, this)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this._core.$element.on(this._handlers);
};
(e.Defaults = { autoRefresh: !0, autoRefreshInterval: 500 }),
(e.prototype.watch = function() {
this._interval ||
((this._visible = this._core.$element.is(":visible")),
(this._interval = b.setInterval(
a.proxy(this.refresh, this),
this._core.settings.autoRefreshInterval
)));
}),
(e.prototype.refresh = function() {
this._core.$element.is(":visible") !== this._visible &&
((this._visible = !this._visible),
this._core.$element.toggleClass("owl-hidden", !this._visible),
this._visible &&
this._core.invalidate("width") &&
this._core.refresh());
}),
(e.prototype.destroy = function() {
var a, c;
b.clearInterval(this._interval);
for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);
for (c in Object.getOwnPropertyNames(this))
"function" != typeof this[c] && (this[c] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this._core = b),
(this._loaded = []),
(this._handlers = {
"initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(
function(b) {
if (
b.namespace &&
this._core.settings &&
this._core.settings.lazyLoad &&
((b.property && "position" == b.property.name) ||
"initialized" == b.type)
)
for (
var c = this._core.settings,
e = (c.center && Math.ceil(c.items / 2)) || c.items,
f = (c.center && -1 * e) || 0,
g =
(b.property && b.property.value !== d
? b.property.value
: this._core.current()) + f,
h = this._core.clones().length,
i = a.proxy(function(a, b) {
this.load(b);
}, this);
f++ < e;
)
this.load(h / 2 + this._core.relative(g)),
h && a.each(this._core.clones(this._core.relative(g)), i),
g++;
},
this
)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this._core.$element.on(this._handlers);
};
(e.Defaults = { lazyLoad: !1 }),
(e.prototype.load = function(c) {
var d = this._core.$stage.children().eq(c),
e = d && d.find(".owl-lazy");
!e ||
a.inArray(d.get(0), this._loaded) > -1 ||
(e.each(
a.proxy(function(c, d) {
var e,
f = a(d),
g =
(b.devicePixelRatio > 1 && f.attr("data-src-retina")) ||
f.attr("data-src");
this._core.trigger("load", { element: f, url: g }, "lazy"),
f.is("img")
? f
.one(
"load.owl.lazy",
a.proxy(function() {
f.css("opacity", 1),
this._core.trigger(
"loaded",
{ element: f, url: g },
"lazy"
);
}, this)
)
.attr("src", g)
: ((e = new Image()),
(e.onload = a.proxy(function() {
f.css({
"background-image": "url(" + g + ")",
opacity: "1"
}),
this._core.trigger(
"loaded",
{ element: f, url: g },
"lazy"
);
}, this)),
(e.src = g));
}, this)
),
this._loaded.push(d.get(0)));
}),
(e.prototype.destroy = function() {
var a, b;
for (a in this.handlers) this._core.$element.off(a, this.handlers[a]);
for (b in Object.getOwnPropertyNames(this))
"function" != typeof this[b] && (this[b] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.Lazy = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this._core = b),
(this._handlers = {
"initialized.owl.carousel refreshed.owl.carousel": a.proxy(function(
a
) {
a.namespace && this._core.settings.autoHeight && this.update();
},
this),
"changed.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.settings.autoHeight &&
"position" == a.property.name &&
this.update();
}, this),
"loaded.owl.lazy": a.proxy(function(a) {
a.namespace &&
this._core.settings.autoHeight &&
a.element.closest("." + this._core.settings.itemClass).index() ===
this._core.current() &&
this.update();
}, this)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this._core.$element.on(this._handlers);
};
(e.Defaults = { autoHeight: !1, autoHeightClass: "owl-height" }),
(e.prototype.update = function() {
var b = this._core._current,
c = b + this._core.settings.items,
d = this._core.$stage
.children()
.toArray()
.slice(b, c),
e = [],
f = 0;
a.each(d, function(b, c) {
e.push(a(c).height());
}),
(f = Math.max.apply(null, e)),
this._core.$stage
.parent()
.height(f)
.addClass(this._core.settings.autoHeightClass);
}),
(e.prototype.destroy = function() {
var a, b;
for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);
for (b in Object.getOwnPropertyNames(this))
"function" != typeof this[b] && (this[b] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this._core = b),
(this._videos = {}),
(this._playing = null),
(this._handlers = {
"initialized.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.register({
type: "state",
name: "playing",
tags: ["interacting"]
});
}, this),
"resize.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.settings.video &&
this.isInFullScreen() &&
a.preventDefault();
}, this),
"refreshed.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.is("resizing") &&
this._core.$stage.find(".cloned .owl-video-frame").remove();
}, this),
"changed.owl.carousel": a.proxy(function(a) {
a.namespace &&
"position" === a.property.name &&
this._playing &&
this.stop();
}, this),
"prepared.owl.carousel": a.proxy(function(b) {
if (b.namespace) {
var c = a(b.content).find(".owl-video");
c.length &&
(c.css("display", "none"), this.fetch(c, a(b.content)));
}
}, this)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this._core.$element.on(this._handlers),
this._core.$element.on(
"click.owl.video",
".owl-video-play-icon",
a.proxy(function(a) {
this.play(a);
}, this)
);
};
(e.Defaults = { video: !1, videoHeight: !1, videoWidth: !1 }),
(e.prototype.fetch = function(a, b) {
var c = (function() {
return a.attr("data-vimeo-id")
? "vimeo"
: a.attr("data-vzaar-id")
? "vzaar"
: "youtube";
})(),
d =
a.attr("data-vimeo-id") ||
a.attr("data-youtube-id") ||
a.attr("data-vzaar-id"),
e = a.attr("data-width") || this._core.settings.videoWidth,
f = a.attr("data-height") || this._core.settings.videoHeight,
g = a.attr("href");
if (!g) throw new Error("Missing video URL.");
if (
((d = g.match(
/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/
)),
d[3].indexOf("youtu") > -1)
)
c = "youtube";
else if (d[3].indexOf("vimeo") > -1) c = "vimeo";
else {
if (!(d[3].indexOf("vzaar") > -1))
throw new Error("Video URL not supported.");
c = "vzaar";
}
(d = d[6]),
(this._videos[g] = { type: c, id: d, width: e, height: f }),
b.attr("data-video", g),
this.thumbnail(a, this._videos[g]);
}),
(e.prototype.thumbnail = function(b, c) {
var d,
e,
f,
g =
c.width && c.height
? 'style="width:' + c.width + "px;height:" + c.height + 'px;"'
: "",
h = b.find("img"),
i = "src",
j = "",
k = this._core.settings,
l = function(a) {
(e = '
'),
(d = k.lazyLoad
? '
'
: '
'),
b.after(d),
b.after(e);
};
return (
b.wrap('
"),
this._core.settings.lazyLoad && ((i = "data-src"), (j = "owl-lazy")),
h.length
? (l(h.attr(i)), h.remove(), !1)
: void ("youtube" === c.type
? ((f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg"),
l(f))
: "vimeo" === c.type
? a.ajax({
type: "GET",
url: "//vimeo.com/api/v2/video/" + c.id + ".json",
jsonp: "callback",
dataType: "jsonp",
success: function(a) {
(f = a[0].thumbnail_large), l(f);
}
})
: "vzaar" === c.type &&
a.ajax({
type: "GET",
url: "//vzaar.com/api/videos/" + c.id + ".json",
jsonp: "callback",
dataType: "jsonp",
success: function(a) {
(f = a.framegrab_url), l(f);
}
}))
);
}),
(e.prototype.stop = function() {
this._core.trigger("stop", null, "video"),
this._playing.find(".owl-video-frame").remove(),
this._playing.removeClass("owl-video-playing"),
(this._playing = null),
this._core.leave("playing"),
this._core.trigger("stopped", null, "video");
}),
(e.prototype.play = function(b) {
var c,
d = a(b.target),
e = d.closest("." + this._core.settings.itemClass),
f = this._videos[e.attr("data-video")],
g = f.width || "100%",
h = f.height || this._core.$stage.height();
this._playing ||
(this._core.enter("playing"),
this._core.trigger("play", null, "video"),
(e = this._core.items(this._core.relative(e.index()))),
this._core.reset(e.index()),
"youtube" === f.type
? (c =
'
')
: "vimeo" === f.type
? (c =
'
')
: "vzaar" === f.type &&
(c =
'
'),
a('
' + c + "
").insertAfter(
e.find(".owl-video")
),
(this._playing = e.addClass("owl-video-playing")));
}),
(e.prototype.isInFullScreen = function() {
var b =
c.fullscreenElement ||
c.mozFullScreenElement ||
c.webkitFullscreenElement;
return (
b &&
a(b)
.parent()
.hasClass("owl-video-frame")
);
}),
(e.prototype.destroy = function() {
var a, b;
this._core.$element.off("click.owl.video");
for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);
for (b in Object.getOwnPropertyNames(this))
"function" != typeof this[b] && (this[b] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.Video = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this.core = b),
(this.core.options = a.extend({}, e.Defaults, this.core.options)),
(this.swapping = !0),
(this.previous = d),
(this.next = d),
(this.handlers = {
"change.owl.carousel": a.proxy(function(a) {
a.namespace &&
"position" == a.property.name &&
((this.previous = this.core.current()),
(this.next = a.property.value));
}, this),
"drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(
function(a) {
a.namespace && (this.swapping = "translated" == a.type);
},
this
),
"translate.owl.carousel": a.proxy(function(a) {
a.namespace &&
this.swapping &&
(this.core.options.animateOut || this.core.options.animateIn) &&
this.swap();
}, this)
}),
this.core.$element.on(this.handlers);
};
(e.Defaults = { animateOut: !1, animateIn: !1 }),
(e.prototype.swap = function() {
if (
1 === this.core.settings.items &&
a.support.animation &&
a.support.transition
) {
this.core.speed(0);
var b,
c = a.proxy(this.clear, this),
d = this.core.$stage.children().eq(this.previous),
e = this.core.$stage.children().eq(this.next),
f = this.core.settings.animateIn,
g = this.core.settings.animateOut;
this.core.current() !== this.previous &&
(g &&
((b =
this.core.coordinates(this.previous) -
this.core.coordinates(this.next)),
d
.one(a.support.animation.end, c)
.css({ left: b + "px" })
.addClass("animated owl-animated-out")
.addClass(g)),
f &&
e
.one(a.support.animation.end, c)
.addClass("animated owl-animated-in")
.addClass(f));
}
}),
(e.prototype.clear = function(b) {
a(b.target)
.css({ left: "" })
.removeClass("animated owl-animated-out owl-animated-in")
.removeClass(this.core.settings.animateIn)
.removeClass(this.core.settings.animateOut),
this.core.onTransitionEnd();
}),
(e.prototype.destroy = function() {
var a, b;
for (a in this.handlers) this.core.$element.off(a, this.handlers[a]);
for (b in Object.getOwnPropertyNames(this))
"function" != typeof this[b] && (this[b] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.Animate = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
var e = function(b) {
(this._core = b),
(this._timeout = null),
(this._paused = !1),
(this._handlers = {
"changed.owl.carousel": a.proxy(function(a) {
a.namespace && "settings" === a.property.name
? this._core.settings.autoplay
? this.play()
: this.stop()
: a.namespace &&
"position" === a.property.name &&
this._core.settings.autoplay &&
this._setAutoPlayInterval();
}, this),
"initialized.owl.carousel": a.proxy(function(a) {
a.namespace && this._core.settings.autoplay && this.play();
}, this),
"play.owl.autoplay": a.proxy(function(a, b, c) {
a.namespace && this.play(b, c);
}, this),
"stop.owl.autoplay": a.proxy(function(a) {
a.namespace && this.stop();
}, this),
"mouseover.owl.autoplay": a.proxy(function() {
this._core.settings.autoplayHoverPause &&
this._core.is("rotating") &&
this.pause();
}, this),
"mouseleave.owl.autoplay": a.proxy(function() {
this._core.settings.autoplayHoverPause &&
this._core.is("rotating") &&
this.play();
}, this),
"touchstart.owl.core": a.proxy(function() {
this._core.settings.autoplayHoverPause &&
this._core.is("rotating") &&
this.pause();
}, this),
"touchend.owl.core": a.proxy(function() {
this._core.settings.autoplayHoverPause && this.play();
}, this)
}),
this._core.$element.on(this._handlers),
(this._core.options = a.extend({}, e.Defaults, this._core.options));
};
(e.Defaults = {
autoplay: !1,
autoplayTimeout: 5e3,
autoplayHoverPause: !1,
autoplaySpeed: !1
}),
(e.prototype.play = function(a, b) {
(this._paused = !1),
this._core.is("rotating") ||
(this._core.enter("rotating"), this._setAutoPlayInterval());
}),
(e.prototype._getNextTimeout = function(d, e) {
return (
this._timeout && b.clearTimeout(this._timeout),
b.setTimeout(
a.proxy(function() {
this._paused ||
this._core.is("busy") ||
this._core.is("interacting") ||
c.hidden ||
this._core.next(e || this._core.settings.autoplaySpeed);
}, this),
d || this._core.settings.autoplayTimeout
)
);
}),
(e.prototype._setAutoPlayInterval = function() {
this._timeout = this._getNextTimeout();
}),
(e.prototype.stop = function() {
this._core.is("rotating") &&
(b.clearTimeout(this._timeout), this._core.leave("rotating"));
}),
(e.prototype.pause = function() {
this._core.is("rotating") && (this._paused = !0);
}),
(e.prototype.destroy = function() {
var a, b;
this.stop();
for (a in this._handlers) this._core.$element.off(a, this._handlers[a]);
for (b in Object.getOwnPropertyNames(this))
"function" != typeof this[b] && (this[b] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.autoplay = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
"use strict";
var e = function(b) {
(this._core = b),
(this._initialized = !1),
(this._pages = []),
(this._controls = {}),
(this._templates = []),
(this.$element = this._core.$element),
(this._overrides = {
next: this._core.next,
prev: this._core.prev,
to: this._core.to
}),
(this._handlers = {
"prepared.owl.carousel": a.proxy(function(b) {
b.namespace &&
this._core.settings.dotsData &&
this._templates.push(
'
' +
a(b.content)
.find("[data-dot]")
.addBack("[data-dot]")
.attr("data-dot") +
"
"
);
}, this),
"added.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.settings.dotsData &&
this._templates.splice(a.position, 0, this._templates.pop());
}, this),
"remove.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._core.settings.dotsData &&
this._templates.splice(a.position, 1);
}, this),
"changed.owl.carousel": a.proxy(function(a) {
a.namespace && "position" == a.property.name && this.draw();
}, this),
"initialized.owl.carousel": a.proxy(function(a) {
a.namespace &&
!this._initialized &&
(this._core.trigger("initialize", null, "navigation"),
this.initialize(),
this.update(),
this.draw(),
(this._initialized = !0),
this._core.trigger("initialized", null, "navigation"));
}, this),
"refreshed.owl.carousel": a.proxy(function(a) {
a.namespace &&
this._initialized &&
(this._core.trigger("refresh", null, "navigation"),
this.update(),
this.draw(),
this._core.trigger("refreshed", null, "navigation"));
}, this)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this.$element.on(this._handlers);
};
(e.Defaults = {
nav: !1,
navText: ["prev", "next"],
navSpeed: !1,
navElement: "div",
navContainer: !1,
navContainerClass: "owl-nav",
navClass: ["owl-prev", "owl-next"],
slideBy: 1,
dotClass: "owl-dot",
dotsClass: "owl-dots",
dots: !0,
dotsEach: !1,
dotsData: !1,
dotsSpeed: !1,
dotsContainer: !1
}),
(e.prototype.initialize = function() {
var b,
c = this._core.settings;
(this._controls.$relative = (c.navContainer
? a(c.navContainer)
: a("
")
.addClass(c.navContainerClass)
.appendTo(this.$element)
).addClass("disabled")),
(this._controls.$previous = a("<" + c.navElement + ">")
.addClass(c.navClass[0])
.html(c.navText[0])
.prependTo(this._controls.$relative)
.on(
"click",
a.proxy(function(a) {
this.prev(c.navSpeed);
}, this)
)),
(this._controls.$next = a("<" + c.navElement + ">")
.addClass(c.navClass[1])
.html(c.navText[1])
.appendTo(this._controls.$relative)
.on(
"click",
a.proxy(function(a) {
this.next(c.navSpeed);
}, this)
)),
c.dotsData ||
(this._templates = [
a("
")
.addClass(c.dotClass)
.append(a("
"))
.prop("outerHTML")
]),
(this._controls.$absolute = (c.dotsContainer
? a(c.dotsContainer)
: a("")
.addClass(c.dotsClass)
.appendTo(this.$element)
).addClass("disabled")),
this._controls.$absolute.on(
"click",
"div",
a.proxy(function(b) {
var d = a(b.target)
.parent()
.is(this._controls.$absolute)
? a(b.target).index()
: a(b.target)
.parent()
.index();
b.preventDefault(), this.to(d, c.dotsSpeed);
}, this)
);
for (b in this._overrides) this._core[b] = a.proxy(this[b], this);
}),
(e.prototype.destroy = function() {
var a, b, c, d;
for (a in this._handlers) this.$element.off(a, this._handlers[a]);
for (b in this._controls) this._controls[b].remove();
for (d in this.overides) this._core[d] = this._overrides[d];
for (c in Object.getOwnPropertyNames(this))
"function" != typeof this[c] && (this[c] = null);
}),
(e.prototype.update = function() {
var a,
b,
c,
d = this._core.clones().length / 2,
e = d + this._core.items().length,
f = this._core.maximum(!0),
g = this._core.settings,
h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items;
if (
("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)),
g.dots || "page" == g.slideBy)
)
for (this._pages = [], a = d, b = 0, c = 0; e > a; a++) {
if (b >= h || 0 === b) {
if (
(this._pages.push({
start: Math.min(f, a - d),
end: a - d + h - 1
}),
Math.min(f, a - d) === f)
)
break;
(b = 0), ++c;
}
b += this._core.mergers(this._core.relative(a));
}
}),
(e.prototype.draw = function() {
var b,
c = this._core.settings,
d = this._core.items().length <= c.items,
e = this._core.relative(this._core.current()),
f = c.loop || c.rewind;
this._controls.$relative.toggleClass("disabled", !c.nav || d),
c.nav &&
(this._controls.$previous.toggleClass(
"disabled",
!f && e <= this._core.minimum(!0)
),
this._controls.$next.toggleClass(
"disabled",
!f && e >= this._core.maximum(!0)
)),
this._controls.$absolute.toggleClass("disabled", !c.dots || d),
c.dots &&
((b =
this._pages.length - this._controls.$absolute.children().length),
c.dotsData && 0 !== b
? this._controls.$absolute.html(this._templates.join(""))
: b > 0
? this._controls.$absolute.append(
new Array(b + 1).join(this._templates[0])
)
: 0 > b &&
this._controls.$absolute
.children()
.slice(b)
.remove(),
this._controls.$absolute.find(".active").removeClass("active"),
this._controls.$absolute
.children()
.eq(a.inArray(this.current(), this._pages))
.addClass("active"));
}),
(e.prototype.onTrigger = function(b) {
var c = this._core.settings;
b.page = {
index: a.inArray(this.current(), this._pages),
count: this._pages.length,
size:
c &&
(c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items)
};
}),
(e.prototype.current = function() {
var b = this._core.relative(this._core.current());
return a
.grep(
this._pages,
a.proxy(function(a, c) {
return a.start <= b && a.end >= b;
}, this)
)
.pop();
}),
(e.prototype.getPosition = function(b) {
var c,
d,
e = this._core.settings;
return (
"page" == e.slideBy
? ((c = a.inArray(this.current(), this._pages)),
(d = this._pages.length),
b ? ++c : --c,
(c = this._pages[((c % d) + d) % d].start))
: ((c = this._core.relative(this._core.current())),
(d = this._core.items().length),
b ? (c += e.slideBy) : (c -= e.slideBy)),
c
);
}),
(e.prototype.next = function(b) {
a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b);
}),
(e.prototype.prev = function(b) {
a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b);
}),
(e.prototype.to = function(b, c, d) {
var e;
!d && this._pages.length
? ((e = this._pages.length),
a.proxy(this._overrides.to, this._core)(
this._pages[((b % e) + e) % e].start,
c
))
: a.proxy(this._overrides.to, this._core)(b, c);
}),
(a.fn.owlCarousel.Constructor.Plugins.Navigation = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
"use strict";
var e = function(c) {
(this._core = c),
(this._hashes = {}),
(this.$element = this._core.$element),
(this._handlers = {
"initialized.owl.carousel": a.proxy(function(c) {
c.namespace &&
"URLHash" === this._core.settings.startPosition &&
a(b).trigger("hashchange.owl.navigation");
}, this),
"prepared.owl.carousel": a.proxy(function(b) {
if (b.namespace) {
var c = a(b.content)
.find("[data-hash]")
.addBack("[data-hash]")
.attr("data-hash");
if (!c) return;
this._hashes[c] = b.content;
}
}, this),
"changed.owl.carousel": a.proxy(function(c) {
if (c.namespace && "position" === c.property.name) {
var d = this._core.items(
this._core.relative(this._core.current())
),
e = a
.map(this._hashes, function(a, b) {
return a === d ? b : null;
})
.join();
if (!e || b.location.hash.slice(1) === e) return;
b.location.hash = e;
}
}, this)
}),
(this._core.options = a.extend({}, e.Defaults, this._core.options)),
this.$element.on(this._handlers),
a(b).on(
"hashchange.owl.navigation",
a.proxy(function(a) {
var c = b.location.hash.substring(1),
e = this._core.$stage.children(),
f = this._hashes[c] && e.index(this._hashes[c]);
f !== d &&
f !== this._core.current() &&
this._core.to(this._core.relative(f), !1, !0);
}, this)
);
};
(e.Defaults = { URLhashListener: !1 }),
(e.prototype.destroy = function() {
var c, d;
a(b).off("hashchange.owl.navigation");
for (c in this._handlers) this._core.$element.off(c, this._handlers[c]);
for (d in Object.getOwnPropertyNames(this))
"function" != typeof this[d] && (this[d] = null);
}),
(a.fn.owlCarousel.Constructor.Plugins.Hash = e);
})(window.Zepto || window.jQuery, window, document),
(function(a, b, c, d) {
function e(b, c) {
var e = !1,
f = b.charAt(0).toUpperCase() + b.slice(1);
return (
a.each((b + " " + h.join(f + " ") + f).split(" "), function(a, b) {
return g[b] !== d ? ((e = c ? b : !0), !1) : void 0;
}),
e
);
}
function f(a) {
return e(a, !0);
}
var g = a("
").get(0).style,
h = "Webkit Moz O ms".split(" "),
i = {
transition: {
end: {
WebkitTransition: "webkitTransitionEnd",
MozTransition: "transitionend",
OTransition: "oTransitionEnd",
transition: "transitionend"
}
},
animation: {
end: {
WebkitAnimation: "webkitAnimationEnd",
MozAnimation: "animationend",
OAnimation: "oAnimationEnd",
animation: "animationend"
}
}
},
j = {
csstransforms: function() {
return !!e("transform");
},
csstransforms3d: function() {
return !!e("perspective");
},
csstransitions: function() {
return !!e("transition");
},
cssanimations: function() {
return !!e("animation");
}
};
j.csstransitions() &&
((a.support.transition = new String(f("transition"))),
(a.support.transition.end = i.transition.end[a.support.transition])),
j.cssanimations() &&
((a.support.animation = new String(f("animation"))),
(a.support.animation.end = i.animation.end[a.support.animation])),
j.csstransforms() &&
((a.support.transform = new String(f("transform"))),
(a.support.transform3d = j.csstransforms3d()));
})(window.Zepto || window.jQuery, window, document);
/*! Stellar.js v0.6.2 | Copyright 2014, Mark Dalgleish | http://markdalgleish.com/projects/stellar.js | http://markdalgleish.mit-license.org */
!(function(a, b, c, d) {
function e(b, c) {
(this.element = b),
(this.options = a.extend({}, g, c)),
(this._defaults = g),
(this._name = f),
this.init();
}
var f = "stellar",
g = {
scrollProperty: "scroll",
positionProperty: "position",
horizontalScrolling: !0,
verticalScrolling: !0,
horizontalOffset: 0,
verticalOffset: 0,
responsive: !1,
parallaxBackgrounds: !0,
parallaxElements: !0,
hideDistantElements: !0,
hideElement: function(a) {
a.hide();
},
showElement: function(a) {
a.show();
}
},
h = {
scroll: {
getLeft: function(a) {
return a.scrollLeft();
},
setLeft: function(a, b) {
a.scrollLeft(b);
},
getTop: function(a) {
return a.scrollTop();
},
setTop: function(a, b) {
a.scrollTop(b);
}
},
position: {
getLeft: function(a) {
return -1 * parseInt(a.css("left"), 10);
},
getTop: function(a) {
return -1 * parseInt(a.css("top"), 10);
}
},
margin: {
getLeft: function(a) {
return -1 * parseInt(a.css("margin-left"), 10);
},
getTop: function(a) {
return -1 * parseInt(a.css("margin-top"), 10);
}
},
transform: {
getLeft: function(a) {
var b = getComputedStyle(a[0])[k];
return "none" !== b
? -1 * parseInt(b.match(/(-?[0-9]+)/g)[4], 10)
: 0;
},
getTop: function(a) {
var b = getComputedStyle(a[0])[k];
return "none" !== b
? -1 * parseInt(b.match(/(-?[0-9]+)/g)[5], 10)
: 0;
}
}
},
i = {
position: {
setLeft: function(a, b) {
a.css("left", b);
},
setTop: function(a, b) {
a.css("top", b);
}
},
transform: {
setPosition: function(a, b, c, d, e) {
a[0].style[k] =
"translate3d(" + (b - c) + "px, " + (d - e) + "px, 0)";
}
}
},
j = (function() {
var b,
c = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,
d = a("script")[0].style,
e = "";
for (b in d)
if (c.test(b)) {
e = b.match(c)[0];
break;
}
return (
"WebkitOpacity" in d && (e = "Webkit"),
"KhtmlOpacity" in d && (e = "Khtml"),
function(a) {
return (
e + (e.length > 0 ? a.charAt(0).toUpperCase() + a.slice(1) : a)
);
}
);
})(),
k = j("transform"),
l =
a("
", { style: "background:#fff" }).css(
"background-position-x"
) !== d,
m = l
? function(a, b, c) {
a.css({ "background-position-x": b, "background-position-y": c });
}
: function(a, b, c) {
a.css("background-position", b + " " + c);
},
n = l
? function(a) {
return [
a.css("background-position-x"),
a.css("background-position-y")
];
}
: function(a) {
return a.css("background-position").split(" ");
},
o =
b.requestAnimationFrame ||
b.webkitRequestAnimationFrame ||
b.mozRequestAnimationFrame ||
b.oRequestAnimationFrame ||
b.msRequestAnimationFrame ||
function(a) {
setTimeout(a, 1e3 / 60);
};
(e.prototype = {
init: function() {
(this.options.name = f + "_" + Math.floor(1e9 * Math.random())),
this._defineElements(),
this._defineGetters(),
this._defineSetters(),
this._handleWindowLoadAndResize(),
this._detectViewport(),
this.refresh({ firstLoad: !0 }),
"scroll" === this.options.scrollProperty
? this._handleScrollEvent()
: this._startAnimationLoop();
},
_defineElements: function() {
this.element === c.body && (this.element = b),
(this.$scrollElement = a(this.element)),
(this.$element = this.element === b ? a("body") : this.$scrollElement),
(this.$viewportElement =
this.options.viewportElement !== d
? a(this.options.viewportElement)
: this.$scrollElement[0] === b ||
"scroll" === this.options.scrollProperty
? this.$scrollElement
: this.$scrollElement.parent());
},
_defineGetters: function() {
var a = this,
b = h[a.options.scrollProperty];
(this._getScrollLeft = function() {
return b.getLeft(a.$scrollElement);
}),
(this._getScrollTop = function() {
return b.getTop(a.$scrollElement);
});
},
_defineSetters: function() {
var b = this,
c = h[b.options.scrollProperty],
d = i[b.options.positionProperty],
e = c.setLeft,
f = c.setTop;
(this._setScrollLeft =
"function" == typeof e
? function(a) {
e(b.$scrollElement, a);
}
: a.noop),
(this._setScrollTop =
"function" == typeof f
? function(a) {
f(b.$scrollElement, a);
}
: a.noop),
(this._setPosition =
d.setPosition ||
function(a, c, e, f, g) {
b.options.horizontalScrolling && d.setLeft(a, c, e),
b.options.verticalScrolling && d.setTop(a, f, g);
});
},
_handleWindowLoadAndResize: function() {
var c = this,
d = a(b);
c.options.responsive &&
d.bind("load." + this.name, function() {
c.refresh();
}),
d.bind("resize." + this.name, function() {
c._detectViewport(), c.options.responsive && c.refresh();
});
},
refresh: function(c) {
var d = this,
e = d._getScrollLeft(),
f = d._getScrollTop();
(c && c.firstLoad) || this._reset(),
this._setScrollLeft(0),
this._setScrollTop(0),
this._setOffsets(),
this._findParticles(),
this._findBackgrounds(),
c &&
c.firstLoad &&
/WebKit/.test(navigator.userAgent) &&
a(b).load(function() {
var a = d._getScrollLeft(),
b = d._getScrollTop();
d._setScrollLeft(a + 1),
d._setScrollTop(b + 1),
d._setScrollLeft(a),
d._setScrollTop(b);
}),
this._setScrollLeft(e),
this._setScrollTop(f);
},
_detectViewport: function() {
var a = this.$viewportElement.offset(),
b = null !== a && a !== d;
(this.viewportWidth = this.$viewportElement.width()),
(this.viewportHeight = this.$viewportElement.height()),
(this.viewportOffsetTop = b ? a.top : 0),
(this.viewportOffsetLeft = b ? a.left : 0);
},
_findParticles: function() {
{
var b = this;
this._getScrollLeft(), this._getScrollTop();
}
if (this.particles !== d)
for (var c = this.particles.length - 1; c >= 0; c--)
this.particles[c].$element.data("stellar-elementIsActive", d);
(this.particles = []),
this.options.parallaxElements &&
this.$element.find("[data-stellar-ratio]").each(function() {
var c,
e,
f,
g,
h,
i,
j,
k,
l,
m = a(this),
n = 0,
o = 0,
p = 0,
q = 0;
if (m.data("stellar-elementIsActive")) {
if (m.data("stellar-elementIsActive") !== this) return;
} else m.data("stellar-elementIsActive", this);
b.options.showElement(m),
m.data("stellar-startingLeft")
? (m.css("left", m.data("stellar-startingLeft")),
m.css("top", m.data("stellar-startingTop")))
: (m.data("stellar-startingLeft", m.css("left")),
m.data("stellar-startingTop", m.css("top"))),
(f = m.position().left),
(g = m.position().top),
(h =
"auto" === m.css("margin-left")
? 0
: parseInt(m.css("margin-left"), 10)),
(i =
"auto" === m.css("margin-top")
? 0
: parseInt(m.css("margin-top"), 10)),
(k = m.offset().left - h),
(l = m.offset().top - i),
m.parents().each(function() {
var b = a(this);
return b.data("stellar-offset-parent") === !0
? ((n = p), (o = q), (j = b), !1)
: ((p += b.position().left), void (q += b.position().top));
}),
(c =
m.data("stellar-horizontal-offset") !== d
? m.data("stellar-horizontal-offset")
: j !== d && j.data("stellar-horizontal-offset") !== d
? j.data("stellar-horizontal-offset")
: b.horizontalOffset),
(e =
m.data("stellar-vertical-offset") !== d
? m.data("stellar-vertical-offset")
: j !== d && j.data("stellar-vertical-offset") !== d
? j.data("stellar-vertical-offset")
: b.verticalOffset),
b.particles.push({
$element: m,
$offsetParent: j,
isFixed: "fixed" === m.css("position"),
horizontalOffset: c,
verticalOffset: e,
startingPositionLeft: f,
startingPositionTop: g,
startingOffsetLeft: k,
startingOffsetTop: l,
parentOffsetLeft: n,
parentOffsetTop: o,
stellarRatio:
m.data("stellar-ratio") !== d ? m.data("stellar-ratio") : 1,
width: m.outerWidth(!0),
height: m.outerHeight(!0),
isHidden: !1
});
});
},
_findBackgrounds: function() {
var b,
c = this,
e = this._getScrollLeft(),
f = this._getScrollTop();
(this.backgrounds = []),
this.options.parallaxBackgrounds &&
((b = this.$element.find("[data-stellar-background-ratio]")),
this.$element.data("stellar-background-ratio") &&
(b = b.add(this.$element)),
b.each(function() {
var b,
g,
h,
i,
j,
k,
l,
o = a(this),
p = n(o),
q = 0,
r = 0,
s = 0,
t = 0;
if (o.data("stellar-backgroundIsActive")) {
if (o.data("stellar-backgroundIsActive") !== this) return;
} else o.data("stellar-backgroundIsActive", this);
o.data("stellar-backgroundStartingLeft")
? m(
o,
o.data("stellar-backgroundStartingLeft"),
o.data("stellar-backgroundStartingTop")
)
: (o.data("stellar-backgroundStartingLeft", p[0]),
o.data("stellar-backgroundStartingTop", p[1])),
(h =
"auto" === o.css("margin-left")
? 0
: parseInt(o.css("margin-left"), 10)),
(i =
"auto" === o.css("margin-top")
? 0
: parseInt(o.css("margin-top"), 10)),
(j = o.offset().left - h - e),
(k = o.offset().top - i - f),
o.parents().each(function() {
var b = a(this);
return b.data("stellar-offset-parent") === !0
? ((q = s), (r = t), (l = b), !1)
: ((s += b.position().left), void (t += b.position().top));
}),
(b =
o.data("stellar-horizontal-offset") !== d
? o.data("stellar-horizontal-offset")
: l !== d && l.data("stellar-horizontal-offset") !== d
? l.data("stellar-horizontal-offset")
: c.horizontalOffset),
(g =
o.data("stellar-vertical-offset") !== d
? o.data("stellar-vertical-offset")
: l !== d && l.data("stellar-vertical-offset") !== d
? l.data("stellar-vertical-offset")
: c.verticalOffset),
c.backgrounds.push({
$element: o,
$offsetParent: l,
isFixed: "fixed" === o.css("background-attachment"),
horizontalOffset: b,
verticalOffset: g,
startingValueLeft: p[0],
startingValueTop: p[1],
startingBackgroundPositionLeft: isNaN(parseInt(p[0], 10))
? 0
: parseInt(p[0], 10),
startingBackgroundPositionTop: isNaN(parseInt(p[1], 10))
? 0
: parseInt(p[1], 10),
startingPositionLeft: o.position().left,
startingPositionTop: o.position().top,
startingOffsetLeft: j,
startingOffsetTop: k,
parentOffsetLeft: q,
parentOffsetTop: r,
stellarRatio:
o.data("stellar-background-ratio") === d
? 1
: o.data("stellar-background-ratio")
});
}));
},
_reset: function() {
var a, b, c, d, e;
for (e = this.particles.length - 1; e >= 0; e--)
(a = this.particles[e]),
(b = a.$element.data("stellar-startingLeft")),
(c = a.$element.data("stellar-startingTop")),
this._setPosition(a.$element, b, b, c, c),
this.options.showElement(a.$element),
a.$element
.data("stellar-startingLeft", null)
.data("stellar-elementIsActive", null)
.data("stellar-backgroundIsActive", null);
for (e = this.backgrounds.length - 1; e >= 0; e--)
(d = this.backgrounds[e]),
d.$element
.data("stellar-backgroundStartingLeft", null)
.data("stellar-backgroundStartingTop", null),
m(d.$element, d.startingValueLeft, d.startingValueTop);
},
destroy: function() {
this._reset(),
this.$scrollElement
.unbind("resize." + this.name)
.unbind("scroll." + this.name),
(this._animationLoop = a.noop),
a(b)
.unbind("load." + this.name)
.unbind("resize." + this.name);
},
_setOffsets: function() {
var c = this,
d = a(b);
d
.unbind("resize.horizontal-" + this.name)
.unbind("resize.vertical-" + this.name),
"function" == typeof this.options.horizontalOffset
? ((this.horizontalOffset = this.options.horizontalOffset()),
d.bind("resize.horizontal-" + this.name, function() {
c.horizontalOffset = c.options.horizontalOffset();
}))
: (this.horizontalOffset = this.options.horizontalOffset),
"function" == typeof this.options.verticalOffset
? ((this.verticalOffset = this.options.verticalOffset()),
d.bind("resize.vertical-" + this.name, function() {
c.verticalOffset = c.options.verticalOffset();
}))
: (this.verticalOffset = this.options.verticalOffset);
},
_repositionElements: function() {
var a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k = this._getScrollLeft(),
l = this._getScrollTop(),
n = !0,
o = !0;
if (
this.currentScrollLeft !== k ||
this.currentScrollTop !== l ||
this.currentWidth !== this.viewportWidth ||
this.currentHeight !== this.viewportHeight
) {
for (
this.currentScrollLeft = k,
this.currentScrollTop = l,
this.currentWidth = this.viewportWidth,
this.currentHeight = this.viewportHeight,
j = this.particles.length - 1;
j >= 0;
j--
)
(a = this.particles[j]),
(b = a.isFixed ? 1 : 0),
this.options.horizontalScrolling
? ((f =
(k +
a.horizontalOffset +
this.viewportOffsetLeft +
a.startingPositionLeft -
a.startingOffsetLeft +
a.parentOffsetLeft) *
-(a.stellarRatio + b - 1) +
a.startingPositionLeft),
(h = f - a.startingPositionLeft + a.startingOffsetLeft))
: ((f = a.startingPositionLeft), (h = a.startingOffsetLeft)),
this.options.verticalScrolling
? ((g =
(l +
a.verticalOffset +
this.viewportOffsetTop +
a.startingPositionTop -
a.startingOffsetTop +
a.parentOffsetTop) *
-(a.stellarRatio + b - 1) +
a.startingPositionTop),
(i = g - a.startingPositionTop + a.startingOffsetTop))
: ((g = a.startingPositionTop), (i = a.startingOffsetTop)),
this.options.hideDistantElements &&
((o =
!this.options.horizontalScrolling ||
(h + a.width > (a.isFixed ? 0 : k) &&
h <
(a.isFixed ? 0 : k) +
this.viewportWidth +
this.viewportOffsetLeft)),
(n =
!this.options.verticalScrolling ||
(i + a.height > (a.isFixed ? 0 : l) &&
i <
(a.isFixed ? 0 : l) +
this.viewportHeight +
this.viewportOffsetTop))),
o && n
? (a.isHidden &&
(this.options.showElement(a.$element), (a.isHidden = !1)),
this._setPosition(
a.$element,
f,
a.startingPositionLeft,
g,
a.startingPositionTop
))
: a.isHidden ||
(this.options.hideElement(a.$element), (a.isHidden = !0));
for (j = this.backgrounds.length - 1; j >= 0; j--)
(c = this.backgrounds[j]),
(b = c.isFixed ? 0 : 1),
(d = this.options.horizontalScrolling
? (k +
c.horizontalOffset -
this.viewportOffsetLeft -
c.startingOffsetLeft +
c.parentOffsetLeft -
c.startingBackgroundPositionLeft) *
(b - c.stellarRatio) +
"px"
: c.startingValueLeft),
(e = this.options.verticalScrolling
? (l +
c.verticalOffset -
this.viewportOffsetTop -
c.startingOffsetTop +
c.parentOffsetTop -
c.startingBackgroundPositionTop) *
(b - c.stellarRatio) +
"px"
: c.startingValueTop),
m(c.$element, d, e);
}
},
_handleScrollEvent: function() {
var a = this,
b = !1,
c = function() {
a._repositionElements(), (b = !1);
},
d = function() {
b || (o(c), (b = !0));
};
this.$scrollElement.bind("scroll." + this.name, d), d();
},
_startAnimationLoop: function() {
var a = this;
(this._animationLoop = function() {
o(a._animationLoop), a._repositionElements();
}),
this._animationLoop();
}
}),
(a.fn[f] = function(b) {
var c = arguments;
return b === d || "object" == typeof b
? this.each(function() {
a.data(this, "plugin_" + f) ||
a.data(this, "plugin_" + f, new e(this, b));
})
: "string" == typeof b && "_" !== b[0] && "init" !== b
? this.each(function() {
var d = a.data(this, "plugin_" + f);
d instanceof e &&
"function" == typeof d[b] &&
d[b].apply(d, Array.prototype.slice.call(c, 1)),
"destroy" === b && a.data(this, "plugin_" + f, null);
})
: void 0;
}),
(a[f] = function() {
var c = a(b);
return c.stellar.apply(c, Array.prototype.slice.call(arguments, 0));
}),
(a[f].scrollProperty = h),
(a[f].positionProperty = i),
(b.Stellar = e);
})(jQuery, this, document);
function changeNavLink(e) {
$(document).ready(function() {
$(e).addClass("active");
});
}
$(document).ready(function() {
function t(e, a) {
(a = 0 < a ? a : 1500),
console.log(resurs.navOffset),
$("html, body")
.stop()
.animate(
{ scrollTop: e.offset().top - resurs.navOffset },
a,
"easeInOutExpo"
);
}
(window.resurs = window.resurs || {}),
(window.resurs.navOffset = $(".navbar").height()),
$("#carousel-gallery").owlCarousel({
loop: !0,
responsive: {
10: { items: 1, dots: !1, nav: !0 },
640: { items: 2 },
768: { items: 3 },
1100: { items: 4 }
},
smartSpeed: 800,
dots: !0,
dotsSpeed: 150,
autoplay: 4e3,
autoplayHoverPause: !0,
navText: [
' ',
' '
]
}),
$("body").delegate(".show-more", "click", function() {
var a = $(this);
a.parent()
.find("div.more-info")
.slideToggle("slow", function() {
var e = a.text().toUpperCase();
(e = "ПОДРОБНЕЕ" === e ? "Свернуть" : "Подробнее"), a.text(e);
});
}),
$("body").delegate(".overlay-show", "click", function() {
var e = $(this),
a = e.parent(),
t = e.find(">span"),
i = a.find("div.overlay-block-tile");
if (a.hasClass("overlay-hidden")) {
var n = a.outerHeight();
a.data("height", n),
a.animate({ height: a[0].scrollHeight + e.outerHeight() }, 1e3),
i.animate({ opacity: 1 }, 1e3),
t.text("Свернуть");
} else a.animate({ height: a.data("height") }, 1e3), i.animate({ opacity: 0 }, 1e3), t.text("Показать все альбомы"), a.removeData("height");
a.toggleClass("overlay-hidden"), i.toggleClass("overlay-tile-hidden");
}),
$("#carousel-gallery a").on("click", function() {
return !1;
}),
$(function() {
$("a.page-scroll").bind("click", function(e) {
var a = $(this);
t($(a.attr("href"))), e.preventDefault();
});
}),
$("body").scrollspy({
target: ".navbar-fixed-top",
offset: resurs.navOffset + 5
}),
$("#clients .logo").click(function() {
return !1;
}),
new WOW({ mobile: !1 }).init();
var i,
n,
s,
o,
e,
a,
l,
c,
r = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (
r.Android() || r.BlackBerry() || r.iOS() || r.Opera() || r.Windows()
);
}
};
jQuery(document).ready(function() {
r.any() || $(window).stellar();
}),
(i = $(".goods")),
(n = i.find(".goods__row .height")),
(s = $(".goods__item_descr")),
(o =
' Развернуть '),
s.hide(),
n
.find("img")
.one("load", function() {
var e = n.height(),
a = 0.3 * e;
i.after(
'' +
o +
"
"
),
i.addClass("is-closed"),
i.height(e + 1 * a),
i.find(":after").height(1 * a),
$(".goods__show-all .btn").on("click", function() {
$(this)
.parent()
.toggleClass("is-opened"),
i.toggleClass("is-closed"),
i.hasClass("is-closed")
? ($(this).html(o),
i.stop().animate({ height: e + 1 * a }, 300),
s.slideUp(),
t($("#goods"), 500))
: ($(this).html(
' Свернуть '
),
i.height("auto"),
s.slideDown());
});
})
.each(function() {
this.complete && $(this).load();
}),
(e = $("#schema")),
(a = e.find(".container")),
(l = e.data("height") || 1900),
(c =
' Развернуть '),
$(
'"
).insertBefore(e.find(".schema-description")),
e.addClass("is-closed"),
a.height(l),
$(".schemas__show-all .btn").on("click", function() {
e.toggleClass("is-closed"),
e.hasClass("is-closed")
? ($(this).html(c),
a.animate({ height: l }, 500),
t($("#schema"), 200))
: ($(this).html(
' Свернуть '
),
a.height("auto"));
});
var d = $("#counter-collection-slider");
function f(e) {
$(".toOwl").each(function() {
$(this).removeClass("active"),
$(this).attr("data-owl") == e.item.index && $(this).addClass("active");
}),
$(".collection-mobile > div").each(function() {
$(this).removeClass("active"),
$(this).attr("data-owl") == e.item.index &&
$(this).addClass("active");
});
}
d.owlCarousel({
responsive: { 10: { items: 1 } },
smartSpeed: 300,
dots: !1,
dotsSpeed: 150,
autoplay: !1,
autoHeight: !0,
navText: [
' ',
' '
],
onChanged: f,
onInitialized: f
}),
$(".toOwl, .collection-mobile > div").on("click", function() {
var e = $(this).data("owl");
d.trigger("to.owl.carousel", [e, 200]),
$(this).hasClass("toOwlScroll") && t($("#counter-collection"), 500);
}),
$(".collection-mobile h2").on("click", function() {
$(".collection-mobile > div").removeClass("active"),
$(this)
.parent()
.parent()
.addClass("active"),
t(
$(this)
.parent()
.parent(),
500
);
}),
$(window).resize(function() {
window.resurs.navOffset = $(".navbar").height();
});
}),
(function(e, a, t) {
(a[t] = a[t] || []).push(function() {
try {
a.yaCounter31137016 = new Ya.Metrika({
id: 31137022426,
clickmap: !0,
trackLinks: !0,
accurateTrackBounce: !0,
webvisor: !0,
trackHash: !0
});
} catch (e) {}
});
var i = e.getElementsByTagName("script")[0],
n = e.createElement("script"),
s = function() {
i.parentNode.insertBefore(n, i);
};
(n.type = "text/javascript"),
(n.async = !0),
(n.src = ""),
"[object Opera]" == a.opera
? e.addEventListener("DOMContentLoaded", s, !1)
: s();
})(document, window, ""),
(function() {
var e = document.createElement("script");
(e.type = "text/javascript"), (e.async = !0), (e.src = "");
var a = document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(e, a);
})(),
(function(e, a, t, i, n, s, o) {
(e.G = n),
(e.ga =
e.ga ||
function() {
(e.ga.q = e.ga.q || []).push(arguments);
}),
(e.ga.l = 1 * new Date()),
(s = a.createElement(t)),
(o = a.getElementsByTagName(t)[0]),
(s.async = 1),
(s.src = ""),
o.parentNode.insertBefore(s, o);
})(window, document, "script", 0, "ga"),
ga("create", "UA-70251352-1", "auto"),
ga("send", "pageview");