/*!
* Isotope PACKAGED v3.0.6
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* https://isotope.metafizzy.co
* Copyright 2010-2018 Metafizzy
*/
function initJobAlertLoc() {
var t, e, i = $("#alerts-location"), n = i.attr("placeholder");
i.length > 0 && (t = function(t) {
var e;
return t.loading ? t.text : (e = "",
e = " ' + d.dayNamesShort[f] + " "),
6 === f && d.startWeekOnMonday && p.push('' + d.dayNamesShort[0] + " ")
}
dt = new Date(e,i,1);
var g = dt.getDay();
for (d.startWeekOnMonday && (g = dt.getDay() - 1),
g < 0 && (g = 6),
f = g; f > 0; f--)
p.push('')
}
for (dayCount = 1; dayCount <= u; dayCount++) {
var m = "";
day > 0 && dayCount === day && e === c && (m = "today"),
p.push('' + dayCount + " ")
}
$eventsCalendarDaysList.append(p.join("")),
n.css("height", o.height() + "px")
}
function n(t) {
var e = t.length
, i = t.charAt(e - 1);
return t + "" + (2 === e && "1" === t.charAt(0) ? "th" : "1" === i ? "st" : "2" === i ? "nd" : "3" === i ? "rd" : "th") + ""
}
function s(t, e, i, n, s) {
t = t || 0,
e = e || "",
n = n || "";
if (void 0 !== i)
i = i;
else
i = "";
h.wrap.find(".eventsCalendar-loading").fadeIn(),
d.jsonData ? (d.cacheJson = !0,
h.eventsJson = d.jsonData,
o(h.eventsJson, t, e, i, n, s)) : d.cacheJson && s ? o(h.eventsJson, t, e, i, n, s) : $.getJSON(d.eventsjson + "?limit=" + t + "&year=" + e + "&month=" + i + "&day=" + n, function(r) {
d.tag_Filter && (r = r.filter(function(t) {
return t.tag_list.indexOf(d.tag_FilterName) >= 0
})),
d.tag_WithoutFilter && (r = r.filter(function(t) {
return t.tag_list.indexOf(d.tag_FilterName) < 0
})),
h.eventsJson = r,
o(h.eventsJson, t, e, i, n, s)
}).error(function() {
a("error getting json: ")
}),
n > "" && (h.wrap.find(".current").removeClass("current"),
h.wrap.find("#dayList_" + n).addClass("current"))
}
function o(t, i, s, o, r, a) {
directionLeftMove = "-=" + h.directionLeftMove,
eventContentHeight = "auto",
subtitle = h.wrap.find(".eventsCalendar-list-wrap .eventsCalendar-subtitle"),
a ? ("" != r ? subtitle.html(d.txt_SpecificEvents_prev + n(r) + " " + d.monthNames[o] + " " + d.txt_SpecificEvents_after) : subtitle.html(d.txt_SpecificEvents_prev + d.monthNames[o] + " " + d.txt_SpecificEvents_after),
"prev" === a ? directionLeftMove = "+=" + h.directionLeftMove : "day" !== a && "month" !== a || (directionLeftMove = "+=0",
eventContentHeight = 0)) : (subtitle.html(d.txt_NextEvents),
eventContentHeight = "auto",
directionLeftMove = "-=0"),
h.wrap.find(".eventsCalendar-list").animate({
opacity: d.moveOpacity,
left: directionLeftMove,
height: eventContentHeight
}, d.moveSpeed, function() {
h.wrap.find(".eventsCalendar-list").css({
left: 0,
height: "auto"
}).hide();
var n = [];
if ((t = $(t).sort(e)).length) {
var a = "";
d.showDescription || (a = "hidden");
var l = "_self";
d.openEventInNewWindow && (l = "_target");
var c = 0;
$.each(t, function(t, e) {
if ("human" == d.jsonDateFormat) {
var u = e.date.split(" ")
, p = u[0].split("-")
, f = u[1].split(":")
, g = p[0]
, m = parseInt(p[1]) - 1
, v = parseInt(p[2])
, y = parseInt(m) + 1
, w = f[0]
, _ = f[1]
, b = f[2];
p = new Date(g,m,v,w,_,b)
} else {
g = (p = new Date(parseInt(e.date))).getFullYear(),
m = p.getMonth(),
v = p.getDate(),
y = m + 1,
w = p.getHours(),
_ = p.getMinutes();
null != d.Timezone && (p = p.toLocaleString("en-GB", {
timeZone: d.Timezone
}),
v = parseInt(p.substring(0, 2)),
m = parseInt(p.substring(3, 5)) - 1,
g = parseInt(p.substring(6, 10)),
y = m + 1)
}
if (parseInt(_) <= 9 && (_ = "0" + parseInt(_)),
(0 === i || i > c) && !(!1 !== o && o != m || "" != r && r != v || "" != s && s != g))
if (!1 === o && p < new Date)
;
else {
eventStringDate = v + "/" + y + "/" + g;
var x = '' + S + '" + x + ' "),
c++
}
g == h.wrap.attr("data-current-year") && m == h.wrap.attr("data-current-month") && h.wrap.find(".currentMonth .eventsCalendar-daysList #dayList_" + parseInt(v)).addClass("dayWithEvents")
})
}
n.length || n.push(' "),
h.wrap.find(".eventsCalendar-loading").hide(),
h.wrap.find(".eventsCalendar-list").html(n.join("")),
h.wrap.find(".eventsCalendar-list").animate({
opacity: 1,
height: "toggle"
}, d.moveSpeed)
}),
l()
}
function r() {
h.wrap.find(".arrow").click(function(t) {
if (t.preventDefault(),
$(this).hasClass("next")) {
i("next");
var e = "-=" + h.directionLeftMove
} else {
i("prev");
e = "+=" + h.directionLeftMove
}
h.wrap.find(".eventsCalendar-monthWrap.oldMonth").animate({
opacity: d.moveOpacity,
left: e
}, d.moveSpeed, function() {
h.wrap.find(".eventsCalendar-monthWrap.oldMonth").remove()
})
})
}
function a(t) {
h.wrap.find(".eventsCalendar-list-wrap").html("" + t + " " + d.eventsjson + "")
}
function l() {
h.directionLeftMove = h.wrap.width(),
h.wrap.find(".eventsCalendar-monthWrap").width(h.wrap.width() + "px"),
h.wrap.find(".eventsCalendar-list-wrap").width(h.wrap.width() + "px")
}
var d = $.extend({}, $.fn.eventCalendar.defaults, t)
, h = {
wrap: "",
directionLeftMove: "300",
eventsJson: {}
};
this.each(function() {
h.wrap = $(this),
h.wrap.addClass("eventCalendar-wrap").append(""),
d.eventsScrollable && h.wrap.find(".eventsCalendar-list-content").addClass("scrollable"),
l(),
$(window).resize(function() {
l()
}),
i("current"),
s(d.eventsLimit, !1, !1, !1, !1),
r(),
h.wrap.on("click", ".eventsCalendar-day a", function(t) {
t.preventDefault(),
s(!1, h.wrap.attr("data-current-year"), h.wrap.attr("data-current-month"), $(this).parent().attr("rel"), "day")
}),
h.wrap.on("click", ".monthTitle", function(t) {
t.preventDefault();
var e = h.wrap.attr("data-current-year")
, i = h.wrap.attr("data-current-month");
s(d.eventsLimit, e, i, !1, "month")
})
}),
h.wrap.find(".eventsCalendar-list").on("click", ".eventTitle", function(t) {
if (!d.showDescription) {
t.preventDefault();
var e = $(this).parent().find(".eventDesc");
if (!e.find("a").size()) {
var i = $(this).attr("href")
, n = $(this).attr("target");
e.append('' + d.txt_GoToEventUrl + "")
}
}
})
}
,
$.fn.eventCalendar.defaults = {
eventsjson: "js/events.json",
eventsLimit: 4,
monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
txt_noEvents: "There are no events on this date",
txt_SpecificEvents_prev: "",
txt_SpecificEvents_after: "Events:",
txt_next: "next",
txt_prev: "prev",
tagAsDesc: !1,
tag_Filter: !1,
tag_WithoutFilter: !1,
tag_FilterName: "",
txt_NextEvents: "Next Events",
txt_GoToEventUrl: "See the event",
showDayAsWeeks: !0,
startWeekOnMonday: !0,
showDayNameInCalendar: !0,
showDescription: !1,
onlyOneDescription: !0,
openEventInNewWindow: !1,
eventsScrollable: !1,
jsonDateFormat: "timestamp",
moveSpeed: 500,
moveOpacity: .15,
jsonData: "",
cacheJson: !0,
Timezone: null
},
$(document).ready(function() {
$("#template-branch_100 .branch-discipline").length > 0 && ($("body.edit").length || (str = $(".branch-discipline").html(),
"" === $.trim(str) && $(".branch-discipline").hide()))
}),
$(document).ready(function() {
function t(t, e) {
var i;
return function() {
function n() {
t(),
i = null
}
i && clearTimeout(i),
setTimeout(n, e || 100)
}
}
function e(t) {
var e = "";
for (var i in t)
e += t[i];
return e
}
function i() {
var t = $(this).attr("style");
t && -1 !== t.indexOf("height: 0px") ? $(this).prev().is("header") && $(this).prev().hide(400) : $(this).prev().is("header") && $(this).prev().show(400)
}
if ($("#search.filters").length > 0) {
var n, s, o = $(".items").isotope({
itemSelector: ".item",
columnWidth: ".item",
percentPosition: !0,
layoutMode: "fitRows",
filter: function() {
var t = $(this)
, e = !n || t.text().match(n)
, i = !s || t.is(s);
return e && i
}
});
$(".filter-buttons").on("click", "button", function() {
var t = $(this).attr("data-filter");
o.isotope({
filter: t
})
}),
$(".filter-select").on("change", function() {
s = $(this).val(),
console.log(s),
o.isotope()
});
var r = {};
$(".combo").on("change", function(t) {
var i = $(t.target).attr("value-group");
r[i] = t.target.value;
var n = e(r);
o.isotope({
filter: n
})
});
var a = $("#quicksearch").keyup(t(function() {
n = new RegExp(a.val(),"gi"),
o.isotope(),
console.log(s)
}));
$(".consultants.trim-title").exists() && o.on("arrangeComplete", i)
}
}),
$("#events-calendar").length && $("#events-calendar > div").eventCalendar({
eventsjson: "/api/v1/events.json?per_page=100",
eventsLimit: 3,
moveOpacity: 0,
showDescription: !1
}),
$("#events-calendar-mini").length && $("#events-calendar-mini > div").eventCalendar({
eventsjson: "/api/v1/events.json?per_page=100",
eventsLimit: 10,
moveOpacity: 1,
showDescription: !1
}),
document.addEventListener("DOMContentLoaded", function() {
function t(t) {
function e() {
function e(t) {
for (var e = [], i = 0; i < t.length; i++) {
var n = t[i]
, s = n.getBoundingClientRect().top - document.body.getBoundingClientRect().top
, o = n.clientHeight || n.offsetHeight
, r = window.pageYOffset
, a = window.innerHeight;
s + o > r + .1 * a && s < r + a && (e.push(n),
t.splice(i, 1),
i--)
}
return e
}
if (i.length > 0) {
var n = e(i);
if (n.length > 0) {
for (var s = 0; s < n.length; s++) {
var o = new Image;
o.onload = (r = s,
o.src = n[r].getAttribute("virtual-image"),
void n[r].appendChild(o))
}
"function" == typeof t && t()
}
}
var r
}
var i = Array.prototype.slice.call(document.querySelectorAll("[virtual-image]"));
return window.onscroll = e,
window.onload = e,
e()
}
$(document).ready(function() {
function t() {
function t() {
event.preventDefault(),
$("body").removeClass("show-video-modal overflow-hidden"),
$("#vimeo").attr("src", "")
}
$(".js-trigger-video-modal").on("click", function(t) {
t.preventDefault();
var e = "https://player.vimeo.com/video/" + $(this).attr("data-vimeo-id");
$("#vimeo").attr("src", e),
$("body").addClass("show-video-modal overflow-hidden")
}),
$("body").on("click", ".close-video-modal, .video-modal .overlay", function() {
t()
}),
$("body").keyup(function(e) {
27 == e.keyCode && t()
})
}
t()
}),
$(window).load(function() {
t(objectFitImages)
}),
$("#video-modal-vimeo").append(''),
$(".vimeo-video").click(function() {
$(this).attr("id");
var t = $(this).attr("data-video-id")
, e = /(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/
, i = t.match(e);
i && i[2] && i[2],
$(".video-modal-container").html(''),
$(".video-modal-close, .video-modal-overlay").click(function() {
$(".video-modal-container").empty(),
$("#video-modal-vimeo").removeClass("launched")
}),
$("#video-modal-vimeo").addClass("launched")
})
}),
function() {
var t = $("#latest-blogs_100 .items__slider").attr("data-slides")
, e = "true" === $("#latest-blogs_100 .items__slider").attr("data-arrows")
, i = "true" === $("#latest-blogs_100 .items__slider").attr("data-dots");
$("#latest-blogs_100 .items__slider").slick({
slidesToShow: t,
slidesToScroll: 1,
arrows: e,
dots: i,
responsive: [{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
}, {
breakpoint: 767,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
})
}(),
document.addEventListener("DOMContentLoaded", function() {
var t = "true" === $("#latest-jobs_100 .jobs__slider").attr("data-dots")
, e = "true" === $("#latest-jobs_100 .jobs__slider").attr("data-arrows")
, i = $("#latest-jobs_100 .jobs__slider").attr("data-slides")
, n = $("#latest-jobs_100 .jobs__slider").attr("data-scroll")
, s = $("#latest-jobs_100 .jobs__slider").attr("data-speed")
, o = "true" === $("#latest-jobs_100 .jobs__slider").attr("data-autoplay")
, r = parseInt(n, 10);
$("#latest-jobs_100 .jobs__slider").slick({
infinite: !0,
autoplay: o,
autoplaySpeed: s,
adaptiveHeight: !1,
dots: t,
arrows: e,
slidesToShow: i,
margin: 20,
prevArrow: $(".job-prev-slide"),
nextArrow: $(".job-next-slide"),
slidesToScroll: r,
responsive: [{
breakpoint: 1280,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
}, {
breakpoint: 999,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}, {
breakpoint: 640,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
})
}),
document.addEventListener("DOMContentLoaded", function() {
$("#latest-testimonials_100").length > 0 && $(".testimonial__slider").each(function() {
var t = $(this, ".testimonial__slider").attr("data-name")
, e = "true" === $(this, ".testimonial__slider").attr("data-arrows")
, i = "true" === $(this, ".testimonial__slider").attr("data-dots")
, n = Number($(this, ".testimonial__slider").attr("data-slides"))
, s = "true" === $(this, ".testimonial__slider").attr("data-navarrow")
, o = "true" === $(this, ".testimonial__slider").attr("data-swipe")
, r = $(this, ".testimonial__slider").attr("data-speed")
, a = "true" === $(this, ".testimonial__slider").attr("data-autoplay");
$(this, '[data-name="' + t + '"]').slick({
adaptiveHeight: !0,
slidesToScroll: n,
slidesToShow: n,
arrows: e,
autoplaySpeed: r,
prevArrow: s ? $(this, ".prev-slide") : "",
nextArrow: s ? $(this, ".next-slide") : "",
dots: i,
fade: !(n > 1),
swipe: o,
autoplay: a,
responsive: [{
breakpoint: 1200,
settings: {
slidesToScroll: n <= 1 ? 1 : 2,
slidesToShow: n <= 1 ? 1 : 2
}
}, {
breakpoint: 768,
settings: {
slidesToScroll: 1,
slidesToShow: 1,
fade: !0
}
}]
})
})
}),
document.addEventListener("DOMContentLoaded", function() {
function t(t) {
function e() {
function e(t) {
for (var e = [], i = 0; i < t.length; i++) {
var n = t[i]
, s = n.getBoundingClientRect().top - document.body.getBoundingClientRect().top
, o = n.clientHeight || n.offsetHeight
, r = window.pageYOffset
, a = window.innerHeight;
s + o > r + .1 * a && s < r + a && (e.push(n),
t.splice(i, 1),
i--)
}
return e
}
if (i.length > 0) {
var n = e(i);
if (n.length > 0) {
for (var s = 0; s < n.length; s++) {
var o = new Image;
o.onload = (r = s,
o.src = n[r].getAttribute("virtual-image"),
void n[r].appendChild(o))
}
"function" == typeof t && t()
}
}
var r
}
var i = Array.prototype.slice.call(document.querySelectorAll("[virtual-image]"));
return window.onscroll = e,
window.onload = e,
e()
}
document.querySelectorAll("section.gen-content"),
$(document).ready(function() {
function t() {
function t() {
event.preventDefault(),
$("body").removeClass("show-video-modal overflow-hidden"),
$("#vimeo").attr("src", "")
}
$(".js-trigger-video-modal").on("click", function(t) {
t.preventDefault();
var e = "https://player.vimeo.com/video/" + $(this).attr("data-vimeo-id");
$("#vimeo").attr("src", e),
$("body").addClass("show-video-modal overflow-hidden")
}),
$("body").on("click", ".video-modal-close, .video-modal-overlay", function() {
t()
}),
$("body").keyup(function(e) {
27 == e.keyCode && t()
})
}
t()
}),
$(window).load(function() {
t(objectFitImages)
}),
$("#video-modal-vimeo").append(''),
$(".vimeo-video").click(function() {
$(this).attr("id");
var t = $(this).attr("data-video")
, e = /(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/
, i = t.match(e);
i && i[2] && i[2],
$(".video-modal-container").html(''),
$(".video-modal-close, .video-modal-overlay").click(function() {
$(".video-modal-container").empty(),
$("#video-modal-vimeo").removeClass("launched")
}),
$("#video-modal-vimeo").addClass("launched")
})
}),
function() {
var t = "true" === $("#timeline_100 .timeline__slider").attr("data-autoplay")
, e = "true" === $("#timeline_100 .timeline__slider").attr("data-arrows")
, i = "true" === $("#timeline_100 .timeline__slider").attr("data-dots");
document.addEventListener("DOMContentLoaded", function() {
$("#timeline_100").length > 0 && ($(".timeline__slider").slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: e,
dots: i,
infinite: t,
swipe: !0,
asNavFor: ".slider_nav-thumbs"
}),
$(".slider_nav-thumbs").slick({
slidesToShow: 1,
slidesToScroll: 1,
asNavFor: ".timeline__slider",
dots: !1,
arrows: !0,
infinite: !1,
focusOnSelect: !0
}),
$(".slider_nav-thumbs .slick-slide").removeClass("slick-active"),
$(".slider_nav-thumbs .slick-slide").eq(0).addClass("slick-active"),
$("#timeline_100 .timeline__slider").on("beforeChange", function(t, e, i, n) {
var s = n;
$(".slider_nav-thumbs .slick-slide").removeClass("slick-active"),
$(".slider_nav-thumbs .slick-slide").eq(s).addClass("slick-active")
}))
})
}(),
window.addEventListener("load", function() {
$("#header_100 .dropdown").hover(function() {
$(this).find("> .dropdown-list").fadeIn()
}, function() {
$(this).find("> .dropdown-list").fadeOut()
}),
$(window).scrollTop() > 100 ? $("#header_100").addClass("sticky") : $("#header_100").removeClass("sticky"),
$(window).scroll(function() {
$(window).scrollTop() > 100 ? $("#header_100").addClass("sticky") : $("#header_100").removeClass("sticky")
})
}),
document.addEventListener("DOMContentLoaded", function() {
if ($("#profile-preview #img-upload").length > 0)
new Dropzone("#img-upload form",{
method: "put",
paramName: "user[avatar]",
dictDefaultMessage: "Drag-and-drop your CV here, or click to select the file",
createImageThumbnails: !1,
clickable: "#img-upload",
init: function() {
this.on("success", function() {
location.reload()
})
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
$("#profile-preview .profile-bar #bar").length > 0 && $.ajax({
url: "/dashboard/profile_progress",
dataType: "json",
success: function(t) {
console.log(t),
result = t.percentage_completed + "%",
$("#profile-preview .profile-bar #bar").css("width", result),
$("#profile-preview .profile-bar #percent").css("left", result),
$("#profile-preview .profile-bar #percent").text(result)
},
error: function() {
console.log("An error occurred.")
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
if ($(".drag-drop #dropzone.documents").length > 0)
new Dropzone("#dropzone.documents > form",{
method: "put",
paramName: "user[documents][]",
dictDefaultMessage: "Drag-and-drop your CV here, or click to select the file",
clickable: "#dropzone.documents",
init: function() {
this.on("success", function() {
location.reload()
})
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
if ($(".drag-drop #dropzone.cover-letters").length > 0)
new Dropzone("#dropzone.cover-letters > form",{
method: "put",
paramName: "user[cover_letters][]",
dictDefaultMessage: "Drag-and-drop your CV here, or click to select the file",
clickable: "#dropzone.cover-letters",
init: function() {
this.on("success", function() {
0 === this.getUploadingFiles().length && 0 === this.getQueuedFiles().length ? localStorage.setItem("cluploaded", "true") : localStorage.setItem("cluploaded", "false"),
location.reload()
})
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
if ($(".drag-drop #dropzone.cvs-drop").length > 0)
new Dropzone("#dropzone.cvs-drop > form",{
method: "put",
paramName: "user[cvs][]",
dictDefaultMessage: "Drag-and-drop your CV here, or click to select the file",
clickable: "#dropzone.cvs-drop",
init: function() {
this.on("success", function() {
0 === this.getUploadingFiles().length && 0 === this.getQueuedFiles().length ? localStorage.setItem("cvuploaded", "true") : localStorage.setItem("cvuploaded", "false"),
location.reload()
})
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
$("#suggested-jobs .suggested-jobs").length > 0 && $(".suggested-jobs-wrapper").slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: !0,
arrows: !0,
autoplaySpeed: 7e3,
dots: !0,
vertical: !0,
verticalSwiping: !0,
responsive: [{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
}]
})
}),
document.addEventListener("DOMContentLoaded", function() {
$("#saved-jobs .saved-jobs").length > 0 && $(".saved-jobs-wrapper").slick({
slidesToShow: 2,
slidesToScroll: 1,
autoplay: !0,
arrows: !0,
autoplaySpeed: 7e3,
dots: !0,
vertical: !0,
verticalSwiping: !0,
responsive: [{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
}]
})
}),
document.addEventListener("DOMContentLoaded", function() {
initJobAlertLoc(),
createJobAlert(),
deleteJobAlert(),
updateEmailFrequency()
}),
$(document).ajaxComplete(function() {
deleteJobAlert()
}),
document.addEventListener("DOMContentLoaded", function() {
$("#my-applications-001 .my-applications-list").length > 0 && $(".applied-list-jobs-wrapper").slick({
slidesToShow: 3,
slidesToScroll: 1,
autoplay: !0,
autoplaySpeed: 7e3,
vertical: !0,
verticalSwiping: !0,
infinite: !1,
arrows: !0,
dots: !0,
nextArrow: '',
responsive: [{
breakpoint: 600,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
}]
})
}),
$(".requests-title").on("click", function() {
$(".rtbf-wrapper .rtbf-description").toggleClass("minimize"),
$(".requests-title").toggleClass("active")
}),
$(".requests-title-sar").on("click", function() {
$(".rtbf-wrapper-sar .rtbf-description-sar").toggleClass("minimize"),
$(".requests-title-sar").toggleClass("active")
}),
$("#flash-notice.alert").fadeTo(7e3, 500).slideUp(500, function() {
$("#flash-notice.alert").slideUp(500)
}),
$(document).ajaxComplete(function() {
jQuery(document).ready(function() {
jQuery(".tabs .tab-links a").on("click", function(t) {
var e = jQuery(this).attr("href");
jQuery(".tabs " + e).show().siblings().hide(),
jQuery(this).parent("li").addClass("active").siblings().removeClass("active"),
t.preventDefault()
})
})
});
var main = function() {
$(".add-new").click(function() {
$(".dropdown-menu").toggle()
})
};
if ($(document).ready(main),
document.addEventListener("DOMContentLoaded", function() {
var t = $("#latest-consultants_100 .team__slider").attr("data-slides")
, e = "true" === $("#latest-consultants_100 .team__slider").attr("data-arrows")
, i = "true" === $("#latest-consultants_100 .team__slider").attr("data-autoplay")
, n = "true" === $("#latest-consultants_100 .team__slider").attr("data-dots");
$("#latest-consultants_100 .team__slider").slick({
slidesToShow: t,
slidesToScroll: 4,
infinite: !0,
arrows: e,
autoplay: i,
autoplaySpeed: 6e3,
prevArrow: $("#latest-consultants_100 .prev-tslide"),
nextArrow: $("#latest-consultants_100 .next-tslide"),
dots: n,
responsive: [{
breakpoint: 1170,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}, {
breakpoint: 767,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
})
}),
$("#stats_100").length) {
var a = 0
, stillInView = 0;
$(window).scroll(function() {
var t = $("#stats_100").offset().top - window.innerHeight
, e = t + $("#stats_100").outerHeight(!0) + window.innerHeight;
($(this).scrollTop() > e || $(this).scrollTop() < t) && (stillInView = 0),
0 === a && 0 === stillInView && $(this).scrollTop() > t && ($(".count-up").children().each(function() {
let t = $(this)
, e = t.text().replace(",", "");
$.isNumeric(e) && jQuery({
Counter: 0
}).animate({
Counter: e
}, {
duration: 2e3,
easing: "swing",
step: function() {
t.text(Math.ceil(this.Counter).toLocaleString("en"))
},
complete: function() {
t.text(Number(e).toLocaleString("en")),
stillInView = 1
}
})
}),
a = 1)
})
}
window.addEventListener("load", function() {
const t = document.querySelectorAll("#latest_clients_220 .clients__slider");
null != t && $(t).each(function() {
let t = .5
, e = null
, i = !1;
const n = () => {
i || (e.slides && (e.x = (e.x - t) % e.slideableWidth,
e.selectedIndex = e.dragEndRestingSelect(),
e.updateSelectedSlide(),
e.settle(e.x)),
window.requestAnimationFrame(n))
}
, s = () => {
i = !0
}
, o = () => {
i && (i = !1,
window.requestAnimationFrame(n))
}
;
(e = new Flickity(this,{
autoPlay: !1,
prevNextButtons: !1,
pageDots: !1,
draggable: !0,
wrapAround: !0,
selectedAttraction: .015,
friction: .25
})).x = 0,
this.addEventListener("mouseenter", s, !1),
this.addEventListener("focusin", s, !1),
this.addEventListener("mouseleave", o, !1),
this.addEventListener("focusout", o, !1),
n()
})
}),
document.addEventListener("DOMContentLoaded", function() {
var t = Number($("#latest-clients_100 .clients__slider").attr("data-slides"))
, e = "true" === $("#latest-clients_100 .clients__slider").attr("data-arrows")
, i = "true" === $("#latest-clients_100 .clients__slider").attr("data-dots");
$("#latest-clients_100 .clients__slider").slick({
slidesToShow: t < 1 ? 1 : t,
slidesToScroll: 1,
autoplay: !0,
infinite: !0,
arrows: e,
dots: i,
responsive: [{
breakpoint: 1025,
settings: {
slidesToShow: t > 4 ? 4 : t,
slidesToScroll: 1
}
}, {
breakpoint: 992,
settings: {
slidesToShow: t > 3 ? 3 : t,
slidesToScroll: 1
}
}, {
breakpoint: 769,
settings: {
slidesToShow: t > 2 ? 2 : t,
slidesToScroll: 1
}
}, {
breakpoint: 576,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
})
}),
document.addEventListener("DOMContentLoaded", function() {
function t() {
var t = document.querySelectorAll("#latest-articles_200 .item")
, e = window.innerHeight
, i = 150;
t.forEach( (t, n) => {
t.getBoundingClientRect().top < e - i ? setTimeout(function() {
t.classList.add("active")
}, 500 * n) : t.classList.remove("active")
}
)
}
window.addEventListener("scroll", t),
t()
}),
document.addEventListener("DOMContentLoaded", function() {
const t = document.querySelector("#popupForm .modal-body");
document.querySelectorAll('[data-target="#popupForm"]').forEach(e => {
e.addEventListener("click", function() {
const i = e.closest("#latest-articles_200 .items .item__content").querySelector(".item__secondary-body");
t.innerHTML = "",
i ? t.appendChild(i.cloneNode(!0)) : t.innerHTML = "
" + t.name + "
",
t.hierarchy && (e += "" + t.hierarchy + "
"),
e)
}
,
e = function(t) {
return t.name || t.text
}
,
i.select2({
placeholder: n,
ajax: {
dataType: "json",
url: "/api/v1/locations",
delay: 500,
data: function(t) {
return {
name: t.term,
page: t.page
}
},
processResults: function(t, e) {
return e.page = e.page || 1,
{
results: t.data,
pagination: {
more: 20 * e.page < t.total_count
}
}
},
cache: !0
},
escapeMarkup: function(t) {
return t
},
minimumInputLength: 3,
templateResult: t,
templateSelection: e
}))
}
function updateEmailFrequency() {
var t = $("#set-up-job-alerts .job-alerts-mail form")
, e = $(".alert-frequency input");
t.length > 0 && $(".alert-frequency label").click(function() {
label_selected = $(this),
checkbox_selected = $(this).parent().find("input"),
e.not(checkbox_selected).prop("checked", !1),
$(".alert-frequency label").removeClass("active"),
label_selected.addClass("active");
var i = t.serialize() + "&" + checkbox_selected.attr("name") + "=" + checkbox_selected.val();
$.ajax({
type: "patch",
url: t.attr("action"),
dataType: "json",
data: i,
success: function() {},
error: function() {
console.log("An error occurred."),
checkbox_selected.prop("checked", !1),
label_selected.removeClass("active")
}
})
})
}
function deleteJobAlert() {
$(".delete-alert").on("click", function(t) {
t.stopImmediatePropagation(),
t.preventDefault(),
url = $(this).attr("href"),
job_alert = $(this).parent(),
$.ajax({
type: "delete",
url: url,
dataType: "script",
success: function() {
job_alert.remove()
},
error: function() {
console.log("error")
}
})
})
}
function createJobAlert() {
function t(t) {
var e = $("#job-alerts-list-tag");
$("#job-alerts-list-tag .flash-notice").hide();
var i = t.id
, n = "";
n += "" + t.title + "",
n += "",
n += "
",
e.prepend(n)
}
if ($("#create-job-alert").length > 0) {
var e = $("#create-job-alert form")
, i = $("#create-job-alert form button");
e.submit(function(n) {
n.preventDefault(),
i.prop("disabled", !0);
var s = e.serialize();
$.ajax({
type: e.attr("method"),
url: e.attr("action"),
dataType: "json",
data: s,
success: function(e) {
t(e),
i.prop("disabled", !1),
$("#create-job-alert form")[0].reset()
},
error: function() {
console.log("An error occurred.")
}
})
})
}
}
function myFunction() {
document.getElementById("myForm").reset()
}
function openNav() {
document.getElementById("myNav").style.width = "auto"
}
function closeNav() {
document.getElementById("myNav").style.width = "0%"
}
function openCardNav() {
document.getElementById("mycardNav").style.width = "auto"
}
function closeCardNav() {
document.getElementById("mycardNav").style.width = "0%"
}
function myFunction() {
var t = document.getElementById("myTopnav");
"topnav" === t.className ? t.className += " responsive" : t.className = "topnav"
}
!function(t, e) {
"function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery)
}(window, function(t, e) {
"use strict";
function i(i, o, a) {
function l(t, e, n) {
var s, o = "$()." + i + '("' + e + '")';
return t.each(function(t, l) {
var d = a.data(l, i);
if (d) {
var h = d[e];
if (h && "_" != e.charAt(0)) {
var c = h.apply(d, n);
s = void 0 === s ? c : s
} else
r(o + " is not a valid method")
} else
r(i + " not initialized. Cannot call methods, i.e. " + o)
}),
void 0 !== s ? s : t
}
function d(t, e) {
t.each(function(t, n) {
var s = a.data(n, i);
s ? (s.option(e),
s._init()) : (s = new o(n,e),
a.data(n, i, s))
})
}
(a = a || e || t.jQuery) && (o.prototype.option || (o.prototype.option = function(t) {
a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t))
}
),
a.fn[i] = function(t) {
return "string" == typeof t ? l(this, t, s.call(arguments, 1)) : (d(this, t),
this)
}
,
n(a))
}
function n(t) {
!t || t && t.bridget || (t.bridget = i)
}
var s = Array.prototype.slice
, o = t.console
, r = void 0 === o ? function() {}
: function(t) {
o.error(t)
}
;
return n(e || t.jQuery),
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? module.exports = e() : t.EvEmitter = e()
}("undefined" != typeof window ? window : this, function() {
function t() {}
var e = t.prototype;
return e.on = function(t, e) {
if (t && e) {
var i = this._events = this._events || {}
, n = i[t] = i[t] || [];
return -1 == n.indexOf(e) && n.push(e),
this
}
}
,
e.once = function(t, e) {
if (t && e) {
this.on(t, e);
var i = this._onceEvents = this._onceEvents || {};
return (i[t] = i[t] || {})[e] = !0,
this
}
}
,
e.off = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
var n = i.indexOf(e);
return -1 != n && i.splice(n, 1),
this
}
}
,
e.emitEvent = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
i = i.slice(0),
e = e || [];
for (var n = this._onceEvents && this._onceEvents[t], s = 0; s < i.length; s++) {
var o = i[s];
n && n[o] && (this.off(t, o),
delete n[o]),
o.apply(this, e)
}
return this
}
}
,
e.allOff = function() {
delete this._events,
delete this._onceEvents
}
,
t
}),
function(t, e) {
"function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == typeof module && module.exports ? module.exports = e() : t.getSize = e()
}(window, function() {
"use strict";
function t(t) {
var e = parseFloat(t);
return -1 == t.indexOf("%") && !isNaN(e) && e
}
function e() {}
function i() {
for (var t = {
width: 0,
height: 0,
innerWidth: 0,
innerHeight: 0,
outerWidth: 0,
outerHeight: 0
}, e = 0; e < d; e++) {
t[l[e]] = 0
}
return t
}
function n(t) {
var e = getComputedStyle(t);
return e || a("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),
e
}
function s() {
if (!h) {
h = !0;
var e = document.createElement("div");
e.style.width = "200px",
e.style.padding = "1px 2px 3px 4px",
e.style.borderStyle = "solid",
e.style.borderWidth = "1px 2px 3px 4px",
e.style.boxSizing = "border-box";
var i = document.body || document.documentElement;
i.appendChild(e);
var s = n(e);
r = 200 == Math.round(t(s.width)),
o.isBoxSizeOuter = r,
i.removeChild(e)
}
}
function o(e) {
if (s(),
"string" == typeof e && (e = document.querySelector(e)),
e && "object" == typeof e && e.nodeType) {
var o = n(e);
if ("none" == o.display)
return i();
var a = {};
a.width = e.offsetWidth,
a.height = e.offsetHeight;
for (var h = a.isBorderBox = "border-box" == o.boxSizing, c = 0; c < d; c++) {
var u = l[c]
, p = o[u]
, f = parseFloat(p);
a[u] = isNaN(f) ? 0 : f
}
var g = a.paddingLeft + a.paddingRight
, m = a.paddingTop + a.paddingBottom
, v = a.marginLeft + a.marginRight
, y = a.marginTop + a.marginBottom
, w = a.borderLeftWidth + a.borderRightWidth
, _ = a.borderTopWidth + a.borderBottomWidth
, b = h && r
, x = t(o.width);
!1 !== x && (a.width = x + (b ? 0 : g + w));
var S = t(o.height);
return !1 !== S && (a.height = S + (b ? 0 : m + _)),
a.innerWidth = a.width - (g + w),
a.innerHeight = a.height - (m + _),
a.outerWidth = a.width + v,
a.outerHeight = a.height + y,
a
}
}
var r, a = "undefined" == typeof console ? e : function(t) {
console.error(t)
}
, l = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], d = l.length, h = !1;
return o
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? module.exports = e() : t.matchesSelector = e()
}(window, function() {
"use strict";
var t = function() {
var t = window.Element.prototype;
if (t.matches)
return "matches";
if (t.matchesSelector)
return "matchesSelector";
for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) {
var n = e[i] + "MatchesSelector";
if (t[n])
return n
}
}();
return function(e, i) {
return e[t](i)
}
}),
function(t, e) {
"function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector)
}(window, function(t, e) {
var i = {
extend: function(t, e) {
for (var i in e)
t[i] = e[i];
return t
},
modulo: function(t, e) {
return (t % e + e) % e
}
}
, n = Array.prototype.slice;
i.makeArray = function(t) {
return Array.isArray(t) ? t : null == t ? [] : "object" == typeof t && "number" == typeof t.length ? n.call(t) : [t]
}
,
i.removeFrom = function(t, e) {
var i = t.indexOf(e);
-1 != i && t.splice(i, 1)
}
,
i.getParent = function(t, i) {
for (; t.parentNode && t != document.body; )
if (t = t.parentNode,
e(t, i))
return t
}
,
i.getQueryElement = function(t) {
return "string" == typeof t ? document.querySelector(t) : t
}
,
i.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}
,
i.filterFindElements = function(t, n) {
t = i.makeArray(t);
var s = [];
return t.forEach(function(t) {
if (t instanceof HTMLElement) {
if (!n)
return void s.push(t);
e(t, n) && s.push(t);
for (var i = t.querySelectorAll(n), o = 0; o < i.length; o++)
s.push(i[o])
}
}),
s
}
,
i.debounceMethod = function(t, e, i) {
i = i || 100;
var n = t.prototype[e]
, s = e + "Timeout";
t.prototype[e] = function() {
var t = this[s];
clearTimeout(t);
var e = arguments
, o = this;
this[s] = setTimeout(function() {
n.apply(o, e),
delete o[s]
}, i)
}
}
,
i.docReady = function(t) {
var e = document.readyState;
"complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t)
}
,
i.toDashed = function(t) {
return t.replace(/(.)([A-Z])/g, function(t, e, i) {
return e + "-" + i
}).toLowerCase()
}
;
var s = t.console;
return i.htmlInit = function(e, n) {
i.docReady(function() {
var o = i.toDashed(n)
, r = "data-" + o
, a = document.querySelectorAll("[" + r + "]")
, l = document.querySelectorAll(".js-" + o)
, d = i.makeArray(a).concat(i.makeArray(l))
, h = r + "-options"
, c = t.jQuery;
d.forEach(function(t) {
var i, o = t.getAttribute(r) || t.getAttribute(h);
try {
i = o && JSON.parse(o)
} catch (a) {
return void (s && s.error("Error parsing " + r + " on " + t.className + ": " + a))
}
var l = new e(t,i);
c && c.data(t, n, l)
})
})
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("ev-emitter"), require("get-size")) : (t.Outlayer = {},
t.Outlayer.Item = e(t.EvEmitter, t.getSize))
}(window, function(t, e) {
"use strict";
function i(t) {
for (var e in t)
return !1;
return null,
!0
}
function n(t, e) {
t && (this.element = t,
this.layout = e,
this.position = {
x: 0,
y: 0
},
this._create())
}
function s(t) {
return t.replace(/([A-Z])/g, function(t) {
return "-" + t.toLowerCase()
})
}
var o = document.documentElement.style
, r = "string" == typeof o.transition ? "transition" : "WebkitTransition"
, a = "string" == typeof o.transform ? "transform" : "WebkitTransform"
, l = {
WebkitTransition: "webkitTransitionEnd",
transition: "transitionend"
}[r]
, d = {
transform: a,
transition: r,
transitionDuration: r + "Duration",
transitionProperty: r + "Property",
transitionDelay: r + "Delay"
}
, h = n.prototype = Object.create(t.prototype);
h.constructor = n,
h._create = function() {
this._transn = {
ingProperties: {},
clean: {},
onEnd: {}
},
this.css({
position: "absolute"
})
}
,
h.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}
,
h.getSize = function() {
this.size = e(this.element)
}
,
h.css = function(t) {
var e = this.element.style;
for (var i in t) {
e[d[i] || i] = t[i]
}
}
,
h.getPosition = function() {
var t = getComputedStyle(this.element)
, e = this.layout._getOption("originLeft")
, i = this.layout._getOption("originTop")
, n = t[e ? "left" : "right"]
, s = t[i ? "top" : "bottom"]
, o = parseFloat(n)
, r = parseFloat(s)
, a = this.layout.size;
-1 != n.indexOf("%") && (o = o / 100 * a.width),
-1 != s.indexOf("%") && (r = r / 100 * a.height),
o = isNaN(o) ? 0 : o,
r = isNaN(r) ? 0 : r,
o -= e ? a.paddingLeft : a.paddingRight,
r -= i ? a.paddingTop : a.paddingBottom,
this.position.x = o,
this.position.y = r
}
,
h.layoutPosition = function() {
var t = this.layout.size
, e = {}
, i = this.layout._getOption("originLeft")
, n = this.layout._getOption("originTop")
, s = i ? "paddingLeft" : "paddingRight"
, o = i ? "left" : "right"
, r = i ? "right" : "left"
, a = this.position.x + t[s];
e[o] = this.getXValue(a),
e[r] = "";
var l = n ? "paddingTop" : "paddingBottom"
, d = n ? "top" : "bottom"
, h = n ? "bottom" : "top"
, c = this.position.y + t[l];
e[d] = this.getYValue(c),
e[h] = "",
this.css(e),
this.emitEvent("layout", [this])
}
,
h.getXValue = function(t) {
var e = this.layout._getOption("horizontal");
return this.layout.options.percentPosition && !e ? t / this.layout.size.width * 100 + "%" : t + "px"
}
,
h.getYValue = function(t) {
var e = this.layout._getOption("horizontal");
return this.layout.options.percentPosition && e ? t / this.layout.size.height * 100 + "%" : t + "px"
}
,
h._transitionTo = function(t, e) {
this.getPosition();
var i = this.position.x
, n = this.position.y
, s = t == this.position.x && e == this.position.y;
if (this.setPosition(t, e),
!s || this.isTransitioning) {
var o = t - i
, r = e - n
, a = {};
a.transform = this.getTranslate(o, r),
this.transition({
to: a,
onTransitionEnd: {
transform: this.layoutPosition
},
isCleaning: !0
})
} else
this.layoutPosition()
}
,
h.getTranslate = function(t, e) {
return "translate3d(" + (t = this.layout._getOption("originLeft") ? t : -t) + "px, " + (e = this.layout._getOption("originTop") ? e : -e) + "px, 0)"
}
,
h.goTo = function(t, e) {
this.setPosition(t, e),
this.layoutPosition()
}
,
h.moveTo = h._transitionTo,
h.setPosition = function(t, e) {
this.position.x = parseFloat(t),
this.position.y = parseFloat(e)
}
,
h._nonTransition = function(t) {
for (var e in this.css(t.to),
t.isCleaning && this._removeStyles(t.to),
t.onTransitionEnd)
t.onTransitionEnd[e].call(this)
}
,
h.transition = function(t) {
if (parseFloat(this.layout.options.transitionDuration)) {
var e = this._transn;
for (var i in t.onTransitionEnd)
e.onEnd[i] = t.onTransitionEnd[i];
for (i in t.to)
e.ingProperties[i] = !0,
t.isCleaning && (e.clean[i] = !0);
if (t.from) {
this.css(t.from);
this.element.offsetHeight;
null
}
this.enableTransition(t.to),
this.css(t.to),
this.isTransitioning = !0
} else
this._nonTransition(t)
}
;
var c = "opacity," + s(a);
h.enableTransition = function() {
if (!this.isTransitioning) {
var t = this.layout.options.transitionDuration;
t = "number" == typeof t ? t + "ms" : t,
this.css({
transitionProperty: c,
transitionDuration: t,
transitionDelay: this.staggerDelay || 0
}),
this.element.addEventListener(l, this, !1)
}
}
,
h.onwebkitTransitionEnd = function(t) {
this.ontransitionend(t)
}
,
h.onotransitionend = function(t) {
this.ontransitionend(t)
}
;
var u = {
"-webkit-transform": "transform"
};
h.ontransitionend = function(t) {
if (t.target === this.element) {
var e = this._transn
, n = u[t.propertyName] || t.propertyName;
if (delete e.ingProperties[n],
i(e.ingProperties) && this.disableTransition(),
n in e.clean && (this.element.style[t.propertyName] = "",
delete e.clean[n]),
n in e.onEnd)
e.onEnd[n].call(this),
delete e.onEnd[n];
this.emitEvent("transitionEnd", [this])
}
}
,
h.disableTransition = function() {
this.removeTransitionStyles(),
this.element.removeEventListener(l, this, !1),
this.isTransitioning = !1
}
,
h._removeStyles = function(t) {
var e = {};
for (var i in t)
e[i] = "";
this.css(e)
}
;
var p = {
transitionProperty: "",
transitionDuration: "",
transitionDelay: ""
};
return h.removeTransitionStyles = function() {
this.css(p)
}
,
h.stagger = function(t) {
t = isNaN(t) ? 0 : t,
this.staggerDelay = t + "ms"
}
,
h.removeElem = function() {
this.element.parentNode.removeChild(this.element),
this.css({
display: ""
}),
this.emitEvent("remove", [this])
}
,
h.remove = function() {
return r && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function() {
this.removeElem()
}),
void this.hide()) : void this.removeElem()
}
,
h.reveal = function() {
delete this.isHidden,
this.css({
display: ""
});
var t = this.layout.options
, e = {};
e[this.getHideRevealTransitionEndProperty("visibleStyle")] = this.onRevealTransitionEnd,
this.transition({
from: t.hiddenStyle,
to: t.visibleStyle,
isCleaning: !0,
onTransitionEnd: e
})
}
,
h.onRevealTransitionEnd = function() {
this.isHidden || this.emitEvent("reveal")
}
,
h.getHideRevealTransitionEndProperty = function(t) {
var e = this.layout.options[t];
if (e.opacity)
return "opacity";
for (var i in e)
return i
}
,
h.hide = function() {
this.isHidden = !0,
this.css({
display: ""
});
var t = this.layout.options
, e = {};
e[this.getHideRevealTransitionEndProperty("hiddenStyle")] = this.onHideTransitionEnd,
this.transition({
from: t.visibleStyle,
to: t.hiddenStyle,
isCleaning: !0,
onTransitionEnd: e
})
}
,
h.onHideTransitionEnd = function() {
this.isHidden && (this.css({
display: "none"
}),
this.emitEvent("hide"))
}
,
h.destroy = function() {
this.css({
position: "",
left: "",
right: "",
top: "",
bottom: "",
transition: "",
transform: ""
})
}
,
n
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(i, n, s, o) {
return e(t, i, n, s, o)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item)
}(window, function(t, e, i, n, s) {
"use strict";
function o(t, e) {
var i = n.getQueryElement(t);
if (i) {
this.element = i,
d && (this.$element = d(this.element)),
this.options = n.extend({}, this.constructor.defaults),
this.option(e);
var s = ++c;
this.element.outlayerGUID = s,
u[s] = this,
this._create(),
this._getOption("initLayout") && this.layout()
} else
l && l.error("Bad element for " + this.constructor.namespace + ": " + (i || t))
}
function r(t) {
function e() {
t.apply(this, arguments)
}
return e.prototype = Object.create(t.prototype),
e.prototype.constructor = e,
e
}
function a(t) {
if ("number" == typeof t)
return t;
var e = t.match(/(^\d*\.?\d*)(\w*)/)
, i = e && e[1]
, n = e && e[2];
return i.length ? (i = parseFloat(i)) * (f[n] || 1) : 0
}
var l = t.console
, d = t.jQuery
, h = function() {}
, c = 0
, u = {};
o.namespace = "outlayer",
o.Item = s,
o.defaults = {
containerStyle: {
position: "relative"
},
initLayout: !0,
originLeft: !0,
originTop: !0,
resize: !0,
resizeContainer: !0,
transitionDuration: "0.4s",
hiddenStyle: {
opacity: 0,
transform: "scale(0.001)"
},
visibleStyle: {
opacity: 1,
transform: "scale(1)"
}
};
var p = o.prototype;
n.extend(p, e.prototype),
p.option = function(t) {
n.extend(this.options, t)
}
,
p._getOption = function(t) {
var e = this.constructor.compatOptions[t];
return e && void 0 !== this.options[e] ? this.options[e] : this.options[t]
}
,
o.compatOptions = {
initLayout: "isInitLayout",
horizontal: "isHorizontal",
layoutInstant: "isLayoutInstant",
originLeft: "isOriginLeft",
originTop: "isOriginTop",
resize: "isResizeBound",
resizeContainer: "isResizingContainer"
},
p._create = function() {
this.reloadItems(),
this.stamps = [],
this.stamp(this.options.stamp),
n.extend(this.element.style, this.options.containerStyle),
this._getOption("resize") && this.bindResize()
}
,
p.reloadItems = function() {
this.items = this._itemize(this.element.children)
}
,
p._itemize = function(t) {
for (var e = this._filterFindItemElements(t), i = this.constructor.Item, n = [], s = 0; s < e.length; s++) {
var o = new i(e[s],this);
n.push(o)
}
return n
}
,
p._filterFindItemElements = function(t) {
return n.filterFindElements(t, this.options.itemSelector)
}
,
p.getItemElements = function() {
return this.items.map(function(t) {
return t.element
})
}
,
p.layout = function() {
this._resetLayout(),
this._manageStamps();
var t = this._getOption("layoutInstant")
, e = void 0 !== t ? t : !this._isLayoutInited;
this.layoutItems(this.items, e),
this._isLayoutInited = !0
}
,
p._init = p.layout,
p._resetLayout = function() {
this.getSize()
}
,
p.getSize = function() {
this.size = i(this.element)
}
,
p._getMeasurement = function(t, e) {
var n, s = this.options[t];
s ? ("string" == typeof s ? n = this.element.querySelector(s) : s instanceof HTMLElement && (n = s),
this[t] = n ? i(n)[e] : s) : this[t] = 0
}
,
p.layoutItems = function(t, e) {
t = this._getItemsForLayout(t),
this._layoutItems(t, e),
this._postLayout()
}
,
p._getItemsForLayout = function(t) {
return t.filter(function(t) {
return !t.isIgnored
})
}
,
p._layoutItems = function(t, e) {
if (this._emitCompleteOnItems("layout", t),
t && t.length) {
var i = [];
t.forEach(function(t) {
var n = this._getItemLayoutPosition(t);
n.item = t,
n.isInstant = e || t.isLayoutInstant,
i.push(n)
}, this),
this._processLayoutQueue(i)
}
}
,
p._getItemLayoutPosition = function() {
return {
x: 0,
y: 0
}
}
,
p._processLayoutQueue = function(t) {
this.updateStagger(),
t.forEach(function(t, e) {
this._positionItem(t.item, t.x, t.y, t.isInstant, e)
}, this)
}
,
p.updateStagger = function() {
var t = this.options.stagger;
return null == t ? void (this.stagger = 0) : (this.stagger = a(t),
this.stagger)
}
,
p._positionItem = function(t, e, i, n, s) {
n ? t.goTo(e, i) : (t.stagger(s * this.stagger),
t.moveTo(e, i))
}
,
p._postLayout = function() {
this.resizeContainer()
}
,
p.resizeContainer = function() {
if (this._getOption("resizeContainer")) {
var t = this._getContainerSize();
t && (this._setContainerMeasure(t.width, !0),
this._setContainerMeasure(t.height, !1))
}
}
,
p._getContainerSize = h,
p._setContainerMeasure = function(t, e) {
if (void 0 !== t) {
var i = this.size;
i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth),
t = Math.max(t, 0),
this.element.style[e ? "width" : "height"] = t + "px"
}
}
,
p._emitCompleteOnItems = function(t, e) {
function i() {
s.dispatchEvent(t + "Complete", null, [e])
}
function n() {
++r == o && i()
}
var s = this
, o = e.length;
if (e && o) {
var r = 0;
e.forEach(function(e) {
e.once(t, n)
})
} else
i()
}
,
p.dispatchEvent = function(t, e, i) {
var n = e ? [e].concat(i) : i;
if (this.emitEvent(t, n),
d)
if (this.$element = this.$element || d(this.element),
e) {
var s = d.Event(e);
s.type = t,
this.$element.trigger(s, i)
} else
this.$element.trigger(t, i)
}
,
p.ignore = function(t) {
var e = this.getItem(t);
e && (e.isIgnored = !0)
}
,
p.unignore = function(t) {
var e = this.getItem(t);
e && delete e.isIgnored
}
,
p.stamp = function(t) {
(t = this._find(t)) && (this.stamps = this.stamps.concat(t),
t.forEach(this.ignore, this))
}
,
p.unstamp = function(t) {
(t = this._find(t)) && t.forEach(function(t) {
n.removeFrom(this.stamps, t),
this.unignore(t)
}, this)
}
,
p._find = function(t) {
if (t)
return "string" == typeof t && (t = this.element.querySelectorAll(t)),
n.makeArray(t)
}
,
p._manageStamps = function() {
this.stamps && this.stamps.length && (this._getBoundingRect(),
this.stamps.forEach(this._manageStamp, this))
}
,
p._getBoundingRect = function() {
var t = this.element.getBoundingClientRect()
, e = this.size;
this._boundingRect = {
left: t.left + e.paddingLeft + e.borderLeftWidth,
top: t.top + e.paddingTop + e.borderTopWidth,
right: t.right - (e.paddingRight + e.borderRightWidth),
bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth)
}
}
,
p._manageStamp = h,
p._getElementOffset = function(t) {
var e = t.getBoundingClientRect()
, n = this._boundingRect
, s = i(t);
return {
left: e.left - n.left - s.marginLeft,
top: e.top - n.top - s.marginTop,
right: n.right - e.right - s.marginRight,
bottom: n.bottom - e.bottom - s.marginBottom
}
}
,
p.handleEvent = n.handleEvent,
p.bindResize = function() {
t.addEventListener("resize", this),
this.isResizeBound = !0
}
,
p.unbindResize = function() {
t.removeEventListener("resize", this),
this.isResizeBound = !1
}
,
p.onresize = function() {
this.resize()
}
,
n.debounceMethod(o, "onresize", 100),
p.resize = function() {
this.isResizeBound && this.needsResizeLayout() && this.layout()
}
,
p.needsResizeLayout = function() {
var t = i(this.element);
return this.size && t && t.innerWidth !== this.size.innerWidth
}
,
p.addItems = function(t) {
var e = this._itemize(t);
return e.length && (this.items = this.items.concat(e)),
e
}
,
p.appended = function(t) {
var e = this.addItems(t);
e.length && (this.layoutItems(e, !0),
this.reveal(e))
}
,
p.prepended = function(t) {
var e = this._itemize(t);
if (e.length) {
var i = this.items.slice(0);
this.items = e.concat(i),
this._resetLayout(),
this._manageStamps(),
this.layoutItems(e, !0),
this.reveal(e),
this.layoutItems(i)
}
}
,
p.reveal = function(t) {
if (this._emitCompleteOnItems("reveal", t),
t && t.length) {
var e = this.updateStagger();
t.forEach(function(t, i) {
t.stagger(i * e),
t.reveal()
})
}
}
,
p.hide = function(t) {
if (this._emitCompleteOnItems("hide", t),
t && t.length) {
var e = this.updateStagger();
t.forEach(function(t, i) {
t.stagger(i * e),
t.hide()
})
}
}
,
p.revealItemElements = function(t) {
var e = this.getItems(t);
this.reveal(e)
}
,
p.hideItemElements = function(t) {
var e = this.getItems(t);
this.hide(e)
}
,
p.getItem = function(t) {
for (var e = 0; e < this.items.length; e++) {
var i = this.items[e];
if (i.element == t)
return i
}
}
,
p.getItems = function(t) {
t = n.makeArray(t);
var e = [];
return t.forEach(function(t) {
var i = this.getItem(t);
i && e.push(i)
}, this),
e
}
,
p.remove = function(t) {
var e = this.getItems(t);
this._emitCompleteOnItems("remove", e),
e && e.length && e.forEach(function(t) {
t.remove(),
n.removeFrom(this.items, t)
}, this)
}
,
p.destroy = function() {
var t = this.element.style;
t.height = "",
t.position = "",
t.width = "",
this.items.forEach(function(t) {
t.destroy()
}),
this.unbindResize();
var e = this.element.outlayerGUID;
delete u[e],
delete this.element.outlayerGUID,
d && d.removeData(this.element, this.constructor.namespace)
}
,
o.data = function(t) {
var e = (t = n.getQueryElement(t)) && t.outlayerGUID;
return e && u[e]
}
,
o.create = function(t, e) {
var i = r(o);
return i.defaults = n.extend({}, o.defaults),
n.extend(i.defaults, e),
i.compatOptions = n.extend({}, o.compatOptions),
i.namespace = t,
i.data = o.data,
i.Item = r(s),
n.htmlInit(i, t),
d && d.bridget && d.bridget(t, i),
i
}
;
var f = {
ms: 1,
s: 1e3
};
return o.Item = s,
o
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope-layout/js/item", ["outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {},
t.Isotope.Item = e(t.Outlayer))
}(window, function(t) {
"use strict";
function e() {
t.Item.apply(this, arguments)
}
var i = e.prototype = Object.create(t.Item.prototype)
, n = i._create;
i._create = function() {
this.id = this.layout.itemGUID++,
n.call(this),
this.sortData = {}
}
,
i.updateSortData = function() {
if (!this.isIgnored) {
this.sortData.id = this.id,
this.sortData["original-order"] = this.id,
this.sortData.random = Math.random();
var t = this.layout.options.getSortData
, e = this.layout._sorters;
for (var i in t) {
var n = e[i];
this.sortData[i] = n(this.element, this)
}
}
}
;
var s = i.destroy;
return i.destroy = function() {
s.apply(this, arguments),
this.css({
display: ""
})
}
,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope-layout/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {},
t.Isotope.LayoutMode = e(t.getSize, t.Outlayer))
}(window, function(t, e) {
"use strict";
function i(t) {
this.isotope = t,
t && (this.options = t.options[this.namespace],
this.element = t.element,
this.items = t.filteredItems,
this.size = t.size)
}
var n = i.prototype;
return ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption"].forEach(function(t) {
n[t] = function() {
return e.prototype[t].apply(this.isotope, arguments)
}
}),
n.needsVerticalResizeLayout = function() {
var e = t(this.isotope.element);
return this.isotope.size && e && e.innerHeight != this.isotope.size.innerHeight
}
,
n._getMeasurement = function() {
this.isotope._getMeasurement.apply(this, arguments)
}
,
n.getColumnWidth = function() {
this.getSegmentSize("column", "Width")
}
,
n.getRowHeight = function() {
this.getSegmentSize("row", "Height")
}
,
n.getSegmentSize = function(t, e) {
var i = t + e
, n = "outer" + e;
if (this._getMeasurement(i, n),
!this[i]) {
var s = this.getFirstItemSize();
this[i] = s && s[n] || this.isotope.size["inner" + e]
}
}
,
n.getFirstItemSize = function() {
var e = this.isotope.filteredItems[0];
return e && e.element && t(e.element)
}
,
n.layout = function() {
this.isotope.layout.apply(this.isotope, arguments)
}
,
n.getSize = function() {
this.isotope.getSize(),
this.size = this.isotope.size
}
,
i.modes = {},
i.create = function(t, e) {
function s() {
i.apply(this, arguments)
}
return s.prototype = Object.create(n),
s.prototype.constructor = s,
e && (s.options = e),
s.prototype.namespace = t,
i.modes[t] = s,
s
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("masonry-layout/masonry", ["outlayer/outlayer", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer"), require("get-size")) : t.Masonry = e(t.Outlayer, t.getSize)
}(window, function(t, e) {
var i = t.create("masonry");
i.compatOptions.fitWidth = "isFitWidth";
var n = i.prototype;
return n._resetLayout = function() {
this.getSize(),
this._getMeasurement("columnWidth", "outerWidth"),
this._getMeasurement("gutter", "outerWidth"),
this.measureColumns(),
this.colYs = [];
for (var t = 0; t < this.cols; t++)
this.colYs.push(0);
this.maxY = 0,
this.horizontalColIndex = 0
}
,
n.measureColumns = function() {
if (this.getContainerWidth(),
!this.columnWidth) {
var t = this.items[0]
, i = t && t.element;
this.columnWidth = i && e(i).outerWidth || this.containerWidth
}
var n = this.columnWidth += this.gutter
, s = this.containerWidth + this.gutter
, o = s / n
, r = n - s % n;
o = Math[r && r < 1 ? "round" : "floor"](o),
this.cols = Math.max(o, 1)
}
,
n.getContainerWidth = function() {
var t = this._getOption("fitWidth") ? this.element.parentNode : this.element
, i = e(t);
this.containerWidth = i && i.innerWidth
}
,
n._getItemLayoutPosition = function(t) {
t.getSize();
var e = t.size.outerWidth % this.columnWidth
, i = Math[e && e < 1 ? "round" : "ceil"](t.size.outerWidth / this.columnWidth);
i = Math.min(i, this.cols);
for (var n = this[this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition"](i, t), s = {
x: this.columnWidth * n.col,
y: n.y
}, o = n.y + t.size.outerHeight, r = i + n.col, a = n.col; a < r; a++)
this.colYs[a] = o;
return s
}
,
n._getTopColPosition = function(t) {
var e = this._getTopColGroup(t)
, i = Math.min.apply(Math, e);
return {
col: e.indexOf(i),
y: i
}
}
,
n._getTopColGroup = function(t) {
if (t < 2)
return this.colYs;
for (var e = [], i = this.cols + 1 - t, n = 0; n < i; n++)
e[n] = this._getColGroupY(n, t);
return e
}
,
n._getColGroupY = function(t, e) {
if (e < 2)
return this.colYs[t];
var i = this.colYs.slice(t, t + e);
return Math.max.apply(Math, i)
}
,
n._getHorizontalColPosition = function(t, e) {
var i = this.horizontalColIndex % this.cols;
i = t > 1 && i + t > this.cols ? 0 : i;
var n = e.size.outerWidth && e.size.outerHeight;
return this.horizontalColIndex = n ? i + t : this.horizontalColIndex,
{
col: i,
y: this._getColGroupY(i, t)
}
}
,
n._manageStamp = function(t) {
var i = e(t)
, n = this._getElementOffset(t)
, s = this._getOption("originLeft") ? n.left : n.right
, o = s + i.outerWidth
, r = Math.floor(s / this.columnWidth);
r = Math.max(0, r);
var a = Math.floor(o / this.columnWidth);
a -= o % this.columnWidth ? 0 : 1,
a = Math.min(this.cols - 1, a);
for (var l = (this._getOption("originTop") ? n.top : n.bottom) + i.outerHeight, d = r; d <= a; d++)
this.colYs[d] = Math.max(l, this.colYs[d])
}
,
n._getContainerSize = function() {
this.maxY = Math.max.apply(Math, this.colYs);
var t = {
height: this.maxY
};
return this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()),
t
}
,
n._getContainerFitWidth = function() {
for (var t = 0, e = this.cols; --e && 0 === this.colYs[e]; )
t++;
return (this.cols - t) * this.columnWidth - this.gutter
}
,
n.needsResizeLayout = function() {
var t = this.containerWidth;
return this.getContainerWidth(),
t != this.containerWidth
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/masonry", ["../layout-mode", "masonry-layout/masonry"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry)
}(window, function(t, e) {
"use strict";
var i = t.create("masonry")
, n = i.prototype
, s = {
_getElementOffset: !0,
layout: !0,
_getMeasurement: !0
};
for (var o in e.prototype)
s[o] || (n[o] = e.prototype[o]);
var r = n.measureColumns;
n.measureColumns = function() {
this.items = this.isotope.filteredItems,
r.call(this)
}
;
var a = n._getOption;
return n._getOption = function(t) {
return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments)
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode)
}(window, function(t) {
"use strict";
var e = t.create("fitRows")
, i = e.prototype;
return i._resetLayout = function() {
this.x = 0,
this.y = 0,
this.maxY = 0,
this._getMeasurement("gutter", "outerWidth")
}
,
i._getItemLayoutPosition = function(t) {
t.getSize();
var e = t.size.outerWidth + this.gutter
, i = this.isotope.size.innerWidth + this.gutter;
0 !== this.x && e + this.x > i && (this.x = 0,
this.y = this.maxY);
var n = {
x: this.x,
y: this.y
};
return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight),
this.x += e,
n
}
,
i._getContainerSize = function() {
return {
height: this.maxY
}
}
,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode)
}(window, function(t) {
"use strict";
var e = t.create("vertical", {
horizontalAlignment: 0
})
, i = e.prototype;
return i._resetLayout = function() {
this.y = 0
}
,
i._getItemLayoutPosition = function(t) {
t.getSize();
var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment
, i = this.y;
return this.y += t.size.outerHeight,
{
x: e,
y: i
}
}
,
i._getContainerSize = function() {
return {
height: this.y
}
}
,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope-layout/js/item", "isotope-layout/js/layout-mode", "isotope-layout/js/layout-modes/masonry", "isotope-layout/js/layout-modes/fit-rows", "isotope-layout/js/layout-modes/vertical"], function(i, n, s, o, r, a) {
return e(t, i, n, s, o, r, a)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope-layout/js/item"), require("isotope-layout/js/layout-mode"), require("isotope-layout/js/layout-modes/masonry"), require("isotope-layout/js/layout-modes/fit-rows"), require("isotope-layout/js/layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode)
}(window, function(t, e, i, n, s, o, r) {
function a(t, e) {
return function(i, n) {
for (var s = 0; s < t.length; s++) {
var o = t[s]
, r = i.sortData[o]
, a = n.sortData[o];
if (r > a || r < a)
return (r > a ? 1 : -1) * ((void 0 !== e[o] ? e[o] : e) ? 1 : -1)
}
return 0
}
}
var l = t.jQuery
, d = String.prototype.trim ? function(t) {
return t.trim()
}
: function(t) {
return t.replace(/^\s+|\s+$/g, "")
}
, h = e.create("isotope", {
layoutMode: "masonry",
isJQueryFiltering: !0,
sortAscending: !0
});
h.Item = o,
h.LayoutMode = r;
var c = h.prototype;
c._create = function() {
for (var t in this.itemGUID = 0,
this._sorters = {},
this._getSorters(),
e.prototype._create.call(this),
this.modes = {},
this.filteredItems = this.items,
this.sortHistory = ["original-order"],
r.modes)
this._initLayoutMode(t)
}
,
c.reloadItems = function() {
this.itemGUID = 0,
e.prototype.reloadItems.call(this)
}
,
c._itemize = function() {
for (var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++) {
t[i].id = this.itemGUID++
}
return this._updateItemsSortData(t),
t
}
,
c._initLayoutMode = function(t) {
var e = r.modes[t]
, i = this.options[t] || {};
this.options[t] = e.options ? s.extend(e.options, i) : i,
this.modes[t] = new e(this)
}
,
c.layout = function() {
return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout()
}
,
c._layout = function() {
var t = this._getIsInstant();
this._resetLayout(),
this._manageStamps(),
this.layoutItems(this.filteredItems, t),
this._isLayoutInited = !0
}
,
c.arrange = function(t) {
this.option(t),
this._getIsInstant();
var e = this._filter(this.items);
this.filteredItems = e.matches,
this._bindArrangeComplete(),
this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e),
this._sort(),
this._layout()
}
,
c._init = c.arrange,
c._hideReveal = function(t) {
this.reveal(t.needReveal),
this.hide(t.needHide)
}
,
c._getIsInstant = function() {
var t = this._getOption("layoutInstant")
, e = void 0 !== t ? t : !this._isLayoutInited;
return this._isInstant = e,
e
}
,
c._bindArrangeComplete = function() {
function t() {
e && i && n && s.dispatchEvent("arrangeComplete", null, [s.filteredItems])
}
var e, i, n, s = this;
this.once("layoutComplete", function() {
e = !0,
t()
}),
this.once("hideComplete", function() {
i = !0,
t()
}),
this.once("revealComplete", function() {
n = !0,
t()
})
}
,
c._filter = function(t) {
var e = this.options.filter;
e = e || "*";
for (var i = [], n = [], s = [], o = this._getFilterTest(e), r = 0; r < t.length; r++) {
var a = t[r];
if (!a.isIgnored) {
var l = o(a);
l && i.push(a),
l && a.isHidden ? n.push(a) : l || a.isHidden || s.push(a)
}
}
return {
matches: i,
needReveal: n,
needHide: s
}
}
,
c._getFilterTest = function(t) {
return l && this.options.isJQueryFiltering ? function(e) {
return l(e.element).is(t)
}
: "function" == typeof t ? function(e) {
return t(e.element)
}
: function(e) {
return n(e.element, t)
}
}
,
c.updateSortData = function(t) {
var e;
t ? (t = s.makeArray(t),
e = this.getItems(t)) : e = this.items,
this._getSorters(),
this._updateItemsSortData(e)
}
,
c._getSorters = function() {
var t = this.options.getSortData;
for (var e in t) {
var i = t[e];
this._sorters[e] = u(i)
}
}
,
c._updateItemsSortData = function(t) {
for (var e = t && t.length, i = 0; e && i < e; i++) {
t[i].updateSortData()
}
}
;
var u = function() {
function t(t) {
if ("string" != typeof t)
return t;
var i = d(t).split(" ")
, n = i[0]
, s = n.match(/^\[(.+)\]$/)
, o = e(s && s[1], n)
, r = h.sortDataParsers[i[1]];
return r ? function(t) {
return t && r(o(t))
}
: function(t) {
return t && o(t)
}
}
function e(t, e) {
return t ? function(e) {
return e.getAttribute(t)
}
: function(t) {
var i = t.querySelector(e);
return i && i.textContent
}
}
return t
}();
h.sortDataParsers = {
parseInt: function(t) {
return parseInt(t, 10)
},
parseFloat: function(t) {
return parseFloat(t)
}
},
c._sort = function() {
if (this.options.sortBy) {
var t = s.makeArray(this.options.sortBy);
this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory));
var e = a(this.sortHistory, this.options.sortAscending);
this.filteredItems.sort(e)
}
}
,
c._getIsSameSortBy = function(t) {
for (var e = 0; e < t.length; e++)
if (t[e] != this.sortHistory[e])
return !1;
return !0
}
,
c._mode = function() {
var t = this.options.layoutMode
, e = this.modes[t];
if (!e)
throw new Error("No layout mode: " + t);
return e.options = this.options[t],
e
}
,
c._resetLayout = function() {
e.prototype._resetLayout.call(this),
this._mode()._resetLayout()
}
,
c._getItemLayoutPosition = function(t) {
return this._mode()._getItemLayoutPosition(t)
}
,
c._manageStamp = function(t) {
this._mode()._manageStamp(t)
}
,
c._getContainerSize = function() {
return this._mode()._getContainerSize()
}
,
c.needsResizeLayout = function() {
return this._mode().needsResizeLayout()
}
,
c.appended = function(t) {
var e = this.addItems(t);
if (e.length) {
var i = this._filterRevealAdded(e);
this.filteredItems = this.filteredItems.concat(i)
}
}
,
c.prepended = function(t) {
var e = this._itemize(t);
if (e.length) {
this._resetLayout(),
this._manageStamps();
var i = this._filterRevealAdded(e);
this.layoutItems(this.filteredItems),
this.filteredItems = i.concat(this.filteredItems),
this.items = e.concat(this.items)
}
}
,
c._filterRevealAdded = function(t) {
var e = this._filter(t);
return this.hide(e.needHide),
this.reveal(e.matches),
this.layoutItems(e.matches, !0),
e.matches
}
,
c.insert = function(t) {
var e = this.addItems(t);
if (e.length) {
var i, n, s = e.length;
for (i = 0; i < s; i++)
n = e[i],
this.element.appendChild(n.element);
var o = this._filter(e).matches;
for (i = 0; i < s; i++)
e[i].isLayoutInstant = !0;
for (this.arrange(),
i = 0; i < s; i++)
delete e[i].isLayoutInstant;
this.reveal(o)
}
}
;
var p = c.remove;
return c.remove = function(t) {
t = s.makeArray(t);
var e = this.getItems(t);
p.call(this, t);
for (var i = e && e.length, n = 0; i && n < i; n++) {
var o = e[n];
s.removeFrom(this.filteredItems, o)
}
}
,
c.shuffle = function() {
for (var t = 0; t < this.items.length; t++) {
this.items[t].sortData.random = Math.random()
}
this.options.sortBy = "random",
this._sort(),
this._layout()
}
,
c._noTransition = function(t, e) {
var i = this.options.transitionDuration;
this.options.transitionDuration = 0;
var n = t.apply(this, e);
return this.options.transitionDuration = i,
n
}
,
c.getFilteredItemElements = function() {
return this.filteredItems.map(function(t) {
return t.element
})
}
,
h
}),
$.fn.eventCalendar = function(t) {
function e(t, e) {
return t.date.toLowerCase() > e.date.toLowerCase() ? 1 : -1
}
function i(t, e, i) {
var n = $("")
, o = $("")
, r = $("")
, a = $("" + d.txt_prev + "" + d.txt_next + "");
if ($eventsCalendarDaysList = $("' + e.title + "
"; if (e.url) var S = '' , C = ""; n.push('' + e.description + "
" + C + "' + d.txt_noEvents + "
No additional content available.
" }) } ) }), document.addEventListener("DOMContentLoaded", function() { $("#new_job_application").length > 0 && 0 !== $("#first-name").val().length && ($(".social-login.linkedin").hide(), $(".line-divider").hide()) }), window.addEventListener("xhr:formRendered", function(t) { if ($("#featured_candidate_100").exists()) { if ($("#candi-refno").length > 0) var e = document.getElementById("candi-refno").innerHTML; console.log(t.detail.currentTaget), t.detail.currentTaget.querySelector("#form_user_form_user_answers_attributes_0_answer").value = e, t.detail.currentTaget.querySelector("#form_user_form_user_answers_attributes_0_answer").placeholder = e } }), document.addEventListener("DOMContentLoaded", function() { !$("body.edit").length > 0 && $("#cta-block_100").height() < 30 && $("#cta-block_100").hide() }), function() { if ($("#side-consultants_100").length > 0) { $("#side-consultants_100 .team__slider").attr("data-slides"); var t = "true" === $("#side-consultants_100 .team__slider").attr("data-arrows") , e = "true" === $("#side-consultants_100 .team__slider").attr("data-dots"); $("#side-consultants_100 .team__slider").slick({ slidesToShow: 2, slidesToScroll: 1, autoplay: !0, arrows: t, dots: e, infinite: !1, vertical: !0, responsive: [{ breakpoint: 1170, settings: { slidesToShow: 3, slidesToScroll: 1 } }, { breakpoint: 767, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1, dots: !1 } }] }) } }(), $(document).ready(function() { function t(t, e) { return $(e).text().toUpperCase() < $(t).text().toUpperCase() ? 1 : -1 } if ($("#search_blogs.filters #search-group").length > 0 && $("#search-group .filter-select .tag-name").sort(t).appendTo("#search-group .filter-select"), $("#search_blogs.filters #search-group-2").length > 0 && $("#search-group-2 .filter-select .tag-name").sort(t).appendTo("#search-group-2 .filter-select"), $("#search_blogs").length > 0) { var e, i, n = $(".items").isotope({ itemSelector: ".item", columnWidth: ".item", percentPosition: !0, layoutMode: "fitRows", filter: function() { var t = $(this) , n = !e || t.text().match(e) , s = !i || t.is(i); return n && s } }); $(".filter-buttons").on("click", "button", function() { var t = $(this).attr("data-filter"); n.isotope({ filter: t }) }), $(".filter-select").on("change", function() { i = $(this).val(), console.log(i), n.isotope() }); var s = $("#quicksearch").keyup(o(function() { e = new RegExp(s.val(),"gi"), n.isotope(), console.log(i) })); function o(t, e) { var i; return function() { function n() { t(), i = null } i && clearTimeout(i), setTimeout(n, e || 100) } } } }); var imgsrc = $("#empty-img img").attr("src"); $("body.edit").length || "/images/blank.png" == imgsrc && $("#empty-img.item__img").css("display", "none"), $(document).ready(function() { /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); var t = $(".header").outerHeight() + 10 , e = $("#sticky-apply").outerHeight(); if (window.matchMedia("(max-width: 767px)").matches) $("#sticky-apply").css("top", t - 40 + "px"), $(window).scroll(function() { $(window).scrollTop() >= $(".main-content").offset().top ? $("#sticky-apply").slideDown().addClass("fixed") : $("#sticky-apply").slideUp(600).removeClass("fixed") }), $("#social-sticky").removeClass("fixed"); else { if ($("#template-job_101 #sticky-apply").length > 0) { $(window).scroll(function() { $("#sticky-apply").css("top", t + "px"), $(window).scrollTop() >= $(".col-md-3").offset().top - t ? $("#sticky-apply").addClass("fixed") : $("#sticky-apply").removeClass("fixed") }); setInterval(function() { $(window).on("resize", function() { $("#sticky-apply").css("top", t + "px") }) }, 1e3) } if ($("#template-job_101 #social-sticky").length > 0) { $(window).scroll(function() { $("#social-sticky").css("top", t + e + "px"), $(window).scrollTop() >= $(".col-md-3").offset().top - e - t ? $("#social-sticky").addClass("fixed") : $("#social-sticky").removeClass("fixed") }); setInterval(function() { $(window).on("resize", function() { $("#social-sticky").css("top", e + t + "px") }) }, 1e3) } if ($("#template-job_101 .job-details.sticky").length > 0) { $(window).scroll(function() { $(".job-details.sticky").css("top", t + "px"), $(window).scrollTop() >= $(".col-md-3").offset().top - t ? $(".job-details.sticky").addClass("fixed") : $(".job-details.sticky").removeClass("fixed") }); setInterval(function() { $(window).on("resize", function() { $(".job-details.sticky").css("top", t + "px") }) }, 1e3) } } }), document.addEventListener("DOMContentLoaded", function() { $("#template-contact_101.branches .branch-info:not('.branch-page'):first-of-type").addClass("active"), $("#template-contact_101.branches .branch .branch-info:not('.branch-page'):first-of-type").addClass("active"), $("#template-contact_101.branches .nav-bar .branch-link:not('.branch-page')").parent(":first-of-type").addClass("active"), $(".branch-link:not('.branch-page')").click(function(t) { t.preventDefault(); var e = $(this).data("branch"); $(".branch-link").parent().removeClass("active"), $(this).parent().toggleClass("active"), $(".branch .branch-info").each(function() { var t = $(this); t.attr("id") == e ? t.fadeIn("slow").addClass("active") : t.hide().removeClass("active") }), $(".branch .branch-info").each(function() { var t = $(this); t.attr("id") == e ? t.fadeIn("slow").addClass("active") : t.hide().removeClass("active") }) }), $("#locationSelector").on("change", function() { var t = $(this).val(); $(".branch .branch-info").removeClass("active"), $("#" + $(this).val()).addClass("active"), $(".branch-info[data-branch=" + t + "]").addClass("active") }), $("#pageSelector").change(function() { var t = $(this).find("option:selected"); window.location.href = t.data("page") }) }), function() { var t = Number($("#latest-disciplines_100 .disc__slider").attr("data-slides")) , e = "true" === $("#latest-disciplines_100 .disc__slider").attr("data-arrows") , i = "true" === $("#latest-disciplines_100 .disc__slider").attr("data-dots") , n = "true" === $("#latest-disciplines_100 .disc__slider").attr("data-loop") , s = "true" === $("#latest-disciplines_100 .disc__slider").attr("data-autoplay"); $("#latest-disciplines_100 .disc__slider").slick({ slidesToShow: t, slidesToScroll: t, infinite: n, arrows: e, dots: i, autoplay: s, responsive: [{ breakpoint: 1170, settings: { slidesToShow: 3, slidesToScroll: 1 } }, { breakpoint: 767, settings: { slidesToShow: t <= 1 ? 1 : 2, slidesToScroll: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1, dots: !1 } }] }) }(); var objectFitImages = function() { "use strict"; function t(t) { for (var e, i = getComputedStyle(t).fontFamily, n = {}; null !== (e = d.exec(i)); ) n[e[1]] = e[2]; return n } function e(e, n) { var s = t(e); if (!e[a]) { if (!s["object-fit"] || "fill" === s["object-fit"]) return; if (!s["object-position"] || !e[l].skipTest && h && e.srcset && "undefined" == typeof e.currentSrc && e[l].preferSrcsetOverPosition) return } var o = n || e.currentSrc || e.src; e.srcset && (e.srcset = ""), e[a] ? (e[a].s = o, n && (e[a].a = n)) : (e[a] = { s: o, a: n || u.call(e, "src") }, e.src = a, i(e)), e.style.backgroundImage = 'url("' + o + '")', e.style.backgroundPosition = s["object-position"] || "center", e.style.backgroundRepeat = "no-repeat", /scale-down/.test(s["object-fit"]) ? (e[a].i || (e[a].i = new Image, e[a].i.src = o), function r() { e[a].i.naturalWidth ? e[a].i.naturalWidth > e.width || e[a].i.naturalHeight > e.height ? e.style.backgroundSize = "contain" : e.style.backgroundSize = "auto" : setTimeout(r, 100) }()) : e.style.backgroundSize = s["object-fit"].replace("none", "auto").replace("fill", "100% 100%") } function i(t) { var i = { get: function() { return t[a].s }, set: function(i) { return delete t[a].i, e(t, i), i } }; Object.defineProperty(t, "src", i), Object.defineProperty(t, "currentSrc", { get: i.get }) } function n(t, e) { window.addEventListener("resize", r.bind(null, t, e)) } function s(t) { "IMG" === t.target.tagName && e(t.target) } function o() { c && (HTMLImageElement.prototype.getAttribute = function(t) { return this[a] && "src" === t ? this[a].a : u.call(this, t) } , HTMLImageElement.prototype.setAttribute = function(t, e) { this[a] && "src" === t ? this.src = String(e) : p.call(this, t, e) } ) } function r(t, i) { var o = !f && !t; if (i = i || {}, t = t || "img", c && !i.skipTest) return !1; "string" == typeof t ? t = document.querySelectorAll("img") : t.length || (t = [t]); for (var r = 0; r < t.length; r++) t[r][l] = i, e(t[r]); o && (document.body.addEventListener("load", s, !0), f = !0, t = "img"), i.watchMQ && (delete i.watchMQ, n(t, i)) } var a = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" , l = a + a , d = /(object-fit|object-position)\s*:\s*([-\w\s%]+)/g , h = "object-fit"in document.documentElement.style , c = "object-position"in document.documentElement.style , u = document.documentElement.getAttribute , p = document.documentElement.setAttribute , f = !1; return r.supportsObjectFit = h, r.supportsObjectPosition = c, o(), r }(); !function(t, e, i, n) { function s(e, i) { this.settings = null, this.options = t.extend({}, s.Defaults, i), this.$element = t(e), this.drag = t.extend({}, u), this.state = t.extend({}, p), this.e = t.extend({}, f), 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._invalidated = {}, this._pipe = [], t.each(s.Plugins, t.proxy(function(t, e) { this._plugins[t[0].toLowerCase() + t.slice(1)] = new e(this) }, this)), t.each(s.Pipe, t.proxy(function(e, i) { this._pipe.push({ filter: i.filter, run: t.proxy(i.run, this) }) }, this)), this.setup(), this.initialize() } function o(t) { if (t.touches !== n) return { x: t.touches[0].pageX, y: t.touches[0].pageY }; if (t.touches === n) { if (t.pageX !== n) return { x: t.pageX, y: t.pageY }; if (t.pageX === n) return { x: t.clientX, y: t.clientY } } } function r(t) { var e, n, s = i.createElement("div"), o = t; for (e in o) if (n = o[e], "undefined" != typeof s.style[n]) return s = null, [n, e]; return [!1] } function a() { return r(["transition", "WebkitTransition", "MozTransition", "OTransition"])[1] } function l() { return r(["transform", "WebkitTransform", "MozTransform", "OTransform", "msTransform"])[0] } function d() { return r(["perspective", "webkitPerspective", "MozPerspective", "OPerspective", "MsPerspective"])[0] } function h() { return "ontouchstart"in e || !!navigator.msMaxTouchPoints } function c() { return e.navigator.msPointerEnabled } var u, p, f; u = { start: 0, startX: 0, startY: 0, current: 0, currentX: 0, currentY: 0, offsetX: 0, offsetY: 0, distance: null, startTime: 0, endTime: 0, updatedX: 0, targetEl: null }, p = { isTouch: !1, isScrolling: !1, isSwiping: !1, direction: !1, inMotion: !1 }, f = { _onDragStart: null, _onDragMove: null, _onDragEnd: null, _transitionEnd: null, _resizer: null, _responsiveCall: null, _goToLoop: null, _checkVisibile: null }, s.Defaults = { items: 3, loop: !1, center: !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: e, responsiveClass: !1, fallbackEasing: "swing", info: !1, nestedItemSelector: !1, itemElement: "div", stageElement: "div", themeClass: "owl-theme", baseClass: "owl-carousel", itemClass: "owl-item", centerClass: "center", activeClass: "active" }, s.Width = { Default: "default", Inner: "inner", Outer: "outer" }, s.Plugins = {}, s.Pipe = [{ filter: ["width", "items", "settings"], run: function(t) { t.current = this._items && this._items[this.relative(this._current)] } }, { filter: ["items", "settings"], run: function() { var t = this._clones; (this.$stage.children(".cloned").length !== t.length || !this.settings.loop && t.length > 0) && (this.$stage.children(".cloned").remove(), this._clones = []) } }, { filter: ["items", "settings"], run: function() { var t, e, i = this._clones, n = this._items, s = this.settings.loop ? i.length - Math.max(2 * this.settings.items, 4) : 0; for (t = 0, e = Math.abs(s / 2); e > t; t++) s > 0 ? (this.$stage.children().eq(n.length + i.length - 1).remove(), i.pop(), this.$stage.children().eq(0).remove(), i.pop()) : (i.push(i.length / 2), this.$stage.append(n[i[i.length - 1]].clone().addClass("cloned")), i.push(n.length - 1 - (i.length - 1) / 2), this.$stage.prepend(n[i[i.length - 1]].clone().addClass("cloned"))) } }, { filter: ["width", "items", "settings"], run: function() { var t, e, i, n = this.settings.rtl ? 1 : -1, s = (this.width() / this.settings.items).toFixed(3), o = 0; for (this._coordinates = [], e = 0, i = this._clones.length + this._items.length; i > e; e++) t = this._mergers[this.relative(e)], t = this.settings.mergeFit && Math.min(t, this.settings.items) || t, o += (this.settings.autoWidth ? this._items[this.relative(e)].width() + this.settings.margin : s * t) * n, this._coordinates.push(o) } }, { filter: ["width", "items", "settings"], run: function() { var e, i, n = (this.width() / this.settings.items).toFixed(3), s = { width: Math.abs(this._coordinates[this._coordinates.length - 1]) + 2 * this.settings.stagePadding, "padding-left": this.settings.stagePadding || "", "padding-right": this.settings.stagePadding || "" }; if (this.$stage.css(s), (s = { width: this.settings.autoWidth ? "auto" : n - this.settings.margin })[this.settings.rtl ? "margin-left" : "margin-right"] = this.settings.margin, !this.settings.autoWidth && t.grep(this._mergers, function(t) { return t > 1 }).length > 0) for (e = 0, i = this._coordinates.length; i > e; e++) s.width = Math.abs(this._coordinates[e]) - Math.abs(this._coordinates[e - 1] || 0) - this.settings.margin, this.$stage.children().eq(e).css(s); else this.$stage.children().css(s) } }, { filter: ["width", "items", "settings"], run: function(t) { t.current && this.reset(this.$stage.children().index(t.current)) } }, { filter: ["position"], run: function() { this.animate(this.coordinates(this._current)) } }, { filter: ["width", "position", "items", "settings"], run: function() { var t, e, i, n, s = this.settings.rtl ? 1 : -1, o = 2 * this.settings.stagePadding, r = this.coordinates(this.current()) + o, a = r + this.width() * s, l = []; for (i = 0, n = this._coordinates.length; n > i; i++) t = this._coordinates[i - 1] || 0, e = Math.abs(this._coordinates[i]) + o * s, (this.op(t, "<=", r) && this.op(t, ">", a) || this.op(e, "<", r) && this.op(e, ">", a)) && l.push(i); this.$stage.children("." + this.settings.activeClass).removeClass(this.settings.activeClass), this.$stage.children(":eq(" + l.join("), :eq(") + ")").addClass(this.settings.activeClass), this.settings.center && (this.$stage.children("." + this.settings.centerClass).removeClass(this.settings.centerClass), this.$stage.children().eq(this.current()).addClass(this.settings.centerClass)) } }], s.prototype.initialize = function() { var e, i, s; if ((this.trigger("initialize"), this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl", this.settings.rtl), this.browserSupport(), this.settings.autoWidth && !0 !== this.state.imagesLoaded) && (e = this.$element.find("img"), i = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : n, s = this.$element.children(i).width(), e.length && 0 >= s)) return this.preloadAutoWidthImages(e), !1; this.$element.addClass("owl-loading"), this.$stage = t("<" + this.settings.stageElement + ' class="owl-stage"/>').wrap(''),
this.$element.append(this.$stage.parent()),
this.replace(this.$element.children().not(this.$stage.parent())),
this._width = this.$element.width(),
this.refresh(),
this.$element.removeClass("owl-loading").addClass("owl-loaded"),
this.eventsCall(),
this.internalEvents(),
this.addTriggerableEvents(),
this.trigger("initialized")
}
,
s.prototype.setup = function() {
var e = this.viewport()
, i = this.options.responsive
, n = -1
, s = null;
i ? (t.each(i, function(t) {
e >= t && t > n && (n = Number(t))
}),
delete (s = t.extend({}, this.options, i[n])).responsive,
s.responsiveClass && this.$element.attr("class", function(t, e) {
return e.replace(/\b owl-responsive-\S+/g, "")
}).addClass("owl-responsive-" + n)) : s = t.extend({}, this.options),
(null === this.settings || this._breakpoint !== n) && (this.trigger("change", {
property: {
name: "settings",
value: s
}
}),
this._breakpoint = n,
this.settings = s,
this.invalidate("settings"),
this.trigger("changed", {
property: {
name: "settings",
value: this.settings
}
}))
}
,
s.prototype.optionsLogic = function() {
this.$element.toggleClass("owl-center", this.settings.center),
this.settings.loop && this._items.length < this.settings.items && (this.settings.loop = !1),
this.settings.autoWidth && (this.settings.stagePadding = !1,
this.settings.merge = !1)
}
,
s.prototype.prepare = function(e) {
var i = this.trigger("prepare", {
content: e
});
return i.data || (i.data = t("<" + this.settings.itemElement + "/>").addClass(this.settings.itemClass).append(e)),
this.trigger("prepared", {
content: i.data
}),
i.data
}
,
s.prototype.update = function() {
for (var e = 0, i = this._pipe.length, n = t.proxy(function(t) {
return this[t]
}, this._invalidated), s = {}; i > e; )
(this._invalidated.all || t.grep(this._pipe[e].filter, n).length > 0) && this._pipe[e].run(s),
e++;
this._invalidated = {}
}
,
s.prototype.width = function(t) {
switch (t = t || s.Width.Default) {
case s.Width.Inner:
case s.Width.Outer:
return this._width;
default:
return this._width - 2 * this.settings.stagePadding + this.settings.margin
}
}
,
s.prototype.refresh = function() {
if (0 === this._items.length)
return !1;
(new Date).getTime(),
this.trigger("refresh"),
this.setup(),
this.optionsLogic(),
this.$stage.addClass("owl-refresh"),
this.update(),
this.$stage.removeClass("owl-refresh"),
this.state.orientation = e.orientation,
this.watchVisibility(),
this.trigger("refreshed")
}
,
s.prototype.eventsCall = function() {
this.e._onDragStart = t.proxy(function(t) {
this.onDragStart(t)
}, this),
this.e._onDragMove = t.proxy(function(t) {
this.onDragMove(t)
}, this),
this.e._onDragEnd = t.proxy(function(t) {
this.onDragEnd(t)
}, this),
this.e._onResize = t.proxy(function(t) {
this.onResize(t)
}, this),
this.e._transitionEnd = t.proxy(function(t) {
this.transitionEnd(t)
}, this),
this.e._preventClick = t.proxy(function(t) {
this.preventClick(t)
}, this)
}
,
s.prototype.onThrottledResize = function() {
e.clearTimeout(this.resizeTimer),
this.resizeTimer = e.setTimeout(this.e._onResize, this.settings.responsiveRefreshRate)
}
,
s.prototype.onResize = function() {
return !!this._items.length && (this._width !== this.$element.width() && (!this.trigger("resize").isDefaultPrevented() && (this._width = this.$element.width(),
this.invalidate("width"),
this.refresh(),
void this.trigger("resized"))))
}
,
s.prototype.eventsRouter = function(t) {
var e = t.type;
"mousedown" === e || "touchstart" === e ? this.onDragStart(t) : "mousemove" === e || "touchmove" === e ? this.onDragMove(t) : "mouseup" === e || "touchend" === e ? this.onDragEnd(t) : "touchcancel" === e && this.onDragEnd(t)
}
,
s.prototype.internalEvents = function() {
var i = (h(),
c());
this.settings.mouseDrag ? (this.$stage.on("mousedown", t.proxy(function(t) {
this.eventsRouter(t)
}, this)),
this.$stage.on("dragstart", function() {
return !1
}),
this.$stage.get(0).onselectstart = function() {
return !1
}
) : this.$element.addClass("owl-text-select-on"),
this.settings.touchDrag && !i && this.$stage.on("touchstart touchcancel", t.proxy(function(t) {
this.eventsRouter(t)
}, this)),
this.transitionEndVendor && this.on(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd, !1),
!1 !== this.settings.responsive && this.on(e, "resize", t.proxy(this.onThrottledResize, this))
}
,
s.prototype.onDragStart = function(n) {
var s, r, a, l;
if (3 === (s = n.originalEvent || n || e.event).which || this.state.isTouch)
return !1;
if ("mousedown" === s.type && this.$stage.addClass("owl-grab"),
this.trigger("drag"),
this.drag.startTime = (new Date).getTime(),
this.speed(0),
this.state.isTouch = !0,
this.state.isScrolling = !1,
this.state.isSwiping = !1,
this.drag.distance = 0,
r = o(s).x,
a = o(s).y,
this.drag.offsetX = this.$stage.position().left,
this.drag.offsetY = this.$stage.position().top,
this.settings.rtl && (this.drag.offsetX = this.$stage.position().left + this.$stage.width() - this.width() + this.settings.margin),
this.state.inMotion && this.support3d)
l = this.getTransformProperty(),
this.drag.offsetX = l,
this.animate(l),
this.state.inMotion = !0;
else if (this.state.inMotion && !this.support3d)
return this.state.inMotion = !1,
!1;
this.drag.startX = r - this.drag.offsetX,
this.drag.startY = a - this.drag.offsetY,
this.drag.start = r - this.drag.startX,
this.drag.targetEl = s.target || s.srcElement,
this.drag.updatedX = this.drag.start,
("IMG" === this.drag.targetEl.tagName || "A" === this.drag.targetEl.tagName) && (this.drag.targetEl.draggable = !1),
t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents", t.proxy(function(t) {
this.eventsRouter(t)
}, this))
}
,
s.prototype.onDragMove = function(t) {
var i, s, r, a, l, d;
this.state.isTouch && (this.state.isScrolling || (s = o(i = t.originalEvent || t || e.event).x,
r = o(i).y,
this.drag.currentX = s - this.drag.startX,
this.drag.currentY = r - this.drag.startY,
this.drag.distance = this.drag.currentX - this.drag.offsetX,
this.drag.distance < 0 ? this.state.direction = this.settings.rtl ? "right" : "left" : this.drag.distance > 0 && (this.state.direction = this.settings.rtl ? "left" : "right"),
this.settings.loop ? this.op(this.drag.currentX, ">", this.coordinates(this.minimum())) && "right" === this.state.direction ? this.drag.currentX -= (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length) : this.op(this.drag.currentX, "<", this.coordinates(this.maximum())) && "left" === this.state.direction && (this.drag.currentX += (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length)) : (a = this.coordinates(this.settings.rtl ? this.maximum() : this.minimum()),
l = this.coordinates(this.settings.rtl ? this.minimum() : this.maximum()),
d = this.settings.pullDrag ? this.drag.distance / 5 : 0,
this.drag.currentX = Math.max(Math.min(this.drag.currentX, a + d), l + d)),
(this.drag.distance > 8 || this.drag.distance < -8) && (i.preventDefault !== n ? i.preventDefault() : i.returnValue = !1,
this.state.isSwiping = !0),
this.drag.updatedX = this.drag.currentX,
(this.drag.currentY > 16 || this.drag.currentY < -16) && !1 === this.state.isSwiping && (this.state.isScrolling = !0,
this.drag.updatedX = this.drag.start),
this.animate(this.drag.updatedX)))
}
,
s.prototype.onDragEnd = function(e) {
var n, s;
if (this.state.isTouch) {
if ("mouseup" === e.type && this.$stage.removeClass("owl-grab"),
this.trigger("dragged"),
this.drag.targetEl.removeAttribute("draggable"),
this.state.isTouch = !1,
this.state.isScrolling = !1,
this.state.isSwiping = !1,
0 === this.drag.distance && !0 !== this.state.inMotion)
return this.state.inMotion = !1,
!1;
this.drag.endTime = (new Date).getTime(),
n = this.drag.endTime - this.drag.startTime,
(Math.abs(this.drag.distance) > 3 || n > 300) && this.removeClick(this.drag.targetEl),
s = this.closest(this.drag.updatedX),
this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed),
this.current(s),
this.invalidate("position"),
this.update(),
this.settings.pullDrag || this.drag.updatedX !== this.coordinates(s) || this.transitionEnd(),
this.drag.distance = 0,
t(i).off(".owl.dragEvents")
}
}
,
s.prototype.removeClick = function(i) {
this.drag.targetEl = i,
t(i).on("click.preventClick", this.e._preventClick),
e.setTimeout(function() {
t(i).off("click.preventClick")
}, 300)
}
,
s.prototype.preventClick = function(e) {
e.preventDefault ? e.preventDefault() : e.returnValue = !1,
e.stopPropagation && e.stopPropagation(),
t(e.target).off("click.preventClick")
}
,
s.prototype.getTransformProperty = function() {
var t;
return !0 !== (16 === (t = (t = e.getComputedStyle(this.$stage.get(0), null).getPropertyValue(this.vendorName + "transform")).replace(/matrix(3d)?\(|\)/g, "").split(",")).length) ? t[4] : t[12]
}
,
s.prototype.closest = function(e) {
var i = -1
, n = 30
, s = this.width()
, o = this.coordinates();
return this.settings.freeDrag || t.each(o, t.proxy(function(t, r) {
return e > r - n && r + n > e ? i = t : this.op(e, "<", r) && this.op(e, ">", o[t + 1] || r - s) && (i = "left" === this.state.direction ? t + 1 : t),
-1 === i
}, this)),
this.settings.loop || (this.op(e, ">", o[this.minimum()]) ? i = e = this.minimum() : this.op(e, "<", o[this.maximum()]) && (i = e = this.maximum())),
i
}
,
s.prototype.animate = function(e) {
this.trigger("translate"),
this.state.inMotion = this.speed() > 0,
this.support3d ? this.$stage.css({
transform: "translate3d(" + e + "px,0px, 0px)",
transition: this.speed() / 1e3 + "s"
}) : this.state.isTouch ? this.$stage.css({
left: e + "px"
}) : this.$stage.animate({
left: e
}, this.speed() / 1e3, this.settings.fallbackEasing, t.proxy(function() {
this.state.inMotion && this.transitionEnd()
}, this))
}
,
s.prototype.current = function(t) {
if (t === n)
return this._current;
if (0 === this._items.length)
return n;
if (t = this.normalize(t),
this._current !== t) {
var e = this.trigger("change", {
property: {
name: "position",
value: t
}
});
e.data !== n && (t = this.normalize(e.data)),
this._current = t,
this.invalidate("position"),
this.trigger("changed", {
property: {
name: "position",
value: this._current
}
})
}
return this._current
}
,
s.prototype.invalidate = function(t) {
this._invalidated[t] = !0
}
,
s.prototype.reset = function(t) {
(t = this.normalize(t)) !== n && (this._speed = 0,
this._current = t,
this.suppress(["translate", "translated"]),
this.animate(this.coordinates(t)),
this.release(["translate", "translated"]))
}
,
s.prototype.normalize = function(e, i) {
var s = i ? this._items.length : this._items.length + this._clones.length;
return !t.isNumeric(e) || 1 > s ? n : e = this._clones.length ? (e % s + s) % s : Math.max(this.minimum(i), Math.min(this.maximum(i), e))
}
,
s.prototype.relative = function(t) {
return t = this.normalize(t),
t -= this._clones.length / 2,
this.normalize(t, !0)
}
,
s.prototype.maximum = function(t) {
var e, i, n, s = 0, o = this.settings;
if (t)
return this._items.length - 1;
if (!o.loop && o.center)
e = this._items.length - 1;
else if (o.loop || o.center)
if (o.loop || o.center)
e = this._items.length + o.items;
else {
if (!o.autoWidth && !o.merge)
throw "Can not detect maximum absolute position.";
for (revert = o.rtl ? 1 : -1,
i = this.$stage.width() - this.$element.width(); (n = this.coordinates(s)) && !(n * revert >= i); )
e = ++s
}
else
e = this._items.length - o.items;
return e
}
,
s.prototype.minimum = function(t) {
return t ? 0 : this._clones.length / 2
}
,
s.prototype.items = function(t) {
return t === n ? this._items.slice() : (t = this.normalize(t, !0),
this._items[t])
}
,
s.prototype.mergers = function(t) {
return t === n ? this._mergers.slice() : (t = this.normalize(t, !0),
this._mergers[t])
}
,
s.prototype.clones = function(e) {
var i = this._clones.length / 2
, s = i + this._items.length
, o = function(t) {
return t % 2 == 0 ? s + t / 2 : i - (t + 1) / 2
};
return e === n ? t.map(this._clones, function(t, e) {
return o(e)
}) : t.map(this._clones, function(t, i) {
return t === e ? o(i) : null
})
}
,
s.prototype.speed = function(t) {
return t !== n && (this._speed = t),
this._speed
}
,
s.prototype.coordinates = function(e) {
var i = null;
return e === n ? t.map(this._coordinates, t.proxy(function(t, e) {
return this.coordinates(e)
}, this)) : (this.settings.center ? (i = this._coordinates[e],
i += (this.width() - i + (this._coordinates[e - 1] || 0)) / 2 * (this.settings.rtl ? -1 : 1)) : i = this._coordinates[e - 1] || 0,
i)
}
,
s.prototype.duration = function(t, e, i) {
return Math.min(Math.max(Math.abs(e - t), 1), 6) * Math.abs(i || this.settings.smartSpeed)
}
,
s.prototype.to = function(i, n) {
if (this.settings.loop) {
var s = i - this.relative(this.current())
, o = this.current()
, r = this.current()
, a = this.current() + s
, l = 0 > r - a
, d = this._clones.length + this._items.length;
a < this.settings.items && !1 === l ? (o = r + this._items.length,
this.reset(o)) : a >= d - this.settings.items && !0 === l && (o = r - this._items.length,
this.reset(o)),
e.clearTimeout(this.e._goToLoop),
this.e._goToLoop = e.setTimeout(t.proxy(function() {
this.speed(this.duration(this.current(), o + s, n)),
this.current(o + s),
this.update()
}, this), 30)
} else
this.speed(this.duration(this.current(), i, n)),
this.current(i),
this.update()
}
,
s.prototype.next = function(t) {
t = t || !1,
this.to(this.relative(this.current()) + 1, t)
}
,
s.prototype.prev = function(t) {
t = t || !1,
this.to(this.relative(this.current()) - 1, t)
}
,
s.prototype.transitionEnd = function(t) {
return (t === n || (t.stopPropagation(),
(t.target || t.srcElement || t.originalTarget) === this.$stage.get(0))) && (this.state.inMotion = !1,
void this.trigger("translated"))
}
,
s.prototype.viewport = function() {
var n;
if (this.options.responsiveBaseElement !== e)
n = t(this.options.responsiveBaseElement).width();
else if (e.innerWidth)
n = e.innerWidth;
else {
if (!i.documentElement || !i.documentElement.clientWidth)
throw "Can not detect viewport width.";
n = i.documentElement.clientWidth
}
return n
}
,
s.prototype.replace = function(e) {
this.$stage.empty(),
this._items = [],
e && (e = e instanceof jQuery ? e : t(e)),
this.settings.nestedItemSelector && (e = e.find("." + this.settings.nestedItemSelector)),
e.filter(function() {
return 1 === this.nodeType
}).each(t.proxy(function(t, e) {
e = this.prepare(e),
this.$stage.append(e),
this._items.push(e),
this._mergers.push(1 * e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1)
}, this)),
this.reset(t.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0),
this.invalidate("items")
}
,
s.prototype.add = function(t, e) {
e = e === n ? this._items.length : this.normalize(e, !0),
this.trigger("add", {
content: t,
position: e
}),
0 === this._items.length || e === this._items.length ? (this.$stage.append(t),
this._items.push(t),
this._mergers.push(1 * t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1)) : (this._items[e].before(t),
this._items.splice(e, 0, t),
this._mergers.splice(e, 0, 1 * t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1)),
this.invalidate("items"),
this.trigger("added", {
content: t,
position: e
})
}
,
s.prototype.remove = function(t) {
(t = this.normalize(t, !0)) !== n && (this.trigger("remove", {
content: this._items[t],
position: t
}),
this._items[t].remove(),
this._items.splice(t, 1),
this._mergers.splice(t, 1),
this.invalidate("items"),
this.trigger("removed", {
content: null,
position: t
}))
}
,
s.prototype.addTriggerableEvents = function() {
var e = t.proxy(function(e, i) {
return t.proxy(function(t) {
t.relatedTarget !== this && (this.suppress([i]),
e.apply(this, [].slice.call(arguments, 1)),
this.release([i]))
}, this)
}, this);
t.each({
next: this.next,
prev: this.prev,
to: this.to,
destroy: this.destroy,
refresh: this.refresh,
replace: this.replace,
add: this.add,
remove: this.remove
}, t.proxy(function(t, i) {
this.$element.on(t + ".owl.carousel", e(i, t + ".owl.carousel"))
}, this))
}
,
s.prototype.watchVisibility = function() {
function i(t) {
return t.offsetWidth > 0 && t.offsetHeight > 0
}
function n() {
i(this.$element.get(0)) && (this.$element.removeClass("owl-hidden"),
this.refresh(),
e.clearInterval(this.e._checkVisibile))
}
i(this.$element.get(0)) || (this.$element.addClass("owl-hidden"),
e.clearInterval(this.e._checkVisibile),
this.e._checkVisibile = e.setInterval(t.proxy(n, this), 500))
}
,
s.prototype.preloadAutoWidthImages = function(e) {
var i, n, s, o;
i = 0,
n = this,
e.each(function(r, a) {
s = t(a),
(o = new Image).onload = function() {
i++,
s.attr("src", o.src),
s.css("opacity", 1),
i >= e.length && (n.state.imagesLoaded = !0,
n.initialize())
}
,
o.src = s.attr("src") || s.attr("data-src") || s.attr("data-src-retina")
})
}
,
s.prototype.destroy = function() {
for (var n in this.$element.hasClass(this.settings.themeClass) && this.$element.removeClass(this.settings.themeClass),
!1 !== this.settings.responsive && t(e).off("resize.owl.carousel"),
this.transitionEndVendor && this.off(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd),
this._plugins)
this._plugins[n].destroy();
(this.settings.mouseDrag || this.settings.touchDrag) && (this.$stage.off("mousedown touchstart touchcancel"),
t(i).off(".owl.dragEvents"),
this.$stage.get(0).onselectstart = function() {}
,
this.$stage.off("dragstart", function() {
return !1
})),
this.$element.off(".owl"),
this.$stage.children(".cloned").remove(),
this.e = null,
this.$element.removeData("owlCarousel"),
this.$stage.children().contents().unwrap(),
this.$stage.children().unwrap(),
this.$stage.unwrap()
}
,
s.prototype.op = function(t, e, i) {
var n = this.settings.rtl;
switch (e) {
case "<":
return n ? t > i : i > t;
case ">":
return n ? i > t : t > i;
case ">=":
return n ? i >= t : t >= i;
case "<=":
return n ? t >= i : i >= t
}
}
,
s.prototype.on = function(t, e, i, n) {
t.addEventListener ? t.addEventListener(e, i, n) : t.attachEvent && t.attachEvent("on" + e, i)
}
,
s.prototype.off = function(t, e, i, n) {
t.removeEventListener ? t.removeEventListener(e, i, n) : t.detachEvent && t.detachEvent("on" + e, i)
}
,
s.prototype.trigger = function(e, i, n) {
var s = {
item: {
count: this._items.length,
index: this.current()
}
}
, o = t.camelCase(t.grep(["on", e, n], function(t) {
return t
}).join("-").toLowerCase())
, r = t.Event([e, "owl", n || "carousel"].join(".").toLowerCase(), t.extend({
relatedTarget: this
}, s, i));
return this._supress[e] || (t.each(this._plugins, function(t, e) {
e.onTrigger && e.onTrigger(r)
}),
this.$element.trigger(r),
this.settings && "function" == typeof this.settings[o] && this.settings[o].apply(this, r)),
r
}
,
s.prototype.suppress = function(e) {
t.each(e, t.proxy(function(t, e) {
this._supress[e] = !0
}, this))
}
,
s.prototype.release = function(e) {
t.each(e, t.proxy(function(t, e) {
delete this._supress[e]
}, this))
}
,
s.prototype.browserSupport = function() {
if (this.support3d = d(),
this.support3d) {
this.transformVendor = l();
var t = ["transitionend", "webkitTransitionEnd", "transitionend", "oTransitionEnd"];
this.transitionEndVendor = t[a()],
this.vendorName = this.transformVendor.replace(/Transform/i, ""),
this.vendorName = "" !== this.vendorName ? "-" + this.vendorName.toLowerCase() + "-" : ""
}
this.state.orientation = e.orientation
}
,
t.fn.owlCarousel = function(e) {
return this.each(function() {
t(this).data("owlCarousel") || t(this).data("owlCarousel", new s(this,e))
})
}
,
t.fn.owlCarousel.Constructor = s
}(window.Zepto || window.jQuery, window, document),
function(t, e) {
var i = function(e) {
this._core = e,
this._loaded = [],
this._handlers = {
"initialized.owl.carousel change.owl.carousel": t.proxy(function(e) {
if (e.namespace && this._core.settings && this._core.settings.lazyLoad && (e.property && "position" == e.property.name || "initialized" == e.type))
for (var i = this._core.settings, n = i.center && Math.ceil(i.items / 2) || i.items, s = i.center && -1 * n || 0, o = (e.property && e.property.value || this._core.current()) + s, r = this._core.clones().length, a = t.proxy(function(t, e) {
this.load(e)
}, this); s++ < n; )
this.load(r / 2 + this._core.relative(o)),
r && t.each(this._core.clones(this._core.relative(o++)), a)
}, this)
},
this._core.options = t.extend({}, i.Defaults, this._core.options),
this._core.$element.on(this._handlers)
};
i.Defaults = {
lazyLoad: !1
},
i.prototype.load = function(i) {
var n = this._core.$stage.children().eq(i)
, s = n && n.find(".owl-lazy");
!s || t.inArray(n.get(0), this._loaded) > -1 || (s.each(t.proxy(function(i, n) {
var s, o = t(n), r = e.devicePixelRatio > 1 && o.attr("data-src-retina") || o.attr("data-src");
this._core.trigger("load", {
element: o,
url: r
}, "lazy"),
o.is("img") ? o.one("load.owl.lazy", t.proxy(function() {
o.css("opacity", 1),
this._core.trigger("loaded", {
element: o,
url: r
}, "lazy")
}, this)).attr("src", r) : ((s = new Image).onload = t.proxy(function() {
o.css({
"background-image": "url(" + r + ")",
opacity: "1"
}),
this._core.trigger("loaded", {
element: o,
url: r
}, "lazy")
}, this),
s.src = r)
}, this)),
this._loaded.push(n.get(0)))
}
,
i.prototype.destroy = function() {
var t, e;
for (t in this.handlers)
this._core.$element.off(t, this.handlers[t]);
for (e in Object.getOwnPropertyNames(this))
"function" != typeof this[e] && (this[e] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.Lazy = i
}(window.Zepto || window.jQuery, window, document),
function(t) {
var e = function(i) {
this._core = i,
this._handlers = {
"initialized.owl.carousel": t.proxy(function() {
this._core.settings.autoHeight && this.update()
}, this),
"changed.owl.carousel": t.proxy(function(t) {
this._core.settings.autoHeight && "position" == t.property.name && this.update()
}, this),
"loaded.owl.lazy": t.proxy(function(t) {
this._core.settings.autoHeight && t.element.closest("." + this._core.settings.itemClass) === this._core.$stage.children().eq(this._core.current()) && this.update()
}, this)
},
this._core.options = t.extend({}, e.Defaults, this._core.options),
this._core.$element.on(this._handlers)
};
e.Defaults = {
autoHeight: !1,
autoHeightClass: "owl-height"
},
e.prototype.update = function() {
this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)
}
,
e.prototype.destroy = function() {
var t, e;
for (t in this._handlers)
this._core.$element.off(t, this._handlers[t]);
for (e in Object.getOwnPropertyNames(this))
"function" != typeof this[e] && (this[e] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.AutoHeight = e
}(window.Zepto || window.jQuery, window, document),
function(t, e, i) {
var n = function(e) {
this._core = e,
this._videos = {},
this._playing = null,
this._fullscreen = !1,
this._handlers = {
"resize.owl.carousel": t.proxy(function(t) {
this._core.settings.video && !this.isInFullScreen() && t.preventDefault()
}, this),
"refresh.owl.carousel changed.owl.carousel": t.proxy(function() {
this._playing && this.stop()
}, this),
"prepared.owl.carousel": t.proxy(function(e) {
var i = t(e.content).find(".owl-video");
i.length && (i.css("display", "none"),
this.fetch(i, t(e.content)))
}, this)
},
this._core.options = t.extend({}, n.Defaults, this._core.options),
this._core.$element.on(this._handlers),
this._core.$element.on("click.owl.video", ".owl-video-play-icon", t.proxy(function(t) {
this.play(t)
}, this))
};
n.Defaults = {
video: !1,
videoHeight: !1,
videoWidth: !1
},
n.prototype.fetch = function(t, e) {
var i = t.attr("data-vimeo-id") ? "vimeo" : "youtube"
, n = t.attr("data-vimeo-id") || t.attr("data-youtube-id")
, s = t.attr("data-width") || this._core.settings.videoWidth
, o = t.attr("data-height") || this._core.settings.videoHeight
, r = t.attr("href");
if (!r)
throw new Error("Missing video URL.");
if ((n = r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu") > -1)
i = "youtube";
else {
if (!(n[3].indexOf("vimeo") > -1))
throw new Error("Video URL not supported.");
i = "vimeo"
}
n = n[6],
this._videos[r] = {
type: i,
id: n,
width: s,
height: o
},
e.attr("data-video", r),
this.thumbnail(t, this._videos[r])
}
,
n.prototype.thumbnail = function(e, i) {
var n, s, o, r = i.width && i.height ? 'style="width:' + i.width + "px;height:" + i.height + 'px;"' : "", a = e.find("img"), l = "src", d = "", h = this._core.settings, c = function(t) {
s = '',
n = h.lazyLoad ? '' : '',
e.after(n),
e.after(s)
};
return e.wrap('"),
this._core.settings.lazyLoad && (l = "data-src",
d = "owl-lazy"),
a.length ? (c(a.attr(l)),
a.remove(),
!1) : void ("youtube" === i.type ? (o = "http://img.youtube.com/vi/" + i.id + "/hqdefault.jpg",
c(o)) : "vimeo" === i.type && t.ajax({
type: "GET",
url: "http://vimeo.com/api/v2/video/" + i.id + ".json",
jsonp: "callback",
dataType: "jsonp",
success: function(t) {
o = t[0].thumbnail_large,
c(o)
}
}))
}
,
n.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
}
,
n.prototype.play = function(e) {
this._core.trigger("play", null, "video"),
this._playing && this.stop();
var i, n, s = t(e.target || e.srcElement), o = s.closest("." + this._core.settings.itemClass), r = this._videos[o.attr("data-video")], a = r.width || "100%", l = r.height || this._core.$stage.height();
"youtube" === r.type ? i = '' : "vimeo" === r.type && (i = ''),
o.addClass("owl-video-playing"),
this._playing = o,
n = t('
' + i + "
"),
s.after(n)
}
,
n.prototype.isInFullScreen = function() {
var n = i.fullscreenElement || i.mozFullScreenElement || i.webkitFullscreenElement;
return n && t(n).parent().hasClass("owl-video-frame") && (this._core.speed(0),
this._fullscreen = !0),
!(n && this._fullscreen && this._playing) && (this._fullscreen ? (this._fullscreen = !1,
!1) : !this._playing || this._core.state.orientation === e.orientation || (this._core.state.orientation = e.orientation,
!1))
}
,
n.prototype.destroy = function() {
var t, e;
for (t in this._core.$element.off("click.owl.video"),
this._handlers)
this._core.$element.off(t, this._handlers[t]);
for (e in Object.getOwnPropertyNames(this))
"function" != typeof this[e] && (this[e] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.Video = n
}(window.Zepto || window.jQuery, window, document),
function(t, e, i, n) {
var s = function(e) {
this.core = e,
this.core.options = t.extend({}, s.Defaults, this.core.options),
this.swapping = !0,
this.previous = n,
this.next = n,
this.handlers = {
"change.owl.carousel": t.proxy(function(t) {
"position" == t.property.name && (this.previous = this.core.current(),
this.next = t.property.value)
}, this),
"drag.owl.carousel dragged.owl.carousel translated.owl.carousel": t.proxy(function(t) {
this.swapping = "translated" == t.type
}, this),
"translate.owl.carousel": t.proxy(function() {
this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap()
}, this)
},
this.core.$element.on(this.handlers)
};
s.Defaults = {
animateOut: !1,
animateIn: !1
},
s.prototype.swap = function() {
if (1 === this.core.settings.items && this.core.support3d) {
this.core.speed(0);
var e, i = t.proxy(this.clear, this), n = this.core.$stage.children().eq(this.previous), s = this.core.$stage.children().eq(this.next), o = this.core.settings.animateIn, r = this.core.settings.animateOut;
this.core.current() !== this.previous && (r && (e = this.core.coordinates(this.previous) - this.core.coordinates(this.next),
n.css({
left: e + "px"
}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", i)),
o && s.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", i))
}
}
,
s.prototype.clear = function(e) {
t(e.target).css({
left: ""
}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),
this.core.transitionEnd()
}
,
s.prototype.destroy = function() {
var t, e;
for (t in this.handlers)
this.core.$element.off(t, this.handlers[t]);
for (e in Object.getOwnPropertyNames(this))
"function" != typeof this[e] && (this[e] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.Animate = s
}(window.Zepto || window.jQuery, window, document),
function(t, e, i) {
var n = function(e) {
this.core = e,
this.core.options = t.extend({}, n.Defaults, this.core.options),
this.handlers = {
"translated.owl.carousel refreshed.owl.carousel": t.proxy(function() {
this.autoplay()
}, this),
"play.owl.autoplay": t.proxy(function(t, e, i) {
this.play(e, i)
}, this),
"stop.owl.autoplay": t.proxy(function() {
this.stop()
}, this),
"mouseover.owl.autoplay": t.proxy(function() {
this.core.settings.autoplayHoverPause && this.pause()
}, this),
"mouseleave.owl.autoplay": t.proxy(function() {
this.core.settings.autoplayHoverPause && this.autoplay()
}, this)
},
this.core.$element.on(this.handlers)
};
n.Defaults = {
autoplay: !1,
autoplayTimeout: 5e3,
autoplayHoverPause: !1,
autoplaySpeed: !1
},
n.prototype.autoplay = function() {
this.core.settings.autoplay && !this.core.state.videoPlay ? (e.clearInterval(this.interval),
this.interval = e.setInterval(t.proxy(function() {
this.play()
}, this), this.core.settings.autoplayTimeout)) : e.clearInterval(this.interval)
}
,
n.prototype.play = function() {
return !0 === i.hidden || this.core.state.isTouch || this.core.state.isScrolling || this.core.state.isSwiping || this.core.state.inMotion ? void 0 : !1 === this.core.settings.autoplay ? void e.clearInterval(this.interval) : void this.core.next(this.core.settings.autoplaySpeed)
}
,
n.prototype.stop = function() {
e.clearInterval(this.interval)
}
,
n.prototype.pause = function() {
e.clearInterval(this.interval)
}
,
n.prototype.destroy = function() {
var t, i;
for (t in e.clearInterval(this.interval),
this.handlers)
this.core.$element.off(t, this.handlers[t]);
for (i in Object.getOwnPropertyNames(this))
"function" != typeof this[i] && (this[i] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.autoplay = n
}(window.Zepto || window.jQuery, window, document),
function(t) {
"use strict";
var e = function(i) {
this._core = i,
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": t.proxy(function(e) {
this._core.settings.dotsData && this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))
}, this),
"add.owl.carousel": t.proxy(function(e) {
this._core.settings.dotsData && this._templates.splice(e.position, 0, t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))
}, this),
"remove.owl.carousel prepared.owl.carousel": t.proxy(function(t) {
this._core.settings.dotsData && this._templates.splice(t.position, 1)
}, this),
"change.owl.carousel": t.proxy(function(t) {
if ("position" == t.property.name && !this._core.state.revert && !this._core.settings.loop && this._core.settings.navRewind) {
var e = this._core.current()
, i = this._core.maximum()
, n = this._core.minimum();
t.data = t.property.value > i ? e >= i ? n : i : t.property.value < n ? i : t.property.value
}
}, this),
"changed.owl.carousel": t.proxy(function(t) {
"position" == t.property.name && this.draw()
}, this),
"refreshed.owl.carousel": t.proxy(function() {
this._initialized || (this.initialize(),
this._initialized = !0),
this._core.trigger("refresh", null, "navigation"),
this.update(),
this.draw(),
this._core.trigger("refreshed", null, "navigation")
}, this)
},
this._core.options = t.extend({}, e.Defaults, this._core.options),
this.$element.on(this._handlers)
};
e.Defaults = {
nav: !1,
navRewind: !0,
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,
dotData: !1,
dotsSpeed: !1,
dotsContainer: !1,
controlsClass: "owl-controls"
},
e.prototype.initialize = function() {
var e, i, n = this._core.settings;
for (i in n.dotsData || (this._templates = [t("").addClass(n.dotClass).append(t("")).prop("outerHTML")]),
n.navContainer && n.dotsContainer || (this._controls.$container = t("
").addClass(n.controlsClass).appendTo(this.$element)),
this._controls.$indicators = n.dotsContainer ? t(n.dotsContainer) : t("
").hide().addClass(n.dotsClass).appendTo(this._controls.$container),
this._controls.$indicators.on("click", "div", t.proxy(function(e) {
var i = t(e.target).parent().is(this._controls.$indicators) ? t(e.target).index() : t(e.target).parent().index();
e.preventDefault(),
this.to(i, n.dotsSpeed)
}, this)),
e = n.navContainer ? t(n.navContainer) : t("
").addClass(n.navContainerClass).prependTo(this._controls.$container),
this._controls.$next = t("<" + n.navElement + ">"),
this._controls.$previous = this._controls.$next.clone(),
this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(e).on("click", t.proxy(function() {
this.prev(n.navSpeed)
}, this)),
this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(e).on("click", t.proxy(function() {
this.next(n.navSpeed)
}, this)),
this._overrides)
this._core[i] = t.proxy(this[i], this)
}
,
e.prototype.destroy = function() {
var t, e, i, n;
for (t in this._handlers)
this.$element.off(t, this._handlers[t]);
for (e in this._controls)
this._controls[e].remove();
for (n in this.overides)
this._core[n] = this._overrides[n];
for (i in Object.getOwnPropertyNames(this))
"function" != typeof this[i] && (this[i] = null)
}
,
e.prototype.update = function() {
var t, e, i = this._core.settings, n = this._core.clones().length / 2, s = n + this._core.items().length, o = i.center || i.autoWidth || i.dotData ? 1 : i.dotsEach || i.items;
if ("page" !== i.slideBy && (i.slideBy = Math.min(i.slideBy, i.items)),
i.dots || "page" == i.slideBy)
for (this._pages = [],
t = n,
e = 0,
0; s > t; t++)
(e >= o || 0 === e) && (this._pages.push({
start: t - n,
end: t - n + o - 1
}),
e = 0,
0),
e += this._core.mergers(this._core.relative(t))
}
,
e.prototype.draw = function() {
var e, i, n = "", s = this._core.settings, o = (this._core.$stage.children(),
this._core.relative(this._core.current()));
if (!s.nav || s.loop || s.navRewind || (this._controls.$previous.toggleClass("disabled", 0 >= o),
this._controls.$next.toggleClass("disabled", o >= this._core.maximum())),
this._controls.$previous.toggle(s.nav),
this._controls.$next.toggle(s.nav),
s.dots) {
if (e = this._pages.length - this._controls.$indicators.children().length,
s.dotData && 0 !== e) {
for (i = 0; i < this._controls.$indicators.children().length; i++)
n += this._templates[this._core.relative(i)];
this._controls.$indicators.html(n)
} else
e > 0 ? (n = new Array(e + 1).join(this._templates[0]),
this._controls.$indicators.append(n)) : 0 > e && this._controls.$indicators.children().slice(e).remove();
this._controls.$indicators.find(".active").removeClass("active"),
this._controls.$indicators.children().eq(t.inArray(this.current(), this._pages)).addClass("active")
}
this._controls.$indicators.toggle(s.dots)
}
,
e.prototype.onTrigger = function(e) {
var i = this._core.settings;
e.page = {
index: t.inArray(this.current(), this._pages),
count: this._pages.length,
size: i && (i.center || i.autoWidth || i.dotData ? 1 : i.dotsEach || i.items)
}
}
,
e.prototype.current = function() {
var e = this._core.relative(this._core.current());
return t.grep(this._pages, function(t) {
return t.start <= e && t.end >= e
}).pop()
}
,
e.prototype.getPosition = function(e) {
var i, n, s = this._core.settings;
return "page" == s.slideBy ? (i = t.inArray(this.current(), this._pages),
n = this._pages.length,
e ? ++i : --i,
i = this._pages[(i % n + n) % n].start) : (i = this._core.relative(this._core.current()),
n = this._core.items().length,
e ? i += s.slideBy : i -= s.slideBy),
i
}
,
e.prototype.next = function(e) {
t.proxy(this._overrides.to, this._core)(this.getPosition(!0), e)
}
,
e.prototype.prev = function(e) {
t.proxy(this._overrides.to, this._core)(this.getPosition(!1), e)
}
,
e.prototype.to = function(e, i, n) {
var s;
n ? t.proxy(this._overrides.to, this._core)(e, i) : (s = this._pages.length,
t.proxy(this._overrides.to, this._core)(this._pages[(e % s + s) % s].start, i))
}
,
t.fn.owlCarousel.Constructor.Plugins.Navigation = e
}(window.Zepto || window.jQuery, window, document),
function(t, e) {
"use strict";
var i = function(n) {
this._core = n,
this._hashes = {},
this.$element = this._core.$element,
this._handlers = {
"initialized.owl.carousel": t.proxy(function() {
"URLHash" == this._core.settings.startPosition && t(e).trigger("hashchange.owl.navigation")
}, this),
"prepared.owl.carousel": t.proxy(function(e) {
var i = t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");
this._hashes[i] = e.content
}, this)
},
this._core.options = t.extend({}, i.Defaults, this._core.options),
this.$element.on(this._handlers),
t(e).on("hashchange.owl.navigation", t.proxy(function() {
var t = e.location.hash.substring(1)
, i = this._core.$stage.children()
, n = this._hashes[t] && i.index(this._hashes[t]) || 0;
return !!t && void this._core.to(n, !1, !0)
}, this))
};
i.Defaults = {
URLhashListener: !1
},
i.prototype.destroy = function() {
var i, n;
for (i in t(e).off("hashchange.owl.navigation"),
this._handlers)
this._core.$element.off(i, this._handlers[i]);
for (n in Object.getOwnPropertyNames(this))
"function" != typeof this[n] && (this[n] = null)
}
,
t.fn.owlCarousel.Constructor.Plugins.Hash = i
}(window.Zepto || window.jQuery, window, document),
function(t) {
var e = {}
, n = {
mode: "horizontal",
slideSelector: "",
infiniteLoop: !0,
hideControlOnEnd: !1,
speed: 500,
easing: null,
slideMargin: 0,
startSlide: 0,
randomStart: !1,
captions: !1,
ticker: !1,
tickerHover: !1,
adaptiveHeight: !1,
adaptiveHeightSpeed: 500,
video: !1,
useCSS: !0,
preloadImages: "visible",
responsive: !0,
slideZIndex: 50,
touchEnabled: !0,
swipeThreshold: 50,
oneToOneTouch: !0,
preventDefaultSwipeX: !0,
preventDefaultSwipeY: !1,
pager: !0,
pagerType: "full",
pagerShortSeparator: " / ",
pagerSelector: null,
buildPager: null,
pagerCustom: null,
controls: !0,
nextText: "Next",
prevText: "Prev",
nextSelector: null,
prevSelector: null,
autoControls: !1,
startText: "Start",
stopText: "Stop",
autoControlsCombine: !1,
autoControlsSelector: null,
auto: !1,
pause: 4e3,
autoStart: !0,
autoDirection: "next",
autoHover: !1,
autoDelay: 0,
minSlides: 1,
maxSlides: 1,
moveSlides: 0,
slideWidth: 0,
onSliderLoad: function() {},
onSlideBefore: function() {},
onSlideAfter: function() {},
onSlideNext: function() {},
onSlidePrev: function() {},
onSliderResize: function() {}
};
t.fn.bxSlider = function(s) {
if (0 == this.length)
return this;
if (this.length > 1)
return this.each(function() {
t(this).bxSlider(s)
}),
this;
var o = {}
, r = this;
e.el = this;
var a = t(window).width()
, l = t(window).height()
, d = function() {
o.settings = t.extend({}, n, s),
o.settings.slideWidth = parseInt(o.settings.slideWidth),
o.children = r.children(o.settings.slideSelector),
o.children.length < o.settings.minSlides && (o.settings.minSlides = o.children.length),
o.children.length < o.settings.maxSlides && (o.settings.maxSlides = o.children.length),
o.settings.randomStart && (o.settings.startSlide = Math.floor(Math.random() * o.children.length)),
o.active = {
index: o.settings.startSlide
},
o.carousel = o.settings.minSlides > 1 || o.settings.maxSlides > 1,
o.carousel && (o.settings.preloadImages = "all"),
o.minThreshold = o.settings.minSlides * o.settings.slideWidth + (o.settings.minSlides - 1) * o.settings.slideMargin,
o.maxThreshold = o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin,
o.working = !1,
o.controls = {},
o.interval = null,
o.animProp = "vertical" == o.settings.mode ? "top" : "left",
o.usingCSS = o.settings.useCSS && "fade" != o.settings.mode && function() {
var t = document.createElement("div")
, e = ["WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"];
for (var i in e)
if (void 0 !== t.style[e[i]])
return o.cssPrefix = e[i].replace("Perspective", "").toLowerCase(),
o.animProp = "-" + o.cssPrefix + "-transform",
!0;
return !1
}(),
"vertical" == o.settings.mode && (o.settings.maxSlides = o.settings.minSlides),
r.data("origStyle", r.attr("style")),
r.children(o.settings.slideSelector).each(function() {
t(this).data("origStyle", t(this).attr("style"))
}),
h()
}
, h = function() {
r.wrap('' + t + " ")
}),
$(".section-anchor:first-child").addClass("active"),
$(".section-anchor").hover(function() {
$(".section-anchor.active").removeClass("active"),
$(this).addClass("active hovered")
}, function() {
$(this).removeClass("hovered")
}),
$("#section-anchor").on("init reinit refresh afterChange", function() {
$(this).find(".section-anchor.active").removeClass("active"),
$(this).find(".slick-current").addClass("active")
}),
$("#section-anchor").slick({
slidesToShow: 4,
slidesToScroll: 1,
arrows: !1,
autoplay: !0,
responsive: [{
breakpoint: 900,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}, {
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
}),
$(".section-anchor a").click(function() {
var t = $(this).attr("href");
return $([document.documentElement, document.body]).animate({
scrollTop: $(t).offset().top - 85,
easing: "linear"
}, 1e3),
!1
}),
$(window).scroll(function() {
$(".onscreen").each(function() {
let t = $(this).find(".onscreen-item").get(0).getBoundingClientRect();
t.y + t.height / 2 < $(window).height() && ($(this).hasClass("in") || ($(".onscreen.in").not(this).removeClass("in"),
$(this).addClass("in"))),
t.y >= $(window).height() && $(this).removeClass("in")
})
})
}),
$(document).ajaxComplete(function() {
$(".dynamic-form").removeClass("loader"),
$(".dynamic-form .actions .btn").click(function() {
var t = $("#header").outerHeight() + 100;
$(this).parentsUntil(".dynamic-form").parent().addClass("loader"),
$("html, body").animate({
scrollTop: $(this).parentsUntil(".dynamic-form").parent().offset().top - t - 60
}, 300)
})
});
'),
o.viewport = r.parent(),
o.loader = t(''),
o.viewport.prepend(o.loader),
r.css({
width: "horizontal" == o.settings.mode ? 100 * o.children.length + 215 + "%" : "auto",
position: "relative"
}),
o.usingCSS && o.settings.easing ? r.css("-" + o.cssPrefix + "-transition-timing-function", o.settings.easing) : o.settings.easing || (o.settings.easing = "swing"),
m(),
o.viewport.css({
width: "100%",
overflow: "hidden",
position: "relative"
}),
o.viewport.parent().css({
maxWidth: f()
}),
o.settings.pager || o.viewport.parent().css({
margin: "0 auto 0px"
}),
o.children.css({
float: "horizontal" == o.settings.mode ? "left" : "none",
listStyle: "none",
position: "relative"
}),
o.children.css("width", g()),
"horizontal" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginRight", o.settings.slideMargin),
"vertical" == o.settings.mode && o.settings.slideMargin > 0 && o.children.css("marginBottom", o.settings.slideMargin),
"fade" == o.settings.mode && (o.children.css({
position: "absolute",
zIndex: 0,
display: "none"
}),
o.children.eq(o.settings.startSlide).css({
zIndex: o.settings.slideZIndex,
display: "block"
})),
o.controls.el = t(''),
o.settings.captions && E(),
o.active.last = o.settings.startSlide == v() - 1,
o.settings.video && r.fitVids();
var e = o.children.eq(o.settings.startSlide);
"all" == o.settings.preloadImages && (e = o.children),
o.settings.ticker ? o.settings.pager = !1 : (o.settings.pager && x(),
o.settings.controls && S(),
o.settings.auto && o.settings.autoControls && C(),
(o.settings.controls || o.settings.autoControls || o.settings.pager) && o.viewport.after(o.controls.el)),
c(e, u)
}
, c = function(e, i) {
var n = e.find("img, iframe").length;
if (0 != n) {
var s = 0;
e.find("img, iframe").each(function() {
t(this).one("load", function() {
++s == n && i()
}).each(function() {
this.complete && t(this).load()
})
})
} else
i()
}
, u = function() {
if (o.settings.infiniteLoop && "fade" != o.settings.mode && !o.settings.ticker) {
var e = "vertical" == o.settings.mode ? o.settings.minSlides : o.settings.maxSlides
, i = o.children.slice(0, e).clone().addClass("bx-clone")
, n = o.children.slice(-e).clone().addClass("bx-clone");
r.append(i).prepend(n)
}
o.loader.remove(),
w(),
"vertical" == o.settings.mode && (o.settings.adaptiveHeight = !0),
o.viewport.height(p()),
r.redrawSlider(),
o.settings.onSliderLoad(o.active.index),
o.initialized = !0,
o.settings.responsive && t(window).bind("resize", H),
o.settings.auto && o.settings.autoStart && A(),
o.settings.ticker && j(),
o.settings.pager && I(o.settings.startSlide),
o.settings.controls && P(),
o.settings.touchEnabled && !o.settings.ticker && O()
}
, p = function() {
var e = 0
, n = t();
if ("vertical" == o.settings.mode || o.settings.adaptiveHeight)
if (o.carousel) {
var s = 1 == o.settings.moveSlides ? o.active.index : o.active.index * y();
for (n = o.children.eq(s),
i = 1; i <= o.settings.maxSlides - 1; i++)
n = s + i >= o.children.length ? n.add(o.children.eq(i - 1)) : n.add(o.children.eq(s + i))
} else
n = o.children.eq(o.active.index);
else
n = o.children;
return "vertical" == o.settings.mode ? (n.each(function() {
e += t(this).outerHeight()
}),
o.settings.slideMargin > 0 && (e += o.settings.slideMargin * (o.settings.minSlides - 1))) : e = Math.max.apply(Math, n.map(function() {
return t(this).outerHeight(!1)
}).get()),
e
}
, f = function() {
var t = "100%";
return o.settings.slideWidth > 0 && (t = "horizontal" == o.settings.mode ? o.settings.maxSlides * o.settings.slideWidth + (o.settings.maxSlides - 1) * o.settings.slideMargin : o.settings.slideWidth),
t
}
, g = function() {
var t = o.settings.slideWidth
, e = o.viewport.width();
return 0 == o.settings.slideWidth || o.settings.slideWidth > e && !o.carousel || "vertical" == o.settings.mode ? t = e : o.settings.maxSlides > 1 && "horizontal" == o.settings.mode && (e > o.maxThreshold || e < o.minThreshold && (t = (e - o.settings.slideMargin * (o.settings.minSlides - 1)) / o.settings.minSlides)),
t
}
, m = function() {
var t = 1;
if ("horizontal" == o.settings.mode && o.settings.slideWidth > 0)
if (o.viewport.width() < o.minThreshold)
t = o.settings.minSlides;
else if (o.viewport.width() > o.maxThreshold)
t = o.settings.maxSlides;
else {
var e = o.children.first().width();
t = Math.floor(o.viewport.width() / e)
}
else
"vertical" == o.settings.mode && (t = o.settings.minSlides);
return t
}
, v = function() {
var t = 0;
if (o.settings.moveSlides > 0)
if (o.settings.infiniteLoop)
t = o.children.length / y();
else
for (var e = 0, i = 0; e < o.children.length; )
++t,
e = i + m(),
i += o.settings.moveSlides <= m() ? o.settings.moveSlides : m();
else
t = Math.ceil(o.children.length / m());
return t
}
, y = function() {
return o.settings.moveSlides > 0 && o.settings.moveSlides <= m() ? o.settings.moveSlides : m()
}
, w = function() {
if (o.children.length > o.settings.maxSlides && o.active.last && !o.settings.infiniteLoop) {
if ("horizontal" == o.settings.mode) {
var t = o.children.last()
, e = t.position();
_(-(e.left - (o.viewport.width() - t.width())), "reset", 0)
} else if ("vertical" == o.settings.mode) {
var i = o.children.length - o.settings.minSlides;
e = o.children.eq(i).position();
_(-e.top, "reset", 0)
}
} else {
e = o.children.eq(o.active.index * y()).position();
o.active.index == v() - 1 && (o.active.last = !0),
null != e && ("horizontal" == o.settings.mode ? _(-e.left, "reset", 0) : "vertical" == o.settings.mode && _(-e.top, "reset", 0))
}
}
, _ = function(t, e, i, n) {
if (o.usingCSS) {
var s = "vertical" == o.settings.mode ? "translate3d(0, " + t + "px, 0)" : "translate3d(" + t + "px, 0, 0)";
r.css("-" + o.cssPrefix + "-transition-duration", i / 1e3 + "s"),
"slide" == e ? (r.css(o.animProp, s),
r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),
L()
})) : "reset" == e ? r.css(o.animProp, s) : "ticker" == e && (r.css("-" + o.cssPrefix + "-transition-timing-function", "linear"),
r.css(o.animProp, s),
r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),
_(n.resetValue, "reset", 0),
W()
}))
} else {
var a = {};
a[o.animProp] = t,
"slide" == e ? r.animate(a, i, o.settings.easing, function() {
L()
}) : "reset" == e ? r.css(o.animProp, t) : "ticker" == e && r.animate(a, speed, "linear", function() {
_(n.resetValue, "reset", 0),
W()
})
}
}
, b = function() {
for (var e = "", i = v(), n = 0; i > n; n++) {
var s = "";
o.settings.buildPager && t.isFunction(o.settings.buildPager) ? (s = o.settings.buildPager(n),
o.pagerEl.addClass("bx-custom-pager")) : (s = n + 1,
o.pagerEl.addClass("bx-default-pager")),
e += '"
}
o.pagerEl.html(e)
}
, x = function() {
o.settings.pagerCustom ? o.pagerEl = t(o.settings.pagerCustom) : (o.pagerEl = t(''),
o.settings.pagerSelector ? t(o.settings.pagerSelector).html(o.pagerEl) : o.controls.el.addClass("bx-has-pager").append(o.pagerEl),
b()),
o.pagerEl.on("click", "a", T)
}
, S = function() {
o.controls.next = t('' + o.settings.nextText + ""),
o.controls.prev = t('' + o.settings.prevText + ""),
o.controls.next.bind("click", $),
o.controls.prev.bind("click", z),
o.settings.nextSelector && t(o.settings.nextSelector).append(o.controls.next),
o.settings.prevSelector && t(o.settings.prevSelector).append(o.controls.prev),
o.settings.nextSelector || o.settings.prevSelector || (o.controls.directionEl = t(''),
o.controls.directionEl.append(o.controls.prev).append(o.controls.next),
o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))
}
, C = function() {
o.controls.start = t('"),
o.controls.stop = t('"),
o.controls.autoEl = t(''),
o.controls.autoEl.on("click", ".bx-start", k),
o.controls.autoEl.on("click", ".bx-stop", D),
o.settings.autoControlsCombine ? o.controls.autoEl.append(o.controls.start) : o.controls.autoEl.append(o.controls.start).append(o.controls.stop),
o.settings.autoControlsSelector ? t(o.settings.autoControlsSelector).html(o.controls.autoEl) : o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),
M(o.settings.autoStart ? "stop" : "start")
}
, E = function() {
o.children.each(function() {
var e = t(this).find("img:first").attr("title");
null != e && ("" + e).length && t(this).append('
' + e + "
")
})
}
, $ = function(t) {
o.settings.auto && r.stopAuto(),
r.goToNextSlide(),
t.preventDefault()
}
, z = function(t) {
o.settings.auto && r.stopAuto(),
r.goToPrevSlide(),
t.preventDefault()
}
, k = function(t) {
r.startAuto(),
t.preventDefault()
}
, D = function(t) {
r.stopAuto(),
t.preventDefault()
}
, T = function(e) {
o.settings.auto && r.stopAuto();
var i = t(e.currentTarget)
, n = parseInt(i.attr("data-slide-index"));
n != o.active.index && r.goToSlide(n),
e.preventDefault()
}
, I = function(e) {
var i = o.children.length;
return "short" == o.settings.pagerType ? (o.settings.maxSlides > 1 && (i = Math.ceil(o.children.length / o.settings.maxSlides)),
void o.pagerEl.html(e + 1 + o.settings.pagerShortSeparator + i)) : (o.pagerEl.find("a").removeClass("active"),
void o.pagerEl.each(function(i, n) {
t(n).find("a").eq(e).addClass("active")
}))
}
, L = function() {
if (o.settings.infiniteLoop) {
var t = "";
0 == o.active.index ? t = o.children.eq(0).position() : o.active.index == v() - 1 && o.carousel ? t = o.children.eq((v() - 1) * y()).position() : o.active.index == o.children.length - 1 && (t = o.children.eq(o.children.length - 1).position()),
t && ("horizontal" == o.settings.mode ? _(-t.left, "reset", 0) : "vertical" == o.settings.mode && _(-t.top, "reset", 0))
}
o.working = !1,
o.settings.onSlideAfter(o.children.eq(o.active.index), o.oldIndex, o.active.index)
}
, M = function(t) {
o.settings.autoControlsCombine ? o.controls.autoEl.html(o.controls[t]) : (o.controls.autoEl.find("a").removeClass("active"),
o.controls.autoEl.find("a:not(.bx-" + t + ")").addClass("active"))
}
, P = function() {
1 == v() ? (o.controls.prev.addClass("disabled"),
o.controls.next.addClass("disabled")) : !o.settings.infiniteLoop && o.settings.hideControlOnEnd && (0 == o.active.index ? (o.controls.prev.addClass("disabled"),
o.controls.next.removeClass("disabled")) : o.active.index == v() - 1 ? (o.controls.next.addClass("disabled"),
o.controls.prev.removeClass("disabled")) : (o.controls.prev.removeClass("disabled"),
o.controls.next.removeClass("disabled")))
}
, A = function() {
o.settings.autoDelay > 0 ? setTimeout(r.startAuto, o.settings.autoDelay) : r.startAuto(),
o.settings.autoHover && r.hover(function() {
o.interval && (r.stopAuto(!0),
o.autoPaused = !0)
}, function() {
o.autoPaused && (r.startAuto(!0),
o.autoPaused = null)
})
}
, j = function() {
var e = 0;
if ("next" == o.settings.autoDirection)
r.append(o.children.clone().addClass("bx-clone"));
else {
r.prepend(o.children.clone().addClass("bx-clone"));
var i = o.children.first().position();
e = "horizontal" == o.settings.mode ? -i.left : -i.top
}
_(e, "reset", 0),
o.settings.pager = !1,
o.settings.controls = !1,
o.settings.autoControls = !1,
o.settings.tickerHover && !o.usingCSS && o.viewport.hover(function() {
r.stop()
}, function() {
var e = 0;
o.children.each(function() {
e += "horizontal" == o.settings.mode ? t(this).outerWidth(!0) : t(this).outerHeight(!0)
});
var i = o.settings.speed / e
, n = "horizontal" == o.settings.mode ? "left" : "top"
, s = i * (e - Math.abs(parseInt(r.css(n))));
W(s)
}),
W()
}
, W = function(t) {
speed = t || o.settings.speed;
var e = {
left: 0,
top: 0
}
, i = {
left: 0,
top: 0
};
"next" == o.settings.autoDirection ? e = r.find(".bx-clone").first().position() : i = o.children.first().position();
var n = "horizontal" == o.settings.mode ? -e.left : -e.top
, s = "horizontal" == o.settings.mode ? -i.left : -i.top;
_(n, "ticker", speed, {
resetValue: s
})
}
, O = function() {
o.touch = {
start: {
x: 0,
y: 0
},
end: {
x: 0,
y: 0
}
},
o.viewport.bind("touchstart", q)
}
, q = function(t) {
if (o.working)
t.preventDefault();
else {
o.touch.originalPos = r.position();
var e = t.originalEvent;
o.touch.start.x = e.changedTouches[0].pageX,
o.touch.start.y = e.changedTouches[0].pageY,
o.viewport.bind("touchmove", N),
o.viewport.bind("touchend", F)
}
}
, N = function(t) {
var e = t.originalEvent
, i = Math.abs(e.changedTouches[0].pageX - o.touch.start.x)
, n = Math.abs(e.changedTouches[0].pageY - o.touch.start.y);
if (3 * i > n && o.settings.preventDefaultSwipeX ? t.preventDefault() : 3 * n > i && o.settings.preventDefaultSwipeY && t.preventDefault(),
"fade" != o.settings.mode && o.settings.oneToOneTouch) {
var s = 0;
if ("horizontal" == o.settings.mode) {
var r = e.changedTouches[0].pageX - o.touch.start.x;
s = o.touch.originalPos.left + r
} else {
r = e.changedTouches[0].pageY - o.touch.start.y;
s = o.touch.originalPos.top + r
}
_(s, "reset", 0)
}
}
, F = function(t) {
o.viewport.unbind("touchmove", N);
var e = t.originalEvent
, i = 0;
if (o.touch.end.x = e.changedTouches[0].pageX,
o.touch.end.y = e.changedTouches[0].pageY,
"fade" == o.settings.mode) {
(n = Math.abs(o.touch.start.x - o.touch.end.x)) >= o.settings.swipeThreshold && (o.touch.start.x > o.touch.end.x ? r.goToNextSlide() : r.goToPrevSlide(),
r.stopAuto())
} else {
var n = 0;
"horizontal" == o.settings.mode ? (n = o.touch.end.x - o.touch.start.x,
i = o.touch.originalPos.left) : (n = o.touch.end.y - o.touch.start.y,
i = o.touch.originalPos.top),
!o.settings.infiniteLoop && (0 == o.active.index && n > 0 || o.active.last && 0 > n) ? _(i, "reset", 200) : Math.abs(n) >= o.settings.swipeThreshold ? (0 > n ? r.goToNextSlide() : r.goToPrevSlide(),
r.stopAuto()) : _(i, "reset", 200)
}
o.viewport.unbind("touchend", F)
}
, H = function() {
var e = t(window).width()
, i = t(window).height();
(a != e || l != i) && (a = e,
l = i,
r.redrawSlider(),
o.settings.onSliderResize.call(r, o.active.index))
};
return r.goToSlide = function(e, i) {
if (!o.working && o.active.index != e)
if (o.working = !0,
o.oldIndex = o.active.index,
o.active.index = 0 > e ? v() - 1 : e >= v() ? 0 : e,
o.settings.onSlideBefore(o.children.eq(o.active.index), o.oldIndex, o.active.index),
"next" == i ? o.settings.onSlideNext(o.children.eq(o.active.index), o.oldIndex, o.active.index) : "prev" == i && o.settings.onSlidePrev(o.children.eq(o.active.index), o.oldIndex, o.active.index),
o.active.last = o.active.index >= v() - 1,
o.settings.pager && I(o.active.index),
o.settings.controls && P(),
"fade" == o.settings.mode)
o.settings.adaptiveHeight && o.viewport.height() != p() && o.viewport.animate({
height: p()
}, o.settings.adaptiveHeightSpeed),
o.children.filter(":visible").fadeOut(o.settings.speed).css({
zIndex: 0
}),
o.children.eq(o.active.index).css("zIndex", o.settings.slideZIndex + 1).fadeIn(o.settings.speed, function() {
t(this).css("zIndex", o.settings.slideZIndex),
L()
});
else {
o.settings.adaptiveHeight && o.viewport.height() != p() && o.viewport.animate({
height: p()
}, o.settings.adaptiveHeightSpeed);
var n = 0
, s = {
left: 0,
top: 0
};
if (!o.settings.infiniteLoop && o.carousel && o.active.last)
if ("horizontal" == o.settings.mode) {
s = (l = o.children.eq(o.children.length - 1)).position(),
n = o.viewport.width() - l.outerWidth()
} else {
var a = o.children.length - o.settings.minSlides;
s = o.children.eq(a).position()
}
else if (o.carousel && o.active.last && "prev" == i) {
var l, d = 1 == o.settings.moveSlides ? o.settings.maxSlides - y() : (v() - 1) * y() - (o.children.length - o.settings.maxSlides);
s = (l = r.children(".bx-clone").eq(d)).position()
} else if ("next" == i && 0 == o.active.index)
s = r.find("> .bx-clone").eq(o.settings.maxSlides).position(),
o.active.last = !1;
else if (e >= 0) {
var h = e * y();
s = o.children.eq(h).position()
}
if (void 0 !== s) {
var c = "horizontal" == o.settings.mode ? -(s.left - n) : -s.top;
_(c, "slide", o.settings.speed)
}
}
}
,
r.goToNextSlide = function() {
if (o.settings.infiniteLoop || !o.active.last) {
var t = parseInt(o.active.index) + 1;
r.goToSlide(t, "next")
}
}
,
r.goToPrevSlide = function() {
if (o.settings.infiniteLoop || 0 != o.active.index) {
var t = parseInt(o.active.index) - 1;
r.goToSlide(t, "prev")
}
}
,
r.startAuto = function(t) {
o.interval || (o.interval = setInterval(function() {
"next" == o.settings.autoDirection ? r.goToNextSlide() : r.goToPrevSlide()
}, o.settings.pause),
o.settings.autoControls && 1 != t && M("stop"))
}
,
r.stopAuto = function(t) {
o.interval && (clearInterval(o.interval),
o.interval = null,
o.settings.autoControls && 1 != t && M("start"))
}
,
r.getCurrentSlide = function() {
return o.active.index
}
,
r.getCurrentSlideElement = function() {
return o.children.eq(o.active.index)
}
,
r.getSlideCount = function() {
return o.children.length
}
,
r.redrawSlider = function() {
o.children.add(r.find(".bx-clone")).outerWidth(g()),
o.viewport.css("height", p()),
o.settings.ticker || w(),
o.active.last && (o.active.index = v() - 1),
o.active.index >= v() && (o.active.last = !0),
o.settings.pager && !o.settings.pagerCustom && (b(),
I(o.active.index))
}
,
r.destroySlider = function() {
o.initialized && (o.initialized = !1,
t(".bx-clone", this).remove(),
o.children.each(function() {
null != t(this).data("origStyle") ? t(this).attr("style", t(this).data("origStyle")) : t(this).removeAttr("style")
}),
null != t(this).data("origStyle") ? this.attr("style", t(this).data("origStyle")) : t(this).removeAttr("style"),
t(this).unwrap().unwrap(),
o.controls.el && o.controls.el.remove(),
o.controls.next && o.controls.next.remove(),
o.controls.prev && o.controls.prev.remove(),
o.pagerEl && o.settings.controls && o.pagerEl.remove(),
t(".bx-caption", this).remove(),
o.controls.autoEl && o.controls.autoEl.remove(),
clearInterval(o.interval),
o.settings.responsive && t(window).unbind("resize", H))
}
,
r.reloadSlider = function(t) {
null != t && (s = t),
r.destroySlider(),
d()
}
,
d(),
this
}
}(jQuery),
function(t, e) {
"function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery)
}(window, function(t, e) {
"use strict";
function i(i, o, a) {
(a = a || e || t.jQuery) && (o.prototype.option || (o.prototype.option = function(t) {
a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t))
}
),
a.fn[i] = function(t) {
return "string" == typeof t ? function(t, e, n) {
var s, o = "$()." + i + '("' + e + '")';
return t.each(function(t, l) {
var d = a.data(l, i);
if (d) {
var h = d[e];
if (h && "_" != e.charAt(0)) {
var c = h.apply(d, n);
s = void 0 === s ? c : s
} else
r(o + " is not a valid method")
} else
r(i + " not initialized. Cannot call methods, i.e. " + o)
}),
void 0 !== s ? s : t
}(this, t, s.call(arguments, 1)) : (function(t, e) {
t.each(function(t, n) {
var s = a.data(n, i);
s ? (s.option(e),
s._init()) : (s = new o(n,e),
a.data(n, i, s))
})
}(this, t),
this)
}
,
n(a))
}
function n(t) {
!t || t && t.bridget || (t.bridget = i)
}
var s = Array.prototype.slice
, o = t.console
, r = void 0 === o ? function() {}
: function(t) {
o.error(t)
}
;
return n(e || t.jQuery),
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? module.exports = e() : t.EvEmitter = e()
}("undefined" != typeof window ? window : this, function() {
function t() {}
var e = t.prototype;
return e.on = function(t, e) {
if (t && e) {
var i = this._events = this._events || {}
, n = i[t] = i[t] || [];
return -1 == n.indexOf(e) && n.push(e),
this
}
}
,
e.once = function(t, e) {
if (t && e) {
this.on(t, e);
var i = this._onceEvents = this._onceEvents || {};
return (i[t] = i[t] || {})[e] = !0,
this
}
}
,
e.off = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
var n = i.indexOf(e);
return -1 != n && i.splice(n, 1),
this
}
}
,
e.emitEvent = function(t, e) {
var i = this._events && this._events[t];
if (i && i.length) {
i = i.slice(0),
e = e || [];
for (var n = this._onceEvents && this._onceEvents[t], s = 0; s < i.length; s++) {
var o = i[s];
n && n[o] && (this.off(t, o),
delete n[o]),
o.apply(this, e)
}
return this
}
}
,
e.allOff = function() {
delete this._events,
delete this._onceEvents
}
,
t
}),
function(t, e) {
"function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == typeof module && module.exports ? module.exports = e() : t.getSize = e()
}(window, function() {
"use strict";
function t(t) {
var e = parseFloat(t);
return -1 == t.indexOf("%") && !isNaN(e) && e
}
function e(t) {
var e = getComputedStyle(t);
return e || s("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),
e
}
function i(s) {
if (function() {
if (!a) {
a = !0;
var s = document.createElement("div");
s.style.width = "200px",
s.style.padding = "1px 2px 3px 4px",
s.style.borderStyle = "solid",
s.style.borderWidth = "1px 2px 3px 4px",
s.style.boxSizing = "border-box";
var o = document.body || document.documentElement;
o.appendChild(s);
var r = e(s);
n = 200 == Math.round(t(r.width)),
i.isBoxSizeOuter = n,
o.removeChild(s)
}
}(),
"string" == typeof s && (s = document.querySelector(s)),
s && "object" == typeof s && s.nodeType) {
var l = e(s);
if ("none" == l.display)
return function() {
for (var t = {
width: 0,
height: 0,
innerWidth: 0,
innerHeight: 0,
outerWidth: 0,
outerHeight: 0
}, e = 0; e < r; e++)
t[o[e]] = 0;
return t
}();
var d = {};
d.width = s.offsetWidth,
d.height = s.offsetHeight;
for (var h = d.isBorderBox = "border-box" == l.boxSizing, c = 0; c < r; c++) {
var u = o[c]
, p = l[u]
, f = parseFloat(p);
d[u] = isNaN(f) ? 0 : f
}
var g = d.paddingLeft + d.paddingRight
, m = d.paddingTop + d.paddingBottom
, v = d.marginLeft + d.marginRight
, y = d.marginTop + d.marginBottom
, w = d.borderLeftWidth + d.borderRightWidth
, _ = d.borderTopWidth + d.borderBottomWidth
, b = h && n
, x = t(l.width);
!1 !== x && (d.width = x + (b ? 0 : g + w));
var S = t(l.height);
return !1 !== S && (d.height = S + (b ? 0 : m + _)),
d.innerWidth = d.width - (g + w),
d.innerHeight = d.height - (m + _),
d.outerWidth = d.width + v,
d.outerHeight = d.height + y,
d
}
}
var n, s = "undefined" == typeof console ? function() {}
: function(t) {
console.error(t)
}
, o = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], r = o.length, a = !1;
return i
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? module.exports = e() : t.matchesSelector = e()
}(window, function() {
"use strict";
var t = function() {
var t = window.Element.prototype;
if (t.matches)
return "matches";
if (t.matchesSelector)
return "matchesSelector";
for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) {
var n = e[i] + "MatchesSelector";
if (t[n])
return n
}
}();
return function(e, i) {
return e[t](i)
}
}),
function(t, e) {
"function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector)
}(window, function(t, e) {
var i = {
extend: function(t, e) {
for (var i in e)
t[i] = e[i];
return t
},
modulo: function(t, e) {
return (t % e + e) % e
}
}
, n = Array.prototype.slice;
i.makeArray = function(t) {
return Array.isArray(t) ? t : null == t ? [] : "object" == typeof t && "number" == typeof t.length ? n.call(t) : [t]
}
,
i.removeFrom = function(t, e) {
var i = t.indexOf(e);
-1 != i && t.splice(i, 1)
}
,
i.getParent = function(t, i) {
for (; t.parentNode && t != document.body; )
if (t = t.parentNode,
e(t, i))
return t
}
,
i.getQueryElement = function(t) {
return "string" == typeof t ? document.querySelector(t) : t
}
,
i.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}
,
i.filterFindElements = function(t, n) {
t = i.makeArray(t);
var s = [];
return t.forEach(function(t) {
if (t instanceof HTMLElement)
if (n) {
e(t, n) && s.push(t);
for (var i = t.querySelectorAll(n), o = 0; o < i.length; o++)
s.push(i[o])
} else
s.push(t)
}),
s
}
,
i.debounceMethod = function(t, e, i) {
i = i || 100;
var n = t.prototype[e]
, s = e + "Timeout";
t.prototype[e] = function() {
var t = this[s];
clearTimeout(t);
var e = arguments
, o = this;
this[s] = setTimeout(function() {
n.apply(o, e),
delete o[s]
}, i)
}
}
,
i.docReady = function(t) {
var e = document.readyState;
"complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t)
}
,
i.toDashed = function(t) {
return t.replace(/(.)([A-Z])/g, function(t, e, i) {
return e + "-" + i
}).toLowerCase()
}
;
var s = t.console;
return i.htmlInit = function(e, n) {
i.docReady(function() {
var o = i.toDashed(n)
, r = "data-" + o
, a = document.querySelectorAll("[" + r + "]")
, l = document.querySelectorAll(".js-" + o)
, d = i.makeArray(a).concat(i.makeArray(l))
, h = r + "-options"
, c = t.jQuery;
d.forEach(function(t) {
var i, o = t.getAttribute(r) || t.getAttribute(h);
try {
i = o && JSON.parse(o)
} catch (i) {
return void (s && s.error("Error parsing " + r + " on " + t.className + ": " + i))
}
var a = new e(t,i);
c && c.data(t, n, a)
})
})
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/cell", ["get-size/get-size"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("get-size")) : (t.Flickity = t.Flickity || {},
t.Flickity.Cell = e(t, t.getSize))
}(window, function(t, e) {
function i(t, e) {
this.element = t,
this.parent = e,
this.create()
}
var n = i.prototype;
return n.create = function() {
this.element.style.position = "absolute",
this.element.setAttribute("aria-hidden", "true"),
this.x = 0,
this.shift = 0
}
,
n.destroy = function() {
this.unselect(),
this.element.style.position = "";
var t = this.parent.originSide;
this.element.style[t] = ""
}
,
n.getSize = function() {
this.size = e(this.element)
}
,
n.setPosition = function(t) {
this.x = t,
this.updateTarget(),
this.renderPosition(t)
}
,
n.updateTarget = n.setDefaultTarget = function() {
var t = "left" == this.parent.originSide ? "marginLeft" : "marginRight";
this.target = this.x + this.size[t] + this.size.width * this.parent.cellAlign
}
,
n.renderPosition = function(t) {
var e = this.parent.originSide;
this.element.style[e] = this.parent.getPositionValue(t)
}
,
n.select = function() {
this.element.classList.add("is-selected"),
this.element.removeAttribute("aria-hidden")
}
,
n.unselect = function() {
this.element.classList.remove("is-selected"),
this.element.setAttribute("aria-hidden", "true")
}
,
n.wrapShift = function(t) {
this.shift = t,
this.renderPosition(this.x + this.parent.slideableWidth * t)
}
,
n.remove = function() {
this.element.parentNode.removeChild(this.element)
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/slide", e) : "object" == typeof module && module.exports ? module.exports = e() : (t.Flickity = t.Flickity || {},
t.Flickity.Slide = e())
}(window, function() {
"use strict";
function t(t) {
this.parent = t,
this.isOriginLeft = "left" == t.originSide,
this.cells = [],
this.outerWidth = 0,
this.height = 0
}
var e = t.prototype;
return e.addCell = function(t) {
if (this.cells.push(t),
this.outerWidth += t.size.outerWidth,
this.height = Math.max(t.size.outerHeight, this.height),
1 == this.cells.length) {
this.x = t.x;
var e = this.isOriginLeft ? "marginLeft" : "marginRight";
this.firstMargin = t.size[e]
}
}
,
e.updateTarget = function() {
var t = this.isOriginLeft ? "marginRight" : "marginLeft"
, e = this.getLastCell()
, i = e ? e.size[t] : 0
, n = this.outerWidth - (this.firstMargin + i);
this.target = this.x + this.firstMargin + n * this.parent.cellAlign
}
,
e.getLastCell = function() {
return this.cells[this.cells.length - 1]
}
,
e.select = function() {
this.cells.forEach(function(t) {
t.select()
})
}
,
e.unselect = function() {
this.cells.forEach(function(t) {
t.unselect()
})
}
,
e.getCellElements = function() {
return this.cells.map(function(t) {
return t.element
})
}
,
t
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/animate", ["fizzy-ui-utils/utils"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("fizzy-ui-utils")) : (t.Flickity = t.Flickity || {},
t.Flickity.animatePrototype = e(t, t.fizzyUIUtils))
}(window, function(t, e) {
return {
startAnimation: function() {
this.isAnimating || (this.isAnimating = !0,
this.restingFrames = 0,
this.animate())
},
animate: function() {
this.applyDragForce(),
this.applySelectedAttraction();
var t = this.x;
if (this.integratePhysics(),
this.positionSlider(),
this.settle(t),
this.isAnimating) {
var e = this;
requestAnimationFrame(function() {
e.animate()
})
}
},
positionSlider: function() {
var t = this.x;
this.options.wrapAround && 1 < this.cells.length && (t = e.modulo(t, this.slideableWidth),
t -= this.slideableWidth,
this.shiftWrapCells(t)),
this.setTranslateX(t, this.isAnimating),
this.dispatchScrollEvent()
},
setTranslateX: function(t, e) {
t += this.cursorPosition,
t = this.options.rightToLeft ? -t : t;
var i = this.getPositionValue(t);
this.slider.style.transform = e ? "translate3d(" + i + ",0,0)" : "translateX(" + i + ")"
},
dispatchScrollEvent: function() {
var t = this.slides[0];
if (t) {
var e = -this.x - t.target
, i = e / this.slidesWidth;
this.dispatchEvent("scroll", null, [i, e])
}
},
positionSliderAtSelected: function() {
this.cells.length && (this.x = -this.selectedSlide.target,
this.velocity = 0,
this.positionSlider())
},
getPositionValue: function(t) {
return this.options.percentPosition ? .01 * Math.round(t / this.size.innerWidth * 1e4) + "%" : Math.round(t) + "px"
},
settle: function(t) {
this.isPointerDown || Math.round(100 * this.x) != Math.round(100 * t) || this.restingFrames++,
2 < this.restingFrames && (this.isAnimating = !1,
delete this.isFreeScrolling,
this.positionSlider(),
this.dispatchEvent("settle", null, [this.selectedIndex]))
},
shiftWrapCells: function(t) {
var e = this.cursorPosition + t;
this._shiftCells(this.beforeShiftCells, e, -1);
var i = this.size.innerWidth - (t + this.slideableWidth + this.cursorPosition);
this._shiftCells(this.afterShiftCells, i, 1)
},
_shiftCells: function(t, e, i) {
for (var n = 0; n < t.length; n++) {
var s = t[n]
, o = 0 < e ? i : 0;
s.wrapShift(o),
e -= s.size.outerWidth
}
},
_unshiftCells: function(t) {
if (t && t.length)
for (var e = 0; e < t.length; e++)
t[e].wrapShift(0)
},
integratePhysics: function() {
this.x += this.velocity,
this.velocity *= this.getFrictionFactor()
},
applyForce: function(t) {
this.velocity += t
},
getFrictionFactor: function() {
return 1 - this.options[this.isFreeScrolling ? "freeScrollFriction" : "friction"]
},
getRestingPosition: function() {
return this.x + this.velocity / (1 - this.getFrictionFactor())
},
applyDragForce: function() {
if (this.isDraggable && this.isPointerDown) {
var t = this.dragX - this.x - this.velocity;
this.applyForce(t)
}
},
applySelectedAttraction: function() {
if ((!this.isDraggable || !this.isPointerDown) && !this.isFreeScrolling && this.slides.length) {
var t = (-1 * this.selectedSlide.target - this.x) * this.options.selectedAttraction;
this.applyForce(t)
}
}
}
}),
function(t, e) {
if ("function" == typeof define && define.amd)
define("flickity/js/flickity", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./cell", "./slide", "./animate"], function(i, n, s, o, r, a) {
return e(t, i, n, s, o, r, a)
});
else if ("object" == typeof module && module.exports)
module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./cell"), require("./slide"), require("./animate"));
else {
var i = t.Flickity;
t.Flickity = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, i.Cell, i.Slide, i.animatePrototype)
}
}(window, function(t, e, i, n, s, o, r) {
function a(t, e) {
for (t = n.makeArray(t); t.length; )
e.appendChild(t.shift())
}
function l(t, e) {
var i = n.getQueryElement(t);
if (i) {
if (this.element = i,
this.element.flickityGUID) {
var s = p[this.element.flickityGUID];
return s.option(e),
s
}
d && (this.$element = d(this.element)),
this.options = n.extend({}, this.constructor.defaults),
this.option(e),
this._create()
} else
c && c.error("Bad element for Flickity: " + (i || t))
}
var d = t.jQuery
, h = t.getComputedStyle
, c = t.console
, u = 0
, p = {};
l.defaults = {
accessibility: !0,
cellAlign: "center",
freeScrollFriction: .075,
friction: .28,
namespaceJQueryEvents: !0,
percentPosition: !0,
resize: !0,
selectedAttraction: .025,
setGallerySize: !0
},
l.createMethods = [];
var f = l.prototype;
n.extend(f, e.prototype),
f._create = function() {
var e = this.guid = ++u;
for (var i in this.element.flickityGUID = e,
(p[e] = this).selectedIndex = 0,
this.restingFrames = 0,
this.x = 0,
this.velocity = 0,
this.originSide = this.options.rightToLeft ? "right" : "left",
this.viewport = document.createElement("div"),
this.viewport.className = "flickity-viewport",
this._createSlider(),
(this.options.resize || this.options.watchCSS) && t.addEventListener("resize", this),
this.options.on) {
var n = this.options.on[i];
this.on(i, n)
}
l.createMethods.forEach(function(t) {
this[t]()
}, this),
this.options.watchCSS ? this.watchCSS() : this.activate()
}
,
f.option = function(t) {
n.extend(this.options, t)
}
,
f.activate = function() {
this.isActive || (this.isActive = !0,
this.element.classList.add("flickity-enabled"),
this.options.rightToLeft && this.element.classList.add("flickity-rtl"),
this.getSize(),
a(this._filterFindCellElements(this.element.children), this.slider),
this.viewport.appendChild(this.slider),
this.element.appendChild(this.viewport),
this.reloadCells(),
this.options.accessibility && (this.element.tabIndex = 0,
this.element.addEventListener("keydown", this)),
this.emitEvent("activate"),
this.selectInitialIndex(),
this.isInitActivated = !0,
this.dispatchEvent("ready"))
}
,
f._createSlider = function() {
var t = document.createElement("div");
t.className = "flickity-slider",
t.style[this.originSide] = 0,
this.slider = t
}
,
f._filterFindCellElements = function(t) {
return n.filterFindElements(t, this.options.cellSelector)
}
,
f.reloadCells = function() {
this.cells = this._makeCells(this.slider.children),
this.positionCells(),
this._getWrapShiftCells(),
this.setGallerySize()
}
,
f._makeCells = function(t) {
return this._filterFindCellElements(t).map(function(t) {
return new s(t,this)
}, this)
}
,
f.getLastCell = function() {
return this.cells[this.cells.length - 1]
}
,
f.getLastSlide = function() {
return this.slides[this.slides.length - 1]
}
,
f.positionCells = function() {
this._sizeCells(this.cells),
this._positionCells(0)
}
,
f._positionCells = function(t) {
t = t || 0,
this.maxCellHeight = t && this.maxCellHeight || 0;
var e = 0;
if (0 < t) {
var i = this.cells[t - 1];
e = i.x + i.size.outerWidth
}
for (var n = this.cells.length, s = t; s < n; s++) {
var o = this.cells[s];
o.setPosition(e),
e += o.size.outerWidth,
this.maxCellHeight = Math.max(o.size.outerHeight, this.maxCellHeight)
}
this.slideableWidth = e,
this.updateSlides(),
this._containSlides(),
this.slidesWidth = n ? this.getLastSlide().target - this.slides[0].target : 0
}
,
f._sizeCells = function(t) {
t.forEach(function(t) {
t.getSize()
})
}
,
f.updateSlides = function() {
if (this.slides = [],
this.cells.length) {
var t = new o(this);
this.slides.push(t);
var e = "left" == this.originSide ? "marginRight" : "marginLeft"
, i = this._getCanCellFit();
this.cells.forEach(function(n, s) {
if (t.cells.length) {
var r = t.outerWidth - t.firstMargin + (n.size.outerWidth - n.size[e]);
i.call(this, s, r) || (t.updateTarget(),
t = new o(this),
this.slides.push(t)),
t.addCell(n)
} else
t.addCell(n)
}, this),
t.updateTarget(),
this.updateSelectedSlide()
}
}
,
f._getCanCellFit = function() {
var t = this.options.groupCells;
if (!t)
return function() {
return !1
}
;
if ("number" == typeof t) {
var e = parseInt(t, 10);
return function(t) {
return t % e != 0
}
}
var i = "string" == typeof t && t.match(/^(\d+)%$/)
, n = i ? parseInt(i[1], 10) / 100 : 1;
return function(t, e) {
return e <= (this.size.innerWidth + 1) * n
}
}
,
f._init = f.reposition = function() {
this.positionCells(),
this.positionSliderAtSelected()
}
,
f.getSize = function() {
this.size = i(this.element),
this.setCellAlign(),
this.cursorPosition = this.size.innerWidth * this.cellAlign
}
;
var g = {
center: {
left: .5,
right: .5
},
left: {
left: 0,
right: 1
},
right: {
right: 0,
left: 1
}
};
return f.setCellAlign = function() {
var t = g[this.options.cellAlign];
this.cellAlign = t ? t[this.originSide] : this.options.cellAlign
}
,
f.setGallerySize = function() {
if (this.options.setGallerySize) {
var t = this.options.adaptiveHeight && this.selectedSlide ? this.selectedSlide.height : this.maxCellHeight;
this.viewport.style.height = t + "px"
}
}
,
f._getWrapShiftCells = function() {
if (this.options.wrapAround) {
this._unshiftCells(this.beforeShiftCells),
this._unshiftCells(this.afterShiftCells);
var t = this.cursorPosition
, e = this.cells.length - 1;
this.beforeShiftCells = this._getGapCells(t, e, -1),
t = this.size.innerWidth - this.cursorPosition,
this.afterShiftCells = this._getGapCells(t, 0, 1)
}
}
,
f._getGapCells = function(t, e, i) {
for (var n = []; 0 < t; ) {
var s = this.cells[e];
if (!s)
break;
n.push(s),
e += i,
t -= s.size.outerWidth
}
return n
}
,
f._containSlides = function() {
if (this.options.contain && !this.options.wrapAround && this.cells.length) {
var t = this.options.rightToLeft
, e = t ? "marginRight" : "marginLeft"
, i = t ? "marginLeft" : "marginRight"
, n = this.slideableWidth - this.getLastCell().size[i]
, s = n < this.size.innerWidth
, o = this.cursorPosition + this.cells[0].size[e]
, r = n - this.size.innerWidth * (1 - this.cellAlign);
this.slides.forEach(function(t) {
s ? t.target = n * this.cellAlign : (t.target = Math.max(t.target, o),
t.target = Math.min(t.target, r))
}, this)
}
}
,
f.dispatchEvent = function(t, e, i) {
var n = e ? [e].concat(i) : i;
if (this.emitEvent(t, n),
d && this.$element) {
var s = t += this.options.namespaceJQueryEvents ? ".flickity" : "";
if (e) {
var o = d.Event(e);
o.type = t,
s = o
}
this.$element.trigger(s, i)
}
}
,
f.select = function(t, e, i) {
if (this.isActive && (t = parseInt(t, 10),
this._wrapSelect(t),
(this.options.wrapAround || e) && (t = n.modulo(t, this.slides.length)),
this.slides[t])) {
var s = this.selectedIndex;
this.selectedIndex = t,
this.updateSelectedSlide(),
i ? this.positionSliderAtSelected() : this.startAnimation(),
this.options.adaptiveHeight && this.setGallerySize(),
this.dispatchEvent("select", null, [t]),
t != s && this.dispatchEvent("change", null, [t]),
this.dispatchEvent("cellSelect")
}
}
,
f._wrapSelect = function(t) {
var e = this.slides.length;
if (!(this.options.wrapAround && 1 < e))
return t;
var i = n.modulo(t, e)
, s = Math.abs(i - this.selectedIndex)
, o = Math.abs(i + e - this.selectedIndex)
, r = Math.abs(i - e - this.selectedIndex);
!this.isDragSelect && o < s ? t += e : !this.isDragSelect && r < s && (t -= e),
t < 0 ? this.x -= this.slideableWidth : e <= t && (this.x += this.slideableWidth)
}
,
f.previous = function(t, e) {
this.select(this.selectedIndex - 1, t, e)
}
,
f.next = function(t, e) {
this.select(this.selectedIndex + 1, t, e)
}
,
f.updateSelectedSlide = function() {
var t = this.slides[this.selectedIndex];
t && (this.unselectSelectedSlide(),
(this.selectedSlide = t).select(),
this.selectedCells = t.cells,
this.selectedElements = t.getCellElements(),
this.selectedCell = t.cells[0],
this.selectedElement = this.selectedElements[0])
}
,
f.unselectSelectedSlide = function() {
this.selectedSlide && this.selectedSlide.unselect()
}
,
f.selectInitialIndex = function() {
var t = this.options.initialIndex;
if (this.isInitActivated)
this.select(this.selectedIndex, !1, !0);
else {
if (t && "string" == typeof t && this.queryCell(t))
return void this.selectCell(t, !1, !0);
var e = 0;
t && this.slides[t] && (e = t),
this.select(e, !1, !0)
}
}
,
f.selectCell = function(t, e, i) {
var n = this.queryCell(t);
if (n) {
var s = this.getCellSlideIndex(n);
this.select(s, e, i)
}
}
,
f.getCellSlideIndex = function(t) {
for (var e = 0; e < this.slides.length; e++)
if (-1 != this.slides[e].cells.indexOf(t))
return e
}
,
f.getCell = function(t) {
for (var e = 0; e < this.cells.length; e++) {
var i = this.cells[e];
if (i.element == t)
return i
}
}
,
f.getCells = function(t) {
t = n.makeArray(t);
var e = [];
return t.forEach(function(t) {
var i = this.getCell(t);
i && e.push(i)
}, this),
e
}
,
f.getCellElements = function() {
return this.cells.map(function(t) {
return t.element
})
}
,
f.getParentCell = function(t) {
return this.getCell(t) || (t = n.getParent(t, ".flickity-slider > *"),
this.getCell(t))
}
,
f.getAdjacentCellElements = function(t, e) {
if (!t)
return this.selectedSlide.getCellElements();
e = void 0 === e ? this.selectedIndex : e;
var i = this.slides.length;
if (i <= 1 + 2 * t)
return this.getCellElements();
for (var s = [], o = e - t; o <= e + t; o++) {
var r = this.options.wrapAround ? n.modulo(o, i) : o
, a = this.slides[r];
a && (s = s.concat(a.getCellElements()))
}
return s
}
,
f.queryCell = function(t) {
if ("number" == typeof t)
return this.cells[t];
if ("string" == typeof t) {
if (t.match(/^[#\.]?[\d\/]/))
return;
t = this.element.querySelector(t)
}
return this.getCell(t)
}
,
f.uiChange = function() {
this.emitEvent("uiChange")
}
,
f.childUIPointerDown = function(t) {
"touchstart" != t.type && t.preventDefault(),
this.focus()
}
,
f.onresize = function() {
this.watchCSS(),
this.resize()
}
,
n.debounceMethod(l, "onresize", 150),
f.resize = function() {
if (this.isActive) {
this.getSize(),
this.options.wrapAround && (this.x = n.modulo(this.x, this.slideableWidth)),
this.positionCells(),
this._getWrapShiftCells(),
this.setGallerySize(),
this.emitEvent("resize");
var t = this.selectedElements && this.selectedElements[0];
this.selectCell(t, !1, !0)
}
}
,
f.watchCSS = function() {
this.options.watchCSS && (-1 != h(this.element, ":after").content.indexOf("flickity") ? this.activate() : this.deactivate())
}
,
f.onkeydown = function(t) {
var e = document.activeElement && document.activeElement != this.element;
if (this.options.accessibility && !e) {
var i = l.keyboardHandlers[t.keyCode];
i && i.call(this)
}
}
,
l.keyboardHandlers = {
37: function() {
var t = this.options.rightToLeft ? "next" : "previous";
this.uiChange(),
this[t]()
},
39: function() {
var t = this.options.rightToLeft ? "previous" : "next";
this.uiChange(),
this[t]()
}
},
f.focus = function() {
var e = t.pageYOffset;
this.element.focus({
preventScroll: !0
}),
t.pageYOffset != e && t.scrollTo(t.pageXOffset, e)
}
,
f.deactivate = function() {
this.isActive && (this.element.classList.remove("flickity-enabled"),
this.element.classList.remove("flickity-rtl"),
this.unselectSelectedSlide(),
this.cells.forEach(function(t) {
t.destroy()
}),
this.element.removeChild(this.viewport),
a(this.slider.children, this.element),
this.options.accessibility && (this.element.removeAttribute("tabIndex"),
this.element.removeEventListener("keydown", this)),
this.isActive = !1,
this.emitEvent("deactivate"))
}
,
f.destroy = function() {
this.deactivate(),
t.removeEventListener("resize", this),
this.allOff(),
this.emitEvent("destroy"),
d && this.$element && d.removeData(this.element, "flickity"),
delete this.element.flickityGUID,
delete p[this.guid]
}
,
n.extend(f, r),
l.data = function(t) {
var e = (t = n.getQueryElement(t)) && t.flickityGUID;
return e && p[e]
}
,
n.htmlInit(l, "flickity"),
d && d.bridget && d.bridget("flickity", l),
l.setJQuery = function(t) {
d = t
}
,
l.Cell = s,
l.Slide = o,
l
}),
function(t, e) {
"function" == typeof define && define.amd ? define("unipointer/unipointer", ["ev-emitter/ev-emitter"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter")) : t.Unipointer = e(t, t.EvEmitter)
}(window, function(t, e) {
function i() {}
var n = i.prototype = Object.create(e.prototype);
n.bindStartEvent = function(t) {
this._bindStartEvent(t, !0)
}
,
n.unbindStartEvent = function(t) {
this._bindStartEvent(t, !1)
}
,
n._bindStartEvent = function(e, i) {
var n = (i = void 0 === i || i) ? "addEventListener" : "removeEventListener"
, s = "mousedown";
t.PointerEvent ? s = "pointerdown" : "ontouchstart"in t && (s = "touchstart"),
e[n](s, this)
}
,
n.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}
,
n.getTouch = function(t) {
for (var e = 0; e < t.length; e++) {
var i = t[e];
if (i.identifier == this.pointerIdentifier)
return i
}
}
,
n.onmousedown = function(t) {
var e = t.button;
e && 0 !== e && 1 !== e || this._pointerDown(t, t)
}
,
n.ontouchstart = function(t) {
this._pointerDown(t, t.changedTouches[0])
}
,
n.onpointerdown = function(t) {
this._pointerDown(t, t)
}
,
n._pointerDown = function(t, e) {
t.button || this.isPointerDown || (this.isPointerDown = !0,
this.pointerIdentifier = void 0 !== e.pointerId ? e.pointerId : e.identifier,
this.pointerDown(t, e))
}
,
n.pointerDown = function(t, e) {
this._bindPostStartEvents(t),
this.emitEvent("pointerDown", [t, e])
}
;
var s = {
mousedown: ["mousemove", "mouseup"],
touchstart: ["touchmove", "touchend", "touchcancel"],
pointerdown: ["pointermove", "pointerup", "pointercancel"]
};
return n._bindPostStartEvents = function(e) {
if (e) {
var i = s[e.type];
i.forEach(function(e) {
t.addEventListener(e, this)
}, this),
this._boundPointerEvents = i
}
}
,
n._unbindPostStartEvents = function() {
this._boundPointerEvents && (this._boundPointerEvents.forEach(function(e) {
t.removeEventListener(e, this)
}, this),
delete this._boundPointerEvents)
}
,
n.onmousemove = function(t) {
this._pointerMove(t, t)
}
,
n.onpointermove = function(t) {
t.pointerId == this.pointerIdentifier && this._pointerMove(t, t)
}
,
n.ontouchmove = function(t) {
var e = this.getTouch(t.changedTouches);
e && this._pointerMove(t, e)
}
,
n._pointerMove = function(t, e) {
this.pointerMove(t, e)
}
,
n.pointerMove = function(t, e) {
this.emitEvent("pointerMove", [t, e])
}
,
n.onmouseup = function(t) {
this._pointerUp(t, t)
}
,
n.onpointerup = function(t) {
t.pointerId == this.pointerIdentifier && this._pointerUp(t, t)
}
,
n.ontouchend = function(t) {
var e = this.getTouch(t.changedTouches);
e && this._pointerUp(t, e)
}
,
n._pointerUp = function(t, e) {
this._pointerDone(),
this.pointerUp(t, e)
}
,
n.pointerUp = function(t, e) {
this.emitEvent("pointerUp", [t, e])
}
,
n._pointerDone = function() {
this._pointerReset(),
this._unbindPostStartEvents(),
this.pointerDone()
}
,
n._pointerReset = function() {
this.isPointerDown = !1,
delete this.pointerIdentifier
}
,
n.pointerDone = function() {}
,
n.onpointercancel = function(t) {
t.pointerId == this.pointerIdentifier && this._pointerCancel(t, t)
}
,
n.ontouchcancel = function(t) {
var e = this.getTouch(t.changedTouches);
e && this._pointerCancel(t, e)
}
,
n._pointerCancel = function(t, e) {
this._pointerDone(),
this.pointerCancel(t, e)
}
,
n.pointerCancel = function(t, e) {
this.emitEvent("pointerCancel", [t, e])
}
,
i.getPointerPoint = function(t) {
return {
x: t.pageX,
y: t.pageY
}
}
,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("unidragger/unidragger", ["unipointer/unipointer"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("unipointer")) : t.Unidragger = e(t, t.Unipointer)
}(window, function(t, e) {
function i() {}
var n = i.prototype = Object.create(e.prototype);
n.bindHandles = function() {
this._bindHandles(!0)
}
,
n.unbindHandles = function() {
this._bindHandles(!1)
}
,
n._bindHandles = function(e) {
for (var i = (e = void 0 === e || e) ? "addEventListener" : "removeEventListener", n = e ? this._touchActionValue : "", s = 0; s < this.handles.length; s++) {
var o = this.handles[s];
this._bindStartEvent(o, e),
o[i]("click", this),
t.PointerEvent && (o.style.touchAction = n)
}
}
,
n._touchActionValue = "none",
n.pointerDown = function(t, e) {
this.okayPointerDown(t) && (this.pointerDownPointer = e,
t.preventDefault(),
this.pointerDownBlur(),
this._bindPostStartEvents(t),
this.emitEvent("pointerDown", [t, e]))
}
;
var s = {
TEXTAREA: !0,
INPUT: !0,
SELECT: !0,
OPTION: !0
}
, o = {
radio: !0,
checkbox: !0,
button: !0,
submit: !0,
image: !0,
file: !0
};
return n.okayPointerDown = function(t) {
var e = s[t.target.nodeName]
, i = o[t.target.type]
, n = !e || i;
return n || this._pointerReset(),
n
}
,
n.pointerDownBlur = function() {
var t = document.activeElement;
t && t.blur && t != document.body && t.blur()
}
,
n.pointerMove = function(t, e) {
var i = this._dragPointerMove(t, e);
this.emitEvent("pointerMove", [t, e, i]),
this._dragMove(t, e, i)
}
,
n._dragPointerMove = function(t, e) {
var i = {
x: e.pageX - this.pointerDownPointer.pageX,
y: e.pageY - this.pointerDownPointer.pageY
};
return !this.isDragging && this.hasDragStarted(i) && this._dragStart(t, e),
i
}
,
n.hasDragStarted = function(t) {
return 3 < Math.abs(t.x) || 3 < Math.abs(t.y)
}
,
n.pointerUp = function(t, e) {
this.emitEvent("pointerUp", [t, e]),
this._dragPointerUp(t, e)
}
,
n._dragPointerUp = function(t, e) {
this.isDragging ? this._dragEnd(t, e) : this._staticClick(t, e)
}
,
n._dragStart = function(t, e) {
this.isDragging = !0,
this.isPreventingClicks = !0,
this.dragStart(t, e)
}
,
n.dragStart = function(t, e) {
this.emitEvent("dragStart", [t, e])
}
,
n._dragMove = function(t, e, i) {
this.isDragging && this.dragMove(t, e, i)
}
,
n.dragMove = function(t, e, i) {
t.preventDefault(),
this.emitEvent("dragMove", [t, e, i])
}
,
n._dragEnd = function(t, e) {
this.isDragging = !1,
setTimeout(function() {
delete this.isPreventingClicks
}
.bind(this)),
this.dragEnd(t, e)
}
,
n.dragEnd = function(t, e) {
this.emitEvent("dragEnd", [t, e])
}
,
n.onclick = function(t) {
this.isPreventingClicks && t.preventDefault()
}
,
n._staticClick = function(t, e) {
this.isIgnoringMouseUp && "mouseup" == t.type || (this.staticClick(t, e),
"mouseup" != t.type && (this.isIgnoringMouseUp = !0,
setTimeout(function() {
delete this.isIgnoringMouseUp
}
.bind(this), 400)))
}
,
n.staticClick = function(t, e) {
this.emitEvent("staticClick", [t, e])
}
,
i.getPointerPoint = e.getPointerPoint,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/drag", ["./flickity", "unidragger/unidragger", "fizzy-ui-utils/utils"], function(i, n, s) {
return e(t, i, n, s)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("./flickity"), require("unidragger"), require("fizzy-ui-utils")) : t.Flickity = e(t, t.Flickity, t.Unidragger, t.fizzyUIUtils)
}(window, function(t, e, i, n) {
function s() {
return {
x: t.pageXOffset,
y: t.pageYOffset
}
}
n.extend(e.defaults, {
draggable: ">1",
dragThreshold: 3
}),
e.createMethods.push("_createDrag");
var o = e.prototype;
n.extend(o, i.prototype),
o._touchActionValue = "pan-y";
var r = "createTouch"in document
, a = !1;
o._createDrag = function() {
this.on("activate", this.onActivateDrag),
this.on("uiChange", this._uiChangeDrag),
this.on("deactivate", this.onDeactivateDrag),
this.on("cellChange", this.updateDraggable),
r && !a && (t.addEventListener("touchmove", function() {}),
a = !0)
}
,
o.onActivateDrag = function() {
this.handles = [this.viewport],
this.bindHandles(),
this.updateDraggable()
}
,
o.onDeactivateDrag = function() {
this.unbindHandles(),
this.element.classList.remove("is-draggable")
}
,
o.updateDraggable = function() {
">1" == this.options.draggable ? this.isDraggable = 1 < this.slides.length : this.isDraggable = this.options.draggable,
this.isDraggable ? this.element.classList.add("is-draggable") : this.element.classList.remove("is-draggable")
}
,
o.bindDrag = function() {
this.options.draggable = !0,
this.updateDraggable()
}
,
o.unbindDrag = function() {
this.options.draggable = !1,
this.updateDraggable()
}
,
o._uiChangeDrag = function() {
delete this.isFreeScrolling
}
,
o.pointerDown = function(e, i) {
this.isDraggable ? this.okayPointerDown(e) && (this._pointerDownPreventDefault(e),
this.pointerDownFocus(e),
document.activeElement != this.element && this.pointerDownBlur(),
this.dragX = this.x,
this.viewport.classList.add("is-pointer-down"),
this.pointerDownScroll = s(),
t.addEventListener("scroll", this),
this._pointerDownDefault(e, i)) : this._pointerDownDefault(e, i)
}
,
o._pointerDownDefault = function(t, e) {
this.pointerDownPointer = {
pageX: e.pageX,
pageY: e.pageY
},
this._bindPostStartEvents(t),
this.dispatchEvent("pointerDown", t, [e])
}
;
var l = {
INPUT: !0,
TEXTAREA: !0,
SELECT: !0
};
return o.pointerDownFocus = function(t) {
l[t.target.nodeName] || this.focus()
}
,
o._pointerDownPreventDefault = function(t) {
var e = "touchstart" == t.type
, i = "touch" == t.pointerType
, n = l[t.target.nodeName];
e || i || n || t.preventDefault()
}
,
o.hasDragStarted = function(t) {
return Math.abs(t.x) > this.options.dragThreshold
}
,
o.pointerUp = function(t, e) {
delete this.isTouchScrolling,
this.viewport.classList.remove("is-pointer-down"),
this.dispatchEvent("pointerUp", t, [e]),
this._dragPointerUp(t, e)
}
,
o.pointerDone = function() {
t.removeEventListener("scroll", this),
delete this.pointerDownScroll
}
,
o.dragStart = function(e, i) {
this.isDraggable && (this.dragStartPosition = this.x,
this.startAnimation(),
t.removeEventListener("scroll", this),
this.dispatchEvent("dragStart", e, [i]))
}
,
o.pointerMove = function(t, e) {
var i = this._dragPointerMove(t, e);
this.dispatchEvent("pointerMove", t, [e, i]),
this._dragMove(t, e, i)
}
,
o.dragMove = function(t, e, i) {
if (this.isDraggable) {
t.preventDefault(),
this.previousDragX = this.dragX;
var n = this.options.rightToLeft ? -1 : 1;
this.options.wrapAround && (i.x = i.x % this.slideableWidth);
var s = this.dragStartPosition + i.x * n;
if (!this.options.wrapAround && this.slides.length) {
var o = Math.max(-this.slides[0].target, this.dragStartPosition);
s = o < s ? .5 * (s + o) : s;
var r = Math.min(-this.getLastSlide().target, this.dragStartPosition);
s = s < r ? .5 * (s + r) : s
}
this.dragX = s,
this.dragMoveTime = new Date,
this.dispatchEvent("dragMove", t, [e, i])
}
}
,
o.dragEnd = function(t, e) {
if (this.isDraggable) {
this.options.freeScroll && (this.isFreeScrolling = !0);
var i = this.dragEndRestingSelect();
if (this.options.freeScroll && !this.options.wrapAround) {
var n = this.getRestingPosition();
this.isFreeScrolling = -n > this.slides[0].target && -n < this.getLastSlide().target
} else
this.options.freeScroll || i != this.selectedIndex || (i += this.dragEndBoostSelect());
delete this.previousDragX,
this.isDragSelect = this.options.wrapAround,
this.select(i),
delete this.isDragSelect,
this.dispatchEvent("dragEnd", t, [e])
}
}
,
o.dragEndRestingSelect = function() {
var t = this.getRestingPosition()
, e = Math.abs(this.getSlideDistance(-t, this.selectedIndex))
, i = this._getClosestResting(t, e, 1)
, n = this._getClosestResting(t, e, -1);
return i.distance < n.distance ? i.index : n.index
}
,
o._getClosestResting = function(t, e, i) {
for (var n = this.selectedIndex, s = 1 / 0, o = this.options.contain && !this.options.wrapAround ? function(t, e) {
return t <= e
}
: function(t, e) {
return t < e
}
; o(e, s) && (n += i,
s = e,
null !== (e = this.getSlideDistance(-t, n))); )
e = Math.abs(e);
return {
distance: s,
index: n - i
}
}
,
o.getSlideDistance = function(t, e) {
var i = this.slides.length
, s = this.options.wrapAround && 1 < i
, o = s ? n.modulo(e, i) : e
, r = this.slides[o];
if (!r)
return null;
var a = s ? this.slideableWidth * Math.floor(e / i) : 0;
return t - (r.target + a)
}
,
o.dragEndBoostSelect = function() {
if (void 0 === this.previousDragX || !this.dragMoveTime || 100 < new Date - this.dragMoveTime)
return 0;
var t = this.getSlideDistance(-this.dragX, this.selectedIndex)
, e = this.previousDragX - this.dragX;
return 0 < t && 0 < e ? 1 : t < 0 && e < 0 ? -1 : 0
}
,
o.staticClick = function(t, e) {
var i = this.getParentCell(t.target)
, n = i && i.element
, s = i && this.cells.indexOf(i);
this.dispatchEvent("staticClick", t, [e, n, s])
}
,
o.onscroll = function() {
var t = s()
, e = this.pointerDownScroll.x - t.x
, i = this.pointerDownScroll.y - t.y;
(3 < Math.abs(e) || 3 < Math.abs(i)) && this._pointerDone()
}
,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/prev-next-button", ["./flickity", "unipointer/unipointer", "fizzy-ui-utils/utils"], function(i, n, s) {
return e(t, i, n, s)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("./flickity"), require("unipointer"), require("fizzy-ui-utils")) : e(t, t.Flickity, t.Unipointer, t.fizzyUIUtils)
}(window, function(t, e, i, n) {
"use strict";
function s(t, e) {
this.direction = t,
this.parent = e,
this._create()
}
var o = "http://www.w3.org/2000/svg";
(s.prototype = Object.create(i.prototype))._create = function() {
this.isEnabled = !0,
this.isPrevious = -1 == this.direction;
var t = this.parent.options.rightToLeft ? 1 : -1;
this.isLeft = this.direction == t;
var e = this.element = document.createElement("button");
e.className = "flickity-button flickity-prev-next-button",
e.className += this.isPrevious ? " previous" : " next",
e.setAttribute("type", "button"),
this.disable(),
e.setAttribute("aria-label", this.isPrevious ? "Previous" : "Next");
var i = this.createSVG();
e.appendChild(i),
this.parent.on("select", this.update.bind(this)),
this.on("pointerDown", this.parent.childUIPointerDown.bind(this.parent))
}
,
s.prototype.activate = function() {
this.bindStartEvent(this.element),
this.element.addEventListener("click", this),
this.parent.element.appendChild(this.element)
}
,
s.prototype.deactivate = function() {
this.parent.element.removeChild(this.element),
this.unbindStartEvent(this.element),
this.element.removeEventListener("click", this)
}
,
s.prototype.createSVG = function() {
var t = document.createElementNS(o, "svg");
t.setAttribute("class", "flickity-button-icon"),
t.setAttribute("viewBox", "0 0 100 100");
var e = document.createElementNS(o, "path")
, i = function(t) {
return "string" != typeof t ? "M " + t.x0 + ",50 L " + t.x1 + "," + (t.y1 + 50) + " L " + t.x2 + "," + (t.y2 + 50) + " L " + t.x3 + ",50 L " + t.x2 + "," + (50 - t.y2) + " L " + t.x1 + "," + (50 - t.y1) + " Z" : t
}(this.parent.options.arrowShape);
return e.setAttribute("d", i),
e.setAttribute("class", "arrow"),
this.isLeft || e.setAttribute("transform", "translate(100, 100) rotate(180) "),
t.appendChild(e),
t
}
,
s.prototype.handleEvent = n.handleEvent,
s.prototype.onclick = function() {
if (this.isEnabled) {
this.parent.uiChange();
var t = this.isPrevious ? "previous" : "next";
this.parent[t]()
}
}
,
s.prototype.enable = function() {
this.isEnabled || (this.element.disabled = !1,
this.isEnabled = !0)
}
,
s.prototype.disable = function() {
this.isEnabled && (this.element.disabled = !0,
this.isEnabled = !1)
}
,
s.prototype.update = function() {
var t = this.parent.slides;
if (this.parent.options.wrapAround && 1 < t.length)
this.enable();
else {
var e = t.length ? t.length - 1 : 0
, i = this.isPrevious ? 0 : e;
this[this.parent.selectedIndex == i ? "disable" : "enable"]()
}
}
,
s.prototype.destroy = function() {
this.deactivate(),
this.allOff()
}
,
n.extend(e.defaults, {
prevNextButtons: !0,
arrowShape: {
x0: 10,
x1: 60,
y1: 50,
x2: 70,
y2: 40,
x3: 30
}
}),
e.createMethods.push("_createPrevNextButtons");
var r = e.prototype;
return r._createPrevNextButtons = function() {
this.options.prevNextButtons && (this.prevButton = new s(-1,this),
this.nextButton = new s(1,this),
this.on("activate", this.activatePrevNextButtons))
}
,
r.activatePrevNextButtons = function() {
this.prevButton.activate(),
this.nextButton.activate(),
this.on("deactivate", this.deactivatePrevNextButtons)
}
,
r.deactivatePrevNextButtons = function() {
this.prevButton.deactivate(),
this.nextButton.deactivate(),
this.off("deactivate", this.deactivatePrevNextButtons)
}
,
e.PrevNextButton = s,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/page-dots", ["./flickity", "unipointer/unipointer", "fizzy-ui-utils/utils"], function(i, n, s) {
return e(t, i, n, s)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("./flickity"), require("unipointer"), require("fizzy-ui-utils")) : e(t, t.Flickity, t.Unipointer, t.fizzyUIUtils)
}(window, function(t, e, i, n) {
function s(t) {
this.parent = t,
this._create()
}
(s.prototype = Object.create(i.prototype))._create = function() {
this.holder = document.createElement("ol"),
this.holder.className = "flickity-page-dots",
this.dots = [],
this.handleClick = this.onClick.bind(this),
this.on("pointerDown", this.parent.childUIPointerDown.bind(this.parent))
}
,
s.prototype.activate = function() {
this.setDots(),
this.holder.addEventListener("click", this.handleClick),
this.bindStartEvent(this.holder),
this.parent.element.appendChild(this.holder)
}
,
s.prototype.deactivate = function() {
this.holder.removeEventListener("click", this.handleClick),
this.unbindStartEvent(this.holder),
this.parent.element.removeChild(this.holder)
}
,
s.prototype.setDots = function() {
var t = this.parent.slides.length - this.dots.length;
0 < t ? this.addDots(t) : t < 0 && this.removeDots(-t)
}
,
s.prototype.addDots = function(t) {
for (var e = document.createDocumentFragment(), i = [], n = this.dots.length, s = n + t, o = n; o < s; o++) {
var r = document.createElement("li");
r.className = "dot",
r.setAttribute("aria-label", "Page dot " + (o + 1)),
e.appendChild(r),
i.push(r)
}
this.holder.appendChild(e),
this.dots = this.dots.concat(i)
}
,
s.prototype.removeDots = function(t) {
this.dots.splice(this.dots.length - t, t).forEach(function(t) {
this.holder.removeChild(t)
}, this)
}
,
s.prototype.updateSelected = function() {
this.selectedDot && (this.selectedDot.className = "dot",
this.selectedDot.removeAttribute("aria-current")),
this.dots.length && (this.selectedDot = this.dots[this.parent.selectedIndex],
this.selectedDot.className = "dot is-selected",
this.selectedDot.setAttribute("aria-current", "step"))
}
,
s.prototype.onTap = s.prototype.onClick = function(t) {
var e = t.target;
if ("LI" == e.nodeName) {
this.parent.uiChange();
var i = this.dots.indexOf(e);
this.parent.select(i)
}
}
,
s.prototype.destroy = function() {
this.deactivate(),
this.allOff()
}
,
e.PageDots = s,
n.extend(e.defaults, {
pageDots: !0
}),
e.createMethods.push("_createPageDots");
var o = e.prototype;
return o._createPageDots = function() {
this.options.pageDots && (this.pageDots = new s(this),
this.on("activate", this.activatePageDots),
this.on("select", this.updateSelectedPageDots),
this.on("cellChange", this.updatePageDots),
this.on("resize", this.updatePageDots),
this.on("deactivate", this.deactivatePageDots))
}
,
o.activatePageDots = function() {
this.pageDots.activate()
}
,
o.updateSelectedPageDots = function() {
this.pageDots.updateSelected()
}
,
o.updatePageDots = function() {
this.pageDots.setDots()
}
,
o.deactivatePageDots = function() {
this.pageDots.deactivate()
}
,
e.PageDots = s,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/player", ["ev-emitter/ev-emitter", "fizzy-ui-utils/utils", "./flickity"], function(t, i, n) {
return e(t, i, n)
}) : "object" == typeof module && module.exports ? module.exports = e(require("ev-emitter"), require("fizzy-ui-utils"), require("./flickity")) : e(t.EvEmitter, t.fizzyUIUtils, t.Flickity)
}(window, function(t, e, i) {
function n(t) {
this.parent = t,
this.state = "stopped",
this.onVisibilityChange = this.visibilityChange.bind(this),
this.onVisibilityPlay = this.visibilityPlay.bind(this)
}
(n.prototype = Object.create(t.prototype)).play = function() {
"playing" != this.state && (document.hidden ? document.addEventListener("visibilitychange", this.onVisibilityPlay) : (this.state = "playing",
document.addEventListener("visibilitychange", this.onVisibilityChange),
this.tick()))
}
,
n.prototype.tick = function() {
if ("playing" == this.state) {
var t = this.parent.options.autoPlay;
t = "number" == typeof t ? t : 3e3;
var e = this;
this.clear(),
this.timeout = setTimeout(function() {
e.parent.next(!0),
e.tick()
}, t)
}
}
,
n.prototype.stop = function() {
this.state = "stopped",
this.clear(),
document.removeEventListener("visibilitychange", this.onVisibilityChange)
}
,
n.prototype.clear = function() {
clearTimeout(this.timeout)
}
,
n.prototype.pause = function() {
"playing" == this.state && (this.state = "paused",
this.clear())
}
,
n.prototype.unpause = function() {
"paused" == this.state && this.play()
}
,
n.prototype.visibilityChange = function() {
this[document.hidden ? "pause" : "unpause"]()
}
,
n.prototype.visibilityPlay = function() {
this.play(),
document.removeEventListener("visibilitychange", this.onVisibilityPlay)
}
,
e.extend(i.defaults, {
pauseAutoPlayOnHover: !0
}),
i.createMethods.push("_createPlayer");
var s = i.prototype;
return s._createPlayer = function() {
this.player = new n(this),
this.on("activate", this.activatePlayer),
this.on("uiChange", this.stopPlayer),
this.on("pointerDown", this.stopPlayer),
this.on("deactivate", this.deactivatePlayer)
}
,
s.activatePlayer = function() {
this.options.autoPlay && (this.player.play(),
this.element.addEventListener("mouseenter", this))
}
,
s.playPlayer = function() {
this.player.play()
}
,
s.stopPlayer = function() {
this.player.stop()
}
,
s.pausePlayer = function() {
this.player.pause()
}
,
s.unpausePlayer = function() {
this.player.unpause()
}
,
s.deactivatePlayer = function() {
this.player.stop(),
this.element.removeEventListener("mouseenter", this)
}
,
s.onmouseenter = function() {
this.options.pauseAutoPlayOnHover && (this.player.pause(),
this.element.addEventListener("mouseleave", this))
}
,
s.onmouseleave = function() {
this.player.unpause(),
this.element.removeEventListener("mouseleave", this)
}
,
i.Player = n,
i
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/add-remove-cell", ["./flickity", "fizzy-ui-utils/utils"], function(i, n) {
return e(t, i, n)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("./flickity"), require("fizzy-ui-utils")) : e(t, t.Flickity, t.fizzyUIUtils)
}(window, function(t, e, i) {
var n = e.prototype;
return n.insert = function(t, e) {
var i = this._makeCells(t);
if (i && i.length) {
var n = this.cells.length;
e = void 0 === e ? n : e;
var s = function(t) {
var e = document.createDocumentFragment();
return t.forEach(function(t) {
e.appendChild(t.element)
}),
e
}(i)
, o = e == n;
if (o)
this.slider.appendChild(s);
else {
var r = this.cells[e].element;
this.slider.insertBefore(s, r)
}
if (0 === e)
this.cells = i.concat(this.cells);
else if (o)
this.cells = this.cells.concat(i);
else {
var a = this.cells.splice(e, n - e);
this.cells = this.cells.concat(i).concat(a)
}
this._sizeCells(i),
this.cellChange(e, !0)
}
}
,
n.append = function(t) {
this.insert(t, this.cells.length)
}
,
n.prepend = function(t) {
this.insert(t, 0)
}
,
n.remove = function(t) {
var e = this.getCells(t);
if (e && e.length) {
var n = this.cells.length - 1;
e.forEach(function(t) {
t.remove();
var e = this.cells.indexOf(t);
n = Math.min(e, n),
i.removeFrom(this.cells, t)
}, this),
this.cellChange(n, !0)
}
}
,
n.cellSizeChange = function(t) {
var e = this.getCell(t);
if (e) {
e.getSize();
var i = this.cells.indexOf(e);
this.cellChange(i)
}
}
,
n.cellChange = function(t, e) {
var i = this.selectedElement;
this._positionCells(t),
this._getWrapShiftCells(),
this.setGallerySize();
var n = this.getCell(i);
n && (this.selectedIndex = this.getCellSlideIndex(n)),
this.selectedIndex = Math.min(this.slides.length - 1, this.selectedIndex),
this.emitEvent("cellChange", [t]),
this.select(this.selectedIndex),
e && this.positionSliderAtSelected()
}
,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/lazyload", ["./flickity", "fizzy-ui-utils/utils"], function(i, n) {
return e(t, i, n)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("./flickity"), require("fizzy-ui-utils")) : e(t, t.Flickity, t.fizzyUIUtils)
}(window, function(t, e, i) {
"use strict";
function n(t, e) {
this.img = t,
this.flickity = e,
this.load()
}
e.createMethods.push("_createLazyload");
var s = e.prototype;
return s._createLazyload = function() {
this.on("select", this.lazyLoad)
}
,
s.lazyLoad = function() {
var t = this.options.lazyLoad;
if (t) {
var e = "number" == typeof t ? t : 0
, s = this.getAdjacentCellElements(e)
, o = [];
s.forEach(function(t) {
var e = function(t) {
if ("IMG" == t.nodeName) {
var e = t.getAttribute("data-flickity-lazyload")
, n = t.getAttribute("data-flickity-lazyload-src")
, s = t.getAttribute("data-flickity-lazyload-srcset");
if (e || n || s)
return [t]
}
var o = t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");
return i.makeArray(o)
}(t);
o = o.concat(e)
}),
o.forEach(function(t) {
new n(t,this)
}, this)
}
}
,
n.prototype.handleEvent = i.handleEvent,
n.prototype.load = function() {
this.img.addEventListener("load", this),
this.img.addEventListener("error", this);
var t = this.img.getAttribute("data-flickity-lazyload") || this.img.getAttribute("data-flickity-lazyload-src")
, e = this.img.getAttribute("data-flickity-lazyload-srcset");
this.img.src = t,
e && this.img.setAttribute("srcset", e),
this.img.removeAttribute("data-flickity-lazyload"),
this.img.removeAttribute("data-flickity-lazyload-src"),
this.img.removeAttribute("data-flickity-lazyload-srcset")
}
,
n.prototype.onload = function(t) {
this.complete(t, "flickity-lazyloaded")
}
,
n.prototype.onerror = function(t) {
this.complete(t, "flickity-lazyerror")
}
,
n.prototype.complete = function(t, e) {
this.img.removeEventListener("load", this),
this.img.removeEventListener("error", this);
var i = this.flickity.getParentCell(this.img)
, n = i && i.element;
this.flickity.cellSizeChange(n),
this.img.classList.add(e),
this.flickity.dispatchEvent("lazyLoad", t, n)
}
,
e.LazyLoader = n,
e
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity/js/index", ["./flickity", "./drag", "./prev-next-button", "./page-dots", "./player", "./add-remove-cell", "./lazyload"], e) : "object" == typeof module && module.exports && (module.exports = e(require("./flickity"), require("./drag"), require("./prev-next-button"), require("./page-dots"), require("./player"), require("./add-remove-cell"), require("./lazyload")))
}(window, function(t) {
return t
}),
function(t, e) {
"function" == typeof define && define.amd ? define("flickity-as-nav-for/as-nav-for", ["flickity/js/index", "fizzy-ui-utils/utils"], e) : "object" == typeof module && module.exports ? module.exports = e(require("flickity"), require("fizzy-ui-utils")) : t.Flickity = e(t.Flickity, t.fizzyUIUtils)
}(window, function(t, e) {
t.createMethods.push("_createAsNavFor");
var i = t.prototype;
return i._createAsNavFor = function() {
this.on("activate", this.activateAsNavFor),
this.on("deactivate", this.deactivateAsNavFor),
this.on("destroy", this.destroyAsNavFor);
var t = this.options.asNavFor;
if (t) {
var e = this;
setTimeout(function() {
e.setNavCompanion(t)
})
}
}
,
i.setNavCompanion = function(i) {
i = e.getQueryElement(i);
var n = t.data(i);
if (n && n != this) {
this.navCompanion = n;
var s = this;
this.onNavCompanionSelect = function() {
s.navCompanionSelect()
}
,
n.on("select", this.onNavCompanionSelect),
this.on("staticClick", this.onNavStaticClick),
this.navCompanionSelect(!0)
}
}
,
i.navCompanionSelect = function(t) {
var e = this.navCompanion && this.navCompanion.selectedCells;
if (e) {
var i = e[0]
, n = this.navCompanion.cells.indexOf(i)
, s = n + e.length - 1
, o = Math.floor(function(t, e, i) {
return (e - t) * i + t
}(n, s, this.navCompanion.cellAlign));
if (this.selectCell(o, !1, t),
this.removeNavSelectedElements(),
!(o >= this.cells.length)) {
var r = this.cells.slice(n, 1 + s);
this.navSelectedElements = r.map(function(t) {
return t.element
}),
this.changeNavSelectedClass("add")
}
}
}
,
i.changeNavSelectedClass = function(t) {
this.navSelectedElements.forEach(function(e) {
e.classList[t]("is-nav-selected")
})
}
,
i.activateAsNavFor = function() {
this.navCompanionSelect(!0)
}
,
i.removeNavSelectedElements = function() {
this.navSelectedElements && (this.changeNavSelectedClass("remove"),
delete this.navSelectedElements)
}
,
i.onNavStaticClick = function(t, e, i, n) {
"number" == typeof n && this.navCompanion.selectCell(n)
}
,
i.deactivateAsNavFor = function() {
this.removeNavSelectedElements()
}
,
i.destroyAsNavFor = function() {
this.navCompanion && (this.navCompanion.off("select", this.onNavCompanionSelect),
this.off("staticClick", this.onNavStaticClick),
delete this.navCompanion)
}
,
t
}),
function(t, e) {
"use strict";
"function" == typeof define && define.amd ? define("imagesloaded/imagesloaded", ["ev-emitter/ev-emitter"], function(i) {
return e(t, i)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter")) : t.imagesLoaded = e(t, t.EvEmitter)
}("undefined" != typeof window ? window : this, function(t, e) {
function i(t, e) {
for (var i in e)
t[i] = e[i];
return t
}
function n(t, e, s) {
if (!(this instanceof n))
return new n(t,e,s);
var o = t;
"string" == typeof t && (o = document.querySelectorAll(t)),
o ? (this.elements = function(t) {
return Array.isArray(t) ? t : "object" == typeof t && "number" == typeof t.length ? l.call(t) : [t]
}(o),
this.options = i({}, this.options),
"function" == typeof e ? s = e : i(this.options, e),
s && this.on("always", s),
this.getImages(),
r && (this.jqDeferred = new r.Deferred),
setTimeout(this.check.bind(this))) : a.error("Bad element for imagesLoaded " + (o || t))
}
function s(t) {
this.img = t
}
function o(t, e) {
this.url = t,
this.element = e,
this.img = new Image
}
var r = t.jQuery
, a = t.console
, l = Array.prototype.slice;
(n.prototype = Object.create(e.prototype)).options = {},
n.prototype.getImages = function() {
this.images = [],
this.elements.forEach(this.addElementImages, this)
}
,
n.prototype.addElementImages = function(t) {
"IMG" == t.nodeName && this.addImage(t),
!0 === this.options.background && this.addElementBackgroundImages(t);
var e = t.nodeType;
if (e && d[e]) {
for (var i = t.querySelectorAll("img"), n = 0; n < i.length; n++) {
var s = i[n];
this.addImage(s)
}
if ("string" == typeof this.options.background) {
var o = t.querySelectorAll(this.options.background);
for (n = 0; n < o.length; n++) {
var r = o[n];
this.addElementBackgroundImages(r)
}
}
}
}
;
var d = {
1: !0,
9: !0,
11: !0
};
return n.prototype.addElementBackgroundImages = function(t) {
var e = getComputedStyle(t);
if (e)
for (var i = /url\((['"])?(.*?)\1\)/gi, n = i.exec(e.backgroundImage); null !== n; ) {
var s = n && n[2];
s && this.addBackground(s, t),
n = i.exec(e.backgroundImage)
}
}
,
n.prototype.addImage = function(t) {
var e = new s(t);
this.images.push(e)
}
,
n.prototype.addBackground = function(t, e) {
var i = new o(t,e);
this.images.push(i)
}
,
n.prototype.check = function() {
function t(t, i, n) {
setTimeout(function() {
e.progress(t, i, n)
})
}
var e = this;
this.progressedCount = 0,
this.hasAnyBroken = !1,
this.images.length ? this.images.forEach(function(e) {
e.once("progress", t),
e.check()
}) : this.complete()
}
,
n.prototype.progress = function(t, e, i) {
this.progressedCount++,
this.hasAnyBroken = this.hasAnyBroken || !t.isLoaded,
this.emitEvent("progress", [this, t, e]),
this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, t),
this.progressedCount == this.images.length && this.complete(),
this.options.debug && a && a.log("progress: " + i, t, e)
}
,
n.prototype.complete = function() {
var t = this.hasAnyBroken ? "fail" : "done";
if (this.isComplete = !0,
this.emitEvent(t, [this]),
this.emitEvent("always", [this]),
this.jqDeferred) {
var e = this.hasAnyBroken ? "reject" : "resolve";
this.jqDeferred[e](this)
}
}
,
(s.prototype = Object.create(e.prototype)).check = function() {
this.getIsImageComplete() ? this.confirm(0 !== this.img.naturalWidth, "naturalWidth") : (this.proxyImage = new Image,
this.proxyImage.addEventListener("load", this),
this.proxyImage.addEventListener("error", this),
this.img.addEventListener("load", this),
this.img.addEventListener("error", this),
this.proxyImage.src = this.img.src)
}
,
s.prototype.getIsImageComplete = function() {
return this.img.complete && this.img.naturalWidth
}
,
s.prototype.confirm = function(t, e) {
this.isLoaded = t,
this.emitEvent("progress", [this, this.img, e])
}
,
s.prototype.handleEvent = function(t) {
var e = "on" + t.type;
this[e] && this[e](t)
}
,
s.prototype.onload = function() {
this.confirm(!0, "onload"),
this.unbindEvents()
}
,
s.prototype.onerror = function() {
this.confirm(!1, "onerror"),
this.unbindEvents()
}
,
s.prototype.unbindEvents = function() {
this.proxyImage.removeEventListener("load", this),
this.proxyImage.removeEventListener("error", this),
this.img.removeEventListener("load", this),
this.img.removeEventListener("error", this)
}
,
(o.prototype = Object.create(s.prototype)).check = function() {
this.img.addEventListener("load", this),
this.img.addEventListener("error", this),
this.img.src = this.url,
this.getIsImageComplete() && (this.confirm(0 !== this.img.naturalWidth, "naturalWidth"),
this.unbindEvents())
}
,
o.prototype.unbindEvents = function() {
this.img.removeEventListener("load", this),
this.img.removeEventListener("error", this)
}
,
o.prototype.confirm = function(t, e) {
this.isLoaded = t,
this.emitEvent("progress", [this, this.element, e])
}
,
n.makeJQueryPlugin = function(e) {
(e = e || t.jQuery) && ((r = e).fn.imagesLoaded = function(t, e) {
return new n(this,t,e).jqDeferred.promise(r(this))
}
)
}
,
n.makeJQueryPlugin(),
n
}),
function(t, e) {
"function" == typeof define && define.amd ? define(["flickity/js/index", "imagesloaded/imagesloaded"], function(i, n) {
return e(t, i, n)
}) : "object" == typeof module && module.exports ? module.exports = e(t, require("flickity"), require("imagesloaded")) : t.Flickity = e(t, t.Flickity, t.imagesLoaded)
}(window, function(t, e, i) {
"use strict";
e.createMethods.push("_createImagesLoaded");
var n = e.prototype;
return n._createImagesLoaded = function() {
this.on("activate", this.imagesLoaded)
}
,
n.imagesLoaded = function() {
if (this.options.imagesLoaded) {
var t = this;
i(this.slider).on("progress", function(e, i) {
var n = t.getParentCell(i.img);
t.cellSizeChange(n && n.element),
t.options.freeScroll || t.positionSliderAtSelected()
})
}
}
,
e
}),
document.addEventListener("DOMContentLoaded", function() {
if (jQuery.fn.exists = function() {
return this.length > 0
}
,
$(".drag-drop #dropzone.cvs").exists())
new Dropzone("#dropzone.cvs > form",{
method: "put",
paramName: "user[cvs][]",
dictDefaultMessage: "Drag-and-drop your CV here, or click to select the file",
clickable: "#dropzone.cvs",
init: function() {
this.on("success", function() {
location.reload()
})
}
})
}),
document.addEventListener("DOMContentLoaded", function() {
jQuery.fn.exists = function() {
return this.length > 0
}
,
$(".suggested-jobs").bxSlider({
slideMargin: 0,
auto: !0,
pager: !0,
loop: !1,
touchEnabled: !1,
pause: 2e4,
items: 4,
controls: !1
})
}),
document.addEventListener("DOMContentLoaded", function() {
$("body:not(.edit) ul").each(function() {
let t = $(this);
t.find(".mayon-accordion").length > 0 && t.addClass("accordion")
})
}),
window.addEventListener("load", function() {
$("body:not(.edit)").length > 0 && ($("ul.accordion").length > 0 && ($("ul.accordion > li").addClass("collapsible").attr("tabindex", "0"),
$("ul.accordion > ul").addClass("collapse-content"),
$("ul.accordion").addClass("loaded")),
$("li.collapsible").on("click", function() {
let t = $(this)
, e = t.next(".collapse-content");
$("li.collapsible.active").not(t).removeClass("active"),
$(".collapse-content.active").not(e).removeClass("active"),
t.toggleClass("active"),
e.toggleClass("active")
}).on("keypress", function(t) {
13 === t.which && $(this).trigger("click")
}))
}),
document.addEventListener("DOMContentLoaded", function() {
/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);
jQuery.fn.exists = function() {
return this.length > 0
}
,
$("body").on("click", ".linkedin", function() {
$(".connecting-loader").fadeIn(200)
}),
$('[data-toggle="tooltip"]').tooltip(),
$("#body iframe, .body iframe").wrap(""),
$("#menu").mmenu({
offCanvas: {
position: "right"
},
extensions: ["position-back", "position-right"]
}),
objectFitImages();
var t = window.location.href
, e = /(.+\/job\/.+)\/application(?!-)/;
if (t.match(e)) {
var i = t.replace(e, "$1/application-completed");
window.location.href = i
}
if ($("#header #main-nav ul.navigation_list > li").find("> a").each(function() {
"#" == $(this).attr("href").charAt(0) && $(this).click(function() {
return !1
})
}),
$(".redirect select").change(function(t) {
var e = this.value;
"" !== e && (document.location.href = e),
t.preventDefault()
}),
$("#team-tro").exists() && $(".team-list").owlCarousel({
autoplay: !0,
loop: !0,
items: 4,
autoHeight: !0,
autoplayHoverPause: !0,
nav: !0,
margin: 10,
responsive: {
0: {
items: 1,
margin: 0
},
600: {
items: 2
},
991: {
items: 3
},
1400: {
items: 4
},
1920: {
items: 4
}
}
}),
$(".tests").exists() && $(".tests_carousel").owlCarousel({
autoplay: !0,
loop: !0,
items: 1,
dots: !0,
dotsEach: !0,
animateOut: "fadeOut",
animateIn: "fadeIn",
autoHeight: !1,
autoplaySpeed: 3e3,
autoplayTimeout: 3500,
center: !0
}),
$("#logo-slider").exists() && $(".logo-slider-wrapper").owlCarousel({
autoplay: !0,
loop: !0,
margin: 10,
responsive: {
0: {
items: 1
},
520: {
items: 2
},
768: {
items: 3
},
1400: {
items: 4
}
}
}),
$("#team-tro").exists() && ($("#team-tro .cons-desc .vis-hover").hide(),
$("#team-tro .team-list li").mouseenter(function() {
$(this).find(".vis-hover").stop().slideDown(300)
}).mouseleave(function() {
$(this).find(".vis-hover").stop().slideUp(300)
})),
$("#blogs-featured").exists() && window.innerWidth > 991 && ($("#blogs-featured ul li article .vis-hover").hide(),
$("#blogs-featured ul li a").mouseenter(function() {
$(this).find(".vis-hover").stop().slideDown(300)
}).mouseleave(function() {
$(this).find(".vis-hover").stop().slideUp(300)
})),
$(".next-section").click(function() {
$("html, body").animate({
scrollTop: $(".next-section").offset().top
}, 800)
}),
$("body.edit").exists() || ($(window).scroll(function() {
var t = $("#header");
$(window).scrollTop() >= 100 ? (t.addClass("fixed"),
t.slideDown(0)) : t.removeClass("fixed")
}),
$(window).scroll(function() {
var t = $("#header");
$(window).scrollTop() >= 300 ? (t.addClass("stuck"),
t.slideDown(0)) : t.removeClass("stuck")
})),
$("#main-banner").exists() && window.innerWidth > 991 && $("video").exists()) {
function n(t) {
function e() {
return t.width() - l > 0 ? (t.width() - l) / 2 : 0
}
function i() {
return trans_y = t.height() - d > 0 ? (t.height() - d) / 2 : 0,
trans_y
}
var s = t.get(0).videoWidth
, o = t.get(0).videoHeight
, r = s / o
, a = t.parent("div")
, l = a.innerWidth()
, d = a.outerHeight()
, h = l / d;
isNaN(r) ? setTimeout(function() {
isNaN(r) && n(t)
}, 50) : h / r >= 1 ? t.css({
width: window.innerWidth / s * s,
height: window.innerWidth / s * o,
transform: "translate(-" + e() + "px,-" + i() + "px)"
}) : t.css({
width: d / o * s,
height: d / o * o,
transform: "translate(-" + e() + "px,-" + i() + "px)"
})
}
$(window).resize(function() {
for (var t = 0; t < 3; t++)
n($("video"))
}),
n($("video"))
}
$("video").exists() && $(window).load(function() {
$("video")[0].play()
}),
$("#consultants.slider").exists() && $("ul#slider").owlCarousel({
autoplay: !0,
loop: !0,
margin: 10,
responsive: {
0: {
items: 1
},
520: {
items: 3
}
}
})
}),
window.addEventListener("load", function() {
$(".section-heading").each(function() {
var t = $(this).text();
"." == t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1) + ".");
var e = "#" + $(this).closest("section").attr("id");
$("#section-anchor").append('