{"version":3,"sources":["bootstrap.min.js","validator.min.js","breakpoint.js","jquery.countTo.js","jquery.countdown.js","jquery.easing.1.3.js","jquery.easypiechart.min.js","jquery.eislideshow.js","jquery.flexslider-min.js","imagesloaded.js","jquery.isotope.js","jquery.magnific-popup.min.js","jquery.ajaxchimp.min.js","menuzord.js","jquery.nav.js","owl.carousel.min.js","parallax.min.js","smooth.js","jquery.sticky.min.js","touchspin.js","typist.js","visible.js","wow.min.js","jquery.cycle2.js","jquery.cycle2.swipe.min.js","scripts.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjaA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC73BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/6HA;AACA;AACA;AACA;ACHA;AACA;ACDA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9CA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5eA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnEA;AACA;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3gDA;AACA;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"main.js","sourcesContent":["/*!\r\n * Bootstrap v3.3.7 (http://getbootstrap.com)\r\n * Copyright 2011-2016 Twitter, Inc.\r\n * Licensed under the MIT license\r\n */\r\nif(\"undefined\"==typeof jQuery)throw new Error(\"Bootstrap's JavaScript requires jQuery\");+function(a){\"use strict\";var b=a.fn.jquery.split(\" \")[0].split(\".\");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error(\"Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4\")}(jQuery),+function(a){\"use strict\";function b(){var a=document.createElement(\"bootstrap\"),b={WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\",OTransition:\"oTransitionEnd otransitionend\",transition:\"transitionend\"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(\"bsTransitionEnd\",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){\"use strict\";function b(b){return this.each(function(){var c=a(this),e=c.data(\"bs.alert\");e||c.data(\"bs.alert\",e=new d(this)),\"string\"==typeof b&&e[b].call(c)})}var c='[data-dismiss=\"alert\"]',d=function(b){a(b).on(\"click\",c,this.close)};d.VERSION=\"3.3.7\",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger(\"closed.bs.alert\").remove()}var e=a(this),f=e.attr(\"data-target\");f||(f=e.attr(\"href\"),f=f&&f.replace(/.*(?=#[^\\s]*$)/,\"\"));var g=a(\"#\"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(\".alert\")),g.trigger(b=a.Event(\"close.bs.alert\")),b.isDefaultPrevented()||(g.removeClass(\"in\"),a.support.transition&&g.hasClass(\"fade\")?g.one(\"bsTransitionEnd\",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on(\"click.bs.alert.data-api\",c,d.prototype.close)}(jQuery),+function(a){\"use strict\";function b(b){return this.each(function(){var d=a(this),e=d.data(\"bs.button\"),f=\"object\"==typeof b&&b;e||d.data(\"bs.button\",e=new c(this,f)),\"toggle\"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION=\"3.3.7\",c.DEFAULTS={loadingText:\"loading...\"},c.prototype.setState=function(b){var c=\"disabled\",d=this.$element,e=d.is(\"input\")?\"val\":\"html\",f=d.data();b+=\"Text\",null==f.resetText&&d.data(\"resetText\",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),\"loadingText\"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle=\"buttons\"]');if(b.length){var c=this.$element.find(\"input\");\"radio\"==c.prop(\"type\")?(c.prop(\"checked\")&&(a=!1),b.find(\".active\").removeClass(\"active\"),this.$element.addClass(\"active\")):\"checkbox\"==c.prop(\"type\")&&(c.prop(\"checked\")!==this.$element.hasClass(\"active\")&&(a=!1),this.$element.toggleClass(\"active\")),c.prop(\"checked\",this.$element.hasClass(\"active\")),a&&c.trigger(\"change\")}else this.$element.attr(\"aria-pressed\",!this.$element.hasClass(\"active\")),this.$element.toggleClass(\"active\")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on(\"click.bs.button.data-api\",'[data-toggle^=\"button\"]',function(c){var d=a(c.target).closest(\".btn\");b.call(d,\"toggle\"),a(c.target).is('input[type=\"radio\"], input[type=\"checkbox\"]')||(c.preventDefault(),d.is(\"input,button\")?d.trigger(\"focus\"):d.find(\"input:visible,button:visible\").first().trigger(\"focus\"))}).on(\"focus.bs.button.data-api blur.bs.button.data-api\",'[data-toggle^=\"button\"]',function(b){a(b.target).closest(\".btn\").toggleClass(\"focus\",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){\"use strict\";function b(b){return this.each(function(){var d=a(this),e=d.data(\"bs.carousel\"),f=a.extend({},c.DEFAULTS,d.data(),\"object\"==typeof b&&b),g=\"string\"==typeof b?b:f.slide;e||d.data(\"bs.carousel\",e=new c(this,f)),\"number\"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(\".carousel-indicators\"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on(\"keydown.bs.carousel\",a.proxy(this.keydown,this)),\"hover\"==this.options.pause&&!(\"ontouchstart\"in document.documentElement)&&this.$element.on(\"mouseenter.bs.carousel\",a.proxy(this.pause,this)).on(\"mouseleave.bs.carousel\",a.proxy(this.cycle,this))};c.VERSION=\"3.3.7\",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:\"hover\",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(\".item\"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d=\"prev\"==a&&0===c||\"next\"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e=\"prev\"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(\".item.active\"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one(\"slid.bs.carousel\",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?\"next\":\"prev\",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(\".next, .prev\").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide(\"next\")},c.prototype.prev=function(){if(!this.sliding)return this.slide(\"prev\")},c.prototype.slide=function(b,d){var e=this.$element.find(\".item.active\"),f=d||this.getItemForDirection(b,e),g=this.interval,h=\"next\"==b?\"left\":\"right\",i=this;if(f.hasClass(\"active\"))return this.sliding=!1;var j=f[0],k=a.Event(\"slide.bs.carousel\",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(\".active\").removeClass(\"active\");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass(\"active\")}var m=a.Event(\"slid.bs.carousel\",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass(\"slide\")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one(\"bsTransitionEnd\",function(){f.removeClass([b,h].join(\" \")).addClass(\"active\"),e.removeClass([\"active\",h].join(\" \")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass(\"active\"),f.addClass(\"active\"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr(\"data-target\")||(d=e.attr(\"href\"))&&d.replace(/.*(?=#[^\\s]+$)/,\"\"));if(f.hasClass(\"carousel\")){var g=a.extend({},f.data(),e.data()),h=e.attr(\"data-slide-to\");h&&(g.interval=!1),b.call(f,g),h&&f.data(\"bs.carousel\").to(h),c.preventDefault()}};a(document).on(\"click.bs.carousel.data-api\",\"[data-slide]\",e).on(\"click.bs.carousel.data-api\",\"[data-slide-to]\",e),a(window).on(\"load\",function(){a('[data-ride=\"carousel\"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){\"use strict\";function b(b){var c,d=b.attr(\"data-target\")||(c=b.attr(\"href\"))&&c.replace(/.*(?=#[^\\s]+$)/,\"\");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data(\"bs.collapse\"),f=a.extend({},d.DEFAULTS,c.data(),\"object\"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data(\"bs.collapse\",e=new d(this,f)),\"string\"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle=\"collapse\"][href=\"#'+b.id+'\"],[data-toggle=\"collapse\"][data-target=\"#'+b.id+'\"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION=\"3.3.7\",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass(\"width\");return a?\"width\":\"height\"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass(\"in\")){var b,e=this.$parent&&this.$parent.children(\".panel\").children(\".in, .collapsing\");if(!(e&&e.length&&(b=e.data(\"bs.collapse\"),b&&b.transitioning))){var f=a.Event(\"show.bs.collapse\");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,\"hide\"),b||e.data(\"bs.collapse\",null));var g=this.dimension();this.$element.removeClass(\"collapse\").addClass(\"collapsing\")[g](0).attr(\"aria-expanded\",!0),this.$trigger.removeClass(\"collapsed\").attr(\"aria-expanded\",!0),this.transitioning=1;var h=function(){this.$element.removeClass(\"collapsing\").addClass(\"collapse in\")[g](\"\"),this.transitioning=0,this.$element.trigger(\"shown.bs.collapse\")};if(!a.support.transition)return h.call(this);var i=a.camelCase([\"scroll\",g].join(\"-\"));this.$element.one(\"bsTransitionEnd\",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass(\"in\")){var b=a.Event(\"hide.bs.collapse\");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass(\"collapsing\").removeClass(\"collapse in\").attr(\"aria-expanded\",!1),this.$trigger.addClass(\"collapsed\").attr(\"aria-expanded\",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass(\"collapsing\").addClass(\"collapse\").trigger(\"hidden.bs.collapse\")};return a.support.transition?void this.$element[c](0).one(\"bsTransitionEnd\",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass(\"in\")?\"hide\":\"show\"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle=\"collapse\"][data-parent=\"'+this.options.parent+'\"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass(\"in\");a.attr(\"aria-expanded\",c),b.toggleClass(\"collapsed\",!c).attr(\"aria-expanded\",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on(\"click.bs.collapse.data-api\",'[data-toggle=\"collapse\"]',function(d){var e=a(this);e.attr(\"data-target\")||d.preventDefault();var f=b(e),g=f.data(\"bs.collapse\"),h=g?\"toggle\":e.data();c.call(f,h)})}(jQuery),+function(a){\"use strict\";function b(b){var c=b.attr(\"data-target\");c||(c=b.attr(\"href\"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\\s]*$)/,\"\"));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass(\"open\")&&(c&&\"click\"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event(\"hide.bs.dropdown\",f)),c.isDefaultPrevented()||(d.attr(\"aria-expanded\",\"false\"),e.removeClass(\"open\").trigger(a.Event(\"hidden.bs.dropdown\",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data(\"bs.dropdown\");d||c.data(\"bs.dropdown\",d=new g(this)),\"string\"==typeof b&&d[b].call(c)})}var e=\".dropdown-backdrop\",f='[data-toggle=\"dropdown\"]',g=function(b){a(b).on(\"click.bs.dropdown\",this.toggle)};g.VERSION=\"3.3.7\",g.prototype.toggle=function(d){var e=a(this);if(!e.is(\".disabled, :disabled\")){var f=b(e),g=f.hasClass(\"open\");if(c(),!g){\"ontouchstart\"in document.documentElement&&!f.closest(\".navbar-nav\").length&&a(document.createElement(\"div\")).addClass(\"dropdown-backdrop\").insertAfter(a(this)).on(\"click\",c);var h={relatedTarget:this};if(f.trigger(d=a.Event(\"show.bs.dropdown\",h)),d.isDefaultPrevented())return;e.trigger(\"focus\").attr(\"aria-expanded\",\"true\"),f.toggleClass(\"open\").trigger(a.Event(\"shown.bs.dropdown\",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(\".disabled, :disabled\")){var e=b(d),g=e.hasClass(\"open\");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger(\"focus\"),d.trigger(\"click\");var h=\" li:not(.disabled):visible a\",i=e.find(\".dropdown-menu\"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:\"\",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:\"\"})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:\"\",paddingRight:\"\"})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:\"hover focus\",title:\"\",delay:0,html:!1,container:!1,viewport:{selector:\"body\",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error(\"`selector` option must be specified when initializing \"+this.type+\" on the window.document object!\");for(var e=this.options.trigger.split(\" \"),f=e.length;f--;){var g=e[f];if(\"click\"==g)this.$element.on(\"click.\"+this.type,this.options.selector,a.proxy(this.toggle,this));else if(\"manual\"!=g){var h=\"hover\"==g?\"mouseenter\":\"focusin\",i=\"hover\"==g?\"mouseleave\":\"focusout\";this.$element.on(h+\".\"+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+\".\"+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:\"manual\",selector:\"\"}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&\"number\"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data(\"bs.\"+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(\"bs.\"+this.type,c)),b instanceof a.Event&&(c.inState[\"focusin\"==b.type?\"focus\":\"hover\"]=!0),c.tip().hasClass(\"in\")||\"in\"==c.hoverState?void(c.hoverState=\"in\"):(clearTimeout(c.timeout),c.hoverState=\"in\",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){\"in\"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data(\"bs.\"+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(\"bs.\"+this.type,c)),b instanceof a.Event&&(c.inState[\"focusout\"==b.type?\"focus\":\"hover\"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState=\"out\",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){\"out\"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event(\"show.bs.\"+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr(\"id\",g),this.$element.attr(\"aria-describedby\",g),this.options.animation&&f.addClass(\"fade\");var h=\"function\"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\\s?auto?\\s?/i,j=i.test(h);j&&(h=h.replace(i,\"\")||\"top\"),f.detach().css({top:0,left:0,display:\"block\"}).addClass(h).data(\"bs.\"+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger(\"inserted.bs.\"+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h=\"bottom\"==h&&k.bottom+m>o.bottom?\"top\":\"top\"==h&&k.top-mo.width?\"left\":\"left\"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr(\"data-original-title\")||(\"function\"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+\" `template` option must consist of exactly 1 top-level element!\");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".tooltip-arrow\")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data(\"bs.\"+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(\"bs.\"+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass(\"in\")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off(\".\"+a.type).removeData(\"bs.\"+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){\"use strict\";function b(b){return this.each(function(){var d=a(this),e=d.data(\"bs.popover\"),f=\"object\"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data(\"bs.popover\",e=new c(this,f)),\"string\"==typeof b&&e[b]())})}var c=function(a,b){this.init(\"popover\",a,b)};if(!a.fn.tooltip)throw new Error(\"Popover requires tooltip.js\");c.VERSION=\"3.3.7\",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:\"right\",trigger:\"click\",content:\"\",template:'

'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(\".popover-title\")[this.options.html?\"html\":\"text\"](b),a.find(\".popover-content\").children().detach().end()[this.options.html?\"string\"==typeof c?\"html\":\"append\":\"text\"](c),a.removeClass(\"fade top bottom left right in\"),a.find(\".popover-title\").html()||a.find(\".popover-title\").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr(\"data-content\")||(\"function\"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".arrow\")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){\"use strict\";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||\"\")+\" .nav li > a\",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on(\"scroll.bs.scrollspy\",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data(\"bs.scrollspy\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.scrollspy\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})}b.VERSION=\"3.3.7\",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c=\"offset\",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c=\"position\",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data(\"target\")||b.attr(\"href\"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(\":visible\")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active\").removeClass(\"active\").end().find('[data-toggle=\"tab\"]').attr(\"aria-expanded\",!1),b.addClass(\"active\").find('[data-toggle=\"tab\"]').attr(\"aria-expanded\",!0),h?(b[0].offsetWidth,b.addClass(\"in\")):b.removeClass(\"fade\"),b.parent(\".dropdown-menu\").length&&b.closest(\"li.dropdown\").addClass(\"active\").end().find('[data-toggle=\"tab\"]').attr(\"aria-expanded\",!0),e&&e()}var g=d.find(\"> .active\"),h=e&&a.support.transition&&(g.length&&g.hasClass(\"fade\")||!!d.find(\"> .fade\").length);g.length&&h?g.one(\"bsTransitionEnd\",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass(\"in\")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),\"show\")};a(document).on(\"click.bs.tab.data-api\",'[data-toggle=\"tab\"]',e).on(\"click.bs.tab.data-api\",'[data-toggle=\"pill\"]',e)}(jQuery),+function(a){\"use strict\";function b(b){return this.each(function(){var d=a(this),e=d.data(\"bs.affix\"),f=\"object\"==typeof b&&b;e||d.data(\"bs.affix\",e=new c(this,f)),\"string\"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on(\"scroll.bs.affix.data-api\",a.proxy(this.checkPosition,this)).on(\"click.bs.affix.data-api\",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION=\"3.3.7\",c.RESET=\"affix affix-top affix-bottom\",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&\"top\"==this.affixed)return e=a-d&&\"bottom\"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass(\"affix\");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(\":visible\")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());\"object\"!=typeof d&&(f=e=d),\"function\"==typeof e&&(e=d.top(this.$element)),\"function\"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css(\"top\",\"\");var i=\"affix\"+(h?\"-\"+h:\"\"),j=a.Event(i+\".bs.affix\");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin=\"bottom\"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace(\"affix\",\"affixed\")+\".bs.affix\")}\"bottom\"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on(\"load\",function(){a('[data-spy=\"affix\"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);","/*!\r\n * Validator v0.11.9 for Bootstrap 3, by @1000hz\r\n * Copyright 2017 Cina Saffary\r\n * Licensed under http://opensource.org/licenses/MIT\r\n *\r\n * https://github.com/1000hz/bootstrap-validator\r\n */\r\n\r\n+function(a){\"use strict\";function b(b){return b.is('[type=\"checkbox\"]')?b.prop(\"checked\"):b.is('[type=\"radio\"]')?!!a('[name=\"'+b.attr(\"name\")+'\"]:checked').length:b.is(\"select[multiple]\")?(b.val()||[]).length:b.val()}function c(b){return this.each(function(){var c=a(this),e=a.extend({},d.DEFAULTS,c.data(),\"object\"==typeof b&&b),f=c.data(\"bs.validator\");(f||\"destroy\"!=b)&&(f||c.data(\"bs.validator\",f=new d(this,e)),\"string\"==typeof b&&f[b]())})}var d=function(c,e){this.options=e,this.validators=a.extend({},d.VALIDATORS,e.custom),this.$element=a(c),this.$btn=a('button[type=\"submit\"], input[type=\"submit\"]').filter('[form=\"'+this.$element.attr(\"id\")+'\"]').add(this.$element.find('input[type=\"submit\"], button[type=\"submit\"]')),this.update(),this.$element.on(\"input.bs.validator change.bs.validator focusout.bs.validator\",a.proxy(this.onInput,this)),this.$element.on(\"submit.bs.validator\",a.proxy(this.onSubmit,this)),this.$element.on(\"reset.bs.validator\",a.proxy(this.reset,this)),this.$element.find(\"[data-match]\").each(function(){var c=a(this),d=c.attr(\"data-match\");a(d).on(\"input.bs.validator\",function(){b(c)&&c.trigger(\"input.bs.validator\")})}),this.$inputs.filter(function(){return b(a(this))&&!a(this).closest(\".has-error\").length}).trigger(\"focusout\"),this.$element.attr(\"novalidate\",!0)};d.VERSION=\"0.11.9\",d.INPUT_SELECTOR=':input:not([type=\"hidden\"], [type=\"submit\"], [type=\"reset\"], button)',d.FOCUS_OFFSET=20,d.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:\"Does not match\",minlength:\"Not long enough\"},feedback:{success:\"glyphicon-ok\",error:\"glyphicon-remove\"}},d.VALIDATORS={\"native\":function(a){var b=a[0];return b.checkValidity?!b.checkValidity()&&!b.validity.valid&&(b.validationMessage||\"error!\"):void 0},match:function(b){var c=b.attr(\"data-match\");return b.val()!==a(c).val()&&d.DEFAULTS.errors.match},minlength:function(a){var b=a.attr(\"data-minlength\");return a.val().length\").addClass(\"list-unstyled\").append(a.map(d,function(b){return a(\"
  • \")[c](b)})),void 0===f.data(\"bs.validator.originalContent\")&&f.data(\"bs.validator.originalContent\",f.html()),f.empty().append(d),e.addClass(\"has-error has-danger\"),e.hasClass(\"has-feedback\")&&g.removeClass(this.options.feedback.success)&&g.addClass(this.options.feedback.error)&&e.removeClass(\"has-success\"))},d.prototype.clearErrors=function(a){var c=a.closest(\".form-group\"),d=c.find(\".help-block.with-errors\"),e=c.find(\".form-control-feedback\");d.html(d.data(\"bs.validator.originalContent\")),c.removeClass(\"has-error has-danger has-success\"),c.hasClass(\"has-feedback\")&&e.removeClass(this.options.feedback.error)&&e.removeClass(this.options.feedback.success)&&b(a)&&e.addClass(this.options.feedback.success)&&c.addClass(\"has-success\")},d.prototype.hasErrors=function(){function b(){return!!(a(this).data(\"bs.validator.errors\")||[]).length}return!!this.$inputs.filter(b).length},d.prototype.isIncomplete=function(){function c(){var c=b(a(this));return!(\"string\"==typeof c?a.trim(c):c)}return!!this.$inputs.filter(\"[required]\").filter(c).length},d.prototype.onSubmit=function(a){this.validate(),(this.isIncomplete()||this.hasErrors())&&a.preventDefault()},d.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass(\"disabled\",this.isIncomplete()||this.hasErrors())},d.prototype.defer=function(b,c){return c=a.proxy(c,this,b),this.options.delay?(window.clearTimeout(b.data(\"bs.validator.timeout\")),void b.data(\"bs.validator.timeout\",window.setTimeout(c,this.options.delay))):c()},d.prototype.reset=function(){return this.$element.find(\".form-control-feedback\").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData([\"bs.validator.errors\",\"bs.validator.deferred\"]).each(function(){var b=a(this),c=b.data(\"bs.validator.timeout\");window.clearTimeout(c)&&b.removeData(\"bs.validator.timeout\")}),this.$element.find(\".help-block.with-errors\").each(function(){var b=a(this),c=b.data(\"bs.validator.originalContent\");b.removeData(\"bs.validator.originalContent\").html(c)}),this.$btn.removeClass(\"disabled\"),this.$element.find(\".has-error, .has-danger, .has-success\").removeClass(\"has-error has-danger has-success\"),this},d.prototype.destroy=function(){return this.reset(),this.$element.removeAttr(\"novalidate\").removeData(\"bs.validator\").off(\".bs.validator\"),this.$inputs.off(\".bs.validator\"),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this.$inputs=null,this};var e=a.fn.validator;a.fn.validator=c,a.fn.validator.Constructor=d,a.fn.validator.noConflict=function(){return a.fn.validator=e,this},a(window).on(\"load\",function(){a('form[data-toggle=\"validator\"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery);","/*\r\n * jQuery throttle / debounce - v1.1 - 3/7/2010\r\n * http://benalman.com/projects/jquery-throttle-debounce-plugin/\r\n * \r\n * Copyright (c) 2010 \"Cowboy\" Ben Alman\r\n * Dual licensed under the MIT and GPL licenses.\r\n * http://benalman.com/about/license/\r\n */\r\n;\r\n(function (b, c) {\r\n var $ = b.jQuery || b.Cowboy || (b.Cowboy = {}), a;\r\n $.throttle = a = function (e, f, j, i) {\r\n var h, d = 0;\r\n if (typeof f !== \"boolean\") {\r\n i = j;\r\n j = f;\r\n f = c\r\n }\r\n function g() {\r\n var o = this, m = +new Date() - d, n = arguments;\r\n\r\n function l() {\r\n d = +new Date();\r\n j.apply(o, n)\r\n }\r\n\r\n function k() {\r\n h = c\r\n }\r\n\r\n if (i && !h) {\r\n l()\r\n }\r\n h && clearTimeout(h);\r\n if (i === c && m > e) {\r\n l()\r\n } else {\r\n if (f !== true) {\r\n h = setTimeout(i ? k : l, i === c ? e - m : e)\r\n }\r\n }\r\n }\r\n\r\n if ($.guid) {\r\n g.guid = j.guid = j.guid || $.guid++\r\n }\r\n return g\r\n };\r\n $.debounce = function (d, e, f) {\r\n return f === c ? a(d, e, false) : a(d, f, e !== false)\r\n }\r\n})(this);\r\n\r\n/*\r\n * BreakPoint\r\n * By: Hasin Hayder\r\n * License: MIT License\r\n * Date: 23rd August, 2013\r\n */\r\n\r\n;\r\n(function ($) {\r\n 'use strict';\r\n var defaults = {\r\n breakpoints: {\r\n default: {\r\n min: 1000,\r\n max: 9999,\r\n load: false\r\n }\r\n }\r\n }\r\n var opts;\r\n $.BreakPoint = function (options) {\r\n opts = $.extend(defaults, options);\r\n $(window).resize($.debounce(250, false, function (e) {\r\n $.fn.bpCallBack();\r\n }));\r\n $.fn.bpCallBack(); //for first time window load\r\n }\r\n\r\n $.fn.bpCallBack = function () {\r\n var w = $(window).width();\r\n for (var i in opts.breakpoints) {\r\n var bp = opts.breakpoints[i];\r\n var min = bp.min;\r\n var max = bp.max;\r\n var callback = bp.callback;\r\n if (min == undefined) min = 0;\r\n if (max == undefined) max = 9999;\r\n // console.log(min+\":\"+max+\":\"+w);\r\n if (w >= min && w <= max) {\r\n bp.callback();\r\n }\r\n }\r\n }\r\n\r\n})(jQuery);\r\n","(function ($) {\r\n\t$.fn.countTo = function (options) {\r\n\t\toptions = options || {};\r\n\r\n\t\treturn $(this).each(function () {\r\n\t\t\t// set options for current element\r\n\t\t\tvar settings = $.extend({}, $.fn.countTo.defaults, {\r\n\t\t\t\tfrom: $(this).data('from'),\r\n\t\t\t\tto: $(this).data('to'),\r\n\t\t\t\tspeed: $(this).data('speed'),\r\n\t\t\t\trefreshInterval: $(this).data('refresh-interval'),\r\n\t\t\t\tdecimals: $(this).data('decimals')\r\n\t\t\t}, options);\r\n\r\n\t\t\t// how many times to update the value, and how much to increment the value on each update\r\n\t\t\tvar loops = Math.ceil(settings.speed / settings.refreshInterval),\r\n\t\t\t\tincrement = (settings.to - settings.from) / loops;\r\n\r\n\t\t\t// references & variables that will change with each update\r\n\t\t\tvar self = this,\r\n\t\t\t\t$self = $(this),\r\n\t\t\t\tloopCount = 0,\r\n\t\t\t\tvalue = settings.from,\r\n\t\t\t\tdata = $self.data('countTo') || {};\r\n\r\n\t\t\t$self.data('countTo', data);\r\n\r\n\t\t\t// if an existing interval can be found, clear it first\r\n\t\t\tif (data.interval) {\r\n\t\t\t\tclearInterval(data.interval);\r\n\t\t\t}\r\n\t\t\tdata.interval = setInterval(updateTimer, settings.refreshInterval);\r\n\r\n\t\t\t// initialize the element with the starting value\r\n\t\t\trender(value);\r\n\r\n\t\t\tfunction updateTimer() {\r\n\t\t\t\tvalue += increment;\r\n\t\t\t\tloopCount++;\r\n\r\n\t\t\t\trender(value);\r\n\r\n\t\t\t\tif (typeof(settings.onUpdate) == 'function') {\r\n\t\t\t\t\tsettings.onUpdate.call(self, value);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (loopCount >= loops) {\r\n\t\t\t\t\t// remove the interval\r\n\t\t\t\t\t$self.removeData('countTo');\r\n\t\t\t\t\tclearInterval(data.interval);\r\n\t\t\t\t\tvalue = settings.to;\r\n\r\n\t\t\t\t\tif (typeof(settings.onComplete) == 'function') {\r\n\t\t\t\t\t\tsettings.onComplete.call(self, value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfunction render(value) {\r\n\t\t\t\tvar formattedValue = settings.formatter.call(self, value, settings);\r\n\t\t\t\t$self.text(formattedValue);\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t$.fn.countTo.defaults = {\r\n\t\tfrom: 0, // the number the element should start at\r\n\t\tto: 0, // the number the element should end at\r\n\t\tspeed: 1000, // how long it should take to count between the target numbers\r\n\t\trefreshInterval: 100, // how often the element should be updated\r\n\t\tdecimals: 0, // the number of decimal places to show\r\n\t\tformatter: formatter, // handler for formatting the value before rendering\r\n\t\tonUpdate: null, // callback method for every time the element is updated\r\n\t\tonComplete: null // callback method for when the element finishes updating\r\n\t};\r\n\r\n\tfunction formatter(value, settings) {\r\n\t\treturn value.toFixed(settings.decimals);\r\n\t}\r\n}(jQuery));\r\n","/*!\r\n * The Final Countdown for jQuery v2.0.4 (http://hilios.github.io/jQuery.countdown/)\r\n * Copyright (c) 2014 Edson Hilios\r\n * \r\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\r\n * this software and associated documentation files (the \"Software\"), to deal in\r\n * the Software without restriction, including without limitation the rights to\r\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r\n * the Software, and to permit persons to whom the Software is furnished to do so,\r\n * subject to the following conditions:\r\n * \r\n * The above copyright notice and this permission notice shall be included in all\r\n * copies or substantial portions of the Software.\r\n * \r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n */\r\n(function(factory) {\r\n \"use strict\";\r\n if (typeof define === \"function\" && define.amd) {\r\n define([ \"jquery\" ], factory);\r\n } else {\r\n factory(jQuery);\r\n }\r\n})(function($) {\r\n \"use strict\";\r\n var PRECISION = 100;\r\n var instances = [], matchers = [];\r\n matchers.push(/^[0-9]*$/.source);\r\n matchers.push(/([0-9]{1,2}\\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);\r\n matchers.push(/[0-9]{4}([\\/\\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);\r\n matchers = new RegExp(matchers.join(\"|\"));\r\n function parseDateString(dateString) {\r\n if (dateString instanceof Date) {\r\n return dateString;\r\n }\r\n if (String(dateString).match(matchers)) {\r\n if (String(dateString).match(/^[0-9]*$/)) {\r\n dateString = Number(dateString);\r\n }\r\n if (String(dateString).match(/\\-/)) {\r\n dateString = String(dateString).replace(/\\-/g, \"/\");\r\n }\r\n return new Date(dateString);\r\n } else {\r\n throw new Error(\"Couldn't cast `\" + dateString + \"` to a date object.\");\r\n }\r\n }\r\n var DIRECTIVE_KEY_MAP = {\r\n Y: \"years\",\r\n m: \"months\",\r\n w: \"weeks\",\r\n d: \"days\",\r\n D: \"totalDays\",\r\n H: \"hours\",\r\n M: \"minutes\",\r\n S: \"seconds\"\r\n };\r\n function escapedRegExp(str) {\r\n var sanitize = str.toString().replace(/([.?*+^$[\\]\\\\(){}|-])/g, \"\\\\$1\");\r\n return new RegExp(sanitize);\r\n }\r\n function strftime(offsetObject) {\r\n return function(format) {\r\n var directives = format.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);\r\n if (directives) {\r\n for (var i = 0, len = directives.length; i < len; ++i) {\r\n var directive = directives[i].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/), regexp = escapedRegExp(directive[0]), modifier = directive[1] || \"\", plural = directive[3] || \"\", value = null;\r\n directive = directive[2];\r\n if (DIRECTIVE_KEY_MAP.hasOwnProperty(directive)) {\r\n value = DIRECTIVE_KEY_MAP[directive];\r\n value = Number(offsetObject[value]);\r\n }\r\n if (value !== null) {\r\n if (modifier === \"!\") {\r\n value = pluralize(plural, value);\r\n }\r\n if (modifier === \"\") {\r\n if (value < 10) {\r\n value = \"0\" + value.toString();\r\n }\r\n }\r\n format = format.replace(regexp, value.toString());\r\n }\r\n }\r\n }\r\n format = format.replace(/%%/, \"%\");\r\n return format;\r\n };\r\n }\r\n function pluralize(format, count) {\r\n var plural = \"s\", singular = \"\";\r\n if (format) {\r\n format = format.replace(/(:|;|\\s)/gi, \"\").split(/\\,/);\r\n if (format.length === 1) {\r\n plural = format[0];\r\n } else {\r\n singular = format[0];\r\n plural = format[1];\r\n }\r\n }\r\n if (Math.abs(count) === 1) {\r\n return singular;\r\n } else {\r\n return plural;\r\n }\r\n }\r\n var Countdown = function(el, finalDate, callback) {\r\n this.el = el;\r\n this.$el = $(el);\r\n this.interval = null;\r\n this.offset = {};\r\n this.instanceNumber = instances.length;\r\n instances.push(this);\r\n this.$el.data(\"countdown-instance\", this.instanceNumber);\r\n if (callback) {\r\n this.$el.on(\"update.countdown\", callback);\r\n this.$el.on(\"stoped.countdown\", callback);\r\n this.$el.on(\"finish.countdown\", callback);\r\n }\r\n this.setFinalDate(finalDate);\r\n this.start();\r\n };\r\n $.extend(Countdown.prototype, {\r\n start: function() {\r\n if (this.interval !== null) {\r\n clearInterval(this.interval);\r\n }\r\n var self = this;\r\n this.update();\r\n this.interval = setInterval(function() {\r\n self.update.call(self);\r\n }, PRECISION);\r\n },\r\n stop: function() {\r\n clearInterval(this.interval);\r\n this.interval = null;\r\n this.dispatchEvent(\"stoped\");\r\n },\r\n toggle: function() {\r\n if (this.interval) {\r\n this.stop();\r\n } else {\r\n this.start();\r\n }\r\n },\r\n pause: function() {\r\n this.stop();\r\n },\r\n resume: function() {\r\n this.start();\r\n },\r\n remove: function() {\r\n this.stop.call(this);\r\n instances[this.instanceNumber] = null;\r\n delete this.$el.data().countdownInstance;\r\n },\r\n setFinalDate: function(value) {\r\n this.finalDate = parseDateString(value);\r\n },\r\n update: function() {\r\n if (this.$el.closest(\"html\").length === 0) {\r\n this.remove();\r\n return;\r\n }\r\n this.totalSecsLeft = this.finalDate.getTime() - new Date().getTime();\r\n this.totalSecsLeft = Math.ceil(this.totalSecsLeft / 1e3);\r\n this.totalSecsLeft = this.totalSecsLeft < 0 ? 0 : this.totalSecsLeft;\r\n this.offset = {\r\n seconds: this.totalSecsLeft % 60,\r\n minutes: Math.floor(this.totalSecsLeft / 60) % 60,\r\n hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24,\r\n days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7,\r\n totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24),\r\n weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7),\r\n months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30),\r\n years: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 365)\r\n };\r\n if (this.totalSecsLeft === 0) {\r\n this.stop();\r\n this.dispatchEvent(\"finish\");\r\n } else {\r\n this.dispatchEvent(\"update\");\r\n }\r\n },\r\n dispatchEvent: function(eventName) {\r\n var event = $.Event(eventName + \".countdown\");\r\n event.finalDate = this.finalDate;\r\n event.offset = $.extend({}, this.offset);\r\n event.strftime = strftime(this.offset);\r\n this.$el.trigger(event);\r\n }\r\n });\r\n $.fn.countdown = function() {\r\n var argumentsArray = Array.prototype.slice.call(arguments, 0);\r\n return this.each(function() {\r\n var instanceNumber = $(this).data(\"countdown-instance\");\r\n if (instanceNumber !== undefined) {\r\n var instance = instances[instanceNumber], method = argumentsArray[0];\r\n if (Countdown.prototype.hasOwnProperty(method)) {\r\n instance[method].apply(instance, argumentsArray.slice(1));\r\n } else if (String(method).match(/^[$A-Z_][0-9A-Z_$]*$/i) === null) {\r\n instance.setFinalDate.call(instance, method);\r\n instance.start();\r\n } else {\r\n $.error(\"Method %s does not exist on jQuery.countdown\".replace(/\\%s/gi, method));\r\n }\r\n } else {\r\n new Countdown(this, argumentsArray[0], argumentsArray[1]);\r\n }\r\n });\r\n };\r\n});","/*\r\n * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/\r\n *\r\n * Uses the built in easing capabilities added In jQuery 1.1\r\n * to offer multiple easing options\r\n *\r\n * TERMS OF USE - jQuery Easing\r\n * \r\n * Open source under the BSD License. \r\n * \r\n * Copyright © 2008 George McGinley Smith\r\n * All rights reserved.\r\n * \r\n * Redistribution and use in source and binary forms, with or without modification, \r\n * are permitted provided that the following conditions are met:\r\n * \r\n * Redistributions of source code must retain the above copyright notice, this list of \r\n * conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright notice, this list \r\n * of conditions and the following disclaimer in the documentation and/or other materials \r\n * provided with the distribution.\r\n * \r\n * Neither the name of the author nor the names of contributors may be used to endorse \r\n * or promote products derived from this software without specific prior written permission.\r\n * \r\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY \r\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\r\n * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED \r\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED \r\n * OF THE POSSIBILITY OF SUCH DAMAGE. \r\n *\r\n*/\r\n\r\n// t: current time, b: begInnIng value, c: change In value, d: duration\r\njQuery.easing['jswing'] = jQuery.easing['swing'];\r\n\r\njQuery.extend( jQuery.easing,\r\n{\r\n\tdef: 'easeOutQuad',\r\n\tswing: function (x, t, b, c, d) {\r\n\t\t//alert(jQuery.easing.default);\r\n\t\treturn jQuery.easing[jQuery.easing.def](x, t, b, c, d);\r\n\t},\r\n\teaseInQuad: function (x, t, b, c, d) {\r\n\t\treturn c*(t/=d)*t + b;\r\n\t},\r\n\teaseOutQuad: function (x, t, b, c, d) {\r\n\t\treturn -c *(t/=d)*(t-2) + b;\r\n\t},\r\n\teaseInOutQuad: function (x, t, b, c, d) {\r\n\t\tif ((t/=d/2) < 1) return c/2*t*t + b;\r\n\t\treturn -c/2 * ((--t)*(t-2) - 1) + b;\r\n\t},\r\n\teaseInCubic: function (x, t, b, c, d) {\r\n\t\treturn c*(t/=d)*t*t + b;\r\n\t},\r\n\teaseOutCubic: function (x, t, b, c, d) {\r\n\t\treturn c*((t=t/d-1)*t*t + 1) + b;\r\n\t},\r\n\teaseInOutCubic: function (x, t, b, c, d) {\r\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t + b;\r\n\t\treturn c/2*((t-=2)*t*t + 2) + b;\r\n\t},\r\n\teaseInQuart: function (x, t, b, c, d) {\r\n\t\treturn c*(t/=d)*t*t*t + b;\r\n\t},\r\n\teaseOutQuart: function (x, t, b, c, d) {\r\n\t\treturn -c * ((t=t/d-1)*t*t*t - 1) + b;\r\n\t},\r\n\teaseInOutQuart: function (x, t, b, c, d) {\r\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t + b;\r\n\t\treturn -c/2 * ((t-=2)*t*t*t - 2) + b;\r\n\t},\r\n\teaseInQuint: function (x, t, b, c, d) {\r\n\t\treturn c*(t/=d)*t*t*t*t + b;\r\n\t},\r\n\teaseOutQuint: function (x, t, b, c, d) {\r\n\t\treturn c*((t=t/d-1)*t*t*t*t + 1) + b;\r\n\t},\r\n\teaseInOutQuint: function (x, t, b, c, d) {\r\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\r\n\t\treturn c/2*((t-=2)*t*t*t*t + 2) + b;\r\n\t},\r\n\teaseInSine: function (x, t, b, c, d) {\r\n\t\treturn -c * Math.cos(t/d * (Math.PI/2)) + c + b;\r\n\t},\r\n\teaseOutSine: function (x, t, b, c, d) {\r\n\t\treturn c * Math.sin(t/d * (Math.PI/2)) + b;\r\n\t},\r\n\teaseInOutSine: function (x, t, b, c, d) {\r\n\t\treturn -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\r\n\t},\r\n\teaseInExpo: function (x, t, b, c, d) {\r\n\t\treturn (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\r\n\t},\r\n\teaseOutExpo: function (x, t, b, c, d) {\r\n\t\treturn (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\r\n\t},\r\n\teaseInOutExpo: function (x, t, b, c, d) {\r\n\t\tif (t==0) return b;\r\n\t\tif (t==d) return b+c;\r\n\t\tif ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\r\n\t\treturn c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\r\n\t},\r\n\teaseInCirc: function (x, t, b, c, d) {\r\n\t\treturn -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\r\n\t},\r\n\teaseOutCirc: function (x, t, b, c, d) {\r\n\t\treturn c * Math.sqrt(1 - (t=t/d-1)*t) + b;\r\n\t},\r\n\teaseInOutCirc: function (x, t, b, c, d) {\r\n\t\tif ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\r\n\t\treturn c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\r\n\t},\r\n\teaseInElastic: function (x, t, b, c, d) {\r\n\t\tvar s=1.70158;var p=0;var a=c;\r\n\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\r\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\r\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\r\n\t\treturn -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\r\n\t},\r\n\teaseOutElastic: function (x, t, b, c, d) {\r\n\t\tvar s=1.70158;var p=0;var a=c;\r\n\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\r\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\r\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\r\n\t\treturn a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\r\n\t},\r\n\teaseInOutElastic: function (x, t, b, c, d) {\r\n\t\tvar s=1.70158;var p=0;var a=c;\r\n\t\tif (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);\r\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\r\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\r\n\t\tif (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\r\n\t\treturn a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\r\n\t},\r\n\teaseInBack: function (x, t, b, c, d, s) {\r\n\t\tif (s == undefined) s = 1.70158;\r\n\t\treturn c*(t/=d)*t*((s+1)*t - s) + b;\r\n\t},\r\n\teaseOutBack: function (x, t, b, c, d, s) {\r\n\t\tif (s == undefined) s = 1.70158;\r\n\t\treturn c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\r\n\t},\r\n\teaseInOutBack: function (x, t, b, c, d, s) {\r\n\t\tif (s == undefined) s = 1.70158; \r\n\t\tif ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\r\n\t\treturn c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\r\n\t},\r\n\teaseInBounce: function (x, t, b, c, d) {\r\n\t\treturn c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;\r\n\t},\r\n\teaseOutBounce: function (x, t, b, c, d) {\r\n\t\tif ((t/=d) < (1/2.75)) {\r\n\t\t\treturn c*(7.5625*t*t) + b;\r\n\t\t} else if (t < (2/2.75)) {\r\n\t\t\treturn c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\r\n\t\t} else if (t < (2.5/2.75)) {\r\n\t\t\treturn c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\r\n\t\t} else {\r\n\t\t\treturn c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\r\n\t\t}\r\n\t},\r\n\teaseInOutBounce: function (x, t, b, c, d) {\r\n\t\tif (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;\r\n\t\treturn jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\r\n\t}\r\n});\r\n\r\n/*\r\n *\r\n * TERMS OF USE - EASING EQUATIONS\r\n * \r\n * Open source under the BSD License. \r\n * \r\n * Copyright © 2001 Robert Penner\r\n * All rights reserved.\r\n * \r\n * Redistribution and use in source and binary forms, with or without modification, \r\n * are permitted provided that the following conditions are met:\r\n * \r\n * Redistributions of source code must retain the above copyright notice, this list of \r\n * conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright notice, this list \r\n * of conditions and the following disclaimer in the documentation and/or other materials \r\n * provided with the distribution.\r\n * \r\n * Neither the name of the author nor the names of contributors may be used to endorse \r\n * or promote products derived from this software without specific prior written permission.\r\n * \r\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY \r\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\r\n * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED \r\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED \r\n * OF THE POSSIBILITY OF SUCH DAMAGE. \r\n *\r\n */","/**!\r\n * easy-pie-chart\r\n * Lightweight plugin to render simple, animated and retina optimized pie charts\r\n *\r\n * @license \r\n * @author Robert Fleischmann (http://robert-fleischmann.de)\r\n * @version 2.1.7\r\n **/\r\n!function(a,b){\"function\"==typeof define&&define.amd?define([\"jquery\"],function(a){return b(a)}):\"object\"==typeof exports?module.exports=b(require(\"jquery\")):b(jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement(\"canvas\");a.appendChild(d),\"object\"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext(\"2d\");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,\"px\"].join(\"\"),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d=\"function\"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:\"#ef1e25\",trackColor:\"#f9f9f9\",scaleColor:\"#dfe0e0\",scaleLength:5,lineCap:\"round\",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if(\"undefined\"!=typeof b)d.renderer=b;else{if(\"undefined\"==typeof SVGRenderer)throw new Error(\"Please load either the SVG- or the CanvasRenderer\");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&\"undefined\"!=typeof c[b]?c[b]:d[b],\"function\"==typeof e[b]&&(e[b]=e[b].bind(this)));\"string\"==typeof e.easing&&\"undefined\"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,\"number\"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),\"boolean\"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute(\"data-percent\")&&this.update(parseFloat(a.getAttribute(\"data-percent\")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,\"easyPieChart\")||(d=a.extend({},b,a(this).data()),a.data(this,\"easyPieChart\",new c(this,d)))})}});","(function( window, $, undefined ) {\r\n\t\r\n\t/*\r\n\t* smartresize: debounced resize event for jQuery\r\n\t*\r\n\t* latest version and complete README available on Github:\r\n\t* https://github.com/louisremi/jquery.smartresize.js\r\n\t*\r\n\t* Copyright 2011 @louis_remi\r\n\t* Licensed under the MIT license.\r\n\t*/\r\n\r\n\tvar $event = $.event, resizeTimeout;\r\n\r\n\t$event.special.smartresize \t= {\r\n\t\tsetup: function() {\r\n\t\t\t$(this).bind( \"resize\", $event.special.smartresize.handler );\r\n\t\t},\r\n\t\tteardown: function() {\r\n\t\t\t$(this).unbind( \"resize\", $event.special.smartresize.handler );\r\n\t\t},\r\n\t\thandler: function( event, execAsap ) {\r\n\t\t\t// Save the context\r\n\t\t\tvar context = this,\r\n\t\t\t\targs \t= arguments;\r\n\r\n\t\t\t// set correct event type\r\n\t\t\tevent.type = \"smartresize\";\r\n\r\n\t\t\tif ( resizeTimeout ) { clearTimeout( resizeTimeout ); }\r\n\t\t\tresizeTimeout = setTimeout(function() {\r\n\t\t\t\tjQuery.event.handle.apply( context, args );\r\n\t\t\t}, execAsap === \"execAsap\"? 0 : 100 );\r\n\t\t}\r\n\t};\r\n\r\n\t$.fn.smartresize \t\t\t= function( fn ) {\r\n\t\treturn fn ? this.bind( \"smartresize\", fn ) : this.trigger( \"smartresize\", [\"execAsap\"] );\r\n\t};\r\n\t\r\n\t$.Slideshow \t\t\t\t= function( options, element ) {\r\n\t\r\n\t\tthis.$el\t\t\t= $( element );\r\n\t\t\r\n\t\t/***** images ****/\r\n\t\t\r\n\t\t// list of image items\r\n\t\tthis.$list\t\t\t= this.$el.find('ul.ei-slider-large');\r\n\t\t// image items\r\n\t\tthis.$imgItems\t\t= this.$list.children('li');\r\n\t\t// total number of items\r\n\t\tthis.itemsCount\t\t= this.$imgItems.length;\r\n\t\t// images\r\n\t\tthis.$images\t\t= this.$imgItems.find('img:first');\r\n\t\t\r\n\t\t/***** thumbs ****/\r\n\t\t\r\n\t\t// thumbs wrapper\r\n\t\tthis.$sliderthumbs\t= this.$el.find('ul.ei-slider-thumbs').hide();\r\n\t\t// slider elements\r\n\t\tthis.$sliderElems\t= this.$sliderthumbs.children('li');\r\n\t\t// sliding div\r\n\t\tthis.$sliderElem\t= this.$sliderthumbs.children('li.ei-slider-element');\r\n\t\t// thumbs\r\n\t\tthis.$thumbs\t\t= this.$sliderElems.not('.ei-slider-element');\r\n\t\t\r\n\t\t// initialize slideshow\r\n\t\tthis._init( options );\r\n\t\t\r\n\t};\r\n\t\r\n\t$.Slideshow.defaults \t\t= {\r\n\t\t// animation types:\r\n\t\t// \"sides\" : new slides will slide in from left / right\r\n\t\t// \"center\": new slides will appear in the center\r\n\t\tanimation\t\t\t: 'sides', // sides || center\r\n\t\t// if true the slider will automatically slide, and it will only stop if the user clicks on a thumb\r\n\t\tautoplay\t\t\t: false,\r\n\t\t// interval for the slideshow\r\n\t\tslideshow_interval\t: 3000,\r\n\t\t// speed for the sliding animation\r\n\t\tspeed\t\t\t: 800,\r\n\t\t// easing for the sliding animation\r\n\t\teasing\t\t\t: '',\r\n\t\t// percentage of speed for the titles animation. Speed will be speed * titlesFactor\r\n\t\ttitlesFactor\t\t: 0.60,\r\n\t\t// titles animation speed\r\n\t\ttitlespeed\t\t\t: 800,\r\n\t\t// titles animation easing\r\n\t\ttitleeasing\t\t\t: '',\r\n\t\t// maximum width for the thumbs in pixels\r\n\t\tthumbMaxWidth\t\t: 150\r\n };\r\n\t\r\n\t$.Slideshow.prototype \t\t= {\r\n\t\t_init \t\t\t\t: function( options ) {\r\n\t\t\t\r\n\t\t\tthis.options \t\t= $.extend( true, {}, $.Slideshow.defaults, options );\r\n\t\t\t\r\n\t\t\t// set the opacity of the title elements and the image items\r\n\t\t\tthis.$imgItems.css( 'opacity', 0 );\r\n\t\t\tthis.$imgItems.find('div.ei-title > *').css( 'opacity', 0 );\r\n\t\t\t\r\n\t\t\t// index of current visible slider\r\n\t\t\tthis.current\t\t= 0;\r\n\t\t\t\r\n\t\t\tvar _self\t\t\t= this;\r\n\t\t\t\r\n\t\t\t// preload images\r\n\t\t\t// add loading status\r\n\t\t\tthis.$loading\t\t= $('
    Loading
    ').prependTo( _self.$el );\r\n\t\t\t\r\n\t\t\t$.when( this._preloadImages() ).done( function() {\r\n\t\t\t\t\r\n\t\t\t\t// hide loading status\r\n\t\t\t\t_self.$loading.hide();\r\n\t\t\t\t\r\n\t\t\t\t// calculate size and position for each image\r\n\t\t\t\t_self._setImagesSize();\r\n\t\t\t\t\r\n\t\t\t\t// configure thumbs container\r\n\t\t\t\t_self._initThumbs();\r\n\t\t\t\t\r\n\t\t\t\t// show first\r\n\t\t\t\t_self.$imgItems.eq( _self.current ).css({\r\n\t\t\t\t\t'opacity' \t: 1,\r\n\t\t\t\t\t'z-index'\t: 10\r\n\t\t\t\t}).show().find('div.ei-title > *').css( 'opacity', 1 );\r\n\t\t\t\t\r\n\t\t\t\t// if autoplay is true\r\n\t\t\t\tif( _self.options.autoplay ) {\r\n\t\t\t\t\r\n\t\t\t\t\t_self._startSlideshow();\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// initialize the events\r\n\t\t\t\t_self._initEvents();\r\n\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t},\r\n\t\t_preloadImages\t\t: function() {\r\n\t\t\t\r\n\t\t\t// preloads all the large images\r\n\t\t\t\r\n\t\t\tvar _self\t= this,\r\n\t\t\t\tloaded\t= 0;\r\n\t\t\t\r\n\t\t\treturn $.Deferred(\r\n\t\t\t\r\n\t\t\t\tfunction(dfd) {\r\n\t\t\t\r\n\t\t\t\t\t_self.$images.each( function( i ) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$('').load( function() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif( ++loaded === _self.itemsCount ) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tdfd.resolve();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}).attr( 'src', $(this).attr('src') );\r\n\t\t\t\t\t\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t).promise();\r\n\t\t\t\r\n\t\t},\r\n\t\t_setImagesSize\t\t: function() {\r\n\t\t\t\r\n\t\t\t// save ei-slider's width\r\n\t\t\tthis.elWidth\t= this.$el.width();\r\n\t\t\t\r\n\t\t\tvar _self\t= this;\r\n\t\t\t\r\n\t\t\tthis.$images.each( function( i ) {\r\n\t\t\t\t\r\n\t\t\t\tvar $img\t= $(this);\r\n\t\t\t\t\timgDim\t= _self._getImageDim( $img.attr('src') );\r\n\t\t\t\t\t\r\n\t\t\t\t$img.css({\r\n\t\t\t\t\twidth\t\t: imgDim.width,\r\n\t\t\t\t\theight\t\t: imgDim.height,\r\n\t\t\t\t\tmarginLeft\t: imgDim.left,\r\n\t\t\t\t\tmarginTop\t: imgDim.top\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\r\n\t\t},\r\n\t\t_getImageDim\t\t: function( src ) {\r\n\t\t\t\r\n\t\t\tvar $img = new Image();\r\n\t\t\t\t\t\t\t\r\n\t\t\t$img.src = src;\r\n\t\t\t\t\t\r\n\t\t\tvar c_w\t\t= this.elWidth,\r\n\t\t\t\tc_h\t\t= this.$el.height(),\r\n\t\t\t\tr_w\t\t= c_h / c_w,\r\n\t\t\t\t\r\n\t\t\t\ti_w\t\t= $img.width,\r\n\t\t\t\ti_h\t\t= $img.height,\r\n\t\t\t\tr_i\t\t= i_h / i_w,\r\n\t\t\t\tnew_w, new_h, new_left, new_top;\r\n\t\t\t\t\t\r\n\t\t\tif( r_w > r_i ) {\r\n\t\t\t\t\r\n\t\t\t\tnew_h\t= c_h;\r\n\t\t\t\tnew_w\t= c_h / r_i;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\r\n\t\t\t\tnew_h\t= c_w * r_i;\r\n\t\t\t\tnew_w\t= c_w;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\treturn {\r\n\t\t\t\twidth\t: new_w,\r\n\t\t\t\theight\t: new_h,\r\n\t\t\t\tleft\t: ( c_w - new_w ) / 2,\r\n\t\t\t\ttop\t\t: ( c_h - new_h ) / 2\r\n\t\t\t};\r\n\t\t\r\n\t\t},\r\n\t\t_initThumbs\t\t\t: function() {\r\n\t\t\r\n\t\t\t// set the max-width of the slider elements to the one set in the plugin's options\r\n\t\t\t// also, the width of each slider element will be 100% / total number of elements\r\n\t\t\tthis.$sliderElems.css({\r\n\t\t\t\t'max-width' : this.options.thumbMaxWidth + 'px',\r\n\t\t\t\t'width'\t\t: 100 / this.itemsCount + '%'\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t// set the max-width of the slider and show it\r\n\t\t\tthis.$sliderthumbs.css( 'max-width', this.options.thumbMaxWidth * this.itemsCount + 'px' ).show();\r\n\t\t\t\r\n\t\t},\r\n\t\t_startSlideshow\t\t: function() {\r\n\t\t\r\n\t\t\tvar _self\t= this;\r\n\t\t\t\r\n\t\t\tthis.slideshow\t= setTimeout( function() {\r\n\t\t\t\t\r\n\t\t\t\tvar pos;\r\n\t\t\t\t\r\n\t\t\t\t( _self.current === _self.itemsCount - 1 ) ? pos = 0 : pos = _self.current + 1;\r\n\t\t\t\t\r\n\t\t\t\t_self._slideTo( pos );\r\n\t\t\t\t\r\n\t\t\t\tif( _self.options.autoplay ) {\r\n\t\t\t\t\r\n\t\t\t\t\t_self._startSlideshow();\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}, this.options.slideshow_interval);\r\n\t\t\r\n\t\t},\r\n\t\t// shows the clicked thumb's slide\r\n\t\t_slideTo\t\t\t: function( pos ) {\r\n\t\t\t\r\n\t\t\t// return if clicking the same element or if currently animating\r\n\t\t\tif( pos === this.current || this.isAnimating )\r\n\t\t\t\treturn false;\r\n\t\t\t\r\n\t\t\tthis.isAnimating\t= true;\r\n\t\t\t\r\n\t\t\tvar $currentSlide\t= this.$imgItems.eq( this.current ),\r\n\t\t\t\t$nextSlide\t\t= this.$imgItems.eq( pos ),\r\n\t\t\t\t_self\t\t\t= this,\r\n\t\t\t\t\r\n\t\t\t\tpreCSS\t\t\t= {zIndex\t: 10},\r\n\t\t\t\tanimCSS\t\t\t= {opacity\t: 1};\r\n\t\t\t\r\n\t\t\t// new slide will slide in from left or right side\r\n\t\t\tif( this.options.animation === 'sides' ) {\r\n\t\t\t\t\r\n\t\t\t\tpreCSS.left\t\t= ( pos > this.current ) ? -1 * this.elWidth : this.elWidth;\r\n\t\t\t\tanimCSS.left\t= 0;\r\n\t\t\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t// titles animation\r\n\t\t\t$nextSlide.find('div.ei-title > h2')\r\n\t\t\t\t\t .css( 'margin-right', 50 + 'px' )\r\n\t\t\t\t\t .stop()\r\n\t\t\t\t\t .delay( this.options.speed * this.options.titlesFactor )\r\n\t\t\t\t\t .animate({ marginRight : 0 + 'px', opacity : 1 }, this.options.titlespeed, this.options.titleeasing )\r\n\t\t\t\t\t .end()\r\n\t\t\t\t\t .find('div.ei-title > p')\r\n\t\t\t\t\t .css( 'margin-right', -50 + 'px' )\r\n\t\t\t\t\t .stop()\r\n\t\t\t\t\t .delay( this.options.speed * this.options.titlesFactor )\r\n\t\t\t\t\t .animate({ marginRight : 0 + 'px', opacity : 1 }, this.options.titlespeed, this.options.titleeasing )\r\n\t\t\t\r\n\t\t\t$.when(\r\n\t\t\t\t\r\n\t\t\t\t// fade out current titles\r\n\t\t\t\t$currentSlide.css( 'z-index' , 1 ).find('div.ei-title > *').stop().fadeOut( this.options.speed / 2, function() {\r\n\t\t\t\t\t// reset style\r\n\t\t\t\t\t$(this).show().css( 'opacity', 0 );\t\r\n\t\t\t\t}),\r\n\t\t\t\t\r\n\t\t\t\t// animate next slide in\r\n\t\t\t\t$nextSlide.css( preCSS ).stop().animate( animCSS, this.options.speed, this.options.easing ),\r\n\t\t\t\t\r\n\t\t\t\t// \"sliding div\" moves to new position\r\n\t\t\t\tthis.$sliderElem.stop().animate({\r\n\t\t\t\t\tleft\t: this.$thumbs.eq( pos ).position().left\r\n\t\t\t\t}, this.options.speed )\r\n\t\t\t\t\r\n\t\t\t).done( function() {\r\n\t\t\t\t\r\n\t\t\t\t// reset values\r\n\t\t\t\t$currentSlide.css( 'opacity' , 0 ).find('div.ei-title > *').css( 'opacity', 0 );\r\n\t\t\t\t\t_self.current\t= pos;\r\n\t\t\t\t\t_self.isAnimating\t\t= false;\r\n\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t},\r\n\t\t_initEvents\t\t\t: function() {\r\n\t\t\t\r\n\t\t\tvar _self\t= this;\r\n\t\t\t\r\n\t\t\t// window resize\r\n\t\t\t$(window).on( 'smartresize.eislideshow', function( event ) {\r\n\t\t\t\t\r\n\t\t\t\t// resize the images\r\n\t\t\t\t_self._setImagesSize();\r\n\t\t\t\r\n\t\t\t\t// reset position of thumbs sliding div\r\n\t\t\t\t_self.$sliderElem.css( 'left', _self.$thumbs.eq( _self.current ).position().left );\r\n\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t// click the thumbs\r\n\t\t\tthis.$thumbs.on( 'click.eislideshow', function( event ) {\r\n\t\t\t\t\r\n\t\t\t\tif( _self.options.autoplay ) {\r\n\t\t\t\t\r\n\t\t\t\t\tclearTimeout( _self.slideshow );\r\n\t\t\t\t\t_self.options.autoplay\t= false;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tvar $thumb\t= $(this),\r\n\t\t\t\t\tidx\t\t= $thumb.index() - 1; // exclude sliding div\r\n\t\t\t\t\t\r\n\t\t\t\t_self._slideTo( idx );\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t}\r\n\t};\r\n\t\r\n\tvar logError \t\t\t\t= function( message ) {\r\n\t\t\r\n\t\tif ( this.console ) {\r\n\t\t\t\r\n\t\t\tconsole.error( message );\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t};\r\n\t\r\n\t$.fn.eislideshow\t\t\t= function( options ) {\r\n\t\r\n\t\tif ( typeof options === 'string' ) {\r\n\t\t\r\n\t\t\tvar args = Array.prototype.slice.call( arguments, 1 );\r\n\r\n\t\t\tthis.each(function() {\r\n\t\t\t\r\n\t\t\t\tvar instance = $.data( this, 'eislideshow' );\r\n\t\t\t\t\r\n\t\t\t\tif ( !instance ) {\r\n\t\t\t\t\tlogError( \"cannot call methods on eislideshow prior to initialization; \" +\r\n\t\t\t\t\t\"attempted to call method '\" + options + \"'\" );\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif ( !$.isFunction( instance[options] ) || options.charAt(0) === \"_\" ) {\r\n\t\t\t\t\tlogError( \"no such method '\" + options + \"' for eislideshow instance\" );\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tinstance[ options ].apply( instance, args );\r\n\t\t\t\r\n\t\t\t});\r\n\t\t\r\n\t\t} \r\n\t\telse {\r\n\t\t\r\n\t\t\tthis.each(function() {\r\n\t\t\t\r\n\t\t\t\tvar instance = $.data( this, 'eislideshow' );\r\n\t\t\t\tif ( !instance ) {\r\n\t\t\t\t\t$.data( this, 'eislideshow', new $.Slideshow( options, this ) );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t});\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn this;\r\n\t\t\r\n\t};\r\n\t\r\n})( window, jQuery );","/*\r\n * jQuery FlexSlider v2.4.0\r\n * Copyright 2012 WooThemes\r\n * Contributing Author: Tyler Smith\r\n */!function($){$.flexslider=function(e,t){var a=$(e);a.vars=$.extend({},$.flexslider.defaults,t);var n=a.vars.namespace,i=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,s=(\"ontouchstart\"in window||i||window.DocumentTouch&&document instanceof DocumentTouch)&&a.vars.touch,r=\"click touchend MSPointerUp keyup\",o=\"\",l,c=\"vertical\"===a.vars.direction,d=a.vars.reverse,u=a.vars.itemWidth>0,v=\"fade\"===a.vars.animation,p=\"\"!==a.vars.asNavFor,m={},f=!0;$.data(e,\"flexslider\",a),m={init:function(){a.animating=!1,a.currentSlide=parseInt(a.vars.startAt?a.vars.startAt:0,10),isNaN(a.currentSlide)&&(a.currentSlide=0),a.animatingTo=a.currentSlide,a.atEnd=0===a.currentSlide||a.currentSlide===a.last,a.containerSelector=a.vars.selector.substr(0,a.vars.selector.search(\" \")),a.slides=$(a.vars.selector,a),a.container=$(a.containerSelector,a),a.count=a.slides.length,a.syncExists=$(a.vars.sync).length>0,\"slide\"===a.vars.animation&&(a.vars.animation=\"swing\"),a.prop=c?\"top\":\"marginLeft\",a.args={},a.manualPause=!1,a.stopped=!1,a.started=!1,a.startTimeout=null,a.transitions=!a.vars.video&&!v&&a.vars.useCSS&&function(){var e=document.createElement(\"div\"),t=[\"perspectiveProperty\",\"WebkitPerspective\",\"MozPerspective\",\"OPerspective\",\"msPerspective\"];for(var n in t)if(void 0!==e.style[t[n]])return a.pfx=t[n].replace(\"Perspective\",\"\").toLowerCase(),a.prop=\"-\"+a.pfx+\"-transform\",!0;return!1}(),a.ensureAnimationEnd=\"\",\"\"!==a.vars.controlsContainer&&(a.controlsContainer=$(a.vars.controlsContainer).length>0&&$(a.vars.controlsContainer)),\"\"!==a.vars.manualControls&&(a.manualControls=$(a.vars.manualControls).length>0&&$(a.vars.manualControls)),a.vars.randomize&&(a.slides.sort(function(){return Math.round(Math.random())-.5}),a.container.empty().append(a.slides)),a.doMath(),a.setup(\"init\"),a.vars.controlNav&&m.controlNav.setup(),a.vars.directionNav&&m.directionNav.setup(),a.vars.keyboard&&(1===$(a.containerSelector).length||a.vars.multipleKeyboard)&&$(document).bind(\"keyup\",function(e){var t=e.keyCode;if(!a.animating&&(39===t||37===t)){var n=39===t?a.getTarget(\"next\"):37===t?a.getTarget(\"prev\"):!1;a.flexAnimate(n,a.vars.pauseOnAction)}}),a.vars.mousewheel&&a.bind(\"mousewheel\",function(e,t,n,i){e.preventDefault();var s=a.getTarget(0>t?\"next\":\"prev\");a.flexAnimate(s,a.vars.pauseOnAction)}),a.vars.pausePlay&&m.pausePlay.setup(),a.vars.slideshow&&a.vars.pauseInvisible&&m.pauseInvisible.init(),a.vars.slideshow&&(a.vars.pauseOnHover&&a.hover(function(){a.manualPlay||a.manualPause||a.pause()},function(){a.manualPause||a.manualPlay||a.stopped||a.play()}),a.vars.pauseInvisible&&m.pauseInvisible.isHidden()||(a.vars.initDelay>0?a.startTimeout=setTimeout(a.play,a.vars.initDelay):a.play())),p&&m.asNav.setup(),s&&a.vars.touch&&m.touch(),(!v||v&&a.vars.smoothHeight)&&$(window).bind(\"resize orientationchange focus\",m.resize),a.find(\"img\").attr(\"draggable\",\"false\"),setTimeout(function(){a.vars.start(a)},200)},asNav:{setup:function(){a.asNav=!0,a.animatingTo=Math.floor(a.currentSlide/a.move),a.currentItem=a.currentSlide,a.slides.removeClass(n+\"active-slide\").eq(a.currentItem).addClass(n+\"active-slide\"),i?(e._slider=a,a.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener(\"MSPointerDown\",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener(\"MSGestureTap\",function(e){e.preventDefault();var t=$(this),n=t.index();$(a.vars.asNavFor).data(\"flexslider\").animating||t.hasClass(\"active\")||(a.direction=a.currentItem=s&&t.hasClass(n+\"active-slide\")?a.flexAnimate(a.getTarget(\"prev\"),!0):$(a.vars.asNavFor).data(\"flexslider\").animating||t.hasClass(n+\"active-slide\")||(a.direction=a.currentItem'),a.pagingCount>1)for(var l=0;l':\"\"+t+\"\",\"thumbnails\"===a.vars.controlNav&&!0===a.vars.thumbCaptions){var c=s.attr(\"data-thumbcaption\");\"\"!=c&&void 0!=c&&(i+=''+c+\"\")}a.controlNavScaffold.append(\"
  • \"+i+\"
  • \"),t++}a.controlsContainer?$(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold),m.controlNav.set(),m.controlNav.active(),a.controlNavScaffold.delegate(\"a, img\",r,function(e){if(e.preventDefault(),\"\"===o||o===e.type){var t=$(this),i=a.controlNav.index(t);t.hasClass(n+\"active\")||(a.direction=i>a.currentSlide?\"next\":\"prev\",a.flexAnimate(i,a.vars.pauseOnAction))}\"\"===o&&(o=e.type),m.setToClearWatchedEvent()})},setupManual:function(){a.controlNav=a.manualControls,m.controlNav.active(),a.controlNav.bind(r,function(e){if(e.preventDefault(),\"\"===o||o===e.type){var t=$(this),i=a.controlNav.index(t);t.hasClass(n+\"active\")||(a.direction=i>a.currentSlide?\"next\":\"prev\",a.flexAnimate(i,a.vars.pauseOnAction))}\"\"===o&&(o=e.type),m.setToClearWatchedEvent()})},set:function(){var e=\"thumbnails\"===a.vars.controlNav?\"img\":\"a\";a.controlNav=$(\".\"+n+\"control-nav li \"+e,a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(n+\"active\").eq(a.animatingTo).addClass(n+\"active\")},update:function(e,t){a.pagingCount>1&&\"add\"===e?a.controlNavScaffold.append($(\"
  • \"+a.count+\"
  • \")):1===a.pagingCount?a.controlNavScaffold.find(\"li\").remove():a.controlNav.eq(t).closest(\"li\").remove(),m.controlNav.set(),a.pagingCount>1&&a.pagingCount!==a.controlNav.length?a.update(t,e):m.controlNav.active()}},directionNav:{setup:function(){var e=$('\");a.controlsContainer?($(a.controlsContainer).append(e),a.directionNav=$(\".\"+n+\"direction-nav li a\",a.controlsContainer)):(a.append(e),a.directionNav=$(\".\"+n+\"direction-nav li a\",a)),m.directionNav.update(),a.directionNav.bind(r,function(e){e.preventDefault();var t;(\"\"===o||o===e.type)&&(t=a.getTarget($(this).hasClass(n+\"next\")?\"next\":\"prev\"),a.flexAnimate(t,a.vars.pauseOnAction)),\"\"===o&&(o=e.type),m.setToClearWatchedEvent()})},update:function(){var e=n+\"disabled\";1===a.pagingCount?a.directionNav.addClass(e).attr(\"tabindex\",\"-1\"):a.vars.animationLoop?a.directionNav.removeClass(e).removeAttr(\"tabindex\"):0===a.animatingTo?a.directionNav.removeClass(e).filter(\".\"+n+\"prev\").addClass(e).attr(\"tabindex\",\"-1\"):a.animatingTo===a.last?a.directionNav.removeClass(e).filter(\".\"+n+\"next\").addClass(e).attr(\"tabindex\",\"-1\"):a.directionNav.removeClass(e).removeAttr(\"tabindex\")}},pausePlay:{setup:function(){var e=$('
    ');a.controlsContainer?(a.controlsContainer.append(e),a.pausePlay=$(\".\"+n+\"pauseplay a\",a.controlsContainer)):(a.append(e),a.pausePlay=$(\".\"+n+\"pauseplay a\",a)),m.pausePlay.update(a.vars.slideshow?n+\"pause\":n+\"play\"),a.pausePlay.bind(r,function(e){e.preventDefault(),(\"\"===o||o===e.type)&&($(this).hasClass(n+\"pause\")?(a.manualPause=!0,a.manualPlay=!1,a.pause()):(a.manualPause=!1,a.manualPlay=!0,a.play())),\"\"===o&&(o=e.type),m.setToClearWatchedEvent()})},update:function(e){\"play\"===e?a.pausePlay.removeClass(n+\"pause\").addClass(n+\"play\").html(a.vars.playText):a.pausePlay.removeClass(n+\"play\").addClass(n+\"pause\").html(a.vars.pauseText)}},touch:function(){function t(t){a.animating?t.preventDefault():(window.navigator.msPointerEnabled||1===t.touches.length)&&(a.pause(),g=c?a.h:a.w,S=Number(new Date),x=t.touches[0].pageX,b=t.touches[0].pageY,f=u&&d&&a.animatingTo===a.last?0:u&&d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:u&&a.currentSlide===a.last?a.limit:u?(a.itemW+a.vars.itemMargin)*a.move*a.currentSlide:d?(a.last-a.currentSlide+a.cloneOffset)*g:(a.currentSlide+a.cloneOffset)*g,p=c?b:x,m=c?x:b,e.addEventListener(\"touchmove\",n,!1),e.addEventListener(\"touchend\",s,!1))}function n(e){x=e.touches[0].pageX,b=e.touches[0].pageY,h=c?p-b:p-x,y=c?Math.abs(h)t)&&(e.preventDefault(),!v&&a.transitions&&(a.vars.animationLoop||(h/=0===a.currentSlide&&0>h||a.currentSlide===a.last&&h>0?Math.abs(h)/g+2:1),a.setProps(f+h,\"setTouch\")))}function s(t){if(e.removeEventListener(\"touchmove\",n,!1),a.animatingTo===a.currentSlide&&!y&&null!==h){var i=d?-h:h,r=a.getTarget(i>0?\"next\":\"prev\");a.canAdvance(r)&&(Number(new Date)-S<550&&Math.abs(i)>50||Math.abs(i)>g/2)?a.flexAnimate(r,a.vars.pauseOnAction):v||a.flexAnimate(a.currentSlide,a.vars.pauseOnAction,!0)}e.removeEventListener(\"touchend\",s,!1),p=null,m=null,h=null,f=null}function r(t){t.stopPropagation(),a.animating?t.preventDefault():(a.pause(),e._gesture.addPointer(t.pointerId),w=0,g=c?a.h:a.w,S=Number(new Date),f=u&&d&&a.animatingTo===a.last?0:u&&d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:u&&a.currentSlide===a.last?a.limit:u?(a.itemW+a.vars.itemMargin)*a.move*a.currentSlide:d?(a.last-a.currentSlide+a.cloneOffset)*g:(a.currentSlide+a.cloneOffset)*g)}function o(t){t.stopPropagation();var a=t.target._slider;if(a){var n=-t.translationX,i=-t.translationY;return w+=c?i:n,h=w,y=c?Math.abs(w)500)&&(t.preventDefault(),!v&&a.transitions&&(a.vars.animationLoop||(h=w/(0===a.currentSlide&&0>w||a.currentSlide===a.last&&w>0?Math.abs(w)/g+2:1)),a.setProps(f+h,\"setTouch\"))))}}function l(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!y&&null!==h){var a=d?-h:h,n=t.getTarget(a>0?\"next\":\"prev\");t.canAdvance(n)&&(Number(new Date)-S<550&&Math.abs(a)>50||Math.abs(a)>g/2)?t.flexAnimate(n,t.vars.pauseOnAction):v||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}p=null,m=null,h=null,f=null,w=0}}var p,m,f,g,h,S,y=!1,x=0,b=0,w=0;i?(e.style.msTouchAction=\"none\",e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener(\"MSPointerDown\",r,!1),e._slider=a,e.addEventListener(\"MSGestureChange\",o,!1),e.addEventListener(\"MSGestureEnd\",l,!1)):e.addEventListener(\"touchstart\",t,!1)},resize:function(){!a.animating&&a.is(\":visible\")&&(u||a.doMath(),v?m.smoothHeight():u?(a.slides.width(a.computedW),a.update(a.pagingCount),a.setProps()):c?(a.viewport.height(a.h),a.setProps(a.h,\"setTotal\")):(a.vars.smoothHeight&&m.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,\"setTotal\")))},smoothHeight:function(e){if(!c||v){var t=v?a:a.viewport;e?t.animate({height:a.slides.eq(a.animatingTo).height()},e):t.height(a.slides.eq(a.animatingTo).height())}},sync:function(e){var t=$(a.vars.sync).data(\"flexslider\"),n=a.animatingTo;switch(e){case\"animate\":t.flexAnimate(n,a.vars.pauseOnAction,!1,!0);break;case\"play\":t.playing||t.asNav||t.play();break;case\"pause\":t.pause()}},uniqueID:function(e){return e.filter(\"[id]\").add(e.find(\"[id]\")).each(function(){var e=$(this);e.attr(\"id\",e.attr(\"id\")+\"_clone\")}),e},pauseInvisible:{visProp:null,init:function(){var e=m.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,\"\")+\"visibilitychange\";document.addEventListener(t,function(){m.pauseInvisible.isHidden()?a.startTimeout?clearTimeout(a.startTimeout):a.pause():a.started?a.play():a.vars.initDelay>0?setTimeout(a.play,a.vars.initDelay):a.play()})}},isHidden:function(){var e=m.pauseInvisible.getHiddenProp();return e?document[e]:!1},getHiddenProp:function(){var e=[\"webkit\",\"moz\",\"ms\",\"o\"];if(\"hidden\"in document)return\"hidden\";for(var t=0;ta.currentSlide?\"next\":\"prev\"),p&&1===a.pagingCount&&(a.direction=a.currentItema.limit&&1!==a.visible?a.limit:S):h=0===a.currentSlide&&e===a.count-1&&a.vars.animationLoop&&\"next\"!==a.direction?d?(a.count+a.cloneOffset)*f:0:a.currentSlide===a.last&&0===e&&a.vars.animationLoop&&\"prev\"!==a.direction?d?0:(a.count+1)*f:d?(a.count-1-e+a.cloneOffset)*f:(e+a.cloneOffset)*f,a.setProps(h,\"\",a.vars.animationSpeed),a.transitions?(a.vars.animationLoop&&a.atEnd||(a.animating=!1,a.currentSlide=a.animatingTo),a.container.unbind(\"webkitTransitionEnd transitionend\"),a.container.bind(\"webkitTransitionEnd transitionend\",function(){clearTimeout(a.ensureAnimationEnd),a.wrapup(f)}),clearTimeout(a.ensureAnimationEnd),a.ensureAnimationEnd=setTimeout(function(){a.wrapup(f)},a.vars.animationSpeed+100)):a.container.animate(a.args,a.vars.animationSpeed,a.vars.easing,function(){a.wrapup(f)})}a.vars.smoothHeight&&m.smoothHeight(a.vars.animationSpeed)}},a.wrapup=function(e){v||u||(0===a.currentSlide&&a.animatingTo===a.last&&a.vars.animationLoop?a.setProps(e,\"jumpEnd\"):a.currentSlide===a.last&&0===a.animatingTo&&a.vars.animationLoop&&a.setProps(e,\"jumpStart\")),a.animating=!1,a.currentSlide=a.animatingTo,a.vars.after(a)},a.animateSlides=function(){!a.animating&&f&&a.flexAnimate(a.getTarget(\"next\"))},a.pause=function(){clearInterval(a.animatedSlides),a.animatedSlides=null,a.playing=!1,a.vars.pausePlay&&m.pausePlay.update(\"play\"),a.syncExists&&m.sync(\"pause\")},a.play=function(){a.playing&&clearInterval(a.animatedSlides),a.animatedSlides=a.animatedSlides||setInterval(a.animateSlides,a.vars.slideshowSpeed),a.started=a.playing=!0,a.vars.pausePlay&&m.pausePlay.update(\"pause\"),a.syncExists&&m.sync(\"play\")},a.stop=function(){a.pause(),a.stopped=!0},a.canAdvance=function(e,t){var n=p?a.pagingCount-1:a.last;return t?!0:p&&a.currentItem===a.count-1&&0===e&&\"prev\"===a.direction?!0:p&&0===a.currentItem&&e===a.pagingCount-1&&\"next\"!==a.direction?!1:e!==a.currentSlide||p?a.vars.animationLoop?!0:a.atEnd&&0===a.currentSlide&&e===n&&\"next\"!==a.direction?!1:a.atEnd&&a.currentSlide===n&&0===e&&\"next\"===a.direction?!1:!0:!1},a.getTarget=function(e){return a.direction=e,\"next\"===e?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1},a.setProps=function(e,t,n){var i=function(){var n=e?e:(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo,i=function(){if(u)return\"setTouch\"===t?e:d&&a.animatingTo===a.last?0:d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:n;switch(t){case\"setTotal\":return d?(a.count-1-a.currentSlide+a.cloneOffset)*e:(a.currentSlide+a.cloneOffset)*e;case\"setTouch\":return d?e:e;case\"jumpEnd\":return d?e:a.count*e;case\"jumpStart\":return d?a.count*e:e;default:return e}}();return-1*i+\"px\"}();a.transitions&&(i=c?\"translate3d(0,\"+i+\",0)\":\"translate3d(\"+i+\",0,0)\",n=void 0!==n?n/1e3+\"s\":\"0s\",a.container.css(\"-\"+a.pfx+\"-transition-duration\",n),a.container.css(\"transition-duration\",n)),a.args[a.prop]=i,(a.transitions||void 0===n)&&a.container.css(a.args),a.container.css(\"transform\",i)},a.setup=function(e){if(v)a.slides.css({width:\"100%\",\"float\":\"left\",marginRight:\"-100%\",position:\"relative\"}),\"init\"===e&&(s?a.slides.css({opacity:0,display:\"block\",webkitTransition:\"opacity \"+a.vars.animationSpeed/1e3+\"s ease\",zIndex:1}).eq(a.currentSlide).css({opacity:1,zIndex:2}):0==a.vars.fadeFirstSlide?a.slides.css({opacity:0,display:\"block\",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).css({opacity:1}):a.slides.css({opacity:0,display:\"block\",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).animate({opacity:1},a.vars.animationSpeed,a.vars.easing)),a.vars.smoothHeight&&m.smoothHeight();else{var t,i;\"init\"===e&&(a.viewport=$('
    ').css({overflow:\"hidden\",position:\"relative\"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset=0,d&&(i=$.makeArray(a.slides).reverse(),a.slides=$(i),a.container.empty().append(a.slides))),a.vars.animationLoop&&!u&&(a.cloneCount=2,a.cloneOffset=1,\"init\"!==e&&a.container.find(\".clone\").remove(),a.container.append(m.uniqueID(a.slides.first().clone().addClass(\"clone\")).attr(\"aria-hidden\",\"true\")).prepend(m.uniqueID(a.slides.last().clone().addClass(\"clone\")).attr(\"aria-hidden\",\"true\"))),a.newSlides=$(a.vars.selector,a),t=d?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset,c&&!u?(a.container.height(200*(a.count+a.cloneCount)+\"%\").css(\"position\",\"absolute\").width(\"100%\"),setTimeout(function(){a.newSlides.css({display:\"block\"}),a.doMath(),a.viewport.height(a.h),a.setProps(t*a.h,\"init\")},\"init\"===e?100:0)):(a.container.width(200*(a.count+a.cloneCount)+\"%\"),a.setProps(t*a.computedW,\"init\"),setTimeout(function(){a.doMath(),a.newSlides.css({width:a.computedW,\"float\":\"left\",display:\"block\"}),a.vars.smoothHeight&&m.smoothHeight()},\"init\"===e?100:0))}u||a.slides.removeClass(n+\"active-slide\").eq(a.currentSlide).addClass(n+\"active-slide\"),a.vars.init(a)},a.doMath=function(){var e=a.slides.first(),t=a.vars.itemMargin,n=a.vars.minItems,i=a.vars.maxItems;a.w=void 0===a.viewport?a.width():a.viewport.width(),a.h=e.height(),a.boxPadding=e.outerWidth()-e.width(),u?(a.itemT=a.vars.itemWidth+t,a.minW=n?n*a.itemT:a.w,a.maxW=i?i*a.itemT-t:a.w,a.itemW=a.minW>a.w?(a.w-t*(n-1))/n:a.maxWa.w?a.w:a.vars.itemWidth,a.visible=Math.floor(a.w/a.itemW),a.move=a.vars.move>0&&a.vars.movea.w?a.itemW*(a.count-1)+t*(a.count-1):(a.itemW+t)*a.count-a.w-t):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1),a.computedW=a.itemW-a.boxPadding},a.update=function(e,t){a.doMath(),u||(ea.controlNav.length?m.controlNav.update(\"add\"):(\"remove\"===t&&!u||a.pagingCounta.last&&(a.currentSlide-=1,a.animatingTo-=1),m.controlNav.update(\"remove\",a.last))),a.vars.directionNav&&m.directionNav.update()},a.addSlide=function(e,t){var n=$(e);a.count+=1,a.last=a.count-1,c&&d?void 0!==t?a.slides.eq(a.count-t).after(n):a.container.prepend(n):void 0!==t?a.slides.eq(t).before(n):a.container.append(n),a.update(t,\"add\"),a.slides=$(a.vars.selector+\":not(.clone)\",a),a.setup(),a.vars.added(a)},a.removeSlide=function(e){var t=isNaN(e)?a.slides.index($(e)):e;a.count-=1,a.last=a.count-1,isNaN(e)?$(e,a.slides).remove():c&&d?a.slides.eq(a.last).remove():a.slides.eq(e).remove(),a.doMath(),a.update(t,\"remove\"),a.slides=$(a.vars.selector+\":not(.clone)\",a),a.setup(),a.vars.removed(a)},m.init()},$(window).blur(function(e){focused=!1}).focus(function(e){focused=!0}),$.flexslider.defaults={namespace:\"flex-\",selector:\".slides > li\",animation:\"fade\",easing:\"swing\",direction:\"horizontal\",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:\"Previous\",nextText:\"Next\",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:\"Pause\",playText:\"Play\",controlsContainer:\"\",manualControls:\"\",sync:\"\",asNavFor:\"\",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},$.fn.flexslider=function(e){if(void 0===e&&(e={}),\"object\"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:\".slides > li\",n=t.find(a);1===n.length&&e.allowOneSlide===!0||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data(\"flexslider\")&&new $.flexslider(this,e)});var t=$(this).data(\"flexslider\");switch(e){case\"play\":t.play();break;case\"pause\":t.pause();break;case\"stop\":t.stop();break;case\"next\":t.flexAnimate(t.getTarget(\"next\"),!0);break;case\"prev\":case\"previous\":t.flexAnimate(t.getTarget(\"prev\"),!0);break;default:\"number\"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery);","/*!\r\n * imagesLoaded PACKAGED v3.1.8\r\n * JavaScript is all like \"You images are done yet or what?\"\r\n * MIT License\r\n */\r\n\r\n\r\n/*!\r\n * EventEmitter v4.2.6 - git.io/ee\r\n * Oliver Caldwell\r\n * MIT license\r\n * @preserve\r\n */\r\n\r\n(function () {\r\n\r\n\r\n /**\r\n * Class for managing events.\r\n * Can be extended to provide event functionality in other classes.\r\n *\r\n * @class EventEmitter Manages event registering and emitting.\r\n */\r\n function EventEmitter() {}\r\n\r\n // Shortcuts to improve speed and size\r\n var proto = EventEmitter.prototype;\r\n var exports = this;\r\n var originalGlobalValue = exports.EventEmitter;\r\n\r\n /**\r\n * Finds the index of the listener for the event in it's storage array.\r\n *\r\n * @param {Function[]} listeners Array of listeners to search through.\r\n * @param {Function} listener Method to look for.\r\n * @return {Number} Index of the specified listener, -1 if not found\r\n * @api private\r\n */\r\n function indexOfListener(listeners, listener) {\r\n var i = listeners.length;\r\n while (i--) {\r\n if (listeners[i].listener === listener) {\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n }\r\n\r\n /**\r\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\r\n *\r\n * @param {String} name The name of the target method.\r\n * @return {Function} The aliased method\r\n * @api private\r\n */\r\n function alias(name) {\r\n return function aliasClosure() {\r\n return this[name].apply(this, arguments);\r\n };\r\n }\r\n\r\n /**\r\n * Returns the listener array for the specified event.\r\n * Will initialise the event object and listener arrays if required.\r\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\r\n * Each property in the object response is an array of listener functions.\r\n *\r\n * @param {String|RegExp} evt Name of the event to return the listeners from.\r\n * @return {Function[]|Object} All listener functions for the event.\r\n */\r\n proto.getListeners = function getListeners(evt) {\r\n var events = this._getEvents();\r\n var response;\r\n var key;\r\n\r\n // Return a concatenated array of all matching events if\r\n // the selector is a regular expression.\r\n if (typeof evt === 'object') {\r\n response = {};\r\n for (key in events) {\r\n if (events.hasOwnProperty(key) && evt.test(key)) {\r\n response[key] = events[key];\r\n }\r\n }\r\n }\r\n else {\r\n response = events[evt] || (events[evt] = []);\r\n }\r\n\r\n return response;\r\n };\r\n\r\n /**\r\n * Takes a list of listener objects and flattens it into a list of listener functions.\r\n *\r\n * @param {Object[]} listeners Raw listener objects.\r\n * @return {Function[]} Just the listener functions.\r\n */\r\n proto.flattenListeners = function flattenListeners(listeners) {\r\n var flatListeners = [];\r\n var i;\r\n\r\n for (i = 0; i < listeners.length; i += 1) {\r\n flatListeners.push(listeners[i].listener);\r\n }\r\n\r\n return flatListeners;\r\n };\r\n\r\n /**\r\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\r\n *\r\n * @param {String|RegExp} evt Name of the event to return the listeners from.\r\n * @return {Object} All listener functions for an event in an object.\r\n */\r\n proto.getListenersAsObject = function getListenersAsObject(evt) {\r\n var listeners = this.getListeners(evt);\r\n var response;\r\n\r\n if (listeners instanceof Array) {\r\n response = {};\r\n response[evt] = listeners;\r\n }\r\n\r\n return response || listeners;\r\n };\r\n\r\n /**\r\n * Adds a listener function to the specified event.\r\n * The listener will not be added if it is a duplicate.\r\n * If the listener returns true then it will be removed after it is called.\r\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to attach the listener to.\r\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addListener = function addListener(evt, listener) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var listenerIsWrapped = typeof listener === 'object';\r\n var key;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\r\n listeners[key].push(listenerIsWrapped ? listener : {\r\n listener: listener,\r\n once: false\r\n });\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of addListener\r\n */\r\n proto.on = alias('addListener');\r\n\r\n /**\r\n * Semi-alias of addListener. It will add a listener that will be\r\n * automatically removed after it's first execution.\r\n *\r\n * @param {String|RegExp} evt Name of the event to attach the listener to.\r\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addOnceListener = function addOnceListener(evt, listener) {\r\n return this.addListener(evt, {\r\n listener: listener,\r\n once: true\r\n });\r\n };\r\n\r\n /**\r\n * Alias of addOnceListener.\r\n */\r\n proto.once = alias('addOnceListener');\r\n\r\n /**\r\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\r\n * You need to tell it what event names should be matched by a regex.\r\n *\r\n * @param {String} evt Name of the event to create.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.defineEvent = function defineEvent(evt) {\r\n this.getListeners(evt);\r\n return this;\r\n };\r\n\r\n /**\r\n * Uses defineEvent to define multiple events.\r\n *\r\n * @param {String[]} evts An array of event names to define.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.defineEvents = function defineEvents(evts) {\r\n for (var i = 0; i < evts.length; i += 1) {\r\n this.defineEvent(evts[i]);\r\n }\r\n return this;\r\n };\r\n\r\n /**\r\n * Removes a listener function from the specified event.\r\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to remove the listener from.\r\n * @param {Function} listener Method to remove from the event.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeListener = function removeListener(evt, listener) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var index;\r\n var key;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key)) {\r\n index = indexOfListener(listeners[key], listener);\r\n\r\n if (index !== -1) {\r\n listeners[key].splice(index, 1);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of removeListener\r\n */\r\n proto.off = alias('removeListener');\r\n\r\n /**\r\n * Adds listeners in bulk using the manipulateListeners method.\r\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\r\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\r\n * Yeah, this function does quite a bit. That's probably a bad thing.\r\n *\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to add.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addListeners = function addListeners(evt, listeners) {\r\n // Pass through to manipulateListeners\r\n return this.manipulateListeners(false, evt, listeners);\r\n };\r\n\r\n /**\r\n * Removes listeners in bulk using the manipulateListeners method.\r\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\r\n * You can also pass it an event name and an array of listeners to be removed.\r\n * You can also pass it a regular expression to remove the listeners from all events that match it.\r\n *\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeListeners = function removeListeners(evt, listeners) {\r\n // Pass through to manipulateListeners\r\n return this.manipulateListeners(true, evt, listeners);\r\n };\r\n\r\n /**\r\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\r\n * The first argument will determine if the listeners are removed (true) or added (false).\r\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\r\n * You can also pass it an event name and an array of listeners to be added/removed.\r\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\r\n *\r\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\r\n var i;\r\n var value;\r\n var single = remove ? this.removeListener : this.addListener;\r\n var multiple = remove ? this.removeListeners : this.addListeners;\r\n\r\n // If evt is an object then pass each of it's properties to this method\r\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\r\n for (i in evt) {\r\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\r\n // Pass the single listener straight through to the singular method\r\n if (typeof value === 'function') {\r\n single.call(this, i, value);\r\n }\r\n else {\r\n // Otherwise pass back to the multiple function\r\n multiple.call(this, i, value);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // So evt must be a string\r\n // And listeners must be an array of listeners\r\n // Loop over it and pass each one to the multiple method\r\n i = listeners.length;\r\n while (i--) {\r\n single.call(this, evt, listeners[i]);\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Removes all listeners from a specified event.\r\n * If you do not specify an event then all listeners will be removed.\r\n * That means every event will be emptied.\r\n * You can also pass a regex to remove all events that match it.\r\n *\r\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeEvent = function removeEvent(evt) {\r\n var type = typeof evt;\r\n var events = this._getEvents();\r\n var key;\r\n\r\n // Remove different things depending on the state of evt\r\n if (type === 'string') {\r\n // Remove all listeners for the specified event\r\n delete events[evt];\r\n }\r\n else if (type === 'object') {\r\n // Remove all events matching the regex.\r\n for (key in events) {\r\n if (events.hasOwnProperty(key) && evt.test(key)) {\r\n delete events[key];\r\n }\r\n }\r\n }\r\n else {\r\n // Remove all listeners in all events\r\n delete this._events;\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of removeEvent.\r\n *\r\n * Added to mirror the node API.\r\n */\r\n proto.removeAllListeners = alias('removeEvent');\r\n\r\n /**\r\n * Emits an event of your choice.\r\n * When emitted, every listener attached to that event will be executed.\r\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\r\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\r\n * So they will not arrive within the array on the other side, they will be separate.\r\n * You can also pass a regular expression to emit to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\r\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.emitEvent = function emitEvent(evt, args) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var listener;\r\n var i;\r\n var key;\r\n var response;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key)) {\r\n i = listeners[key].length;\r\n\r\n while (i--) {\r\n // If the listener returns true then it shall be removed from the event\r\n // The function is executed either with a basic call or an apply if there is an args array\r\n listener = listeners[key][i];\r\n\r\n if (listener.once === true) {\r\n this.removeListener(evt, listener.listener);\r\n }\r\n\r\n response = listener.listener.apply(this, args || []);\r\n\r\n if (response === this._getOnceReturnValue()) {\r\n this.removeListener(evt, listener.listener);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of emitEvent\r\n */\r\n proto.trigger = alias('emitEvent');\r\n\r\n /**\r\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\r\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\r\n * @param {...*} Optional additional arguments to be passed to each listener.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.emit = function emit(evt) {\r\n var args = Array.prototype.slice.call(arguments, 1);\r\n return this.emitEvent(evt, args);\r\n };\r\n\r\n /**\r\n * Sets the current value to check against when executing listeners. If a\r\n * listeners return value matches the one set here then it will be removed\r\n * after execution. This value defaults to true.\r\n *\r\n * @param {*} value The new value to check for when executing listeners.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\r\n this._onceReturnValue = value;\r\n return this;\r\n };\r\n\r\n /**\r\n * Fetches the current value to check against when executing listeners. If\r\n * the listeners return value matches this one then it should be removed\r\n * automatically. It will return true by default.\r\n *\r\n * @return {*|Boolean} The current value to check for or the default, true.\r\n * @api private\r\n */\r\n proto._getOnceReturnValue = function _getOnceReturnValue() {\r\n if (this.hasOwnProperty('_onceReturnValue')) {\r\n return this._onceReturnValue;\r\n }\r\n else {\r\n return true;\r\n }\r\n };\r\n\r\n /**\r\n * Fetches the events object and creates one if required.\r\n *\r\n * @return {Object} The events storage object.\r\n * @api private\r\n */\r\n proto._getEvents = function _getEvents() {\r\n return this._events || (this._events = {});\r\n };\r\n\r\n /**\r\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\r\n *\r\n * @return {Function} Non conflicting EventEmitter class.\r\n */\r\n EventEmitter.noConflict = function noConflict() {\r\n exports.EventEmitter = originalGlobalValue;\r\n return EventEmitter;\r\n };\r\n\r\n // Expose the class either via AMD, CommonJS or the global object\r\n if (typeof define === 'function' && define.amd) {\r\n define('eventEmitter/EventEmitter',[],function () {\r\n return EventEmitter;\r\n });\r\n }\r\n else if (typeof module === 'object' && module.exports){\r\n module.exports = EventEmitter;\r\n }\r\n else {\r\n this.EventEmitter = EventEmitter;\r\n }\r\n}.call(this));\r\n\r\n/*!\r\n * eventie v1.0.4\r\n * event binding helper\r\n * eventie.bind( elem, 'click', myFn )\r\n * eventie.unbind( elem, 'click', myFn )\r\n */\r\n\r\n/*jshint browser: true, undef: true, unused: true */\r\n/*global define: false */\r\n\r\n( function( window ) {\r\n\r\n\r\n\r\n var docElem = document.documentElement;\r\n\r\n var bind = function() {};\r\n\r\n function getIEEvent( obj ) {\r\n var event = window.event;\r\n // add event.target\r\n event.target = event.target || event.srcElement || obj;\r\n return event;\r\n }\r\n\r\n if ( docElem.addEventListener ) {\r\n bind = function( obj, type, fn ) {\r\n obj.addEventListener( type, fn, false );\r\n };\r\n } else if ( docElem.attachEvent ) {\r\n bind = function( obj, type, fn ) {\r\n obj[ type + fn ] = fn.handleEvent ?\r\n function() {\r\n var event = getIEEvent( obj );\r\n fn.handleEvent.call( fn, event );\r\n } :\r\n function() {\r\n var event = getIEEvent( obj );\r\n fn.call( obj, event );\r\n };\r\n obj.attachEvent( \"on\" + type, obj[ type + fn ] );\r\n };\r\n }\r\n\r\n var unbind = function() {};\r\n\r\n if ( docElem.removeEventListener ) {\r\n unbind = function( obj, type, fn ) {\r\n obj.removeEventListener( type, fn, false );\r\n };\r\n } else if ( docElem.detachEvent ) {\r\n unbind = function( obj, type, fn ) {\r\n obj.detachEvent( \"on\" + type, obj[ type + fn ] );\r\n try {\r\n delete obj[ type + fn ];\r\n } catch ( err ) {\r\n // can't delete window object properties\r\n obj[ type + fn ] = undefined;\r\n }\r\n };\r\n }\r\n\r\n var eventie = {\r\n bind: bind,\r\n unbind: unbind\r\n };\r\n\r\n// transport\r\n if ( typeof define === 'function' && define.amd ) {\r\n // AMD\r\n define( 'eventie/eventie',eventie );\r\n } else {\r\n // browser global\r\n window.eventie = eventie;\r\n }\r\n\r\n})( this );\r\n\r\n/*!\r\n * imagesLoaded v3.1.8\r\n * JavaScript is all like \"You images are done yet or what?\"\r\n * MIT License\r\n */\r\n\r\n( function( window, factory ) {\r\n // universal module definition\r\n\r\n /*global define: false, module: false, require: false */\r\n\r\n if ( typeof define === 'function' && define.amd ) {\r\n // AMD\r\n define( [\r\n 'eventEmitter/EventEmitter',\r\n 'eventie/eventie'\r\n ], function( EventEmitter, eventie ) {\r\n return factory( window, EventEmitter, eventie );\r\n });\r\n } else if ( typeof exports === 'object' ) {\r\n // CommonJS\r\n module.exports = factory(\r\n window,\r\n require('wolfy87-eventemitter'),\r\n require('eventie')\r\n );\r\n } else {\r\n // browser global\r\n window.imagesLoaded = factory(\r\n window,\r\n window.EventEmitter,\r\n window.eventie\r\n );\r\n }\r\n\r\n})( window,\r\n\r\n// -------------------------- factory -------------------------- //\r\n\r\n function factory( window, EventEmitter, eventie ) {\r\n\r\n\r\n\r\n var $ = window.jQuery;\r\n var console = window.console;\r\n var hasConsole = typeof console !== 'undefined';\r\n\r\n// -------------------------- helpers -------------------------- //\r\n\r\n// extend objects\r\n function extend( a, b ) {\r\n for ( var prop in b ) {\r\n a[ prop ] = b[ prop ];\r\n }\r\n return a;\r\n }\r\n\r\n var objToString = Object.prototype.toString;\r\n function isArray( obj ) {\r\n return objToString.call( obj ) === '[object Array]';\r\n }\r\n\r\n// turn element or nodeList into an array\r\n function makeArray( obj ) {\r\n var ary = [];\r\n if ( isArray( obj ) ) {\r\n // use object if already an array\r\n ary = obj;\r\n } else if ( typeof obj.length === 'number' ) {\r\n // convert nodeList to array\r\n for ( var i=0, len = obj.length; i < len; i++ ) {\r\n ary.push( obj[i] );\r\n }\r\n } else {\r\n // array of single index\r\n ary.push( obj );\r\n }\r\n return ary;\r\n }\r\n\r\n // -------------------------- imagesLoaded -------------------------- //\r\n\r\n /**\r\n * @param {Array, Element, NodeList, String} elem\r\n * @param {Object or Function} options - if function, use as callback\r\n * @param {Function} onAlways - callback function\r\n */\r\n function ImagesLoaded( elem, options, onAlways ) {\r\n // coerce ImagesLoaded() without new, to be new ImagesLoaded()\r\n if ( !( this instanceof ImagesLoaded ) ) {\r\n return new ImagesLoaded( elem, options );\r\n }\r\n // use elem as selector string\r\n if ( typeof elem === 'string' ) {\r\n elem = document.querySelectorAll( elem );\r\n }\r\n\r\n this.elements = makeArray( elem );\r\n this.options = extend( {}, this.options );\r\n\r\n if ( typeof options === 'function' ) {\r\n onAlways = options;\r\n } else {\r\n extend( this.options, options );\r\n }\r\n\r\n if ( onAlways ) {\r\n this.on( 'always', onAlways );\r\n }\r\n\r\n this.getImages();\r\n\r\n if ( $ ) {\r\n // add jQuery Deferred object\r\n this.jqDeferred = new $.Deferred();\r\n }\r\n\r\n // HACK check async to allow time to bind listeners\r\n var _this = this;\r\n setTimeout( function() {\r\n _this.check();\r\n });\r\n }\r\n\r\n ImagesLoaded.prototype = new EventEmitter();\r\n\r\n ImagesLoaded.prototype.options = {};\r\n\r\n ImagesLoaded.prototype.getImages = function() {\r\n this.images = [];\r\n\r\n // filter & find items if we have an item selector\r\n for ( var i=0, len = this.elements.length; i < len; i++ ) {\r\n var elem = this.elements[i];\r\n // filter siblings\r\n if ( elem.nodeName === 'IMG' ) {\r\n this.addImage( elem );\r\n }\r\n // find children\r\n // no non-element nodes, #143\r\n var nodeType = elem.nodeType;\r\n if ( !nodeType || !( nodeType === 1 || nodeType === 9 || nodeType === 11 ) ) {\r\n continue;\r\n }\r\n var childElems = elem.querySelectorAll('img');\r\n // concat childElems to filterFound array\r\n for ( var j=0, jLen = childElems.length; j < jLen; j++ ) {\r\n var img = childElems[j];\r\n this.addImage( img );\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * @param {Image} img\r\n */\r\n ImagesLoaded.prototype.addImage = function( img ) {\r\n var loadingImage = new LoadingImage( img );\r\n this.images.push( loadingImage );\r\n };\r\n\r\n ImagesLoaded.prototype.check = function() {\r\n var _this = this;\r\n var checkedCount = 0;\r\n var length = this.images.length;\r\n this.hasAnyBroken = false;\r\n // complete if no images\r\n if ( !length ) {\r\n this.complete();\r\n return;\r\n }\r\n\r\n function onConfirm( image, message ) {\r\n if ( _this.options.debug && hasConsole ) {\r\n console.log( 'confirm', image, message );\r\n }\r\n\r\n _this.progress( image );\r\n checkedCount++;\r\n if ( checkedCount === length ) {\r\n _this.complete();\r\n }\r\n return true; // bind once\r\n }\r\n\r\n for ( var i=0; i < length; i++ ) {\r\n var loadingImage = this.images[i];\r\n loadingImage.on( 'confirm', onConfirm );\r\n loadingImage.check();\r\n }\r\n };\r\n\r\n ImagesLoaded.prototype.progress = function( image ) {\r\n this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;\r\n // HACK - Chrome triggers event before object properties have changed. #83\r\n var _this = this;\r\n setTimeout( function() {\r\n _this.emit( 'progress', _this, image );\r\n if ( _this.jqDeferred && _this.jqDeferred.notify ) {\r\n _this.jqDeferred.notify( _this, image );\r\n }\r\n });\r\n };\r\n\r\n ImagesLoaded.prototype.complete = function() {\r\n var eventName = this.hasAnyBroken ? 'fail' : 'done';\r\n this.isComplete = true;\r\n var _this = this;\r\n // HACK - another setTimeout so that confirm happens after progress\r\n setTimeout( function() {\r\n _this.emit( eventName, _this );\r\n _this.emit( 'always', _this );\r\n if ( _this.jqDeferred ) {\r\n var jqMethod = _this.hasAnyBroken ? 'reject' : 'resolve';\r\n _this.jqDeferred[ jqMethod ]( _this );\r\n }\r\n });\r\n };\r\n\r\n // -------------------------- jquery -------------------------- //\r\n\r\n if ( $ ) {\r\n $.fn.imagesLoaded = function( options, callback ) {\r\n var instance = new ImagesLoaded( this, options, callback );\r\n return instance.jqDeferred.promise( $(this) );\r\n };\r\n }\r\n\r\n\r\n // -------------------------- -------------------------- //\r\n\r\n function LoadingImage( img ) {\r\n this.img = img;\r\n }\r\n\r\n LoadingImage.prototype = new EventEmitter();\r\n\r\n LoadingImage.prototype.check = function() {\r\n // first check cached any previous images that have same src\r\n var resource = cache[ this.img.src ] || new Resource( this.img.src );\r\n if ( resource.isConfirmed ) {\r\n this.confirm( resource.isLoaded, 'cached was confirmed' );\r\n return;\r\n }\r\n\r\n // If complete is true and browser supports natural sizes,\r\n // try to check for image status manually.\r\n if ( this.img.complete && this.img.naturalWidth !== undefined ) {\r\n // report based on naturalWidth\r\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\r\n return;\r\n }\r\n\r\n // If none of the checks above matched, simulate loading on detached element.\r\n var _this = this;\r\n resource.on( 'confirm', function( resrc, message ) {\r\n _this.confirm( resrc.isLoaded, message );\r\n return true;\r\n });\r\n\r\n resource.check();\r\n };\r\n\r\n LoadingImage.prototype.confirm = function( isLoaded, message ) {\r\n this.isLoaded = isLoaded;\r\n this.emit( 'confirm', this, message );\r\n };\r\n\r\n // -------------------------- Resource -------------------------- //\r\n\r\n // Resource checks each src, only once\r\n // separate class from LoadingImage to prevent memory leaks. See #115\r\n\r\n var cache = {};\r\n\r\n function Resource( src ) {\r\n this.src = src;\r\n // add to cache\r\n cache[ src ] = this;\r\n }\r\n\r\n Resource.prototype = new EventEmitter();\r\n\r\n Resource.prototype.check = function() {\r\n // only trigger checking once\r\n if ( this.isChecked ) {\r\n return;\r\n }\r\n // simulate loading on detached element\r\n var proxyImage = new Image();\r\n eventie.bind( proxyImage, 'load', this );\r\n eventie.bind( proxyImage, 'error', this );\r\n proxyImage.src = this.src;\r\n // set flag\r\n this.isChecked = true;\r\n };\r\n\r\n // ----- events ----- //\r\n\r\n // trigger specified handler for event type\r\n Resource.prototype.handleEvent = function( event ) {\r\n var method = 'on' + event.type;\r\n if ( this[ method ] ) {\r\n this[ method ]( event );\r\n }\r\n };\r\n\r\n Resource.prototype.onload = function( event ) {\r\n this.confirm( true, 'onload' );\r\n this.unbindProxyEvents( event );\r\n };\r\n\r\n Resource.prototype.onerror = function( event ) {\r\n this.confirm( false, 'onerror' );\r\n this.unbindProxyEvents( event );\r\n };\r\n\r\n // ----- confirm ----- //\r\n\r\n Resource.prototype.confirm = function( isLoaded, message ) {\r\n this.isConfirmed = true;\r\n this.isLoaded = isLoaded;\r\n this.emit( 'confirm', this, message );\r\n };\r\n\r\n Resource.prototype.unbindProxyEvents = function( event ) {\r\n eventie.unbind( event.target, 'load', this );\r\n eventie.unbind( event.target, 'error', this );\r\n };\r\n\r\n // ----- ----- //\r\n\r\n return ImagesLoaded;\r\n\r\n });\r\n","/*!\r\n * Isotope PACKAGED v2.2.0\r\n *\r\n * Licensed GPLv3 for open source use\r\n * or Isotope Commercial License for commercial use\r\n *\r\n * http://isotope.metafizzy.co\r\n * Copyright 2015 Metafizzy\r\n */\r\n\r\n/**\r\n * Bridget makes jQuery widgets\r\n * v1.1.0\r\n * MIT license\r\n */\r\n\r\n(function(window) {\r\n\r\n\r\n\r\n // -------------------------- utils -------------------------- //\r\n var slice = Array.prototype.slice;\r\n\r\n function noop() {}\r\n\r\n // -------------------------- definition -------------------------- //\r\n\r\n function defineBridget($) {\r\n\r\n // bail if no jQuery\r\n if (!$) {\r\n return;\r\n }\r\n\r\n // -------------------------- addOptionMethod -------------------------- //\r\n /**\r\n * adds option method -> $().plugin('option', {...})\r\n * @param {Function} PluginClass - constructor class\r\n */\r\n\r\n function addOptionMethod(PluginClass) {\r\n // don't overwrite original option method\r\n if (PluginClass.prototype.option) {\r\n return;\r\n }\r\n\r\n // option setter\r\n PluginClass.prototype.option = function(opts) {\r\n // bail out if not an object\r\n if (!$.isPlainObject(opts)) {\r\n return;\r\n }\r\n this.options = $.extend(true, this.options, opts);\r\n };\r\n }\r\n\r\n // -------------------------- plugin bridge -------------------------- //\r\n // helper function for logging errors\r\n // $.error breaks jQuery chaining\r\n var logError = typeof console === 'undefined' ? noop : function(message) {\r\n console.error(message);\r\n };\r\n\r\n /**\r\n * jQuery plugin bridge, access methods like $elem.plugin('method')\r\n * @param {String} namespace - plugin name\r\n * @param {Function} PluginClass - constructor class\r\n */\r\n\r\n function bridge(namespace, PluginClass) {\r\n // add to jQuery fn namespace\r\n $.fn[namespace] = function(options) {\r\n if (typeof options === 'string') {\r\n // call plugin method when first argument is a string\r\n // get arguments for method\r\n var args = slice.call(arguments, 1);\r\n\r\n for (var i = 0, len = this.length; i < len; i++) {\r\n var elem = this[i];\r\n var instance = $.data(elem, namespace);\r\n if (!instance) {\r\n logError(\"cannot call methods on \" + namespace + \" prior to initialization; \" + \"attempted to call '\" + options + \"'\");\r\n continue;\r\n }\r\n if (!$.isFunction(instance[options]) || options.charAt(0) === '_') {\r\n logError(\"no such method '\" + options + \"' for \" + namespace + \" instance\");\r\n continue;\r\n }\r\n\r\n // trigger method with arguments\r\n var returnValue = instance[options].apply(instance, args);\r\n\r\n // break look and return first value if provided\r\n if (returnValue !== undefined) {\r\n return returnValue;\r\n }\r\n }\r\n // return this if no return value\r\n return this;\r\n } else {\r\n return this.each(function() {\r\n var instance = $.data(this, namespace);\r\n if (instance) {\r\n // apply options & init\r\n instance.option(options);\r\n instance._init();\r\n } else {\r\n // initialize new instance\r\n instance = new PluginClass(this, options);\r\n $.data(this, namespace, instance);\r\n }\r\n });\r\n }\r\n };\r\n\r\n }\r\n\r\n // -------------------------- bridget -------------------------- //\r\n /**\r\n * converts a Prototypical class into a proper jQuery plugin\r\n * the class must have a ._init method\r\n * @param {String} namespace - plugin name, used in $().pluginName\r\n * @param {Function} PluginClass - constructor class\r\n */\r\n $.bridget = function(namespace, PluginClass) {\r\n addOptionMethod(PluginClass);\r\n bridge(namespace, PluginClass);\r\n };\r\n\r\n return $.bridget;\r\n\r\n }\r\n\r\n // transport\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('jquery-bridget/jquery.bridget', ['jquery'], defineBridget);\r\n } else if (typeof exports === 'object') {\r\n defineBridget(require('jquery'));\r\n } else {\r\n // get jquery from browser global\r\n defineBridget(window.jQuery);\r\n }\r\n\r\n})(window);\r\n\r\n/*!\r\n * eventie v1.0.6\r\n * event binding helper\r\n * eventie.bind( elem, 'click', myFn )\r\n * eventie.unbind( elem, 'click', myFn )\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, undef: true, unused: true */\r\n/*global define: false, module: false */\r\n\r\n(function(window) {\r\n\r\n\r\n\r\n var docElem = document.documentElement;\r\n\r\n var bind = function() {};\r\n\r\n function getIEEvent(obj) {\r\n var event = window.event;\r\n // add event.target\r\n event.target = event.target || event.srcElement || obj;\r\n return event;\r\n }\r\n\r\n if (docElem.addEventListener) {\r\n bind = function(obj, type, fn) {\r\n obj.addEventListener(type, fn, false);\r\n };\r\n } else if (docElem.attachEvent) {\r\n bind = function(obj, type, fn) {\r\n obj[type + fn] = fn.handleEvent ?\r\n function() {\r\n var event = getIEEvent(obj);\r\n fn.handleEvent.call(fn, event);\r\n } : function() {\r\n var event = getIEEvent(obj);\r\n fn.call(obj, event);\r\n };\r\n obj.attachEvent(\"on\" + type, obj[type + fn]);\r\n };\r\n }\r\n\r\n var unbind = function() {};\r\n\r\n if (docElem.removeEventListener) {\r\n unbind = function(obj, type, fn) {\r\n obj.removeEventListener(type, fn, false);\r\n };\r\n } else if (docElem.detachEvent) {\r\n unbind = function(obj, type, fn) {\r\n obj.detachEvent(\"on\" + type, obj[type + fn]);\r\n try {\r\n delete obj[type + fn];\r\n } catch (err) {\r\n // can't delete window object properties\r\n obj[type + fn] = undefined;\r\n }\r\n };\r\n }\r\n\r\n var eventie = {\r\n bind: bind,\r\n unbind: unbind\r\n };\r\n\r\n // ----- module definition ----- //\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('eventie/eventie', eventie);\r\n } else if (typeof exports === 'object') {\r\n // CommonJS\r\n module.exports = eventie;\r\n } else {\r\n // browser global\r\n window.eventie = eventie;\r\n }\r\n\r\n})(window);\r\n\r\n/*!\r\n * EventEmitter v4.2.11 - git.io/ee\r\n * Unlicense - http://unlicense.org/\r\n * Oliver Caldwell - http://oli.me.uk/\r\n * @preserve\r\n */\r\n\r\n;\r\n(function() {\r\n\r\n\r\n /**\r\n * Class for managing events.\r\n * Can be extended to provide event functionality in other classes.\r\n *\r\n * @class EventEmitter Manages event registering and emitting.\r\n */\r\n\r\n function EventEmitter() {}\r\n\r\n // Shortcuts to improve speed and size\r\n var proto = EventEmitter.prototype;\r\n var exports = this;\r\n var originalGlobalValue = exports.EventEmitter;\r\n\r\n /**\r\n * Finds the index of the listener for the event in its storage array.\r\n *\r\n * @param {Function[]} listeners Array of listeners to search through.\r\n * @param {Function} listener Method to look for.\r\n * @return {Number} Index of the specified listener, -1 if not found\r\n * @api private\r\n */\r\n\r\n function indexOfListener(listeners, listener) {\r\n var i = listeners.length;\r\n while (i--) {\r\n if (listeners[i].listener === listener) {\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n }\r\n\r\n /**\r\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\r\n *\r\n * @param {String} name The name of the target method.\r\n * @return {Function} The aliased method\r\n * @api private\r\n */\r\n\r\n function alias(name) {\r\n return function aliasClosure() {\r\n return this[name].apply(this, arguments);\r\n };\r\n }\r\n\r\n /**\r\n * Returns the listener array for the specified event.\r\n * Will initialise the event object and listener arrays if required.\r\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\r\n * Each property in the object response is an array of listener functions.\r\n *\r\n * @param {String|RegExp} evt Name of the event to return the listeners from.\r\n * @return {Function[]|Object} All listener functions for the event.\r\n */\r\n proto.getListeners = function getListeners(evt) {\r\n var events = this._getEvents();\r\n var response;\r\n var key;\r\n\r\n // Return a concatenated array of all matching events if\r\n // the selector is a regular expression.\r\n if (evt instanceof RegExp) {\r\n response = {};\r\n for (key in events) {\r\n if (events.hasOwnProperty(key) && evt.test(key)) {\r\n response[key] = events[key];\r\n }\r\n }\r\n } else {\r\n response = events[evt] || (events[evt] = []);\r\n }\r\n\r\n return response;\r\n };\r\n\r\n /**\r\n * Takes a list of listener objects and flattens it into a list of listener functions.\r\n *\r\n * @param {Object[]} listeners Raw listener objects.\r\n * @return {Function[]} Just the listener functions.\r\n */\r\n proto.flattenListeners = function flattenListeners(listeners) {\r\n var flatListeners = [];\r\n var i;\r\n\r\n for (i = 0; i < listeners.length; i += 1) {\r\n flatListeners.push(listeners[i].listener);\r\n }\r\n\r\n return flatListeners;\r\n };\r\n\r\n /**\r\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\r\n *\r\n * @param {String|RegExp} evt Name of the event to return the listeners from.\r\n * @return {Object} All listener functions for an event in an object.\r\n */\r\n proto.getListenersAsObject = function getListenersAsObject(evt) {\r\n var listeners = this.getListeners(evt);\r\n var response;\r\n\r\n if (listeners instanceof Array) {\r\n response = {};\r\n response[evt] = listeners;\r\n }\r\n\r\n return response || listeners;\r\n };\r\n\r\n /**\r\n * Adds a listener function to the specified event.\r\n * The listener will not be added if it is a duplicate.\r\n * If the listener returns true then it will be removed after it is called.\r\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to attach the listener to.\r\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addListener = function addListener(evt, listener) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var listenerIsWrapped = typeof listener === 'object';\r\n var key;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\r\n listeners[key].push(listenerIsWrapped ? listener : {\r\n listener: listener,\r\n once: false\r\n });\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of addListener\r\n */\r\n proto.on = alias('addListener');\r\n\r\n /**\r\n * Semi-alias of addListener. It will add a listener that will be\r\n * automatically removed after its first execution.\r\n *\r\n * @param {String|RegExp} evt Name of the event to attach the listener to.\r\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addOnceListener = function addOnceListener(evt, listener) {\r\n return this.addListener(evt, {\r\n listener: listener,\r\n once: true\r\n });\r\n };\r\n\r\n /**\r\n * Alias of addOnceListener.\r\n */\r\n proto.once = alias('addOnceListener');\r\n\r\n /**\r\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\r\n * You need to tell it what event names should be matched by a regex.\r\n *\r\n * @param {String} evt Name of the event to create.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.defineEvent = function defineEvent(evt) {\r\n this.getListeners(evt);\r\n return this;\r\n };\r\n\r\n /**\r\n * Uses defineEvent to define multiple events.\r\n *\r\n * @param {String[]} evts An array of event names to define.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.defineEvents = function defineEvents(evts) {\r\n for (var i = 0; i < evts.length; i += 1) {\r\n this.defineEvent(evts[i]);\r\n }\r\n return this;\r\n };\r\n\r\n /**\r\n * Removes a listener function from the specified event.\r\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to remove the listener from.\r\n * @param {Function} listener Method to remove from the event.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeListener = function removeListener(evt, listener) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var index;\r\n var key;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key)) {\r\n index = indexOfListener(listeners[key], listener);\r\n\r\n if (index !== -1) {\r\n listeners[key].splice(index, 1);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of removeListener\r\n */\r\n proto.off = alias('removeListener');\r\n\r\n /**\r\n * Adds listeners in bulk using the manipulateListeners method.\r\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\r\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\r\n * Yeah, this function does quite a bit. That's probably a bad thing.\r\n *\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to add.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.addListeners = function addListeners(evt, listeners) {\r\n // Pass through to manipulateListeners\r\n return this.manipulateListeners(false, evt, listeners);\r\n };\r\n\r\n /**\r\n * Removes listeners in bulk using the manipulateListeners method.\r\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\r\n * You can also pass it an event name and an array of listeners to be removed.\r\n * You can also pass it a regular expression to remove the listeners from all events that match it.\r\n *\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeListeners = function removeListeners(evt, listeners) {\r\n // Pass through to manipulateListeners\r\n return this.manipulateListeners(true, evt, listeners);\r\n };\r\n\r\n /**\r\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\r\n * The first argument will determine if the listeners are removed (true) or added (false).\r\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\r\n * You can also pass it an event name and an array of listeners to be added/removed.\r\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\r\n *\r\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\r\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\r\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\r\n var i;\r\n var value;\r\n var single = remove ? this.removeListener : this.addListener;\r\n var multiple = remove ? this.removeListeners : this.addListeners;\r\n\r\n // If evt is an object then pass each of its properties to this method\r\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\r\n for (i in evt) {\r\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\r\n // Pass the single listener straight through to the singular method\r\n if (typeof value === 'function') {\r\n single.call(this, i, value);\r\n } else {\r\n // Otherwise pass back to the multiple function\r\n multiple.call(this, i, value);\r\n }\r\n }\r\n }\r\n } else {\r\n // So evt must be a string\r\n // And listeners must be an array of listeners\r\n // Loop over it and pass each one to the multiple method\r\n i = listeners.length;\r\n while (i--) {\r\n single.call(this, evt, listeners[i]);\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Removes all listeners from a specified event.\r\n * If you do not specify an event then all listeners will be removed.\r\n * That means every event will be emptied.\r\n * You can also pass a regex to remove all events that match it.\r\n *\r\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.removeEvent = function removeEvent(evt) {\r\n var type = typeof evt;\r\n var events = this._getEvents();\r\n var key;\r\n\r\n // Remove different things depending on the state of evt\r\n if (type === 'string') {\r\n // Remove all listeners for the specified event\r\n delete events[evt];\r\n } else if (evt instanceof RegExp) {\r\n // Remove all events matching the regex.\r\n for (key in events) {\r\n if (events.hasOwnProperty(key) && evt.test(key)) {\r\n delete events[key];\r\n }\r\n }\r\n } else {\r\n // Remove all listeners in all events\r\n delete this._events;\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of removeEvent.\r\n *\r\n * Added to mirror the node API.\r\n */\r\n proto.removeAllListeners = alias('removeEvent');\r\n\r\n /**\r\n * Emits an event of your choice.\r\n * When emitted, every listener attached to that event will be executed.\r\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\r\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\r\n * So they will not arrive within the array on the other side, they will be separate.\r\n * You can also pass a regular expression to emit to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\r\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.emitEvent = function emitEvent(evt, args) {\r\n var listeners = this.getListenersAsObject(evt);\r\n var listener;\r\n var i;\r\n var key;\r\n var response;\r\n\r\n for (key in listeners) {\r\n if (listeners.hasOwnProperty(key)) {\r\n i = listeners[key].length;\r\n\r\n while (i--) {\r\n // If the listener returns true then it shall be removed from the event\r\n // The function is executed either with a basic call or an apply if there is an args array\r\n listener = listeners[key][i];\r\n\r\n if (listener.once === true) {\r\n this.removeListener(evt, listener.listener);\r\n }\r\n\r\n response = listener.listener.apply(this, args || []);\r\n\r\n if (response === this._getOnceReturnValue()) {\r\n this.removeListener(evt, listener.listener);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n };\r\n\r\n /**\r\n * Alias of emitEvent\r\n */\r\n proto.trigger = alias('emitEvent');\r\n\r\n /**\r\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\r\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\r\n *\r\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\r\n * @param {...*} Optional additional arguments to be passed to each listener.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.emit = function emit(evt) {\r\n var args = Array.prototype.slice.call(arguments, 1);\r\n return this.emitEvent(evt, args);\r\n };\r\n\r\n /**\r\n * Sets the current value to check against when executing listeners. If a\r\n * listeners return value matches the one set here then it will be removed\r\n * after execution. This value defaults to true.\r\n *\r\n * @param {*} value The new value to check for when executing listeners.\r\n * @return {Object} Current instance of EventEmitter for chaining.\r\n */\r\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\r\n this._onceReturnValue = value;\r\n return this;\r\n };\r\n\r\n /**\r\n * Fetches the current value to check against when executing listeners. If\r\n * the listeners return value matches this one then it should be removed\r\n * automatically. It will return true by default.\r\n *\r\n * @return {*|Boolean} The current value to check for or the default, true.\r\n * @api private\r\n */\r\n proto._getOnceReturnValue = function _getOnceReturnValue() {\r\n if (this.hasOwnProperty('_onceReturnValue')) {\r\n return this._onceReturnValue;\r\n } else {\r\n return true;\r\n }\r\n };\r\n\r\n /**\r\n * Fetches the events object and creates one if required.\r\n *\r\n * @return {Object} The events storage object.\r\n * @api private\r\n */\r\n proto._getEvents = function _getEvents() {\r\n return this._events || (this._events = {});\r\n };\r\n\r\n /**\r\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\r\n *\r\n * @return {Function} Non conflicting EventEmitter class.\r\n */\r\n EventEmitter.noConflict = function noConflict() {\r\n exports.EventEmitter = originalGlobalValue;\r\n return EventEmitter;\r\n };\r\n\r\n // Expose the class either via AMD, CommonJS or the global object\r\n if (typeof define === 'function' && define.amd) {\r\n define('eventEmitter/EventEmitter', [], function() {\r\n return EventEmitter;\r\n });\r\n } else if (typeof module === 'object' && module.exports) {\r\n module.exports = EventEmitter;\r\n } else {\r\n exports.EventEmitter = EventEmitter;\r\n }\r\n}.call(this));\r\n\r\n/*!\r\n * getStyleProperty v1.0.4\r\n * original by kangax\r\n * http://perfectionkills.com/feature-testing-css-properties/\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, strict: true, undef: true */\r\n/*global define: false, exports: false, module: false */\r\n\r\n(function(window) {\r\n\r\n\r\n\r\n var prefixes = 'Webkit Moz ms Ms O'.split(' ');\r\n var docElemStyle = document.documentElement.style;\r\n\r\n function getStyleProperty(propName) {\r\n if (!propName) {\r\n return;\r\n }\r\n\r\n // test standard property first\r\n if (typeof docElemStyle[propName] === 'string') {\r\n return propName;\r\n }\r\n\r\n // capitalize\r\n propName = propName.charAt(0).toUpperCase() + propName.slice(1);\r\n\r\n // test vendor specific properties\r\n var prefixed;\r\n for (var i = 0, len = prefixes.length; i < len; i++) {\r\n prefixed = prefixes[i] + propName;\r\n if (typeof docElemStyle[prefixed] === 'string') {\r\n return prefixed;\r\n }\r\n }\r\n }\r\n\r\n // transport\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('get-style-property/get-style-property', [], function() {\r\n return getStyleProperty;\r\n });\r\n } else if (typeof exports === 'object') {\r\n // CommonJS for Component\r\n module.exports = getStyleProperty;\r\n } else {\r\n // browser global\r\n window.getStyleProperty = getStyleProperty;\r\n }\r\n\r\n})(window);\r\n\r\n/*!\r\n * getSize v1.2.2\r\n * measure size of elements\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, strict: true, undef: true, unused: true */\r\n/*global define: false, exports: false, require: false, module: false, console: false */\r\n\r\n(function(window, undefined) {\r\n\r\n\r\n\r\n // -------------------------- helpers -------------------------- //\r\n // get a number from a string, not a percentage\r\n\r\n\r\n function getStyleSize(value) {\r\n var num = parseFloat(value);\r\n // not a percent like '100%', and a number\r\n var isValid = value.indexOf('%') === -1 && !isNaN(num);\r\n return isValid && num;\r\n }\r\n\r\n function noop() {}\r\n\r\n var logError = typeof console === 'undefined' ? noop : function(message) {\r\n console.error(message);\r\n };\r\n\r\n // -------------------------- measurements -------------------------- //\r\n var measurements = ['paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth', 'borderBottomWidth'];\r\n\r\n function getZeroSize() {\r\n var size = {\r\n width: 0,\r\n height: 0,\r\n innerWidth: 0,\r\n innerHeight: 0,\r\n outerWidth: 0,\r\n outerHeight: 0\r\n };\r\n for (var i = 0, len = measurements.length; i < len; i++) {\r\n var measurement = measurements[i];\r\n size[measurement] = 0;\r\n }\r\n return size;\r\n }\r\n\r\n\r\n\r\n function defineGetSize(getStyleProperty) {\r\n\r\n // -------------------------- setup -------------------------- //\r\n var isSetup = false;\r\n\r\n var getStyle, boxSizingProp, isBoxSizeOuter;\r\n\r\n /**\r\n * setup vars and functions\r\n * do it on initial getSize(), rather than on script load\r\n * For Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=548397\r\n */\r\n\r\n function setup() {\r\n // setup once\r\n if (isSetup) {\r\n return;\r\n }\r\n isSetup = true;\r\n\r\n var getComputedStyle = window.getComputedStyle;\r\n getStyle = (function() {\r\n var getStyleFn = getComputedStyle ?\r\n function(elem) {\r\n return getComputedStyle(elem, null);\r\n } : function(elem) {\r\n return elem.currentStyle;\r\n };\r\n\r\n return function getStyle(elem) {\r\n var style = getStyleFn(elem);\r\n if (!style) {\r\n logError('Style returned ' + style + '. Are you running this code in a hidden iframe on Firefox? ' + 'See http://bit.ly/getsizebug1');\r\n }\r\n return style;\r\n };\r\n })();\r\n\r\n // -------------------------- box sizing -------------------------- //\r\n boxSizingProp = getStyleProperty('boxSizing');\r\n\r\n /**\r\n * WebKit measures the outer-width on style.width on border-box elems\r\n * IE & Firefox measures the inner-width\r\n */\r\n if (boxSizingProp) {\r\n var div = document.createElement('div');\r\n div.style.width = '200px';\r\n div.style.padding = '1px 2px 3px 4px';\r\n div.style.borderStyle = 'solid';\r\n div.style.borderWidth = '1px 2px 3px 4px';\r\n div.style[boxSizingProp] = 'border-box';\r\n\r\n var body = document.body || document.documentElement;\r\n body.appendChild(div);\r\n var style = getStyle(div);\r\n\r\n isBoxSizeOuter = getStyleSize(style.width) === 200;\r\n body.removeChild(div);\r\n }\r\n\r\n }\r\n\r\n // -------------------------- getSize -------------------------- //\r\n\r\n function getSize(elem) {\r\n setup();\r\n\r\n // use querySeletor if elem is string\r\n if (typeof elem === 'string') {\r\n elem = document.querySelector(elem);\r\n }\r\n\r\n // do not proceed on non-objects\r\n if (!elem || typeof elem !== 'object' || !elem.nodeType) {\r\n return;\r\n }\r\n\r\n var style = getStyle(elem);\r\n\r\n // if hidden, everything is 0\r\n if (style.display === 'none') {\r\n return getZeroSize();\r\n }\r\n\r\n var size = {};\r\n size.width = elem.offsetWidth;\r\n size.height = elem.offsetHeight;\r\n\r\n var isBorderBox = size.isBorderBox = !! (boxSizingProp && style[boxSizingProp] && style[boxSizingProp] === 'border-box');\r\n\r\n // get all measurements\r\n for (var i = 0, len = measurements.length; i < len; i++) {\r\n var measurement = measurements[i];\r\n var value = style[measurement];\r\n value = mungeNonPixel(elem, value);\r\n var num = parseFloat(value);\r\n // any 'auto', 'medium' value will be 0\r\n size[measurement] = !isNaN(num) ? num : 0;\r\n }\r\n\r\n var paddingWidth = size.paddingLeft + size.paddingRight;\r\n var paddingHeight = size.paddingTop + size.paddingBottom;\r\n var marginWidth = size.marginLeft + size.marginRight;\r\n var marginHeight = size.marginTop + size.marginBottom;\r\n var borderWidth = size.borderLeftWidth + size.borderRightWidth;\r\n var borderHeight = size.borderTopWidth + size.borderBottomWidth;\r\n\r\n var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;\r\n\r\n // overwrite width and height if we can get it from style\r\n var styleWidth = getStyleSize(style.width);\r\n if (styleWidth !== false) {\r\n size.width = styleWidth +\r\n // add padding and border unless it's already including it\r\n (isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth);\r\n }\r\n\r\n var styleHeight = getStyleSize(style.height);\r\n if (styleHeight !== false) {\r\n size.height = styleHeight +\r\n // add padding and border unless it's already including it\r\n (isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight);\r\n }\r\n\r\n size.innerWidth = size.width - (paddingWidth + borderWidth);\r\n size.innerHeight = size.height - (paddingHeight + borderHeight);\r\n\r\n size.outerWidth = size.width + marginWidth;\r\n size.outerHeight = size.height + marginHeight;\r\n\r\n return size;\r\n }\r\n\r\n // IE8 returns percent values, not pixels\r\n // taken from jQuery's curCSS\r\n\r\n\r\n function mungeNonPixel(elem, value) {\r\n // IE8 and has percent value\r\n if (window.getComputedStyle || value.indexOf('%') === -1) {\r\n return value;\r\n }\r\n var style = elem.style;\r\n // Remember the original values\r\n var left = style.left;\r\n var rs = elem.runtimeStyle;\r\n var rsLeft = rs && rs.left;\r\n\r\n // Put in the new values to get a computed value out\r\n if (rsLeft) {\r\n rs.left = elem.currentStyle.left;\r\n }\r\n style.left = value;\r\n value = style.pixelLeft;\r\n\r\n // Revert the changed values\r\n style.left = left;\r\n if (rsLeft) {\r\n rs.left = rsLeft;\r\n }\r\n\r\n return value;\r\n }\r\n\r\n return getSize;\r\n\r\n }\r\n\r\n // transport\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD for RequireJS\r\n define('get-size/get-size', ['get-style-property/get-style-property'], defineGetSize);\r\n } else if (typeof exports === 'object') {\r\n // CommonJS for Component\r\n module.exports = defineGetSize(require('desandro-get-style-property'));\r\n } else {\r\n // browser global\r\n window.getSize = defineGetSize(window.getStyleProperty);\r\n }\r\n\r\n})(window);\r\n\r\n/*!\r\n * docReady v1.0.4\r\n * Cross browser DOMContentLoaded event emitter\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, strict: true, undef: true, unused: true*/\r\n/*global define: false, require: false, module: false */\r\n\r\n(function(window) {\r\n\r\n\r\n\r\n var document = window.document;\r\n // collection of functions to be triggered on ready\r\n var queue = [];\r\n\r\n function docReady(fn) {\r\n // throw out non-functions\r\n if (typeof fn !== 'function') {\r\n return;\r\n }\r\n\r\n if (docReady.isReady) {\r\n // ready now, hit it\r\n fn();\r\n } else {\r\n // queue function when ready\r\n queue.push(fn);\r\n }\r\n }\r\n\r\n docReady.isReady = false;\r\n\r\n // triggered on various doc ready events\r\n\r\n\r\n function onReady(event) {\r\n // bail if already triggered or IE8 document is not ready just yet\r\n var isIE8NotReady = event.type === 'readystatechange' && document.readyState !== 'complete';\r\n if (docReady.isReady || isIE8NotReady) {\r\n return;\r\n }\r\n\r\n trigger();\r\n }\r\n\r\n function trigger() {\r\n docReady.isReady = true;\r\n // process queue\r\n for (var i = 0, len = queue.length; i < len; i++) {\r\n var fn = queue[i];\r\n fn();\r\n }\r\n }\r\n\r\n function defineDocReady(eventie) {\r\n // trigger ready if page is ready\r\n if (document.readyState === 'complete') {\r\n trigger();\r\n } else {\r\n // listen for events\r\n eventie.bind(document, 'DOMContentLoaded', onReady);\r\n eventie.bind(document, 'readystatechange', onReady);\r\n eventie.bind(window, 'load', onReady);\r\n }\r\n\r\n return docReady;\r\n }\r\n\r\n // transport\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('doc-ready/doc-ready', ['eventie/eventie'], defineDocReady);\r\n } else if (typeof exports === 'object') {\r\n module.exports = defineDocReady(require('eventie'));\r\n } else {\r\n // browser global\r\n window.docReady = defineDocReady(window.eventie);\r\n }\r\n\r\n})(window);\r\n\r\n/**\r\n * matchesSelector v1.0.3\r\n * matchesSelector( element, '.selector' )\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, strict: true, undef: true, unused: true */\r\n/*global define: false, module: false */\r\n\r\n(function(ElemProto) {\r\n\r\n\r\n\r\n var matchesMethod = (function() {\r\n // check for the standard method name first\r\n if (ElemProto.matches) {\r\n return 'matches';\r\n }\r\n // check un-prefixed\r\n if (ElemProto.matchesSelector) {\r\n return 'matchesSelector';\r\n }\r\n // check vendor prefixes\r\n var prefixes = ['webkit', 'moz', 'ms', 'o'];\r\n\r\n for (var i = 0, len = prefixes.length; i < len; i++) {\r\n var prefix = prefixes[i];\r\n var method = prefix + 'MatchesSelector';\r\n if (ElemProto[method]) {\r\n return method;\r\n }\r\n }\r\n })();\r\n\r\n // ----- match ----- //\r\n\r\n function match(elem, selector) {\r\n return elem[matchesMethod](selector);\r\n }\r\n\r\n // ----- appendToFragment ----- //\r\n\r\n function checkParent(elem) {\r\n // not needed if already has parent\r\n if (elem.parentNode) {\r\n return;\r\n }\r\n var fragment = document.createDocumentFragment();\r\n fragment.appendChild(elem);\r\n }\r\n\r\n // ----- query ----- //\r\n // fall back to using QSA\r\n // thx @jonathantneal https://gist.github.com/3062955\r\n\r\n\r\n function query(elem, selector) {\r\n // append to fragment if no parent\r\n checkParent(elem);\r\n\r\n // match elem with all selected elems of parent\r\n var elems = elem.parentNode.querySelectorAll(selector);\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n // return true if match\r\n if (elems[i] === elem) {\r\n return true;\r\n }\r\n }\r\n // otherwise return false\r\n return false;\r\n }\r\n\r\n // ----- matchChild ----- //\r\n\r\n function matchChild(elem, selector) {\r\n checkParent(elem);\r\n return match(elem, selector);\r\n }\r\n\r\n // ----- matchesSelector ----- //\r\n var matchesSelector;\r\n\r\n if (matchesMethod) {\r\n // IE9 supports matchesSelector, but doesn't work on orphaned elems\r\n // check for that\r\n var div = document.createElement('div');\r\n var supportsOrphans = match(div, 'div');\r\n matchesSelector = supportsOrphans ? match : matchChild;\r\n } else {\r\n matchesSelector = query;\r\n }\r\n\r\n // transport\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('matches-selector/matches-selector', [], function() {\r\n return matchesSelector;\r\n });\r\n } else if (typeof exports === 'object') {\r\n module.exports = matchesSelector;\r\n } else {\r\n // browser global\r\n window.matchesSelector = matchesSelector;\r\n }\r\n\r\n})(Element.prototype);\r\n\r\n/**\r\n * Fizzy UI utils v1.0.1\r\n * MIT license\r\n */\r\n\r\n/*jshint browser: true, undef: true, unused: true, strict: true */\r\n\r\n(function(window, factory) { /*global define: false, module: false, require: false */\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('fizzy-ui-utils/utils', ['doc-ready/doc-ready', 'matches-selector/matches-selector'], function(docReady, matchesSelector) {\r\n return factory(window, docReady, matchesSelector);\r\n });\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n window, require('doc-ready'), require('desandro-matches-selector'));\r\n } else {\r\n // browser global\r\n window.fizzyUIUtils = factory(\r\n window, window.docReady, window.matchesSelector);\r\n }\r\n\r\n}(window, function factory(window, docReady, matchesSelector) {\r\n\r\n\r\n\r\n var utils = {};\r\n\r\n // ----- extend ----- //\r\n // extends objects\r\n utils.extend = function(a, b) {\r\n for (var prop in b) {\r\n a[prop] = b[prop];\r\n }\r\n return a;\r\n };\r\n\r\n // ----- modulo ----- //\r\n utils.modulo = function(num, div) {\r\n return ((num % div) + div) % div;\r\n };\r\n\r\n // ----- isArray ----- //\r\n var objToString = Object.prototype.toString;\r\n utils.isArray = function(obj) {\r\n return objToString.call(obj) == '[object Array]';\r\n };\r\n\r\n // ----- makeArray ----- //\r\n // turn element or nodeList into an array\r\n utils.makeArray = function(obj) {\r\n var ary = [];\r\n if (utils.isArray(obj)) {\r\n // use object if already an array\r\n ary = obj;\r\n } else if (obj && typeof obj.length == 'number') {\r\n // convert nodeList to array\r\n for (var i = 0, len = obj.length; i < len; i++) {\r\n ary.push(obj[i]);\r\n }\r\n } else {\r\n // array of single index\r\n ary.push(obj);\r\n }\r\n return ary;\r\n };\r\n\r\n // ----- indexOf ----- //\r\n // index of helper cause IE8\r\n utils.indexOf = Array.prototype.indexOf ?\r\n function(ary, obj) {\r\n return ary.indexOf(obj);\r\n } : function(ary, obj) {\r\n for (var i = 0, len = ary.length; i < len; i++) {\r\n if (ary[i] === obj) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n };\r\n\r\n // ----- removeFrom ----- //\r\n utils.removeFrom = function(ary, obj) {\r\n var index = utils.indexOf(ary, obj);\r\n if (index != -1) {\r\n ary.splice(index, 1);\r\n }\r\n };\r\n\r\n // ----- isElement ----- //\r\n // http://stackoverflow.com/a/384380/182183\r\n utils.isElement = (typeof HTMLElement == 'function' || typeof HTMLElement == 'object') ?\r\n function isElementDOM2(obj) {\r\n return obj instanceof HTMLElement;\r\n } : function isElementQuirky(obj) {\r\n return obj && typeof obj == 'object' && obj.nodeType == 1 && typeof obj.nodeName == 'string';\r\n };\r\n\r\n // ----- setText ----- //\r\n utils.setText = (function() {\r\n var setTextProperty;\r\n\r\n function setText(elem, text) {\r\n // only check setTextProperty once\r\n setTextProperty = setTextProperty || (document.documentElement.textContent !== undefined ? 'textContent' : 'innerText');\r\n elem[setTextProperty] = text;\r\n }\r\n return setText;\r\n })();\r\n\r\n // ----- getParent ----- //\r\n utils.getParent = function(elem, selector) {\r\n while (elem != document.body) {\r\n elem = elem.parentNode;\r\n if (matchesSelector(elem, selector)) {\r\n return elem;\r\n }\r\n }\r\n };\r\n\r\n // ----- getQueryElement ----- //\r\n // use element as selector string\r\n utils.getQueryElement = function(elem) {\r\n if (typeof elem == 'string') {\r\n return document.querySelector(elem);\r\n }\r\n return elem;\r\n };\r\n\r\n // ----- handleEvent ----- //\r\n // enable .ontype to trigger from .addEventListener( elem, 'type' )\r\n utils.handleEvent = function(event) {\r\n var method = 'on' + event.type;\r\n if (this[method]) {\r\n this[method](event);\r\n }\r\n };\r\n\r\n // ----- filterFindElements ----- //\r\n utils.filterFindElements = function(elems, selector) {\r\n // make array of elems\r\n elems = utils.makeArray(elems);\r\n var ffElems = [];\r\n\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n var elem = elems[i];\r\n // check that elem is an actual element\r\n if (!utils.isElement(elem)) {\r\n continue;\r\n }\r\n // filter & find items if we have a selector\r\n if (selector) {\r\n // filter siblings\r\n if (matchesSelector(elem, selector)) {\r\n ffElems.push(elem);\r\n }\r\n // find children\r\n var childElems = elem.querySelectorAll(selector);\r\n // concat childElems to filterFound array\r\n for (var j = 0, jLen = childElems.length; j < jLen; j++) {\r\n ffElems.push(childElems[j]);\r\n }\r\n } else {\r\n ffElems.push(elem);\r\n }\r\n }\r\n\r\n return ffElems;\r\n };\r\n\r\n // ----- debounceMethod ----- //\r\n utils.debounceMethod = function(_class, methodName, threshold) {\r\n // original method\r\n var method = _class.prototype[methodName];\r\n var timeoutName = methodName + 'Timeout';\r\n\r\n _class.prototype[methodName] = function() {\r\n var timeout = this[timeoutName];\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n }\r\n var args = arguments;\r\n\r\n var _this = this;\r\n this[timeoutName] = setTimeout(function() {\r\n method.apply(_this, args);\r\n delete _this[timeoutName];\r\n }, threshold || 100);\r\n };\r\n };\r\n\r\n // ----- htmlInit ----- //\r\n // http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/\r\n utils.toDashed = function(str) {\r\n return str.replace(/(.)([A-Z])/g, function(match, $1, $2) {\r\n return $1 + '-' + $2;\r\n }).toLowerCase();\r\n };\r\n\r\n var console = window.console;\r\n /**\r\n * allow user to initialize classes via .js-namespace class\r\n * htmlInit( Widget, 'widgetName' )\r\n * options are parsed from data-namespace-option attribute\r\n */\r\n utils.htmlInit = function(WidgetClass, namespace) {\r\n docReady(function() {\r\n var dashedNamespace = utils.toDashed(namespace);\r\n var elems = document.querySelectorAll('.js-' + dashedNamespace);\r\n var dataAttr = 'data-' + dashedNamespace + '-options';\r\n\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n var elem = elems[i];\r\n var attr = elem.getAttribute(dataAttr);\r\n var options;\r\n try {\r\n options = attr && JSON.parse(attr);\r\n } catch (error) {\r\n // log error, do not initialize\r\n if (console) {\r\n console.error('Error parsing ' + dataAttr + ' on ' + elem.nodeName.toLowerCase() + (elem.id ? '#' + elem.id : '') + ': ' + error);\r\n }\r\n continue;\r\n }\r\n // initialize\r\n var instance = new WidgetClass(elem, options);\r\n // make available via $().data('layoutname')\r\n var jQuery = window.jQuery;\r\n if (jQuery) {\r\n jQuery.data(elem, namespace, instance);\r\n }\r\n }\r\n });\r\n };\r\n\r\n // ----- ----- //\r\n return utils;\r\n\r\n}));\r\n\r\n/**\r\n * Outlayer Item\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('outlayer/item', ['eventEmitter/EventEmitter', 'get-size/get-size', 'get-style-property/get-style-property', 'fizzy-ui-utils/utils'], function(EventEmitter, getSize, getStyleProperty, utils) {\r\n return factory(window, EventEmitter, getSize, getStyleProperty, utils);\r\n });\r\n } else if (typeof exports === 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n window, require('wolfy87-eventemitter'), require('get-size'), require('desandro-get-style-property'), require('fizzy-ui-utils'));\r\n } else {\r\n // browser global\r\n window.Outlayer = {};\r\n window.Outlayer.Item = factory(\r\n window, window.EventEmitter, window.getSize, window.getStyleProperty, window.fizzyUIUtils);\r\n }\r\n\r\n}(window, function factory(window, EventEmitter, getSize, getStyleProperty, utils) {\r\n\r\n\r\n // ----- helpers ----- //\r\n var getComputedStyle = window.getComputedStyle;\r\n var getStyle = getComputedStyle ?\r\n function(elem) {\r\n return getComputedStyle(elem, null);\r\n } : function(elem) {\r\n return elem.currentStyle;\r\n };\r\n\r\n\r\n function isEmptyObj(obj) {\r\n for (var prop in obj) {\r\n return false;\r\n }\r\n prop = null;\r\n return true;\r\n }\r\n\r\n // -------------------------- CSS3 support -------------------------- //\r\n var transitionProperty = getStyleProperty('transition');\r\n var transformProperty = getStyleProperty('transform');\r\n var supportsCSS3 = transitionProperty && transformProperty;\r\n var is3d = !! getStyleProperty('perspective');\r\n\r\n var transitionEndEvent = {\r\n WebkitTransition: 'webkitTransitionEnd',\r\n MozTransition: 'transitionend',\r\n OTransition: 'otransitionend',\r\n transition: 'transitionend'\r\n }[transitionProperty];\r\n\r\n // properties that could have vendor prefix\r\n var prefixableProperties = ['transform', 'transition', 'transitionDuration', 'transitionProperty'];\r\n\r\n // cache all vendor properties\r\n var vendorProperties = (function() {\r\n var cache = {};\r\n for (var i = 0, len = prefixableProperties.length; i < len; i++) {\r\n var prop = prefixableProperties[i];\r\n var supportedProp = getStyleProperty(prop);\r\n if (supportedProp && supportedProp !== prop) {\r\n cache[prop] = supportedProp;\r\n }\r\n }\r\n return cache;\r\n })();\r\n\r\n // -------------------------- Item -------------------------- //\r\n\r\n function Item(element, layout) {\r\n if (!element) {\r\n return;\r\n }\r\n\r\n this.element = element;\r\n // parent layout class, i.e. Masonry, Isotope, or Packery\r\n this.layout = layout;\r\n this.position = {\r\n x: 0,\r\n y: 0\r\n };\r\n\r\n this._create();\r\n }\r\n\r\n // inherit EventEmitter\r\n utils.extend(Item.prototype, EventEmitter.prototype);\r\n\r\n Item.prototype._create = function() {\r\n // transition objects\r\n this._transn = {\r\n ingProperties: {},\r\n clean: {},\r\n onEnd: {}\r\n };\r\n\r\n this.css({\r\n position: 'absolute'\r\n });\r\n };\r\n\r\n // trigger specified handler for event type\r\n Item.prototype.handleEvent = function(event) {\r\n var method = 'on' + event.type;\r\n if (this[method]) {\r\n this[method](event);\r\n }\r\n };\r\n\r\n Item.prototype.getSize = function() {\r\n this.size = getSize(this.element);\r\n };\r\n\r\n /**\r\n * apply CSS styles to element\r\n * @param {Object} style\r\n */\r\n Item.prototype.css = function(style) {\r\n var elemStyle = this.element.style;\r\n\r\n for (var prop in style) {\r\n // use vendor property if available\r\n var supportedProp = vendorProperties[prop] || prop;\r\n elemStyle[supportedProp] = style[prop];\r\n }\r\n };\r\n\r\n // measure position, and sets it\r\n Item.prototype.getPosition = function() {\r\n var style = getStyle(this.element);\r\n var layoutOptions = this.layout.options;\r\n var isOriginLeft = layoutOptions.isOriginLeft;\r\n var isOriginTop = layoutOptions.isOriginTop;\r\n var x = parseInt(style[isOriginLeft ? 'left' : 'right'], 10);\r\n var y = parseInt(style[isOriginTop ? 'top' : 'bottom'], 10);\r\n\r\n // clean up 'auto' or other non-integer values\r\n x = isNaN(x) ? 0 : x;\r\n y = isNaN(y) ? 0 : y;\r\n // remove padding from measurement\r\n var layoutSize = this.layout.size;\r\n x -= isOriginLeft ? layoutSize.paddingLeft : layoutSize.paddingRight;\r\n y -= isOriginTop ? layoutSize.paddingTop : layoutSize.paddingBottom;\r\n\r\n this.position.x = x;\r\n this.position.y = y;\r\n };\r\n\r\n // set settled position, apply padding\r\n Item.prototype.layoutPosition = function() {\r\n var layoutSize = this.layout.size;\r\n var layoutOptions = this.layout.options;\r\n var style = {};\r\n\r\n // x\r\n var xPadding = layoutOptions.isOriginLeft ? 'paddingLeft' : 'paddingRight';\r\n var xProperty = layoutOptions.isOriginLeft ? 'left' : 'right';\r\n var xResetProperty = layoutOptions.isOriginLeft ? 'right' : 'left';\r\n\r\n var x = this.position.x + layoutSize[xPadding];\r\n // set in percentage\r\n x = layoutOptions.percentPosition && !layoutOptions.isHorizontal ? ((x / layoutSize.width) * 100) + '%' : x + 'px';\r\n style[xProperty] = x;\r\n // reset other property\r\n style[xResetProperty] = '';\r\n\r\n // y\r\n var yPadding = layoutOptions.isOriginTop ? 'paddingTop' : 'paddingBottom';\r\n var yProperty = layoutOptions.isOriginTop ? 'top' : 'bottom';\r\n var yResetProperty = layoutOptions.isOriginTop ? 'bottom' : 'top';\r\n\r\n var y = this.position.y + layoutSize[yPadding];\r\n // set in percentage\r\n y = layoutOptions.percentPosition && layoutOptions.isHorizontal ? ((y / layoutSize.height) * 100) + '%' : y + 'px';\r\n style[yProperty] = y;\r\n // reset other property\r\n style[yResetProperty] = '';\r\n\r\n this.css(style);\r\n this.emitEvent('layout', [this]);\r\n };\r\n\r\n\r\n // transform translate function\r\n var translate = is3d ?\r\n function(x, y) {\r\n return 'translate3d(' + x + 'px, ' + y + 'px, 0)';\r\n } : function(x, y) {\r\n return 'translate(' + x + 'px, ' + y + 'px)';\r\n };\r\n\r\n\r\n Item.prototype._transitionTo = function(x, y) {\r\n this.getPosition();\r\n // get current x & y from top/left\r\n var curX = this.position.x;\r\n var curY = this.position.y;\r\n\r\n var compareX = parseInt(x, 10);\r\n var compareY = parseInt(y, 10);\r\n var didNotMove = compareX === this.position.x && compareY === this.position.y;\r\n\r\n // save end position\r\n this.setPosition(x, y);\r\n\r\n // if did not move and not transitioning, just go to layout\r\n if (didNotMove && !this.isTransitioning) {\r\n this.layoutPosition();\r\n return;\r\n }\r\n\r\n var transX = x - curX;\r\n var transY = y - curY;\r\n var transitionStyle = {};\r\n // flip cooridinates if origin on right or bottom\r\n var layoutOptions = this.layout.options;\r\n transX = layoutOptions.isOriginLeft ? transX : -transX;\r\n transY = layoutOptions.isOriginTop ? transY : -transY;\r\n transitionStyle.transform = translate(transX, transY);\r\n\r\n this.transition({\r\n to: transitionStyle,\r\n onTransitionEnd: {\r\n transform: this.layoutPosition\r\n },\r\n isCleaning: true\r\n });\r\n };\r\n\r\n // non transition + transform support\r\n Item.prototype.goTo = function(x, y) {\r\n this.setPosition(x, y);\r\n this.layoutPosition();\r\n };\r\n\r\n // use transition and transforms if supported\r\n Item.prototype.moveTo = supportsCSS3 ? Item.prototype._transitionTo : Item.prototype.goTo;\r\n\r\n Item.prototype.setPosition = function(x, y) {\r\n this.position.x = parseInt(x, 10);\r\n this.position.y = parseInt(y, 10);\r\n };\r\n\r\n // ----- transition ----- //\r\n /**\r\n * @param {Object} style - CSS\r\n * @param {Function} onTransitionEnd\r\n */\r\n\r\n // non transition, just trigger callback\r\n Item.prototype._nonTransition = function(args) {\r\n this.css(args.to);\r\n if (args.isCleaning) {\r\n this._removeStyles(args.to);\r\n }\r\n for (var prop in args.onTransitionEnd) {\r\n args.onTransitionEnd[prop].call(this);\r\n }\r\n };\r\n\r\n /**\r\n * proper transition\r\n * @param {Object} args - arguments\r\n * @param {Object} to - style to transition to\r\n * @param {Object} from - style to start transition from\r\n * @param {Boolean} isCleaning - removes transition styles after transition\r\n * @param {Function} onTransitionEnd - callback\r\n */\r\n Item.prototype._transition = function(args) {\r\n // redirect to nonTransition if no transition duration\r\n if (!parseFloat(this.layout.options.transitionDuration)) {\r\n this._nonTransition(args);\r\n return;\r\n }\r\n\r\n var _transition = this._transn;\r\n // keep track of onTransitionEnd callback by css property\r\n for (var prop in args.onTransitionEnd) {\r\n _transition.onEnd[prop] = args.onTransitionEnd[prop];\r\n }\r\n // keep track of properties that are transitioning\r\n for (prop in args.to) {\r\n _transition.ingProperties[prop] = true;\r\n // keep track of properties to clean up when transition is done\r\n if (args.isCleaning) {\r\n _transition.clean[prop] = true;\r\n }\r\n }\r\n\r\n // set from styles\r\n if (args.from) {\r\n this.css(args.from);\r\n // force redraw. http://blog.alexmaccaw.com/css-transitions\r\n var h = this.element.offsetHeight;\r\n // hack for JSHint to hush about unused var\r\n h = null;\r\n }\r\n // enable transition\r\n this.enableTransition(args.to);\r\n // set styles that are transitioning\r\n this.css(args.to);\r\n\r\n this.isTransitioning = true;\r\n\r\n };\r\n\r\n var itemTransitionProperties = transformProperty && (utils.toDashed(transformProperty) + ',opacity');\r\n\r\n Item.prototype.enableTransition = function( /* style */ ) {\r\n // only enable if not already transitioning\r\n // bug in IE10 were re-setting transition style will prevent\r\n // transitionend event from triggering\r\n if (this.isTransitioning) {\r\n return;\r\n }\r\n\r\n // make transition: foo, bar, baz from style object\r\n // TODO uncomment this bit when IE10 bug is resolved\r\n // var transitionValue = [];\r\n // for ( var prop in style ) {\r\n // // dash-ify camelCased properties like WebkitTransition\r\n // transitionValue.push( toDash( prop ) );\r\n // }\r\n // enable transition styles\r\n // HACK always enable transform,opacity for IE10\r\n this.css({\r\n transitionProperty: itemTransitionProperties,\r\n transitionDuration: this.layout.options.transitionDuration\r\n });\r\n // listen for transition end event\r\n this.element.addEventListener(transitionEndEvent, this, false);\r\n };\r\n\r\n Item.prototype.transition = Item.prototype[transitionProperty ? '_transition' : '_nonTransition'];\r\n\r\n // ----- events ----- //\r\n Item.prototype.onwebkitTransitionEnd = function(event) {\r\n this.ontransitionend(event);\r\n };\r\n\r\n Item.prototype.onotransitionend = function(event) {\r\n this.ontransitionend(event);\r\n };\r\n\r\n // properties that I munge to make my life easier\r\n var dashedVendorProperties = {\r\n '-webkit-transform': 'transform',\r\n '-moz-transform': 'transform',\r\n '-o-transform': 'transform'\r\n };\r\n\r\n Item.prototype.ontransitionend = function(event) {\r\n // disregard bubbled events from children\r\n if (event.target !== this.element) {\r\n return;\r\n }\r\n var _transition = this._transn;\r\n // get property name of transitioned property, convert to prefix-free\r\n var propertyName = dashedVendorProperties[event.propertyName] || event.propertyName;\r\n\r\n // remove property that has completed transitioning\r\n delete _transition.ingProperties[propertyName];\r\n // check if any properties are still transitioning\r\n if (isEmptyObj(_transition.ingProperties)) {\r\n // all properties have completed transitioning\r\n this.disableTransition();\r\n }\r\n // clean style\r\n if (propertyName in _transition.clean) {\r\n // clean up style\r\n this.element.style[event.propertyName] = '';\r\n delete _transition.clean[propertyName];\r\n }\r\n // trigger onTransitionEnd callback\r\n if (propertyName in _transition.onEnd) {\r\n var onTransitionEnd = _transition.onEnd[propertyName];\r\n onTransitionEnd.call(this);\r\n delete _transition.onEnd[propertyName];\r\n }\r\n\r\n this.emitEvent('transitionEnd', [this]);\r\n };\r\n\r\n Item.prototype.disableTransition = function() {\r\n this.removeTransitionStyles();\r\n this.element.removeEventListener(transitionEndEvent, this, false);\r\n this.isTransitioning = false;\r\n };\r\n\r\n /**\r\n * removes style property from element\r\n * @param {Object} style\r\n **/\r\n Item.prototype._removeStyles = function(style) {\r\n // clean up transition styles\r\n var cleanStyle = {};\r\n for (var prop in style) {\r\n cleanStyle[prop] = '';\r\n }\r\n this.css(cleanStyle);\r\n };\r\n\r\n var cleanTransitionStyle = {\r\n transitionProperty: '',\r\n transitionDuration: ''\r\n };\r\n\r\n Item.prototype.removeTransitionStyles = function() {\r\n // remove transition\r\n this.css(cleanTransitionStyle);\r\n };\r\n\r\n // ----- show/hide/remove ----- //\r\n // remove element from DOM\r\n Item.prototype.removeElem = function() {\r\n this.element.parentNode.removeChild(this.element);\r\n // remove display: none\r\n this.css({\r\n display: ''\r\n });\r\n this.emitEvent('remove', [this]);\r\n };\r\n\r\n Item.prototype.remove = function() {\r\n // just remove element if no transition support or no transition\r\n if (!transitionProperty || !parseFloat(this.layout.options.transitionDuration)) {\r\n this.removeElem();\r\n return;\r\n }\r\n\r\n // start transition\r\n var _this = this;\r\n this.once('transitionEnd', function() {\r\n _this.removeElem();\r\n });\r\n this.hide();\r\n };\r\n\r\n Item.prototype.reveal = function() {\r\n delete this.isHidden;\r\n // remove display: none\r\n this.css({\r\n display: ''\r\n });\r\n\r\n var options = this.layout.options;\r\n\r\n var onTransitionEnd = {};\r\n var transitionEndProperty = this.getHideRevealTransitionEndProperty('visibleStyle');\r\n onTransitionEnd[transitionEndProperty] = this.onRevealTransitionEnd;\r\n\r\n this.transition({\r\n from: options.hiddenStyle,\r\n to: options.visibleStyle,\r\n isCleaning: true,\r\n onTransitionEnd: onTransitionEnd\r\n });\r\n };\r\n\r\n Item.prototype.onRevealTransitionEnd = function() {\r\n // check if still visible\r\n // during transition, item may have been hidden\r\n if (!this.isHidden) {\r\n this.emitEvent('reveal');\r\n }\r\n };\r\n\r\n /**\r\n * get style property use for hide/reveal transition end\r\n * @param {String} styleProperty - hiddenStyle/visibleStyle\r\n * @returns {String}\r\n */\r\n Item.prototype.getHideRevealTransitionEndProperty = function(styleProperty) {\r\n var optionStyle = this.layout.options[styleProperty];\r\n // use opacity\r\n if (optionStyle.opacity) {\r\n return 'opacity';\r\n }\r\n // get first property\r\n for (var prop in optionStyle) {\r\n return prop;\r\n }\r\n };\r\n\r\n Item.prototype.hide = function() {\r\n // set flag\r\n this.isHidden = true;\r\n // remove display: none\r\n this.css({\r\n display: ''\r\n });\r\n\r\n var options = this.layout.options;\r\n\r\n var onTransitionEnd = {};\r\n var transitionEndProperty = this.getHideRevealTransitionEndProperty('hiddenStyle');\r\n onTransitionEnd[transitionEndProperty] = this.onHideTransitionEnd;\r\n\r\n this.transition({\r\n from: options.visibleStyle,\r\n to: options.hiddenStyle,\r\n // keep hidden stuff hidden\r\n isCleaning: true,\r\n onTransitionEnd: onTransitionEnd\r\n });\r\n };\r\n\r\n Item.prototype.onHideTransitionEnd = function() {\r\n // check if still hidden\r\n // during transition, item may have been un-hidden\r\n if (this.isHidden) {\r\n this.css({\r\n display: 'none'\r\n });\r\n this.emitEvent('hide');\r\n }\r\n };\r\n\r\n Item.prototype.destroy = function() {\r\n this.css({\r\n position: '',\r\n left: '',\r\n right: '',\r\n top: '',\r\n bottom: '',\r\n transition: '',\r\n transform: ''\r\n });\r\n };\r\n\r\n return Item;\r\n\r\n}));\r\n\r\n/*!\r\n * Outlayer v1.4.0\r\n * the brains and guts of a layout library\r\n * MIT license\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('outlayer/outlayer', ['eventie/eventie', 'eventEmitter/EventEmitter', 'get-size/get-size', 'fizzy-ui-utils/utils', './item'], function(eventie, EventEmitter, getSize, utils, Item) {\r\n return factory(window, eventie, EventEmitter, getSize, utils, Item);\r\n });\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n window, require('eventie'), require('wolfy87-eventemitter'), require('get-size'), require('fizzy-ui-utils'), require('./item'));\r\n } else {\r\n // browser global\r\n window.Outlayer = factory(\r\n window, window.eventie, window.EventEmitter, window.getSize, window.fizzyUIUtils, window.Outlayer.Item);\r\n }\r\n\r\n}(window, function factory(window, eventie, EventEmitter, getSize, utils, Item) {\r\n\r\n\r\n // ----- vars ----- //\r\n var console = window.console;\r\n var jQuery = window.jQuery;\r\n var noop = function() {};\r\n\r\n // -------------------------- Outlayer -------------------------- //\r\n // globally unique identifiers\r\n var GUID = 0;\r\n // internal store of all Outlayer intances\r\n var instances = {};\r\n\r\n\r\n /**\r\n * @param {Element, String} element\r\n * @param {Object} options\r\n * @constructor\r\n */\r\n\r\n function Outlayer(element, options) {\r\n var queryElement = utils.getQueryElement(element);\r\n if (!queryElement) {\r\n if (console) {\r\n console.error('Bad element for ' + this.constructor.namespace + ': ' + (queryElement || element));\r\n }\r\n return;\r\n }\r\n this.element = queryElement;\r\n // add jQuery\r\n if (jQuery) {\r\n this.$element = jQuery(this.element);\r\n }\r\n\r\n // options\r\n this.options = utils.extend({}, this.constructor.defaults);\r\n this.option(options);\r\n\r\n // add id for Outlayer.getFromElement\r\n var id = ++GUID;\r\n this.element.outlayerGUID = id; // expando\r\n instances[id] = this; // associate via id\r\n // kick it off\r\n this._create();\r\n\r\n if (this.options.isInitLayout) {\r\n this.layout();\r\n }\r\n }\r\n\r\n // settings are for internal use only\r\n Outlayer.namespace = 'outlayer';\r\n Outlayer.Item = Item;\r\n\r\n // default options\r\n Outlayer.defaults = {\r\n containerStyle: {\r\n position: 'relative'\r\n },\r\n isInitLayout: true,\r\n isOriginLeft: true,\r\n isOriginTop: true,\r\n isResizeBound: true,\r\n isResizingContainer: true,\r\n // item options\r\n transitionDuration: '0.4s',\r\n hiddenStyle: {\r\n opacity: 0,\r\n transform: 'scale(0.001)'\r\n },\r\n visibleStyle: {\r\n opacity: 1,\r\n transform: 'scale(1)'\r\n }\r\n };\r\n\r\n // inherit EventEmitter\r\n utils.extend(Outlayer.prototype, EventEmitter.prototype);\r\n\r\n /**\r\n * set options\r\n * @param {Object} opts\r\n */\r\n Outlayer.prototype.option = function(opts) {\r\n utils.extend(this.options, opts);\r\n };\r\n\r\n Outlayer.prototype._create = function() {\r\n // get items from children\r\n this.reloadItems();\r\n // elements that affect layout, but are not laid out\r\n this.stamps = [];\r\n this.stamp(this.options.stamp);\r\n // set container style\r\n utils.extend(this.element.style, this.options.containerStyle);\r\n\r\n // bind resize method\r\n if (this.options.isResizeBound) {\r\n this.bindResize();\r\n }\r\n };\r\n\r\n // goes through all children again and gets bricks in proper order\r\n Outlayer.prototype.reloadItems = function() {\r\n // collection of item elements\r\n this.items = this._itemize(this.element.children);\r\n };\r\n\r\n\r\n /**\r\n * turn elements into Outlayer.Items to be used in layout\r\n * @param {Array or NodeList or HTMLElement} elems\r\n * @returns {Array} items - collection of new Outlayer Items\r\n */\r\n Outlayer.prototype._itemize = function(elems) {\r\n\r\n var itemElems = this._filterFindItemElements(elems);\r\n var Item = this.constructor.Item;\r\n\r\n // create new Outlayer Items for collection\r\n var items = [];\r\n for (var i = 0, len = itemElems.length; i < len; i++) {\r\n var elem = itemElems[i];\r\n var item = new Item(elem, this);\r\n items.push(item);\r\n }\r\n\r\n return items;\r\n };\r\n\r\n /**\r\n * get item elements to be used in layout\r\n * @param {Array or NodeList or HTMLElement} elems\r\n * @returns {Array} items - item elements\r\n */\r\n Outlayer.prototype._filterFindItemElements = function(elems) {\r\n return utils.filterFindElements(elems, this.options.itemSelector);\r\n };\r\n\r\n /**\r\n * getter method for getting item elements\r\n * @returns {Array} elems - collection of item elements\r\n */\r\n Outlayer.prototype.getItemElements = function() {\r\n var elems = [];\r\n for (var i = 0, len = this.items.length; i < len; i++) {\r\n elems.push(this.items[i].element);\r\n }\r\n return elems;\r\n };\r\n\r\n // ----- init & layout ----- //\r\n /**\r\n * lays out all items\r\n */\r\n Outlayer.prototype.layout = function() {\r\n this._resetLayout();\r\n this._manageStamps();\r\n\r\n // don't animate first layout\r\n var isInstant = this.options.isLayoutInstant !== undefined ? this.options.isLayoutInstant : !this._isLayoutInited;\r\n this.layoutItems(this.items, isInstant);\r\n\r\n // flag for initalized\r\n this._isLayoutInited = true;\r\n };\r\n\r\n // _init is alias for layout\r\n Outlayer.prototype._init = Outlayer.prototype.layout;\r\n\r\n /**\r\n * logic before any new layout\r\n */\r\n Outlayer.prototype._resetLayout = function() {\r\n this.getSize();\r\n };\r\n\r\n\r\n Outlayer.prototype.getSize = function() {\r\n this.size = getSize(this.element);\r\n };\r\n\r\n /**\r\n * get measurement from option, for columnWidth, rowHeight, gutter\r\n * if option is String -> get element from selector string, & get size of element\r\n * if option is Element -> get size of element\r\n * else use option as a number\r\n *\r\n * @param {String} measurement\r\n * @param {String} size - width or height\r\n * @private\r\n */\r\n Outlayer.prototype._getMeasurement = function(measurement, size) {\r\n var option = this.options[measurement];\r\n var elem;\r\n if (!option) {\r\n // default to 0\r\n this[measurement] = 0;\r\n } else {\r\n // use option as an element\r\n if (typeof option === 'string') {\r\n elem = this.element.querySelector(option);\r\n } else if (utils.isElement(option)) {\r\n elem = option;\r\n }\r\n // use size of element, if element\r\n this[measurement] = elem ? getSize(elem)[size] : option;\r\n }\r\n };\r\n\r\n /**\r\n * layout a collection of item elements\r\n * @api public\r\n */\r\n Outlayer.prototype.layoutItems = function(items, isInstant) {\r\n items = this._getItemsForLayout(items);\r\n\r\n this._layoutItems(items, isInstant);\r\n\r\n this._postLayout();\r\n };\r\n\r\n /**\r\n * get the items to be laid out\r\n * you may want to skip over some items\r\n * @param {Array} items\r\n * @returns {Array} items\r\n */\r\n Outlayer.prototype._getItemsForLayout = function(items) {\r\n var layoutItems = [];\r\n for (var i = 0, len = items.length; i < len; i++) {\r\n var item = items[i];\r\n if (!item.isIgnored) {\r\n layoutItems.push(item);\r\n }\r\n }\r\n return layoutItems;\r\n };\r\n\r\n /**\r\n * layout items\r\n * @param {Array} items\r\n * @param {Boolean} isInstant\r\n */\r\n Outlayer.prototype._layoutItems = function(items, isInstant) {\r\n this._emitCompleteOnItems('layout', items);\r\n\r\n if (!items || !items.length) {\r\n // no items, emit event with empty array\r\n return;\r\n }\r\n\r\n var queue = [];\r\n\r\n for (var i = 0, len = items.length; i < len; i++) {\r\n var item = items[i];\r\n // get x/y object from method\r\n var position = this._getItemLayoutPosition(item);\r\n // enqueue\r\n position.item = item;\r\n position.isInstant = isInstant || item.isLayoutInstant;\r\n queue.push(position);\r\n }\r\n\r\n this._processLayoutQueue(queue);\r\n };\r\n\r\n /**\r\n * get item layout position\r\n * @param {Outlayer.Item} item\r\n * @returns {Object} x and y position\r\n */\r\n Outlayer.prototype._getItemLayoutPosition = function( /* item */ ) {\r\n return {\r\n x: 0,\r\n y: 0\r\n };\r\n };\r\n\r\n /**\r\n * iterate over array and position each item\r\n * Reason being - separating this logic prevents 'layout invalidation'\r\n * thx @paul_irish\r\n * @param {Array} queue\r\n */\r\n Outlayer.prototype._processLayoutQueue = function(queue) {\r\n for (var i = 0, len = queue.length; i < len; i++) {\r\n var obj = queue[i];\r\n this._positionItem(obj.item, obj.x, obj.y, obj.isInstant);\r\n }\r\n };\r\n\r\n /**\r\n * Sets position of item in DOM\r\n * @param {Outlayer.Item} item\r\n * @param {Number} x - horizontal position\r\n * @param {Number} y - vertical position\r\n * @param {Boolean} isInstant - disables transitions\r\n */\r\n Outlayer.prototype._positionItem = function(item, x, y, isInstant) {\r\n if (isInstant) {\r\n // if not transition, just set CSS\r\n item.goTo(x, y);\r\n } else {\r\n item.moveTo(x, y);\r\n }\r\n };\r\n\r\n /**\r\n * Any logic you want to do after each layout,\r\n * i.e. size the container\r\n */\r\n Outlayer.prototype._postLayout = function() {\r\n this.resizeContainer();\r\n };\r\n\r\n Outlayer.prototype.resizeContainer = function() {\r\n if (!this.options.isResizingContainer) {\r\n return;\r\n }\r\n var size = this._getContainerSize();\r\n if (size) {\r\n this._setContainerMeasure(size.width, true);\r\n this._setContainerMeasure(size.height, false);\r\n }\r\n };\r\n\r\n /**\r\n * Sets width or height of container if returned\r\n * @returns {Object} size\r\n * @param {Number} width\r\n * @param {Number} height\r\n */\r\n Outlayer.prototype._getContainerSize = noop;\r\n\r\n /**\r\n * @param {Number} measure - size of width or height\r\n * @param {Boolean} isWidth\r\n */\r\n Outlayer.prototype._setContainerMeasure = function(measure, isWidth) {\r\n if (measure === undefined) {\r\n return;\r\n }\r\n\r\n var elemSize = this.size;\r\n // add padding and border width if border box\r\n if (elemSize.isBorderBox) {\r\n measure += isWidth ? elemSize.paddingLeft + elemSize.paddingRight + elemSize.borderLeftWidth + elemSize.borderRightWidth : elemSize.paddingBottom + elemSize.paddingTop + elemSize.borderTopWidth + elemSize.borderBottomWidth;\r\n }\r\n\r\n measure = Math.max(measure, 0);\r\n this.element.style[isWidth ? 'width' : 'height'] = measure + 'px';\r\n };\r\n\r\n /**\r\n * emit eventComplete on a collection of items events\r\n * @param {String} eventName\r\n * @param {Array} items - Outlayer.Items\r\n */\r\n Outlayer.prototype._emitCompleteOnItems = function(eventName, items) {\r\n var _this = this;\r\n\r\n function onComplete() {\r\n _this.emitEvent(eventName + 'Complete', [items]);\r\n }\r\n\r\n var count = items.length;\r\n if (!items || !count) {\r\n onComplete();\r\n return;\r\n }\r\n\r\n var doneCount = 0;\r\n\r\n function tick() {\r\n doneCount++;\r\n if (doneCount === count) {\r\n onComplete();\r\n }\r\n }\r\n\r\n // bind callback\r\n for (var i = 0, len = items.length; i < len; i++) {\r\n var item = items[i];\r\n item.once(eventName, tick);\r\n }\r\n };\r\n\r\n // -------------------------- ignore & stamps -------------------------- //\r\n\r\n /**\r\n * keep item in collection, but do not lay it out\r\n * ignored items do not get skipped in layout\r\n * @param {Element} elem\r\n */\r\n Outlayer.prototype.ignore = function(elem) {\r\n var item = this.getItem(elem);\r\n if (item) {\r\n item.isIgnored = true;\r\n }\r\n };\r\n\r\n /**\r\n * return item to layout collection\r\n * @param {Element} elem\r\n */\r\n Outlayer.prototype.unignore = function(elem) {\r\n var item = this.getItem(elem);\r\n if (item) {\r\n delete item.isIgnored;\r\n }\r\n };\r\n\r\n /**\r\n * adds elements to stamps\r\n * @param {NodeList, Array, Element, or String} elems\r\n */\r\n Outlayer.prototype.stamp = function(elems) {\r\n elems = this._find(elems);\r\n if (!elems) {\r\n return;\r\n }\r\n\r\n this.stamps = this.stamps.concat(elems);\r\n // ignore\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n var elem = elems[i];\r\n this.ignore(elem);\r\n }\r\n };\r\n\r\n /**\r\n * removes elements to stamps\r\n * @param {NodeList, Array, or Element} elems\r\n */\r\n Outlayer.prototype.unstamp = function(elems) {\r\n elems = this._find(elems);\r\n if (!elems) {\r\n return;\r\n }\r\n\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n var elem = elems[i];\r\n // filter out removed stamp elements\r\n utils.removeFrom(this.stamps, elem);\r\n this.unignore(elem);\r\n }\r\n\r\n };\r\n\r\n /**\r\n * finds child elements\r\n * @param {NodeList, Array, Element, or String} elems\r\n * @returns {Array} elems\r\n */\r\n Outlayer.prototype._find = function(elems) {\r\n if (!elems) {\r\n return;\r\n }\r\n // if string, use argument as selector string\r\n if (typeof elems === 'string') {\r\n elems = this.element.querySelectorAll(elems);\r\n }\r\n elems = utils.makeArray(elems);\r\n return elems;\r\n };\r\n\r\n Outlayer.prototype._manageStamps = function() {\r\n if (!this.stamps || !this.stamps.length) {\r\n return;\r\n }\r\n\r\n this._getBoundingRect();\r\n\r\n for (var i = 0, len = this.stamps.length; i < len; i++) {\r\n var stamp = this.stamps[i];\r\n this._manageStamp(stamp);\r\n }\r\n };\r\n\r\n // update boundingLeft / Top\r\n Outlayer.prototype._getBoundingRect = function() {\r\n // get bounding rect for container element\r\n var boundingRect = this.element.getBoundingClientRect();\r\n var size = this.size;\r\n this._boundingRect = {\r\n left: boundingRect.left + size.paddingLeft + size.borderLeftWidth,\r\n top: boundingRect.top + size.paddingTop + size.borderTopWidth,\r\n right: boundingRect.right - (size.paddingRight + size.borderRightWidth),\r\n bottom: boundingRect.bottom - (size.paddingBottom + size.borderBottomWidth)\r\n };\r\n };\r\n\r\n /**\r\n * @param {Element} stamp\r\n **/\r\n Outlayer.prototype._manageStamp = noop;\r\n\r\n /**\r\n * get x/y position of element relative to container element\r\n * @param {Element} elem\r\n * @returns {Object} offset - has left, top, right, bottom\r\n */\r\n Outlayer.prototype._getElementOffset = function(elem) {\r\n var boundingRect = elem.getBoundingClientRect();\r\n var thisRect = this._boundingRect;\r\n var size = getSize(elem);\r\n var offset = {\r\n left: boundingRect.left - thisRect.left - size.marginLeft,\r\n top: boundingRect.top - thisRect.top - size.marginTop,\r\n right: thisRect.right - boundingRect.right - size.marginRight,\r\n bottom: thisRect.bottom - boundingRect.bottom - size.marginBottom\r\n };\r\n return offset;\r\n };\r\n\r\n // -------------------------- resize -------------------------- //\r\n // enable event handlers for listeners\r\n // i.e. resize -> onresize\r\n Outlayer.prototype.handleEvent = function(event) {\r\n var method = 'on' + event.type;\r\n if (this[method]) {\r\n this[method](event);\r\n }\r\n };\r\n\r\n /**\r\n * Bind layout to window resizing\r\n */\r\n Outlayer.prototype.bindResize = function() {\r\n // bind just one listener\r\n if (this.isResizeBound) {\r\n return;\r\n }\r\n eventie.bind(window, 'resize', this);\r\n this.isResizeBound = true;\r\n };\r\n\r\n /**\r\n * Unbind layout to window resizing\r\n */\r\n Outlayer.prototype.unbindResize = function() {\r\n if (this.isResizeBound) {\r\n eventie.unbind(window, 'resize', this);\r\n }\r\n this.isResizeBound = false;\r\n };\r\n\r\n // original debounce by John Hann\r\n // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/\r\n // this fires every resize\r\n Outlayer.prototype.onresize = function() {\r\n if (this.resizeTimeout) {\r\n clearTimeout(this.resizeTimeout);\r\n }\r\n\r\n var _this = this;\r\n\r\n function delayed() {\r\n _this.resize();\r\n delete _this.resizeTimeout;\r\n }\r\n\r\n this.resizeTimeout = setTimeout(delayed, 100);\r\n };\r\n\r\n // debounced, layout on resize\r\n Outlayer.prototype.resize = function() {\r\n // don't trigger if size did not change\r\n // or if resize was unbound. See #9\r\n if (!this.isResizeBound || !this.needsResizeLayout()) {\r\n return;\r\n }\r\n\r\n this.layout();\r\n };\r\n\r\n /**\r\n * check if layout is needed post layout\r\n * @returns Boolean\r\n */\r\n Outlayer.prototype.needsResizeLayout = function() {\r\n var size = getSize(this.element);\r\n // check that this.size and size are there\r\n // IE8 triggers resize on body size change, so they might not be\r\n var hasSizes = this.size && size;\r\n return hasSizes && size.innerWidth !== this.size.innerWidth;\r\n };\r\n\r\n // -------------------------- methods -------------------------- //\r\n /**\r\n * add items to Outlayer instance\r\n * @param {Array or NodeList or Element} elems\r\n * @returns {Array} items - Outlayer.Items\r\n **/\r\n Outlayer.prototype.addItems = function(elems) {\r\n var items = this._itemize(elems);\r\n // add items to collection\r\n if (items.length) {\r\n this.items = this.items.concat(items);\r\n }\r\n return items;\r\n };\r\n\r\n /**\r\n * Layout newly-appended item elements\r\n * @param {Array or NodeList or Element} elems\r\n */\r\n Outlayer.prototype.appended = function(elems) {\r\n var items = this.addItems(elems);\r\n if (!items.length) {\r\n return;\r\n }\r\n // layout and reveal just the new items\r\n this.layoutItems(items, true);\r\n this.reveal(items);\r\n };\r\n\r\n /**\r\n * Layout prepended elements\r\n * @param {Array or NodeList or Element} elems\r\n */\r\n Outlayer.prototype.prepended = function(elems) {\r\n var items = this._itemize(elems);\r\n if (!items.length) {\r\n return;\r\n }\r\n // add items to beginning of collection\r\n var previousItems = this.items.slice(0);\r\n this.items = items.concat(previousItems);\r\n // start new layout\r\n this._resetLayout();\r\n this._manageStamps();\r\n // layout new stuff without transition\r\n this.layoutItems(items, true);\r\n this.reveal(items);\r\n // layout previous items\r\n this.layoutItems(previousItems);\r\n };\r\n\r\n /**\r\n * reveal a collection of items\r\n * @param {Array of Outlayer.Items} items\r\n */\r\n Outlayer.prototype.reveal = function(items) {\r\n this._emitCompleteOnItems('reveal', items);\r\n\r\n var len = items && items.length;\r\n for (var i = 0; len && i < len; i++) {\r\n var item = items[i];\r\n item.reveal();\r\n }\r\n };\r\n\r\n /**\r\n * hide a collection of items\r\n * @param {Array of Outlayer.Items} items\r\n */\r\n Outlayer.prototype.hide = function(items) {\r\n this._emitCompleteOnItems('hide', items);\r\n\r\n var len = items && items.length;\r\n for (var i = 0; len && i < len; i++) {\r\n var item = items[i];\r\n item.hide();\r\n }\r\n };\r\n\r\n /**\r\n * reveal item elements\r\n * @param {Array}, {Element}, {NodeList} items\r\n */\r\n Outlayer.prototype.revealItemElements = function(elems) {\r\n var items = this.getItems(elems);\r\n this.reveal(items);\r\n };\r\n\r\n /**\r\n * hide item elements\r\n * @param {Array}, {Element}, {NodeList} items\r\n */\r\n Outlayer.prototype.hideItemElements = function(elems) {\r\n var items = this.getItems(elems);\r\n this.hide(items);\r\n };\r\n\r\n /**\r\n * get Outlayer.Item, given an Element\r\n * @param {Element} elem\r\n * @param {Function} callback\r\n * @returns {Outlayer.Item} item\r\n */\r\n Outlayer.prototype.getItem = function(elem) {\r\n // loop through items to get the one that matches\r\n for (var i = 0, len = this.items.length; i < len; i++) {\r\n var item = this.items[i];\r\n if (item.element === elem) {\r\n // return item\r\n return item;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * get collection of Outlayer.Items, given Elements\r\n * @param {Array} elems\r\n * @returns {Array} items - Outlayer.Items\r\n */\r\n Outlayer.prototype.getItems = function(elems) {\r\n elems = utils.makeArray(elems);\r\n var items = [];\r\n for (var i = 0, len = elems.length; i < len; i++) {\r\n var elem = elems[i];\r\n var item = this.getItem(elem);\r\n if (item) {\r\n items.push(item);\r\n }\r\n }\r\n\r\n return items;\r\n };\r\n\r\n /**\r\n * remove element(s) from instance and DOM\r\n * @param {Array or NodeList or Element} elems\r\n */\r\n Outlayer.prototype.remove = function(elems) {\r\n var removeItems = this.getItems(elems);\r\n\r\n this._emitCompleteOnItems('remove', removeItems);\r\n\r\n // bail if no items to remove\r\n if (!removeItems || !removeItems.length) {\r\n return;\r\n }\r\n\r\n for (var i = 0, len = removeItems.length; i < len; i++) {\r\n var item = removeItems[i];\r\n item.remove();\r\n // remove item from collection\r\n utils.removeFrom(this.items, item);\r\n }\r\n };\r\n\r\n // ----- destroy ----- //\r\n // remove and disable Outlayer instance\r\n Outlayer.prototype.destroy = function() {\r\n // clean up dynamic styles\r\n var style = this.element.style;\r\n style.height = '';\r\n style.position = '';\r\n style.width = '';\r\n // destroy items\r\n for (var i = 0, len = this.items.length; i < len; i++) {\r\n var item = this.items[i];\r\n item.destroy();\r\n }\r\n\r\n this.unbindResize();\r\n\r\n var id = this.element.outlayerGUID;\r\n delete instances[id]; // remove reference to instance by id\r\n delete this.element.outlayerGUID;\r\n // remove data for jQuery\r\n if (jQuery) {\r\n jQuery.removeData(this.element, this.constructor.namespace);\r\n }\r\n\r\n };\r\n\r\n // -------------------------- data -------------------------- //\r\n /**\r\n * get Outlayer instance from element\r\n * @param {Element} elem\r\n * @returns {Outlayer}\r\n */\r\n Outlayer.data = function(elem) {\r\n elem = utils.getQueryElement(elem);\r\n var id = elem && elem.outlayerGUID;\r\n return id && instances[id];\r\n };\r\n\r\n\r\n // -------------------------- create Outlayer class -------------------------- //\r\n /**\r\n * create a layout class\r\n * @param {String} namespace\r\n */\r\n Outlayer.create = function(namespace, options) {\r\n // sub-class Outlayer\r\n\r\n\r\n function Layout() {\r\n Outlayer.apply(this, arguments);\r\n }\r\n // inherit Outlayer prototype, use Object.create if there\r\n if (Object.create) {\r\n Layout.prototype = Object.create(Outlayer.prototype);\r\n } else {\r\n utils.extend(Layout.prototype, Outlayer.prototype);\r\n }\r\n // set contructor, used for namespace and Item\r\n Layout.prototype.constructor = Layout;\r\n\r\n Layout.defaults = utils.extend({}, Outlayer.defaults);\r\n // apply new options\r\n utils.extend(Layout.defaults, options);\r\n // keep prototype.settings for backwards compatibility (Packery v1.2.0)\r\n Layout.prototype.settings = {};\r\n\r\n Layout.namespace = namespace;\r\n\r\n Layout.data = Outlayer.data;\r\n\r\n // sub-class Item\r\n Layout.Item = function LayoutItem() {\r\n Item.apply(this, arguments);\r\n };\r\n\r\n Layout.Item.prototype = new Item();\r\n\r\n // -------------------------- declarative -------------------------- //\r\n utils.htmlInit(Layout, namespace);\r\n\r\n // -------------------------- jQuery bridge -------------------------- //\r\n // make into jQuery plugin\r\n if (jQuery && jQuery.bridget) {\r\n jQuery.bridget(namespace, Layout);\r\n }\r\n\r\n return Layout;\r\n };\r\n\r\n // ----- fin ----- //\r\n // back in global\r\n Outlayer.Item = Item;\r\n\r\n return Outlayer;\r\n\r\n}));\r\n\r\n\r\n/**\r\n * Isotope Item\r\n **/\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('isotope/js/item', ['outlayer/outlayer'], factory);\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('outlayer'));\r\n } else {\r\n // browser global\r\n window.Isotope = window.Isotope || {};\r\n window.Isotope.Item = factory(\r\n window.Outlayer);\r\n }\r\n\r\n}(window, function factory(Outlayer) {\r\n\r\n\r\n // -------------------------- Item -------------------------- //\r\n // sub-class Outlayer Item\r\n\r\n\r\n function Item() {\r\n Outlayer.Item.apply(this, arguments);\r\n }\r\n\r\n Item.prototype = new Outlayer.Item();\r\n\r\n Item.prototype._create = function() {\r\n // assign id, used for original-order sorting\r\n this.id = this.layout.itemGUID++;\r\n Outlayer.Item.prototype._create.call(this);\r\n this.sortData = {};\r\n };\r\n\r\n Item.prototype.updateSortData = function() {\r\n if (this.isIgnored) {\r\n return;\r\n }\r\n // default sorters\r\n this.sortData.id = this.id;\r\n // for backward compatibility\r\n this.sortData['original-order'] = this.id;\r\n this.sortData.random = Math.random();\r\n // go thru getSortData obj and apply the sorters\r\n var getSortData = this.layout.options.getSortData;\r\n var sorters = this.layout._sorters;\r\n for (var key in getSortData) {\r\n var sorter = sorters[key];\r\n this.sortData[key] = sorter(this.element, this);\r\n }\r\n };\r\n\r\n var _destroy = Item.prototype.destroy;\r\n Item.prototype.destroy = function() {\r\n // call super\r\n _destroy.apply(this, arguments);\r\n // reset display, #741\r\n this.css({\r\n display: ''\r\n });\r\n };\r\n\r\n return Item;\r\n\r\n}));\r\n\r\n/**\r\n * Isotope LayoutMode\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('isotope/js/layout-mode', ['get-size/get-size', 'outlayer/outlayer'], factory);\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('get-size'), require('outlayer'));\r\n } else {\r\n // browser global\r\n window.Isotope = window.Isotope || {};\r\n window.Isotope.LayoutMode = factory(\r\n window.getSize, window.Outlayer);\r\n }\r\n\r\n}(window, function factory(getSize, Outlayer) {\r\n\r\n\r\n // layout mode class\r\n\r\n\r\n function LayoutMode(isotope) {\r\n this.isotope = isotope;\r\n // link properties\r\n if (isotope) {\r\n this.options = isotope.options[this.namespace];\r\n this.element = isotope.element;\r\n this.items = isotope.filteredItems;\r\n this.size = isotope.size;\r\n }\r\n }\r\n\r\n /**\r\n * some methods should just defer to default Outlayer method\r\n * and reference the Isotope instance as `this`\r\n **/\r\n (function() {\r\n var facadeMethods = ['_resetLayout', '_getItemLayoutPosition', '_manageStamp', '_getContainerSize', '_getElementOffset', 'needsResizeLayout'];\r\n\r\n for (var i = 0, len = facadeMethods.length; i < len; i++) {\r\n var methodName = facadeMethods[i];\r\n LayoutMode.prototype[methodName] = getOutlayerMethod(methodName);\r\n }\r\n\r\n function getOutlayerMethod(methodName) {\r\n return function() {\r\n return Outlayer.prototype[methodName].apply(this.isotope, arguments);\r\n };\r\n }\r\n })();\r\n\r\n // ----- ----- //\r\n // for horizontal layout modes, check vertical size\r\n LayoutMode.prototype.needsVerticalResizeLayout = function() {\r\n // don't trigger if size did not change\r\n var size = getSize(this.isotope.element);\r\n // check that this.size and size are there\r\n // IE8 triggers resize on body size change, so they might not be\r\n var hasSizes = this.isotope.size && size;\r\n return hasSizes && size.innerHeight != this.isotope.size.innerHeight;\r\n };\r\n\r\n // ----- measurements ----- //\r\n LayoutMode.prototype._getMeasurement = function() {\r\n this.isotope._getMeasurement.apply(this, arguments);\r\n };\r\n\r\n LayoutMode.prototype.getColumnWidth = function() {\r\n this.getSegmentSize('column', 'Width');\r\n };\r\n\r\n LayoutMode.prototype.getRowHeight = function() {\r\n this.getSegmentSize('row', 'Height');\r\n };\r\n\r\n /**\r\n * get columnWidth or rowHeight\r\n * segment: 'column' or 'row'\r\n * size 'Width' or 'Height'\r\n **/\r\n LayoutMode.prototype.getSegmentSize = function(segment, size) {\r\n var segmentName = segment + size;\r\n var outerSize = 'outer' + size;\r\n // columnWidth / outerWidth // rowHeight / outerHeight\r\n this._getMeasurement(segmentName, outerSize);\r\n // got rowHeight or columnWidth, we can chill\r\n if (this[segmentName]) {\r\n return;\r\n }\r\n // fall back to item of first element\r\n var firstItemSize = this.getFirstItemSize();\r\n this[segmentName] = firstItemSize && firstItemSize[outerSize] ||\r\n // or size of container\r\n this.isotope.size['inner' + size];\r\n };\r\n\r\n LayoutMode.prototype.getFirstItemSize = function() {\r\n var firstItem = this.isotope.filteredItems[0];\r\n return firstItem && firstItem.element && getSize(firstItem.element);\r\n };\r\n\r\n // ----- methods that should reference isotope ----- //\r\n LayoutMode.prototype.layout = function() {\r\n this.isotope.layout.apply(this.isotope, arguments);\r\n };\r\n\r\n LayoutMode.prototype.getSize = function() {\r\n this.isotope.getSize();\r\n this.size = this.isotope.size;\r\n };\r\n\r\n // -------------------------- create -------------------------- //\r\n LayoutMode.modes = {};\r\n\r\n LayoutMode.create = function(namespace, options) {\r\n\r\n function Mode() {\r\n LayoutMode.apply(this, arguments);\r\n }\r\n\r\n Mode.prototype = new LayoutMode();\r\n\r\n // default options\r\n if (options) {\r\n Mode.options = options;\r\n }\r\n\r\n Mode.prototype.namespace = namespace;\r\n // register in Isotope\r\n LayoutMode.modes[namespace] = Mode;\r\n\r\n return Mode;\r\n };\r\n\r\n return LayoutMode;\r\n\r\n}));\r\n\r\n/*!\r\n * Masonry v3.3.0\r\n * Cascading grid layout library\r\n * http://masonry.desandro.com\r\n * MIT License\r\n * by David DeSandro\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD\r\n define('masonry/masonry', ['outlayer/outlayer', 'get-size/get-size', 'fizzy-ui-utils/utils'], factory);\r\n } else if (typeof exports === 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('outlayer'), require('get-size'), require('fizzy-ui-utils'));\r\n } else {\r\n // browser global\r\n window.Masonry = factory(\r\n window.Outlayer, window.getSize, window.fizzyUIUtils);\r\n }\r\n\r\n}(window, function factory(Outlayer, getSize, utils) {\r\n\r\n\r\n\r\n // -------------------------- masonryDefinition -------------------------- //\r\n // create an Outlayer layout class\r\n var Masonry = Outlayer.create('masonry');\r\n\r\n Masonry.prototype._resetLayout = function() {\r\n this.getSize();\r\n this._getMeasurement('columnWidth', 'outerWidth');\r\n this._getMeasurement('gutter', 'outerWidth');\r\n this.measureColumns();\r\n\r\n // reset column Y\r\n var i = this.cols;\r\n this.colYs = [];\r\n while (i--) {\r\n this.colYs.push(0);\r\n }\r\n\r\n this.maxY = 0;\r\n };\r\n\r\n Masonry.prototype.measureColumns = function() {\r\n this.getContainerWidth();\r\n // if columnWidth is 0, default to outerWidth of first item\r\n if (!this.columnWidth) {\r\n var firstItem = this.items[0];\r\n var firstItemElem = firstItem && firstItem.element;\r\n // columnWidth fall back to item of first element\r\n this.columnWidth = firstItemElem && getSize(firstItemElem).outerWidth ||\r\n // if first elem has no width, default to size of container\r\n this.containerWidth;\r\n }\r\n\r\n var columnWidth = this.columnWidth += this.gutter;\r\n\r\n // calculate columns\r\n var containerWidth = this.containerWidth + this.gutter;\r\n var cols = containerWidth / columnWidth;\r\n // fix rounding errors, typically with gutters\r\n var excess = columnWidth - containerWidth % columnWidth;\r\n // if overshoot is less than a pixel, round up, otherwise floor it\r\n var mathMethod = excess && excess < 1 ? 'round' : 'floor';\r\n cols = Math[mathMethod](cols);\r\n this.cols = Math.max(cols, 1);\r\n };\r\n\r\n Masonry.prototype.getContainerWidth = function() {\r\n // container is parent if fit width\r\n var container = this.options.isFitWidth ? this.element.parentNode : this.element;\r\n // check that this.size and size are there\r\n // IE8 triggers resize on body size change, so they might not be\r\n var size = getSize(container);\r\n this.containerWidth = size && size.innerWidth;\r\n };\r\n\r\n Masonry.prototype._getItemLayoutPosition = function(item) {\r\n item.getSize();\r\n // how many columns does this brick span\r\n var remainder = item.size.outerWidth % this.columnWidth;\r\n var mathMethod = remainder && remainder < 1 ? 'round' : 'ceil';\r\n // round if off by 1 pixel, otherwise use ceil\r\n var colSpan = Math[mathMethod](item.size.outerWidth / this.columnWidth);\r\n colSpan = Math.min(colSpan, this.cols);\r\n\r\n var colGroup = this._getColGroup(colSpan);\r\n // get the minimum Y value from the columns\r\n var minimumY = Math.min.apply(Math, colGroup);\r\n var shortColIndex = utils.indexOf(colGroup, minimumY);\r\n\r\n // position the brick\r\n var position = {\r\n x: this.columnWidth * shortColIndex,\r\n y: minimumY\r\n };\r\n\r\n // apply setHeight to necessary columns\r\n var setHeight = minimumY + item.size.outerHeight;\r\n var setSpan = this.cols + 1 - colGroup.length;\r\n for (var i = 0; i < setSpan; i++) {\r\n this.colYs[shortColIndex + i] = setHeight;\r\n }\r\n\r\n return position;\r\n };\r\n\r\n /**\r\n * @param {Number} colSpan - number of columns the element spans\r\n * @returns {Array} colGroup\r\n */\r\n Masonry.prototype._getColGroup = function(colSpan) {\r\n if (colSpan < 2) {\r\n // if brick spans only one column, use all the column Ys\r\n return this.colYs;\r\n }\r\n\r\n var colGroup = [];\r\n // how many different places could this brick fit horizontally\r\n var groupCount = this.cols + 1 - colSpan;\r\n // for each group potential horizontal position\r\n for (var i = 0; i < groupCount; i++) {\r\n // make an array of colY values for that one group\r\n var groupColYs = this.colYs.slice(i, i + colSpan);\r\n // and get the max value of the array\r\n colGroup[i] = Math.max.apply(Math, groupColYs);\r\n }\r\n return colGroup;\r\n };\r\n\r\n Masonry.prototype._manageStamp = function(stamp) {\r\n var stampSize = getSize(stamp);\r\n var offset = this._getElementOffset(stamp);\r\n // get the columns that this stamp affects\r\n var firstX = this.options.isOriginLeft ? offset.left : offset.right;\r\n var lastX = firstX + stampSize.outerWidth;\r\n var firstCol = Math.floor(firstX / this.columnWidth);\r\n firstCol = Math.max(0, firstCol);\r\n var lastCol = Math.floor(lastX / this.columnWidth);\r\n // lastCol should not go over if multiple of columnWidth #425\r\n lastCol -= lastX % this.columnWidth ? 0 : 1;\r\n lastCol = Math.min(this.cols - 1, lastCol);\r\n // set colYs to bottom of the stamp\r\n var stampMaxY = (this.options.isOriginTop ? offset.top : offset.bottom) + stampSize.outerHeight;\r\n for (var i = firstCol; i <= lastCol; i++) {\r\n this.colYs[i] = Math.max(stampMaxY, this.colYs[i]);\r\n }\r\n };\r\n\r\n Masonry.prototype._getContainerSize = function() {\r\n this.maxY = Math.max.apply(Math, this.colYs);\r\n var size = {\r\n height: this.maxY\r\n };\r\n\r\n if (this.options.isFitWidth) {\r\n size.width = this._getContainerFitWidth();\r\n }\r\n\r\n return size;\r\n };\r\n\r\n Masonry.prototype._getContainerFitWidth = function() {\r\n var unusedCols = 0;\r\n // count unused columns\r\n var i = this.cols;\r\n while (--i) {\r\n if (this.colYs[i] !== 0) {\r\n break;\r\n }\r\n unusedCols++;\r\n }\r\n // fit container to columns that have been used\r\n return (this.cols - unusedCols) * this.columnWidth - this.gutter;\r\n };\r\n\r\n Masonry.prototype.needsResizeLayout = function() {\r\n var previousWidth = this.containerWidth;\r\n this.getContainerWidth();\r\n return previousWidth !== this.containerWidth;\r\n };\r\n\r\n return Masonry;\r\n\r\n}));\r\n\r\n/*!\r\n * Masonry layout mode\r\n * sub-classes Masonry\r\n * http://masonry.desandro.com\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('isotope/js/layout-modes/masonry', ['../layout-mode', 'masonry/masonry'], factory);\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('../layout-mode'), require('masonry-layout'));\r\n } else {\r\n // browser global\r\n factory(\r\n window.Isotope.LayoutMode, window.Masonry);\r\n }\r\n\r\n}(window, function factory(LayoutMode, Masonry) {\r\n\r\n\r\n // -------------------------- helpers -------------------------- //\r\n // extend objects\r\n\r\n\r\n function extend(a, b) {\r\n for (var prop in b) {\r\n a[prop] = b[prop];\r\n }\r\n return a;\r\n }\r\n\r\n // -------------------------- masonryDefinition -------------------------- //\r\n // create an Outlayer layout class\r\n var MasonryMode = LayoutMode.create('masonry');\r\n\r\n // save on to these methods\r\n var _getElementOffset = MasonryMode.prototype._getElementOffset;\r\n var layout = MasonryMode.prototype.layout;\r\n var _getMeasurement = MasonryMode.prototype._getMeasurement;\r\n\r\n // sub-class Masonry\r\n extend(MasonryMode.prototype, Masonry.prototype);\r\n\r\n // set back, as it was overwritten by Masonry\r\n MasonryMode.prototype._getElementOffset = _getElementOffset;\r\n MasonryMode.prototype.layout = layout;\r\n MasonryMode.prototype._getMeasurement = _getMeasurement;\r\n\r\n var measureColumns = MasonryMode.prototype.measureColumns;\r\n MasonryMode.prototype.measureColumns = function() {\r\n // set items, used if measuring first item\r\n this.items = this.isotope.filteredItems;\r\n measureColumns.call(this);\r\n };\r\n\r\n // HACK copy over isOriginLeft/Top options\r\n var _manageStamp = MasonryMode.prototype._manageStamp;\r\n MasonryMode.prototype._manageStamp = function() {\r\n this.options.isOriginLeft = this.isotope.options.isOriginLeft;\r\n this.options.isOriginTop = this.isotope.options.isOriginTop;\r\n _manageStamp.apply(this, arguments);\r\n };\r\n\r\n return MasonryMode;\r\n\r\n}));\r\n\r\n/**\r\n * fitRows layout mode\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('isotope/js/layout-modes/fit-rows', ['../layout-mode'], factory);\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('../layout-mode'));\r\n } else {\r\n // browser global\r\n factory(\r\n window.Isotope.LayoutMode);\r\n }\r\n\r\n}(window, function factory(LayoutMode) {\r\n\r\n\r\n var FitRows = LayoutMode.create('fitRows');\r\n\r\n FitRows.prototype._resetLayout = function() {\r\n this.x = 0;\r\n this.y = 0;\r\n this.maxY = 0;\r\n this._getMeasurement('gutter', 'outerWidth');\r\n };\r\n\r\n FitRows.prototype._getItemLayoutPosition = function(item) {\r\n item.getSize();\r\n\r\n var itemWidth = item.size.outerWidth + this.gutter;\r\n // if this element cannot fit in the current row\r\n var containerWidth = this.isotope.size.innerWidth + this.gutter;\r\n if (this.x !== 0 && itemWidth + this.x > containerWidth) {\r\n this.x = 0;\r\n this.y = this.maxY;\r\n }\r\n\r\n var position = {\r\n x: this.x,\r\n y: this.y\r\n };\r\n\r\n this.maxY = Math.max(this.maxY, this.y + item.size.outerHeight);\r\n this.x += itemWidth;\r\n\r\n return position;\r\n };\r\n\r\n FitRows.prototype._getContainerSize = function() {\r\n return {\r\n height: this.maxY\r\n };\r\n };\r\n\r\n return FitRows;\r\n\r\n}));\r\n\r\n/**\r\n * vertical layout mode\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define('isotope/js/layout-modes/vertical', ['../layout-mode'], factory);\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n require('../layout-mode'));\r\n } else {\r\n // browser global\r\n factory(\r\n window.Isotope.LayoutMode);\r\n }\r\n\r\n}(window, function factory(LayoutMode) {\r\n\r\n\r\n var Vertical = LayoutMode.create('vertical', {\r\n horizontalAlignment: 0\r\n });\r\n\r\n Vertical.prototype._resetLayout = function() {\r\n this.y = 0;\r\n };\r\n\r\n Vertical.prototype._getItemLayoutPosition = function(item) {\r\n item.getSize();\r\n var x = (this.isotope.size.innerWidth - item.size.outerWidth) * this.options.horizontalAlignment;\r\n var y = this.y;\r\n this.y += item.size.outerHeight;\r\n return {\r\n x: x,\r\n y: y\r\n };\r\n };\r\n\r\n Vertical.prototype._getContainerSize = function() {\r\n return {\r\n height: this.y\r\n };\r\n };\r\n\r\n return Vertical;\r\n\r\n}));\r\n\r\n/*!\r\n * Isotope v2.2.0\r\n *\r\n * Licensed GPLv3 for open source use\r\n * or Isotope Commercial License for commercial use\r\n *\r\n * http://isotope.metafizzy.co\r\n * Copyright 2015 Metafizzy\r\n */\r\n\r\n(function(window, factory) {\r\n\r\n // universal module definition\r\n if (typeof define == 'function' && define.amd) {\r\n // AMD\r\n define(['outlayer/outlayer', 'get-size/get-size', 'matches-selector/matches-selector', 'fizzy-ui-utils/utils', 'isotope/js/item', 'isotope/js/layout-mode',\r\n // include default layout modes\r\n 'isotope/js/layout-modes/masonry', 'isotope/js/layout-modes/fit-rows', 'isotope/js/layout-modes/vertical'], function(Outlayer, getSize, matchesSelector, utils, Item, LayoutMode) {\r\n return factory(window, Outlayer, getSize, matchesSelector, utils, Item, LayoutMode);\r\n });\r\n } else if (typeof exports == 'object') {\r\n // CommonJS\r\n module.exports = factory(\r\n window, require('outlayer'), require('get-size'), require('desandro-matches-selector'), require('fizzy-ui-utils'), require('./item'), require('./layout-mode'),\r\n // include default layout modes\r\n require('./layout-modes/masonry'), require('./layout-modes/fit-rows'), require('./layout-modes/vertical'));\r\n } else {\r\n // browser global\r\n window.Isotope = factory(\r\n window, window.Outlayer, window.getSize, window.matchesSelector, window.fizzyUIUtils, window.Isotope.Item, window.Isotope.LayoutMode);\r\n }\r\n\r\n}(window, function factory(window, Outlayer, getSize, matchesSelector, utils, Item, LayoutMode) {\r\n\r\n\r\n\r\n // -------------------------- vars -------------------------- //\r\n var jQuery = window.jQuery;\r\n\r\n // -------------------------- helpers -------------------------- //\r\n var trim = String.prototype.trim ?\r\n function(str) {\r\n return str.trim();\r\n } : function(str) {\r\n return str.replace(/^\\s+|\\s+$/g, '');\r\n };\r\n\r\n var docElem = document.documentElement;\r\n\r\n var getText = docElem.textContent ?\r\n function(elem) {\r\n return elem.textContent;\r\n } : function(elem) {\r\n return elem.innerText;\r\n };\r\n\r\n // -------------------------- isotopeDefinition -------------------------- //\r\n // create an Outlayer layout class\r\n var Isotope = Outlayer.create('isotope', {\r\n layoutMode: \"masonry\",\r\n isJQueryFiltering: true,\r\n sortAscending: true\r\n });\r\n\r\n Isotope.Item = Item;\r\n Isotope.LayoutMode = LayoutMode;\r\n\r\n Isotope.prototype._create = function() {\r\n this.itemGUID = 0;\r\n // functions that sort items\r\n this._sorters = {};\r\n this._getSorters();\r\n // call super\r\n Outlayer.prototype._create.call(this);\r\n\r\n // create layout modes\r\n this.modes = {};\r\n // start filteredItems with all items\r\n this.filteredItems = this.items;\r\n // keep of track of sortBys\r\n this.sortHistory = ['original-order'];\r\n // create from registered layout modes\r\n for (var name in LayoutMode.modes) {\r\n this._initLayoutMode(name);\r\n }\r\n };\r\n\r\n Isotope.prototype.reloadItems = function() {\r\n // reset item ID counter\r\n this.itemGUID = 0;\r\n // call super\r\n Outlayer.prototype.reloadItems.call(this);\r\n };\r\n\r\n Isotope.prototype._itemize = function() {\r\n var items = Outlayer.prototype._itemize.apply(this, arguments);\r\n // assign ID for original-order\r\n for (var i = 0, len = items.length; i < len; i++) {\r\n var item = items[i];\r\n item.id = this.itemGUID++;\r\n }\r\n this._updateItemsSortData(items);\r\n return items;\r\n };\r\n\r\n\r\n // -------------------------- layout -------------------------- //\r\n Isotope.prototype._initLayoutMode = function(name) {\r\n var Mode = LayoutMode.modes[name];\r\n // set mode options\r\n // HACK extend initial options, back-fill in default options\r\n var initialOpts = this.options[name] || {};\r\n this.options[name] = Mode.options ? utils.extend(Mode.options, initialOpts) : initialOpts;\r\n // init layout mode instance\r\n this.modes[name] = new Mode(this);\r\n };\r\n\r\n\r\n Isotope.prototype.layout = function() {\r\n // if first time doing layout, do all magic\r\n if (!this._isLayoutInited && this.options.isInitLayout) {\r\n this.arrange();\r\n return;\r\n }\r\n this._layout();\r\n };\r\n\r\n // private method to be used in layout() & magic()\r\n Isotope.prototype._layout = function() {\r\n // don't animate first layout\r\n var isInstant = this._getIsInstant();\r\n // layout flow\r\n this._resetLayout();\r\n this._manageStamps();\r\n this.layoutItems(this.filteredItems, isInstant);\r\n\r\n // flag for initalized\r\n this._isLayoutInited = true;\r\n };\r\n\r\n // filter + sort + layout\r\n Isotope.prototype.arrange = function(opts) {\r\n // set any options pass\r\n this.option(opts);\r\n this._getIsInstant();\r\n // filter, sort, and layout\r\n // filter\r\n var filtered = this._filter(this.items);\r\n this.filteredItems = filtered.matches;\r\n\r\n var _this = this;\r\n\r\n function hideReveal() {\r\n _this.reveal(filtered.needReveal);\r\n _this.hide(filtered.needHide);\r\n }\r\n\r\n this._bindArrangeComplete();\r\n\r\n if (this._isInstant) {\r\n this._noTransition(hideReveal);\r\n } else {\r\n hideReveal();\r\n }\r\n\r\n this._sort();\r\n this._layout();\r\n };\r\n // alias to _init for main plugin method\r\n Isotope.prototype._init = Isotope.prototype.arrange;\r\n\r\n // HACK\r\n // Don't animate/transition first layout\r\n // Or don't animate/transition other layouts\r\n Isotope.prototype._getIsInstant = function() {\r\n var isInstant = this.options.isLayoutInstant !== undefined ? this.options.isLayoutInstant : !this._isLayoutInited;\r\n this._isInstant = isInstant;\r\n return isInstant;\r\n };\r\n\r\n // listen for layoutComplete, hideComplete and revealComplete\r\n // to trigger arrangeComplete\r\n Isotope.prototype._bindArrangeComplete = function() {\r\n // listen for 3 events to trigger arrangeComplete\r\n var isLayoutComplete, isHideComplete, isRevealComplete;\r\n var _this = this;\r\n\r\n function arrangeParallelCallback() {\r\n if (isLayoutComplete && isHideComplete && isRevealComplete) {\r\n _this.emitEvent('arrangeComplete', [_this.filteredItems]);\r\n }\r\n }\r\n this.once('layoutComplete', function() {\r\n isLayoutComplete = true;\r\n arrangeParallelCallback();\r\n });\r\n this.once('hideComplete', function() {\r\n isHideComplete = true;\r\n arrangeParallelCallback();\r\n });\r\n this.once('revealComplete', function() {\r\n isRevealComplete = true;\r\n arrangeParallelCallback();\r\n });\r\n };\r\n\r\n // -------------------------- filter -------------------------- //\r\n Isotope.prototype._filter = function(items) {\r\n var filter = this.options.filter;\r\n filter = filter || '*';\r\n var matches = [];\r\n var hiddenMatched = [];\r\n var visibleUnmatched = [];\r\n\r\n var test = this._getFilterTest(filter);\r\n\r\n // test each item\r\n for (var i = 0, len = items.length; i < len; i++) {\r\n var item = items[i];\r\n if (item.isIgnored) {\r\n continue;\r\n }\r\n // add item to either matched or unmatched group\r\n var isMatched = test(item);\r\n // item.isFilterMatched = isMatched;\r\n // add to matches if its a match\r\n if (isMatched) {\r\n matches.push(item);\r\n }\r\n // add to additional group if item needs to be hidden or revealed\r\n if (isMatched && item.isHidden) {\r\n hiddenMatched.push(item);\r\n } else if (!isMatched && !item.isHidden) {\r\n visibleUnmatched.push(item);\r\n }\r\n }\r\n\r\n // return collections of items to be manipulated\r\n return {\r\n matches: matches,\r\n needReveal: hiddenMatched,\r\n needHide: visibleUnmatched\r\n };\r\n };\r\n\r\n // get a jQuery, function, or a matchesSelector test given the filter\r\n Isotope.prototype._getFilterTest = function(filter) {\r\n if (jQuery && this.options.isJQueryFiltering) {\r\n // use jQuery\r\n return function(item) {\r\n return jQuery(item.element).is(filter);\r\n };\r\n }\r\n if (typeof filter == 'function') {\r\n // use filter as function\r\n return function(item) {\r\n return filter(item.element);\r\n };\r\n }\r\n // default, use filter as selector string\r\n return function(item) {\r\n return matchesSelector(item.element, filter);\r\n };\r\n };\r\n\r\n // -------------------------- sorting -------------------------- //\r\n /**\r\n * @params {Array} elems\r\n * @public\r\n */\r\n Isotope.prototype.updateSortData = function(elems) {\r\n // get items\r\n var items;\r\n if (elems) {\r\n elems = utils.makeArray(elems);\r\n items = this.getItems(elems);\r\n } else {\r\n // update all items if no elems provided\r\n items = this.items;\r\n }\r\n\r\n this._getSorters();\r\n this._updateItemsSortData(items);\r\n };\r\n\r\n Isotope.prototype._getSorters = function() {\r\n var getSortData = this.options.getSortData;\r\n for (var key in getSortData) {\r\n var sorter = getSortData[key];\r\n this._sorters[key] = mungeSorter(sorter);\r\n }\r\n };\r\n\r\n /**\r\n * @params {Array} items - of Isotope.Items\r\n * @private\r\n */\r\n Isotope.prototype._updateItemsSortData = function(items) {\r\n // do not update if no items\r\n var len = items && items.length;\r\n\r\n for (var i = 0; len && i < len; i++) {\r\n var item = items[i];\r\n item.updateSortData();\r\n }\r\n };\r\n\r\n // ----- munge sorter ----- //\r\n // encapsulate this, as we just need mungeSorter\r\n // other functions in here are just for munging\r\n var mungeSorter = (function() {\r\n // add a magic layer to sorters for convienent shorthands\r\n // `.foo-bar` will use the text of .foo-bar querySelector\r\n // `[foo-bar]` will use attribute\r\n // you can also add parser\r\n // `.foo-bar parseInt` will parse that as a number\r\n\r\n\r\n function mungeSorter(sorter) {\r\n // if not a string, return function or whatever it is\r\n if (typeof sorter != 'string') {\r\n return sorter;\r\n }\r\n // parse the sorter string\r\n var args = trim(sorter).split(' ');\r\n var query = args[0];\r\n // check if query looks like [an-attribute]\r\n var attrMatch = query.match(/^\\[(.+)\\]$/);\r\n var attr = attrMatch && attrMatch[1];\r\n var getValue = getValueGetter(attr, query);\r\n // use second argument as a parser\r\n var parser = Isotope.sortDataParsers[args[1]];\r\n // parse the value, if there was a parser\r\n sorter = parser ?\r\n function(elem) {\r\n return elem && parser(getValue(elem));\r\n } :\r\n // otherwise just return value\r\n\r\n\r\n function(elem) {\r\n return elem && getValue(elem);\r\n };\r\n\r\n return sorter;\r\n }\r\n\r\n // get an attribute getter, or get text of the querySelector\r\n\r\n\r\n function getValueGetter(attr, query) {\r\n var getValue;\r\n // if query looks like [foo-bar], get attribute\r\n if (attr) {\r\n getValue = function(elem) {\r\n return elem.getAttribute(attr);\r\n };\r\n } else {\r\n // otherwise, assume its a querySelector, and get its text\r\n getValue = function(elem) {\r\n var child = elem.querySelector(query);\r\n return child && getText(child);\r\n };\r\n }\r\n return getValue;\r\n }\r\n\r\n return mungeSorter;\r\n })();\r\n\r\n // parsers used in getSortData shortcut strings\r\n Isotope.sortDataParsers = {\r\n 'parseInt': function(val) {\r\n return parseInt(val, 10);\r\n },\r\n 'parseFloat': function(val) {\r\n return parseFloat(val);\r\n }\r\n };\r\n\r\n // ----- sort method ----- //\r\n // sort filteredItem order\r\n Isotope.prototype._sort = function() {\r\n var sortByOpt = this.options.sortBy;\r\n if (!sortByOpt) {\r\n return;\r\n }\r\n // concat all sortBy and sortHistory\r\n var sortBys = [].concat.apply(sortByOpt, this.sortHistory);\r\n // sort magic\r\n var itemSorter = getItemSorter(sortBys, this.options.sortAscending);\r\n this.filteredItems.sort(itemSorter);\r\n // keep track of sortBy History\r\n if (sortByOpt != this.sortHistory[0]) {\r\n // add to front, oldest goes in last\r\n this.sortHistory.unshift(sortByOpt);\r\n }\r\n };\r\n\r\n // returns a function used for sorting\r\n\r\n\r\n function getItemSorter(sortBys, sortAsc) {\r\n return function sorter(itemA, itemB) {\r\n // cycle through all sortKeys\r\n for (var i = 0, len = sortBys.length; i < len; i++) {\r\n var sortBy = sortBys[i];\r\n var a = itemA.sortData[sortBy];\r\n var b = itemB.sortData[sortBy];\r\n if (a > b || a < b) {\r\n // if sortAsc is an object, use the value given the sortBy key\r\n var isAscending = sortAsc[sortBy] !== undefined ? sortAsc[sortBy] : sortAsc;\r\n var direction = isAscending ? 1 : -1;\r\n return (a > b ? 1 : -1) * direction;\r\n }\r\n }\r\n return 0;\r\n };\r\n }\r\n\r\n // -------------------------- methods -------------------------- //\r\n // get layout mode\r\n Isotope.prototype._mode = function() {\r\n var layoutMode = this.options.layoutMode;\r\n var mode = this.modes[layoutMode];\r\n if (!mode) {\r\n // TODO console.error\r\n throw new Error('No layout mode: ' + layoutMode);\r\n }\r\n // HACK sync mode's options\r\n // any options set after init for layout mode need to be synced\r\n mode.options = this.options[layoutMode];\r\n return mode;\r\n };\r\n\r\n Isotope.prototype._resetLayout = function() {\r\n // trigger original reset layout\r\n Outlayer.prototype._resetLayout.call(this);\r\n this._mode()._resetLayout();\r\n };\r\n\r\n Isotope.prototype._getItemLayoutPosition = function(item) {\r\n return this._mode()._getItemLayoutPosition(item);\r\n };\r\n\r\n Isotope.prototype._manageStamp = function(stamp) {\r\n this._mode()._manageStamp(stamp);\r\n };\r\n\r\n Isotope.prototype._getContainerSize = function() {\r\n return this._mode()._getContainerSize();\r\n };\r\n\r\n Isotope.prototype.needsResizeLayout = function() {\r\n return this._mode().needsResizeLayout();\r\n };\r\n\r\n // -------------------------- adding & removing -------------------------- //\r\n // HEADS UP overwrites default Outlayer appended\r\n Isotope.prototype.appended = function(elems) {\r\n var items = this.addItems(elems);\r\n if (!items.length) {\r\n return;\r\n }\r\n // filter, layout, reveal new items\r\n var filteredItems = this._filterRevealAdded(items);\r\n // add to filteredItems\r\n this.filteredItems = this.filteredItems.concat(filteredItems);\r\n };\r\n\r\n // HEADS UP overwrites default Outlayer prepended\r\n Isotope.prototype.prepended = function(elems) {\r\n var items = this._itemize(elems);\r\n if (!items.length) {\r\n return;\r\n }\r\n // start new layout\r\n this._resetLayout();\r\n this._manageStamps();\r\n // filter, layout, reveal new items\r\n var filteredItems = this._filterRevealAdded(items);\r\n // layout previous items\r\n this.layoutItems(this.filteredItems);\r\n // add to items and filteredItems\r\n this.filteredItems = filteredItems.concat(this.filteredItems);\r\n this.items = items.concat(this.items);\r\n };\r\n\r\n Isotope.prototype._filterRevealAdded = function(items) {\r\n var filtered = this._filter(items);\r\n this.hide(filtered.needHide);\r\n // reveal all new items\r\n this.reveal(filtered.matches);\r\n // layout new items, no transition\r\n this.layoutItems(filtered.matches, true);\r\n return filtered.matches;\r\n };\r\n\r\n /**\r\n * Filter, sort, and layout newly-appended item elements\r\n * @param {Array or NodeList or Element} elems\r\n */\r\n Isotope.prototype.insert = function(elems) {\r\n var items = this.addItems(elems);\r\n if (!items.length) {\r\n return;\r\n }\r\n // append item elements\r\n var i, item;\r\n var len = items.length;\r\n for (i = 0; i < len; i++) {\r\n item = items[i];\r\n this.element.appendChild(item.element);\r\n }\r\n // filter new stuff\r\n var filteredInsertItems = this._filter(items).matches;\r\n // set flag\r\n for (i = 0; i < len; i++) {\r\n items[i].isLayoutInstant = true;\r\n }\r\n this.arrange();\r\n // reset flag\r\n for (i = 0; i < len; i++) {\r\n delete items[i].isLayoutInstant;\r\n }\r\n this.reveal(filteredInsertItems);\r\n };\r\n\r\n var _remove = Isotope.prototype.remove;\r\n Isotope.prototype.remove = function(elems) {\r\n elems = utils.makeArray(elems);\r\n var removeItems = this.getItems(elems);\r\n // do regular thing\r\n _remove.call(this, elems);\r\n // bail if no items to remove\r\n var len = removeItems && removeItems.length;\r\n if (!len) {\r\n return;\r\n }\r\n // remove elems from filteredItems\r\n for (var i = 0; i < len; i++) {\r\n var item = removeItems[i];\r\n // remove item from collection\r\n utils.removeFrom(this.filteredItems, item);\r\n }\r\n };\r\n\r\n Isotope.prototype.shuffle = function() {\r\n // update random sortData\r\n for (var i = 0, len = this.items.length; i < len; i++) {\r\n var item = this.items[i];\r\n item.sortData.random = Math.random();\r\n }\r\n this.options.sortBy = 'random';\r\n this._sort();\r\n this._layout();\r\n };\r\n\r\n /**\r\n * trigger fn without transition\r\n * kind of hacky to have this in the first place\r\n * @param {Function} fn\r\n * @returns ret\r\n * @private\r\n */\r\n Isotope.prototype._noTransition = function(fn) {\r\n // save transitionDuration before disabling\r\n var transitionDuration = this.options.transitionDuration;\r\n // disable transition\r\n this.options.transitionDuration = 0;\r\n // do it\r\n var returnValue = fn.call(this);\r\n // re-enable transition for reveal\r\n this.options.transitionDuration = transitionDuration;\r\n return returnValue;\r\n };\r\n\r\n // ----- helper methods ----- //\r\n /**\r\n * getter method for getting filtered item elements\r\n * @returns {Array} elems - collection of item elements\r\n */\r\n Isotope.prototype.getFilteredItemElements = function() {\r\n var elems = [];\r\n for (var i = 0, len = this.filteredItems.length; i < len; i++) {\r\n elems.push(this.filteredItems[i].element);\r\n }\r\n return elems;\r\n };\r\n\r\n // ----- ----- //\r\n return Isotope;\r\n\r\n}));","/*! Magnific Popup - v1.0.0 - 2015-01-03\r\n* http://dimsemenov.com/plugins/magnific-popup/\r\n* Copyright (c) 2015 Dmitry Semenov; */\r\n!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(\"object\"==typeof exports?require(\"jquery\"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=\"Close\",i=\"BeforeClose\",j=\"AfterClose\",k=\"BeforeAppend\",l=\"MarkupParse\",m=\"Open\",n=\"Change\",o=\"mfp\",p=\".\"+o,q=\"mfp-ready\",r=\"mfp-removing\",s=\"mfp-prevent-close\",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement(\"div\");return f.className=\"mfp-\"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace(\"%title%\",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement(\"p\").style,b=[\"ms\",\"O\",\"Moz\",\"Webkit\"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+\"Transition\"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf(\"MSIE 7.\"),b.isIE8=-1!==c.indexOf(\"MSIE 8.\"),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split(\"_\"),e.length>1){var d=b.find(p+\"-\"+e[0]);if(d.length>0){var f=e[1];\"replaceWith\"===f?d[0]!==c[0]&&d.replaceWith(c):\"img\"===f?d.is(\"img\")?d.attr(\"src\",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(p+\"-\"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement(\"div\");a.style.cssText=\"width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;\",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:\"\",preloader:!0,focus:\"\",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:\"auto\",fixedBgPos:\"auto\",overflowY:\"auto\",closeMarkup:'',tClose:\"Close (Esc)\",tLoading:\"Loading...\"}},a.fn.magnificPopup=function(c){A();var d=a(this);if(\"string\"==typeof c)if(\"open\"===c){var e,f=u?d.data(\"magnificPopup\"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data(\"magnificPopup\",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F=\"inline\",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:\"hide\",markup:\"\",tNotFound:\"Content not found\"},proto:{initInline:function(){b.types.push(F),w(h+\".\"+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C=\"mfp-\"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus(\"ready\")}else b.updateStatus(\"error\",e.tNotFound),f=a(\"
    \");return c.inlineElement=f,f}return b.updateStatus(\"ready\"),b._parseMarkup(d,{},c),d}}});var H,I=\"ajax\",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:\"mfp-ajax-cur\",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+\".\"+I,K),w(\"BeforeChange.\"+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus(\"loading\");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y(\"ParseAjax\",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus(\"ready\"),y(\"AjaxContentAdded\")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus(\"error\",b.st.ajax.tError.replace(\"%url%\",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),\"\"}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||\"\"}return\"\"};a.magnificPopup.registerModule(\"image\",{options:{markup:'
    ',cursor:\"mfp-zoom-out-cur\",titleSrc:\"title\",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=\".image\";b.types.push(\"image\"),w(m+d,function(){\"image\"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off(\"resize\"+p)}),w(\"Resize\"+d,b.resizeImage),b.isLowIE&&w(\"AfterChange\",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css(\"padding-top\"),10)+parseInt(a.img.css(\"padding-bottom\"),10)),a.img.css(\"max-height\",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y(\"ImageHasSize\",a),a.imgHidden&&(b.content&&b.content.removeClass(\"mfp-loading\"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"ready\")),c.hasSize=!0,c.loaded=!0,y(\"ImageLoadComplete\")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(\".mfploader\"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(\".mfp-img\");if(i.length){var j=document.createElement(\"img\");j.className=\"mfp-img\",c.el&&c.el.find(\"img\").length&&(j.alt=c.el.find(\"img\").attr(\"alt\")),c.img=a(j).on(\"load.mfploader\",f).on(\"error.mfploader\",g),j.src=c.src,i.is(\"img\")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass(\"mfp-loading\"),b.updateStatus(\"error\",h.tError.replace(\"%url%\",c.src))):(d.removeClass(\"mfp-loading\"),b.updateStatus(\"ready\")),d):(b.updateStatus(\"loading\"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass(\"mfp-loading\"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement(\"p\").style.MozTransform),N};a.magnificPopup.registerModule(\"zoom\",{options:{enabled:!1,easing:\"ease-in-out\",duration:300,opener:function(a){return a.is(\"img\")?a:a.find(\"img\")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=\".zoom\";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr(\"style\").removeAttr(\"class\").addClass(\"mfp-animated-image\"),d=\"all \"+c.duration/1e3+\"s \"+c.easing,e={position:\"fixed\",zIndex:9999,left:0,top:0,\"-webkit-backface-visibility\":\"hidden\"},f=\"transition\";return e[\"-webkit-\"+f]=e[\"-moz-\"+f]=e[\"-o-\"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css(\"visibility\",\"visible\")};w(\"BuildControls\"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css(\"visibility\",\"hidden\"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y(\"ZoomAnimationEnded\")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css(\"visibility\",\"hidden\"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return\"image\"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css(\"padding-top\"),10),g=parseInt(d.css(\"padding-bottom\"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h[\"-moz-transform\"]=h.transform=\"translate(\"+e.left+\"px,\"+e.top+\"px)\":(h.left=e.left,h.top=e.top),h}}});var P=\"iframe\",Q=\"//about:blank\",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find(\"iframe\");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css(\"display\",a?\"block\":\"none\"))}};a.magnificPopup.registerModule(P,{options:{markup:'
    ',srcAction:\"iframe_src\",patterns:{youtube:{index:\"youtube.com\",id:\"v=\",src:\"//www.youtube.com/embed/%id%?autoplay=1\"},vimeo:{index:\"vimeo.com/\",id:\"/\",src:\"//player.vimeo.com/video/%id%?autoplay=1\"},gmaps:{index:\"//maps.google.\",src:\"%id%&output=embed\"}}},proto:{initIframe:function(){b.types.push(P),w(\"BeforeChange\",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+\".\"+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e=\"string\"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace(\"%id%\",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus(\"ready\"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule(\"gallery\",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:\"Previous (Left arrow key)\",tNext:\"Next (Right arrow key)\",tCounter:\"%curr% of %total%\"},proto:{initGallery:function(){var c=b.st.gallery,e=\".mfp-gallery\",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=\" mfp-gallery\",w(m+e,function(){c.navigateByImgClick&&b.wrap.on(\"click\"+e,\".mfp-img\",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on(\"keydown\"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w(\"UpdateStatus\"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):\"\"}),w(\"BuildControls\"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,\"left\")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,\"right\")).addClass(s),h=g?\"mfpFastClick\":\"click\";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x(\"b\",e[0],!1,!0),x(\"a\",e[0],!1,!0),x(\"b\",f[0],!1,!0),x(\"a\",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off(\"click\"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y(\"LazyLoad\",d),\"image\"===d.type&&(d.img=a('').on(\"load.mfploader\",function(){d.hasSize=!0}).on(\"error.mfploader\",function(){d.hasSize=!0,d.loadError=!0,y(\"LazyLoadError\",d)}).attr(\"src\",d.src)),d.preloaded=!0}}}});var U=\"retina\";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\\.\\w+$/,function(a){return\"@2x\"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w(\"ImageHasSize.\"+U,function(a,b){b.img.css({\"max-width\":b.img[0].naturalWidth/c,width:\"100%\"})}),w(\"ElementParse.\"+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c=\"ontouchstart\"in window,d=function(){v.off(\"touchmove\"+f+\" touchend\"+f)},e=\"mfpFastClick\",f=\".\"+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on(\"touchstart\"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on(\"touchmove\"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on(\"touchend\"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on(\"click\"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off(\"touchstart\"+f+\" click\"+f),c&&v.off(\"touchmove\"+f+\" touchend\"+f)}}(),A()});","(function($){\"use strict\";$.ajaxChimp={responses:{\"We have sent you a confirmation email\":0,\"Please enter a value\":1,\"An email address must contain a single @\":2,\"The domain portion of the email address is invalid (the portion after the @: )\":3,\"The username portion of the email address is invalid (the portion before the @: )\":4,\"This email address looks fake or invalid. Please enter a real email address\":5},translations:{en:null},init:function(selector,options){$(selector).ajaxChimp(options)}};$.fn.ajaxChimp=function(options){$(this).each(function(i,elem){var form=$(elem);var email=form.find(\"input[type=email]\");var label=form.find(\"label[for=\"+email.attr(\"id\")+\"]\");var settings=$.extend({url:form.attr(\"action\"),language:\"en\"},options);var url=settings.url.replace(\"/post?\",\"/post-json?\").concat(\"&c=?\");form.attr(\"novalidate\",\"true\");email.attr(\"name\",\"EMAIL\");form.submit(function(){var msg;function successCallback(resp){if(resp.result===\"success\"){msg=\"We have sent you a confirmation email\";label.removeClass(\"error\").addClass(\"valid\");email.removeClass(\"error\").addClass(\"valid\")}else{email.removeClass(\"valid\").addClass(\"error\");label.removeClass(\"valid\").addClass(\"error\");var index=-1;try{var parts=resp.msg.split(\" - \",2);if(parts[1]===undefined){msg=resp.msg}else{var i=parseInt(parts[0],10);if(i.toString()===parts[0]){index=parts[0];msg=parts[1]}else{index=-1;msg=resp.msg}}}catch(e){index=-1;msg=resp.msg}}if(settings.language!==\"en\"&&$.ajaxChimp.responses[msg]!==undefined&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]){msg=$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]}label.html(msg);label.show(2e3);if(settings.callback){settings.callback(resp)}}var data={};var dataArray=form.serializeArray();$.each(dataArray,function(index,item){data[item.name]=item.value});$.ajax({url:url,data:data,success:successCallback,dataType:\"jsonp\",error:function(resp,text){console.log(\"mailchimp ajax submit error: \"+text)}});var submitMsg=\"Submitting...\";if(settings.language!==\"en\"&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language][\"submit\"]){submitMsg=$.ajaxChimp.translations[settings.language][\"submit\"]}label.html(submitMsg).show(2e3);return false})});return this}})(jQuery);\r\n","var _0xf11d=[\"\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\",\"\\x66\\x6E\",\"\\x68\\x6F\\x76\\x65\\x72\",\"\\x66\\x61\\x64\\x65\",\"\\x6C\\x65\\x66\\x74\",\"\\x6E\\x6F\\x6E\\x65\",\"\\x2B\",\"\\x65\\x78\\x74\\x65\\x6E\\x64\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x6D\\x65\\x6E\\x75\",\"\\x63\\x68\\x69\\x6C\\x64\\x72\\x65\\x6E\",\"\\x6C\\x69\",\"\\x66\\x69\\x6E\\x64\",\"\\x6C\\x65\\x6E\\x67\\x74\\x68\",\"\\x2E\\x64\\x72\\x6F\\x70\\x64\\x6F\\x77\\x6E\\x2C\\x20\\x2E\\x6D\\x65\\x67\\x61\\x6D\\x65\\x6E\\x75\",\"\\x73\\x69\\x62\\x6C\\x69\\x6E\\x67\\x73\",\"\\x3C\\x73\\x70\\x61\\x6E\\x20\\x63\\x6C\\x61\\x73\\x73\\x3D\\x27\\x69\\x6E\\x64\\x69\\x63\\x61\\x74\\x6F\\x72\\x27\\x3E\",\"\\x69\\x6E\\x64\\x69\\x63\\x61\\x74\\x6F\\x72\\x46\\x69\\x72\\x73\\x74\\x4C\\x65\\x76\\x65\\x6C\",\"\\x3C\\x2F\\x73\\x70\\x61\\x6E\\x3E\",\"\\x61\\x70\\x70\\x65\\x6E\\x64\",\"\\x65\\x61\\x63\\x68\",\"\\x61\",\"\\x2E\\x64\\x72\\x6F\\x70\\x64\\x6F\\x77\\x6E\",\"\\x69\\x6E\\x64\\x69\\x63\\x61\\x74\\x6F\\x72\\x53\\x65\\x63\\x6F\\x6E\\x64\\x4C\\x65\\x76\\x65\\x6C\",\"\\x61\\x6C\\x69\\x67\\x6E\",\"\\x72\\x69\\x67\\x68\\x74\",\"\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x72\\x69\\x67\\x68\\x74\",\"\\x61\\x64\\x64\\x43\\x6C\\x61\\x73\\x73\",\"\\x69\\x6E\\x64\\x65\\x6E\\x74\\x43\\x68\\x69\\x6C\\x64\\x72\\x65\\x6E\",\"\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x69\\x6E\\x64\\x65\\x6E\\x74\\x65\\x64\",\"\\x72\\x65\\x73\\x70\\x6F\\x6E\\x73\\x69\\x76\\x65\",\"\\x3C\\x61\\x20\\x68\\x72\\x65\\x66\\x3D\\x27\\x6A\\x61\\x76\\x61\\x73\\x63\\x72\\x69\\x70\\x74\\x3A\\x76\\x6F\\x69\\x64\\x28\\x30\\x29\\x27\\x20\\x63\\x6C\\x61\\x73\\x73\\x3D\\x27\\x73\\x68\\x6F\\x77\\x68\\x69\\x64\\x65\\x27\\x3E\\x3C\\x65\\x6D\\x3E\\x3C\\x2F\\x65\\x6D\\x3E\\x3C\\x65\\x6D\\x3E\\x3C\\x2F\\x65\\x6D\\x3E\\x3C\\x65\\x6D\\x3E\\x3C\\x2F\\x65\\x6D\\x3E\\x3C\\x2F\\x61\\x3E\",\"\\x70\\x72\\x65\\x70\\x65\\x6E\\x64\",\"\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x72\\x65\\x73\\x70\\x6F\\x6E\\x73\\x69\\x76\\x65\",\"\\x2E\\x73\\x68\\x6F\\x77\\x68\\x69\\x64\\x65\",\"\\x73\\x63\\x72\\x6F\\x6C\\x6C\\x61\\x62\\x6C\\x65\",\"\\x3C\\x6C\\x69\\x20\\x63\\x6C\\x61\\x73\\x73\\x3D\\x27\\x73\\x63\\x72\\x6F\\x6C\\x6C\\x61\\x62\\x6C\\x65\\x2D\\x66\\x69\\x78\\x27\\x3E\\x3C\\x2F\\x6C\\x69\\x3E\",\"\\x6D\\x61\\x78\\x2D\\x68\\x65\\x69\\x67\\x68\\x74\",\"\\x73\\x63\\x72\\x6F\\x6C\\x6C\\x61\\x62\\x6C\\x65\\x4D\\x61\\x78\\x48\\x65\\x69\\x67\\x68\\x74\",\"\\x63\\x73\\x73\",\"\\x65\\x66\\x66\\x65\\x63\\x74\",\"\\x61\\x6E\\x69\\x6D\\x61\\x74\\x69\\x6F\\x6E\",\"\\x73\\x68\\x6F\\x77\\x53\\x70\\x65\\x65\\x64\",\"\\x66\\x61\\x64\\x65\\x49\\x6E\",\"\\x73\\x68\\x6F\\x77\\x44\\x65\\x6C\\x61\\x79\",\"\\x64\\x65\\x6C\\x61\\x79\",\"\\x73\\x74\\x6F\\x70\",\"\\x73\\x6C\\x69\\x64\\x65\\x44\\x6F\\x77\\x6E\",\"\\x72\\x65\\x6D\\x6F\\x76\\x65\\x43\\x6C\\x61\\x73\\x73\",\"\\x68\\x69\\x64\\x65\\x53\\x70\\x65\\x65\\x64\",\"\\x66\\x61\\x64\\x65\\x4F\\x75\\x74\",\"\\x68\\x69\\x64\\x65\\x44\\x65\\x6C\\x61\\x79\",\"\\x73\\x6C\\x69\\x64\\x65\\x55\\x70\",\"\\x68\\x69\\x64\\x65\",\"\\x6D\\x61\\x74\\x63\\x68\",\"\\x75\\x73\\x65\\x72\\x41\\x67\\x65\\x6E\\x74\",\"\\x6D\\x73\\x4D\\x61\\x78\\x54\\x6F\\x75\\x63\\x68\\x50\\x6F\\x69\\x6E\\x74\\x73\",\"\\x6E\\x61\\x76\\x69\\x67\\x61\\x74\\x6F\\x72\",\"\\x74\\x72\\x69\\x67\\x67\\x65\\x72\",\"\\x63\\x6C\\x69\\x63\\x6B\",\"\\x63\\x6C\\x69\\x63\\x6B\\x20\\x74\\x6F\\x75\\x63\\x68\\x73\\x74\\x61\\x72\\x74\",\"\\x73\\x74\\x6F\\x70\\x50\\x72\\x6F\\x70\\x61\\x67\\x61\\x74\\x69\\x6F\\x6E\",\"\\x70\\x72\\x65\\x76\\x65\\x6E\\x74\\x44\\x65\\x66\\x61\\x75\\x6C\\x74\",\"\\x70\\x61\\x72\\x65\\x6E\\x74\",\"\\x64\\x69\\x73\\x70\\x6C\\x61\\x79\",\"\\x68\\x72\\x65\\x66\",\"\\x6C\\x6F\\x63\\x61\\x74\\x69\\x6F\\x6E\",\"\\x61\\x74\\x74\\x72\",\"\\x62\\x69\\x6E\\x64\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x6D\\x65\\x6E\\x75\\x20\\x3E\\x20\\x6C\\x69\\x20\\x3E\\x20\\x61\\x2C\\x20\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x6D\\x65\\x6E\\x75\\x20\\x75\\x6C\\x2E\\x64\\x72\\x6F\\x70\\x64\\x6F\\x77\\x6E\\x20\\x6C\\x69\\x20\\x61\",\"\\x63\\x6C\\x69\\x63\\x6B\\x2E\\x6D\\x65\\x6E\\x75\\x20\\x74\\x6F\\x75\\x63\\x68\\x73\\x74\\x61\\x72\\x74\\x2E\\x6D\\x65\\x6E\\x75\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\",\"\\x63\\x6C\\x6F\\x73\\x65\\x73\\x74\",\"\\x74\\x61\\x72\\x67\\x65\\x74\",\"\\x6D\\x6F\\x75\\x73\\x65\\x6C\\x65\\x61\\x76\\x65\",\"\\x6D\\x6F\\x75\\x73\\x65\\x65\\x6E\\x74\\x65\\x72\",\"\\x73\\x63\\x72\\x6F\\x6C\\x6C\\x54\\x6F\",\"\\x74\\x61\\x67\\x4E\\x61\\x6D\\x65\",\"\\x70\\x72\\x6F\\x70\",\"\\x41\",\"\\x2E\\x69\\x6E\\x64\\x69\\x63\\x61\\x74\\x6F\\x72\",\"\\x69\\x6E\\x6E\\x65\\x72\\x57\\x69\\x64\\x74\\x68\",\"\\x6F\\x75\\x74\\x65\\x72\\x57\\x69\\x64\\x74\\x68\",\"\\x70\\x6F\\x73\\x69\\x74\\x69\\x6F\\x6E\",\"\\x61\\x75\\x74\\x6F\",\"\\x73\\x68\\x6F\\x77\",\"\\x75\\x6E\\x62\\x69\\x6E\\x64\",\"\\x6C\\x69\\x2C\\x20\\x61\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x74\\x61\\x62\\x73\\x2D\\x6E\\x61\\x76\\x20\\x3E\\x20\\x6C\\x69\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x74\\x61\\x62\\x73\\x2D\\x63\\x6F\\x6E\\x74\\x65\\x6E\\x74\",\"\\x61\\x63\\x74\\x69\\x76\\x65\",\"\\x69\\x6E\\x64\\x65\\x78\",\"\\x2E\\x6D\\x65\\x6E\\x75\\x7A\\x6F\\x72\\x64\\x2D\\x74\\x61\\x62\\x73\",\"\\x63\\x6C\\x69\\x65\\x6E\\x74\\x57\\x69\\x64\\x74\\x68\",\"\\x64\\x6F\\x63\\x75\\x6D\\x65\\x6E\\x74\\x45\\x6C\\x65\\x6D\\x65\\x6E\\x74\",\"\\x62\\x6F\\x64\\x79\",\"\\x74\\x65\\x73\\x74\",\"\\x72\\x65\\x73\\x69\\x7A\\x65\",\"\\x66\\x75\\x6E\\x63\\x74\\x69\\x6F\\x6E\",\"\\x61\\x6D\\x64\",\"\\x75\\x6E\\x64\\x65\\x66\\x69\\x6E\\x65\\x64\",\"\\x65\\x78\\x70\\x6F\\x72\\x74\\x73\",\"\\x6A\\x71\\x75\\x65\\x72\\x79\",\"\\x75\\x73\\x65\\x20\\x73\\x74\\x72\\x69\\x63\\x74\",\"\\x64\\x65\\x66\\x61\\x75\\x6C\\x74\\x73\",\"\\x78\\x79\",\"\\x77\\x69\\x6E\\x64\\x6F\\x77\",\"\\x5F\\x73\\x63\\x72\\x6F\\x6C\\x6C\\x61\\x62\\x6C\\x65\",\"\\x6E\\x6F\\x64\\x65\\x4E\\x61\\x6D\\x65\",\"\\x74\\x6F\\x4C\\x6F\\x77\\x65\\x72\\x43\\x61\\x73\\x65\",\"\\x69\\x66\\x72\\x61\\x6D\\x65\",\"\\x23\\x64\\x6F\\x63\\x75\\x6D\\x65\\x6E\\x74\",\"\\x68\\x74\\x6D\\x6C\",\"\\x69\\x6E\\x41\\x72\\x72\\x61\\x79\",\"\\x64\\x6F\\x63\\x75\\x6D\\x65\\x6E\\x74\",\"\\x63\\x6F\\x6E\\x74\\x65\\x6E\\x74\\x57\\x69\\x6E\\x64\\x6F\\x77\",\"\\x6F\\x77\\x6E\\x65\\x72\\x44\\x6F\\x63\\x75\\x6D\\x65\\x6E\\x74\",\"\\x63\\x6F\\x6D\\x70\\x61\\x74\\x4D\\x6F\\x64\\x65\",\"\\x42\\x61\\x63\\x6B\\x43\\x6F\\x6D\\x70\\x61\\x74\",\"\\x6D\\x61\\x70\",\"\\x6F\\x62\\x6A\\x65\\x63\\x74\",\"\\x6D\\x61\\x78\",\"\\x64\\x75\\x72\\x61\\x74\\x69\\x6F\\x6E\",\"\\x71\\x75\\x65\\x75\\x65\",\"\\x61\\x78\\x69\\x73\",\"\\x6F\\x66\\x66\\x73\\x65\\x74\",\"\\x6F\\x76\\x65\\x72\",\"\\x65\\x6E\\x64\",\"\\x68\\x74\\x6D\\x6C\\x2C\\x62\\x6F\\x64\\x79\",\"\\x69\\x73\",\"\\x6E\\x75\\x6D\\x62\\x65\\x72\",\"\\x73\\x74\\x72\\x69\\x6E\\x67\",\"\\x73\\x74\\x79\\x6C\\x65\",\"\\x69\\x73\\x46\\x75\\x6E\\x63\\x74\\x69\\x6F\\x6E\",\"\",\"\\x73\\x70\\x6C\\x69\\x74\",\"\\x78\",\"\\x4C\\x65\\x66\\x74\",\"\\x54\\x6F\\x70\",\"\\x73\\x63\\x72\\x6F\\x6C\\x6C\",\"\\x6D\\x61\\x72\\x67\\x69\\x6E\",\"\\x62\\x6F\\x72\\x64\\x65\\x72\",\"\\x57\\x69\\x64\\x74\\x68\",\"\\x77\\x69\\x64\\x74\\x68\",\"\\x68\\x65\\x69\\x67\\x68\\x74\",\"\\x73\\x6C\\x69\\x63\\x65\",\"\\x25\",\"\\x6C\\x69\\x6D\\x69\\x74\",\"\\x6D\\x69\\x6E\",\"\\x6F\\x6E\\x41\\x66\\x74\\x65\\x72\\x46\\x69\\x72\\x73\\x74\",\"\\x6F\\x6E\\x41\\x66\\x74\\x65\\x72\",\"\\x65\\x61\\x73\\x69\\x6E\\x67\",\"\\x63\\x61\\x6C\\x6C\",\"\\x61\\x6E\\x69\\x6D\\x61\\x74\\x65\",\"\\x48\\x65\\x69\\x67\\x68\\x74\",\"\\x63\\x6C\\x69\\x65\\x6E\\x74\"];(function (_0x4445x1){jQuery[_0xf11d[1]][_0xf11d[0]]=function (_0x4445x2){var _0x4445x3;_0x4445x1[_0xf11d[7]](_0x4445x3={showSpeed:300,hideSpeed:300,trigger:_0xf11d[2],showDelay:0,hideDelay:0,effect:_0xf11d[3],align:_0xf11d[4],responsive:true,animation:_0xf11d[5],indentChildren:true,indicatorFirstLevel:_0xf11d[6],indicatorSecondLevel:_0xf11d[6],scrollable:true,scrollableMaxHeight:400},_0x4445x2);var _0x4445x4=_0x4445x1(this);var _0x4445x5=_0x4445x1(_0x4445x4)[_0xf11d[9]](_0xf11d[8]);var _0x4445x6=_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[10]);var _0x4445x7;var _0x4445x8=768;var _0x4445x9=2000;var _0x4445xa=200;_0x4445x1(_0x4445x5)[_0xf11d[9]](_0xf11d[10])[_0xf11d[9]](_0xf11d[20])[_0xf11d[19]](function (){if(_0x4445x1(this)[_0xf11d[14]](_0xf11d[13])[_0xf11d[12]]>0){_0x4445x1(this)[_0xf11d[18]](_0xf11d[15]+_0x4445x3[_0xf11d[16]]+_0xf11d[17]);} ;} );_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[21])[_0xf11d[9]](_0xf11d[10])[_0xf11d[9]](_0xf11d[20])[_0xf11d[19]](function (){if(_0x4445x1(this)[_0xf11d[14]](_0xf11d[21])[_0xf11d[12]]>0){_0x4445x1(this)[_0xf11d[18]](_0xf11d[15]+_0x4445x3[_0xf11d[22]]+_0xf11d[17]);} ;} );if(_0x4445x3[_0xf11d[23]]==_0xf11d[24]){_0x4445x1(_0x4445x5)[_0xf11d[26]](_0xf11d[25]);} ;if(_0x4445x3[_0xf11d[27]]){_0x4445x1(_0x4445x5)[_0xf11d[26]](_0xf11d[28]);} ;if(_0x4445x3[_0xf11d[29]]){_0x4445x1(_0x4445x4)[_0xf11d[26]](_0xf11d[32])[_0xf11d[31]](_0xf11d[30]);_0x4445x7=_0x4445x1(_0x4445x4)[_0xf11d[9]](_0xf11d[33]);} ;if(_0x4445x3[_0xf11d[34]]){if(_0x4445x3[_0xf11d[29]]){_0x4445x1(_0x4445x5)[_0xf11d[38]](_0xf11d[36],_0x4445x3[_0xf11d[37]])[_0xf11d[26]](_0xf11d[34])[_0xf11d[18]](_0xf11d[35]);} ;} ;function _0x4445xb(_0x4445xc){if(_0x4445x3[_0xf11d[39]]==_0xf11d[3]){_0x4445x1(_0x4445xc)[_0xf11d[9]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[44]](_0x4445x3[_0xf11d[43]])[_0xf11d[42]](_0x4445x3[_0xf11d[41]])[_0xf11d[26]](_0x4445x3[_0xf11d[40]]);} else {_0x4445x1(_0x4445xc)[_0xf11d[9]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[44]](_0x4445x3[_0xf11d[43]])[_0xf11d[46]](_0x4445x3[_0xf11d[41]])[_0xf11d[26]](_0x4445x3[_0xf11d[40]]);} ;} ;function _0x4445xd(_0x4445xc){if(_0x4445x3[_0xf11d[39]]==_0xf11d[3]){_0x4445x1(_0x4445xc)[_0xf11d[9]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[44]](_0x4445x3[_0xf11d[50]])[_0xf11d[49]](_0x4445x3[_0xf11d[48]])[_0xf11d[47]](_0x4445x3[_0xf11d[40]]);} else {_0x4445x1(_0x4445xc)[_0xf11d[9]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[44]](_0x4445x3[_0xf11d[50]])[_0xf11d[51]](_0x4445x3[_0xf11d[48]])[_0xf11d[47]](_0x4445x3[_0xf11d[40]]);} ;_0x4445x1(_0x4445xc)[_0xf11d[9]](_0xf11d[13])[_0xf11d[11]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[44]](_0x4445x3[_0xf11d[50]])[_0xf11d[49]](_0x4445x3[_0xf11d[48]]);} ;function _0x4445xe(){_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[13])[_0xf11d[52]](0);if(navigator[_0xf11d[54]][_0xf11d[53]](/Mobi/i)||window[_0xf11d[56]][_0xf11d[55]]>0||_0x4445x3[_0xf11d[57]]==_0xf11d[58]){_0x4445x1(_0xf11d[68])[_0xf11d[67]](_0xf11d[59],function (_0x4445xf){_0x4445xf[_0xf11d[60]]();_0x4445xf[_0xf11d[61]]();_0x4445x1(this)[_0xf11d[62]](_0xf11d[10])[_0xf11d[14]](_0xf11d[10])[_0xf11d[11]](_0xf11d[13])[_0xf11d[45]](true,true)[_0xf11d[49]](300);if(_0x4445x1(this)[_0xf11d[14]](_0xf11d[13])[_0xf11d[38]](_0xf11d[63])==_0xf11d[5]){_0x4445xb(_0x4445x1(this)[_0xf11d[62]](_0xf11d[10]));return false;} else {_0x4445xd(_0x4445x1(this)[_0xf11d[62]](_0xf11d[10]));} ;window[_0xf11d[65]][_0xf11d[64]]=_0x4445x1(this)[_0xf11d[66]](_0xf11d[64]);} );_0x4445x1(document)[_0xf11d[67]](_0xf11d[69],function (_0x4445x10){if(_0x4445x1(_0x4445x10[_0xf11d[72]])[_0xf11d[71]](_0xf11d[70])[_0xf11d[12]]==0){_0x4445x1(_0xf11d[8])[_0xf11d[11]](_0xf11d[13])[_0xf11d[49]](300);} ;} );} else {_0x4445x1(_0x4445x6)[_0xf11d[67]](_0xf11d[74],function (){_0x4445xb(this);} )[_0xf11d[67]](_0xf11d[73],function (){_0x4445xd(this);} );} ;} ;function _0x4445x11(){_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[13])[_0xf11d[52]](0);_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[79])[_0xf11d[19]](function (){if(_0x4445x1(this)[_0xf11d[62]](_0xf11d[20])[_0xf11d[14]](_0xf11d[13])[_0xf11d[12]]>0){_0x4445x1(this)[_0xf11d[67]](_0xf11d[58],function (_0x4445xf){_0x4445x1(_0x4445x5)[_0xf11d[75]]({top:45,left:0},600);if(_0x4445x1(this)[_0xf11d[62]]()[_0xf11d[77]](_0xf11d[76])==_0xf11d[78]){_0x4445xf[_0xf11d[61]]();} ;if(_0x4445x1(this)[_0xf11d[62]](_0xf11d[20])[_0xf11d[14]](_0xf11d[13])[_0xf11d[38]](_0xf11d[63])==_0xf11d[5]){_0x4445x1(this)[_0xf11d[62]](_0xf11d[20])[_0xf11d[14]](_0xf11d[13])[_0xf11d[44]](_0x4445x3[_0xf11d[43]])[_0xf11d[46]](_0x4445x3[_0xf11d[41]]);_0x4445x1(this)[_0xf11d[62]](_0xf11d[20])[_0xf11d[62]](_0xf11d[10])[_0xf11d[14]](_0xf11d[10])[_0xf11d[11]](_0xf11d[13])[_0xf11d[51]](_0x4445x3[_0xf11d[48]]);} else {_0x4445x1(this)[_0xf11d[62]](_0xf11d[20])[_0xf11d[14]](_0xf11d[13])[_0xf11d[51]](_0x4445x3[_0xf11d[48]]);} ;} );} ;} );} ;function _0x4445x12(){var _0x4445x13=_0x4445x1(_0x4445x5)[_0xf11d[9]](_0xf11d[10])[_0xf11d[9]](_0xf11d[13]);if(_0x4445x1(window)[_0xf11d[80]]()>_0x4445x8){var _0x4445x14=_0x4445x1(_0x4445x4)[_0xf11d[81]](true);for(var _0x4445x15=0;_0x4445x15<_0x4445x13[_0xf11d[12]];_0x4445x15++){if(_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[62]](_0xf11d[10])[_0xf11d[82]]()[_0xf11d[4]]+_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[81]]()>_0x4445x14){_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[38]](_0xf11d[24],0);} else {if(_0x4445x14==_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[81]]()||(_0x4445x14-_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[81]]())<20){_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[38]](_0xf11d[4],0);} ;if(_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[62]](_0xf11d[10])[_0xf11d[82]]()[_0xf11d[4]]+_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[81]]()<_0x4445x14){_0x4445x1(_0x4445x13[_0x4445x15])[_0xf11d[38]](_0xf11d[24],_0xf11d[83]);} ;} ;} ;} ;} ;function _0x4445x16(){_0x4445x1(_0x4445x5)[_0xf11d[52]](0);_0x4445x1(_0x4445x7)[_0xf11d[84]](0)[_0xf11d[58]](function (){if(_0x4445x1(_0x4445x5)[_0xf11d[38]](_0xf11d[63])==_0xf11d[5]){_0x4445x1(_0x4445x5)[_0xf11d[46]](_0x4445x3[_0xf11d[41]]);} else {_0x4445x1(_0x4445x5)[_0xf11d[51]](_0x4445x3[_0xf11d[48]])[_0xf11d[11]](_0xf11d[13])[_0xf11d[52]](_0x4445x3[_0xf11d[48]]);} ;} );} ;function _0x4445x17(){_0x4445x1(_0x4445x5)[_0xf11d[84]](0);_0x4445x1(_0x4445x7)[_0xf11d[52]](0);} ;function _0x4445x18(){_0x4445x1(_0x4445x4)[_0xf11d[11]](_0xf11d[86])[_0xf11d[85]]();_0x4445x1(document)[_0xf11d[85]](_0xf11d[69]);} ;function _0x4445x19(){function _0x4445x1a(_0x4445x1b){var _0x4445x1c=_0x4445x1(_0x4445x1b)[_0xf11d[11]](_0xf11d[87]);var _0x4445x1d=_0x4445x1(_0x4445x1b)[_0xf11d[11]](_0xf11d[88]);_0x4445x1(_0x4445x1c)[_0xf11d[67]](_0xf11d[59],function (_0x4445xf){_0x4445xf[_0xf11d[60]]();_0x4445xf[_0xf11d[61]]();_0x4445x1(_0x4445x1c)[_0xf11d[47]](_0xf11d[89]);_0x4445x1(this)[_0xf11d[26]](_0xf11d[89]);_0x4445x1(_0x4445x1d)[_0xf11d[52]](0);_0x4445x1(_0x4445x1d[_0x4445x1(this)[_0xf11d[90]]()])[_0xf11d[84]](0);} );} ;if(_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[91])[_0xf11d[12]]>0){var _0x4445x19=_0x4445x1(_0x4445x5)[_0xf11d[11]](_0xf11d[91]);for(var _0x4445x15=0;_0x4445x15<_0x4445x19[_0xf11d[12]];_0x4445x15++){_0x4445x1a(_0x4445x19[_0x4445x15]);} ;} ;} ;function _0x4445x1e(){return window[_0xf11d[80]]||document[_0xf11d[93]][_0xf11d[92]]||document[_0xf11d[94]][_0xf11d[92]];} ;function _0x4445x1f(){_0x4445x12();if(_0x4445x1e()<=_0x4445x8&&_0x4445x9>_0x4445x8){_0x4445x18();if(_0x4445x3[_0xf11d[29]]){_0x4445x16();_0x4445x11();} else {_0x4445xe();} ;} ;if(_0x4445x1e()>_0x4445x8&&_0x4445xa<=_0x4445x8){_0x4445x18();_0x4445x17();_0x4445xe();} ;_0x4445x9=_0x4445x1e();_0x4445xa=_0x4445x1e();_0x4445x19();if(/MSIE (\\d+\\.\\d+);/[_0xf11d[95]](navigator[_0xf11d[54]])&&_0x4445x1e()<_0x4445x8){var _0x4445x20= new Number(RegExp.$1);if(_0x4445x20==8){_0x4445x1(_0x4445x7)[_0xf11d[52]](0);_0x4445x1(_0x4445x5)[_0xf11d[84]](0);_0x4445x18();_0x4445xe();} ;} ;} ;_0x4445x1f();_0x4445x1(window)[_0xf11d[96]](function (){_0x4445x1f();_0x4445x12();} );} ;} (jQuery));(function (_0x4445x23){_0xf11d[102];_0x4445x23([_0xf11d[101]],function (_0x4445x1){var _0x4445x24=_0x4445x1[_0xf11d[75]]=function (_0x4445x21,_0x4445x22,_0x4445x25){return _0x4445x1(window)[_0xf11d[75]](_0x4445x21,_0x4445x22,_0x4445x25);} ;_0x4445x24[_0xf11d[103]]={axis:_0xf11d[104],duration:parseFloat(_0x4445x1[_0xf11d[1]][_0xf11d[101]])>=1.3?0:1,limit:!0};_0x4445x24[_0xf11d[105]]=function (_0x4445x21){return _0x4445x1(window)._scrollable();} ;_0x4445x1[_0xf11d[1]][_0xf11d[106]]=function (){return this[_0xf11d[118]](function (){var _0x4445x21=this,_0x4445x26=!_0x4445x21[_0xf11d[107]]||_0x4445x1[_0xf11d[112]](_0x4445x21[_0xf11d[107]][_0xf11d[108]](),[_0xf11d[109],_0xf11d[110],_0xf11d[111],_0xf11d[94]])!=-1;if(!_0x4445x26){return _0x4445x21;} ;var _0x4445x22=(_0x4445x21[_0xf11d[114]]||_0x4445x21)[_0xf11d[113]]||_0x4445x21[_0xf11d[115]]||_0x4445x21;return /webkit/i[_0xf11d[95]](navigator[_0xf11d[54]])||_0x4445x22[_0xf11d[116]]==_0xf11d[117]?_0x4445x22[_0xf11d[94]]:_0x4445x22[_0xf11d[93]];} );} ;_0x4445x1[_0xf11d[1]][_0xf11d[75]]=function (_0x4445x27,_0x4445x28,_0x4445x29){if( typeof _0x4445x28==_0xf11d[119]){_0x4445x29=_0x4445x28;_0x4445x28=0;} ;if( typeof _0x4445x29==_0xf11d[97]){_0x4445x29={onAfter:_0x4445x29};} ;if(_0x4445x27==_0xf11d[120]){_0x4445x27=9e9;} ;_0x4445x29=_0x4445x1[_0xf11d[7]]({},_0x4445x24[_0xf11d[103]],_0x4445x29);_0x4445x28=_0x4445x28||_0x4445x29[_0xf11d[121]];_0x4445x29[_0xf11d[122]]=_0x4445x29[_0xf11d[122]]&&_0x4445x29[_0xf11d[123]][_0xf11d[12]]>1;if(_0x4445x29[_0xf11d[122]]){_0x4445x28/=2;} ;_0x4445x29[_0xf11d[124]]=_0x4445x38(_0x4445x29[_0xf11d[124]]);_0x4445x29[_0xf11d[125]]=_0x4445x38(_0x4445x29[_0xf11d[125]]);return this._scrollable()[_0xf11d[19]](function (){if(_0x4445x27==null){return ;} ;var _0x4445x2a=this,_0x4445x2b=_0x4445x1(_0x4445x2a),_0x4445x2c=_0x4445x27,_0x4445x2d,_0x4445x2e={},_0x4445x2f=_0x4445x2b[_0xf11d[128]](_0xf11d[127]);switch( typeof _0x4445x2c){case _0xf11d[129]:;case _0xf11d[130]:if(/^([+-]=?)?\\d+(\\.\\d+)?(px|%)?$/[_0xf11d[95]](_0x4445x2c)){_0x4445x2c=_0x4445x38(_0x4445x2c);break ;} ;_0x4445x2c=_0x4445x2f?_0x4445x1(_0x4445x2c):_0x4445x1(_0x4445x2c,this);if(!_0x4445x2c[_0xf11d[12]]){return ;} ;;case _0xf11d[119]:if(_0x4445x2c[_0xf11d[128]]||_0x4445x2c[_0xf11d[131]]){_0x4445x2d=(_0x4445x2c=_0x4445x1(_0x4445x2c))[_0xf11d[124]]();} ;;} ;var _0x4445xf=_0x4445x1[_0xf11d[132]](_0x4445x29[_0xf11d[124]])&&_0x4445x29[_0xf11d[124]](_0x4445x2a,_0x4445x2c)||_0x4445x29[_0xf11d[124]];_0x4445x1[_0xf11d[19]](_0x4445x29[_0xf11d[123]][_0xf11d[134]](_0xf11d[133]),function (_0x4445x15,_0x4445x21){var _0x4445x22=_0x4445x21==_0xf11d[135]?_0xf11d[136]:_0xf11d[137],_0x4445x30=_0x4445x22[_0xf11d[108]](),_0x4445x31=_0xf11d[138]+_0x4445x22,_0x4445x32=_0x4445x2a[_0x4445x31],_0x4445x33=_0x4445x24[_0xf11d[120]](_0x4445x2a,_0x4445x21);if(_0x4445x2d){_0x4445x2e[_0x4445x31]=_0x4445x2d[_0x4445x30]+(_0x4445x2f?0:_0x4445x32-_0x4445x2b[_0xf11d[124]]()[_0x4445x30]);if(_0x4445x29[_0xf11d[139]]){_0x4445x2e[_0x4445x31]-=parseInt(_0x4445x2c[_0xf11d[38]](_0xf11d[139]+_0x4445x22))||0;_0x4445x2e[_0x4445x31]-=parseInt(_0x4445x2c[_0xf11d[38]](_0xf11d[140]+_0x4445x22+_0xf11d[141]))||0;} ;_0x4445x2e[_0x4445x31]+=_0x4445xf[_0x4445x30]||0;if(_0x4445x29[_0xf11d[125]][_0x4445x30]){_0x4445x2e[_0x4445x31]+=_0x4445x2c[_0x4445x21==_0xf11d[135]?_0xf11d[142]:_0xf11d[143]]()*_0x4445x29[_0xf11d[125]][_0x4445x30];} ;} else {var _0x4445x25=_0x4445x2c[_0x4445x30];_0x4445x2e[_0x4445x31]=_0x4445x25[_0xf11d[144]]&&_0x4445x25[_0xf11d[144]](-1)==_0xf11d[145]?parseFloat(_0x4445x25)/100*_0x4445x33:_0x4445x25;} ;if(_0x4445x29[_0xf11d[146]]&&/^\\d+$/[_0xf11d[95]](_0x4445x2e[_0x4445x31])){_0x4445x2e[_0x4445x31]=_0x4445x2e[_0x4445x31]<=0?0:Math[_0xf11d[147]](_0x4445x2e[_0x4445x31],_0x4445x33);} ;if(!_0x4445x15&&_0x4445x29[_0xf11d[122]]){if(_0x4445x32!=_0x4445x2e[_0x4445x31]){_0x4445x34(_0x4445x29[_0xf11d[148]]);} ;delete _0x4445x2e[_0x4445x31];} ;} );_0x4445x34(_0x4445x29[_0xf11d[149]]);function _0x4445x34(_0x4445x21){_0x4445x2b[_0xf11d[152]](_0x4445x2e,_0x4445x28,_0x4445x29[_0xf11d[150]],_0x4445x21&&function (){_0x4445x21[_0xf11d[151]](this,_0x4445x2c,_0x4445x29);} );} ;} )[_0xf11d[126]]();} ;_0x4445x24[_0xf11d[120]]=function (_0x4445x21,_0x4445x22){var _0x4445x25=_0x4445x22==_0xf11d[135]?_0xf11d[141]:_0xf11d[153],_0x4445x35=_0xf11d[138]+_0x4445x25;if(!_0x4445x1(_0x4445x21)[_0xf11d[128]](_0xf11d[127])){return _0x4445x21[_0x4445x35]-_0x4445x1(_0x4445x21)[_0x4445x25[_0xf11d[108]]()]();} ;var _0x4445x2a=_0xf11d[154]+_0x4445x25,_0x4445x36=_0x4445x21[_0xf11d[115]][_0xf11d[93]],_0x4445x37=_0x4445x21[_0xf11d[115]][_0xf11d[94]];return Math[_0xf11d[120]](_0x4445x36[_0x4445x35],_0x4445x37[_0x4445x35])-Math[_0xf11d[147]](_0x4445x36[_0x4445x2a],_0x4445x37[_0x4445x2a]);} ;function _0x4445x38(_0x4445x21){return _0x4445x1[_0xf11d[132]](_0x4445x21)|| typeof _0x4445x21==_0xf11d[119]?_0x4445x21:{top:_0x4445x21,left:_0x4445x21};} ;return _0x4445x24;} );} ( typeof define===_0xf11d[97]&&define[_0xf11d[98]]?define:function (_0x4445x21,_0x4445x22){if( typeof module!==_0xf11d[99]&&module[_0xf11d[100]]){module[_0xf11d[100]]=_0x4445x22(require(_0xf11d[101]));} else {_0x4445x22(jQuery);} ;} ));","/*\r\n * jQuery One Page Nav Plugin\r\n * http://github.com/davist11/jQuery-One-Page-Nav\r\n *\r\n * Copyright (c) 2010 Trevor Davis (http://trevordavis.net)\r\n * Dual licensed under the MIT and GPL licenses.\r\n * Uses the same license as jQuery, see:\r\n * http://jquery.org/license\r\n *\r\n * @version 3.0.0\r\n *\r\n * Example usage:\r\n * $('#nav').onePageNav({\r\n * currentClass: 'current',\r\n * changeHash: false,\r\n * scrollSpeed: 750\r\n * });\r\n */\r\n\r\n;(function($, window, document, undefined){\r\n\r\n\t// our plugin constructor\r\n\tvar OnePageNav = function(elem, options){\r\n\t\tthis.elem = elem;\r\n\t\tthis.$elem = $(elem);\r\n\t\tthis.options = options;\r\n\t\tthis.metadata = this.$elem.data('plugin-options');\r\n\t\tthis.$win = $(window);\r\n\t\tthis.sections = {};\r\n\t\tthis.didScroll = false;\r\n\t\tthis.$doc = $(document);\r\n\t\tthis.docHeight = this.$doc.height();\r\n\t};\r\n\r\n\t// the plugin prototype\r\n\tOnePageNav.prototype = {\r\n\t\tdefaults: {\r\n\t\t\tnavItems: 'a',\r\n\t\t\tcurrentClass: 'current',\r\n\t\t\tchangeHash: false,\r\n\t\t\teasing: 'swing',\r\n\t\t\tfilter: '',\r\n\t\t\tscrollSpeed: 750,\r\n\t\t\tscrollThreshold: 0.5,\r\n\t\t\tbegin: false,\r\n\t\t\tend: false,\r\n\t\t\tscrollChange: false\r\n\t\t},\r\n\r\n\t\tinit: function() {\r\n\t\t\t// Introduce defaults that can be extended either\r\n\t\t\t// globally or using an object literal.\r\n\t\t\tthis.config = $.extend({}, this.defaults, this.options, this.metadata);\r\n\r\n\t\t\tthis.$nav = this.$elem.find(this.config.navItems);\r\n\r\n\t\t\t//Filter any links out of the nav\r\n\t\t\tif(this.config.filter !== '') {\r\n\t\t\t\tthis.$nav = this.$nav.filter(this.config.filter);\r\n\t\t\t}\r\n\r\n\t\t\t//Handle clicks on the nav\r\n\t\t\tthis.$nav.on('click.onePageNav', $.proxy(this.handleClick, this));\r\n\r\n\t\t\t//Get the section positions\r\n\t\t\tthis.getPositions();\r\n\r\n\t\t\t//Handle scroll changes\r\n\t\t\tthis.bindInterval();\r\n\r\n\t\t\t//Update the positions on resize too\r\n\t\t\tthis.$win.on('resize.onePageNav', $.proxy(this.getPositions, this));\r\n\r\n\t\t\treturn this;\r\n\t\t},\r\n\r\n\t\tadjustNav: function(self, $parent) {\r\n\t\t\tself.$elem.find('.' + self.config.currentClass).removeClass(self.config.currentClass);\r\n\t\t\t$parent.addClass(self.config.currentClass);\r\n\t\t},\r\n\r\n\t\tbindInterval: function() {\r\n\t\t\tvar self = this;\r\n\t\t\tvar docHeight;\r\n\r\n\t\t\tself.$win.on('scroll.onePageNav', function() {\r\n\t\t\t\tself.didScroll = true;\r\n\t\t\t});\r\n\r\n\t\t\tself.t = setInterval(function() {\r\n\t\t\t\tdocHeight = self.$doc.height();\r\n\r\n\t\t\t\t//If it was scrolled\r\n\t\t\t\tif(self.didScroll) {\r\n\t\t\t\t\tself.didScroll = false;\r\n\t\t\t\t\tself.scrollChange();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//If the document height changes\r\n\t\t\t\tif(docHeight !== self.docHeight) {\r\n\t\t\t\t\tself.docHeight = docHeight;\r\n\t\t\t\t\tself.getPositions();\r\n\t\t\t\t}\r\n\t\t\t}, 250);\r\n\t\t},\r\n\r\n\t\tgetHash: function($link) {\r\n\t\t\treturn $link.attr('href').split('#')[1];\r\n\t\t},\r\n\r\n\t\tgetPositions: function() {\r\n\t\t\tvar self = this;\r\n\t\t\tvar linkHref;\r\n\t\t\tvar topPos;\r\n\t\t\tvar $target;\r\n\r\n\t\t\tself.$nav.each(function() {\r\n\t\t\t\tlinkHref = self.getHash($(this));\r\n\t\t\t\t$target = $('#' + linkHref);\r\n\r\n\t\t\t\tif($target.length) {\r\n\t\t\t\t\ttopPos = $target.offset().top;\r\n\t\t\t\t\tself.sections[linkHref] = Math.round(topPos);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\r\n\t\tgetSection: function(windowPos) {\r\n\t\t\tvar returnValue = null;\r\n\t\t\tvar windowHeight = Math.round(this.$win.height() * this.config.scrollThreshold);\r\n\r\n\t\t\tfor(var section in this.sections) {\r\n\t\t\t\tif((this.sections[section] - windowHeight) < windowPos) {\r\n\t\t\t\t\treturnValue = section;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn returnValue;\r\n\t\t},\r\n\r\n\t\thandleClick: function(e) {\r\n\t\t\tvar self = this;\r\n\t\t\tvar $link = $(e.currentTarget);\r\n\t\t\tvar $parent = $link.parent();\r\n\t\t\tvar newLoc = '#' + self.getHash($link);\r\n\r\n\t\t\tif(!$parent.hasClass(self.config.currentClass)) {\r\n\t\t\t\t//Start callback\r\n\t\t\t\tif(self.config.begin) {\r\n\t\t\t\t\tself.config.begin();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Change the highlighted nav item\r\n\t\t\t\tself.adjustNav(self, $parent);\r\n\r\n\t\t\t\t//Removing the auto-adjust on scroll\r\n\t\t\t\tself.unbindInterval();\r\n\r\n\t\t\t\t//Scroll to the correct position\r\n\t\t\t\tself.scrollTo(newLoc, function() {\r\n\t\t\t\t\t//Do we need to change the hash?\r\n\t\t\t\t\tif(self.config.changeHash) {\r\n\t\t\t\t\t\twindow.location.hash = newLoc;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//Add the auto-adjust on scroll back in\r\n\t\t\t\t\tself.bindInterval();\r\n\r\n\t\t\t\t\t//End callback\r\n\t\t\t\t\tif(self.config.end) {\r\n\t\t\t\t\t\tself.config.end();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\te.preventDefault();\r\n\t\t},\r\n\r\n\t\tscrollChange: function() {\r\n\t\t\tvar windowTop = this.$win.scrollTop();\r\n\t\t\tvar position = this.getSection(windowTop);\r\n\t\t\tvar $parent;\r\n\r\n\t\t\t//If the position is set\r\n\t\t\tif(position !== null) {\r\n\t\t\t\t$parent = this.$elem.find('a[href$=\"#' + position + '\"]').parent();\r\n\r\n\t\t\t\t//If it's not already the current section\r\n\t\t\t\tif(!$parent.hasClass(this.config.currentClass)) {\r\n\t\t\t\t\t//Change the highlighted nav item\r\n\t\t\t\t\tthis.adjustNav(this, $parent);\r\n\r\n\t\t\t\t\t//If there is a scrollChange callback\r\n\t\t\t\t\tif(this.config.scrollChange) {\r\n\t\t\t\t\t\tthis.config.scrollChange($parent);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tscrollTo: function(target, callback) {\r\n\t\t\tvar offset = $(target).offset().top;\r\n\r\n\t\t\t$('html, body').animate({\r\n\t\t\t\tscrollTop: offset\r\n\t\t\t}, this.config.scrollSpeed, this.config.easing, callback);\r\n\t\t},\r\n\r\n\t\tunbindInterval: function() {\r\n\t\t\tclearInterval(this.t);\r\n\t\t\tthis.$win.unbind('scroll.onePageNav');\r\n\t\t}\r\n\t};\r\n\r\n\tOnePageNav.defaults = OnePageNav.prototype.defaults;\r\n\r\n\t$.fn.onePageNav = function(options) {\r\n\t\treturn this.each(function() {\r\n\t\t\tnew OnePageNav(this, options).init();\r\n\t\t});\r\n\t};\r\n\r\n})( jQuery, window , document );","\"function\"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g});\r\n(function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e=\"\";if(\"function\"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;\"function\"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);\"string\"===typeof b.options.jsonPath?\r\n(e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data(\"owl-originalStyles\",this.$elem.attr(\"style\"));this.$elem.data(\"owl-originalClasses\",this.$elem.attr(\"class\"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length;\r\nthis.wrapItems();this.$owlItems=this.$elem.find(\".owl-item\");this.$owlWrapper=this.$elem.find(\".owl-wrapper\");this.playDirection=\"next\";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&&\r\n(this.options.autoPlay=5E3);this.play();this.$elem.find(\".owl-wrapper\").css(\"display\",\"block\");this.$elem.is(\":visible\")?this.$elem.css(\"opacity\",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();\"function\"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();\"function\"===typeof this.options.afterAction&&this.options.afterAction.apply(this,\r\n[this.$elem])},updateVars:function(){\"function\"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();\"function\"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(\":visible\"))a.$elem.css({opacity:0}),\r\ng.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(\":visible\")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('
    ').wrap('
    ');this.$elem.find(\".owl-wrapper\").wrap('
    ');this.wrapperOuter=this.$elem.find(\".owl-wrapper-outer\");this.$elem.css(\"display\",\"block\")},\r\nbaseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=\r\n!1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsAmount&&\r\n!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a=\r\nthis,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data(\"owl-item\",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data(\"owl-roundPages\",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/\r\nthis.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e').toggleClass(\"clickable\",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('
    ');a.owlControls.append(b);a.buttonPrev=\r\nf(\"
    \",{\"class\":\"owl-prev\",html:a.options.navigationText[0]||\"\"});a.buttonNext=f(\"
    \",{\"class\":\"owl-next\",html:a.options.navigationText[1]||\"\"});b.append(a.buttonPrev).append(a.buttonNext);b.on(\"touchstart.owlControls mousedown.owlControls\",'div[class^=\"owl\"]',function(a){a.preventDefault()});b.on(\"touchend.owlControls mouseup.owlControls\",'div[class^=\"owl\"]',function(b){b.preventDefault();f(this).hasClass(\"owl-next\")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper=\r\nf('
    ');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on(\"touchend.owlControls mouseup.owlControls\",\".owl-page\",function(b){b.preventDefault();Number(f(this).data(\"owl-page\"))!==a.currentItem&&a.goTo(Number(f(this).data(\"owl-page\")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html(\"\");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c\",{\"class\":\"owl-page\"}),g=f(\"\",{text:!0===this.options.paginationNumbers?a:\"\",\"class\":!0===this.options.paginationNumbers?\"owl-numbers\":\"\"}),d.append(g),d.data(\"owl-page\",b===c?e:c),d.data(\"owl-roundPages\",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(\".owl-page\").each(function(){f(this).data(\"owl-roundPages\")===\r\nf(a.$owlItems[a.currentItem]).data(\"owl-roundPages\")&&(a.paginationWrapper.find(\".owl-page\").removeClass(\"active\"),f(this).addClass(\"active\"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass(\"disabled\"),this.buttonNext.addClass(\"disabled\")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass(\"disabled\"),this.buttonNext.removeClass(\"disabled\")):this.currentItem===\r\nthis.maximumItem?(this.buttonPrev.removeClass(\"disabled\"),this.buttonNext.addClass(\"disabled\")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass(\"disabled\"),this.buttonNext.removeClass(\"disabled\")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1;\r\nthis.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a=\"rewind\";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a=\"rewind\";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;\"function\"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&\"drag\"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0),\r\n!0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed(\"paginationSpeed\"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):\"rewind\"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed(\"slideSpeed\"),g.setTimeout(function(){c.isCss3Finish=!0},\r\nc.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):\"rewind\"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){\"function\"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem=\r\nthis.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());\"function\"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus=\"stop\";g.clearInterval(this.autoPlayInterval)},\r\ncheckAp:function(){\"stop\"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus=\"play\";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){\"slideSpeed\"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):\"paginationSpeed\"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):\"string\"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))},\r\naddCssSpeed:function(a){return{\"-webkit-transition\":\"all \"+a+\"ms ease\",\"-moz-transition\":\"all \"+a+\"ms ease\",\"-o-transition\":\"all \"+a+\"ms ease\",transition:\"all \"+a+\"ms ease\"}},removeTransition:function(){return{\"-webkit-transition\":\"\",\"-moz-transition\":\"\",\"-o-transition\":\"\",transition:\"\"}},doTranslate:function(a){return{\"-webkit-transform\":\"translate3d(\"+a+\"px, 0px, 0px)\",\"-moz-transform\":\"translate3d(\"+a+\"px, 0px, 0px)\",\"-o-transform\":\"translate3d(\"+a+\"px, 0px, 0px)\",\"-ms-transform\":\"translate3d(\"+\r\na+\"px, 0px, 0px)\",transform:\"translate3d(\"+a+\"px, 0px,0px)\"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement(\"div\");a.style.cssText=\" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)\";\r\na=a.style.cssText.match(/translate3d\\(0px, 0px, 0px\\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:\"ontouchstart\"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=[\"s\",\"e\",\"x\"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=[\"touchstart.owl mousedown.owl\",\"touchmove.owl mousemove.owl\",\"touchend.owl touchcancel.owl mouseup.owl\"]:\r\n!1===this.options.mouseDrag&&!0===this.options.touchDrag?a=[\"touchstart.owl\",\"touchmove.owl\",\"touchend.owl touchcancel.owl\"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=[\"mousedown.owl\",\"mousemove.owl\",\"mouseup.owl\"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on(\"dragstart.owl\",function(a){a.preventDefault()});this.$elem.on(\"mousedown.disableTextSelect\",function(a){return f(a.target).is(\"input, textarea, select, option\")})},\r\ngestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){\"on\"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):\"off\"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos;\r\n\"function\"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10d.newPosY)&&!1===h.sliding&&f(k).off(\"touchmove.owl\");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)}\r\nfunction c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass(\"grabbing\");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection=\"left\":d.owl.dragDirection=\"right\";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,\"drag\"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on(\"click.disable\",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off(\"click.disable\")}),\r\na=f._data(a.target,\"events\").click,c=a.pop(),a.splice(0,0,c)));b(\"off\")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,\".owl-wrapper\",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1;\r\n!1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass(\"grabbing\")||d.$owlWrapper.addClass(\"grabbing\");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b(\"on\");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=\r\na=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20(b[d+1]||b[d]-a.itemWidth)&&\"right\"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)):\r\n(c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a=\"right\",this.playDirection=\"next\"):(a=\"left\",this.playDirection=\"prev\");return a},customEvents:function(){var a=this;a.$elem.on(\"owl.next\",function(){a.next()});a.$elem.on(\"owl.prev\",function(){a.prev()});a.$elem.on(\"owl.play\",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus=\"play\"});a.$elem.on(\"owl.stop\",function(){a.stop();a.hoverStatus=\"stop\"});a.$elem.on(\"owl.goTo\",function(b,e){a.goTo(e)});\r\na.$elem.on(\"owl.jumpTo\",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on(\"mouseover\",function(){a.stop()}),a.$elem.on(\"mouseout\",function(){\"stop\"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a=this.currentItem:!0)&&e=f?g.setTimeout(c,100):e()}var d=this,f=0,k;\"DIV\"===b.prop(\"tagName\")?(b.css(\"background-image\",\"url(\"+b.data(\"src\")+\")\"),k=!0):b[0].src=b.data(\"src\");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css(\"height\",a+\"px\");e.wrapperOuter.hasClass(\"autoHeight\")||g.setTimeout(function(){e.wrapperOuter.addClass(\"autoHeight\")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b,\r\n100):e.wrapperOuter.css(\"height\",\"\")}var e=this,c=f(e.$owlItems[e.currentItem]).find(\"img\"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||\"undefined\"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass(\"active\");this.visibleItems=[];for(a=this.currentItem;a=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0===\r\nf(this).data(\"owl-init\"))return!1;f(this).data(\"owl-init\",!0);var b=Object.create(l);b.init(a,this);f.data(this,\"owlCarousel\",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:[\"prev\",\"next\"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,\r\nresponsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:\"owl-carousel\",theme:\"owl-theme\",lazyLoad:!1,lazyFollow:!0,lazyEffect:\"fade\",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document);","/*!\r\n * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/)\r\n * @copyright 2016 PixelCog, Inc.\r\n * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)\r\n */\r\n!function(t,i,e,s){function o(i,e){var h=this;\"object\"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is(\"img\")&&(this.imageSrc=this.$element.attr(\"src\"));var r=(this.position+\"\").toLowerCase().match(/\\S+/g)||[];if(r.length<1&&r.push(\"center\"),1==r.length&&r.push(r[0]),(\"top\"==r[0]||\"bottom\"==r[0]||\"left\"==r[1]||\"right\"==r[1])&&(r=[r[1],r[0]]),this.positionX!=s&&(r[0]=this.positionX.toLowerCase()),this.positionY!=s&&(r[1]=this.positionY.toLowerCase()),h.positionX=r[0],h.positionY=r[1],\"left\"!=this.positionX&&\"right\"!=this.positionX&&(this.positionX=isNaN(parseInt(this.positionX))?\"center\":parseInt(this.positionX)),\"top\"!=this.positionY&&\"bottom\"!=this.positionY&&(this.positionY=isNaN(parseInt(this.positionY))?\"center\":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?\"\":\"px\")+\" \"+this.positionY+(isNaN(this.positionY)?\"\":\"px\"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is(\"img\")&&this.$element.css({backgroundImage:\"url(\"+this.imageSrc+\")\",backgroundSize:\"cover\",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is(\"img\")&&this.$element.css({backgroundImage:\"url(\"+this.imageSrc+\")\",backgroundSize:\"cover\",backgroundPosition:this.position}),this;this.$mirror=t(\"
    \").prependTo(\"body\");var a=this.$element.find(\">.parallax-slider\"),n=!1;0==a.length?this.$slider=t(\"\").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),n=!0),this.$mirror.addClass(\"parallax-mirror\").css({visibility:\"hidden\",zIndex:this.zIndex,position:\"fixed\",top:0,left:0,overflow:\"hidden\"}),this.$slider.addClass(\"parallax-slider\").one(\"load\",function(){h.naturalHeight&&h.naturalWidth||(h.naturalHeight=this.naturalHeight||this.height||1,h.naturalWidth=this.naturalWidth||this.width||1),h.aspectRatio=h.naturalWidth/h.naturalHeight,o.isSetup||o.setup(),o.sliders.push(h),o.isFresh=!1,o.requestRender()}),n||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger(\"load\")}function h(s){return this.each(function(){var h=t(this),r=\"object\"==typeof s&&s;this==i||this==e||h.is(\"body\")?o.configure(r):h.data(\"px.parallax\")?\"object\"==typeof s&&t.extend(h.data(\"px.parallax\"),r):(r=t.extend({},h.data(),r),h.data(\"px.parallax\",new o(this,r))),\"string\"==typeof s&&(\"destroy\"==s?o.destroy(this):o[s]())})}!function(){for(var t=0,e=[\"ms\",\"moz\",\"webkit\",\"o\"],s=0;s=this.boxWidth){this.imageWidth=h*this.aspectRatio|0,this.imageHeight=h,this.offsetBaseTop=r;var a=this.imageWidth-this.boxWidth;this.offsetLeft=\"left\"==this.positionX?0:\"right\"==this.positionX?-a:isNaN(this.positionX)?-a/2|0:Math.max(this.positionX,-a)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var a=this.imageHeight-h;this.offsetBaseTop=\"top\"==this.positionY?r:\"bottom\"==this.positionY?r-a:isNaN(this.positionY)?r-a/2|0:r+Math.max(this.positionY,-a)}},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=this.overScrollFix?o.overScroll:0,s=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility=\"visible\",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility=\"hidden\",this.$mirror.css({transform:\"translate3d(0px, 0px, 0px)\",visibility:this.visibility,top:this.mirrorTop-e,left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:\"translate3d(0px, 0px, 0px)\",position:\"absolute\",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:\"none\"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var s=t(e),h=t(i),r=function(){o.winHeight=h.height(),o.winWidth=h.width(),o.docHeight=s.height(),o.docWidth=s.width()},a=function(){var t=h.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,h.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};h.on(\"resize.px.parallax load.px.parallax\",function(){r(),o.isFresh=!1,o.requestRender()}).on(\"scroll.px.parallax load.px.parallax\",function(){a(),o.requestRender()}),r(),a(),this.isReady=!0}},configure:function(i){\"object\"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;this.isBusy||(this.isBusy=!0,i.requestAnimationFrame(function(){t.render(),t.isBusy=!1}))},destroy:function(e){var s,h=t(e).data(\"px.parallax\");for(h.$mirror.remove(),s=0;s= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||\r\n // If the character is the first character and is in the range [0-9]\r\n // (U+0030 to U+0039), […]\r\n (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||\r\n // If the character is the second character and is in the range [0-9]\r\n // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\r\n (\r\n index === 1 &&\r\n codeUnit >= 0x0030 && codeUnit <= 0x0039 &&\r\n firstCodeUnit === 0x002D\r\n )\r\n ) {\r\n // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point\r\n result += '\\\\' + codeUnit.toString(16) + ' ';\r\n continue;\r\n }\r\n\r\n // If the character is not handled by one of the above rules and is\r\n // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\r\n // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\r\n // U+005A), or [a-z] (U+0061 to U+007A), […]\r\n if (\r\n codeUnit >= 0x0080 ||\r\n codeUnit === 0x002D ||\r\n codeUnit === 0x005F ||\r\n codeUnit >= 0x0030 && codeUnit <= 0x0039 ||\r\n codeUnit >= 0x0041 && codeUnit <= 0x005A ||\r\n codeUnit >= 0x0061 && codeUnit <= 0x007A\r\n ) {\r\n // the character itself\r\n result += string.charAt(index);\r\n continue;\r\n }\r\n\r\n // Otherwise, the escaped character.\r\n // http://dev.w3.org/csswg/cssom/#escape-a-character\r\n result += '\\\\' + string.charAt(index);\r\n\r\n }\r\n return result;\r\n };\r\n\r\n /**\r\n * Calculate the easing pattern\r\n * @private\r\n * @link https://gist.github.com/gre/1650294\r\n * @param {String} type Easing pattern\r\n * @param {Number} time Time animation should take to complete\r\n * @returns {Number}\r\n */\r\n var easingPattern = function ( type, time ) {\r\n var pattern;\r\n if ( type === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity\r\n if ( type === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity\r\n if ( type === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration\r\n if ( type === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity\r\n if ( type === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity\r\n if ( type === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration\r\n if ( type === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity\r\n if ( type === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity\r\n if ( type === 'easeInOutQuart' ) pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration\r\n if ( type === 'easeInQuint' ) pattern = time * time * time * time * time; // accelerating from zero velocity\r\n if ( type === 'easeOutQuint' ) pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity\r\n if ( type === 'easeInOutQuint' ) pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration\r\n return pattern || time; // no easing, no acceleration\r\n };\r\n\r\n /**\r\n * Calculate how far to scroll\r\n * @private\r\n * @param {Element} anchor The anchor element to scroll to\r\n * @param {Number} headerHeight Height of a fixed header, if any\r\n * @param {Number} offset Number of pixels by which to offset scroll\r\n * @returns {Number}\r\n */\r\n var getEndLocation = function ( anchor, headerHeight, offset ) {\r\n var location = 0;\r\n if (anchor.offsetParent) {\r\n do {\r\n location += anchor.offsetTop;\r\n anchor = anchor.offsetParent;\r\n } while (anchor);\r\n }\r\n location = location - headerHeight - offset;\r\n return location >= 0 ? location : 0;\r\n };\r\n\r\n /**\r\n * Determine the document's height\r\n * @private\r\n * @returns {Number}\r\n */\r\n var getDocumentHeight = function () {\r\n return Math.max(\r\n root.document.body.scrollHeight, root.document.documentElement.scrollHeight,\r\n root.document.body.offsetHeight, root.document.documentElement.offsetHeight,\r\n root.document.body.clientHeight, root.document.documentElement.clientHeight\r\n );\r\n };\r\n\r\n /**\r\n * Convert data-options attribute into an object of key/value pairs\r\n * @private\r\n * @param {String} options Link-specific options as a data attribute string\r\n * @returns {Object}\r\n */\r\n var getDataOptions = function ( options ) {\r\n return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse( options );\r\n };\r\n\r\n /**\r\n * Update the URL\r\n * @private\r\n * @param {Element} anchor The element to scroll to\r\n * @param {Boolean} url Whether or not to update the URL history\r\n */\r\n var updateUrl = function ( anchor, url ) {\r\n if ( root.history.pushState && (url || url === 'true') ) {\r\n root.history.pushState( null, null, [root.location.protocol, '//', root.location.host, root.location.pathname, root.location.search, anchor].join('') );\r\n }\r\n };\r\n\r\n var getHeaderHeight = function ( header ) {\r\n return header === null ? 0 : ( getHeight( header ) + header.offsetTop );\r\n };\r\n\r\n /**\r\n * Start/stop the scrolling animation\r\n * @public\r\n * @param {Element} toggle The element that toggled the scroll event\r\n * @param {Element} anchor The element to scroll to\r\n * @param {Object} options\r\n */\r\n smoothScroll.animateScroll = function ( toggle, anchor, options ) {\r\n\r\n // Options and overrides\r\n var overrides = getDataOptions( toggle ? toggle.getAttribute('data-options') : null );\r\n var settings = extend( settings || defaults, options || {}, overrides ); // Merge user options with defaults\r\n anchor = '#' + escapeCharacters(anchor.substr(1)); // Escape special characters and leading numbers\r\n\r\n // Selectors and variables\r\n var anchorElem = anchor === '#' ? root.document.documentElement : root.document.querySelector(anchor);\r\n var startLocation = root.pageYOffset; // Current location on the page\r\n if ( !fixedHeader ) { fixedHeader = root.document.querySelector('[data-scroll-header]'); } // Get the fixed header if not already set\r\n if ( !headerHeight ) { headerHeight = getHeaderHeight( fixedHeader ); } // Get the height of a fixed header if one exists and not already set\r\n var wasSticky = $(\"header\").hasClass(\"sticky\");\r\n var endLocation = getEndLocation( anchorElem, headerHeight, parseInt(settings.offset, 10) ); // Scroll to location\r\n if(!$(toggle).hasClass(\"inline-scroll\")){\r\n if(!wasSticky) {\r\n if($(\".showhide\").is(\":visible\"))\r\n endLocation -=40;\r\n else\r\n endLocation -=100;\r\n }\r\n }\r\n var animationInterval; // interval timer\r\n var distance = endLocation - startLocation; // distance to travel\r\n var documentHeight = getDocumentHeight();\r\n var timeLapsed = 0;\r\n var percentage, position;\r\n\r\n // Update URL\r\n updateUrl(anchor, settings.updateURL);\r\n\r\n /**\r\n * Stop the scroll animation when it reaches its target (or the bottom/top of page)\r\n * @private\r\n * @param {Number} position Current position on the page\r\n * @param {Number} endLocation Scroll to location\r\n * @param {Number} animationInterval How much to scroll on this loop\r\n */\r\n var stopAnimateScroll = function (position, endLocation, animationInterval) {\r\n var currentLocation = root.pageYOffset;\r\n if ( position == endLocation || currentLocation == endLocation || ( (root.innerHeight + currentLocation) >= documentHeight ) ) {\r\n clearInterval(animationInterval);\r\n anchorElem.focus();\r\n settings.callback( toggle, anchor ); // Run callbacks after animation complete\r\n }\r\n };\r\n\r\n /**\r\n * Loop scrolling animation\r\n * @private\r\n */\r\n var loopAnimateScroll = function () {\r\n timeLapsed += 16;\r\n percentage = ( timeLapsed / parseInt(settings.speed, 10) );\r\n percentage = ( percentage > 1 ) ? 1 : percentage;\r\n position = startLocation + ( distance * easingPattern(settings.easing, percentage) );\r\n root.scrollTo( 0, Math.floor(position) );\r\n stopAnimateScroll(position, endLocation, animationInterval);\r\n };\r\n\r\n /**\r\n * Set interval timer\r\n * @private\r\n */\r\n var startAnimateScroll = function () {\r\n animationInterval = setInterval(loopAnimateScroll, 16);\r\n };\r\n\r\n /**\r\n * Reset position to fix weird iOS bug\r\n * @link https://github.com/cferdinandi/smooth-scroll/issues/45\r\n */\r\n if ( root.pageYOffset === 0 ) {\r\n root.scrollTo( 0, 0 );\r\n }\r\n\r\n // Start scrolling animation\r\n startAnimateScroll();\r\n\r\n };\r\n\r\n /**\r\n * If smooth scroll element clicked, animate scroll\r\n * @private\r\n */\r\n var eventHandler = function (event) {\r\n var toggle = getClosest(event.target, '[data-scroll]');\r\n if ( toggle && toggle.tagName.toLowerCase() === 'a' ) {\r\n event.preventDefault(); // Prevent default click event\r\n smoothScroll.animateScroll( toggle, toggle.hash, settings); // Animate scroll\r\n }\r\n };\r\n\r\n /**\r\n * On window scroll and resize, only run events at a rate of 15fps for better performance\r\n * @private\r\n * @param {Function} eventTimeout Timeout function\r\n * @param {Object} settings\r\n */\r\n var eventThrottler = function (event) {\r\n if ( !eventTimeout ) {\r\n eventTimeout = setTimeout(function() {\r\n eventTimeout = null; // Reset timeout\r\n headerHeight = getHeaderHeight( fixedHeader ); // Get the height of a fixed header if one exists\r\n }, 66);\r\n }\r\n };\r\n\r\n /**\r\n * Destroy the current initialization.\r\n * @public\r\n */\r\n smoothScroll.destroy = function () {\r\n\r\n // If plugin isn't already initialized, stop\r\n if ( !settings ) return;\r\n\r\n // Remove event listeners\r\n root.document.removeEventListener( 'click', eventHandler, false );\r\n root.removeEventListener( 'resize', eventThrottler, false );\r\n\r\n // Reset varaibles\r\n settings = null;\r\n eventTimeout = null;\r\n fixedHeader = null;\r\n headerHeight = null;\r\n };\r\n\r\n /**\r\n * Initialize Smooth Scroll\r\n * @public\r\n * @param {Object} options User settings\r\n */\r\n smoothScroll.init = function ( options ) {\r\n\r\n // feature test\r\n if ( !supports ) return;\r\n\r\n // Destroy any existing initializations\r\n smoothScroll.destroy();\r\n\r\n // Selectors and variables\r\n settings = extend( defaults, options || {} ); // Merge user options with defaults\r\n fixedHeader = root.document.querySelector('[data-scroll-header]'); // Get the fixed header\r\n headerHeight = getHeaderHeight( fixedHeader );\r\n\r\n // When a toggle is clicked, run the click handler\r\n root.document.addEventListener('click', eventHandler, false );\r\n if ( fixedHeader ) { root.addEventListener( 'resize', eventThrottler, false ); }\r\n\r\n };\r\n\r\n\r\n //\r\n // Public APIs\r\n //\r\n\r\n return smoothScroll;\r\n\r\n});","// Sticky Plugin v1.0.4 for jQuery\r\n// =============\r\n// Author: Anthony Garand\r\n// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)\r\n// Improvements by Leonardo C. Daronco (daronco)\r\n// Created: 02/14/2011\r\n// Date: 07/20/2015\r\n// Website: http://stickyjs.com/\r\n// Description: Makes an element on the page stick on the screen as you scroll\r\n// It will only set the 'top' and 'position' of your element, you\r\n// might need to adjust the width in some cases.\r\n!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):\"object\"==typeof module&&module.exports?module.exports=a(require(\"jquery\")):a(jQuery)}(function(a){var b=Array.prototype.slice,c=Array.prototype.splice,d={topSpacing:0,bottomSpacing:0,className:\"is-sticky\",wrapperClassName:\"sticky-wrapper\",center:!1,getWidthFrom:\"\",widthFromWrapper:!0,responsiveWidth:!1,zIndex:\"auto\"},e=a(window),f=a(document),g=[],h=e.height(),i=function(){for(var b=e.scrollTop(),c=f.height(),d=c-h,i=b>d?d-b:0,j=0,k=g.length;jo||null===l.currentTop&&o=q.offset().top+q.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing;r?l.stickyElement.css(\"position\",\"absolute\").css(\"top\",\"\").css(\"bottom\",0).css(\"z-index\",\"\"):l.stickyElement.css(\"position\",\"fixed\").css(\"top\",o).css(\"bottom\",\"\").css(\"z-index\",l.zIndex)}}},j=function(){h=e.height();for(var b=0,c=g.length;b
    \").attr(\"id\",f).addClass(c.wrapperClassName);b.wrapAll(function(){if(0==a(this).parent(\"#\"+f).length)return h});var i=b.parent();c.center&&i.css({width:b.outerWidth(),marginLeft:\"auto\",marginRight:\"auto\"}),\"right\"===b.css(\"float\")&&b.css({float:\"none\"}).parent().css({float:\"right\"}),c.stickyElement=b,c.stickyWrapper=i,c.currentTop=null,g.push(c),k.setWrapperHeight(this),k.setupChangeListeners(this)})},setWrapperHeight:function(b){var c=a(b),d=c.parent();d&&d.css(\"height\",c.outerHeight())},setupChangeListeners:function(a){if(window.MutationObserver){var b=new window.MutationObserver(function(b){(b[0].addedNodes.length||b[0].removedNodes.length)&&k.setWrapperHeight(a)});b.observe(a,{subtree:!0,childList:!0})}else window.addEventListener?(a.addEventListener(\"DOMNodeInserted\",function(){k.setWrapperHeight(a)},!1),a.addEventListener(\"DOMNodeRemoved\",function(){k.setWrapperHeight(a)},!1)):window.attachEvent&&(a.attachEvent(\"onDOMNodeInserted\",function(){k.setWrapperHeight(a)}),a.attachEvent(\"onDOMNodeRemoved\",function(){k.setWrapperHeight(a)}))},update:i,unstick:function(b){return this.each(function(){for(var b=this,d=a(b),e=-1,f=g.length;f-- >0;)g[f].stickyElement.get(0)===b&&(c.call(g,f,1),e=f);e!==-1&&(d.unwrap(),d.css({width:\"\",position:\"\",top:\"\",float:\"\",\"z-index\":\"\"}))})}};window.addEventListener?(window.addEventListener(\"scroll\",i,!1),window.addEventListener(\"resize\",j,!1)):window.attachEvent&&(window.attachEvent(\"onscroll\",i),window.attachEvent(\"onresize\",j)),a.fn.sticky=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):\"object\"!=typeof c&&c?void a.error(\"Method \"+c+\" does not exist on jQuery.sticky\"):k.init.apply(this,arguments)},a.fn.unstick=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):\"object\"!=typeof c&&c?void a.error(\"Method \"+c+\" does not exist on jQuery.sticky\"):k.unstick.apply(this,arguments)},a(function(){setTimeout(i,0)})});","/**\r\n * Touchspin\r\n * Spinner\r\n * https://github.com/istvan-ujjmeszaros/bootstrap-touchspin\r\n * */\r\n!function(t){\"use strict\";function o(t,o){return t+\".touchspin_\"+o}function n(n,s){return t.map(n,function(t){return o(t,s)})}var s=0;t.fn.TouchSpin=function(o){if(\"destroy\"===o)return void this.each(function(){var o=t(this),s=o.data();t(document).off(n([\"mouseup\",\"touchend\",\"touchcancel\",\"mousemove\",\"touchmove\",\"scroll\",\"scrollstart\"],s.spinnerid).join(\" \"))});var i={min:0,max:100,initval:\"\",step:1,decimals:0,stepinterval:100,forcestepdivisibility:\"round\",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:\"glyphicon glyphicon-chevron-up\",verticaldownclass:\"glyphicon glyphicon-chevron-down\",prefix:\"\",postfix:\"\",prefix_extraclass:\"\",postfix_extraclass:\"\",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:\"btn btn-default\",buttonup_class:\"btn btn-default\"},a={min:\"min\",max:\"max\",initval:\"init-val\",step:\"step\",decimals:\"decimals\",stepinterval:\"step-interval\",verticalbuttons:\"vertical-buttons\",verticalupclass:\"vertical-up-class\",verticaldownclass:\"vertical-down-class\",forcestepdivisibility:\"force-step-divisibility\",stepintervaldelay:\"step-interval-delay\",prefix:\"prefix\",postfix:\"postfix\",prefix_extraclass:\"prefix-extra-class\",postfix_extraclass:\"postfix-extra-class\",booster:\"booster\",boostat:\"boostat\",maxboostedstep:\"max-boosted-step\",mousewheel:\"mouse-wheel\",buttondown_class:\"button-down-class\",buttonup_class:\"button-up-class\"};return this.each(function(){function e(){if(!E.data(\"alreadyinitialized\")){if(E.data(\"alreadyinitialized\",!0),s+=1,E.data(\"spinnerid\",s),!E.is(\"input\"))return void console.log(\"Must be an input.\");r(),u(),w(),d(),b(),v(),m(),g(),P.input.css(\"display\",\"block\")}}function u(){\"\"!==M.initval&&\"\"===E.val()&&E.val(M.initval)}function p(t){l(t),w();var o=P.input.val();\"\"!==o&&(o=Number(P.input.val()),P.input.val(o.toFixed(M.decimals)))}function r(){M=t.extend({},i,z,c(),o)}function c(){var o={};return t.each(a,function(t,n){var s=\"bts-\"+n;E.is(\"[data-\"+s+\"]\")&&(o[t]=E.data(s))}),o}function l(o){M=t.extend({},M,o)}function d(){var t=E.val(),o=E.parent();\"\"!==t&&(t=Number(t).toFixed(M.decimals)),E.data(\"initvalue\",t).val(t),E.addClass(\"form-control\"),o.hasClass(\"input-group\")?f(o):h()}function f(o){o.addClass(\"bootstrap-touchspin\");var n,s,i=E.prev(),a=E.next(),e=''+M.prefix+\"\",u=''+M.postfix+\"\";i.hasClass(\"input-group-btn\")?(n='',i.append(n)):(n='',t(n).insertBefore(E)),a.hasClass(\"input-group-btn\")?(s='',a.prepend(s)):(s='',t(s).insertAfter(E)),t(e).insertBefore(E),t(u).insertAfter(E),N=o}function h(){var o;o=M.verticalbuttons?'
    '+M.prefix+''+M.postfix+'
    ':'
    '+M.prefix+''+M.postfix+'
    ',N=t(o).insertBefore(E),t(\".bootstrap-touchspin-prefix\",N).after(E),E.hasClass(\"input-sm\")?N.addClass(\"input-group-sm\"):E.hasClass(\"input-lg\")&&N.addClass(\"input-group-lg\")}function b(){P={down:t(\".bootstrap-touchspin-down\",N),up:t(\".bootstrap-touchspin-up\",N),input:t(\"input\",N),prefix:t(\".bootstrap-touchspin-prefix\",N).addClass(M.prefix_extraclass),postfix:t(\".bootstrap-touchspin-postfix\",N).addClass(M.postfix_extraclass)}}function v(){\"\"===M.prefix&&P.prefix.hide(),\"\"===M.postfix&&P.postfix.hide()}function m(){E.on(\"keydown\",function(t){var o=t.keyCode||t.which;38===o?(\"up\"!==O&&(_(),k()),t.preventDefault()):40===o&&(\"down\"!==O&&(C(),D()),t.preventDefault())}),E.on(\"keyup\",function(t){var o=t.keyCode||t.which;38===o?F():40===o&&F()}),E.on(\"blur\",function(){w()}),P.down.on(\"keydown\",function(t){var o=t.keyCode||t.which;(32===o||13===o)&&(\"down\"!==O&&(C(),D()),t.preventDefault())}),P.down.on(\"keyup\",function(t){var o=t.keyCode||t.which;(32===o||13===o)&&F()}),P.up.on(\"keydown\",function(t){var o=t.keyCode||t.which;(32===o||13===o)&&(\"up\"!==O&&(_(),k()),t.preventDefault())}),P.up.on(\"keyup\",function(t){var o=t.keyCode||t.which;(32===o||13===o)&&F()}),P.down.on(\"mousedown.touchspin\",function(t){P.down.off(\"touchstart.touchspin\"),E.is(\":disabled\")||(C(),D(),t.preventDefault(),t.stopPropagation())}),P.down.on(\"touchstart.touchspin\",function(t){P.down.off(\"mousedown.touchspin\"),E.is(\":disabled\")||(C(),D(),t.preventDefault(),t.stopPropagation())}),P.up.on(\"mousedown.touchspin\",function(t){P.up.off(\"touchstart.touchspin\"),E.is(\":disabled\")||(_(),k(),t.preventDefault(),t.stopPropagation())}),P.up.on(\"touchstart.touchspin\",function(t){P.up.off(\"mousedown.touchspin\"),E.is(\":disabled\")||(_(),k(),t.preventDefault(),t.stopPropagation())}),P.up.on(\"mouseout touchleave touchend touchcancel\",function(t){O&&(t.stopPropagation(),F())}),P.down.on(\"mouseout touchleave touchend touchcancel\",function(t){O&&(t.stopPropagation(),F())}),P.down.on(\"mousemove touchmove\",function(t){O&&(t.stopPropagation(),t.preventDefault())}),P.up.on(\"mousemove touchmove\",function(t){O&&(t.stopPropagation(),t.preventDefault())}),t(document).on(n([\"mouseup\",\"touchend\",\"touchcancel\"],s).join(\" \"),function(t){O&&(t.preventDefault(),F())}),t(document).on(n([\"mousemove\",\"touchmove\",\"scroll\",\"scrollstart\"],s).join(\" \"),function(t){O&&(t.preventDefault(),F())}),E.on(\"mousewheel DOMMouseScroll\",function(t){if(M.mousewheel&&E.is(\":focus\")){var o=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),0>o?C():_()}})}function g(){E.on(\"touchspin.uponce\",function(){F(),_()}),E.on(\"touchspin.downonce\",function(){F(),C()}),E.on(\"touchspin.startupspin\",function(){k()}),E.on(\"touchspin.startdownspin\",function(){D()}),E.on(\"touchspin.stopspin\",function(){F()}),E.on(\"touchspin.updatesettings\",function(t,o){p(o)})}function x(t){switch(M.forcestepdivisibility){case\"round\":return(Math.round(t/M.step)*M.step).toFixed(M.decimals);case\"floor\":return(Math.floor(t/M.step)*M.step).toFixed(M.decimals);case\"ceil\":return(Math.ceil(t/M.step)*M.step).toFixed(M.decimals);default:return t}}function w(){var t,o,n;t=E.val(),\"\"!==t&&(M.decimals>0&&\".\"===t||(o=parseFloat(t),isNaN(o)&&(o=0),n=o,o.toString()!==t&&(n=o),oM.max&&(n=M.max),n=x(n),Number(t).toString()!==n.toString()&&(E.val(n),E.trigger(\"change\"))))}function y(){if(M.booster){var t=Math.pow(2,Math.floor(A/M.boostat))*M.step;return M.maxboostedstep&&t>M.maxboostedstep&&(t=M.maxboostedstep,S=Math.round(S/t)*t),Math.max(M.step,t)}return M.step}function _(){w(),S=parseFloat(P.input.val()),isNaN(S)&&(S=0);var t=S,o=y();S+=o,S>M.max&&(S=M.max,E.trigger(\"touchspin.on.max\"),F()),P.input.val(Number(S).toFixed(M.decimals)),t!==S&&E.trigger(\"change\")}function C(){w(),S=parseFloat(P.input.val()),isNaN(S)&&(S=0);var t=S,o=y();S-=o,S\" + selected + \"\");\r\n };\r\n\r\n Typist.prototype.typeText = function(text) {\r\n this.typeTextSplit = text.split(\"\");\r\n this._each(this.typeTextSplit, this.typeLetters);\r\n return this._fireEvent(\"onSlide\", text);\r\n };\r\n\r\n Typist.prototype.typeLetters = function(letter, index) {\r\n clearInterval(this.timer);\r\n return this._delay((function(_this) {\r\n return function() {\r\n return _this.typeLetter(letter, index);\r\n };\r\n })(this), index * this.options.letterSelectInterval);\r\n };\r\n\r\n Typist.prototype.typeLetter = function(letter, index) {\r\n this._empty(this.elements.typist);\r\n this.newText.push(letter);\r\n this._setHtml(this.elements.typist, this.newText.join(\"\"));\r\n if (this.typeTextSplit.length === index + 1) {\r\n return this.timer = this._periodical(this.slide, this.options.interval);\r\n }\r\n };\r\n\r\n return Typist;\r\n\r\n })(Utilities);\r\n\r\n}).call(this);\r\n","(function($){\r\n 'use strict';\r\n /**\r\n * Copyright 2012, Digital Fusion\r\n * Licensed under the MIT license.\r\n * http://teamdf.com/jquery-plugins/license/\r\n *\r\n * @author Sam Sehnert\r\n * @desc A small plugin that checks whether elements are within\r\n * the user visible viewport of a web browser.\r\n * only accounts for vertical position, not horizontal.\r\n */\r\n var $w = $(window);\r\n $.fn.visible = function(partial,hidden,direction){\r\n\r\n if (this.length < 1)\r\n return;\r\n\r\n var $t = this.length > 1 ? this.eq(0) : this,\r\n t = $t.get(0),\r\n vpWidth = $w.width(),\r\n vpHeight = $w.height(),\r\n direction = (direction) ? direction : 'both',\r\n clientSize = hidden === true ? t.offsetWidth * t.offsetHeight : true;\r\n\r\n if (typeof t.getBoundingClientRect === 'function'){\r\n\r\n // Use this native browser method, if available.\r\n var rec = t.getBoundingClientRect(),\r\n tViz = rec.top >= 0 && rec.top < vpHeight,\r\n bViz = rec.bottom > 0 && rec.bottom <= vpHeight,\r\n lViz = rec.left >= 0 && rec.left < vpWidth,\r\n rViz = rec.right > 0 && rec.right <= vpWidth,\r\n vVisible = partial ? tViz || bViz : tViz && bViz,\r\n hVisible = partial ? lViz || rViz : lViz && rViz;\r\n\r\n if(direction === 'both')\r\n return clientSize && vVisible && hVisible;\r\n else if(direction === 'vertical')\r\n return clientSize && vVisible;\r\n else if(direction === 'horizontal')\r\n return clientSize && hVisible;\r\n } else {\r\n\r\n var viewTop = $w.scrollTop(),\r\n viewBottom = viewTop + vpHeight,\r\n viewLeft = $w.scrollLeft(),\r\n viewRight = viewLeft + vpWidth,\r\n offset = $t.offset(),\r\n _top = offset.top,\r\n _bottom = _top + $t.height(),\r\n _left = offset.left,\r\n _right = _left + $t.width(),\r\n compareTop = partial === true ? _bottom : _top,\r\n compareBottom = partial === true ? _top : _bottom,\r\n compareLeft = partial === true ? _right : _left,\r\n compareRight = partial === true ? _left : _right;\r\n\r\n if(direction === 'both')\r\n return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop)) && ((compareRight <= viewRight) && (compareLeft >= viewLeft));\r\n else if(direction === 'vertical')\r\n return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop));\r\n else if(direction === 'horizontal')\r\n return !!clientSize && ((compareRight <= viewRight) && (compareLeft >= viewLeft));\r\n }\r\n };\r\n\r\n})(jQuery);","/*! WOW - v1.1.2 - 2015-04-07\r\n* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent(\"CustomEvent\"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():\"on\"+b in(null!=a)?a[\"on\"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent(\"on\"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent(\"on\"+b,c):delete a[b]},a.prototype.innerHeight=function(){return\"innerHeight\"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){\"undefined\"!=typeof console&&null!==console&&console.warn(\"MutationObserver is not supported by your browser.\"),\"undefined\"!=typeof console&&null!==console&&console.warn(\"WOW.js cannot detect dom mutations, please call .sync() after loading new content.\")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return\"float\"===b&&(b=\"styleFloat\"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:\"wow\",animateClass:\"animated\",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,\"interactive\"===(a=document.readyState)||\"complete\"===a?this.start():this.util().addEvent(document,\"DOMContentLoaded\",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll(\".\"+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,\"scroll\",this.scrollHandler),this.util().addEvent(window,\"resize\",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,\"scroll\",this.scrollHandler),this.util().removeEvent(window,\"resize\",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll(\".\"+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+\" \"+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,\"animationend\",this.resetAnimation),this.util().addEvent(a,\"oanimationend\",this.resetAnimation),this.util().addEvent(a,\"webkitAnimationEnd\",this.resetAnimation),this.util().addEvent(a,\"MSAnimationEnd\",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute(\"data-wow-duration\"),c=a.getAttribute(\"data-wow-delay\"),e=a.getAttribute(\"data-wow-iteration\"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return\"requestAnimationFrame\"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility=\"visible\");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf(\"animationend\")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,\"\").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?\"hidden\":\"visible\",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?\"none\":this.cachedAnimationName(a)}),a},e.prototype.vendors=[\"moz\",\"webkit\"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[\"\"+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[\"\"+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue(\"-\"+i+\"-\"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,\"animation-name\").cssText}catch(c){b=d(a).getPropertyValue(\"animation-name\")}return\"none\"===b?\"\":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute(\"data-wow-offset\")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);","/*!\r\n* jQuery Cycle2; version: 2.1.6 build: 20141007\r\n* http://jquery.malsup.com/cycle2/\r\n* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL\r\n*/\r\n\r\n/* Cycle2 core engine */\r\n;(function($) {\r\n\"use strict\";\r\n\r\nvar version = '2.1.6';\r\n\r\n$.fn.cycle = function( options ) {\r\n // fix mistakes with the ready state\r\n var o;\r\n if ( this.length === 0 && !$.isReady ) {\r\n o = { s: this.selector, c: this.context };\r\n $.fn.cycle.log('requeuing slideshow (dom not ready)');\r\n $(function() {\r\n $( o.s, o.c ).cycle(options);\r\n });\r\n return this;\r\n }\r\n\r\n return this.each(function() {\r\n var data, opts, shortName, val;\r\n var container = $(this);\r\n var log = $.fn.cycle.log;\r\n\r\n if ( container.data('cycle.opts') )\r\n return; // already initialized\r\n\r\n if ( container.data('cycle-log') === false || \r\n ( options && options.log === false ) ||\r\n ( opts && opts.log === false) ) {\r\n log = $.noop;\r\n }\r\n\r\n log('--c2 init--');\r\n data = container.data();\r\n for (var p in data) {\r\n // allow props to be accessed sans 'cycle' prefix and log the overrides\r\n if (data.hasOwnProperty(p) && /^cycle[A-Z]+/.test(p) ) {\r\n val = data[p];\r\n shortName = p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/, lowerCase);\r\n log(shortName+':', val, '('+typeof val +')');\r\n data[shortName] = val;\r\n }\r\n }\r\n\r\n opts = $.extend( {}, $.fn.cycle.defaults, data, options || {});\r\n\r\n opts.timeoutId = 0;\r\n opts.paused = opts.paused || false; // #57\r\n opts.container = container;\r\n opts._maxZ = opts.maxZ;\r\n\r\n opts.API = $.extend ( { _container: container }, $.fn.cycle.API );\r\n opts.API.log = log;\r\n opts.API.trigger = function( eventName, args ) {\r\n opts.container.trigger( eventName, args );\r\n return opts.API;\r\n };\r\n\r\n container.data( 'cycle.opts', opts );\r\n container.data( 'cycle.API', opts.API );\r\n\r\n // opportunity for plugins to modify opts and API\r\n opts.API.trigger('cycle-bootstrap', [ opts, opts.API ]);\r\n\r\n opts.API.addInitialSlides();\r\n opts.API.preInitSlideshow();\r\n\r\n if ( opts.slides.length )\r\n opts.API.initSlideshow();\r\n });\r\n};\r\n\r\n$.fn.cycle.API = {\r\n opts: function() {\r\n return this._container.data( 'cycle.opts' );\r\n },\r\n addInitialSlides: function() {\r\n var opts = this.opts();\r\n var slides = opts.slides;\r\n opts.slideCount = 0;\r\n opts.slides = $(); // empty set\r\n \r\n // add slides that already exist\r\n slides = slides.jquery ? slides : opts.container.find( slides );\r\n\r\n if ( opts.random ) {\r\n slides.sort(function() {return Math.random() - 0.5;});\r\n }\r\n\r\n opts.API.add( slides );\r\n },\r\n\r\n preInitSlideshow: function() {\r\n var opts = this.opts();\r\n opts.API.trigger('cycle-pre-initialize', [ opts ]);\r\n var tx = $.fn.cycle.transitions[opts.fx];\r\n if (tx && $.isFunction(tx.preInit))\r\n tx.preInit( opts );\r\n opts._preInitialized = true;\r\n },\r\n\r\n postInitSlideshow: function() {\r\n var opts = this.opts();\r\n opts.API.trigger('cycle-post-initialize', [ opts ]);\r\n var tx = $.fn.cycle.transitions[opts.fx];\r\n if (tx && $.isFunction(tx.postInit))\r\n tx.postInit( opts );\r\n },\r\n\r\n initSlideshow: function() {\r\n var opts = this.opts();\r\n var pauseObj = opts.container;\r\n var slideOpts;\r\n opts.API.calcFirstSlide();\r\n\r\n if ( opts.container.css('position') == 'static' )\r\n opts.container.css('position', 'relative');\r\n\r\n $(opts.slides[opts.currSlide]).css({\r\n opacity: 1,\r\n display: 'block',\r\n visibility: 'visible'\r\n });\r\n opts.API.stackSlides( opts.slides[opts.currSlide], opts.slides[opts.nextSlide], !opts.reverse );\r\n\r\n if ( opts.pauseOnHover ) {\r\n // allow pauseOnHover to specify an element\r\n if ( opts.pauseOnHover !== true )\r\n pauseObj = $( opts.pauseOnHover );\r\n\r\n pauseObj.hover(\r\n function(){ opts.API.pause( true ); }, \r\n function(){ opts.API.resume( true ); }\r\n );\r\n }\r\n\r\n // stage initial transition\r\n if ( opts.timeout ) {\r\n slideOpts = opts.API.getSlideOpts( opts.currSlide );\r\n opts.API.queueTransition( slideOpts, slideOpts.timeout + opts.delay );\r\n }\r\n\r\n opts._initialized = true;\r\n opts.API.updateView( true );\r\n opts.API.trigger('cycle-initialized', [ opts ]);\r\n opts.API.postInitSlideshow();\r\n },\r\n\r\n pause: function( hover ) {\r\n var opts = this.opts(),\r\n slideOpts = opts.API.getSlideOpts(),\r\n alreadyPaused = opts.hoverPaused || opts.paused;\r\n\r\n if ( hover )\r\n opts.hoverPaused = true; \r\n else\r\n opts.paused = true;\r\n\r\n if ( ! alreadyPaused ) {\r\n opts.container.addClass('cycle-paused');\r\n opts.API.trigger('cycle-paused', [ opts ]).log('cycle-paused');\r\n\r\n if ( slideOpts.timeout ) {\r\n clearTimeout( opts.timeoutId );\r\n opts.timeoutId = 0;\r\n \r\n // determine how much time is left for the current slide\r\n opts._remainingTimeout -= ( $.now() - opts._lastQueue );\r\n if ( opts._remainingTimeout < 0 || isNaN(opts._remainingTimeout) )\r\n opts._remainingTimeout = undefined;\r\n }\r\n }\r\n },\r\n\r\n resume: function( hover ) {\r\n var opts = this.opts(),\r\n alreadyResumed = !opts.hoverPaused && !opts.paused,\r\n remaining;\r\n\r\n if ( hover )\r\n opts.hoverPaused = false; \r\n else\r\n opts.paused = false;\r\n\r\n \r\n if ( ! alreadyResumed ) {\r\n opts.container.removeClass('cycle-paused');\r\n // #gh-230; if an animation is in progress then don't queue a new transition; it will\r\n // happen naturally\r\n if ( opts.slides.filter(':animated').length === 0 )\r\n opts.API.queueTransition( opts.API.getSlideOpts(), opts._remainingTimeout );\r\n opts.API.trigger('cycle-resumed', [ opts, opts._remainingTimeout ] ).log('cycle-resumed');\r\n }\r\n },\r\n\r\n add: function( slides, prepend ) {\r\n var opts = this.opts();\r\n var oldSlideCount = opts.slideCount;\r\n var startSlideshow = false;\r\n var len;\r\n\r\n if ( $.type(slides) == 'string')\r\n slides = $.trim( slides );\r\n\r\n $( slides ).each(function(i) {\r\n var slideOpts;\r\n var slide = $(this);\r\n\r\n if ( prepend )\r\n opts.container.prepend( slide );\r\n else\r\n opts.container.append( slide );\r\n\r\n opts.slideCount++;\r\n slideOpts = opts.API.buildSlideOpts( slide );\r\n\r\n if ( prepend )\r\n opts.slides = $( slide ).add( opts.slides );\r\n else\r\n opts.slides = opts.slides.add( slide );\r\n\r\n opts.API.initSlide( slideOpts, slide, --opts._maxZ );\r\n\r\n slide.data('cycle.opts', slideOpts);\r\n opts.API.trigger('cycle-slide-added', [ opts, slideOpts, slide ]);\r\n });\r\n\r\n opts.API.updateView( true );\r\n\r\n startSlideshow = opts._preInitialized && (oldSlideCount < 2 && opts.slideCount >= 1);\r\n if ( startSlideshow ) {\r\n if ( !opts._initialized )\r\n opts.API.initSlideshow();\r\n else if ( opts.timeout ) {\r\n len = opts.slides.length;\r\n opts.nextSlide = opts.reverse ? len - 1 : 1;\r\n if ( !opts.timeoutId ) {\r\n opts.API.queueTransition( opts );\r\n }\r\n }\r\n }\r\n },\r\n\r\n calcFirstSlide: function() {\r\n var opts = this.opts();\r\n var firstSlideIndex;\r\n firstSlideIndex = parseInt( opts.startingSlide || 0, 10 );\r\n if (firstSlideIndex >= opts.slides.length || firstSlideIndex < 0)\r\n firstSlideIndex = 0;\r\n\r\n opts.currSlide = firstSlideIndex;\r\n if ( opts.reverse ) {\r\n opts.nextSlide = firstSlideIndex - 1;\r\n if (opts.nextSlide < 0)\r\n opts.nextSlide = opts.slides.length - 1;\r\n }\r\n else {\r\n opts.nextSlide = firstSlideIndex + 1;\r\n if (opts.nextSlide == opts.slides.length)\r\n opts.nextSlide = 0;\r\n }\r\n },\r\n\r\n calcNextSlide: function() {\r\n var opts = this.opts();\r\n var roll;\r\n if ( opts.reverse ) {\r\n roll = (opts.nextSlide - 1) < 0;\r\n opts.nextSlide = roll ? opts.slideCount - 1 : opts.nextSlide-1;\r\n opts.currSlide = roll ? 0 : opts.nextSlide+1;\r\n }\r\n else {\r\n roll = (opts.nextSlide + 1) == opts.slides.length;\r\n opts.nextSlide = roll ? 0 : opts.nextSlide+1;\r\n opts.currSlide = roll ? opts.slides.length-1 : opts.nextSlide-1;\r\n }\r\n },\r\n\r\n calcTx: function( slideOpts, manual ) {\r\n var opts = slideOpts;\r\n var tx;\r\n\r\n if ( opts._tempFx )\r\n tx = $.fn.cycle.transitions[opts._tempFx];\r\n else if ( manual && opts.manualFx )\r\n tx = $.fn.cycle.transitions[opts.manualFx];\r\n\r\n if ( !tx )\r\n tx = $.fn.cycle.transitions[opts.fx];\r\n\r\n opts._tempFx = null;\r\n this.opts()._tempFx = null;\r\n\r\n if (!tx) {\r\n tx = $.fn.cycle.transitions.fade;\r\n opts.API.log('Transition \"' + opts.fx + '\" not found. Using fade.');\r\n }\r\n return tx;\r\n },\r\n\r\n prepareTx: function( manual, fwd ) {\r\n var opts = this.opts();\r\n var after, curr, next, slideOpts, tx;\r\n\r\n if ( opts.slideCount < 2 ) {\r\n opts.timeoutId = 0;\r\n return;\r\n }\r\n if ( manual && ( !opts.busy || opts.manualTrump ) ) {\r\n opts.API.stopTransition();\r\n opts.busy = false;\r\n clearTimeout(opts.timeoutId);\r\n opts.timeoutId = 0;\r\n }\r\n if ( opts.busy )\r\n return;\r\n if ( opts.timeoutId === 0 && !manual )\r\n return;\r\n\r\n curr = opts.slides[opts.currSlide];\r\n next = opts.slides[opts.nextSlide];\r\n slideOpts = opts.API.getSlideOpts( opts.nextSlide );\r\n tx = opts.API.calcTx( slideOpts, manual );\r\n\r\n opts._tx = tx;\r\n\r\n if ( manual && slideOpts.manualSpeed !== undefined )\r\n slideOpts.speed = slideOpts.manualSpeed;\r\n\r\n // if ( opts.nextSlide === opts.currSlide )\r\n // opts.API.calcNextSlide();\r\n\r\n // ensure that:\r\n // 1. advancing to a different slide\r\n // 2. this is either a manual event (prev/next, pager, cmd) or \r\n // a timer event and slideshow is not paused\r\n if ( opts.nextSlide != opts.currSlide && \r\n (manual || (!opts.paused && !opts.hoverPaused && opts.timeout) )) { // #62\r\n\r\n opts.API.trigger('cycle-before', [ slideOpts, curr, next, fwd ]);\r\n if ( tx.before )\r\n tx.before( slideOpts, curr, next, fwd );\r\n\r\n after = function() {\r\n opts.busy = false;\r\n // #76; bail if slideshow has been destroyed\r\n if (! opts.container.data( 'cycle.opts' ) )\r\n return;\r\n\r\n if (tx.after)\r\n tx.after( slideOpts, curr, next, fwd );\r\n opts.API.trigger('cycle-after', [ slideOpts, curr, next, fwd ]);\r\n opts.API.queueTransition( slideOpts);\r\n opts.API.updateView( true );\r\n };\r\n\r\n opts.busy = true;\r\n if (tx.transition)\r\n tx.transition(slideOpts, curr, next, fwd, after);\r\n else\r\n opts.API.doTransition( slideOpts, curr, next, fwd, after);\r\n\r\n opts.API.calcNextSlide();\r\n opts.API.updateView();\r\n } else {\r\n opts.API.queueTransition( slideOpts );\r\n }\r\n },\r\n\r\n // perform the actual animation\r\n doTransition: function( slideOpts, currEl, nextEl, fwd, callback) {\r\n var opts = slideOpts;\r\n var curr = $(currEl), next = $(nextEl);\r\n var fn = function() {\r\n // make sure animIn has something so that callback doesn't trigger immediately\r\n next.animate(opts.animIn || { opacity: 1}, opts.speed, opts.easeIn || opts.easing, callback);\r\n };\r\n\r\n next.css(opts.cssBefore || {});\r\n curr.animate(opts.animOut || {}, opts.speed, opts.easeOut || opts.easing, function() {\r\n curr.css(opts.cssAfter || {});\r\n if (!opts.sync) {\r\n fn();\r\n }\r\n });\r\n if (opts.sync) {\r\n fn();\r\n }\r\n },\r\n\r\n queueTransition: function( slideOpts, specificTimeout ) {\r\n var opts = this.opts();\r\n var timeout = specificTimeout !== undefined ? specificTimeout : slideOpts.timeout;\r\n if (opts.nextSlide === 0 && --opts.loop === 0) {\r\n opts.API.log('terminating; loop=0');\r\n opts.timeout = 0;\r\n if ( timeout ) {\r\n setTimeout(function() {\r\n opts.API.trigger('cycle-finished', [ opts ]);\r\n }, timeout);\r\n }\r\n else {\r\n opts.API.trigger('cycle-finished', [ opts ]);\r\n }\r\n // reset nextSlide\r\n opts.nextSlide = opts.currSlide;\r\n return;\r\n }\r\n if ( opts.continueAuto !== undefined ) {\r\n if ( opts.continueAuto === false || \r\n ($.isFunction(opts.continueAuto) && opts.continueAuto() === false )) {\r\n opts.API.log('terminating automatic transitions');\r\n opts.timeout = 0;\r\n if ( opts.timeoutId )\r\n clearTimeout(opts.timeoutId);\r\n return;\r\n }\r\n }\r\n if ( timeout ) {\r\n opts._lastQueue = $.now();\r\n if ( specificTimeout === undefined )\r\n opts._remainingTimeout = slideOpts.timeout;\r\n\r\n if ( !opts.paused && ! opts.hoverPaused ) {\r\n opts.timeoutId = setTimeout(function() { \r\n opts.API.prepareTx( false, !opts.reverse ); \r\n }, timeout );\r\n }\r\n }\r\n },\r\n\r\n stopTransition: function() {\r\n var opts = this.opts();\r\n if ( opts.slides.filter(':animated').length ) {\r\n opts.slides.stop(false, true);\r\n opts.API.trigger('cycle-transition-stopped', [ opts ]);\r\n }\r\n\r\n if ( opts._tx && opts._tx.stopTransition )\r\n opts._tx.stopTransition( opts );\r\n },\r\n\r\n // advance slide forward or back\r\n advanceSlide: function( val ) {\r\n var opts = this.opts();\r\n clearTimeout(opts.timeoutId);\r\n opts.timeoutId = 0;\r\n opts.nextSlide = opts.currSlide + val;\r\n \r\n if (opts.nextSlide < 0)\r\n opts.nextSlide = opts.slides.length - 1;\r\n else if (opts.nextSlide >= opts.slides.length)\r\n opts.nextSlide = 0;\r\n\r\n opts.API.prepareTx( true, val >= 0 );\r\n return false;\r\n },\r\n\r\n buildSlideOpts: function( slide ) {\r\n var opts = this.opts();\r\n var val, shortName;\r\n var slideOpts = slide.data() || {};\r\n for (var p in slideOpts) {\r\n // allow props to be accessed sans 'cycle' prefix and log the overrides\r\n if (slideOpts.hasOwnProperty(p) && /^cycle[A-Z]+/.test(p) ) {\r\n val = slideOpts[p];\r\n shortName = p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/, lowerCase);\r\n opts.API.log('['+(opts.slideCount-1)+']', shortName+':', val, '('+typeof val +')');\r\n slideOpts[shortName] = val;\r\n }\r\n }\r\n\r\n slideOpts = $.extend( {}, $.fn.cycle.defaults, opts, slideOpts );\r\n slideOpts.slideNum = opts.slideCount;\r\n\r\n try {\r\n // these props should always be read from the master state object\r\n delete slideOpts.API;\r\n delete slideOpts.slideCount;\r\n delete slideOpts.currSlide;\r\n delete slideOpts.nextSlide;\r\n delete slideOpts.slides;\r\n } catch(e) {\r\n // no op\r\n }\r\n return slideOpts;\r\n },\r\n\r\n getSlideOpts: function( index ) {\r\n var opts = this.opts();\r\n if ( index === undefined )\r\n index = opts.currSlide;\r\n\r\n var slide = opts.slides[index];\r\n var slideOpts = $(slide).data('cycle.opts');\r\n return $.extend( {}, opts, slideOpts );\r\n },\r\n \r\n initSlide: function( slideOpts, slide, suggestedZindex ) {\r\n var opts = this.opts();\r\n slide.css( slideOpts.slideCss || {} );\r\n if ( suggestedZindex > 0 )\r\n slide.css( 'zIndex', suggestedZindex );\r\n\r\n // ensure that speed settings are sane\r\n if ( isNaN( slideOpts.speed ) )\r\n slideOpts.speed = $.fx.speeds[slideOpts.speed] || $.fx.speeds._default;\r\n if ( !slideOpts.sync )\r\n slideOpts.speed = slideOpts.speed / 2;\r\n\r\n slide.addClass( opts.slideClass );\r\n },\r\n\r\n updateView: function( isAfter, isDuring, forceEvent ) {\r\n var opts = this.opts();\r\n if ( !opts._initialized )\r\n return;\r\n var slideOpts = opts.API.getSlideOpts();\r\n var currSlide = opts.slides[ opts.currSlide ];\r\n\r\n if ( ! isAfter && isDuring !== true ) {\r\n opts.API.trigger('cycle-update-view-before', [ opts, slideOpts, currSlide ]);\r\n if ( opts.updateView < 0 )\r\n return;\r\n }\r\n\r\n if ( opts.slideActiveClass ) {\r\n opts.slides.removeClass( opts.slideActiveClass )\r\n .eq( opts.currSlide ).addClass( opts.slideActiveClass );\r\n }\r\n\r\n if ( isAfter && opts.hideNonActive )\r\n opts.slides.filter( ':not(.' + opts.slideActiveClass + ')' ).css('visibility', 'hidden');\r\n\r\n if ( opts.updateView === 0 ) {\r\n setTimeout(function() {\r\n opts.API.trigger('cycle-update-view', [ opts, slideOpts, currSlide, isAfter ]);\r\n }, slideOpts.speed / (opts.sync ? 2 : 1) );\r\n }\r\n\r\n if ( opts.updateView !== 0 )\r\n opts.API.trigger('cycle-update-view', [ opts, slideOpts, currSlide, isAfter ]);\r\n \r\n if ( isAfter )\r\n opts.API.trigger('cycle-update-view-after', [ opts, slideOpts, currSlide ]);\r\n },\r\n\r\n getComponent: function( name ) {\r\n var opts = this.opts();\r\n var selector = opts[name];\r\n if (typeof selector === 'string') {\r\n // if selector is a child, sibling combinator, adjancent selector then use find, otherwise query full dom\r\n return (/^\\s*[\\>|\\+|~]/).test( selector ) ? opts.container.find( selector ) : $( selector );\r\n }\r\n if (selector.jquery)\r\n return selector;\r\n \r\n return $(selector);\r\n },\r\n\r\n stackSlides: function( curr, next, fwd ) {\r\n var opts = this.opts();\r\n if ( !curr ) {\r\n curr = opts.slides[opts.currSlide];\r\n next = opts.slides[opts.nextSlide];\r\n fwd = !opts.reverse;\r\n }\r\n\r\n // reset the zIndex for the common case:\r\n // curr slide on top, next slide beneath, and the rest in order to be shown\r\n $(curr).css('zIndex', opts.maxZ);\r\n\r\n var i;\r\n var z = opts.maxZ - 2;\r\n var len = opts.slideCount;\r\n if (fwd) {\r\n for ( i = opts.currSlide + 1; i < len; i++ )\r\n $( opts.slides[i] ).css( 'zIndex', z-- );\r\n for ( i = 0; i < opts.currSlide; i++ )\r\n $( opts.slides[i] ).css( 'zIndex', z-- );\r\n }\r\n else {\r\n for ( i = opts.currSlide - 1; i >= 0; i-- )\r\n $( opts.slides[i] ).css( 'zIndex', z-- );\r\n for ( i = len - 1; i > opts.currSlide; i-- )\r\n $( opts.slides[i] ).css( 'zIndex', z-- );\r\n }\r\n\r\n $(next).css('zIndex', opts.maxZ - 1);\r\n },\r\n\r\n getSlideIndex: function( el ) {\r\n return this.opts().slides.index( el );\r\n }\r\n\r\n}; // API\r\n\r\n// default logger\r\n$.fn.cycle.log = function log() {\r\n /*global console:true */\r\n if (window.console && console.log)\r\n console.log('[cycle2] ' + Array.prototype.join.call(arguments, ' ') );\r\n};\r\n\r\n$.fn.cycle.version = function() { return 'Cycle2: ' + version; };\r\n\r\n// helper functions\r\n\r\nfunction lowerCase(s) {\r\n return (s || '').toLowerCase();\r\n}\r\n\r\n// expose transition object\r\n$.fn.cycle.transitions = {\r\n custom: {\r\n },\r\n none: {\r\n before: function( opts, curr, next, fwd ) {\r\n opts.API.stackSlides( next, curr, fwd );\r\n opts.cssBefore = { opacity: 1, visibility: 'visible', display: 'block' };\r\n }\r\n },\r\n fade: {\r\n before: function( opts, curr, next, fwd ) {\r\n var css = opts.API.getSlideOpts( opts.nextSlide ).slideCss || {};\r\n opts.API.stackSlides( curr, next, fwd );\r\n opts.cssBefore = $.extend(css, { opacity: 0, visibility: 'visible', display: 'block' });\r\n opts.animIn = { opacity: 1 };\r\n opts.animOut = { opacity: 0 };\r\n }\r\n },\r\n fadeout: {\r\n before: function( opts , curr, next, fwd ) {\r\n var css = opts.API.getSlideOpts( opts.nextSlide ).slideCss || {};\r\n opts.API.stackSlides( curr, next, fwd );\r\n opts.cssBefore = $.extend(css, { opacity: 1, visibility: 'visible', display: 'block' });\r\n opts.animOut = { opacity: 0 };\r\n }\r\n },\r\n scrollHorz: {\r\n before: function( opts, curr, next, fwd ) {\r\n opts.API.stackSlides( curr, next, fwd );\r\n var w = opts.container.css('overflow','hidden').width();\r\n opts.cssBefore = { left: fwd ? w : - w, top: 0, opacity: 1, visibility: 'visible', display: 'block' };\r\n opts.cssAfter = { zIndex: opts._maxZ - 2, left: 0 };\r\n opts.animIn = { left: 0 };\r\n opts.animOut = { left: fwd ? -w : w };\r\n }\r\n }\r\n};\r\n\r\n// @see: http://jquery.malsup.com/cycle2/api\r\n$.fn.cycle.defaults = {\r\n allowWrap: true,\r\n autoSelector: '.cycle-slideshow[data-cycle-auto-init!=false]',\r\n delay: 0,\r\n easing: null,\r\n fx: 'fade',\r\n hideNonActive: true,\r\n loop: 0,\r\n manualFx: undefined,\r\n manualSpeed: undefined,\r\n manualTrump: true,\r\n maxZ: 100,\r\n pauseOnHover: false,\r\n reverse: false,\r\n slideActiveClass: 'cycle-slide-active',\r\n slideClass: 'cycle-slide',\r\n slideCss: { position: 'absolute', top: 0, left: 0 },\r\n slides: '> img',\r\n speed: 500,\r\n startingSlide: 0,\r\n sync: true,\r\n timeout: 4000,\r\n updateView: 0\r\n};\r\n\r\n// automatically find and run slideshows\r\n$(document).ready(function() {\r\n $( $.fn.cycle.defaults.autoSelector ).cycle();\r\n});\r\n\r\n})(jQuery);\r\n\r\n/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n autoHeight: 0, // setting this option to false disables autoHeight logic\r\n autoHeightSpeed: 250,\r\n autoHeightEasing: null\r\n}); \r\n\r\n$(document).on( 'cycle-initialized', function( e, opts ) {\r\n var autoHeight = opts.autoHeight;\r\n var t = $.type( autoHeight );\r\n var resizeThrottle = null;\r\n var ratio;\r\n\r\n if ( t !== 'string' && t !== 'number' )\r\n return;\r\n\r\n // bind events\r\n opts.container.on( 'cycle-slide-added cycle-slide-removed', initAutoHeight );\r\n opts.container.on( 'cycle-destroyed', onDestroy );\r\n\r\n if ( autoHeight == 'container' ) {\r\n opts.container.on( 'cycle-before', onBefore );\r\n }\r\n else if ( t === 'string' && /\\d+\\:\\d+/.test( autoHeight ) ) { \r\n // use ratio\r\n ratio = autoHeight.match(/(\\d+)\\:(\\d+)/);\r\n ratio = ratio[1] / ratio[2];\r\n opts._autoHeightRatio = ratio;\r\n }\r\n\r\n // if autoHeight is a number then we don't need to recalculate the sentinel\r\n // index on resize\r\n if ( t !== 'number' ) {\r\n // bind unique resize handler per slideshow (so it can be 'off-ed' in onDestroy)\r\n opts._autoHeightOnResize = function () {\r\n clearTimeout( resizeThrottle );\r\n resizeThrottle = setTimeout( onResize, 50 );\r\n };\r\n\r\n $(window).on( 'resize orientationchange', opts._autoHeightOnResize );\r\n }\r\n\r\n setTimeout( onResize, 30 );\r\n\r\n function onResize() {\r\n initAutoHeight( e, opts );\r\n }\r\n});\r\n\r\nfunction initAutoHeight( e, opts ) {\r\n var clone, height, sentinelIndex;\r\n var autoHeight = opts.autoHeight;\r\n\r\n if ( autoHeight == 'container' ) {\r\n height = $( opts.slides[ opts.currSlide ] ).outerHeight();\r\n opts.container.height( height );\r\n }\r\n else if ( opts._autoHeightRatio ) { \r\n opts.container.height( opts.container.width() / opts._autoHeightRatio );\r\n }\r\n else if ( autoHeight === 'calc' || ( $.type( autoHeight ) == 'number' && autoHeight >= 0 ) ) {\r\n if ( autoHeight === 'calc' )\r\n sentinelIndex = calcSentinelIndex( e, opts );\r\n else if ( autoHeight >= opts.slides.length )\r\n sentinelIndex = 0;\r\n else \r\n sentinelIndex = autoHeight;\r\n\r\n // only recreate sentinel if index is different\r\n if ( sentinelIndex == opts._sentinelIndex )\r\n return;\r\n\r\n opts._sentinelIndex = sentinelIndex;\r\n if ( opts._sentinel )\r\n opts._sentinel.remove();\r\n\r\n // clone existing slide as sentinel\r\n clone = $( opts.slides[ sentinelIndex ].cloneNode(true) );\r\n \r\n // #50; remove special attributes from cloned content\r\n clone.removeAttr( 'id name rel' ).find( '[id],[name],[rel]' ).removeAttr( 'id name rel' );\r\n\r\n clone.css({\r\n position: 'static',\r\n visibility: 'hidden',\r\n display: 'block'\r\n }).prependTo( opts.container ).addClass('cycle-sentinel cycle-slide').removeClass('cycle-slide-active');\r\n clone.find( '*' ).css( 'visibility', 'hidden' );\r\n\r\n opts._sentinel = clone;\r\n }\r\n} \r\n\r\nfunction calcSentinelIndex( e, opts ) {\r\n var index = 0, max = -1;\r\n\r\n // calculate tallest slide index\r\n opts.slides.each(function(i) {\r\n var h = $(this).height();\r\n if ( h > max ) {\r\n max = h;\r\n index = i;\r\n }\r\n });\r\n return index;\r\n}\r\n\r\nfunction onBefore( e, opts, outgoing, incoming, forward ) {\r\n var h = $(incoming).outerHeight();\r\n opts.container.animate( { height: h }, opts.autoHeightSpeed, opts.autoHeightEasing );\r\n}\r\n\r\nfunction onDestroy( e, opts ) {\r\n if ( opts._autoHeightOnResize ) {\r\n $(window).off( 'resize orientationchange', opts._autoHeightOnResize );\r\n opts._autoHeightOnResize = null;\r\n }\r\n opts.container.off( 'cycle-slide-added cycle-slide-removed', initAutoHeight );\r\n opts.container.off( 'cycle-destroyed', onDestroy );\r\n opts.container.off( 'cycle-before', onBefore );\r\n\r\n if ( opts._sentinel ) {\r\n opts._sentinel.remove();\r\n opts._sentinel = null;\r\n }\r\n}\r\n\r\n})(jQuery);\r\n\r\n/*! caption plugin for Cycle2; version: 20130306 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n caption: '> .cycle-caption',\r\n captionTemplate: '{{slideNum}} / {{slideCount}}',\r\n overlay: '> .cycle-overlay',\r\n overlayTemplate: '
    {{title}}
    {{desc}}
    ',\r\n captionModule: 'caption'\r\n}); \r\n\r\n$(document).on( 'cycle-update-view', function( e, opts, slideOpts, currSlide ) {\r\n if ( opts.captionModule !== 'caption' )\r\n return;\r\n var el;\r\n $.each(['caption','overlay'], function() {\r\n var name = this; \r\n var template = slideOpts[name+'Template'];\r\n var el = opts.API.getComponent( name );\r\n if( el.length && template ) {\r\n el.html( opts.API.tmpl( template, slideOpts, opts, currSlide ) );\r\n el.show();\r\n }\r\n else {\r\n el.hide();\r\n }\r\n });\r\n});\r\n\r\n$(document).on( 'cycle-destroyed', function( e, opts ) {\r\n var el;\r\n $.each(['caption','overlay'], function() {\r\n var name = this, template = opts[name+'Template'];\r\n if ( opts[name] && template ) {\r\n el = opts.API.getComponent( 'caption' );\r\n el.empty();\r\n }\r\n });\r\n});\r\n\r\n})(jQuery);\r\n\r\n/*! command plugin for Cycle2; version: 20140415 */\r\n(function($) {\r\n\"use strict\";\r\n\r\nvar c2 = $.fn.cycle;\r\n\r\n$.fn.cycle = function( options ) {\r\n var cmd, cmdFn, opts;\r\n var args = $.makeArray( arguments );\r\n\r\n if ( $.type( options ) == 'number' ) {\r\n return this.cycle( 'goto', options );\r\n }\r\n\r\n if ( $.type( options ) == 'string' ) {\r\n return this.each(function() {\r\n var cmdArgs;\r\n cmd = options;\r\n opts = $(this).data('cycle.opts');\r\n\r\n if ( opts === undefined ) {\r\n c2.log('slideshow must be initialized before sending commands; \"' + cmd + '\" ignored');\r\n return;\r\n }\r\n else {\r\n cmd = cmd == 'goto' ? 'jump' : cmd; // issue #3; change 'goto' to 'jump' internally\r\n cmdFn = opts.API[ cmd ];\r\n if ( $.isFunction( cmdFn )) {\r\n cmdArgs = $.makeArray( args );\r\n cmdArgs.shift();\r\n return cmdFn.apply( opts.API, cmdArgs );\r\n }\r\n else {\r\n c2.log( 'unknown command: ', cmd );\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n return c2.apply( this, arguments );\r\n }\r\n};\r\n\r\n// copy props\r\n$.extend( $.fn.cycle, c2 );\r\n\r\n$.extend( c2.API, {\r\n next: function() {\r\n var opts = this.opts();\r\n if ( opts.busy && ! opts.manualTrump )\r\n return;\r\n\r\n var count = opts.reverse ? -1 : 1;\r\n if ( opts.allowWrap === false && ( opts.currSlide + count ) >= opts.slideCount )\r\n return;\r\n\r\n opts.API.advanceSlide( count );\r\n opts.API.trigger('cycle-next', [ opts ]).log('cycle-next');\r\n },\r\n\r\n prev: function() {\r\n var opts = this.opts();\r\n if ( opts.busy && ! opts.manualTrump )\r\n return;\r\n var count = opts.reverse ? 1 : -1;\r\n if ( opts.allowWrap === false && ( opts.currSlide + count ) < 0 )\r\n return;\r\n\r\n opts.API.advanceSlide( count );\r\n opts.API.trigger('cycle-prev', [ opts ]).log('cycle-prev');\r\n },\r\n\r\n destroy: function() {\r\n this.stop(); //#204\r\n\r\n var opts = this.opts();\r\n var clean = $.isFunction( $._data ) ? $._data : $.noop; // hack for #184 and #201\r\n clearTimeout(opts.timeoutId);\r\n opts.timeoutId = 0;\r\n opts.API.stop();\r\n opts.API.trigger( 'cycle-destroyed', [ opts ] ).log('cycle-destroyed');\r\n opts.container.removeData();\r\n clean( opts.container[0], 'parsedAttrs', false );\r\n\r\n // #75; remove inline styles\r\n if ( ! opts.retainStylesOnDestroy ) {\r\n opts.container.removeAttr( 'style' );\r\n opts.slides.removeAttr( 'style' );\r\n opts.slides.removeClass( opts.slideActiveClass );\r\n }\r\n opts.slides.each(function() {\r\n var slide = $(this);\r\n slide.removeData();\r\n slide.removeClass( opts.slideClass );\r\n clean( this, 'parsedAttrs', false );\r\n });\r\n },\r\n\r\n jump: function( index, fx ) {\r\n // go to the requested slide\r\n var fwd;\r\n var opts = this.opts();\r\n if ( opts.busy && ! opts.manualTrump )\r\n return;\r\n var num = parseInt( index, 10 );\r\n if (isNaN(num) || num < 0 || num >= opts.slides.length) {\r\n opts.API.log('goto: invalid slide index: ' + num);\r\n return;\r\n }\r\n if (num == opts.currSlide) {\r\n opts.API.log('goto: skipping, already on slide', num);\r\n return;\r\n }\r\n opts.nextSlide = num;\r\n clearTimeout(opts.timeoutId);\r\n opts.timeoutId = 0;\r\n opts.API.log('goto: ', num, ' (zero-index)');\r\n fwd = opts.currSlide < opts.nextSlide;\r\n opts._tempFx = fx;\r\n opts.API.prepareTx( true, fwd );\r\n },\r\n\r\n stop: function() {\r\n var opts = this.opts();\r\n var pauseObj = opts.container;\r\n clearTimeout(opts.timeoutId);\r\n opts.timeoutId = 0;\r\n opts.API.stopTransition();\r\n if ( opts.pauseOnHover ) {\r\n if ( opts.pauseOnHover !== true )\r\n pauseObj = $( opts.pauseOnHover );\r\n pauseObj.off('mouseenter mouseleave');\r\n }\r\n opts.API.trigger('cycle-stopped', [ opts ]).log('cycle-stopped');\r\n },\r\n\r\n reinit: function() {\r\n var opts = this.opts();\r\n opts.API.destroy();\r\n opts.container.cycle();\r\n },\r\n\r\n remove: function( index ) {\r\n var opts = this.opts();\r\n var slide, slideToRemove, slides = [], slideNum = 1;\r\n for ( var i=0; i < opts.slides.length; i++ ) {\r\n slide = opts.slides[i];\r\n if ( i == index ) {\r\n slideToRemove = slide;\r\n }\r\n else {\r\n slides.push( slide );\r\n $( slide ).data('cycle.opts').slideNum = slideNum;\r\n slideNum++;\r\n }\r\n }\r\n if ( slideToRemove ) {\r\n opts.slides = $( slides );\r\n opts.slideCount--;\r\n $( slideToRemove ).remove();\r\n if (index == opts.currSlide)\r\n opts.API.advanceSlide( 1 );\r\n else if ( index < opts.currSlide )\r\n opts.currSlide--;\r\n else\r\n opts.currSlide++;\r\n\r\n opts.API.trigger('cycle-slide-removed', [ opts, index, slideToRemove ]).log('cycle-slide-removed');\r\n opts.API.updateView();\r\n }\r\n }\r\n\r\n});\r\n\r\n// listen for clicks on elements with data-cycle-cmd attribute\r\n$(document).on('click.cycle', '[data-cycle-cmd]', function(e) {\r\n // issue cycle command\r\n e.preventDefault();\r\n var el = $(this);\r\n var command = el.data('cycle-cmd');\r\n var context = el.data('cycle-context') || '.cycle-slideshow';\r\n $(context).cycle(command, el.data('cycle-arg'));\r\n});\r\n\r\n\r\n})(jQuery);\r\n\r\n/*! hash plugin for Cycle2; version: 20130905 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$(document).on( 'cycle-pre-initialize', function( e, opts ) {\r\n onHashChange( opts, true );\r\n\r\n opts._onHashChange = function() {\r\n onHashChange( opts, false );\r\n };\r\n\r\n $( window ).on( 'hashchange', opts._onHashChange);\r\n});\r\n\r\n$(document).on( 'cycle-update-view', function( e, opts, slideOpts ) {\r\n if ( slideOpts.hash && ( '#' + slideOpts.hash ) != window.location.hash ) {\r\n opts._hashFence = true;\r\n window.location.hash = slideOpts.hash;\r\n }\r\n});\r\n\r\n$(document).on( 'cycle-destroyed', function( e, opts) {\r\n if ( opts._onHashChange ) {\r\n $( window ).off( 'hashchange', opts._onHashChange );\r\n }\r\n});\r\n\r\nfunction onHashChange( opts, setStartingSlide ) {\r\n var hash;\r\n if ( opts._hashFence ) {\r\n opts._hashFence = false;\r\n return;\r\n }\r\n \r\n hash = window.location.hash.substring(1);\r\n\r\n opts.slides.each(function(i) {\r\n if ( $(this).data( 'cycle-hash' ) == hash ) {\r\n if ( setStartingSlide === true ) {\r\n opts.startingSlide = i;\r\n }\r\n else {\r\n var fwd = opts.currSlide < i;\r\n opts.nextSlide = i;\r\n opts.API.prepareTx( true, fwd );\r\n }\r\n return false;\r\n }\r\n });\r\n}\r\n\r\n})(jQuery);\r\n\r\n/*! loader plugin for Cycle2; version: 20131121 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n loader: false\r\n});\r\n\r\n$(document).on( 'cycle-bootstrap', function( e, opts ) {\r\n var addFn;\r\n\r\n if ( !opts.loader )\r\n return;\r\n\r\n // override API.add for this slideshow\r\n addFn = opts.API.add;\r\n opts.API.add = add;\r\n\r\n function add( slides, prepend ) {\r\n var slideArr = [];\r\n if ( $.type( slides ) == 'string' )\r\n slides = $.trim( slides );\r\n else if ( $.type( slides) === 'array' ) {\r\n for (var i=0; i < slides.length; i++ )\r\n slides[i] = $(slides[i])[0];\r\n }\r\n\r\n slides = $( slides );\r\n var slideCount = slides.length;\r\n\r\n if ( ! slideCount )\r\n return;\r\n\r\n slides.css('visibility','hidden').appendTo('body').each(function(i) { // appendTo fixes #56\r\n var count = 0;\r\n var slide = $(this);\r\n var images = slide.is('img') ? slide : slide.find('img');\r\n slide.data('index', i);\r\n // allow some images to be marked as unimportant (and filter out images w/o src value)\r\n images = images.filter(':not(.cycle-loader-ignore)').filter(':not([src=\"\"])');\r\n if ( ! images.length ) {\r\n --slideCount;\r\n slideArr.push( slide );\r\n return;\r\n }\r\n\r\n count = images.length;\r\n images.each(function() {\r\n // add images that are already loaded\r\n if ( this.complete ) {\r\n imageLoaded();\r\n }\r\n else {\r\n $(this).load(function() {\r\n imageLoaded();\r\n }).on(\"error\", function() {\r\n if ( --count === 0 ) {\r\n // ignore this slide\r\n opts.API.log('slide skipped; img not loaded:', this.src);\r\n if ( --slideCount === 0 && opts.loader == 'wait') {\r\n addFn.apply( opts.API, [ slideArr, prepend ] );\r\n }\r\n }\r\n });\r\n }\r\n });\r\n\r\n function imageLoaded() {\r\n if ( --count === 0 ) {\r\n --slideCount;\r\n addSlide( slide );\r\n }\r\n }\r\n });\r\n\r\n if ( slideCount )\r\n opts.container.addClass('cycle-loading');\r\n \r\n\r\n function addSlide( slide ) {\r\n var curr;\r\n if ( opts.loader == 'wait' ) {\r\n slideArr.push( slide );\r\n if ( slideCount === 0 ) {\r\n // #59; sort slides into original markup order\r\n slideArr.sort( sorter );\r\n addFn.apply( opts.API, [ slideArr, prepend ] );\r\n opts.container.removeClass('cycle-loading');\r\n }\r\n }\r\n else {\r\n curr = $(opts.slides[opts.currSlide]);\r\n addFn.apply( opts.API, [ slide, prepend ] );\r\n curr.show();\r\n opts.container.removeClass('cycle-loading');\r\n }\r\n }\r\n\r\n function sorter(a, b) {\r\n return a.data('index') - b.data('index');\r\n }\r\n }\r\n});\r\n\r\n})(jQuery);\r\n\r\n/*! pager plugin for Cycle2; version: 20140415 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n pager: '> .cycle-pager',\r\n pagerActiveClass: 'cycle-pager-active',\r\n pagerEvent: 'click.cycle',\r\n pagerEventBubble: undefined,\r\n pagerTemplate: ''\r\n});\r\n\r\n$(document).on( 'cycle-bootstrap', function( e, opts, API ) {\r\n // add method to API\r\n API.buildPagerLink = buildPagerLink;\r\n});\r\n\r\n$(document).on( 'cycle-slide-added', function( e, opts, slideOpts, slideAdded ) {\r\n if ( opts.pager ) {\r\n opts.API.buildPagerLink ( opts, slideOpts, slideAdded );\r\n opts.API.page = page;\r\n }\r\n});\r\n\r\n$(document).on( 'cycle-slide-removed', function( e, opts, index, slideRemoved ) {\r\n if ( opts.pager ) {\r\n var pagers = opts.API.getComponent( 'pager' );\r\n pagers.each(function() {\r\n var pager = $(this);\r\n $( pager.children()[index] ).remove();\r\n });\r\n }\r\n});\r\n\r\n$(document).on( 'cycle-update-view', function( e, opts, slideOpts ) {\r\n var pagers;\r\n\r\n if ( opts.pager ) {\r\n pagers = opts.API.getComponent( 'pager' );\r\n pagers.each(function() {\r\n $(this).children().removeClass( opts.pagerActiveClass )\r\n .eq( opts.currSlide ).addClass( opts.pagerActiveClass );\r\n });\r\n }\r\n});\r\n\r\n$(document).on( 'cycle-destroyed', function( e, opts ) {\r\n var pager = opts.API.getComponent( 'pager' );\r\n\r\n if ( pager ) {\r\n pager.children().off( opts.pagerEvent ); // #202\r\n if ( opts.pagerTemplate )\r\n pager.empty();\r\n }\r\n});\r\n\r\nfunction buildPagerLink( opts, slideOpts, slide ) {\r\n var pagerLink;\r\n var pagers = opts.API.getComponent( 'pager' );\r\n pagers.each(function() {\r\n var pager = $(this);\r\n if ( slideOpts.pagerTemplate ) {\r\n var markup = opts.API.tmpl( slideOpts.pagerTemplate, slideOpts, opts, slide[0] );\r\n pagerLink = $( markup ).appendTo( pager );\r\n }\r\n else {\r\n pagerLink = pager.children().eq( opts.slideCount - 1 );\r\n }\r\n pagerLink.on( opts.pagerEvent, function(e) {\r\n if ( ! opts.pagerEventBubble )\r\n e.preventDefault();\r\n opts.API.page( pager, e.currentTarget);\r\n });\r\n });\r\n}\r\n\r\nfunction page( pager, target ) {\r\n /*jshint validthis:true */\r\n var opts = this.opts();\r\n if ( opts.busy && ! opts.manualTrump )\r\n return;\r\n\r\n var index = pager.children().index( target );\r\n var nextSlide = index;\r\n var fwd = opts.currSlide < nextSlide;\r\n if (opts.currSlide == nextSlide) {\r\n return; // no op, clicked pager for the currently displayed slide\r\n }\r\n opts.nextSlide = nextSlide;\r\n opts._tempFx = opts.pagerFx;\r\n opts.API.prepareTx( true, fwd );\r\n opts.API.trigger('cycle-pager-activated', [opts, pager, target ]);\r\n}\r\n\r\n})(jQuery);\r\n\r\n/*! prevnext plugin for Cycle2; version: 20140408 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n next: '> .cycle-next',\r\n nextEvent: 'click.cycle',\r\n disabledClass: 'disabled',\r\n prev: '> .cycle-prev',\r\n prevEvent: 'click.cycle',\r\n swipe: false\r\n});\r\n\r\n$(document).on( 'cycle-initialized', function( e, opts ) {\r\n opts.API.getComponent( 'next' ).on( opts.nextEvent, function(e) {\r\n e.preventDefault();\r\n opts.API.next();\r\n });\r\n\r\n opts.API.getComponent( 'prev' ).on( opts.prevEvent, function(e) {\r\n e.preventDefault();\r\n opts.API.prev();\r\n });\r\n\r\n if ( opts.swipe ) {\r\n var nextEvent = opts.swipeVert ? 'swipeUp.cycle' : 'swipeLeft.cycle swipeleft.cycle';\r\n var prevEvent = opts.swipeVert ? 'swipeDown.cycle' : 'swipeRight.cycle swiperight.cycle';\r\n opts.container.on( nextEvent, function(e) {\r\n opts._tempFx = opts.swipeFx;\r\n opts.API.next();\r\n });\r\n opts.container.on( prevEvent, function() {\r\n opts._tempFx = opts.swipeFx;\r\n opts.API.prev();\r\n });\r\n }\r\n});\r\n\r\n$(document).on( 'cycle-update-view', function( e, opts, slideOpts, currSlide ) {\r\n if ( opts.allowWrap )\r\n return;\r\n\r\n var cls = opts.disabledClass;\r\n var next = opts.API.getComponent( 'next' );\r\n var prev = opts.API.getComponent( 'prev' );\r\n var prevBoundry = opts._prevBoundry || 0;\r\n var nextBoundry = (opts._nextBoundry !== undefined)?opts._nextBoundry:opts.slideCount - 1;\r\n\r\n if ( opts.currSlide == nextBoundry )\r\n next.addClass( cls ).prop( 'disabled', true );\r\n else\r\n next.removeClass( cls ).prop( 'disabled', false );\r\n\r\n if ( opts.currSlide === prevBoundry )\r\n prev.addClass( cls ).prop( 'disabled', true );\r\n else\r\n prev.removeClass( cls ).prop( 'disabled', false );\r\n});\r\n\r\n\r\n$(document).on( 'cycle-destroyed', function( e, opts ) {\r\n opts.API.getComponent( 'prev' ).off( opts.nextEvent );\r\n opts.API.getComponent( 'next' ).off( opts.prevEvent );\r\n opts.container.off( 'swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle' );\r\n});\r\n\r\n})(jQuery);\r\n\r\n/*! progressive loader plugin for Cycle2; version: 20130315 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n progressive: false\r\n});\r\n\r\n$(document).on( 'cycle-pre-initialize', function( e, opts ) {\r\n if ( !opts.progressive )\r\n return;\r\n\r\n var API = opts.API;\r\n var nextFn = API.next;\r\n var prevFn = API.prev;\r\n var prepareTxFn = API.prepareTx;\r\n var type = $.type( opts.progressive );\r\n var slides, scriptEl;\r\n\r\n if ( type == 'array' ) {\r\n slides = opts.progressive;\r\n }\r\n else if ($.isFunction( opts.progressive ) ) {\r\n slides = opts.progressive( opts );\r\n }\r\n else if ( type == 'string' ) {\r\n scriptEl = $( opts.progressive );\r\n slides = $.trim( scriptEl.html() );\r\n if ( !slides )\r\n return;\r\n // is it json array?\r\n if ( /^(\\[)/.test( slides ) ) {\r\n try {\r\n slides = $.parseJSON( slides );\r\n }\r\n catch(err) {\r\n API.log( 'error parsing progressive slides', err );\r\n return;\r\n }\r\n }\r\n else {\r\n // plain text, split on delimeter\r\n slides = slides.split( new RegExp( scriptEl.data('cycle-split') || '\\n') );\r\n \r\n // #95; look for empty slide\r\n if ( ! slides[ slides.length - 1 ] )\r\n slides.pop();\r\n }\r\n }\r\n\r\n\r\n\r\n if ( prepareTxFn ) {\r\n API.prepareTx = function( manual, fwd ) {\r\n var index, slide;\r\n\r\n if ( manual || slides.length === 0 ) {\r\n prepareTxFn.apply( opts.API, [ manual, fwd ] );\r\n return;\r\n }\r\n\r\n if ( fwd && opts.currSlide == ( opts.slideCount-1) ) {\r\n slide = slides[ 0 ];\r\n slides = slides.slice( 1 );\r\n opts.container.one('cycle-slide-added', function(e, opts ) {\r\n setTimeout(function() {\r\n opts.API.advanceSlide( 1 );\r\n },50);\r\n });\r\n opts.API.add( slide );\r\n }\r\n else if ( !fwd && opts.currSlide === 0 ) {\r\n index = slides.length-1;\r\n slide = slides[ index ];\r\n slides = slides.slice( 0, index );\r\n opts.container.one('cycle-slide-added', function(e, opts ) {\r\n setTimeout(function() {\r\n opts.currSlide = 1;\r\n opts.API.advanceSlide( -1 );\r\n },50);\r\n });\r\n opts.API.add( slide, true );\r\n }\r\n else {\r\n prepareTxFn.apply( opts.API, [ manual, fwd ] );\r\n }\r\n };\r\n }\r\n\r\n if ( nextFn ) {\r\n API.next = function() {\r\n var opts = this.opts();\r\n if ( slides.length && opts.currSlide == ( opts.slideCount - 1 ) ) {\r\n var slide = slides[ 0 ];\r\n slides = slides.slice( 1 );\r\n opts.container.one('cycle-slide-added', function(e, opts ) {\r\n nextFn.apply( opts.API );\r\n opts.container.removeClass('cycle-loading');\r\n });\r\n opts.container.addClass('cycle-loading');\r\n opts.API.add( slide );\r\n }\r\n else {\r\n nextFn.apply( opts.API ); \r\n }\r\n };\r\n }\r\n \r\n if ( prevFn ) {\r\n API.prev = function() {\r\n var opts = this.opts();\r\n if ( slides.length && opts.currSlide === 0 ) {\r\n var index = slides.length-1;\r\n var slide = slides[ index ];\r\n slides = slides.slice( 0, index );\r\n opts.container.one('cycle-slide-added', function(e, opts ) {\r\n opts.currSlide = 1;\r\n opts.API.advanceSlide( -1 );\r\n opts.container.removeClass('cycle-loading');\r\n });\r\n opts.container.addClass('cycle-loading');\r\n opts.API.add( slide, true );\r\n }\r\n else {\r\n prevFn.apply( opts.API );\r\n }\r\n };\r\n }\r\n});\r\n\r\n})(jQuery);\r\n\r\n/*! tmpl plugin for Cycle2; version: 20121227 */\r\n(function($) {\r\n\"use strict\";\r\n\r\n$.extend($.fn.cycle.defaults, {\r\n tmplRegex: '{{((.)?.*?)}}'\r\n});\r\n\r\n$.extend($.fn.cycle.API, {\r\n tmpl: function( str, opts /*, ... */) {\r\n var regex = new RegExp( opts.tmplRegex || $.fn.cycle.defaults.tmplRegex, 'g' );\r\n var args = $.makeArray( arguments );\r\n args.shift();\r\n return str.replace(regex, function(_, str) {\r\n var i, j, obj, prop, names = str.split('.');\r\n for (i=0; i < args.length; i++) {\r\n obj = args[i];\r\n if ( ! obj )\r\n continue;\r\n if (names.length > 1) {\r\n prop = obj;\r\n for (j=0; j < names.length; j++) {\r\n obj = prop;\r\n prop = prop[ names[j] ] || str;\r\n }\r\n } else {\r\n prop = obj[str];\r\n }\r\n\r\n if ($.isFunction(prop))\r\n return prop.apply(obj, args);\r\n if (prop !== undefined && prop !== null && prop != str)\r\n return prop;\r\n }\r\n return str;\r\n });\r\n }\r\n}); \r\n\r\n})(jQuery);\r\n","/* Plugin for Cycle2; Copyright (c) 2012 M. Alsup; v20141007 */\r\n!function(a){\"use strict\";a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind(\"touchstart\",function(c){function d(b){if(g){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e,f=c.originalEvent.touches?c.originalEvent.touches[0]:c,g={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:a(c.target)};b.bind(\"touchmove\",d).one(\"touchend\",function(){b.unbind(\"touchmove\",d),g&&e&&e.time-g.timea.event.special.swipe.horizontalDistanceThreshold&&Math.abs(g.coords[1]-e.coords[1])e.coords[0]?\"swipeleft\":\"swiperight\"),g=e=void 0})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind(\"swipe\",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft}(jQuery);","; (function () {\r\n \"use strict\";\r\n\r\n var $window, $document, $body;\r\n\r\n $window = $(window);\r\n $document = $(document);\r\n $body = $(\"body\");\r\n\r\n\r\n /*==============================================\r\n Pre loader init\r\n ===============================================*/\r\n $window.on(\"load\", function () {\r\n $body.imagesLoaded(function () {\r\n $(\".tb-preloader-wave\").fadeOut();\r\n $(\"#tb-preloader\").delay(200).fadeOut(\"slow\").remove();\r\n });\r\n });\r\n\r\n /*==============================================\r\n Wow init\r\n ===============================================*/\r\n if (typeof WOW == \"function\")\r\n new WOW().init();\r\n\r\n\r\n $document.ready(function () {\r\n\r\n /*==============================================\r\n Retina support added\r\n ===============================================*/\r\n if (window.devicePixelRatio > 1) {\r\n $(\".retina\").imagesLoaded(function () {\r\n $(\".retina\").each(function () {\r\n var src = $(this).attr(\"src\").replace(\".\", \"@2x.\");\r\n var h = $(this).height();\r\n $(this).attr(\"src\", src).css({ height: h, width: \"auto\" });\r\n });\r\n });\r\n }\r\n\r\n\r\n /*==============================================\r\n Smooth scroll init\r\n ===============================================*/\r\n if (typeof smoothScroll == \"object\") {\r\n smoothScroll.init();\r\n }\r\n\r\n\r\n /*==============================================\r\n Menuzord init\r\n ===============================================*/\r\n $(\".js-primary-navigation\").menuzord();\r\n\r\n\r\n /*==============================================\r\n Onepage nav init\r\n ===============================================*/\r\n $(\".op-nav li\").on(\"click\", function () {\r\n if ($(\".showhide\").is(\":visible\")) {\r\n $(\".showhide\").trigger(\"click\");\r\n }\r\n });\r\n\r\n if ($.fn.onePageNav) {\r\n $(\".op-nav\").onePageNav({\r\n currentClass: \"active\"\r\n });\r\n }\r\n\r\n\r\n /*==============================================\r\n Sticky nav\r\n ===============================================*/\r\n function initSticky() {\r\n var $navbarSticky, navbarHeight, $brandLogo, centerLogoNormalHeight, centerLogoStickyHeight;\r\n $navbarSticky = $(\".js-navbar-sticky\").not(\".l-navbar_s-left\");\r\n navbarHeight = $navbarSticky.height();\r\n $brandLogo = $(\".logo-brand\");\r\n centerLogoNormalHeight = 100;\r\n centerLogoStickyHeight = 60;\r\n\r\n if ($navbarSticky.hasClass(\"l-navbar_s-center\")) {\r\n $brandLogo.height(centerLogoNormalHeight);\r\n }\r\n\r\n $navbarSticky.sticky({\r\n className: \"l-navbar-wrapper_has-sticky\",\r\n wrapperClassName: \"l-navbar-wrapper\",\r\n zIndex: 10000,\r\n bottomSpacing: 100\r\n }).on(\"sticky-start\", function () {\r\n if ($navbarSticky.hasClass(\"l-navbar_s-center\")) {\r\n $brandLogo.height(0);\r\n setTimeout(function () {\r\n $brandLogo.addClass(\"sticky-fix\").height(centerLogoStickyHeight);\r\n }, 300);\r\n }\r\n }).on(\"sticky-end\", function () {\r\n $navbarSticky.parent().height(navbarHeight);\r\n if ($navbarSticky.hasClass(\"l-navbar_s-center\")) {\r\n $brandLogo.removeClass(\"sticky-fix\").height(centerLogoNormalHeight);\r\n }\r\n });\r\n }\r\n initSticky();\r\n\r\n /*==============================================\r\n Flex slider init\r\n ===============================================*/\r\n $window.load(function () {\r\n $(\".portfolio-slider\").flexslider({\r\n animation: \"slide\",\r\n direction: \"vertical\",\r\n slideshowSpeed: 3000,\r\n start: function () {\r\n imagesLoaded($(\".portfolio\"), function () {\r\n setTimeout(function () {\r\n $(\".portfolio-filter li:eq(0) a\").trigger(\"click\");\r\n }, 500);\r\n });\r\n }\r\n });\r\n });\r\n\r\n $window.load(function () {\r\n $(\".portfolio-slider-alt\").flexslider({\r\n animation: \"slide\",\r\n direction: \"horizontal\",\r\n slideshowSpeed: 4000,\r\n start: function () {\r\n imagesLoaded($(\".portfolio\"), function () {\r\n setTimeout(function () {\r\n $(\".portfolio-filter li:eq(0) a\").trigger(\"click\");\r\n }, 500);\r\n });\r\n }\r\n });\r\n });\r\n\r\n $window.load(function () {\r\n $(\".post-slider-thumb\").flexslider({\r\n animation: \"slide\",\r\n controlNav: \"thumbnails\"\r\n });\r\n });\r\n\r\n $window.load(function () {\r\n $(\".post-slider\").flexslider({\r\n animation: \"slide\"\r\n //slideshow: false\r\n });\r\n });\r\n\r\n $window.load(function () {\r\n $(\".news-slider\").flexslider({\r\n animation: \"slide\",\r\n slideshowSpeed: 3000\r\n });\r\n });\r\n\r\n\r\n /*==============================================\r\n Full screen banner init\r\n ===============================================*/\r\n $window.bind(\"resizeEnd\", function () {\r\n $(\"#fullscreen-banner\").height($window.height());\r\n });\r\n\r\n $window.resize(function () {\r\n if (this.resizeTO) clearTimeout(this.resizeTO);\r\n this.resizeTO = setTimeout(function () {\r\n $(this).trigger(\"resizeEnd\");\r\n }, 300);\r\n }).trigger(\"resize\");\r\n\r\n\r\n /*==============================================\r\n Portfolio filterable grid init\r\n ===============================================*/\r\n /*var $portfolioGeneral = $(\".portfolio:not(.portfolio-masonry)\").isotope({\r\n itemSelector: \".portfolio-item\",\r\n layoutMode: \"fitRows\",\r\n filter: \"*\"\r\n });\r\n\r\n var $portfolioMasonry = $(\".portfolio-masonry\").isotope({\r\n itemSelector: \".portfolio-item\",\r\n resizesContainer: false,\r\n layoutMode: \"masonry\",\r\n filter: \"*\"\r\n });\r\n\r\n if (typeof imagesLoaded == \"function\") {\r\n $portfolioGeneral.imagesLoaded().progress(function () {\r\n $portfolioGeneral.isotope(\"layout\");\r\n });\r\n\r\n $portfolioMasonry.imagesLoaded().progress(function () {\r\n $portfolioMasonry.isotope(\"layout\");\r\n });\r\n\r\n $portfolioGeneral.imagesLoaded().done(function() {\r\n setTimeout(function() {\r\n $portfolioGeneral.isotope(\"layout\");\r\n }, 400);\r\n });\r\n\r\n $portfolioMasonry.imagesLoaded().done(function() {\r\n setTimeout(function() {\r\n $portfolioMasonry.isotope(\"layout\");\r\n }, 400);\r\n });\r\n }*/\r\n\r\n if (typeof imagesLoaded == \"function\") {\r\n\r\n $(\".portfolio:not(.portfolio-masonry)\").imagesLoaded().progress(function () {\r\n $(\".portfolio:not(.portfolio-masonry)\").isotope({\r\n itemSelector: \".portfolio-item\",\r\n layoutMode: \"fitRows\",\r\n filter: \"*\"\r\n });\r\n });\r\n\r\n $(\".portfolio-masonry\").imagesLoaded().progress(function () {\r\n $(\".portfolio-masonry\").isotope({\r\n itemSelector: \".portfolio-item\",\r\n resizesContainer: false,\r\n layoutMode: \"masonry\",\r\n filter: \"*\"\r\n });\r\n });\r\n }\r\n\r\n\r\n /*==============================================\r\n Portfolio filter nav\r\n ===============================================*/\r\n $(\".portfolio-filter\").on(\"click\", \"a\", function (event) {\r\n event.preventDefault();\r\n var $this = $(this);\r\n $this.parent().addClass(\"active\").siblings().removeClass(\"active\");\r\n $this.parents(\".text-center\").next().isotope({ filter: $this.data(\"filter\") });\r\n });\r\n\r\n\r\n /*==============================================\r\n Portfolio item slider init\r\n ===============================================*/\r\n $(\".portfolio-slider, .portfolio-slider-alt\").each(function () { // the containers for all your galleries\r\n var _items = $(this).find(\"li > a\");\r\n var items = [];\r\n for (var i = 0; i < _items.length; i++) {\r\n items.push({ src: $(_items[i]).attr(\"href\"), title: $(_items[i]).attr(\"title\") });\r\n }\r\n $(this).parent().find(\".action-btn\").magnificPopup({\r\n items: items,\r\n type: \"image\",\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n $(this).parent().find(\".portfolio-description\").magnificPopup({\r\n items: items,\r\n type: \"image\",\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n });\r\n\r\n\r\n /*==============================================\r\n Portfolio popup gallery init\r\n ===============================================*/\r\n $(\".portfolio-gallery\").each(function () { // the containers for all your galleries\r\n $(this).find(\".popup-gallery\").magnificPopup({\r\n type: \"image\",\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n $(this).find(\".popup-gallery2\").magnificPopup({\r\n type: \"image\",\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n });\r\n\r\n\r\n /*==============================================\r\n Progressbar init\r\n ===============================================*/\r\n var progressBar = $(\".progress-bar\");\r\n progressBar.each(function (indx) {\r\n $(this).data(\"animated\", 0);\r\n if ($.fn.visible) {\r\n animateProgressbar(this);\r\n }\r\n });\r\n $window.on(\"scroll\", function () {\r\n if ($.fn.visible) {\r\n progressBar.each(function () {\r\n animateProgressbar(this);\r\n })\r\n }\r\n });\r\n\r\n function animateProgressbar(pb) {\r\n if ($(pb).data(\"animated\") == 0) {\r\n if ($(pb).visible()) {\r\n $(pb).css(\"width\", $(pb).attr(\"aria-valuenow\") + \"%\");\r\n $(pb).data(\"animated\", 1);\r\n }\r\n }\r\n }\r\n\r\n\r\n /*==============================================\r\n Magnific popup init\r\n ===============================================*/\r\n $(\".popup-link\").magnificPopup({\r\n type: \"image\"\r\n // other options\r\n });\r\n\r\n $(\".popup-youtube, .popup-vimeo, .popup-gmaps\").magnificPopup({\r\n disableOn: 700,\r\n type: \"iframe\",\r\n mainClass: \"mfp-fade\",\r\n removalDelay: 160,\r\n preloader: false,\r\n fixedContentPos: false\r\n });\r\n\r\n\r\n /*==============================================\r\n Accordion init\r\n ===============================================*/\r\n var allPanels = $(\".accordion > dd\").hide();\r\n allPanels.first().slideDown(\"easeOutExpo\");\r\n $(\".accordion\").each(function () {\r\n $(this).find(\"dt > a\").first().addClass(\"active\").parent().next().css({ display: \"block\" });\r\n });\r\n\r\n $(\".accordion > dt > a\").click(function () {\r\n\r\n var current = $(this).parent().next(\"dd\");\r\n $(this).parents(\".accordion\").find(\"dt > a\").removeClass(\"active\");\r\n $(this).addClass(\"active\");\r\n $(this).parents(\".accordion\").find(\"dd\").slideUp(\"easeInExpo\");\r\n $(this).parent().next().slideDown(\"easeOutExpo\");\r\n\r\n return false;\r\n\r\n });\r\n\r\n\r\n /*==============================================\r\n Toggle init\r\n ===============================================*/\r\n var allToggles = $(\".toggle > dd\").hide();\r\n $(\".toggle > dt > a\").click(function () {\r\n\r\n if ($(this).hasClass(\"active\")) {\r\n\r\n $(this).parent().next().slideUp(\"easeOutExpo\");\r\n $(this).removeClass(\"active\");\r\n\r\n }\r\n else {\r\n var current = $(this).parent().next(\"dd\");\r\n $(this).addClass(\"active\");\r\n $(this).parent().next().slideDown(\"easeOutExpo\");\r\n }\r\n\r\n return false;\r\n });\r\n\r\n\r\n /*==============================================\r\n Career show/hide button\r\n ===============================================*/\r\n $(\".show-detail\").click(function (e) {\r\n $(this).next().slideToggle();\r\n e.preventDefault();\r\n $(this).css({ opacity: 0 })\r\n });\r\n\r\n $(\".cancel-btn\").click(function (e) {\r\n var prnt = $(this).parents(\".career-details-info\");\r\n prnt.slideToggle();\r\n e.preventDefault();\r\n $(prnt).prev().css({ opacity: 1 })\r\n });\r\n\r\n $(\".career-details-info .apply-btn\").on(\"click\", function () {\r\n\r\n });\r\n\r\n\r\n /*==============================================\r\n Count to init\r\n ===============================================*/\r\n var timers = $(\".timer\");\r\n if ($.fn.countTo) {\r\n timers.each(function () {\r\n $(this).data(\"animated\", 0);\r\n animateTimer(this);\r\n });\r\n }\r\n\r\n $window.on(\"scroll\", function () {\r\n timers.each(function () {\r\n animateTimer(this);\r\n });\r\n });\r\n\r\n function animateTimer(timer) {\r\n if ($(timer).data(\"animated\") == 0) {\r\n if ($.fn.visible && $(timer).visible()) {\r\n $(timer).data(\"animated\", 1);\r\n $(timer).countTo();\r\n }\r\n }\r\n }\r\n\r\n\r\n /*==============================================\r\n Carousel init\r\n ===============================================*/\r\n if ($.fn.owlCarousel) {\r\n $(\"#clients-1\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 6,\r\n itemsDesktop: [1199, 3],\r\n itemsDesktopSmall: [979, 3]\r\n\r\n });\r\n\r\n $(\"#testimonial-2\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 1\r\n });\r\n\r\n $(\"#testimonial-3\").owlCarousel({\r\n autoPlay: 4000, //Set AutoPlay to 3 seconds\r\n items: 1\r\n });\r\n\r\n $(\"#testimonial-4\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 1\r\n });\r\n\r\n $(\"#testimonial-5\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 1\r\n });\r\n\r\n $(\"#carousel-object\").owlCarousel({\r\n autoPlay: 4000, //Set AutoPlay to 3 seconds\r\n items: 1\r\n //pagination : false\r\n });\r\n\r\n $(\"#owl-slider\").owlCarousel({\r\n autoPlay: 4000, //Set AutoPlay to 3 seconds\r\n items: 1,\r\n navigation: true,\r\n //pagination : false,\r\n navigationText: [\"\", \"\"]\r\n });\r\n\r\n $(\"#img-carousel\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 4,\r\n itemsDesktop: [1199, 3],\r\n itemsDesktopSmall: [979, 3]\r\n\r\n });\r\n\r\n $(\"#portfolio-carousel\").owlCarousel({\r\n autoPlay: 3000, //Set AutoPlay to 3 seconds\r\n items: 3,\r\n itemsDesktop: [1199, 3],\r\n itemsDesktopSmall: [979, 3],\r\n navigation: true,\r\n pagination: false,\r\n navigationText: [\"\", \"\"]\r\n\r\n });\r\n\r\n $(\"#portfolio-carousel-alt\").owlCarousel({\r\n autoPlay: false, //Set AutoPlay to 3 seconds\r\n items: 3,\r\n itemsDesktop: [1199, 3],\r\n itemsDesktopSmall: [979, 3],\r\n navigation: true,\r\n pagination: false,\r\n navigationText: [\"\", \"\"]\r\n });\r\n }\r\n\r\n $(\".portfolio-with-title\").addClass(\"portfolio\");\r\n\r\n\r\n /*==============================================\r\n Typist init\r\n ===============================================*/\r\n if (typeof Typist == \"function\") {\r\n new Typist(document.querySelector(\".typist-element\"), {\r\n letterInterval: 60,\r\n textInterval: 3000\r\n });\r\n }\r\n\r\n\r\n /*==============================================\r\n Back to top init\r\n ===============================================*/\r\n $body.append(\"\");\r\n\r\n var $liftOff = $(\".js-lift-off\");\r\n $window.on(\"scroll\", function () {\r\n if ($window.scrollTop() > 150) {\r\n $liftOff.addClass(\"lift-off_show\").removeClass(\"lift-off_hide\");\r\n } else {\r\n $liftOff.addClass(\"lift-off_hide\").removeClass(\"lift-off_show\");\r\n }\r\n });\r\n\r\n\r\n /*==============================================\r\n Mailchip init\r\n ===============================================*/\r\n if ($.fn.ajaxChimp) {\r\n $(\".mailchimp\").ajaxChimp({\r\n /**\r\n * Example mailchimp url\r\n * //blahblah.us1.list-manage.com/subscribe/post?u=5afsdhfuhdsiufdba6f8802&id=4djhfdsh9\"\r\n */\r\n url: \"paste mailchimp url\"\r\n });\r\n }\r\n\r\n\r\n /*==============================================\r\n Contact form\r\n ===============================================*/\r\n initMailer();\r\n\r\n });\r\n\r\n function initMailer() {\r\n if (!$.fn.validator) {\r\n return;\r\n }\r\n\r\n $(\".js-Mailer\").validator().on(\"submit\", function (e) {\r\n var $form = $(this),\r\n $btn = $form.find(\"[type='submit']\"),\r\n $response = $(\"
    \", {\r\n \"class\": \"alert js-Response\",\r\n \"style\": \"margin-top: 20px; display:none\"\r\n });\r\n\r\n if (!$form.data(\"isready\")) {\r\n $btn.after($response);\r\n $form.data(\"isready\", true);\r\n }\r\n\r\n if (e.isDefaultPrevented()) {\r\n return;\r\n }\r\n e.preventDefault();\r\n\r\n $.post(\r\n \"mailer/mailer.php\",\r\n $form.serialize()\r\n ).done(function (r) {\r\n var $rHolder = $form.find(\".js-Response\");\r\n if (r.success) {\r\n showMailerResponse($rHolder, \"Your message has been sent.\");\r\n } else {\r\n showMailerResponse($rHolder, \"There is something wrong, try again!\", \"warning\");\r\n }\r\n }).fail(function () {\r\n showMailerResponse($form.find(\".js-Response\"), \"There is something wrong, try again!\", \"warning\");\r\n })\r\n });\r\n }\r\n\r\n function showMailerResponse($holder, rMessage, rType) {\r\n var rClass = \"alert-warning\",\r\n aClass = \"alert-success\",\r\n SPEED = 1000;\r\n\r\n rType = rType || \"success\";\r\n\r\n if (rType === \"warning\") {\r\n rClass = \"alert-success\",\r\n aClass = \"alert-warning\";\r\n }\r\n\r\n $holder\r\n .removeClass(rClass)\r\n .addClass(aClass)\r\n .text(rMessage)\r\n .slideDown()\r\n .delay(SPEED)\r\n .slideUp();\r\n }\r\n\r\n})(jQuery);\r\n\r\njQuery(document).ready(function ($) {\r\n\r\n // hash focus onload\r\n if (document.location.hash) {\r\n var myAnchor = document.location.hash;\r\n $(myAnchor).attr('tabindex', -1).on('blur focusout', function () {\r\n $(this).removeAttr('tabindex');\r\n }).focus();\r\n }\r\n\r\n // hash focus inline\r\n $(window).bind('hashchange', function () {\r\n var hash = \"#\" + window.location.hash.replace(/^#/, '');\r\n if (hash != \"#\") {\r\n $(hash).attr('tabindex', -1).on('blur focusout', function () {\r\n $(this).removeAttr('tabindex');\r\n }).focus();\r\n }\r\n else {\r\n $(\"#header\").attr('tabindex', -1).on('blur focusout', function () {\r\n $(this).removeAttr('tabindex');\r\n }).focus();\r\n }\r\n });\r\n});"]}