1function kswr_reanimate_block(t) { 2 t.find(".kswr-animationblock").each(function() { 3 var t = jQuery(this), 4 a = t.attr("data-animation"); 5 1 == kswr_return_bool(t.attr("data-reanimation")) && t.removeClass("animated " + a) 6 }) 7} 8 9function kswr_animationblock_trigger() { 10 jQuery(".kswr-animationblock").each(function() { 11 var t = jQuery(this), 12 a = t.attr("data-animation"), 13 e = t.attr("data-reanimation"); 14 t.visible("partial") || 1 == kswr_return_bool(e) && t.removeClass("animated " + a) 15 }) 16} 17 18function kswr_repsponsive_size_manager() { 19 jQuery(".kswr-shortcode-element, .rhs-font-elem, .syn-font-elem").each(function() { 20 var t = jQuery(this).attr("data-fontsettings"); 21 if (void 0 != t && "" != t) { 22 var a = t.split(";"); 23 jQuery(window).width() > 991 && kswr_font_size_printer(jQuery(this), a, "font-size"), jQuery(window).width() <= 991 && jQuery(window).width() > 550 && kswr_font_size_printer(jQuery(this), a, "--tablet-font-size"), jQuery(window).width() <= 550 && kswr_font_size_printer(jQuery(this), a, "--phone-font-size") 24 } 25 }), jQuery(".kswr-responsive-spacer").each(function() { 26 var t = jQuery(this); 27 jQuery(window).width() > 1200 && t.css({ 28 height: t.attr("data-desk") 29 }), jQuery(window).width() <= 1199 && t.css({ 30 height: t.attr("data-tablet") 31 }), jQuery(window).width() <= 991 && t.css({ 32 height: t.attr("data-tablet-sm") 33 }), jQuery(window).width() <= 767 && t.css({ 34 height: t.attr("data-phone") 35 }), jQuery(window).width() <= 479 && t.css({ 36 height: t.attr("data-phone-sm") 37 }) 38 }) 39} 40 41function kswr_font_size_printer(t, a, e) { 42 void 0 != a && "" != jQuery.trim(a) && a.forEach(function(a) { 43 var r = a.split(":"); 44 r[0] == e && "" != r[1] && jQuery(t).css("font-size", r[1]) 45 }) 46} 47 48function kswr_show_modalwindow(t) { 49 50 jQuery(".layout-theme").addClass("ksw-modal"); 51 52 var a = jQuery(t), 53 e = a.attr("data-modal"); 54 jQuery('.km-overlay[data-modal="' + e + '"]').fadeIn(10, function() { 55 jQuery("#" + e).addClass("km-show"), a.hasClass("km-setperspective") && setTimeout(function() { 56 jQuery("html").addClass("km-perspective") 57 }, 25) 58 }) 59} 60 61function kswr_close_modalwindow(t) { 62 63 jQuery(".layout-theme").removeClass("ksw-modal"); 64 65 jQuery("html").removeClass("km-perspective"), jQuery(".km-modal").removeClass("km-show"), jQuery(".km-modal-video").find("iframe").each(function() { 66 jQuery(this).attr("src", jQuery(this).attr("src")) 67 }), jQuery(".km-overlay").hide(200), t.preventDefault() 68} 69 70function kswr_prevent_default(t) { 71 t.stopPropagation() 72} 73 74function kswr_cards_gallery(t) { 75 var a = (t = jQuery(t)).parent(".kswr-imcgal-insider"), 76 e = a.children(".kswr-imcgal-item:first-of-type"); 77 a.children(".kswr-imcgal-item:nth-of-type(2)"); 78 t.is(":first-child") || (a.addClass("changed"), setTimeout(function() { 79 e.remove(), a.append(e), a.removeClass("changed") 80 }, 400)) 81} 82 83function kswr_return_bool(t) { 84 return "true" == t || "false" != t && void 0 85} 86 87function kaswara_to_bool(t) { 88 return "true" == jQuery.trim(t) 89} 90 91function km_cf7_designer_focus(t) { 92 jQuery(".km_cf7-input-container").removeClass("filled"), jQuery(t).parent(".km_cf7-input-container").addClass("filled"), km_cf7_designer_checkfill() 93} 94 95function km_cf7_designer_blur(t) { 96 jQuery(".km_cf7-input-container").removeClass("filled"), km_cf7_designer_checkfill() 97} 98 99function km_cf7_designer_checkfill() { 100 jQuery(".km_cf7-input").each(function() { 101 var t = jQuery(this); 102 "" != jQuery.trim(t.val()) && t.parent(".km_cf7-input-container").addClass("filled") 103 }) 104} 105 106function km_cf7_designer_checkfill() { 107 jQuery(".km_cf7-input").each(function() { 108 var t = jQuery(this); 109 "" != jQuery.trim(t.val()) && (t.css({ 110 "z-index": "99999999999", 111 opacity: "1" 112 }), t.parent(".km_cf7-input-container").addClass("filled")) 113 }) 114} 115 116function kmfc7_svg_adder_plugin() { 117 jQuery(".km_cf7-input-container").find(".km_cf7-graphic").remove(), jQuery('.kameleon-cf7-container[data-style="shoko"]').find(".km_cf7-input-container").append('<svg class="graphic km_cf7-graphic" width="300%" height="100%" viewB
117ox="0 0 1200 60" preserveAspectRatio="none"><path vector-effect="non-scaling-stroke" d="M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0"/><path vector-effect="non-scaling-stroke" d="M0,2.5c0,0,298.666,0,399.333,0C448.336,2.5,513.994,13,597,13c77.327,0,135-10.5,200.999-10.5c95.996,0,402.001,0,402.001,0"/></svg>') 118} 119 120function kswr_countdown_updater(t, a) { 121 void 0 != a.milliseconds && "undefined" != a.milliseconds && kswr_countdown_printer(t, "milliseconds", a.milliseconds), void 0 != a.seconds && "undefined" != a.seconds && kswr_countdown_printer(t, "seconds", a.seconds), void 0 != a.minutes && "undefined" != a.minutes && kswr_countdown_printer(t, "minutes", a.minutes), void 0 != a.hours && "undefined" != a.hours && kswr_countdown_printer(t, "hours", a.hours), void 0 != a.days && "undefined" != a.days && kswr_countdown_printer(t, "days", a.days), void 0 != a.weeks && "undefined" != a.weeks && kswr_countdown_printer(t, "weeks", a.weeks), void 0 != a.months && "undefined" != a.months && kswr_countdown_printer(t, "months", a.months), void 0 != a.years && "undefined" != a.years && kswr_countdown_printer(t, "years", a.years) 122} 123 124function kswr_countdown_printer(t, a, e) { 125 var r = t.find('.kswr-countdown-elem[data-type="' + a + '"]'), 126 n = r.attr("data-singular"), 127 i = r.attr("data-plural"), 128 s = r.find(".kswr-countdown-digit span"); 129 e <= 1 ? r.find(".kswr-countdown-unit span").html(n) : r.find(".kswr-countdown-unit span").html(i), e < 10 ? parseInt(s.html()) != parseInt(e) && s.html("0" + e) : parseInt(s.html()) != parseInt(e) && s.html(e) 130} 131 132function kswr_countdown_elements(t) { 133 var a = null; 134 return -1 !== (t = t.split(",")).indexOf("YEARS") && (a += countdown.YEARS), -1 !== t.indexOf("MONTHS") && (a += countdown.MONTHS), -1 !== t.indexOf("WEEKS") && (a += countdown.WEEKS), -1 !== t.indexOf("DAYS") && (a += countdown.DAYS), -1 !== t.indexOf("HOURS") && (a += countdown.HOURS), -1 !== t.indexOf("MINUTES") && (a += countdown.MINUTES), -1 !== t.indexOf("SECONDS") && (a += countdown.SECONDS), -1 !== t.indexOf("MILLISECONDS") && (a += countdown.MILLISECONDS), a 135} 136 137function sayen_isotope_show() { 138 jQuery(".syn-isotope-item").bind("inview", function(t) { 139 t && jQuery(this).attr({ 140 "data-isotope-situation": "shown" 141 }) 142 }) 143} 144 145function sayen_isotope_options(t) { 146 var a = t.attr("data-gutter"), 147 e = { 148 itemSelector: ".syn-isotope-item", 149 transitionDuration: "0", 150 percentPosition: !0, 151 masonry: { 152 percentPosition: !0, 153 columnWidth: t.find(".syn-isotope-item")[0], 154 itemSelector: ".syn-isotope-item", 155 gutter: parseInt(a) 156 } 157 }; 158 imagesLoaded(t, function() { 159 t.isotope(e), t.css({ 160 opacity: "1" 161 }), sayen_isotope_show() 162 }) 163} 164jQuery(function(t) { 165 /MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent), t(document).ready(function() { 166 t("[data-tilt]").tilt({ 167 maxTilt: 20, 168 perspective: 1e3, 169 easing: "cubic-bezier(.03,.98,.52,.99)", 170 scale: 1, 171 speed: 100, 172 transition: !0, 173 axis: null, 174 reset: !0, 175 glare: !1, 176 maxGlare: 1 177 }), t(".syn-parallaxf-container").on("mousemove", function(a) { 178 var e = t(this), 179 r = e.offset(), 180 n = 100 * (a.pageX - r.left) / e.width(), 181 i = 100 * (a.pageY - r.top) / e.height(); 182 e.find('.syn-parallaxf-item[data-parallax-move="enabled"]').each(function(a, e) { 183 var r = (e = t(e)).attr("data-parallax-sensitive"); 184 void 0 != t.trim(r) && "" == t.trim(r) || (r = 1), e.css({ 185 "-webkit-transform": "translate(" + n * -r + "px, " + i * -r + "px)", 186 transform: "translate(" + n * -r + "px, " + i * -r + "px)" 187 }) 188 }) 189 }), t(".syn-hotspot-container").find(".syn-hotspot-insider").sayenhotspot(), t(".kswr-row-element-back").each(function() { 190 var a = t(this).children(".kswr-row-ver-separator-container-top"), 191 e = t(this).children(".kswr-row-ver-separator-container-bottom"); 192 t(this).children(".kswr-row-ver-separator-container").remove(); 193 var r = t(this)[0].outerHTML, 194 n = t(this).attr("data-classes"); 195 t(this).prevAll("div.vc_row:first").addClass(n).prepend(r), a.length > 0 && t(a[0].outerHTML).insertBefore(t(this).prevAll("div.vc_row:first")), e.length > 0 && t(e[0].outerHTML).insertAfter(t(this).prevAll("div.vc_row:first")), t(this).remove() 196 }), t(".kswr-column-settings").each(function() { 197 var a = t(this).attr("data-classes"); 198 if ("on" == t(this).attr("data-isminheight")) { 199 var e = t(this).attr("data-minheight"); 200 console.log(e), t(this).prevAll("div.wpb_column:first").children(".vc_column-inner").css({ 201 "min-height": e 202 }) 203 } 204 t(this).prevAll("div.wpb_column:first").addClass(a), t(this).remove() 205 }), t(".km-twentytwenty-container[data-orientation!='vertical']").twentytwenty(), t(".km-twentytwenty-container[data-orientation='vertical']").twentytwenty({ 206 orientation: "vertical" 207 }), kmfc7_svg_adder_plugin(), t(".kswr-countdown-container").each(function() { 208 var a = t(this).attr("data-deadline"), 209 e = t(this), 210 r = t(this).attr("data-countdown"); 211 kswr_countdown_elements(r); 212 countdown(new Date(Date.parse(a.replace(/-/g, "/"))), function(t) { 213 kswr_countdown_updater(e, t) 214 }, kswr_countdown_elements(r)) 215 }), t(".km-item-bind-view").bind("inview", function(a) { 216 a ? t(this).removeClass("km-item-bind-hidden").addClass("km-item-bind-shown") : t(this).unbind("inview") 217 }), kswr_animationblock_trigger(), t(".kswr-situation-bind").bind("inview", function(a) { 218 var e = t(this); 219 if (a) { 220 var r = e.attr("data-delay"); 221 void 0 !== r && !1 !== r ? setTimeout(function() { 222 e.attr({ 223 "data-situation": "shown" 224 }) 225 }, r) : e.attr({ 226 "data-situation": "shown" 227 }) 228 } else t(this).unbind("inview") 229 }), t(window).width() <= 930 && t(".pp-tableCell").addClass("ppkswr-responsive"), t(".kswr-piling-container").each(function() { 230 var a = t(this); 231 a.find(".vc_row").css({ 232 width: a.parents(".vc_row").width(), 233 margin: "auto" 234 }); 235 var e = parseInt(a.attr("data-speed")), 236 r = kaswara_to_bool(a.attr("data-css3")), 237 n = kaswara_to_bool(a.attr("data-looptop")), 238 i = kaswara_to_bool(a.attr("data-loopbottom")), 239 s = a.attr("data-navbulletcolor"), 240 o = a.attr("data-navtooltipcolor"), 241 d = a.attr("data-navposition"), 242 l = a.attr("data-transanimation"), 243 p = kaswara_to_bool(a.attr("data-verticalcentered")), 244 c = []; 245 a.children(".kswr-piling-section").each(function() { 246 "" != t.trim(t(this).attr("data-tooltip")) && c.push(t(this).attr("data-tooltip")) 247 }), a.pagepiling({ 248 verticalCentered: p, 249 scrollingSpeed: e, 250 easing: "swing", 251 loopBottom: i, 252 loopTop: n, 253 css3: r, 254 navigation: { 255 position: d, 256 tooltips: c 257 }, 258 normalScrollElements: ".pp-tableCell.ppkswr-responsive", 259 animateAnchor: !0, 260 touchSensitivity: 5, 261 keyboardScrolling: !0, 262 sectionSelector: ".kswr-piling-section", 263 onLeave: function(t, e, r) { 264 var n = a.children(".kswr-piling-section:nth-of-type(" + t + ")"), 265 i = a.children(".kswr-piling-section:nth-of-type(" + e + ")"), 266 s = a.children(".kswr-piling-section:nth-of-type(" + parseInt(t - 1) + ")"); 267 "down" == r && ("normal" == l && (i.addClass("no-transition").css({ 268 transform: "translate3d(0px, 0px, 0px)", 269 "-webkit-transform": "translate3d(0px, 0px, 0px)" 270 }), a.children(".kswr-piling-section:not(.kswr-piling-section:nth-of-type(" + e + "))").removeClass("no-transition").css({ 271 transform: "translate3d(0px, -100%, 0px)", 272 "-webkit-transform": "translate3d(0px, -100%, 0px)" 273 })), "scale" == l && (i.addClass("no-transition").css({ 274 transform: "translate3d(0px, 0px, 0px) scale(1)", 275 "-webkit-transform": "translate3d(0px, 0px, 0px) scale(1)" 276 }), a.children(".kswr-piling-section:not(.kswr-piling-section:nth-of-type(" + e + "))").removeClass("no-transition").css({ 277 transform: "translate3d(0px, -100%, 0px) scale(.85)", 278 "-webkit-transform": "translate3d(0px, -100%, 0px) scale(.85)" 279 })), "modern" == l && (n.attr({ 280 style: "transform:scale(.85) !important;-webkit-transform:scale(.85) !important; z-index:1!important; transform-origin: center bottom !important;" 281 }), i.attr({ 282 style: "z-index:2!important; transform:translate3d(0px, 0px, 0px)!important;-webkit-transform: translate3d(0px, 0px, 0px)!important; " 283 })), "parallax" == l && (i.removeClass("small-transition").attr({ 284 style: "z-index:2!important; transform:translate3d(0px, 0px, 0px)!important;-webkit-transform: translate3d(0px, 0px, 0px)!important; " 285 }), n.addClass("small-transition").attr({ 286 style: "transform:translate3d(0px, -70%, 0px)!important;-webkit-transform:translate3d(0px, -70%, 0px)!important; z-index:1!important;" 287 }))), "up" == r && ("normal" == l && i.css({ 288 transform: "translate3d(0px, 0px, 0px)", 289 "-webkit-transform": "translate3d(0px, 0px, 0px)" 290 }), "scale" == l && i.css({ 291 transform: "translate3d(0px, 0px, 0px) scale(1)", 292 "-webkit-transform": "translate3d(0px, 0px, 0px) scale(1)" 293 }), "parallax" == l && (i.removeClass("small-transition").attr({ 294 style: "z-index:2!important; transform:translate3d(0px, 0%, 0px)!important;-webkit-transform:translate3d(0px, 0%, 0px)!important;" 295 }), n.addClass("small-transition").attr({ 296 style: " z-index:1!important; transform::translate3d(0px, 70%, 0px)!important;-webkit-transform:translate3d(0px, 70%, 0px)!important;" 297 })), "modern" == l && (i.attr({ 298 style: "z-index:2!important; transform:translate3d(0px, 0px, 0px)!important;-webkit-transform: translate3d(0px, 0px, 0px)!important;" 299 }), n.attr({ 300 style: " z-index:1!important; transform:scale(.85) !important;-webkit-transform:scale(.85) !important; transform-origin: center top!important;" 301 }))), kswr_reanimate_block(s), kswr_reanimate_block(i) 302 }, 303 afterLoad: function(t, e) {
304 var r = a.children(".kswr-piling-section:nth-of-type(" + e + ")"), 305 n = a.children(".kswr-piling-section:nth-of-type(" + parseInt(e - 1) + ")"), 306 i = a.children(".kswr-piling-section:nth-of-type(" + parseInt(e + 1) + ")"); 307 "normal" == l && (r.addClass("no-transition").css({ 308 transform: "translate3d(0px, 0px, 0px)", 309 "-webkit-transform": "translate3d(0px, 0px, 0px)" 310 }), a.children(".kswr-piling-section:not(.kswr-piling-section:nth-of-type(" + e + "))").removeClass("no-transition").css({ 311 transform: "translate3d(0px, -100%, 0px)", 312 "-webkit-transform": "translate3d(0px, -100%, 0px)" 313 })), "modern" == l && (n.attr({ 314 style: " z-index:1!important; transform:translate3d(0px, -100%, 0px) scale(1) !important;-webkit-transform:translate3d(0px, -100%, 0px) scale(1) !important; " 315 }), i.attr({ 316 style: " z-index:1!important; transform:translate3d(0px, 100%, 0px) scale(1) !important;-webkit-transform:translate3d(0px, 100%, 0px) scale(1) !important;" 317 })), "parallax" == l && (n.removeClass("small-transition").attr({ 318 style: " z-index:1!important; transform:translate3d(0px, -100%, 0px)!important;-webkit-transform:translate3d(0px, -100%, 0px)!important; " 319 }), i.removeClass("small-transition").attr({ 320 style: " z-index:1!important; transform:translate3d(0px, 100%, 0px)!important;-webkit-transform:translate3d(0px, 100%, 0px)!important;" 321 })) 322 }, 323 afterRender: function() {} 324 }), t("#pp-nav").find("span").attr({ 325 style: "color:" + o + "!important;background:" + s + " !important;border-color:" + s + "!important;" 326 }) 327 }), t(window).scroll(function() { 328 kswr_animationblock_trigger(), t('.kswr-row-parallax[data-parallaxtype="vertical_prlx"] .kswr-element-back-overlay, .kswr-row-parallax[data-parallaxtype="horizontal_prlx"] .kswr-element-back-overlay').each(function() { 329 var a = t(this).parent(".kswr-row-parallax"), 330 e = t(this), 331 r = a.attr("data-parallaxtype"), 332 n = a.attr("data-parallaxspeed"), 333 i = (window.pageYOffset, e.css("backgroundPosition").split(" ")); 334 a.visible("partial"); 335 if ("vertical_prlx" == t.trim(r)) { 336 "" != a.attr("data-ypos-start") && void 0 != a.attr("data-ypos-start") || a.attr("data-ypos-start", i[1]); 337 var s = parseFloat(i[1]) * parseFloat(a.css("height")) / 100; 338 "" != a.attr("data-ypos") && void 0 != a.attr("data-ypos") || a.attr("data-ypos", s), "100%" == i[1] && (s = -s); 339 var o = window.pageYOffset * Number(n) - parseFloat(a.attr("data-ypos")) + "px"; 340 "0%" == a.attr("data-ypos-start") && (o = parseFloat(a.attr("data-ypos")) - window.pageYOffset * Number(n) + "px"), "50%" == a.attr("data-ypos-start") && (o = "calc(50% + " + window.pageYOffset * Number(n) + "px)"), e.css("background-position-y", o) 341 } 342 if ("horizontal_prlx" == t.trim(r)) { 343 "" != a.attr("data-xpos-start") && void 0 != a.attr("data-xpos-start") || a.attr("data-xpos-start", i[0]); 344 var d = parseFloat(i[0]) * parseFloat(a.css("width")) / 100; 345 "" != a.attr("data-xpos") && void 0 != a.attr("data-xpos") || a.attr("data-xpos", d), "100%" == i[0] && (d = -d); 346 var l = window.pageYOffset * Number(n) - parseFloat(a.attr("data-xpos")) + "px"; 347 "0%" == a.attr("data-xpos-start") && (l = parseFloat(a.attr("data-xpos")) - window.pageYOffset * Number(n) + "px"), "50%" == a.attr("data-xpos-start") && (l = "calc(50% - " + window.pageYOffset * Number(n) * .5 + "px)"), e.css("background-position-x", l) 348 } 349 }) 350 }), t('.kswr-row-parallax[data-parallaxtype="vertical_move"] .kswr-element-back-overlay, .kswr-row-parallax[data-parallaxtype="horizontal_move"] .kswr-element-back-overlay').each(function() { 351 var a = t(this).parent(".kswr-row-parallax"), 352 e = t(this), 353 r = a.attr("data-parallaxtype"), 354 n = a.attr("data-parallaxautospeed"); 355 n = 100 - n; 356 var i = 0; 357 if ("horizontal_move" == t.trim(r)) { 358 s = a.attr("data-horizmoveto"); 359 setInterval(function(t) { 360 "left" == s ? i -= 1 : i += 1, e.css("background-position-x", i + "px") 361 }, n) 362 } 363 if ("vertical_move" == t.trim(r)) { 364 var s = a.attr("data-vertmoveto"); 365 setInterval(function(t) { 366 "top" == s ? i -= 1 : i += 1, e.css("background-position-y", i + "px") 367 }, n) 368 } 369 }), t(".vc_row").mousemove(function(a) { 370 var e = t(this).find('.kswr-row-parallax[data-parallaxtype="follow_mouse"] .kswr-row-parallax-followmouse'), 371 r = e.children(".kswr-element-back-overlay"); 372 if (void 0 != e && "" != e) { 373 void 0 != e.attr("data-theX") && "" != e.attr("data-theX") || e.attr("data-theX", r.css("background-position-x")), void 0 != e.attr("data-theY") && "" != e.attr("data-theY") || e.attr("data-theY", r.css("background-position-y")); 374 var n = e.attr("data-theX"), 375 i = e.attr("data-theY"), 376 s = 50 / t(window).height(), 377 o = 50 / t(window).width() * (a.pageX - t(window).width() / 2) * -1 - 25, 378 d = s * (a.pageY - t(window).height() / 2) * -1 - 50; 379 void 0 != n && void 0 != i && r.css("background-position", "calc(" + n + " + " + o + "px) calc(" + i + " + " + d + "px)") 380 } 381 }), t(".kswr-slickslider-container").each(function() { 382 t(this).attr("data-vertical"); 383 384
385 var a = t(this).attr("data-slidestoshow-desk"), 386 e = t(this).attr("data-slidestoscroll-desk"), 387 r = t(this).attr("data-slidestoshow-tablet"), 388 n = t(this).attr("data-slidestoscroll-tablet"), 389 i = t(this).attr("data-slidestoshow-mobile"), 390 s = t(this).attr("data-slidestoscroll-mobile"), 391 o = t(this).attr("data-speed"), 392 d = kswr_return_bool(t(this).attr("data-infinite")), 393 l = kswr_return_bool(t(this).attr("data-autoplay")), 394 p = t(this).attr("data-autoplayspeed"), 395 c = kswr_return_bool(t(this).attr("data-adaptiveheight")), 396 m = kswr_return_bool(t(this).attr("data-centermode")), 397 w = t(this).attr("data-centerpadding"), 398 u = t(this).attr("data-centerpaddingtablet"), 399 f = t(this).attr("data-centerpaddingmobile"), 400 h = kswr_return_bool(t(this).attr("data-dots")), 401 k = kswr_return_bool(t(this).attr("data-arrows")), 402 v = t(this).attr("data-tabletbreakpoint"), 403 y = t(this).attr("data-phonebreakpoint"); 404 t(this).slick({ 405 slidesToShow: parseInt(a), 406 slidesToScroll: parseInt(e), 407 speed: parseInt(o), 408 infinite: d, 409 dots: h, 410 arrows: k, 411 autoplay: l, 412 autoplaySpeed: parseInt(p), 413 adaptiveHeight: c, 414 centerMode: m, 415 centerPadding: w, 416 417 418 419 420 421 /* responsive: [{ 422 breakpoint: parseInt(v), 423 settings: { 424 slidesToShow: parseInt(r), 425 centerPadding: u, 426 slidesToScroll: parseInt(n) 427 } 428 }] 429 430 , 431 432 responsive: [{ 433 breakpoint: parseInt(y), 434 settings: { 435 slidesToShow: parseInt(i), 436 centerPadding: f, 437 slidesToScroll: parseInt(s) 438 } 439 }] */ 440 441 442 443 responsive: [ 444 445 { 446 breakpoint: parseInt(v), 447 settings: { 448 slidesToShow: parseInt(r), 449 centerPadding: u, 450 slidesToScroll: parseInt(n) 451 } 452 }, 453 { 454 breakpoint: parseInt(y), 455 settings: { 456 slidesToShow: parseInt(i), 457 centerPadding: f, 458 slidesToScroll: parseInt(s) 459 } 460 } 461 462 ] 463 464 465 466 467 468 469 }) 470 }), t(window).keydown(function(t) { 471 27 == t.keyCode && kswr_close_modalwindow(event) 472 }), t(".kswr-imcgal-container").each(function() { 473 var a = t(this); 474 a.find(".kswr-imcgal-fakeone").html(a.find(".kswr-imcgal-item:first-of-type").html()) 475 }), t(".kswr-fancytext").each(function() { 476 var a = t(this), 477 e = a.attr("data-style"), 478 r = { 479 content: "" 480 }; 481 "" != t.trim(a.attr("data-words")) && (r = JSON.parse(a.attr("data-words"))); 482 var n = []; 483 for (var i in r) "" != t.trim(r[i]) && n.push({ 484 content: r[i] 485 }); 486 var s = { 487 cursor: kswr_return_bool(a.attr("data-cursor")), 488 holdTime: a.attr("data-holdtime"), 489 words: n 490 }; 491 "typing" == t.trim(e) && (s.typing = !0, s.typeSpeed = a.attr("data-typespeed"), s.typeAnimation = a.attr("data-typeanimation")), t(this).sayenft(s) 492 }), t(".kswr-animationblock").on("inview", function(a) { 493 var e = t(this), 494 r = e.attr("data-animation"); 495 a && e.addClass("animated " + r) 496 }), t(".kswr-counter-value").bind("inview", function(a) { 497 if (a) { 498 var e = t(this); 499 if ("done" != e.attr("data-done")) { 500 var r = { 501 endVal: e.attr("data-endVal"), 502 separator: e.attr("data-separator"),
503 decimal: e.attr("data-decimal"), 504 duration: e.attr("data-duration") 505 }; 506 e.kaswaracount(r), e.attr("data-done", "done") 507 } 508 } else t(this).unbind("inview") 509 }), t(".kswr-vsklbr-container").bind("inview", function(a) { 510 if (a) { 511 var e = t(this).attr("data-percent"); 512 t(this).find(".kswr-vsklbr-bar-value").animate({ 513 height: e + "%" 514 }, 1) 515 } else t(this).unbind("inview") 516 }), t(".syn-isotope-container").each(function(a, e) { 517 sayen_isotope_options(e = t(e)) 518 }), t(".km-progressbar-container").bind("inview", function(a) { 519 if (a) { 520 var e = t(this).attr("data-percent"); 521 "style_1" == t(this).attr("data-style") && t(this).find(".km-progressbar-tooltip").css({ 522 left: "calc( " + e + "% - 35px )" 523 }), t(this).find(".km-progressbar-thebar").css({ 524 width: e + "%" 525 }) 526 } else t(this).unbind("inview") 527 }), t(".km-radial-progressbar").bind("inview", function(a) { 528 var e = t(this); 529 if (a) { 530 setTimeout(function() { 531 e.attr("data-progress", parseInt(e.attr("data-value"))) 532 }, 200); 533 var r = 0, 534 n = parseInt(e.attr("data-value")), 535 i = function() { 536 if (parseInt(e.find(".perc-value").html()) != n) setTimeout(function() { 537 e.find(".perc-value").html(r), r < n && i(), r += 1 538 }, 30) 539 }; 540 i() 541 } else t(this).unbind("inview") 542 }), t(".km-line-sep-container").bind("inview", function(a) { 543 a ? t(this).addClass("km-line-shown") : t(this).unbind("inview") 544 }), t(".syp-items-wrapper, .syp-items-wrapper-post").each(function(a, e) { 545 var e = t(e), 546 r = { 547 itemSelector: ".syp-item", 548 transitionDuration: 0, 549 percentPosition: !0, 550 masonry: { 551 columnWidth: ".syp-item", 552 gutter: parseInt(e.attr("data-gutter")) 553 } 554 }; 555 imagesLoaded(e, function() { 556 e.isotope(r), e.css({ 557 opacity: "1" 558 }) 559 }) 560 }), t(".km-masonry-item").bind("inview", function(a) { 561 a ? t(this).removeClass("km-masonry-item-hidden").addClass("km-masonry-item-shown") : t(this).unbind("inview") 562 }), t(".km-filteri-items-list,.km-portfolio-loop,.syp-items-wrapper").each(function(a) { 563 var e = t(this), 564 r = e.attr("data-columns"), 565 n = 0, 566 i = 1, 567 s = 1; 568 e.children(".km-masonry-item,.portfolio-item").each(function(a, e) { 569 a += 1, n = "." + (s += 2) + "s", t(this).css({ 570 "-webkit-transition": "all .4s ease-in-out " + n + ", box-shadow .3s ease-in-out", 571 transition: "all .4s ease-in-out " + n + ", box-shadow .3s ease-in-out" 572 }), a == r * i && (i += 1, s = 1) 573 }) 574 }), t(".km-filteri-items-list").each(function(a, e) { 575 var e = t(e), 576 r = { 577 itemSelector: ".km-filteri-item", 578 transitionDuration: 0, 579 percentPosition: !0, 580 masonry: { 581 columnWidth: ".km-filteri-item", 582 gutter: 25 583 } 584 }; 585 imagesLoaded(e, function() { 586 e.isotope(r), e.css({ 587 opacity: "1" 588 }) 589 }) 590 }), t(".km-filteri-cats").children(".km-filteri-link").click(function() { 591 var a = t(this), 592 e = a.parent(".km-filteri-cats").next(".km-filteri-items-list, .rhs-isotope-container, .syn-isotope-container"); 593 a.parent(".km-filteri-cats").children(".km-filteri-link").attr({ 594 "data-active": "false" 595 }), a.attr({ 596 "data-active": "true" 597 }); 598 var r = a.attr("data-filter"); 599 e.isotope({ 600 filter: r 601 }) 602 }), kswr_repsponsive_size_manager(), t(window).resize(function() { 603 t(window).width() <= 930 ? t(".pp-tableCell").addClass("ppkswr-responsive") : t(".pp-tableCell").removeClass("ppkswr-responsive"), t(".kswr-piling-container").find(".vc_row").css({ 604 width: t(".kswr-piling-container").parents(".vc_row").width(), 605 margin: "auto" 606 }), kswr_repsponsive_size_manager() 607 }), sayen_isotope_show() 608 }) 609}), jQuery(document).ready(function() { 610 jQuery("html").addClass("sidebysidepage"), jQuery(".sidebysidepage").children("body").attr({ 611 style: "--nav-color-nav:" + jQuery(".km-sidebyside-container").attr("data-color") 612 }), jQuery(window).width() >= 1050 && jQuery(".km-sidebyside-container").each(function(t) { 613 $ctn = jQuery(this); 614 var a = {
615 scrollingSpeed: parseInt(jQuery(this).attr("data-speed")), 616 navigation: kaswara_to_bool(jQuery(this).attr("data-navigation")), 617 navigationPosition: jQuery(this).attr("data-position"), 618 easing: jQuery(this).attr("data-easing"), 619 loopBottom: kaswara_to_bool(jQuery(this).attr("data-loop")), 620 loopTop: kaswara_to_bool(jQuery(this).attr("data-loop")), 621 css3: kaswara_to_bool(jQuery(this).attr("data-css3")), 622 onLeave: function(t, a, e) { 623 var r = $ctn.find(".km-sidebyside-element-container:nth-of-type(" + a + ")"); 624 kswr_reanimate_block($ctn.find(".km-sidebyside-element-container:nth-of-type(" + parseInt(t - 1) + ")")), kswr_reanimate_block(r) 625 } 626 }; 627 jQuery(this).multiscroll(a) 628 }) 629}); 630 631//All the External Plugins 632//Isotope Js 633! function(a) { 634 function b() {} 635 636 function c(a) { 637 function c(b) { 638 b.prototype.option || (b.prototype.option = function(b) { 639 a.isPlainObject(b) && (this.options = a.extend(!0, this.options, b)) 640 }) 641 } 642 643 function e(b, c) { 644 a.fn[b] = function(e) { 645 if ("string" == typeof e) { 646 for (var g = d.call(arguments, 1), h = 0, i = this.length; i > h; h++) { 647 var j = this[h], 648 k = a.data(j, b); 649 if (k) 650 if (a.isFunction(k[e]) && "_" !== e.charAt(0)) { 651 var l = k[e].apply(k, g); 652 if (void 0 !== l) return l 653 } else f("no such method '" + e + "' for " + b + " instance"); 654 else f("cannot call methods on " + b + " prior to initialization; attempted to call '" + e + "'") 655 } 656 return this 657 } 658 return this.each(function() { 659 var d = a.data(this, b); 660 d ? (d.option(e), d._init()) : (d = new c(this, e), a.data(this, b, d)) 661 }) 662 } 663 } 664 if (a) { 665 var f = "undefined" == typeof console ? b : function(a) { 666 console.error(a) 667 }; 668 return a.bridget = function(a, b) { 669 c(b), e(a, b) 670 }, a.bridget 671 } 672 } 673 var d = Array.prototype.slice; 674 "function" == typeof define && define.amd ? define("jquery-bridget/jquery.bridget", ["jquery"], c) : c("object" == typeof exports ? require("jquery") : a.jQuery) 675}(window), 676function(a) { 677 function b(b) { 678 var c = a.event; 679 return c.target = c.target || c.srcElement || b, c 680 } 681 var c = document.documentElement, 682 d = function() {}; 683 c.addEventListener ? d = function(a, b, c) { 684 a.addEventListener(b, c, !1) 685 } : c.attachEvent && (d = function(a, c, d) { 686 a[c + d] = d.handleEvent ? function() { 687 var c = b(a); 688 d.handleEvent.call(d, c) 689 } : function() { 690 var c = b(a); 691 d.call(a, c) 692 }, a.attachEvent("on" + c, a[c + d]) 693 }); 694 var e = function() {}; 695 c.removeEventListener ? e = function(a, b, c) { 696 a.removeEventListener(b, c, !1) 697 } : c.detachEvent && (e = function(a, b, c) { 698 a.detachEvent("on" + b, a[b + c]); 699 try { 700 delete a[b + c] 701 } catch (d) { 702 a[b + c] = void 0 703 } 704 }); 705 var f = { 706 bind: d, 707 unbind: e 708 }; 709 "function" == typeof define && define.amd ? define("eventie/eventie", f) : "object" == typeof exports ? module.exports = f : a.eventie = f 710}(window), 711function() { 712 "use strict"; 713 714 function a() {} 715 716 function b(a, b) { 717 for (var c = a.length; c--;) 718 if (a[c].listener === b) return c; 719 return -1 720 } 721 722 function c(a) { 723 return function() { 724 return this[a].apply(this, arguments) 725 } 726 } 727 var d = a.prototype, 728 e = this, 729 f = e.EventEmitter; 730 d.getListeners = function(a) { 731 var b, c, d = this._getEvents(); 732 if (a instanceof RegExp) { 733 b = {}; 734 for (c in d) d.hasOwnProperty(c) && a.test(c) && (b[c] = d[c]) 735 } else b = d[a] || (d[a] = []); 736 return b 737 }, d.flattenListeners = function(a) { 738 var b, c = []; 739 for (b = 0; b < a.length; b += 1) c.push(a[b].listener); 740 return c 741 }, d.getListenersAsObject = function(a) { 742 var b, c = this.getListeners(a); 743 return c instanceof Array && (b = {}, b[a] = c), b || c 744 }, d.addListener = function(a, c) { 745 var d, e = this.getListenersAsObject(a), 746 f = "object" == typeof c; 747 for (d in e) e.hasOwnProperty(d) && -1 === b(e[d], c) && e[d].push(f ? c : { 748 listener: c, 749 once: !1 750 }); 751 return this 752 }, d.on = c("addListener"), d.addOnceListener = function(a, b) { 753 return this.addListener(a, { 754 listener: b, 755 once: !0 756 }) 757 }, d.once = c("addOnceListener"), d.defineEvent = function(a) { 758 return this.getListeners(a), this 759 }, d.defineEvents = function(a) { 760 for (var b = 0; b < a.length; b += 1) this.defineEvent(a[b]); 761 return this 762 }, d.removeListener = function(a, c) { 763 var d, e, f = this.getListenersAsObject(a); 764 for (e in f) f.hasOwnProperty(e) && (d = b(f[e], c), -1 !== d && f[e].splice(d, 1)); 765 return this 766 }, d.off = c("removeListener"), d.addListeners = function(a, b) { 767 return this.manipulateListeners(!1, a, b) 768 }, d.removeListeners = function(a, b) { 769 return this.manipulateListeners(!0, a, b) 770 }, d.manipulateListeners = function(a, b, c) { 771 var d, e, f = a ? this.removeListener : this.addListener, 772 g = a ? this.removeListeners : this.addListeners; 773 if ("object" != typeof b || b instanceof RegExp) 774 for (d = c.length; d--;) f.call(this, b, c[d]); 775 else 776 for (d in b) b.hasOwnProperty(d) && (e = b[d]) && ("function" == typeof e ? f.call(this, d, e) : g.call(this, d, e)); 777 return this 778 }, d.removeEvent = function(a) { 779 var b, c = typeof a, 780 d = this._getEvents(); 781 if ("string" === c) delete d[a]; 782 else if (a instanceof RegExp) 783 for (b in d) d.hasOwnProperty(b) && a.test(b) && delete d[b]; 784 else delete this._events; 785 return this 786 }, d.removeAllListeners = c("removeEvent"), d.emitEvent = function(a, b) { 787 var c, d, e, f, g = this.getListenersAsObject(a); 788 for (e in g) 789 if (g.hasOwnProperty(e)) 790 for (d = g[e].length; d--;) c = g[e][d], c.once === !0 && this.removeListener(a, c.listener), f = c.listener.apply(this, b || []), f === this._getOnceReturnValue() && this.removeListener(a, c.listener); 791 return this 792 }, d.trigger = c("emitEvent"), d.emit = function(a) { 793 var b = Array.prototype.slice.call(arguments, 1); 794 return this.emitEvent(a, b) 795 }, d.setOnceReturnValue = function(a) { 796 return this._onceReturnValue = a, this 797 }, d._getOnceReturnValue = function() { 798 return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 799 }, d._getEvents = function() { 800 return this._events || (this._events = {}) 801 }, a.noConflict = function() { 802 return e.EventEmitter = f, a 803 }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function() { 804 return a 805 }) : "object" == typeof module && module.exports ? module.exports = a : e.EventEmitter = a 806}.call(this), 807 function(a) { 808 function b(a) { 809 if (a) { 810 if ("string" == typeof d[a]) return a; 811 a = a.charAt(0).toUpperCase() + a.slice(1); 812 for (var b, e = 0, f = c.length; f > e; e++) 813 if (b = c[e] + a, "string" == typeof d[b]) return b 814 } 815 } 816 var c = "Webkit Moz ms Ms O".split(" "), 817 d = document.documentElement.style; 818 "function" == typeof define && define.amd ? define("get-style-property/get-style-property", [], function() { 819 return b 820 }) : "object" == typeof exports ? module.exports = b : a.getStyleProperty = b 821 }(window), 822 function(a, b) { 823 function c(a) { 824 var b = parseFloat(a), 825 c = -1 === a.indexOf("%") && !isNaN(b); 826 return c && b 827 } 828 829 function d() {} 830 831 function e() { 832 for (var a = { 833 width: 0, 834 height: 0, 835 innerWidth: 0, 836 innerHeight: 0, 837 outerWidth: 0, 838 outerHeight: 0 839 }, b = 0, c = h.length; c > b; b++) { 840 var d = h[b]; 841 a[d] = 0 842 } 843 return a 844 } 845 846 function f(b) { 847 function d() { 848 if (!m) { 849 m = !0; 850 var d = a.getComputedStyle; 851 if (j = function() { 852 var a = d ? function(a) { 853 return d(a, null) 854 } : function(a) { 855 return a.currentStyle 856 }; 857 return function(b) { 858 var c = a(b); 859 return c || g("Style returned " + c + ". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"), c 860 } 861 }(), k = b("boxSizing")) { 862 var e = document.createElement("div"); 863 e.style.width = "200px", e.style.padding = "1px 2px 3px 4px", e.style.borderStyle = "solid", e.style.borderWidth = "1px 2px 3px 4px", e.style[k] = "border-box"; 864 var f = document.body || document.documentElement; 865 f.appendChild(e); 866 var h = j(e); 867 l = 200 === c(h.width), f.removeChild(e) 868 } 869 } 870 } 871 872 function f(a) { 873 if (d(), "string" == typeof a && (a = document.querySelector(a)), a && "object" == typeof a && a.nodeType) { 874 var b = j(a); 875 if ("none" === b.display) return e(); 876 var f = {}; 877 f.width = a.offsetWidth, f.height = a.offsetHeight; 878 for (var g = f.isBorderBox = !(!k || !b[k] || "border-box" !== b[k]), m = 0, n = h.length; n > m; m++) { 879 var o = h[m], 880 p = b[o]; 881 p = i(a, p); 882 var q = parseFloat(p); 883 f[o] = isNaN(q) ? 0 : q 884 } 885 var r = f.paddingLeft + f.paddingRight, 886 s = f.paddingTop + f.paddingBottom, 887 t = f.marginLeft + f.marginRight, 888 u = f.marginTop + f.marginBottom, 889 v = f.borderLeftWidth + f.borderRightWidth, 890 w = f.borderTopWidth + f.borderBottomWidth, 891 x = g && l, 892 y = c(b.width); 893 y !== !1 && (f.width = y + (x ? 0 : r + v)); 894 var z = c(b.height); 895 return z !== !1 && (f.height = z + (x ? 0 : s + w)), f.innerWidth = f.width - (r + v), f.innerHe
895ight = f.height - (s + w), f.outerWidth = f.width + t, f.outerHeight = f.height + u, f 896 } 897 } 898 899 function i(b, c) { 900 if (a.getComputedStyle || -1 === c.indexOf("%")) return c; 901 var d = b.style, 902 e = d.left, 903 f = b.runtimeStyle, 904 g = f && f.left; 905 return g && (f.left = b.currentStyle.left), d.left = c, c = d.pixelLeft, d.left = e, g && (f.left = g), c 906 } 907 var j, k, l, m = !1; 908 return f 909 } 910 var g = "undefined" == typeof console ? d : function(a) { 911 console.error(a) 912 }, 913 h = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"]; 914 "function" == typeof define && define.amd ? define("get-size/get-size", ["get-style-property/get-style-property"], f) : "object" == typeof exports ? module.exports = f(require("desandro-get-style-property")) : a.getSize = f(a.getStyleProperty) 915 }(window), 916 function(a) { 917 function b(a) { 918 "function" == typeof a && (b.isReady ? a() : g.push(a)) 919 } 920 921 function c(a) { 922 var c = "readystatechange" === a.type && "complete" !== f.readyState; 923 b.isReady || c || d() 924 } 925 926 function d() { 927 b.isReady = !0; 928 for (var a = 0, c = g.length; c > a; a++) { 929 var d = g[a]; 930 d() 931 } 932 } 933 934 function e(e) { 935 return "complete" === f.readyState ? d() : (e.bind(f, "DOMContentLoaded", c), e.bind(f, "readystatechange", c), e.bind(a, "load", c)), b 936 } 937 var f = a.document, 938 g = []; 939 b.isReady = !1, "function" == typeof define && define.amd ? define("doc-ready/doc-ready", ["eventie/eventie"], e) : "object" == typeof exports ? module.exports = e(require("eventie")) : a.docReady = e(a.eventie) 940 }(window), 941 function(a) { 942 "use strict"; 943 944 function b(a, b) { 945 return a[g](b) 946 } 947 948 function c(a) { 949 if (!a.parentNode) { 950 var b = document.createDocumentFragment(); 951 b.appendChild(a) 952 } 953 } 954 955 function d(a, b) { 956 c(a); 957 for (var d = a.parentNode.querySelectorAll(b), e = 0, f = d.length; f > e; e++) 958 if (d[e] === a) return !0; 959 return !1 960 } 961 962 function e(a, d) { 963 return c(a), b(a, d) 964 } 965 var f, g = function() { 966 if (a.matches) return "matches"; 967 if (a.matchesSelector) return "matchesSelector"; 968 for (var b = ["webkit", "moz", "ms", "o"], c = 0, d = b.length; d > c; c++) { 969 var e = b[c], 970 f = e + "MatchesSelector"; 971 if (a[f]) return f 972 } 973 }(); 974 if (g) { 975 var h = document.createElement("div"), 976 i = b(h, "div"); 977 f = i ? b : e 978 } else f = d; 979 "function" == typeof define && define.amd ? define("matches-selector/matches-selector", [], function() { 980 return f 981 }) : "object" == typeof exports ? module.exports = f : window.matchesSelector = f 982 }(Element.prototype), 983 function(a, b) { 984 "use strict"; 985 "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["doc-ready/doc-ready", "matches-selector/matches-selector"], function(c, d) { 986 return b(a, c, d) 987 }) : "object" == typeof exports ? module.exports = b(a, require("doc-ready"), require("desandro-matches-selector")) : a.fizzyUIUtils = b(a, a.docReady, a.matchesSelector) 988 }(window, function(a, b, c) { 989 var d = {}; 990 d.extend = function(a, b) { 991 for (var c in b) a[c] = b[c]; 992 return a 993 }, d.modulo = function(a, b) { 994 return (a % b + b) % b 995 }; 996 var e = Object.prototype.toString; 997 d.isArray = function(a) { 998 return "[object Array]" == e.call(a) 999 }, d.makeArray = function(a) { 1000 var b = []; 1001 if (d.isArray(a)) b = a; 1002 else if (a && "number" == typeof a.length) 1003 for (var c = 0, e = a.length; e > c; c++) b.push(a[c]); 1004 else b.push(a); 1005 return b 1006 }, d.indexOf = Array.prototype.indexOf ? function(a, b) { 1007 return a.indexOf(b) 1008 } : function(a, b) { 1009 for (var c = 0, d = a.length; d > c; c++) 1010 if (a[c] === b) return c; 1011 return -1 1012 }, d.removeFrom = function(a, b) { 1013 var c = d.indexOf(a, b); - 1 != c && a.splice(c, 1) 1014 }, d.isElement = "function" == typeof HTMLElement || "object" == typeof HTMLElement ? function(a) { 1015 return a instanceof HTMLElement 1016 } : function(a) { 1017 return a && "object" == typeof a && 1 == a.nodeType && "string" == typeof a.nodeName 1018 }, d.setText = function() { 1019 function a(a, c) { 1020 b = b || (void 0 !== document.documentElement.textContent ? "textContent" : "innerText"), a[b] = c 1021 } 1022 var b; 1023 return a 1024 }(), d.getParent = function(a, b) { 1025 for (; a != document.body;) 1026 if (a = a.parentNode, c(a, b)) return a 1027 }, d.getQueryElement = function(a) { 1028 return "string" == typeof a ? document.querySelector(a) : a 1029 }, d.handleEvent = function(a) { 1030 var b = "on" + a.type; 1031 this[b] && this[b](a) 1032 }, d.filterFindElements = function(a, b) { 1033 a = d.makeArray(a); 1034 for (var e = [], f = 0, g = a.length; g > f; f++) { 1035 var h = a[f]; 1036 if (d.isElement(h)) 1037 if (b) { 1038 c(h, b) && e.push(h); 1039 for (var i = h.querySelectorAll(b), j = 0, k = i.length; k > j; j++) e.push(i[j]) 1040 } else e.push(h) 1041 } 1042 return e 1043 }, d.debounceMethod = function(a, b, c) { 1044 var d = a.prototype[b], 1045 e = b + "Timeout"; 1046 a.prototype[b] = function() { 1047 var a = this[e]; 1048 a && clearTimeout(a); 1049 var b = arguments, 1050 f = this; 1051 this[e] = setTimeout(function() { 1052 d.apply(f, b), delete f[e] 1053 }, c || 100) 1054 } 1055 }, d.toDashed = function(a) { 1056 return a.replace(/(.)([A-Z])/g, function(a, b, c) { 1057 return b + "-" + c 1058 }).toLowerCase() 1059 }; 1060 var f = a.console; 1061 return d.htmlInit = function(c, e) { 1062 b(function() { 1063 for (var b = d.toDashed(e), g = document.querySelectorAll(".js-" + b), h = "data-" + b + "-options", i = 0, j = g.length; j > i; i++) { 1064 var k, l = g[i], 1065 m = l.getAttribute(h); 1066 try { 1067 k = m && JSON.parse(m) 1068 } catch (n) { 1069 f && f.error("Error parsing " + h + " on " + l.no
1069deName.toLowerCase() + (l.id ? "#" + l.id : "") + ": " + n); 1070 continue 1071 } 1072 var o = new c(l, k), 1073 p = a.jQuery; 1074 p && p.data(l, e, o) 1075 } 1076 }) 1077 }, d 1078 }), 1079 function(a, b) { 1080 "use strict"; 1081 "function" == typeof define && define.amd ? define("outlayer/item", ["eventEmitter/EventEmitter", "get-size/get-size", "get-style-property/get-style-property", "fizzy-ui-utils/utils"], function(c, d, e, f) { 1082 return b(a, c, d, e, f) 1083 }) : "object" == typeof exports ? module.exports = b(a, require("wolfy87-eventemitter"), require("get-size"), require("desandro-get-style-property"), require("fizzy-ui-utils")) : (a.Outlayer = {}, a.Outlayer.Item = b(a, a.EventEmitter, a.getSize, a.getStyleProperty, a.fizzyUIUtils)) 1084 }(window, function(a, b, c, d, e) { 1085 "use strict"; 1086 1087 function f(a) { 1088 for (var b in a) return !1; 1089 return b = null, !0 1090 } 1091 1092 function g(a, b) { 1093 a && (this.element = a, this.layout = b, this.position = { 1094 x: 0, 1095 y: 0 1096 }, this._create()) 1097 } 1098 1099 function h(a) { 1100 return a.replace(/([A-Z])/g, function(a) { 1101 return "-" + a.toLowerCase() 1102 }) 1103 } 1104 var i = a.getComputedStyle, 1105 j = i ? function(a) { 1106 return i(a, null) 1107 } : function(a) { 1108 return a.currentStyle 1109 }, 1110 k = d("transition"), 1111 l = d("transform"), 1112 m = k && l, 1113 n = !!d("perspective"), 1114 o = { 1115 WebkitTransition: "webkitTransitionEnd", 1116 MozTransition: "transitionend", 1117 OTransition: "otransitionend", 1118 transition: "transitionend" 1119 }[k], 1120 p = ["transform", "transition", "transitionDuration", "transitionProperty"], 1121 q = function() { 1122 for (var a = {}, b = 0, c = p.length; c > b; b++) { 1123 var e = p[b], 1124 f = d(e); 1125 f && f !== e && (a[e] = f) 1126 } 1127 return a 1128 }(); 1129 e.extend(g.prototype, b.prototype), g.prototype._create = function() { 1130 this._transn = { 1131 ingProperties: {}, 1132 clean: {}, 1133 onEnd: {} 1134 }, this.css({ 1135 position: "absolute" 1136 }) 1137 }, g.prototype.handleEvent = function(a) { 1138 var b = "on" + a.type; 1139 this[b] && this[b](a) 1140 }, g.prototype.getSize = function() { 1141 this.size = c(this.element) 1142 }, g.prototype.css = function(a) { 1143 var b = this.element.style; 1144 for (var c in a) { 1145 var d = q[c] || c; 1146 b[d] = a[c] 1147 } 1148 }, g.prototype.getPosition = function() { 1149 var a = j(this.element), 1150 b = this.layout.options, 1151 c = b.isOriginLeft, 1152 d = b.isOriginTop, 1153 e = a[c ? "left" : "right"], 1154 f = a[d ? "top" : "bottom"], 1155 g = this.layout.size, 1156 h = -1 != e.indexOf("%") ? parseFloat(e) / 100 * g.width : parseInt(e, 10), 1157 i = -1 != f.indexOf("%") ? parseFloat(f) / 100 * g.height : parseInt(f, 10); 1158 h = isNaN(h) ? 0 : h, i = isNaN(i) ? 0 : i, h -= c ? g.paddingLeft : g.paddingRight, i -= d ? g.paddingTop : g.paddingBottom, this.position.x = h, this.position.y = i 1159 }, g.prototype.layoutPosition = function() { 1160 var a = this.layout.size, 1161 b = this.layout.options, 1162 c = {}, 1163 d = b.isOriginLeft ? "paddingLeft" : "paddingRight", 1164 e = b.isOriginLeft ? "left" : "right", 1165 f = b.isOriginLeft ? "right" : "left", 1166 g = this.position.x + a[d]; 1167 c[e] = this.getXValue(g), c[f] = ""; 1168 var h = b.isOriginTop ? "paddingTop" : "paddingBottom", 1169 i = b.isOriginTop ? "top" : "bottom", 1170 j = b.isOriginTop ? "bottom" : "top", 1171 k = this.position.y + a[h]; 1172 c[i] = this.getYValue(k), c[j] = "", this.css(c), this.emitEvent("layout", [this]) 1173 }, g.prototype.getXValue = function(a) { 1174 var b = this.layout.options; 1175 return b.percentPosition && !b.isHorizontal ? a / this.layout.size.width * 100 + "%" : a + "px" 1176 }, g.prototype.getYValue = function(a) { 1177 var b = this.layout.options; 1178 return b.percentPosition && b.isHorizontal ? a / this.layout.size.height * 100 + "%" : a + "px" 1179 }
1179, g.prototype._transitionTo = function(a, b) { 1180 this.getPosition(); 1181 var c = this.position.x, 1182 d = this.position.y, 1183 e = parseInt(a, 10), 1184 f = parseInt(b, 10), 1185 g = e === this.position.x && f === this.position.y; 1186 if (this.setPosition(a, b), g && !this.isTransitioning) return void this.layoutPosition(); 1187 var h = a - c, 1188 i = b - d, 1189 j = {}; 1190 j.transform = this.getTranslate(h, i), this.transition({ 1191 to: j, 1192 onTransitionEnd: { 1193 transform: this.layoutPosition 1194 }, 1195 isCleaning: !0 1196 }) 1197 }, g.prototype.getTranslate = function(a, b) { 1198 var c = this.layout.options; 1199 return a = c.isOriginLeft ? a : -a, b = c.isOriginTop ? b : -b, n ? "translate3d(" + a + "px, " + b + "px, 0)" : "translate(" + a + "px, " + b + "px)" 1200 }, g.prototype.goTo = function(a, b) { 1201 this.setPosition(a, b), this.layoutPosition() 1202 }, g.prototype.moveTo = m ? g.prototype._transitionTo : g.prototype.goTo, g.prototype.setPosition = function(a, b) { 1203 this.position.x = parseInt(a, 10), this.position.y = parseInt(b, 10) 1204 }, g.prototype._nonTransition = function(a) { 1205 this.css(a.to), a.isCleaning && this._removeStyles(a.to); 1206 for (var b in a.onTransitionEnd) a.onTransitionEnd[b].call(this) 1207 }, g.prototype._transition = function(a) { 1208 if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(a); 1209 var b = this._transn; 1210 for (var c in a.onTransitionEnd) b.onEnd[c] = a.onTransitionEnd[c]; 1211 for (c in a.to) b.ingProperties[c] = !0, a.isCleaning && (b.clean[c] = !0); 1212 if (a.from) { 1213 this.css(a.from); 1214 var d = this.element.offsetHeight; 1215 d = null 1216 } 1217 this.enableTransition(a.to), this.css(a.to), this.isTransitioning = !0 1218 }; 1219 var r = "opacity," + h(q.transform || "transform"); 1220 g.prototype.enableTransition = function() { 1221 this.isTransitioning || (this.css({ 1222 transitionProperty: r, 1223 transitionDuration: this.layout.options.transitionDuration 1224 }), this.element.addEventListener(o, this, !1)) 1225 }, g.prototype.transition = g.prototype[k ? "_transition" : "_nonTransition"], g.prototype.onwebkitTransitionEnd = function(a) { 1226 this.ontransitionend(a) 1227 }, g.prototype.onotransitionend = function(a) { 1228 this.ontransitionend(a) 1229 }; 1230 var s = { 1231 "-webkit-transform": "transform", 1232 "-moz-transform": "transform", 1233 "-o-transform": "transform" 1234 }; 1235 g.prototype.ontransitionend = function(a) { 1236 if (a.target === this.element) { 1237 var b = this._transn, 1238 c = s[a.propertyName] || a.propertyName; 1239 if (delete b.ingProperties[c], f(b.ingProperties) && this.disableTransition(), c in b.clean && (this.element.style[a.propertyName] = "", delete b.clean[c]), c in b.onEnd) { 1240 var d = b.onEnd[c]; 1241 d.call(this), delete b.onEnd[c] 1242 } 1243 this.emitEvent("transitionEnd", [this]) 1244 } 1245 }, g.prototype.disableTransition = function() { 1246 this.removeTransitionStyles(), this.element.removeEventListener(o, this, !1), this.isTransitioning = !1 1247 }, g.prototype._removeStyles = function(a) { 1248 var b = {}; 1249 for (var c in a) b[c] = ""; 1250 this.css(b) 1251 }; 1252 var t = { 1253 transitionProperty: "", 1254 transitionDuration: "" 1255 }; 1256 return g.prototype.removeTransitionStyles = function() { 1257 this.css(t) 1258 }, g.prototype.removeElem = function() { 1259 this.element.parentNode.removeChild(this.element), this.css({ 1260 display: "" 1261 }), this.emitEvent("remove", [this]) 1262 }, g.prototype.remove = function() { 1263 if (!k || !parseFloat(this.layout.options.transitionDuration)) return void this.removeElem(); 1264 var a = this; 1265 this.once("transitionEnd", function() { 1266 a.removeElem() 1267 }), this.hide() 1268 }, g.prototype.reveal = function() { 1269 delete this.isHidden, this.css({ 1270 display: "" 1271 }); 1272 var a = this.layout.options, 1273 b = {}, 1274 c = this.getHideRevealTransitionEndProperty("visibleStyle"); 1275 b[c] = this.onRevealTransitionEnd, this.transition({ 1276 from: a.hiddenStyle, 1277 to: a.visibleStyle, 1278 isCleaning: !0, 1279 onTransitionEnd: b 1280 }) 1281 }, g.prototype.onRevealTransitionEnd = function() { 1282 this.isHidden || this.emitEvent("reveal") 1283 }, g.prototype.getHideRevealTransitionEndProperty = function(a) { 1284 var b = this.layout.options[a]; 1285 if (b.opacity) return "opacity"; 1286 for (var c in b) return c 1287 }, g.prototype.hide = function() { 1288 this.isHidden = !0, this.css({ 1289 display: "" 1290 }); 1291 var a = this.layout.options, 1292 b = {}, 1293 c = this.getHideRevealTransitionEndProperty("hiddenStyle"); 1294 b[c] = this.onHideTransitionEnd, this.transition({ 1295 from: a.visibleStyle, 1296 to: a.hiddenStyle, 1297 isCleaning: !0, 1298 onTransitionEnd: b 1299 }) 1300 }, g.prototype.onHideTransitionEnd = function() { 1301 this.isHidden && (this.css({ 1302 display: "none" 1303 }), this.emitEvent("hide")) 1304 }, g.prototype.destroy = function() { 1305 this.css({ 1306 position: "", 1307 left: "", 1308 right: "", 1309 top: "", 1310 bottom: "", 1311 transition: "", 1312 transform: "" 1313 }) 1314 }, g 1315 }), 1316 function(a, b) { 1317 "use strict"; 1318 "function" == typeof define && define.amd ? define("outlayer/outlayer", ["eventie/eventie", "eventEmitter/EventEmitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(c, d, e, f, g) { 1319 return b(a, c, d, e, f, g) 1320 }) : "object" == typeof exports ? module.exports = b(a, require("eventie"), require("wolfy87-eventemitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : a.Outlayer = b(a, a.eventie, a.EventEmitter, a.getSize, a.fizzyUIUtils, a.Outlayer.Item) 1321 }(window, function(a, b, c, d, e, f) { 1322 "use strict"; 1323 1324 function g(a, b) { 1325 var c = e.getQueryElement(a); 1326 if (!c) return void(h && h.error("Bad element for " + this.constructor.namespace + ": " + (c || a))); 1327 this.element = c, i && (this.$element = i(this.element)), this.options = e.extend({}, this.constructor.defaults), this.option(b); 1328 var d = ++k; 1329 this.element.outlayerGUID = d, l[d] = this, this._create(), this.options.isInitLayout && this.layout() 1330 } 1331 var h = a.console, 1332 i = a.jQuery, 1333 j = function() {}, 1334 k = 0, 1335 l = {}; 1336 return g.namespace = "outlayer", g.Item = f, g.defaults = { 1337 containerStyle: { 1338 position: "relative" 1339 }, 1340 isInitLayout: !0, 1341 isOriginLeft: !0, 1342 isOriginTop: !0, 1343 isResizeBound: !0, 1344 isResizingContainer: !0, 1345 transitionDuration: "0.4s", 1346 hiddenStyle: { 1347 opacity: 0, 1348 transform: "scale(0.001)" 1349 }, 1350 visibleStyle: { 1351 opacity: 1, 1352 transform: "scale(1)" 1353 } 1354 }, e.extend(g.prototype, c.prototype), g.prototype.option = function(a) { 1355 e.extend(this.options, a) 1356 }, g.prototype._create = function() { 1357 this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), e.extend(this.element.style, this.options.containerStyle), this.options.isResizeBound && this.bindResize() 1358 }, g.prototype.reloadItems = function() { 1359 this.items = this._itemize(this.element.children) 1360 }, g.prototype._itemize = function(a) { 1361 for (var b = this._filterFindItemElements(a), c = this.constructor.Item, d = [], e = 0, f = b.length; f > e; e++) { 1362 var g = b[e], 1363 h = new c(g, this); 1364 d.push(h) 1365 } 1366 return d 1367 }, g.prototype._filterFindItemElements = function(a) { 1368 return e.filterFindElements(a, this.options.itemSelector) 1369 }, g.prototype.getItemElements = function() { 1370 for (var a = [], b = 0, c = this.items.length; c > b; b++) a.push(this.items[b].element); 1371 return a 1372 }, g.prototype.layout = function() { 1373 this._resetLayout(), this._manageStamps(); 1374 var a = void 0 !== this.options.isLayoutInstant ? this.options.isLayoutInstant : !this._isLayoutInited; 1375 this.layoutItems(this.items, a), this._isLayoutInited = !0 1376 }, g.prototype._init = g.prototype.layout, g.prototype._resetLayout = function() {
1377 this.getSize() 1378 }, g.prototype.getSize = function() { 1379 this.size = d(this.element) 1380 }, g.prototype._getMeasurement = function(a, b) { 1381 var c, f = this.options[a]; 1382 f ? ("string" == typeof f ? c = this.element.querySelector(f) : e.isElement(f) && (c = f), this[a] = c ? d(c)[b] : f) : this[a] = 0 1383 }, g.prototype.layoutItems = function(a, b) { 1384 a = this._getItemsForLayout(a), this._layoutItems(a, b), this._postLayout() 1385 }, g.prototype._getItemsForLayout = function(a) { 1386 for (var b = [], c = 0, d = a.length; d > c; c++) { 1387 var e = a[c]; 1388 e.isIgnored || b.push(e) 1389 } 1390 return b 1391 }, g.prototype._layoutItems = function(a, b) { 1392 if (this._emitCompleteOnItems("layout", a), a && a.length) { 1393 for (var c = [], d = 0, e = a.length; e > d; d++) { 1394 var f = a[d], 1395 g = this._getItemLayoutPosition(f); 1396 g.item = f, g.isInstant = b || f.isLayoutInstant, c.push(g) 1397 } 1398 this._processLayoutQueue(c) 1399 } 1400 }, g.prototype._getItemLayoutPosition = function() { 1401 return { 1402 x: 0, 1403 y: 0 1404 } 1405 }, g.prototype._processLayoutQueue = function(a) { 1406 for (var b = 0, c = a.length; c > b; b++) { 1407 var d = a[b]; 1408 this._positionItem(d.item, d.x, d.y, d.isInstant) 1409 } 1410 }, g.prototype._positionItem = function(a, b, c, d) { 1411 d ? a.goTo(b, c) : a.moveTo(b, c) 1412 }, g.prototype._postLayout = function() { 1413 this.resizeContainer() 1414 }, g.prototype.resizeContainer = function() { 1415 if (this.options.isResizingContainer) { 1416 var a = this._getContainerSize(); 1417 a && (this._setContainerMeasure(a.width, !0), this._setContainerMeasure(a.height, !1)) 1418 } 1419 }, g.prototype._getContainerSize = j, g.prototype._setContainerMeasure = function(a, b) { 1420 if (void 0 !== a) { 1421 var c = this.size; 1422 c.isBorderBox && (a += b ? c.paddingLeft + c.paddingRight + c.borderLeftWidth + c.borderRightWidth : c.paddingBottom + c.paddingTop + c.borderTopWidth + c.borderBottomWidth), a = Math.max(a, 0), this.element.style[b ? "width" : "height"] = a + "px" 1423 } 1424 }, g.prototype._emitCompleteOnItems = function(a, b) { 1425 function c() { 1426 e.dispatchEvent(a + "Complete", null, [b]) 1427 } 1428 1429 function d() { 1430 g++, g === f && c() 1431 } 1432 var e = this, 1433 f = b.length; 1434 if (!b || !f) return void c(); 1435 for (var g = 0, h = 0, i = b.length; i > h; h++) { 1436 var j = b[h]; 1437 j.once(a, d) 1438 } 1439 }, g.prototype.dispatchEvent = function(a, b, c) { 1440 var d = b ? [b].concat(c) : c; 1441 if (this.emitEvent(a, d), i) 1442 if (this.$element = this.$element || i(this.element), b) { 1443 var e = i.Event(b); 1444 e.type = a, this.$element.trigger(e, c) 1445 } else this.$element.trigger(a, c) 1446 }, g.prototype.ignore = function(a) { 1447 var b = this.getItem(a); 1448 b && (b.isIgnored = !0) 1449 }, g.prototype.unignore = function(a) { 1450 var b = this.getItem(a); 1451 b && delete b.isIgnored 1452 }, g.prototype.stamp = function(a) { 1453 if (a = this._find(a)) { 1454 this.stamps = this.stamps.concat(a); 1455 for (var b = 0, c = a.length; c > b; b++) { 1456 var d = a[b]; 1457 this.ignore(d) 1458 } 1459 } 1460 }, g.prototype.unstamp = function(a) { 1461 if (a = this._find(a)) 1462 for (var b = 0, c = a.length; c > b; b++) { 1463 var d = a[b]; 1464 e.removeFrom(this.stamps, d), this.unignore(d) 1465 } 1466 }, g.prototype._find = function(a) { 1467 return a ? ("string" == typeof a && (a = this.element.querySelectorAll(a)), a = e.makeArray(a)) : void 0 1468 }, g.prototype._manageStamps = function() { 1469 if (this.stamps && this.stamps.length) {
1470 this._getBoundingRect(); 1471 for (var a = 0, b = this.stamps.length; b > a; a++) { 1472 var c = this.stamps[a]; 1473 this._manageStamp(c) 1474 } 1475 } 1476 }, g.prototype._getBoundingRect = function() { 1477 var a = this.element.getBoundingClientRect(), 1478 b = this.size; 1479 this._boundingRect = { 1480 left: a.left + b.paddingLeft + b.borderLeftWidth, 1481 top: a.top + b.paddingTop + b.borderTopWidth, 1482 right: a.right - (b.paddingRight + b.borderRightWidth), 1483 bottom: a.bottom - (b.paddingBottom + b.borderBottomWidth) 1484 } 1485 }, g.prototype._manageStamp = j, g.prototype._getElementOffset = function(a) { 1486 var b = a.getBoundingClientRect(), 1487 c = this._boundingRect, 1488 e = d(a), 1489 f = { 1490 left: b.left - c.left - e.marginLeft, 1491 top: b.top - c.top - e.marginTop, 1492 right: c.right - b.right - e.marginRight, 1493 bottom: c.bottom - b.bottom - e.marginBottom 1494 }; 1495 return f 1496 }, g.prototype.handleEvent = function(a) { 1497 var b = "on" + a.type; 1498 this[b] && this[b](a) 1499 }, g.prototype.bindResize = function() { 1500 this.isResizeBound || (b.bind(a, "resize", this), this.isResizeBound = !0) 1501 }, g.prototype.unbindResize = function() { 1502 this.isResizeBound && b.unbind(a, "resize", this), this.isResizeBound = !1 1503 }, g.prototype.onresize = function() { 1504 function a() { 1505 b.resize(), delete b.resizeTimeout 1506 } 1507 this.resizeTimeout && clearTimeout(this.resizeTimeout); 1508 var b = this; 1509 this.resizeTimeout = setTimeout(a, 100) 1510 }, g.prototype.resize = function() { 1511 this.isResizeBound && this.needsResizeLayout() && this.layout() 1512 }, g.prototype.needsResizeLayout = function() { 1513 var a = d(this.element), 1514 b = this.size && a; 1515 return b && a.innerWidth !== this.size.innerWidth 1516 }, g.prototype.addItems = function(a) { 1517 var b = this._itemize(a); 1518 return b.length && (this.items = this.items.concat(b)), b 1519 }, g.prototype.appended = function(a) { 1520 var b = this.addItems(a); 1521 b.length && (this.layoutItems(b, !0), this.reveal(b)) 1522 }, g.prototype.prepended = function(a) { 1523 var b = this._itemize(a); 1524 if (b.length) { 1525 var c = this.items.slice(0); 1526 this.items = b.concat(c), this._resetLayout(), this._manageStamps(), this.layoutItems(b, !0), this.reveal(b), this.layoutItems(c) 1527 } 1528 }, g.prototype.reveal = function(a) { 1529 this._emitCompleteOnItems("reveal", a); 1530 for (var b = a && a.length, c = 0; b && b > c; c++) { 1531 var d = a[c]; 1532 d.reveal() 1533 } 1534 }, g.prototype.hide = function(a) { 1535 this._emitCompleteOnItems("hide", a); 1536 for (var b = a && a.length, c = 0; b && b > c; c++) { 1537 var d = a[c]; 1538 d.hide() 1539 } 1540 }, g.prototype.revealItemElements = function(a) { 1541 var b = this.getItems(a); 1542 this.reveal(b) 1543 }, g.prototype.hideItemElements = function(a) { 1544 var b = this.getItems(a); 1545 this.hide(b) 1546 }, g.prototype.getItem = function(a) { 1547 for (var b = 0, c = this.items.length; c > b; b++) { 1548 var d = this.items[b]; 1549 if (d.element === a) return d 1550 } 1551 }, g.prototype.getItems = function(a) { 1552 a = e.makeArray(a); 1553 for (var b = [], c = 0, d = a.length; d > c; c++) { 1554 var f = a[c], 1555 g = this.getItem(f); 1556 g && b.push(g) 1557 } 1558 return b 1559 }, g.prototype.remove = function(a) { 1560 var b = this.getItems(a); 1561 if (this._emitCompleteOnItems("remove", b), b && b.length) 1562 for (var c = 0, d = b.length; d > c; c++) { 1563 var f = b[c]; 1564 f.remove(), e.removeFrom(this.items, f) 1565 } 1566 }, g.prototype.destroy = function() { 1567 var a = this.element.style; 1568 a.height = "", a.position = "", a.width = ""; 1569 for (var b = 0, c = this.items.length; c > b; b++) { 1570 var d = this.items[b]; 1571 d.destroy() 1572 } 1573 this.unbindResize(); 1574 var e = this.element.outlayerGUID; 1575 delete l[e], delete this.element.outlayerGUID, i && i.removeData(this.element, this.constructor.namespace) 1576 }, g.data = function(a) { 1577 a = e.getQueryElement(a); 1578 var b = a && a.outlayerGUID; 1579 return b && l[b] 1580 }, g.create = function(a, b) { 1581 function c() { 1582 g.apply(this, arguments) 1583 } 1584 return Object.create ? c.prototype = Object.create(g.prototype) : e.extend(c.prototype, g.prototype), c.prototype.constructor = c, c.defaults = e.extend({}, g.defaults), e.extend(c.defaults, b), c.prototype.settings = {}, c.namespace = a, c.data = g.data, c.Item = function() { 1585 f.apply(this, arguments) 1586 }, c.Item.prototype = new f, e.htmlInit(c, a), i && i.bridget && i.bridget(a, c), c 1587 }, g.Item = f, g 1588 }), 1589 function(a, b) { 1590 "use strict"; 1591 "function" == typeof define && define.amd ? define("isotope/js/item", ["outlayer/outlayer"], b) : "object" == typeof exports ? module.exports = b(require("outlayer")) : (a.Isotope = a.Isotope || {}, a.Isotope.Item = b(a.Outlayer)) 1592 }(window, function(a) { 1593 "use strict"; 1594 1595 function b() { 1596 a.Item.apply(this, arguments) 1597 } 1598 b.prototype = new a.Item, b.prototype._create = function() { 1599 this.id = this.layout.itemGUID++, a.Item.prototype._create.call(this), this.sortData = {} 1600 }, b.prototype.updateSortData = function() { 1601 if (!this.isIgnored) { 1602 this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random(); 1603 var a = this.layout.options.getSortData, 1604 b = this.layout._sorters; 1605 for (var c in a) { 1606 var d = b[c]; 1607 this.sortData[c] = d(this.element, this) 1608 } 1609 } 1610 }; 1611 var c = b.prototype.destroy; 1612 return b.prototype.destroy = function() { 1613 c.apply(this, arguments), this.css({ 1614 display: "" 1615 }) 1616 }, b 1617 }), 1618 function(a, b) { 1619 "use strict"; 1620 "function" == typeof define && define.amd ? define("isotope/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], b) : "object" == typeof exports ? module.exports = b(require("get-size"), require("outlayer")) : (a.Isotope = a.Isotope || {}, a.Isotope.LayoutMode = b(a.getSize, a.Outlayer)) 1621 }(window, function(a, b) { 1622 "use strict"; 1623 1624 function c(a) { 1625 this.isotope = a, a && (this.options = a.options[this.namespace], this.element = a.element, this.items = a.filteredItems, this.size = a.size) 1626 } 1627 return function() { 1628 function a(a) { 1629 return function() { 1630 return b.prototype[a].apply(this.isotope, arguments) 1631 } 1632 } 1633 for (var d = ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout"], e = 0, f = d.length; f > e; e++) { 1634 var g = d[e]; 1635 c.prototype[g] = a(g) 1636 } 1637 }(), c.prototype.needsVerticalResizeLayout = function() { 1638 var b = a(this.isotope.element), 1639 c = this.isotope.size && b;
1640 return c && b.innerHeight != this.isotope.size.innerHeight 1641 }, c.prototype._getMeasurement = function() { 1642 this.isotope._getMeasurement.apply(this, arguments) 1643 }, c.prototype.getColumnWidth = function() { 1644 this.getSegmentSize("column", "Width") 1645 }, c.prototype.getRowHeight = function() { 1646 this.getSegmentSize("row", "Height") 1647 }, c.prototype.getSegmentSize = function(a, b) { 1648 var c = a + b, 1649 d = "outer" + b; 1650 if (this._getMeasurement(c, d), !this[c]) { 1651 var e = this.getFirstItemSize(); 1652 this[c] = e && e[d] || this.isotope.size["inner" + b] 1653 } 1654 }, c.prototype.getFirstItemSize = function() { 1655 var b = this.isotope.filteredItems[0]; 1656 return b && b.element && a(b.element) 1657 }, c.prototype.layout = function() { 1658 this.isotope.layout.apply(this.isotope, arguments) 1659 }, c.prototype.getSize = function() { 1660 this.isotope.getSize(), this.size = this.isotope.size 1661 }, c.modes = {}, c.create = function(a, b) { 1662 function d() { 1663 c.apply(this, arguments) 1664 } 1665 return d.prototype = new c, b && (d.options = b), d.prototype.namespace = a, c.modes[a] = d, d 1666 }, c 1667 }), 1668 function(a, b) { 1669 "use strict"; 1670 "function" == typeof define && define.amd ? define("masonry/masonry", ["outlayer/outlayer", "get-size/get-size", "fizzy-ui-utils/utils"], b) : "object" == typeof exports ? module.exports = b(require("outlayer"), require("get-size"), require("fizzy-ui-utils")) : a.Masonry = b(a.Outlayer, a.getSize, a.fizzyUIUtils) 1671 }(window, function(a, b, c) { 1672 var d = a.create("masonry"); 1673 return d.prototype._resetLayout = function() {
1674 this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(); 1675 var a = this.cols; 1676 for (this.colYs = []; a--;) this.colYs.push(0); 1677 this.maxY = 0 1678 }, d.prototype.measureColumns = function() { 1679 if (this.getContainerWidth(), !this.columnWidth) { 1680 var a = this.items[0], 1681 c = a && a.element; 1682 this.columnWidth = c && b(c).outerWidth || this.containerWidth 1683 } 1684 var d = this.columnWidth += this.gutter, 1685 e = this.containerWidth + this.gutter, 1686 f = e / d, 1687 g = d - e % d, 1688 h = g && 1 > g ? "round" : "floor"; 1689 f = Math[h](f), this.cols = Math.max(f, 1) 1690 }, d.prototype.getContainerWidth = function() { 1691 var a = this.options.isFitWidth ? this.element.parentNode : this.element, 1692 c = b(a); 1693 this.containerWidth = c && c.innerWidth 1694 }, d.prototype._getItemLayoutPosition = function(a) { 1695 a.getSize(); 1696 var b = a.size.outerWidth % this.columnWidth, 1697 d = b && 1 > b ? "round" : "ceil", 1698 e = Math[d](a.size.outerWidth / this.columnWidth); 1699 e = Math.min(e, this.cols); 1700 for (var f = this._getColGroup(e), g = Math.min.apply(Math, f), h = c.indexOf(f, g), i = { 1701 x: this.columnWidth * h, 1702 y: g 1703 }, j = g + a.size.outerHeight, k = this.cols + 1 - f.length, l = 0; k > l; l++) this.colYs[h + l] = j; 1704 return i 1705 }, d.prototype._getColGroup = function(a) { 1706 if (2 > a) return this.colYs; 1707 for (var b = [], c = this.cols + 1 - a, d = 0; c > d; d++) { 1708 var e = this.colYs.slice(d, d + a); 1709 b[d] = Math.max.apply(Math, e) 1710 } 1711 return b 1712 }, d.prototype._manageStamp = function(a) { 1713 var c = b(a), 1714 d = this._getElementOffset(a), 1715 e = this.options.isOriginLeft ? d.left : d.right, 1716 f = e + c.outerWidth, 1717 g = Math.floor(e / this.columnWidth); 1718 g = Math.max(0, g); 1719 var h = Math.floor(f / this.columnWidth); 1720 h -= f % this.columnWidth ? 0 : 1, h = Math.min(this.cols - 1, h); 1721 for (var i = (this.options.isOriginTop ? d.top : d.bottom) + c.outerHeight, j = g; h >= j; j++) this.colYs[j] = Math.max(i, this.colYs[j]) 1722 }, d.prototype._getContainerSize = function() { 1723 this.maxY = Math.max.apply(Math, this.colYs); 1724 var a = { 1725 height: this.maxY 1726 }; 1727 return this.options.isFitWidth && (a.width = this._getContainerFitWidth()), a 1728 }, d.prototype._getContainerFitWidth = function() { 1729 for (var a = 0, b = this.cols; --b && 0 === this.colYs[b];) a++; 1730 return (this.cols - a) * this.columnWidth - this.gutter 1731 }, d.prototype.needsResizeLayout = function() { 1732 var a = this.containerWidth; 1733 return this.getContainerWidth(), a !== this.containerWidth 1734 }, d 1735 }), 1736 function(a, b) { 1737 "use strict"; 1738 "function" == typeof define && define.amd ? define("isotope/js/layout-modes/masonry", ["../layout-mode", "masonry/masonry"], b) : "object" == typeof exports ? module.exports = b(require("../layout-mode"), require("masonry-layout")) : b(a.Isotope.LayoutMode, a.Masonry) 1739 }(window, function(a, b) { 1740 "use strict"; 1741 1742 function c(a, b) { 1743 for (var c in b) a[c] = b[c]; 1744 return a 1745 } 1746 var d = a.create("masonry"), 1747 e = d.prototype._getElementOffset, 1748 f = d.prototype.layout, 1749 g = d.prototype._getMeasurement; 1750 c(d.prototype, b.prototype), d.prototype._getElementOffset = e, d.prototype.layout = f, d.prototype._getMeasurement = g; 1751 var h = d.prototype.measureColumns; 1752 d.prototype.measureColumns = function() { 1753 this.items = this.isotope.filteredItems, h.call(this) 1754 }; 1755 var i = d.prototype._manageStamp; 1756 return d.prototype._manageStamp = function() { 1757 this.options.isOriginLeft = this.isotope.options.isOriginLeft, this.options.isOriginTop = this.isotope.options.isOriginTop, i.apply(this, arguments) 1758 }, d 1759 }), 1760 function(a, b) { 1761 "use strict"; 1762 "function" == typeof define && define.amd ? define("isotope/js/layout-modes/fit-rows", ["../layout-mode"], b) : "object" == typeof exports ? module.exports = b(require("../layout-mode")) : b(a.Isotope.LayoutMode) 1763 }(window, function(a) { 1764 "use strict"; 1765 var b = a.create("fitRows"); 1766 return b.prototype._resetLayout = function() { 1767 this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth") 1768 }, b.prototype._getItemLayoutPosition = function(a) { 1769 a.getSize(); 1770 var b = a.size.outerWidth + this.gutter, 1771 c = this.isotope.size.innerWidth + this.gutter; 1772 0 !== this.x && b + this.x > c && (this.x = 0, this.y = this.maxY); 1773 var d = { 1774 x: this.x, 1775 y: this.y 1776 }; 1777 return this.maxY = Math.max(this.maxY, this.y + a.size.outerHeight), this.x += b, d 1778 }, b.prototype._getContainerSize = function() { 1779 return { 1780 height: this.maxY 1781 } 1782 }, b 1783 }), 1784 function(a, b) { 1785 "use strict"; 1786 "function" == typeof define && define.amd ? define("isotope/js/layout-modes/vertical", ["../layout-mode"], b) : "object" == typeof exports ? module.exports = b(require("../layout-mode")) : b(a.Isotope.LayoutMode) 1787 }(window, function(a) { 1788 "use strict"; 1789 var b = a.create("vertical", { 1790 horizontalAlignment: 0 1791 }); 1792 return b.prototype._resetLayout = function() { 1793 this.y = 0 1794 }, b.prototype._getItemLayoutPosition = function(a) { 1795 a.getSize(); 1796 var b = (this.isotope.size.innerWidth - a.size.outerWidth) * this.options.horizontalAlignment, 1797 c = this.y; 1798 return this.y += a.size.outerHeight, { 1799 x: b, 1800 y: c 1801 } 1802 }, b.prototype._getContainerSize = function() { 1803 return { 1804 height: this.y 1805 } 1806 }, b 1807 }), 1808 function(a, b) { 1809 "use strict"; 1810 "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope/js/item", "isotope/js/layout-mode", "isotope/js/layout-modes/masonry", "isotope/js/layout-modes/fit-rows", "isotope/js/layout-modes/vertical"], function(c, d, e, f, g, h) { 1811 return b(a, c, d, e, f, g, h) 1812 }) : "object" == typeof exports ? module.exports = b(a, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("./item"), require("./layout-mode"), require("./layout-modes/masonry"), require("./layout-modes/fit-rows"), require("./layout-modes/vertical")) : a.Isotope = b(a, a.Outlayer, a.getSize, a.matchesSelector, a.fizzyUIUtils, a.Isotope.Item, a.Isotope.LayoutMode) 1813 }(window, function(a, b, c, d, e, f, g) { 1814 function h(a, b) { 1815 return function(c, d) { 1816 for (var e = 0, f = a.length; f > e; e++) { 1817 var g = a[e], 1818 h = c.sortData[g], 1819 i = d.sortData[g]; 1820 if (h > i || i > h) { 1821 var j = void 0 !== b[g] ? b[g] : b, 1822 k = j ? 1 : -1; 1823 return (h > i ? 1 : -1) * k 1824 } 1825 } 1826 return 0 1827 } 1828 } 1829 var i = a.jQuery, 1830 j = String.prototype.trim ? function(a) { 1831 return a.trim() 1832 } : function(a) { 1833 return a.replace(/^\s+|\s+$/g, "") 1834 }, 1835 k = document.documentElement, 1836 l = k.textContent ? function(a) { 1837 return a.textContent 1838 } : function(a) { 1839 return a.innerText 1840 }, 1841 m = b.create("isotope", { 1842 layoutMode: "masonry", 1843 isJQueryFiltering: !0, 1844 sortAscending: !0 1845 }); 1846 m.Item = f, m.LayoutMode = g, m.prototype._create = function() { 1847 this.itemGUID = 0, this._sorters = {}, this._getSorters(), b.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"]; 1848 for (var a in g.modes) this._initLayoutMode(a) 1849 }, m.prototype.reloadItems = function() { 1850 this.itemGUID = 0, b.prototype.reloadItems.call(this) 1851 }, m.prototype._itemize = function() { 1852 for (var a = b.prototype._itemize.apply(this, arguments), c = 0, d = a.length; d > c; c++) { 1853 var e = a[c]; 1854 e.id = this.itemGUID++ 1855 } 1856 return this._updateItemsSortData(a), a 1857 }, m.prototype._initLayoutMode = function(a) { 1858 var b = g.modes[a], 1859 c = this.options[a] || {};
1860 this.options[a] = b.options ? e.extend(b.options, c) : c, this.modes[a] = new b(this) 1861 }, m.prototype.layout = function() { 1862 return !this._isLayoutInited && this.options.isInitLayout ? void this.arrange() : void this._layout() 1863 }, m.prototype._layout = function() { 1864 var a = this._getIsInstant(); 1865 this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, a), this._isLayoutInited = !0 1866 }, m.prototype.arrange = function(a) { 1867 function b() { 1868 d.reveal(c.needReveal), d.hide(c.needHide) 1869 } 1870 this.option(a), this._getIsInstant(); 1871 var c = this._filter(this.items); 1872 this.filteredItems = c.matches; 1873 var d = this; 1874 this._bindArrangeComplete(), this._isInstant ? this._noTransition(b) : b(), this._sort(), this._layout() 1875 }, m.prototype._init = m.prototype.arrange, m.prototype._getIsInstant = function() { 1876 var a = void 0 !== this.options.isLayoutInstant ? this.options.isLayoutInstant : !this._isLayoutInited; 1877 return this._isInstant = a, a 1878 }, m.prototype._bindArrangeComplete = function() { 1879 function a() { 1880 b && c && d && e.dispatchEvent("arrangeComplete", null, [e.filteredItems]) 1881 } 1882 var b, c, d, e = this; 1883 this.once("layoutComplete", function() { 1884 b = !0, a() 1885 }), this.once("hideComplete", function() { 1886 c = !0, a() 1887 }), this.once("revealComplete", function() { 1888 d = !0, a() 1889 }) 1890 }, m.prototype._filter = function(a) { 1891 var b = this.options.filter; 1892 b = b || "*"; 1893 for (var c = [], d = [], e = [], f = this._getFilterTest(b), g = 0, h = a.length; h > g; g++) { 1894 var i = a[g]; 1895 if (!i.isIgnored) { 1896 var j = f(i); 1897 j && c.push(i), j && i.isHidden ? d.push(i) : j || i.isHidden || e.push(i) 1898 } 1899 } 1900 return { 1901 matches: c, 1902 needReveal: d, 1903 needHide: e 1904 } 1905 }, m.prototype._getFilterTest = function(a) { 1906 return i && this.options.isJQueryFiltering ? function(b) { 1907 return i(b.element).is(a) 1908 } : "function" == typeof a ? function(b) { 1909 return a(b.element) 1910 } : function(b) { 1911 return d(b.element, a) 1912 } 1913 }, m.prototype.updateSortData = function(a) { 1914 var b; 1915 a ? (a = e.makeArray(a), b = this.getItems(a)) : b = this.items, this._getSorters(), this._updateItemsSortData(b) 1916 }, m.prototype._getSorters = function() { 1917 var a = this.options.getSortData; 1918 for (var b in a) { 1919 var c = a[b]; 1920 this._sorters[b] = n(c) 1921 } 1922 }, m.prototype._updateItemsSortData = function(a) { 1923 for (var b = a && a.length, c = 0; b && b > c; c++) { 1924 var d = a[c]; 1925 d.updateSortData() 1926 } 1927 }; 1928 var n = function() { 1929 function a(a) { 1930 if ("string" != typeof a) return a; 1931 var c = j(a).split(" "), 1932 d = c[0], 1933 e = d.match(/^\[(.+)\]$/), 1934 f = e && e[1], 1935 g = b(f, d), 1936 h = m.sortDataParsers[c[1]]; 1937 return a = h ? function(a) { 1938 return a && h(g(a)) 1939 } : function(a) { 1940 return a && g(a) 1941 } 1942 } 1943 1944 function b(a, b) { 1945 var c; 1946 return c = a ? function(b) { 1947 return b.getAttribute(a) 1948 } : function(a) { 1949 var c = a.querySelector(b); 1950 return c && l(c) 1951 } 1952 } 1953 return a 1954 }(); 1955 m.sortDataParsers = { 1956 parseInt: function(a) { 1957 return parseInt(a, 10) 1958 }, 1959 parseFloat: function(a) { 1960 return parseFloat(a) 1961 } 1962 }, m.prototype._sort = function() { 1963 var a = this.options.sortBy; 1964 if (a) { 1965 var b = [].concat.apply(a, this.sortHistory), 1966 c = h(b, this.options.sortAscending); 1967 this.filteredItems.sort(c), a != this.sortHistory[0] && this.sortHistory.unshift(a) 1968 } 1969 }, m.prototype._mode = function() { 1970 var a = this.options.layoutMode, 1971 b = this.modes[a]; 1972 if (!b) throw new Error("No layout mode: " + a); 1973 return b.options = this.options[a], b 1974 }, m.prototype._resetLayout = function() { 1975 b.prototype._resetLayout.call(this), this._mode()._resetLayout() 1976 }, m.prototype._getItemLayoutPosition = function(a) { 1977 return this._mode()._getItemLayoutPosition(a) 1978 }, m.prototype._manageStamp = function(a) { 1979 this._mode()._manageStamp(a) 1980 }, m.prototype._getContainerSize = function() { 1981 return this._mode()._getContainerSize() 1982 }, m.prototype.needsResizeLayout = function() { 1983 return this._mode().needsResizeLayout() 1984 }, m.prototype.appended = function(a) { 1985 var b = this.addItems(a); 1986 if (b.length) { 1987 var c = this._filterRevealAdded(b); 1988 this.filteredItems = this.filteredItems.concat(c) 1989 } 1990 }, m.prototype.prepended = function(a) { 1991 var b = this._itemize(a); 1992 if (b.length) { 1993 this._resetLayout(), this._manageStamps(); 1994 var c = this._filterRevealAdded(b); 1995 this.layoutItems(this.filteredItems), this.filteredItems = c.c
1995oncat(this.filteredItems), this.items = b.concat(this.items) 1996 } 1997 }, m.prototype._filterRevealAdded = function(a) { 1998 var b = this._filter(a); 1999 return this.hide(b.needHide), this.reveal(b.matches), this.layoutItems(b.matches, !0), b.matches 2000 }, m.prototype.insert = function(a) { 2001 var b = this.addItems(a); 2002 if (b.length) { 2003 var c, d, e = b.length; 2004 for (c = 0; e > c; c++) d = b[c], this.element.appendChild(d.element); 2005 var f = this._filter(b).matches; 2006 for (c = 0; e > c; c++) b[c].isLayoutInstant = !0; 2007 for (this.arrange(), c = 0; e > c; c++) delete b[c].isLayoutInstant; 2008 this.reveal(f) 2009 } 2010 }; 2011 var o = m.prototype.remove; 2012 return m.prototype.remove = function(a) { 2013 a = e.makeArray(a); 2014 var b = this.getItems(a); 2015 o.call(this, a); 2016 var c = b && b.length; 2017 if (c) 2018 for (var d = 0; c > d; d++) { 2019 var f = b[d]; 2020 e.removeFrom(this.filteredItems, f) 2021 } 2022 }, m.prototype.shuffle = function() { 2023 for (var a = 0, b = this.items.length; b > a; a++) { 2024 var c = this.items[a]; 2025 c.sortData.random = Math.random() 2026 } 2027 this.options.sortBy = "random", this._sort(), this._layout() 2028 }, m.prototype._noTransition = function(a) { 2029 var b = this.options.transitionDuration; 2030 this.options.transitionDuration = 0; 2031 var c = a.call(this); 2032 return this.options.transitionDuration = b, c 2033 }, m.prototype.getFilteredItemElements = function() { 2034 for (var a = [], b = 0, c = this.filteredItems.length; c > b; b++) a.push(this.filteredItems[b].element); 2035 return a 2036 }, m 2037 }); 2038//imagesLoaded 2039(function() { 2040 function e() {} 2041 2042 function t(e, t) { 2043 for (var n = e.length; n--;) 2044 if (e[n].listener === t) return n; 2045 return -1 2046 } 2047 2048 function n(e) { 2049 return function() { 2050 return this[e].apply(this, arguments) 2051 } 2052 } 2053 var i = e.prototype, 2054 r = this, 2055 o = r.EventEmitter; 2056 i.getListeners = function(e) { 2057 var t, n, i = this._getEvents(); 2058 if ("object" == typeof e) { 2059 t = {}; 2060 for (n in i) i.hasOwnProperty(n) && e.test(n) && (t[n] = i[n]) 2061 } else t = i[e] || (i[e] = []); 2062 return t 2063 }, i.flattenListeners = function(e) { 2064 var t, n = []; 2065 for (t = 0; e.length > t; t += 1) n.push(e[t].listener); 2066 return n 2067 }, i.getListenersAsObject = function(e) { 2068 var t, n = this.getListeners(e); 2069 return n instanceof Array && (t = {}, t[e] = n), t || n 2070 }, i.addListener = function(e, n) { 2071 var i, r = this.getListenersAsObject(e), 2072 o = "object" == typeof n; 2073 for (i in r) r.hasOwnProperty(i) && -1 === t(r[i], n) && r[i].push(o ? n : { 2074 listener: n, 2075 once: !1 2076 }); 2077 return this 2078 }, i.on = n("addListener"), i.addOnceListener = function(e, t) { 2079 return this.addListener(e, { 2080 listener: t, 2081 once: !0 2082 }) 2083 }, i.once = n("addOnceListener"), i.defineEvent = function(e) { 2084 return this.getListeners(e), this 2085 }, i.defineEvents = function(e) { 2086 for (var t = 0; e.length > t; t += 1) this.defineEvent(e[t]); 2087 return this 2088 }, i.removeListener = function(e, n) { 2089 var i, r, o = this.getListenersAsObject(e); 2090 for (r in o) o.hasOwnProperty(r) && (i = t(o[r], n), -1 !== i && o[r].splice(i, 1)); 2091 return this 2092 }, i.off = n("removeListener"), i.addListeners = function(e, t) { 2093 return this.manipulateListeners(!1, e, t) 2094 }, i.removeListeners = function(e, t) { 2095 return this.manipulateListeners(!0, e, t) 2096 }, i.manipulateListeners = function(e, t, n) { 2097 var i, r, o = e ? this.removeListener : this.addListener, 2098 s = e ? this.removeListeners : this.addListeners; 2099 if ("object" != typeof t || t instanceof RegExp) 2100 for (i = n.length; i--;) o.call(this, t, n[i]); 2101 else 2102 for (i in t) t.hasOwnProperty(i) && (r = t[i]) && ("function" == typeof r ? o.call(this, i, r) : s.call(this, i, r)); 2103 return this 2104 }, i.removeEvent = function(e) { 2105 var t, n = typeof e, 2106 i = this._getEvents(); 2107 if ("string" === n) delete i[e]; 2108 else if ("object" === n) 2109 for (t in i) i.hasOwnProperty(t) && e.test(t) && delete i[t]; 2110 else delete this._events; 2111 return this 2112 }, i.removeAllListeners = n("removeEvent"), i.emitEvent = function(e, t) { 2113 var n, i, r, o, s = this.getListenersAsObject(e); 2114 for (r in s) 2115 if (s.hasOwnProperty(r)) 2116 for (i = s[r].length; i--;) n = s[r][i], n.once === !0 && this.removeListener(e, n.listener), o = n.listener.apply(this, t || []), o === this._getOnceReturnValue() && this.removeListener(e, n.listener); 2117 return this 2118 }, i.trigger = n("emitEvent"), i.emit = function(e) { 2119 var t = Array.prototype.slice.call(arguments, 1); 2120 return this.emitEvent(e, t) 2121 }, i.setOnceReturnValue = function(e) { 2122 return this._onceReturnValue = e, this 2123 }, i._getOnceReturnValue = function() { 2124 return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 2125 }, i._getEvents = function() { 2126 return this._events || (this._events = {}) 2127 }, e.noConflict = function() { 2128 return r.EventEmitter = o, e 2129 }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function() { 2130 return e 2131 }) : "object" == typeof module && module.exports ? module.exports = e : this.EventEmitter = e 2132}).call(this), 2133 function(e) { 2134 function t(t) { 2135 var n = e.event; 2136 return n.target = n.target || n.srcElement || t, n 2137 } 2138 var n = document.documentElement, 2139 i = function() {}; 2140 n.addEventListener ? i = function(e, t, n) { 2141 e.addEventListener(t, n, !1) 2142 } : n.attachEvent && (i = function(e, n, i) { 2143 e[n + i] = i.handleEvent ? function() { 2144 var n = t(e); 2145 i.handleEvent.call(i, n) 2146 } : function() { 2147 var n = t(e); 2148 i.call(e, n) 2149 }, e.attachEvent("on" + n, e[n + i]) 2150 }); 2151 var r = function() {}; 2152 n.removeEventListener ? r = function(e, t, n) { 2153 e.removeEventListener(t, n, !1) 2154 } : n.detachEvent && (r = function(e, t, n) { 2155 e.detachEvent("on" + t, e[t + n]); 2156 try { 2157 delete e[t + n] 2158 } catch (i) { 2159 e[t + n] = void 0 2160 } 2161 }); 2162 var o = {
2163 bind: i, 2164 unbind: r 2165 }; 2166 "function" == typeof define && define.amd ? define("eventie/eventie", o) : e.eventie = o 2167 }(this), 2168 function(e, t) { 2169 "function" == typeof define && define.amd ? define(["eventEmitter/EventEmitter", "eventie/eventie"], function(n, i) { 2170 return t(e, n, i) 2171 }) : "object" == typeof exports ? module.exports = t(e, require("wolfy87-eventemitter"), require("eventie")) : e.imagesLoaded = t(e, e.EventEmitter, e.eventie) 2172 }(window, function(e, t, n) { 2173 function i(e, t) { 2174 for (var n in t) e[n] = t[n]; 2175 return e 2176 } 2177 2178 function r(e) { 2179 return "[object Array]" === d.call(e) 2180 } 2181 2182 function o(e) { 2183 var t = []; 2184 if (r(e)) t = e; 2185 else if ("number" == typeof e.length) 2186 for (var n = 0, i = e.length; i > n; n++) t.push(e[n]); 2187 else t.push(e); 2188 return t 2189 } 2190 2191 function s(e, t, n) { 2192 if (!(this instanceof s)) return new s(e, t); 2193 "string" == typeof e && (e = document.querySelectorAll(e)), this.elements = o(e), this.options = i({}, this.options), "function" == typeof t ? n = t : i(this.options, t), n && this.on("always", n), this.getImages(), a && (this.jqDeferred = new a.Deferred); 2194 var r = this; 2195 setTimeout(function() { 2196 r.check() 2197 }) 2198 } 2199 2200 function f(e) { 2201 this.img = e 2202 } 2203 2204 function c(e) { 2205 this.src = e, v[e] = this 2206 } 2207 var a = e.jQuery, 2208 u = e.console, 2209 h = u !== void 0, 2210 d = Object.prototype.toString; 2211 s.prototype = new t, s.prototype.options = {}, s.prototype.getImages = function() { 2212 this.images = []; 2213 for (var e = 0, t = this.elements.length; t > e; e++) { 2214 var n = this.elements[e]; 2215 "IMG" === n.nodeName && this.addImage(n); 2216 var i = n.nodeType; 2217 if (i && (1 === i || 9 === i || 11 === i)) 2218 for (var r = n.querySelectorAll("img"), o = 0, s = r.length; s > o; o++) { 2219 var f = r[o]; 2220 this.addImage(f) 2221 } 2222 } 2223 }, s.prototype.addImage = function(e) { 2224 var t = new f(e); 2225 this.images.push(t) 2226 }, s.prototype.check = function() { 2227 function e(e, r) { 2228 return t.options.debug && h && u.log("confirm", e, r), t.progress(e), n++, n === i && t.complete(), !0 2229 } 2230 var t = this, 2231 n = 0, 2232 i = this.images.length; 2233 if (this.hasAnyBroken = !1, !i) return this.complete(), void 0; 2234 for (var r = 0; i > r; r++) { 2235 var o = this.images[r]; 2236 o.on("confirm", e), o.check() 2237 } 2238 }, s.prototype.progress = function(e) { 2239 this.hasAnyBroken = this.hasAnyBroken || !e.isLoaded; 2240 var t = this; 2241 setTimeout(function() { 2242 t.emit("progress", t, e), t.jqDeferred && t.jqDeferred.notify && t.jqDeferred.notify(t, e) 2243 }) 2244 }, s.prototype.complete = function() { 2245 var e = this.hasAnyBroken ? "fail" : "done"; 2246 this.isComplete = !0; 2247 var t = this; 2248 setTimeout(function() { 2249 if (t.emit(e, t), t.emit("always", t), t.jqDeferred) { 2250 var n = t.hasAnyBroken ? "reject" : "resolve"; 2251 t.jqDeferred[n](t) 2252 } 2253 }) 2254 }, a && (a.fn.imagesLoaded = function(e, t) { 2255 var n = new s(this, e, t); 2256 return n.jqDeferred.promise(a(this)) 2257 }), f.prototype = new t, f.prototype.check = function() { 2258 var e = v[this.img.src] || new c(this.img.src); 2259 if (e.isConfirmed) return this.confirm(e.isLoaded, "cached was confirmed"), void 0; 2260 if (this.img.complete && void 0 !== this.img.naturalWidth) return this.confirm(0 !== this.img.naturalWi
2260dth, "naturalWidth"), void 0; 2261 var t = this; 2262 e.on("confirm", function(e, n) { 2263 return t.confirm(e.isLoaded, n), !0 2264 }), e.check() 2265 }, f.prototype.confirm = function(e, t) { 2266 this.isLoaded = e, this.emit("confirm", this, t) 2267 }; 2268 var v = {}; 2269 return c.prototype = new t, c.prototype.check = function() { 2270 if (!this.isChecked) { 2271 var e = new Image; 2272 n.bind(e, "load", this), n.bind(e, "error", this), e.src = this.src, this.isChecked = !0 2273 } 2274 }, c.prototype.handleEvent = function(e) { 2275 var t = "on" + e.type; 2276 this[t] && this[t](e) 2277 }, c.prototype.onload = function(e) { 2278 this.confirm(!0, "onload"), this.unbindProxyEvents(e) 2279 }, c.prototype.onerror = function(e) { 2280 this.confirm(!1, "onerror"), this.unbindProxyEvents(e) 2281 }, c.prototype.confirm = function(e, t) { 2282 this.isConfirmed = !0, this.isLoaded = e, this.emit("confirm", this, t) 2283 }, c.prototype.unbindProxyEvents = function(e) { 2284 n.unbind(e.target, "load", this), n.unbind(e.target, "error", this) 2285 }, s 2286 }); 2287//Masonry Js 2288! function(a) { 2289 function b() {} 2290 2291 function c(a) { 2292 function c(b) { 2293 b.prototype.option || (b.prototype.option = function(b) { 2294 a.isPlainObject(b) && (this.options = a.extend(!0, this.options, b)) 2295 }) 2296 } 2297 2298 function e(b, c) { 2299 a.fn[b] = function(e) { 2300 if ("string" == typeof e) { 2301 for (var g = d.call(arguments, 1), h = 0, i = this.length; i > h; h++) { 2302 var j = this[h], 2303 k = a.data(j, b); 2304 if (k) 2305 if (a.isFunction(k[e]) && "_" !== e.charAt(0)) { 2306 var l = k[e].apply(k, g); 2307 if (void 0 !== l) return l 2308 } else f("no such method '" + e + "' for " + b + " instance"); 2309 else f("cannot call methods on " + b + " prior to initialization; attempted to call '" + e + "'") 2310 } 2311 return this 2312 } 2313 return this.each(function() { 2314 var d = a.data(this, b); 2315 d ? (d.option(e), d._init()) : (d = new c(this, e), a.data(this, b, d)) 2316 }) 2317 } 2318 } 2319 if (a) { 2320 var f = "undefined" == typeof console ? b : function(a) { 2321 console.error(a) 2322 }; 2323 return a.bridget = function(a, b) { 2324 c(b), e(a, b) 2325 }, a.bridget 2326 } 2327 } 2328 var d = Array.prototype.slice; 2329 "function" == typeof define && define.amd ? define("jquery-bridget/jquery.bridget", ["jquery"], c) : c("object" == typeof exports ? require("jquery") : a.jQuery) 2330}(window), 2331function(a) { 2332 function b(b) { 2333 var c = a.event; 2334 return c.target = c.target || c.srcElement || b, c 2335 } 2336 var c = document.documentElement, 2337 d = function() {}; 2338 c.addEventListener ? d = function(a, b, c) { 2339 a.addEventListener(b, c, !1) 2340 } : c.attachEvent && (d = function(a, c, d) { 2341 a[c + d] = d.handleEvent ? function() { 2342 var c = b(a); 2343 d.handleEvent.call(d, c) 2344 } : function() { 2345 var c = b(a); 2346 d.call(a, c) 2347 }, a.attachEvent("on" + c, a[c + d]) 2348 }); 2349 var e = function() {}; 2350 c.removeEventListener ? e = function(a, b, c) { 2351 a.removeEventListener(b, c, !1) 2352 } : c.detachEvent && (e = function(a, b, c) { 2353 a.detachEvent("on" + b, a[b + c]); 2354 try { 2355 delete a[b + c] 2356 } catch (d) { 2357 a[b + c] = void 0 2358 } 2359 }); 2360 var f = { 2361 bind: d, 2362 unbind: e 2363 }; 2364 "function" == typeof define && define.amd ? define("eventie/eventie", f) : "object" == typeof exports ? module.exports = f : a.eventie = f 2365}(window), 2366function() { 2367 function a() {} 2368 2369 function b(a, b) { 2370 for (var c = a.length; c--;) 2371 if (a[c].listener === b) return c; 2372 return -1 2373 } 2374 2375 function c(a) { 2376 return function() { 2377 return this[a].apply(this, arguments) 2378 } 2379 } 2380 var d = a.prototype, 2381 e = this, 2382 f = e.EventEmitter; 2383 d.getListeners = function(a) { 2384 var b, c, d = this._getEvents(); 2385 if (a instanceof RegExp) { 2386 b = {}; 2387 for (c in d) d.hasOwnProperty(c) && a.test(c) && (b[c] = d[c]) 2388 } else b = d[a] || (d[a] = []); 2389 return b 2390 }, d.flattenListeners = function(a) { 2391 var b, c = []; 2392 for (b = 0; b < a.length; b += 1) c.push(a[b].listener); 2393 return c 2394 }, d.getListenersAsObject = function(a) { 2395 var b, c = this.getListeners(a); 2396 return c instanceof Array && (b = {}, b[a] = c), b || c 2397 }, d.addListener = function(a, c) { 2398 var d, e = this.getListenersAsObject(a), 2399 f = "object" == typeof c; 2400 for (d in e) e.hasOwnProperty(d) && -1 === b(e[d], c) && e[d].push(f ? c : { 2401 listener: c, 2402 once: !1 2403 }); 2404 return this 2405 }, d.on = c("addListener"), d.addOnceListener = function(a, b) { 2406 return this.addListener(a, { 2407 listener: b, 2408 once: !0 2409 }) 2410 }, d.once = c("addOnceListener"), d.defineEvent = function(a) { 2411 return this.getListeners(a), this 2412 }, d.defineEvents = function(a) { 2413 for (var b = 0; b < a.length; b += 1) this.defineEvent(a[b]); 2414 return this 2415 }, d.removeListener = function(a, c) { 2416 var d, e, f = this.getListenersAsObject(a); 2417 for (e in f) f.hasOwnProperty(e) && (d = b(f[e], c), -1 !== d && f[e].splice(d, 1)); 2418 return this 2419 }, d.off = c("removeListener"), d.addListeners = function(a, b) { 2420 return this.manipulateListeners(!1, a, b) 2421 }, d.removeListeners = function(a, b) { 2422 return this.manipulateListeners(!0, a, b) 2423 }, d.manipulateListeners = function(a, b, c) { 2424 var d, e, f = a ? this.removeListener : this.addListener, 2425 g = a ? this.removeListeners : this.addListeners; 2426 if ("object" != typeof b || b instanceof RegExp) 2427 for (d = c.length; d--;) f.call(this, b, c[d]); 2428 else 2429 for (d in b) b.hasOwnProperty(d) && (e = b[d]) && ("function" == typeof e ? f.call(this, d, e) : g.call(this, d, e)); 2430 return this 2431 }, d.removeEvent = function(a) { 2432 var b, c = typeof a, 2433 d = this._getEvents(); 2434 if ("string" === c) delete d[a]; 2435 else if (a instanceof RegExp) 2436 for (b in d) d.hasOwnProperty(b) && a.test(b) && delete d[b]; 2437 else delete this._events; 2438 return this 2439 }, d.removeAllListeners = c("removeEvent"), d.emitEvent = function(a, b) { 2440 var c, d, e, f, g = this.getListenersAsObject(a); 2441 for (e in g) 2442 if (g.hasOwnProperty(e)) 2443 for (d = g[e].length; d--;) c = g[e][d], c.once === !0 && this.removeListener(a, c.listener), f = c.listener.apply(this, b || []), f === this._getOnceReturnValue() && this.removeListener(a, c.listener); 2444 return this 2445 }, d.trigger = c("emitEvent"), d.emit = function(a) { 2446 var b = Array.prototype.slice.call(arguments, 1); 2447 return this.emitEvent(a, b) 2448 }, d.setOnceReturnValue = function(a) { 2449 return this._onceReturnValue = a, this 2450 }, d._getOnceReturnValue = function() { 2451 return this.hasOwnProperty("_onceReturnValue") ? this._onceReturnValue : !0 2452 }, d._getEvents = function() { 2453 return this._events || (this._events = {}) 2454 }, a.noConflict = function() { 2455 return e.EventEmitter = f, a 2456 }, "function" == typeof define && define.amd ? define("eventEmitter/EventEmitter", [], function() { 2457 return a 2458 }) : "object" == typeof module && module.exports ? module.exports = a : e.EventEmitter = a 2459}.call(this), 2460 function(a) { 2461 function b(a) { 2462 if (a) { 2463 if ("string" == typeof d[a]) return a; 2464 a = a.charAt(0).toUpperCase() + a.slice(1); 2465 for (var b, e = 0, f = c.length; f > e; e++) 2466 if (b = c[e] + a, "string" == typeof d[b]) return b 2467 } 2468 } 2469 var c = "Webkit Moz ms Ms O".split(" "), 2470 d = document.documentElement.style; 2471 "function" == typeof define && define.amd ? define("get-style-property/get-style-property", [], function() { 2472 return b 2473 }) : "object" == typeof exports ? module.exports = b : a.getStyleProperty = b 2474 }(window), 2475 function(a) { 2476 function b(a) { 2477 var b = parseFloat(a), 2478 c = -1 === a.indexOf("%") && !isNaN(b); 2479 return c && b 2480 } 2481 2482 function c() {} 2483 2484 function d() { 2485 for (var a = { 2486 width: 0, 2487 height: 0, 2488 innerWidth: 0, 2489 innerHeight: 0, 2490 outerWidth: 0, 2491 outerHeight: 0 2492 }, b = 0, c = g.length; c > b; b++) { 2493 var d = g[b]; 2494 a[d] = 0 2495 } 2496 return a 2497 } 2498 2499 function e(c) { 2500 function e() { 2501 if (!m) { 2502 m = !0; 2503 var d = a.getComputedStyle; 2504 if (j = function() { 2505 var a = d ? function(a) { 2506 return d(a, null) 2507 } : function(a) { 2508 return a.currentStyle 2509 }; 2510 return function(b) { 2511 var c = a(b); 2512 return c || f("Style returned " + c + ". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"), c 2513 } 2514 }(), k = c("boxSizing")) { 2515 var e = document.createElement("div"); 2516 e.style.width = "200px", e.style.padding = "1px 2px 3px 4px", e.style.borderStyle = "solid", e.style.borderWidth = "1px 2px 3px 4px", e.style[k] = "border-box"; 2517 var g = document.body || document.documentElement; 2518 g.appendChild(e); 2519 var h = j(e); 2520 l = 200 === b(h.width), g.removeChild(e) 2521 } 2522 } 2523 } 2524 2525 function h(a) { 2526 if (e(), "string" == typeof a && (a = document.querySelector(a)), a && "object" == typeof a && a.nodeType) { 2527 var c = j(a); 2528 if ("none" === c.display) return d(); 2529 var f = {}; 2530 f.width = a.offsetWidth, f.height = a.offsetHeight; 2531 for (var h = f.isBorderBox = !(!k || !c[k] || "border-box" !== c[k]), m = 0, n = g.length; n > m; m++) { 2532 var o = g[m], 2533 p = c[o]; 2534 p = i(a, p); 2535 var q = parseFloat(p); 2536 f[o] = isNaN(q) ? 0 : q 2537 } 2538 var r = f.paddingLeft + f.paddingRight, 2539 s = f.paddingTop + f.paddingBottom, 2540 t = f.marginLeft + f.marginRight, 2541 u = f.marginTop + f.marginBottom, 2542 v = f.borderLeftWidth + f.borderRightWidth, 2543 w = f.borderTopWidth + f.borderBottomWidth, 2544 x = h && l, 2545 y = b(c.width); 2546 y !== !1 && (f.width = y + (x ? 0 : r + v)); 2547 var z = b(c.height); 2548 return z !== !1 && (f.height = z + (x ? 0 : s + w)), f.innerWidth = f.width - (r + v), f.innerHe
2548ight = f.height - (s + w), f.outerWidth = f.width + t, f.outerHeight = f.height + u, f 2549 } 2550 } 2551 2552 function i(b, c) { 2553 if (a.getComputedStyle || -1 === c.indexOf("%")) return c; 2554 var d = b.style, 2555 e = d.left, 2556 f = b.runtimeStyle, 2557 g = f && f.left; 2558 return g && (f.left = b.currentStyle.left), d.left = c, c = d.pixelLeft, d.left = e, g && (f.left = g), c 2559 } 2560 var j, k, l, m = !1; 2561 return h 2562 } 2563 var f = "undefined" == typeof console ? c : function(a) { 2564 console.error(a) 2565 }, 2566 g = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"]; 2567 "function" == typeof define && define.amd ? define("get-size/get-size", ["get-style-property/get-style-property"], e) : "object" == typeof exports ? module.exports = e(require("desandro-get-style-property")) : a.getSize = e(a.getStyleProperty) 2568 }(window), 2569 function(a) { 2570 function b(a) { 2571 "function" == typeof a && (b.isReady ? a() : g.push(a)) 2572 } 2573 2574 function c(a) { 2575 var c = "readystatechange" === a.type && "complete" !== f.readyState; 2576 b.isReady || c || d() 2577 } 2578 2579 function d() { 2580 b.isReady = !0; 2581 for (var a = 0, c = g.length; c > a; a++) { 2582 var d = g[a]; 2583 d() 2584 } 2585 } 2586 2587 function e(e) { 2588 return "complete" === f.readyState ? d() : (e.bind(f, "DOMContentLoaded", c), e.bind(f, "readystatechange", c), e.bind(a, "load", c)), b 2589 } 2590 var f = a.document, 2591 g = []; 2592 b.isReady = !1, "function" == typeof define && define.amd ? define("doc-ready/doc-ready", ["eventie/eventie"], e) : "object" == typeof exports ? module.exports = e(require("eventie")) : a.docReady = e(a.eventie) 2593 }(window), 2594 function(a) { 2595 function b(a, b) { 2596 return a[g](b) 2597 } 2598 2599 function c(a) { 2600 if (!a.parentNode) { 2601 var b = document.createDocumentFragment(); 2602 b.appendChild(a) 2603 } 2604 } 2605 2606 function d(a, b) { 2607 c(a); 2608 for (var d = a.parentNode.querySelectorAll(b), e = 0, f = d.length; f > e; e++) 2609 if (d[e] === a) return !0; 2610 return !1 2611 } 2612 2613 function e(a, d) { 2614 return c(a), b(a, d) 2615 } 2616 var f, g = function() { 2617 if (a.matches) return "matches"; 2618 if (a.matchesSelector) return "matchesSelector"; 2619 for (var b = ["webkit", "moz", "ms", "o"], c = 0, d = b.length; d > c; c++) { 2620 var e = b[c], 2621 f = e + "MatchesSelector"; 2622 if (a[f]) return f 2623 } 2624 }(); 2625 if (g) { 2626 var h = document.createElement("div"), 2627 i = b(h, "div"); 2628 f = i ? b : e 2629 } else f = d; 2630 "function" == typeof define && define.amd ? define("matches-selector/matches-selector", [], function() { 2631 return f 2632 }) : "object" == typeof exports ? module.exports = f : window.matchesSelector = f 2633 }(Element.prototype), 2634 function(a, b) { 2635 "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["doc-ready/doc-ready", "matches-selector/matches-selector"], function(c, d) { 2636 return b(a, c, d) 2637 }) : "object" == typeof exports ? module.exports = b(a, require("doc-ready"), require("desandro-matches-selector")) : a.fizzyUIUtils = b(a, a.docReady, a.matchesSelector) 2638 }(window, function(a, b, c) { 2639 var d = {}; 2640 d.extend = function(a, b) { 2641 for (var c in b) a[c] = b[c]; 2642 return a 2643 }, d.modulo = function(a, b) { 2644 return (a % b + b) % b 2645 }; 2646 var e = Object.prototype.toString; 2647 d.isArray = function(a) { 2648 return "[object Array]" == e.call(a) 2649 }, d.makeArray = function(a) { 2650 var b = []; 2651 if (d.isArray(a)) b = a; 2652 else if (a && "number" == typeof a.length) 2653 for (var c = 0, e = a.length; e > c; c++) b.push(a[c]); 2654 else b.push(a); 2655 return b 2656 }, d.indexOf = Array.prototype.indexOf ? function(a, b) { 2657 return a.indexOf(b) 2658 } : function(a, b) { 2659 for (var c = 0, d = a.length; d > c; c++) 2660 if (a[c] === b) return c; 2661 return -1 2662 }, d.removeFrom = function(a, b) { 2663 var c = d.indexOf(a, b); - 1 != c && a.splice(c, 1) 2664 }, d.isElement = "function" == typeof HTMLElement || "object" == typeof HTMLElement ? function(a) { 2665 return a instanceof HTMLElement 2666 } : function(a) { 2667 return a && "object" == typeof a && 1 == a.nodeType && "string" == typeof a.nodeName 2668 }, d.setText = function() { 2669 function a(a, c) { 2670 b = b || (void 0 !== document.documentElement.textContent ? "textContent" : "innerText"), a[b] = c 2671 } 2672 var b; 2673 return a 2674 }(), d.getParent = function(a, b) { 2675 for (; a != document.body;) 2676 if (a = a.parentNode, c(a, b)) return a 2677 }, d.getQueryElement = function(a) { 2678 return "string" == typeof a ? document.querySelector(a) : a 2679 }, d.handleEvent = function(a) { 2680 var b = "on" + a.type; 2681 this[b] && this[b](a) 2682 }, d.filterFindElements = function(a, b) { 2683 a = d.makeArray(a); 2684 for (var e = [], f = 0, g = a.length; g > f; f++) { 2685 var h = a[f]; 2686 if (d.isElement(h)) 2687 if (b) { 2688 c(h, b) && e.push(h); 2689 for (var i = h.querySelectorAll(b), j = 0, k = i.length; k > j; j++) e.push(i[j]) 2690 } else e.push(h) 2691 } 2692 return e 2693 }, d.debounceMethod = function(a, b, c) { 2694 var d = a.prototype[b], 2695 e = b + "Timeout"; 2696 a.prototype[b] = function() { 2697 var a = this[e]; 2698 a && clearTimeout(a); 2699 var b = arguments, 2700 f = this; 2701 this[e] = setTimeout(function() { 2702 d.apply(f, b), delete f[e] 2703 }, c || 100) 2704 } 2705 }, d.toDashed = function(a) { 2706 return a.replace(/(.)([A-Z])/g, function(a, b, c) { 2707 return b + "-" + c 2708 }).toLowerCase() 2709 }; 2710 var f = a.console; 2711 return d.htmlInit = function(c, e) { 2712 b(function() { 2713 for (var b = d.toDashed(e), g = document.querySelectorAll(".js-" + b), h = "data-" + b + "-options", i = 0, j = g.length; j > i; i++) { 2714 var k, l = g[i], 2715 m = l.getAttribute(h); 2716 try { 2717 k = m && JSON.parse(m) 2718 } catch (n) { 2719 f && f.error("Error parsing " + h + " on " + l.no
2719deName.toLowerCase() + (l.id ? "#" + l.id : "") + ": " + n); 2720 continue 2721 } 2722 var o = new c(l, k), 2723 p = a.jQuery; 2724 p && p.data(l, e, o) 2725 } 2726 }) 2727 }, d 2728 }), 2729 function(a, b) { 2730 "function" == typeof define && define.amd ? define("outlayer/item", ["eventEmitter/EventEmitter", "get-size/get-size", "get-style-property/get-style-property", "fizzy-ui-utils/utils"], function(c, d, e, f) { 2731 return b(a, c, d, e, f) 2732 }) : "object" == typeof exports ? module.exports = b(a, require("wolfy87-eventemitter"), require("get-size"), require("desandro-get-style-property"), require("fizzy-ui-utils")) : (a.Outlayer = {}, a.Outlayer.Item = b(a, a.EventEmitter, a.getSize, a.getStyleProperty, a.fizzyUIUtils)) 2733 }(window, function(a, b, c, d, e) { 2734 function f(a) { 2735 for (var b in a) return !1; 2736 return b = null, !0 2737 } 2738 2739 function g(a, b) { 2740 a && (this.element = a, this.layout = b, this.position = { 2741 x: 0, 2742 y: 0 2743 }, this._create()) 2744 } 2745 2746 function h(a) { 2747 return a.replace(/([A-Z])/g, function(a) { 2748 return "-" + a.toLowerCase() 2749 }) 2750 } 2751 var i = a.getComputedStyle, 2752 j = i ? function(a) { 2753 return i(a, null) 2754 } : function(a) { 2755 return a.currentStyle 2756 }, 2757 k = d("transition"), 2758 l = d("transform"), 2759 m = k && l, 2760 n = !!d("perspective"), 2761 o = { 2762 WebkitTransition: "webkitTransitionEnd", 2763 MozTransition: "transitionend", 2764 OTransition: "otransitionend", 2765 transition: "transitionend" 2766 }[k], 2767 p = ["transform", "transition", "transitionDuration", "transitionProperty"], 2768 q = function() { 2769 for (var a = {}, b = 0, c = p.length; c > b; b++) { 2770 var e = p[b], 2771 f = d(e); 2772 f && f !== e && (a[e] = f) 2773 } 2774 return a 2775 }(); 2776 e.extend(g.prototype, b.prototype), g.prototype._create = function() { 2777 this._transn = { 2778 ingProperties: {}, 2779 clean: {}, 2780 onEnd: {} 2781 }, this.css({ 2782 position: "absolute" 2783 }) 2784 }, g.prototype.handleEvent = function(a) { 2785 var b = "on" + a.type; 2786 this[b] && this[b](a) 2787 }, g.prototype.getSize = function() { 2788 this.size = c(this.element) 2789 }, g.prototype.css = function(a) { 2790 var b = this.element.style; 2791 for (var c in a) { 2792 var d = q[c] || c; 2793 b[d] = a[c] 2794 } 2795 }, g.prototype.getPosition = function() { 2796 var a = j(this.element), 2797 b = this.layout.options, 2798 c = b.isOriginLeft, 2799 d = b.isOriginTop, 2800 e = a[c ? "left" : "right"], 2801 f = a[d ? "top" : "bottom"], 2802 g = parseInt(e, 10), 2803 h = parseInt(f, 10), 2804 i = this.layout.size; 2805 g = -1 != e.indexOf("%") ? g / 100 * i.width : g, h = -1 != f.indexOf("%") ? h / 100 * i.height : h, g = isNaN(g) ? 0 : g, h = isNaN(h) ? 0 : h, g -= c ? i.paddingLeft : i.paddingRight, h -= d ? i.paddingTop : i.paddingBottom, this.position.x = g, this.position.y = h 2806 }, g.prototype.layoutPosition = function() { 2807 var a = this.layout.size, 2808 b = this.layout.options, 2809 c = {}, 2810 d = b.isOriginLeft ? "paddingLeft" : "paddingRight", 2811 e = b.isOriginLeft ? "left" : "right", 2812 f = b.isOriginLeft ? "right" : "left", 2813 g = this.position.x + a[d]; 2814 c[e] = this.getXValue(g), c[f] = ""; 2815 var h = b.isOriginTop ? "paddingTop" : "paddingBottom", 2816 i = b.isOriginTop ? "top" : "bottom", 2817 j = b.isOriginTop ? "bottom" : "top", 2818 k = this.position.y + a[h]; 2819 c[i] = this.getYValue(k), c[j] = "", this.css(c), this.emitEvent("layout", [this]) 2820 }, g.prototype.getXValue = function(a) { 2821 var b = this.layout.options; 2822 return b.percentPosition && !b.isHorizontal ? a / this.layout.size.width * 100 + "%" : a + "px" 2823 }, g.prototype.getYValue = function(a) { 2824 var b = this.layout.options; 2825 return b.percentPosition && b.isHorizontal ? a / this.layout.size.height * 100 + "%" : a + "px" 2826 }
2826, g.prototype._transitionTo = function(a, b) { 2827 this.getPosition(); 2828 var c = this.position.x, 2829 d = this.position.y, 2830 e = parseInt(a, 10), 2831 f = parseInt(b, 10), 2832 g = e === this.position.x && f === this.position.y; 2833 if (this.setPosition(a, b), g && !this.isTransitioning) return void this.layoutPosition(); 2834 var h = a - c, 2835 i = b - d, 2836 j = {}; 2837 j.transform = this.getTranslate(h, i), this.transition({ 2838 to: j, 2839 onTransitionEnd: { 2840 transform: this.layoutPosition 2841 }, 2842 isCleaning: !0 2843 }) 2844 }, g.prototype.getTranslate = function(a, b) { 2845 var c = this.layout.options; 2846 return a = c.isOriginLeft ? a : -a, b = c.isOriginTop ? b : -b, a = this.getXValue(a), b = this.getYValue(b), n ? "translate3d(" + a + ", " + b + ", 0)" : "translate(" + a + ", " + b + ")" 2847 }, g.prototype.goTo = function(a, b) { 2848 this.setPosition(a, b), this.layoutPosition() 2849 }, g.prototype.moveTo = m ? g.prototype._transitionTo : g.prototype.goTo, g.prototype.setPosition = function(a, b) { 2850 this.position.x = parseInt(a, 10), this.position.y = parseInt(b, 10) 2851 }, g.prototype._nonTransition = function(a) { 2852 this.css(a.to), a.isCleaning && this._removeStyles(a.to); 2853 for (var b in a.onTransitionEnd) a.onTransitionEnd[b].call(this) 2854 }, g.prototype._transition = function(a) { 2855 if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(a); 2856 var b = this._transn; 2857 for (var c in a.onTransitionEnd) b.onEnd[c] = a.onTransitionEnd[c]; 2858 for (c in a.to) b.ingProperties[c] = !0, a.isCleaning && (b.clean[c] = !0); 2859 if (a.from) { 2860 this.css(a.from); 2861 var d = this.element.offsetHeight; 2862 d = null 2863 } 2864 this.enableTransition(a.to), this.css(a.to), this.isTransitioning = !0 2865 }; 2866 var r = "opacity," + h(q.transform || "transform"); 2867 g.prototype.enableTransition = function() { 2868 this.isTransitioning || (this.css({ 2869 transitionProperty: r, 2870 transitionDuration: this.layout.options.transitionDuration 2871 }), this.element.addEventListener(o, this, !1)) 2872 }, g.prototype.transition = g.prototype[k ? "_transition" : "_nonTransition"], g.prototype.onwebkitTransitionEnd = function(a) { 2873 this.ontransitionend(a) 2874 }, g.prototype.onotransitionend = function(a) { 2875 this.ontransitionend(a) 2876 }; 2877 var s = { 2878 "-webkit-transform": "transform", 2879 "-moz-transform": "transform", 2880 "-o-transform": "transform" 2881 }; 2882 g.prototype.ontransitionend = function(a) { 2883 if (a.target === this.element) { 2884 var b = this._transn, 2885 c = s[a.propertyName] || a.propertyName; 2886 if (delete b.ingProperties[c], f(b.ingProperties) && this.disableTransition(), c in b.clean && (this.element.style[a.propertyName] = "", delete b.clean[c]), c in b.onEnd) { 2887 var d = b.onEnd[c]; 2888 d.call(this), delete b.onEnd[c] 2889 } 2890 this.emitEvent("transitionEnd", [this]) 2891 } 2892 }, g.prototype.disableTransition = function() { 2893 this.removeTransitionStyles(), this.element.removeEventListener(o, this, !1), this.isTransitioning = !1 2894 }, g.prototype._removeStyles = function(a) { 2895 var b = {}; 2896 for (var c in a) b[c] = ""; 2897 this.css(b) 2898 }; 2899 var t = { 2900 transitionProperty: "", 2901 transitionDuration: "" 2902 }; 2903 return g.prototype.removeTransitionStyles = function() { 2904 this.css(t) 2905 }, g.prototype.removeElem = function() { 2906 this.element.parentNode.removeChild(this.element), this.css({ 2907 display: "" 2908 }), this.emitEvent("remove", [this]) 2909 }, g.prototype.remove = function() { 2910 if (!k || !parseFloat(this.layout.options.transitionDuration)) return void this.removeElem(); 2911 var a = this; 2912 this.once("transitionEnd", function() { 2913 a.removeElem() 2914 }), this.hide() 2915 }, g.prototype.reveal = function() { 2916 delete this.isHidden, this.css({ 2917 display: "" 2918 }); 2919 var a = this.layout.options, 2920 b = {}, 2921 c = this.getHideRevealTransitionEndProperty("visibleStyle"); 2922 b[c] = this.onRevealTransitionEnd, this.transition({ 2923 from: a.hiddenStyle, 2924 to: a.visibleStyle, 2925 isCleaning: !0, 2926 onTransitionEnd: b 2927 }) 2928 }, g.prototype.onRevealTransitionEnd = function() { 2929 this.isHidden || this.emitEvent("reveal") 2930 }, g.prototype.getHideRevealTransitionEndProperty = function(a) { 2931 var b = this.layout.options[a]; 2932 if (b.opacity) return "opacity"; 2933 for (var c in b) return c 2934 }, g.prototype.hide = function() { 2935 this.isHidden = !0, this.css({ 2936 display: "" 2937 }); 2938 var a = this.layout.options, 2939 b = {}, 2940 c = this.getHideRevealTransitionEndProperty("hiddenStyle"); 2941 b[c] = this.onHideTransitionEnd, this.transition({ 2942 from: a.visibleStyle, 2943 to: a.hiddenStyle, 2944 isCleaning: !0, 2945 onTransitionEnd: b 2946 }) 2947 }, g.prototype.onHideTransitionEnd = function() { 2948 this.isHidden && (this.css({ 2949 display: "none" 2950 }), this.emitEvent("hide")) 2951 }, g.prototype.destroy = function() { 2952 this.css({ 2953 position: "", 2954 left: "", 2955 right: "", 2956 top: "", 2957 bottom: "", 2958 transition: "", 2959 transform: "" 2960 }) 2961 }, g 2962 }), 2963 function(a, b) { 2964 "function" == typeof define && define.amd ? define("outlayer/outlayer", ["eventie/eventie", "eventEmitter/EventEmitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(c, d, e, f, g) { 2965 return b(a, c, d, e, f, g) 2966 }) : "object" == typeof exports ? module.exports = b(a, require("eventie"), require("wolfy87-eventemitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : a.Outlayer = b(a, a.eventie, a.EventEmitter, a.getSize, a.fizzyUIUtils, a.Outlayer.Item) 2967 }(window, function(a, b, c, d, e, f) { 2968 function g(a, b) { 2969 var c = e.getQueryElement(a); 2970 if (!c) return void(h && h.error("Bad element for " + this.constructor.namespace + ": " + (c || a))); 2971 this.element = c, i && (this.$element = i(this.element)), this.options = e.extend({}, this.constructor.defaults), this.option(b); 2972 var d = ++k; 2973 this.element.outlayerGUID = d, l[d] = this, this._create(), this.options.isInitLayout && this.layout() 2974 } 2975 var h = a.console, 2976 i = a.jQuery, 2977 j = function() {}, 2978 k = 0, 2979 l = {}; 2980 return g.namespace = "outlayer", g.Item = f, g.defaults = { 2981 containerStyle: { 2982 position: "relative" 2983 }, 2984 isInitLayout: !0, 2985 isOriginLeft: !0, 2986 isOriginTop: !0, 2987 isResizeBound: !0, 2988 isResizingContainer: !0, 2989 transitionDuration: "0.4s", 2990 hiddenStyle: { 2991 opacity: 0, 2992 transform: "scale(0.001)" 2993 }, 2994 visibleStyle: { 2995 opacity: 1, 2996 transform: "scale(1)" 2997 } 2998 }, e.extend(g.prototype, c.prototype), g.prototype.option = function(a) { 2999 e.extend(this.options, a) 3000 }, g.prototype._create = function() { 3001 this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), e.extend(this.element.style, this.options.containerStyle), this.options.isResizeBound && this.bindResize() 3002 }, g.prototype.reloadItems = function() { 3003 this.items = this._itemize(this.element.children) 3004 }, g.prototype._itemize = function(a) { 3005 for (var b = this._filterFindItemElements(a), c = this.constructor.Item, d = [], e = 0, f = b.length; f > e; e++) { 3006 var g = b[e], 3007 h = new c(g, this); 3008 d.push(h) 3009 } 3010 return d 3011 }, g.prototype._filterFindItemElements = function(a) { 3012 return e.filterFindElements(a, this.options.itemSelector) 3013 }, g.prototype.getItemElements = function() { 3014 for (var a = [], b = 0, c = this.items.length; c > b; b++) a.push(this.items[b].element); 3015 return a 3016 }, g.prototype.layout = function() { 3017 this._resetLayout(), this._manageStamps(); 3018 var a = void 0 !== this.options.isLayoutInstant ? this.options.isLayoutInstant : !this._isLayoutInited; 3019 this.layoutItems(this.items, a), this._isLayoutInited = !0 3020 }, g.prototype._init = g.prototype.layout, g.prototype._resetLayout = function() {
3021 this.getSize() 3022 }, g.prototype.getSize = function() { 3023 this.size = d(this.element) 3024 }, g.prototype._getMeasurement = function(a, b) { 3025 var c, f = this.options[a]; 3026 f ? ("string" == typeof f ? c = this.element.querySelector(f) : e.isElement(f) && (c = f), this[a] = c ? d(c)[b] : f) : this[a] = 0 3027 }, g.prototype.layoutItems = function(a, b) { 3028 a = this._getItemsForLayout(a), this._layoutItems(a, b), this._postLayout() 3029 }, g.prototype._getItemsForLayout = function(a) { 3030 for (var b = [], c = 0, d = a.length; d > c; c++) { 3031 var e = a[c]; 3032 e.isIgnored || b.push(e) 3033 } 3034 return b 3035 }, g.prototype._layoutItems = function(a, b) { 3036 if (this._emitCompleteOnItems("layout", a), a && a.length) { 3037 for (var c = [], d = 0, e = a.length; e > d; d++) { 3038 var f = a[d], 3039 g = this._getItemLayoutPosition(f); 3040 g.item = f, g.isInstant = b || f.isLayoutInstant, c.push(g) 3041 } 3042 this._processLayoutQueue(c) 3043 } 3044 }, g.prototype._getItemLayoutPosition = function() { 3045 return { 3046 x: 0, 3047 y: 0 3048 } 3049 }, g.prototype._processLayoutQueue = function(a) { 3050 for (var b = 0, c = a.length; c > b; b++) { 3051 var d = a[b]; 3052 this._positionItem(d.item, d.x, d.y, d.isInstant) 3053 } 3054 }, g.prototype._positionItem = function(a, b, c, d) { 3055 d ? a.goTo(b, c) : a.moveTo(b, c) 3056 }, g.prototype._postLayout = function() { 3057 this.resizeContainer() 3058 }, g.prototype.resizeContainer = function() { 3059 if (this.options.isResizingContainer) { 3060 var a = this._getContainerSize(); 3061 a && (this._setContainerMeasure(a.width, !0), this._setContainerMeasure(a.height, !1)) 3062 } 3063 }, g.prototype._getContainerSize = j, g.prototype._setContainerMeasure = function(a, b) { 3064 if (void 0 !== a) { 3065 var c = this.size; 3066 c.isBorderBox && (a += b ? c.paddingLeft + c.paddingRight + c.borderLeftWidth + c.borderRightWidth : c.paddingBottom + c.paddingTop + c.borderTopWidth + c.borderBottomWidth), a = Math.max(a, 0), this.element.style[b ? "width" : "height"] = a + "px" 3067 } 3068 }, g.prototype._emitCompleteOnItems = function(a, b) { 3069 function c() { 3070 e.dispatchEvent(a + "Complete", null, [b]) 3071 } 3072 3073 function d() { 3074 g++, g === f && c() 3075 } 3076 var e = this, 3077 f = b.length; 3078 if (!b || !f) return void c(); 3079 for (var g = 0, h = 0, i = b.length; i > h; h++) { 3080 var j = b[h]; 3081 j.once(a, d) 3082 } 3083 }, g.prototype.dispatchEvent = function(a, b, c) { 3084 var d = b ? [b].concat(c) : c; 3085 if (this.emitEvent(a, d), i) 3086 if (this.$element = this.$element || i(this.element), b) { 3087 var e = i.Event(b); 3088 e.type = a, this.$element.trigger(e, c) 3089 } else this.$element.trigger(a, c) 3090 }, g.prototype.ignore = function(a) { 3091 var b = this.getItem(a); 3092 b && (b.isIgnored = !0) 3093 }, g.prototype.unignore = function(a) { 3094 var b = this.getItem(a); 3095 b && delete b.isIgnored 3096 }, g.prototype.stamp = function(a) { 3097 if (a = this._find(a)) { 3098 this.stamps = this.stamps.concat(a); 3099 for (var b = 0, c = a.length; c > b; b++) { 3100 var d = a[b]; 3101 this.ignore(d) 3102 } 3103 } 3104 }, g.prototype.unstamp = function(a) { 3105 if (a = this._find(a)) 3106 for (var b = 0, c = a.length; c > b; b++) { 3107 var d = a[b]; 3108 e.removeFrom(this.stamps, d), this.unignore(d) 3109 } 3110 }, g.prototype._find = function(a) { 3111 return a ? ("string" == typeof a && (a = this.element.querySelectorAll(a)), a = e.makeArray(a)) : void 0 3112 }, g.prototype._manageStamps = function() { 3113 if (this.stamps && this.stamps.length) {
3114 this._getBoundingRect(); 3115 for (var a = 0, b = this.stamps.length; b > a; a++) { 3116 var c = this.stamps[a]; 3117 this._manageStamp(c) 3118 } 3119 } 3120 }, g.prototype._getBoundingRect = function() { 3121 var a = this.element.getBoundingClientRect(), 3122 b = this.size; 3123 this._boundingRect = { 3124 left: a.left + b.paddingLeft + b.borderLeftWidth, 3125 top: a.top + b.paddingTop + b.borderTopWidth, 3126 right: a.right - (b.paddingRight + b.borderRightWidth), 3127 bottom: a.bottom - (b.paddingBottom + b.borderBottomWidth) 3128 } 3129 }, g.prototype._manageStamp = j, g.prototype._getElementOffset = function(a) { 3130 var b = a.getBoundingClientRect(), 3131 c = this._boundingRect, 3132 e = d(a), 3133 f = { 3134 left: b.left - c.left - e.marginLeft, 3135 top: b.top - c.top - e.marginTop, 3136 right: c.right - b.right - e.marginRight, 3137 bottom: c.bottom - b.bottom - e.marginBottom 3138 }; 3139 return f 3140 }, g.prototype.handleEvent = function(a) { 3141 var b = "on" + a.type; 3142 this[b] && this[b](a) 3143 }, g.prototype.bindResize = function() { 3144 this.isResizeBound || (b.bind(a, "resize", this), this.isResizeBound = !0) 3145 }, g.prototype.unbindResize = function() { 3146 this.isResizeBound && b.unbind(a, "resize", this), this.isResizeBound = !1 3147 }, g.prototype.onresize = function() { 3148 function a() { 3149 b.resize(), delete b.resizeTimeout 3150 } 3151 this.resizeTimeout && clearTimeout(this.resizeTimeout); 3152 var b = this; 3153 this.resizeTimeout = setTimeout(a, 100) 3154 }, g.prototype.resize = function() { 3155 this.isResizeBound && this.needsResizeLayout() && this.layout() 3156 }, g.prototype.needsResizeLayout = function() { 3157 var a = d(this.element), 3158 b = this.size && a; 3159 return b && a.innerWidth !== this.size.innerWidth 3160 }, g.prototype.addItems = function(a) { 3161 var b = this._itemize(a); 3162 return b.length && (this.items = this.items.concat(b)), b 3163 }, g.prototype.appended = function(a) { 3164 var b = this.addItems(a); 3165 b.length && (this.layoutItems(b, !0), this.reveal(b)) 3166 }, g.prototype.prepended = function(a) { 3167 var b = this._itemize(a); 3168 if (b.length) { 3169 var c = this.items.slice(0); 3170 this.items = b.concat(c), this._resetLayout(), this._manageStamps(), this.layoutItems(b, !0), this.reveal(b), this.layoutItems(c) 3171 } 3172 }, g.prototype.reveal = function(a) { 3173 this._emitCompleteOnItems("reveal", a); 3174 for (var b = a && a.length, c = 0; b && b > c; c++) { 3175 var d = a[c]; 3176 d.reveal() 3177 } 3178 }, g.prototype.hide = function(a) { 3179 this._emitCompleteOnItems("hide", a); 3180 for (var b = a && a.length, c = 0; b && b > c; c++) { 3181 var d = a[c]; 3182 d.hide() 3183 } 3184 }, g.prototype.revealItemElements = function(a) { 3185 var b = this.getItems(a); 3186 this.reveal(b) 3187 }, g.prototype.hideItemElements = function(a) { 3188 var b = this.getItems(a); 3189 this.hide(b) 3190 }, g.prototype.getItem = function(a) { 3191 for (var b = 0, c = this.items.length; c > b; b++) { 3192 var d = this.items[b]; 3193 if (d.element === a) return d 3194 } 3195 }, g.prototype.getItems = function(a) { 3196 a = e.makeArray(a); 3197 for (var b = [], c = 0, d = a.length; d > c; c++) { 3198 var f = a[c], 3199 g = this.getItem(f); 3200 g && b.push(g) 3201 } 3202 return b 3203 }, g.prototype.remove = function(a) { 3204 var b = this.getItems(a); 3205 if (this._emitCompleteOnItems("remove", b), b && b.length) 3206 for (var c = 0, d = b.length; d > c; c++) { 3207 var f = b[c]; 3208 f.remove(), e.removeFrom(this.items, f) 3209 } 3210 }, g.prototype.destroy = function() { 3211 var a = this.element.style; 3212 a.height = "", a.position = "", a.width = ""; 3213 for (var b = 0, c = this.items.length; c > b; b++) { 3214 var d = this.items[b]; 3215 d.destroy() 3216 } 3217 this.unbindResize(); 3218 var e = this.element.outlayerGUID; 3219 delete l[e], delete this.element.outlayerGUID, i && i.removeData(this.element, this.constructor.namespace) 3220 }, g.data = function(a) { 3221 a = e.getQueryElement(a); 3222 var b = a && a.outlayerGUID; 3223 return b && l[b] 3224 }, g.create = function(a, b) { 3225 function c() { 3226 g.apply(this, arguments) 3227 } 3228 return Object.create ? c.prototype = Object.create(g.prototype) : e.extend(c.prototype, g.prototype), c.prototype.constructor = c, c.defaults = e.extend({}, g.defaults), e.extend(c.defaults, b), c.prototype.settings = {}, c.namespace = a, c.data = g.data, c.Item = function() { 3229 f.apply(this, arguments) 3230 }, c.Item.prototype = new f, e.htmlInit(c, a), i && i.bridget && i.bridget(a, c), c 3231 }, g.Item = f, g 3232 }), 3233 function(a, b) { 3234 "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "fizzy-ui-utils/utils"], b) : "object" == typeof exports ? module.exports = b(require("outlayer"), require("get-size"), require("fizzy-ui-utils")) : a.Masonry = b(a.Outlayer, a.getSize, a.fizzyUIUtils) 3235 }(window, function(a, b, c) { 3236 var d = a.create("masonry"); 3237 return d.prototype._resetLayout = function() {
3238 this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(); 3239 var a = this.cols; 3240 for (this.colYs = []; a--;) this.colYs.push(0); 3241 this.maxY = 0 3242 }, d.prototype.measureColumns = function() { 3243 if (this.getContainerWidth(), !this.columnWidth) { 3244 var a = this.items[0], 3245 c = a && a.element; 3246 this.columnWidth = c && b(c).outerWidth || this.containerWidth 3247 } 3248 var d = this.columnWidth += this.gutter, 3249 e = this.containerWidth + this.gutter, 3250 f = e / d, 3251 g = d - e % d, 3252 h = g && 1 > g ? "round" : "floor"; 3253 f = Math[h](f), this.cols = Math.max(f, 1) 3254 }, d.prototype.getContainerWidth = function() { 3255 var a = this.options.isFitWidth ? this.element.parentNode : this.element, 3256 c = b(a); 3257 this.containerWidth = c && c.innerWidth 3258 }, d.prototype._getItemLayoutPosition = function(a) { 3259 a.getSize(); 3260 var b = a.size.outerWidth % this.columnWidth, 3261 d = b && 1 > b ? "round" : "ceil", 3262 e = Math[d](a.size.outerWidth / this.columnWidth); 3263 e = Math.min(e, this.cols); 3264 for (var f = this._getColGroup(e), g = Math.min.apply(Math, f), h = c.indexOf(f, g), i = { 3265 x: this.columnWidth * h, 3266 y: g 3267 }, j = g + a.size.outerHeight, k = this.cols + 1 - f.length, l = 0; k > l; l++) this.colYs[h + l] = j; 3268 return i 3269 }, d.prototype._getColGroup = function(a) { 3270 if (2 > a) return this.colYs; 3271 for (var b = [], c = this.cols + 1 - a, d = 0; c > d; d++) { 3272 var e = this.colYs.slice(d, d + a); 3273 b[d] = Math.max.apply(Math, e) 3274 } 3275 return b 3276 }, d.prototype._manageStamp = function(a) { 3277 var c = b(a), 3278 d = this._getElementOffset(a), 3279 e = this.options.isOriginLeft ? d.left : d.right, 3280 f = e + c.outerWidth, 3281 g = Math.floor(e / this.columnWidth); 3282 g = Math.max(0, g); 3283 var h = Math.floor(f / this.columnWidth); 3284 h -= f % this.columnWidth ? 0 : 1, h = Math.min(this.cols - 1, h); 3285 for (var i = (this.options.isOriginTop ? d.top : d.bottom) + c.outerHeight, j = g; h >= j; j++) this.colYs[j] = Math.max(i, this.colYs[j]) 3286 }, d.prototype._getContainerSize = function() { 3287 this.maxY = Math.max.apply(Math, this.colYs); 3288 var a = { 3289 height: this.maxY 3290 }; 3291 return this.options.isFitWidth && (a.width = this._getContainerFitWidth()), a 3292 }, d.prototype._getContainerFitWidth = function() { 3293 for (var a = 0, b = this.cols; --b && 0 === this.colYs[b];) a++; 3294 return (this.cols - a) * this.columnWidth - this.gutter 3295 }, d.prototype.needsResizeLayout = function() { 3296 var a = this.containerWidth; 3297 return this.getContainerWidth(), a !== this.containerWidth 3298 }, d 3299 }); 3300 3301! function(a) { 3302 "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? module.exports = a(require("jquery")) : a(jQuery) 3303}(function(a) { 3304 function i() { 3305 var b, c, d = { 3306 height: f.innerHeight, 3307 width: f.innerWidth 3308 }; 3309 return d.height || (b = e.compatMode, (b || !a.support.boxModel) && (c = "CSS1Compat" === b ? g : e.body, d = { 3310 height: c.clientHeight, 3311 width: c.clientWidth 3312 })), d 3313 } 3314 3315 function j() { 3316 return { 3317 top: f.pageYOffset || g.scrollTop || e.body.scrollTop, 3318 left: f.pageXOffset || g.scrollLeft || e.body.scrollLeft 3319 } 3320 } 3321 3322 function k() { 3323 if (b.length) { 3324 var e = 0, 3325 f = a.map(b, function(a) { 3326 var b = a.data.selector, 3327 c = a.$element; 3328 return b ? c.find(b) : c 3329 }); 3330 for (c = c || i(), d = d || j(); e < b.length; e++) 3331 if (a.contains(g, f[e][0])) { 3332 var h = a(f[e]), 3333 k = { 3334 height: h[0].offsetHeight, 3335 width: h[0].offsetWidth 3336 }, 3337 l = h.offset(), 3338 m = h.data("inview"); 3339 if (!d || !c) return; 3340 l.top + k.height > d.top && l.top < d.top + c.height && l.left + k.width >
3340 d.left && l.left < d.left + c.width ? m || h.data("inview", !0).trigger("inview", [!0]) : m && h.data("inview", !1).trigger("inview", [!1]) 3341 } 3342 } 3343 } 3344 var c, d, h, b = [], 3345 e = document, 3346 f = window, 3347 g = e.documentElement; 3348 a.event.special.inview = { 3349 add: function(c) { 3350 b.push({ 3351 data: c, 3352 $element: a(this), 3353 element: this 3354 }), !h && b.length && (h = setInterval(k, 250)) 3355 }, 3356 remove: function(a) { 3357 for (var c = 0; c < b.length; c++) { 3358 var d = b[c]; 3359 if (d.element === this && d.data.guid === a.guid) { 3360 b.splice(c, 1); 3361 break 3362 } 3363 } 3364 b.length || (clearInterval(h), h = null) 3365 } 3366 }, a(f).on("scroll resize scrollstop", function() { 3367 c = d = null 3368 }), !g.addEventListener && g.attachEvent && g.attachEvent("onfocusin", function() { 3369 d = null 3370 }) 3371}); 3372 3373 3374//Before After Image 3375! function(t) { 3376 "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery) 3377}(function(t, e) { 3378 function n(t) { 3379 function e(t) { 3380 a ? (n(), O(e), i = !0, a = !1) : i = !1 3381 } 3382 var n = t, 3383 a = !1, 3384 i = !1; 3385 this.kick = function(t) { 3386 a = !0, i || e() 3387 }, this.end = function(t) { 3388 var e = n; 3389 t && (i ? (n = a ? function() { 3390 e(), t() 3391 } : t, a = !0) : t()) 3392 } 3393 } 3394 3395 function a() { 3396 return !0 3397 } 3398 3399 function i() { 3400 return !1 3401 } 3402 3403 function o(t) { 3404 t.preventDefault() 3405 } 3406 3407 function r(t) { 3408 z[t.target.tagName.toLowerCase()] || t.preventDefault() 3409 } 3410 3411 function u(t) { 3412 return 1 === t.which && !t.ctrlKey && !t.altKey 3413 } 3414 3415 function c(t, e) { 3416 var n, a; 3417 if (t.identifiedTouch) return t.identifiedTouch(e); 3418 for (n = -1, a = t.length; ++n < a;) 3419 if (t[n].identifier === e) return t[n] 3420 } 3421 3422 function d(t, e) { 3423 var n = c(t.changedTouches, e.identifier); 3424 if (n && (n.pageX !== e.pageX || n.pageY !== e.pageY)) return n 3425 } 3426 3427 function m(t) { 3428 var e; 3429 u(t) && (e = { 3430 target: t.target, 3431 startX: t.pageX, 3432 startY: t.pageY, 3433 timeStamp: t.timeStamp 3434 }, K(document, Q.move, f, e), K(document, Q.cancel, s, e)) 3435 } 3436 3437 function f(t) { 3438 var e = t.data; 3439 X(t, e, t, v) 3440 } 3441 3442 function s(t) { 3443 v() 3444 } 3445 3446 function v() { 3447 L(document, Q.move, f), L(document, Q.cancel, s) 3448 } 3449 3450 function p(t) { 3451 var e, n; 3452 z[t.target.tagName.toLowerCase()] || (e = t.changedTouches[0], n = { 3453 target: e.target, 3454 startX: e.pageX, 3455 startY: e.pageY, 3456 timeStamp: t.timeStamp, 3457 identifier: e.identifier 3458 }, K(document, B.move + "." + e.identifier, g, n), K(document, B.cancel + "." + e.identifier, h, n)) 3459 } 3460 3461 function g(t) { 3462 var e = t.data, 3463 n = d(t, e); 3464 n && X(t, e, n, l) 3465 } 3466 3467 function h(t) { 3468 var e = t.data, 3469 n = c(t.changedTouches, e.identifier); 3470 n && l(e.identifier) 3471 } 3472 3473 function l(t) { 3474 L(document, "." + t, g), L(document, "." + t, h) 3475 } 3476 3477 function X(t, e, n, a) { 3478 var i = n.pageX - e.startX, 3479 o = n.pageY - e.startY; 3480 C * C > i * i + o * o || y(t, e, n, i, o, a) 3481 } 3482 3483 function Y() { 3484 return this._handled = a, !1 3485 } 3486 3487 function w(t) { 3488 t._handled() 3489 } 3490 3491 function y(t, e, n, a, i, o) { 3492 var r, u; 3493 e.target; 3494 r = t.targetTouches, u = t.timeStamp - e.timeStamp, e.type = "movestart", e.distX = a, e.distY = i, e.deltaX = a, e.deltaY = i, e.pageX = n.pageX, e.pageY = n.pageY, e.velocityX = a / u, e.velocityY = i / u, e.targetTouches = r, e.finger = r ? r.length : 1, e._handled = Y, e._preventTouchmoveDefault = function() { 3495 t.preventDefault() 3496 }, N(e.target, e), o(e.identifier) 3497 } 3498 3499 function T(t) { 3500 var e = t.data.timer; 3501 t.data.touch = t, t.data.timeStamp = t.timeStamp, e.kick() 3502 } 3503 3504 function S(t) { 3505 var e = t.data.event, 3506 n = t.data.timer; 3507 k(), F(e, n, function() { 3508 setTimeout(function() { 3509 L(e.target, "click", i) 3510 }, 0) 3511 }) 3512 } 3513 3514 function k(t) { 3515 L(document, Q.move, T), L(document, Q.end, S) 3516 } 3517 3518 function _(t) { 3519 var e = t.data.event, 3520 n = t.data.timer, 3521 a = d(t, e); 3522 a && (t.preventDefault(), e.targetTouches = t.targetTouches, t.data.touch = a, t.data.timeStamp = t.timeStamp, n.kick()) 3523 } 3524 3525 function q(t) { 3526 var e = t.data.event, 3527 n = t.data.timer, 3528 a = c(t.changedTouches, e.identifier); 3529 a && (A(e), F(e, n)) 3530 } 3531 3532 function A(t) { 3533 L(document, "." + t.identifier, _), L(document, "." + t.identifier, q) 3534 } 3535 3536 function D(t, e, n, a) { 3537 var i = n - t.timeStamp; 3538 t.type = "move", t.distX = e.pageX - t.startX, t.distY = e.pageY - t.startY, t.deltaX = e.pageX - t.pageX, t.deltaY = e.pageY - t.pageY, t.velocityX = .3 * t.velocityX + .7 * t.deltaX / i, t.velocityY = .3 * t.velocityY + .7 * t.deltaY / i, t.pageX = e.pageX, t.pageY = e.pageY 3539 } 3540 3541 function F(t, e, n) { 3542 e.end(function() { 3543 return t.type = "moveend", N(t.target, t), n && n() 3544 }) 3545 } 3546 3547 function R(t, e, n) { 3548 return K(this, "movestart.move", w), !0 3549 } 3550 3551 function x(t) { 3552 return L(this, "dragstart drag", o), L(this, "mousedown touchstart", r), L(this, "movestart", w), !0 3553 } 3554 3555 function b(t) { 3556 "move" !== t.namespace && "moveend" !== t.namespace && (K(this, "dragstart." + t.guid + " drag." + t.guid, o, e, t.selector), K(this, "mousedown." + t.guid, r, e, t.selector)) 3557 } 3558 3559 function j(t) { 3560 "move" !== t.namespace && "moveend" !== t.namespace && (L(this, "dragstart." + t.guid + " drag." + t.guid
3560), L(this, "mousedown." + t.guid)) 3561 } 3562 var C = 6, 3563 K = t.event.add, 3564 L = t.event.remove, 3565 N = function(e, n, a) { 3566 t.event.trigger(n, a, e) 3567 }, 3568 O = function() { 3569 return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t, e) { 3570 return window.setTimeout(function() { 3571 t() 3572 }, 25) 3573 } 3574 }(), 3575 z = { 3576 textarea: !0, 3577 input: !0, 3578 select: !0, 3579 button: !0 3580 }, 3581 Q = { 3582 move: "mousemove", 3583 cancel: "mouseup dragstart", 3584 end: "mouseup" 3585 }, 3586 B = { 3587 move: "touchmove", 3588 cancel: "touchend", 3589 end: "touchend" 3590 }; 3591 t.event.special.movestart = { 3592 setup: R, 3593 teardown: x, 3594 add: b, 3595 remove: j, 3596 _default: function(t) { 3597 function a(e) { 3598 D(o, r.touch, r.timeStamp), N(t.target, o) 3599 } 3600 var o, r; 3601 t._handled() && (o = { 3602 target: t.target, 3603 startX: t.startX, 3604 startY: t.startY, 3605 pageX: t.pageX, 3606 pageY: t.pageY, 3607 distX: t.distX, 3608 distY: t.distY, 3609 deltaX: t.deltaX, 3610 deltaY: t.deltaY, 3611 velocityX: t.velocityX, 3612 velocityY: t.velocityY, 3613 timeStamp: t.timeStamp, 3614 identifier: t.identifier, 3615 targetTouches: t.targetTouches, 3616 finger: t.finger 3617 }, r = { 3618 event: o, 3619 timer: new n(a), 3620 touch: e, 3621 timeStamp: e 3622 }, t.identifier === e ? (K(t.target, "click", i), K(document, Q.move, T, r), K(document, Q.end, S, r)) : (t._preventTouchmoveDefault(), K(document, B.move + "." + t.identifier, _, r), K(document, B.end + "." + t.identifier, q, r))) 3623 } 3624 }, t.event.special.move = { 3625 setup: function() { 3626 K(this, "movestart.move", t.noop) 3627 }, 3628 teardown: function() { 3629 L(this, "movestart.move", t.noop) 3630 } 3631 }, t.event.special.moveend = { 3632 setup: function() { 3633 K(this, "movestart.moveend", t.noop) 3634 }, 3635 teardown: function() { 3636 L(this, "movestart.moveend", t.noop) 3637 } 3638 }, K(document, "mousedown.move", m), K(document, "touchstart.move", p), "function" == typeof Array.prototype.indexOf && ! function(t, e) { 3639 for (var n = ["changedTouches", "targetTouches"], a = n.length; a--;) - 1 === t.event.props.indexOf(n[a]) && t.event.props.push(n[a]) 3640 }(t) 3641}); 3642! function(t) { 3643 t.fn.twentytwenty = function(e) { 3644 var e = t.extend({ 3645 default_offset_pct: .5, 3646 orientation: "horizontal" 3647 }, e); 3648 return this.each(function() { 3649 var i = e.default_offset_pct, 3650 n = t(this), 3651 s = e.orientation; 3652 n.wrap("<div class='twentytwenty-wrapper twentytwenty-" + s + "'></div>"); 3653 var a = n.find("img:first"), 3654 d = n.find("img:last"), 3655 o = n.find(".km-twentytwenty-handle"); 3656 n.addClass("twentytwenty-container"), a.addClass("twentytwenty-before"), d.addClass("twentytwenty-after"); 3657 var c = function(t) { 3658 var e = a.width(), 3659 i = a.height(); 3660 return { 3661 w: e + "px", 3662 h: i + "px", 3663 cw: t * e + "px", 3664 ch: t * i + "px" 3665 } 3666 }, 3667 r = function(t) { 3668 "vertical" === s ? a.css("clip", "rect(0," + t.w + "," + t.ch + ",0)") : a.css("clip", "rect(0," + t.cw + "," + t.h + ",0)"), n.css("height", t.h) 3669 }, 3670 f = function(t) { 3671 var e = c(t); 3672 o.css("vertical" === s ? "top" : "left", "vertical" === s ? e.ch : e.cw), r(e) 3673 }; 3674 t(window).on("resize.twentytwenty", function(t) { 3675 f(i) 3676 }); 3677 var w = 0, 3678 l = 0; 3679 o.on("movestart", function(t) { 3680 (t.distX > t.distY && t.distX < -t.distY || t.distX < t.distY && t.distX > -t.distY) && "vertical" !== s ? t.preventDefault() : (t.distX < t.distY && t.distX < -t.distY || t.distX > t.distY && t.distX > -t.distY) && "vertical" === s && t.preventDefault(), n.addClass("active"), w = n.offset().left, offsetY = n.offset().top, l = a.width(), imgHeight = a.height() 3681 }), o.on("moveend", function(t) { 3682 n.removeClass("active") 3683 }), o.on("move", function(t) { 3684 n.hasClass("active") && (i = "vertical" === s ? (t.pageY - offsetY) / imgHeight : (t.pageX - w) / l, 0 > i && (i = 0), i > 1 && (i = 1), f(i)) 3685 }), n.find("img").on("mousedown", function(t) { 3686 t.preventDefault() 3687 }), t(window).trigger("resize.twentytwenty") 3688 }) 3689 } 3690}(jQuery); 3691! function(t, o, e) { 3692 "use strict"; 3693 t.HoverDir = function(o, e) { 3694 this.$el = t(e), this._init(o) 3695 }, t.HoverDir.defaults = { 3696 speed: 300, 3697 easing: "ease", 3698 hoverDelay: 0, 3699 inverse: !1 3700 }, t.HoverDir.prototype = { 3701 _init: function(o) { 3702 this.options = t.extend(!0, {}, t.HoverDir.defaults, o), this.transitionProp = "all " + this.options.speed + "ms " + this.options.easing, this.support = Modernizr.csstransitions, this._loadEvents() 3703 }, 3704 _loadEvents: function() { 3705 var o = this; 3706 this.$el.on("mouseenter.hoverdir, mouseleave.hoverdir", function(e) { 3707 var i = t(this), 3708 n = i.find(".km-overlay-follow"), 3709 s = o._getDir(i, { 3710 x: e.pageX, 3711 y: e.pageY 3712 }), 3713 r = o._getStyle(s); 3714 "mouseenter" === e.type ? (n.hide().css(r.from), clearTimeout(o.tmhover), o.tmhover = setTimeout(function() { 3715 n.show(0, function() { 3716 var e = t(this); 3717 o.support && e.css("transition", o.transitionProp), o._applyAnimation(e, r.to, o.options.speed) 3718 }) 3719 }, o.options.hoverDelay)) : (o.support && n.css("transition", o.transitionProp), clearTimeout(o.tmhover), o._applyAnimation(n, r.from, o.options.speed)) 3720 }) 3721 }, 3722 _getDir: function(t, o) { 3723 var e = t.width(), 3724 i = t.height(), 3725 n = (o.x - t.offset().left - e / 2) * (e > i ? i / e : 1), 3726 s = (o.y - t.offset().top - i / 2) * (i > e ? e / i : 1), 3727 r = Math.round((Math.atan2(s, n) * (180 / Math.PI) + 180) / 90 + 3) % 4; 3728 return r 3729 }, 3730 _getStyle: function(t) { 3731 var o, e, i = { 3732 left: "0px", 3733 top: "-100%" 3734 }, 3735 n = { 3736 left: "0px", 3737 top: "100%" 3738 }, 3739 s = { 3740 left: "-100%", 3741 top: "0px" 3742 }, 3743 r = { 3744 left: "100%", 3745 top: "0px" 3746 }, 3747 a = { 3748 top: "0px" 3749 }, 3750 p = { 3751 left: "0px" 3752 }; 3753 switch (t) { 3754 case 0: 3755 o = this.options.inverse ? n : i, e = a; 3756 break; 3757 case 1: 3758 o = this.options.inverse ? s : r, e = p; 3759 break; 3760 case 2: 3761 o = this.options.inverse ? i : n, e = a; 3762 break; 3763 case 3: 3764 o = this.options.inverse ? r : s, e = p 3765 } 3766 return { 3767 from: o, 3768 to: e 3769 } 3770 }, 3771 _applyAnimation: function(o, e, i) { 3772 t.fn.applyStyle = this.support ? t.fn.css : t.fn.animate, o.stop().applyStyle(e, t.extend(!0, [], { 3773 duration: i + "ms" 3774 })) 3775 } 3776 }; 3777 var i = function(t) { 3778 o.console && o.console.error(t) 3779 }; 3780 t.fn.hoverdir = function(o) { 3781 var e = t.data(this, "hoverdir"); 3782 if ("string" == typeof o) { 3783 var n = Array.prototype.slice.call(arguments, 1); 3784 this.each(function() { 3785 return e ? t.isFunction(e[o]) && "_" !== o.charAt(0) ? void e[o].apply(e, n) : void i("no such method '" + o + "' for hoverdir instance") : void i("cannot call methods on hoverdir prior to initialization; attempted to call method '" + o + "'") 3786 }) 3787 } else this.each(function() { 3788 e ? e._init() : e = t.data(this, "hoverdir", new t.HoverDir(o, this)) 3789 }); 3790 return e 3791 } 3792}(jQuery, window); 3793 3794//Count Up 3795var KaswaraCount = function(a, b, c, d, e, f) { 3796 for (var g = 0, h = ["webkit", "moz", "ms", "o"], i = 0; i < h.length && !window.requestAnimationFrame; ++i) window.requestAnimationFrame = window[h[i] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[h[i] + "CancelAnimationFrame"] || window[h[i] + "CancelRequestAnimationFrame"]; 3797 window.requestAnimationFrame || (window.requestAnimationFrame = function(a, b) {
3798 var c = (new Date).getTime(), 3799 d = Math.max(0, 16 - (c - g)), 3800 e = window.setTimeout(function() { 3801 a(c + d) 3802 }, d); 3803 return g = c + d, e 3804 }), window.cancelAnimationFrame || (window.cancelAnimationFrame = function(a) { 3805 clearTimeout(a) 3806 }); 3807 var j = this; 3808 j.options = { 3809 useEasing: !0, 3810 useGrouping: !0, 3811 separator: ",", 3812 decimal: ".", 3813 easingFn: null, 3814 formattingFn: null 3815 }; 3816 for (var k in f) f.hasOwnProperty(k) && (j.options[k] = f[k]); 3817 "" === j.options.separator && (j.options.useGrouping = !1), j.options.prefix || (j.options.prefix = ""), j.options.suffix || (j.options.suffix = ""), j.d = "string" == typeof a ? document.getElementById(a) : a, j.startVal = Number(b), j.endVal = Number(c), j.countDown = j.startVal > j.endVal, j.frameVal = j.startVal, j.decimals = Math.max(0, d || 0), j.dec = Math.pow(10, j.decimals), j.duration = 1e3 * Number(e) || 2e3, j.formatNumber = function(a) { 3818 a = a.toFixed(j.decimals), a += ""; 3819 var b, c, d, e; 3820 if (b = a.split("."), c = b[0], d = b.length > 1 ? j.options.decimal + b[1] : "", e = /(\d+)(\d{3})/, j.options.useGrouping) 3821 for (; e.test(c);) c = c.replace(e, "$1" + j.options.separator + "$2"); 3822 return j.options.prefix + c + d + j.options.suffix 3823 }, j.easeOutExpo = function(a, b, c, d) { 3824 return c * (-Math.pow(2, -10 * a / d) + 1) * 1024 / 1023 + b 3825 }, j.easingFn = j.options.easingFn ? j.options.easingFn : j.easeOutExpo, j.formattingFn = j.options.formattingFn ? j.options.formattingFn : j.formatNumber, j.version = function() { 3826 return "1.7.1" 3827 }, j.printValue = function(a) { 3828 var b = j.formattingFn(a); 3829 "INPUT" === j.d.tagName ? this.d.value = b : "text" === j.d.tagName || "tspan" === j.d.tagName ? this.d.textContent = b : this.d.innerHTML = b 3830 }, j.count = function(a) { 3831 j.startTime || (j.startTime = a), j.timestamp = a; 3832 var b = a - j.startTime; 3833 j.remaining = j.duration - b, j.options.useEasing ? j.countDown ? j.frameVal = j.startVal - j.easingFn(b, 0, j.startVal - j.endVal, j.duration) : j.frameVal = j.easingFn(b, j.startVal, j.endVal - j.startVal, j.duration) : j.countDown ? j.frameVal = j.startVal - (j.startVal - j.endVal) * (b / j.duration) : j.frameVal = j.startVal + (j.endVal - j.startVal) * (b / j.duration), j.countDown ? j.frameVal = j.frameVal < j.endVal ? j.endVal : j.frameVal : j.frameVal = j.frameVal > j.endVal ? j.endVal : j.frameVal, j.frameVal = Math.round(j.frameVal * j.dec) / j.dec, j.printValue(j.frameVal), b < j.duration ? j.rAF = requestAnimationFrame(j.count) : j.callback && j.callback() 3834 }, j.start = function(a) { 3835 return j.callback = a, j.rAF = requestAnimationFrame(j.count), !1 3836 }, j.pauseResume = function() { 3837 j.paused ? (j.paused = !1, delete j.startTime, j.duration = j.remaining, j.startVal = j.frameVal, requestAnimationFrame(j.count)) : (j.paused = !0, cancelAnimationFrame(j.rAF)) 3838 }, j.reset = function() { 3839 j.paused = !1, delete j.startTime, j.startVal = b, cancelAnimationFrame(j.rAF), j.printValue(j.startVal) 3840 }, j.update = function(a) { 3841 cancelAnimationFrame(j.rAF), j.paused = !1, delete j.startTime, j.startVal = j.frameVal, j.endVal = Number(a), j.countDown = j.startVal > j.endVal, j.rAF = requestAnimationFrame(j.count) 3842 }, j.printValue(j.startVal) 3843}; 3844! function(a) { 3845 a.fn.kaswaracount = function(b) { 3846 var c = { 3847 startVal: 0, 3848 decimals: 0, 3849 duration: 2 3850 }; 3851 if ("number" == typeof b) c.endVal = b; 3852 else { 3853 if ("object" != typeof b) return; 3854 a.extend(c, b) 3855 } 3856 return this.each(function(a, b) { 3857 var d = new KaswaraCount(b, c.startVal, c.endVal, c.decimals, c.duration, c.options); 3858 d.start() 3859 }), this 3860 } 3861}(jQuery); 3862 3863/*! 3864 * multiscroll.js 0.1.7 Beta 3865 */ 3866jQuery.effects || function(e, t) { 3867 var i = e.uiBackCompat !== !1, 3868 a = "ui-effects-"; 3869 e.effects = { 3870 effect: {} 3871 }, 3872 function(t, i) { 3873 function a(e, t, i) { 3874 var a = c[t.type] || {}; 3875 return null == e ? i || !t.def ? null : t.def : (e = a.floor ? ~~e : parseFloat(e), isNaN(e) ? t.def : a.mod ? (e + a.mod) % a.mod : 0 > e ? 0 : e > a.max ? a.max : e) 3876 } 3877 3878 function s(e) { 3879 var a = u(), 3880 s = a._rgba = []; 3881 return e = e.toLowerCase(), m(l, function(t, n) { 3882 var r, o = n.re.exec(e), 3883 h = o && n.parse(o), 3884 l = n.space || "rgba"; 3885 return h ? (r = a[l](h), a[d[l].cache] = r[d[l].cache], s = a._rgba = r._rgba, !1) : i 3886 }), s.length ? ("0,0,0,0" === s.join() && t.extend(s, r.transparent), a) : r[e] 3887 } 3888 3889 function n(e, t, i) { 3890 return i = (i + 1) % 1, 1 > 6 * i ? e + 6 * (t - e) * i : 1 > 2 * i ? t : 2 > 3 * i ? e + 6 * (t - e) * (2 / 3 - i) : e 3891 } 3892 var r, o = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "), 3893 h = /^([\-+])=\s*(\d+\.?\d*)/, 3894 l = [{ 3895 re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, 3896 parse: function(e) { 3897 return [e[1], e[2], e[3], e[4]] 3898 } 3899 }, { 3900 re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, 3901 parse: function(e) { 3902 return [2.55 * e[1], 2.55 * e[2], 2.55 * e[3], e[4]] 3903 } 3904 }, { 3905 re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, 3906 parse: function(e) { 3907 return [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)] 3908 } 3909 }, { 3910 re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, 3911 parse: function(e) { 3912 return [parseInt(e[1] + e[1], 16), parseInt(e[2] + e[2], 16), parseInt(e[3] + e[3], 16)] 3913 } 3914 }, { 3915 re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/, 3916 space: "hsla", 3917 parse: function(e) { 3918 return [e[1], e[2] / 100, e[3] / 100, e[4]] 3919 } 3920 }], 3921 u = t.Color = function(e, i, a, s) { 3922 return new t.Color.fn.parse(e, i, a, s) 3923 }, 3924 d = { 3925 rgba: { 3926 props: { 3927 red: { 3928 idx: 0, 3929 type: "byte" 3930 }, 3931 green: { 3932 idx: 1, 3933 type: "byte" 3934 }, 3935 blue: { 3936 idx: 2, 3937 type: "byte" 3938 } 3939 } 3940 }, 3941 hsla: { 3942 props: { 3943 hue: { 3944 idx: 0, 3945 type: "degrees" 3946 }, 3947 saturation: { 3948 idx: 1, 3949 type: "percent" 3950 }, 3951 lightness: { 3952 idx: 2, 3953 type: "percent" 3954 } 3955 } 3956 } 3957 }, 3958 c = { 3959 "byte": { 3960 floor: !0, 3961 max: 255 3962 }, 3963 percent: { 3964 max: 1 3965 }, 3966 degrees: { 3967 mod: 360, 3968 floor: !0 3969 } 3970 }, 3971 p = u.support = {}, 3972 f = t("<p>")[0], 3973 m = t.each; 3974 f.style.cssText = "background-color:rgba(1,1,1,.5)", p.rgba
vendor: 10,119 bytes, lines 3974-4174
3974= f.style.backgroundColor.indexOf("rgba") > -1, m(d, function(e, t) { 3975 t.cache = "_" + e, t.props.alpha = { 3976 idx: 3, 3977 type: "percent", 3978 def: 1 3979 } 3980 }), u.fn = t.extend(u.prototype, { 3981 parse: function(n, o, h, l) { 3982 if (n === i) return this._rgba = [null, null, null, null], this; 3983 (n.jquery || n.nodeType) && (n = t(n).css(o), o = i); 3984 var c = this, 3985 p = t.type(n), 3986 f = this._rgba = []; 3987 return o !== i && (n = [n, o, h, l], p = "array"), "string" === p ? this.parse(s(n) || r._default) : "array" === p ? (m(d.rgba.props, function(e, t) { 3988 f[t.idx] = a(n[t.idx], t) 3989 }), this) : "object" === p ? (n instanceof u ? m(d, function(e, t) { 3990 n[t.cache] && (c[t.cache] = n[t.cache].slice()) 3991 }) : m(d, function(t, i) { 3992 var s = i.cache; 3993 m(i.props, function(e, t) { 3994 if (!c[s] && i.to) { 3995 if ("alpha" === e || null == n[e]) return; 3996 c[s] = i.to(c._rgba) 3997 } 3998 c[s][t.idx] = a(n[e], t, !0) 3999 }), c[s] && 0 > e.inArray(null, c[s].slice(0, 3)) && (c[s][3] = 1, i.from && (c._rgba = i.from(c[s]))) 4000 }), this) : i 4001 }, 4002 is: function(e) { 4003 var t = u(e), 4004 a = !0, 4005 s = this; 4006 return m(d, function(e, n) { 4007 var r, o = t[n.cache]; 4008 return o && (r = s[n.cache] || n.to && n.to(s._rgba) || [], m(n.props, function(e, t) { 4009 return null != o[t.idx] ? a = o[t.idx] === r[t.idx] : i 4010 })), a 4011 }), a 4012 }, 4013 _space: function() { 4014 var e = [], 4015 t = this; 4016 return m(d, function(i, a) { 4017 t[a.cache] && e.push(i) 4018 }), e.pop() 4019 }, 4020 transition: function(e, t) { 4021 var i = u(e), 4022 s = i._space(), 4023 n = d[s], 4024 r = 0 === this.alpha() ? u("transparent") : this, 4025 o = r[n.cache] || n.to(r._rgba), 4026 h = o.slice(); 4027 return i = i[n.cache], m(n.props, function(e, s) { 4028 var n = s.idx, 4029 r = o[n], 4030 l = i[n], 4031 u = c[s.type] || {}; 4032 null !== l && (null === r ? h[n] = l : (u.mod && (l - r > u.mod / 2 ? r += u.mod : r - l > u.mod / 2 && (r -= u.mod)), h[n] = a((l - r) * t + r, s))) 4033 }), this[s](h) 4034 }, 4035 blend: function(e) { 4036 if (1 === this._rgba[3]) return this; 4037 var i = this._rgba.slice(), 4038 a = i.pop(), 4039 s = u(e)._rgba; 4040 return u(t.map(i, function(e, t) { 4041 return (1 - a) * s[t] + a * e 4042 })) 4043 }, 4044 toRgbaString: function() { 4045 var e = "rgba(", 4046 i = t.map(this._rgba, function(e, t) { 4047 return null == e ? t > 2 ? 1 : 0 : e 4048 }); 4049 return 1 === i[3] && (i.pop(), e = "rgb("), e + i.join() + ")" 4050 }, 4051 toHslaString: function() { 4052 var e = "hsla(", 4053 i = t.map(this.hsla(), function(e, t) { 4054 return null == e && (e = t > 2 ? 1 : 0), t && 3 > t && (e = Math.round(100 * e) + "%"), e 4055 }); 4056 return 1 === i[3] && (i.pop(), e = "hsl("), e + i.join() + ")" 4057 }, 4058 toHexString: function(e) { 4059 var i = this._rgba.slice(), 4060 a = i.pop(); 4061 return e && i.push(~~(255 * a)), "#" + t.map(i, function(e) { 4062 return e = (e || 0).toString(16), 1 === e.length ? "0" + e : e 4063 }).join("") 4064 }, 4065 toString: function() { 4066 return 0 === this._rgba[3] ? "transparent" : this.toRgbaString() 4067 } 4068 }), u.fn.parse.prototype = u.fn, d.hsla.to = function(e) { 4069 if (null == e[0] || null == e[1] || null == e[2]) return [null, null, null, e[3]]; 4070 var t, i, a = e[0] / 255, 4071 s = e[1] / 255, 4072 n = e[2] / 255, 4073 r = e[3], 4074 o = Math.max(a, s, n), 4075 h = Math.min(a, s, n), 4076 l = o - h, 4077 u = o + h, 4078 d = .5 * u; 4079 return t = h === o ? 0 : a === o ? 60 * (s - n) / l + 360 : s === o ? 60 * (n - a) / l + 120 : 60 * (a - s) / l + 240, i = 0 === d || 1 === d ? d : .5 >= d ? l / u : l / (2 - u), [Math.round(t) % 360, i, d, null == r ? 1 : r] 4080 }, d.hsla.from = function(e) { 4081 if (null == e[0] || null == e[1] || null == e[2]) return [null, null, null, e[3]]; 4082 var t = e[0] / 360, 4083 i = e[1], 4084 a = e[2], 4085 s = e[3], 4086 r = .5 >= a ? a * (1 + i) : a + i - a * i, 4087 o = 2 * a - r; 4088 return [Math.round(255 * n(o, r, t + 1 / 3)), Math.round(255 * n(o, r, t)), Math.round(255 * n(o, r, t - 1 / 3)), s] 4089 }, m(d, function(e, s) { 4090 var n = s.props, 4091 r = s.cache, 4092 o = s.to, 4093 l = s.from; 4094 u.fn[e] = function(e) { 4095 if (o && !this[r] && (this[r] = o(this._rgba)), e === i) return this[r].slice(); 4096 var s, h = t.type(e), 4097 d = "array" === h || "object" === h ? e : arguments, 4098 c = this[r].slice(); 4099 return m(n, function(e, t) { 4100 var i = d["object" === h ? e : t.idx]; 4101 null == i && (i = c[t.idx]), c[t.idx] = a(i, t) 4102 }), l ? (s = u(l(c)), s[r] = c, s) : u(c) 4103 }, m(n, function(i, a) { 4104 u.fn[i] || (u.fn[i] = function(s) { 4105 var n, r = t.type(s), 4106 o = "alpha" === i ? this._hsla ? "hsla" : "rgba" : e, 4107 l = this[o](), 4108 u = l[a.idx]; 4109 return "undefined" === r ? u : ("function" === r && (s = s.call(this, u), r = t.type(s)), null == s && a.empty ? this : ("string" === r && (n = h.exec(s), n && (s = u + parseFloat(n[2]) * ("+" === n[1] ? 1 : -1))), l[a.idx] = s, this[o](l))) 4110 }) 4111 }) 4112 }), m(o, function(e, i) { 4113 t.cssHooks[i] = { 4114 set: function(e, a) { 4115 var n, r, o = ""; 4116 if ("string" !== t.type(a) || (n = s(a))) { 4117 if (a = u(n || a), !p.rgba && 1 !== a._rgba[3]) { 4118 for (r = "backgroundColor" === i ? e.parentNode : e; 4119 ("" === o || "transparent" === o) && r && r.style;) try { 4120 o = t.css(r, "backgroundColor"), r = r.parentNode 4121 } catch (h) {} 4122 a = a.blend(o && "transparent" !== o ? o : "_default") 4123 } 4124 a = a.toRgbaString() 4125 } 4126 try { 4127 e.style[i] = a 4128 } catch (l) {} 4129 } 4130 }, t.fx.step[i] = function(e) { 4131 e.colorInit || (e.start = u(e.elem, i), e.end = u(e.end), e.colorInit = !0), t.cssHooks[i].set(e.elem, e.start.transition(e.end, e.pos)) 4132 } 4133 }), t.cssHooks.borderColor = { 4134 expand: function(e) { 4135 var t = {}; 4136 return m(["Top", "Right", "Bottom", "Left"], function(i, a) { 4137 t["border" + a + "Color"] = e 4138 }), t 4139 } 4140 }, r = t.Color.names = { 4141 aqua: "#00ffff", 4142 black: "#000000", 4143 blue: "#0000ff", 4144 fuchsia: "#ff00ff", 4145 gray: "#808080", 4146 green: "#008000", 4147 lime: "#00ff00", 4148 maroon: "#800000", 4149 navy: "#000080", 4150 olive: "#808000", 4151 purple: "#800080", 4152 red: "#ff0000", 4153 silver: "#c0c0c0", 4154 teal: "#008080", 4155 white: "#ffffff", 4156 yellow: "#ffff00", 4157 transparent: [null, null, null, 0], 4158 _default: "#ffffff" 4159 } 4160 }(jQuery), 4161 function() { 4162 function i() { 4163 var t, i, a = this.ownerDocument.defaultView ? this.ownerDocument.defaultView.getComputedStyle(this, null) : this.currentStyle, 4164 s = {}; 4165 if (a && a.length && a[0] && a[a[0]]) 4166 for (i = a.length; i--;) t = a[i], "string" == typeof a[t] && (s[e.camelCase(t)] = a[t]); 4167 else 4168 for (t in a) "string" == typeof a[t] && (s[t] = a[t]); 4169 return s 4170 } 4171 4172 function a(t, i) { 4173 var a, s, r = {}; 4174 for (a in i) s = i[a], t[a] !== s && (n[a] || (e.fx.step[a] || !isNaN(parseFloat(s))) && (r[a
vendor: 5,758 bytes, lines 4174-4298
4174] = s)); 4175 return r 4176 } 4177 var s = ["add", "remove", "toggle"], 4178 n = { 4179 border: 1, 4180 borderBottom: 1, 4181 borderColor: 1, 4182 borderLeft: 1, 4183 borderRight: 1, 4184 borderTop: 1, 4185 borderWidth: 1, 4186 margin: 1, 4187 padding: 1 4188 }; 4189 e.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function(t, i) { 4190 e.fx.step[i] = function(e) { 4191 ("none" !== e.end && !e.setAttr || 1 === e.pos && !e.setAttr) && (jQuery.style(e.elem, i, e.end), e.setAttr = !0) 4192 } 4193 }), e.effects.animateClass = function(t, n, r, o) { 4194 var h = e.speed(n, r, o); 4195 return this.queue(function() { 4196 var n, r = e(this), 4197 o = r.attr("class") || "", 4198 l = h.children ? r.find("*").andSelf() : r; 4199 l = l.map(function() { 4200 var t = e(this); 4201 return { 4202 el: t, 4203 start: i.call(this) 4204 } 4205 }), n = function() { 4206 e.each(s, function(e, i) { 4207 t[i] && r[i + "Class"](t[i]) 4208 }) 4209 }, n(), l = l.map(function() { 4210 return this.end = i.call(this.el[0]), this.diff = a(this.start, this.end), this 4211 }), r.attr("class", o), l = l.map(function() { 4212 var t = this, 4213 i = e.Deferred(), 4214 a = jQuery.extend({}, h, { 4215 queue: !1, 4216 complete: function() { 4217 i.resolve(t) 4218 } 4219 }); 4220 return this.el.animate(this.diff, a), i.promise() 4221 }), e.when.apply(e, l.get()).done(function() { 4222 n(), e.each(arguments, function() { 4223 var t = this.el; 4224 e.each(this.diff, function(e) { 4225 t.css(e, "") 4226 }) 4227 }), h.complete.call(r[0]) 4228 }) 4229 }) 4230 }, e.fn.extend({ 4231 _addClass: e.fn.addClass, 4232 addClass: function(t, i, a, s) { 4233 return i ? e.effects.animateClass.call(this, { 4234 add: t 4235 }, i, a, s) : this._addClass(t) 4236 }, 4237 _removeClass: e.fn.removeClass, 4238 removeClass: function(t, i, a, s) { 4239 return i ? e.effects.animateClass.call(this, { 4240 remove: t 4241 }, i, a, s) : this._removeClass(t) 4242 }, 4243 _toggleClass: e.fn.toggleClass, 4244 toggleClass: function(i, a, s, n, r) { 4245 return "boolean" == typeof a || a === t ? s ? e.effects.animateClass.call(this, a ? { 4246 add: i 4247 } : { 4248 remove: i 4249 }, s, n, r) : this._toggleClass(i, a) : e.effects.animateClass.call(this, { 4250 toggle: i 4251 }, a, s, n) 4252 }, 4253 switchClass: function(t, i, a, s, n) { 4254 return e.effects.animateClass.call(this, { 4255 add: i, 4256 remove: t 4257 }, a, s, n) 4258 } 4259 }) 4260 }(), 4261 function() { 4262 function s(t, i, a, s) { 4263 return e.isPlainObject(t) && (i = t, t = t.effect), t = { 4264 effect: t 4265 }, null == i && (i = {}), e.isFunction(i) && (s = i, a = null, i = {}), ("number" == typeof i || e.fx.speeds[i]) && (s = a, a = i, i = {}), e.isFunction(a) && (s = a, a = null), i && e.extend(t, i), a = a || i.duration, t.duration = e.fx.off ? 0 : "number" == typeof a ? a : a in e.fx.speeds ? e.fx.speeds[a] : e.fx.speeds._default, t.complete = s || i.complete, t 4266 } 4267 4268 function n(t) { 4269 return !t || "number" == typeof t || e.fx.speeds[t] ? !0 : "string" != typeof t || e.effects.effect[t] ? !1 : i && e.effects[t] ? !1 : !0 4270 } 4271 e.extend(e.effects, { 4272 version: "1.9.2", 4273 save: function(e, t) { 4274 for (var i = 0; t.length > i; i++) null !== t[i] && e.data(a + t[i], e[0].style[t[i]]) 4275 }, 4276 restore: function(e, i) { 4277 var s, n; 4278 for (n = 0; i.length > n; n++) null !== i[n] && (s = e.data(a + i[n]), s === t && (s = ""), e.css(i[n], s)) 4279 }, 4280 setMode: function(e, t) { 4281 return "toggle" === t && (t = e.is(":hidden") ? "show" : "hide"), t 4282 }, 4283 getBaseline: function(e, t) { 4284 var i, a; 4285 switch (e[0]) { 4286 case "top": 4287 i = 0; 4288 break; 4289 case "middle": 4290 i = .5; 4291 break; 4292 case "bottom": 4293 i = 1; 4294 break; 4295 default: 4296 i = e[0] / t.height 4297 } 4298 switch (e[1]) {
vendor: 6,516 bytes, lines 4299-4443
4299 case "left": 4300 a = 0; 4301 break; 4302 case "center": 4303 a = .5; 4304 break; 4305 case "right": 4306 a = 1; 4307 break; 4308 default: 4309 a = e[1] / t.width 4310 } 4311 return { 4312 x: a, 4313 y: i 4314 } 4315 }, 4316 createWrapper: function(t) { 4317 if (t.parent().is(".ui-effects-wrapper")) return t.parent(); 4318 var i = { 4319 width: t.outerWidth(!0), 4320 height: t.outerHeight(!0), 4321 "float": t.css("float") 4322 }, 4323 a = e("<div></div>").addClass("ui-effects-wrapper").css({ 4324 fontSize: "100%", 4325 background: "transparent", 4326 border: "none", 4327 margin: 0, 4328 padding: 0 4329 }), 4330 s = { 4331 width: t.width(), 4332 height: t.height() 4333 }, 4334 n = document.activeElement; 4335 try { 4336 n.id 4337 } catch (r) { 4338 n = document.body 4339 } 4340 return t.wrap(a), (t[0] === n || e.contains(t[0], n)) && e(n).focus(), a = t.parent(), "static" === t.css("position") ? (a.css({ 4341 position: "relative" 4342 }), t.css({ 4343 position: "relative" 4344 })) : (e.extend(i, { 4345 position: t.css("position"), 4346 zIndex: t.css("z-index") 4347 }), e.each(["top", "left", "bottom", "right"], function(e, a) { 4348 i[a] = t.css(a), isNaN(parseInt(i[a], 10)) && (i[a] = "auto") 4349 }), t.css({ 4350 position: "relative", 4351 top: 0, 4352 left: 0, 4353 right: "auto", 4354 bottom: "auto" 4355 })), t.css(s), a.css(i).show() 4356 }, 4357 removeWrapper: function(t) { 4358 var i = document.activeElement; 4359 return t.parent().is(".ui-effects-wrapper") && (t.parent().replaceWith(t), (t[0] === i || e.contains(t[0], i)) && e(i).focus()), t 4360 }, 4361 setTransition: function(t, i, a, s) { 4362 return s = s || {}, e.each(i, function(e, i) { 4363 var n = t.cssUnit(i); 4364 n[0] > 0 && (s[i] = n[0] * a + n[1]) 4365 }), s 4366 } 4367 }), e.fn.extend({ 4368 effect: function() { 4369 function t(t) { 4370 function i() { 4371 e.isFunction(n) && n.call(s[0]), e.isFunction(t) && t() 4372 } 4373 var s = e(this), 4374 n = a.complete, 4375 r = a.mode; 4376 (s.is(":hidden") ? "hide" === r : "show" === r) ? i(): o.call(s[0], a, i) 4377 } 4378 var a = s.apply(this, arguments), 4379 n = a.mode, 4380 r = a.queue, 4381 o = e.effects.effect[a.effect], 4382 h = !o && i && e.effects[a.effect]; 4383 return e.fx.off || !o && !h ? n ? this[n](a.duration, a.complete) : this.each(function() { 4384 a.complete && a.complete.call(this) 4385 }) : o ? r === !1 ? this.each(t) : this.queue(r || "fx", t) : h.call(this, { 4386 options: a, 4387 duration: a.duration, 4388 callback: a.complete, 4389 mode: a.mode 4390 }) 4391 }, 4392 _show: e.fn.show, 4393 show: function(e) { 4394 if (n(e)) return this._show.apply(this, arguments); 4395 var t = s.apply(this, arguments); 4396 return t.mode = "show", this.effect.call(this, t) 4397 }, 4398 _hide: e.fn.hide, 4399 hide: function(e) { 4400 if (n(e)) return this._hide.apply(this, arguments); 4401 var t = s.apply(this, arguments); 4402 return t.mode = "hide", this.effect.call(this, t) 4403 }, 4404 __toggle: e.fn.toggle, 4405 toggle: function(t) { 4406 if (n(t) || "boolean" == typeof t || e.isFunction(t)) return this.__toggle.apply(this, arguments); 4407 var i = s.apply(this, arguments); 4408 return i.mode = "toggle", this.effect.call(this, i) 4409 }, 4410 cssUnit: function(t) { 4411 var i = this.css(t), 4412 a = []; 4413 return e.each(["em", "px", "%", "pt"], function(e, t) { 4414 i.indexOf(t) > 0 && (a = [parseFloat(i), t]) 4415 }), a 4416 } 4417 }) 4418 }(), 4419 function() { 4420 var t = {}; 4421 e.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function(e, i) { 4422 t[i] = function(t) { 4423 return Math.pow(t, e + 2) 4424 } 4425 }), e.extend(t, { 4426 Sine: function(e) { 4427 return 1 - Math.cos(e * Math.PI / 2) 4428 }, 4429 Circ: function(e) { 4430 return 1 - Math.sqrt(1 - e * e) 4431 }, 4432 Elastic: function(e) { 4433 return 0 === e || 1 === e ? e : -Math.pow(2, 8 * (e - 1)) * Math.sin((80 * (e - 1) - 7.5) * Math.PI / 15) 4434 }, 4435 Back: function(e) { 4436 return e * e * (3 * e - 2) 4437 }, 4438 Bounce: function(e) { 4439 for (var t, i = 4; 4440 ((t = Math.pow(2, --i)) - 1) / 11 > e;); 4441 return 1 / Math.pow(4, 3 - i) - 7.5625 * Math.pow((3 * t - 2) / 22 - e, 2) 4442 } 4443 }), e.each(t, function(t, i) {
4444 e.easing["easeIn" + t] = i, e.easing["easeOut" + t] = function(e) { 4445 return 1 - i(1 - e) 4446 }, e.easing["easeInOut" + t] = function(e) { 4447 return .5 > e ? i(2 * e) / 2 : 1 - i(-2 * e + 2) / 2 4448 } 4449 }) 4450 }() 4451}(jQuery); 4452 4453! function(e, t, n, o, i) { 4454 e.fn.multiscroll = function(s) { 4455 function a() { 4456 var n = t.location.hash.replace("#", ""), 4457 o = n; 4458 if (o.length) { 4459 var i = e(".ms-left").find('[data-anchor="' + o + '"]'), 4460 s = "undefined" == typeof lastScrolledDestiny; 4461 (s || o !== lastScrolledDestiny) && f(i) 4462 } 4463 } 4464 4465 function l(t) { 4466 clearTimeout(U); 4467 var o = e(n.activeElement); 4468 if (!o.is("textarea") && !o.is("input") && !o.is("select") && s.keyboardScrolling) { 4469 var i = t.which, 4470 a = [40, 38, 32, 33, 34]; 4471 e.inArray(i, a) > -1 && t.preventDefault(), U = setTimeout(function() { 4472 r(t) 4473 }, 150) 4474 } 4475 } 4476 4477 function r(t) { 4478 var n = t.shiftKey; 4479 switch (t.which) { 4480 case 38: 4481 case 33: 4482 B.moveSectionUp(); 4483 break; 4484 case 32: 4485 if (n) { 4486 B.moveSectionUp(); 4487 break 4488 } 4489 case 40: 4490 case 34: 4491 B.moveSectionDown(); 4492 break; 4493 case 36: 4494 B.moveTo(1); 4495 break; 4496 case 35: 4497 B.moveTo(e(".ms-left .ms-section").length); 4498 break; 4499 default: 4500 return 4501 } 4502 } 4503 4504 function c() { 4505 I = e(t).height(), e(".ms-tableCell").each(function() { 4506 e(this).css({ 4507 height: T(e(this).parent()) 4508 }) 4509 }), m(), e.isFunction(s.afterResize) && s.afterResize.call(this) 4510 } 4511 4512 function m() { 4513 s.css3 ? (h(e(".ms-left"), "translate3d(0px, -" + e(".ms-left").find(".ms-section.active").position().top + "px, 0px)", !1), h(e(".ms-right"), "translate3d(0px, -" + e(".ms-right").find(".ms-section.active").position().top + "px, 0px)", !1)) : (e(".ms-left").css("top", -e(".ms-left").find(".ms-section.active").position().top), e(".ms-right").css("top", -e(".ms-right").find(".ms-section.active").position().top)) 4514 } 4515 4516 function f(t) { 4517 var n = t.index(), 4518 o = e(".ms-right").find(".ms-section").eq(X - 1 - n), 4519 i = t.data("anchor"), 4520 a = e(".ms-left .ms-section.active"), 4521 l = a.index() + 1, 4522 r = y(t); 4523 q = !0; 4524 var c = { 4525 left: t.position().top, 4526 right: o.position().top 4527 }; 4528 if (o.addClass("active").siblings().removeClass("active"), t.addClass("active").siblings().removeClass("active"), x(i), s.css3) { 4529 e.isFunction(s.onLeave) && s.onLeave.call(this, l, n + 1, r); 4530 var m = "translate3d(0px, -" + c.left + "px, 0px)", 4531 f = "translate3d(0px, -" + c.right + "px, 0px)"; 4532 h(e(".ms-left"), m, !0), h(e(".ms-right"), f, !0), setTimeout(function() { 4533 e.isFunction(s.afterLoad) && s.afterLoad.call(this, i, n + 1), setTimeout(function() { 4534 q = !1 4535 }, R) 4536 }, s.scrollingSpeed) 4537 } else e.isFunction(s.onLeave) && s.onLeave.call(this, l, n + 1, r), e(".ms-left").animate({ 4538 top: -c.left 4539 }, s.scrollingSpeed, s.easing, function() { 4540 e.isFunction(s.afterLoad) && s.afterLoad.call(this, i, n + 1), setTimeout(function() { 4541 q = !1 4542 }, R) 4543 }), e(".ms-right").animate({ 4544 top: -c.right 4545 }, s.scrollingSpeed, s.easing); 4546 lastScrolledDestiny = i, S(i), g(i, n) 4547 } 4548 4549 function d() { 4550 n.addEventListener ? (n.removeEventListener("mousewheel", v, !1), n.removeEventListener("wheel", v, !1)) : n.detachEvent("onmousewheel", v) 4551 } 4552 4553 function u() { 4554 n.addEventListener ? (n.addEventListener("mousewheel", v, !1), n.addEventListener("wheel", v, !1)) : n.attachEvent("onmousewheel", v) 4555 } 4556 4557 function v(e) { 4558 e = t.event || e; 4559 var n = o.max(-1, o.min(1, e.wheelDelta || -e.deltaY || -e.detail)); 4560 return q || (0 > n ? B.moveSectionDown() : B.moveSectionUp()), !1 4561 } 4562 4563 function h(e, t, n) { 4564 e.toggleClass("ms-easing", n), e.css(p(t)) 4565 } 4566 4567 function p(e) { 4568 return { 4569 "-webkit-transform": e, 4570 "-moz-transform": e, 4571 "-ms-transform": e, 4572 transform: e 4573 } 4574 } 4575 4576 function g(t, n) { 4577 s.navigation && (e("#multiscroll-nav").find(".active").removeClass("active"), t ? e("#multiscroll-nav").find('a[href="#' + t + '"]').addClass("active") : e("#multiscroll-nav").find("li").eq(n).find("a").addClass("active")) 4578 } 4579 4580 function S(t) { 4581 s.menu && (e(s.menu).find(".active").removeClass("active"), e(s.menu).find('[data-menuanchor="' + t + '"]').addClass("active")) 4582 } 4583 4584 function y(t) { 4585 var n = e(".ms-left .ms-section.active").index(), 4586 o = t.index(); 4587 return n > o ? "up" : "down" 4588 } 4589 4590 function x(e) { 4591 s.anchors.length && (location.hash = e), b() 4592 } 4593 4594 function b() { 4595 var t = e(".ms-left .ms-section.active"), 4596 n = t.data("anchor"), 4597 o = t.index(), 4598 i = String(o); 4599 s.anchors.length && (i = n), i = i.replace("/", "-").replace("#", ""); 4600 var a = new RegExp("\\b\\s?ms-viewing-[^\\s]+\\b", "g"); 4601 e("body")[0].className = e("body")[0].className.replace(a, ""), e("body").addClass("ms-viewing-" + i) 4602 } 4603 4604 function w() { 4605 var e, o = n.createElement("p"), 4606 s = { 4607 webkitTransform: "-webkit-transform", 4608 OTransform: "-o-transform", 4609 msTransform: "-ms-transform", 4610 MozTransform: "-moz-transform", 4611 transform: "transform" 4612 }; 4613 n.body.insertBefore(o, null); 4614 for (var a in s) o.style[a] !== i && (o.style[a] = "translate3d(1px,1px,1px)", e = t.getComputedStyle(o).getPropertyValue(s[a])); 4615 return n.body.removeChild(o), e !== i && e.length > 0 && "none" !== e 4616 } 4617 4618 function C(e) { 4619 e.addClass("ms-table").wrapInner('<div class="ms-tableCell" style="height: ' + T(e) + 'px" />') 4620 } 4621 4622 function T(e) { 4623 var t = I; 4624 if (s.paddingTop || s.paddingBottom) { 4625 var n = parseInt(e.css("padding-top")) + parseInt(e.css("padding-bottom")); 4626 t = I - n 4627 } 4628 return t 4629 } 4630 4631 function E() { 4632 var n = t.location.hash.replace("#", ""), 4633 o = e('.ms-left .ms-section[data-anchor="' + n + '"]'); 4634 n.length && f(o) 4635 } 4636 4637 function k(n) { 4638 var i = n.originalEvent; 4639 if (L(i)) { 4640 n.preventDefault(); 4641 e(".ms-left .ms-section.active"); 4642 if (!q) { 4643 var a = z(i); 4644 N = a.y, O = a.x, o.abs(W - N) > e(t).height() / 100 * s.touchSensitivity && (W > N ? B.moveSectionDown() : N > W && B.moveSectionUp()) 4645 } 4646 } 4647 } 4648 4649 function L(e) { 4650 return "undefined" == typeof e.pointerType || "mouse" != e.pointerType 4651 } 4652 4653 function M(e) { 4654 var t = e.originalEvent; 4655 if (L(t)) { 4656 var n = z(t); 4657 W = n.y, K = n.x 4658 } 4659 } 4660 4661 function P() { 4662 Y && (MSPointer = D(), e(n).off("touchstart " + MSPointer.down).on("touchstart " + MSPointer.down, M), e(n).off("touchmove " + MSPointer.move).on("touchmove " + MSPointer.move, k)) 4663 } 4664 4665 function D() { 4666 var e; 4667 return e = t.PointerEvent ? { 4668 down: "pointerdown", 4669 move: "pointermove" 4670 } : { 4671 down: "MSPointerDown", 4672 move: "MSPointerMove" 4673 } 4674 } 4675 4676 function z(e) { 4677 var t = []; 4678 return t.y = "undefined" != typeof e.pageY && (e.pageY || e.pageX) ? e.pageY : e.touches[0].pageY, t.x = "undefined" != typeof e.pageX && (e.pageY || e.pageX) ? e.pageX : e.touches[0].pageX, Y && L(e) && (t.y = e.touches[0].pageY, t.x = e.touches[0].pageX), t 4679 } 4680 var B = e.fn.multiscroll; 4681 s = e.extend({ 4682 verticalCentered: !0, 4683 scrollingSpeed: 700, 4684 easing: "easeInQuart", 4685 menu: !1, 4686 sectionsColor: [], 4687 anchors: [], 4688 navigation: !1, 4689 navigationPosition: "right", 4690 navigationColor: "#000", 4691 navigationTooltips: [], 4692 loopBottom: !1, 4693 loopTop: !1, 4694 css3: !1, 4695 paddingTop: 0, 4696 paddingBottom: 0, 4697 fixedElements: null, 4698 normalScrollElements: null, 4699 keyboardScrolling: !0, 4700 touchSensitivity: 5, 4701 sectionSelector: ".ms-section", 4702 leftSelector: ".ms-left", 4703 rightSelector: ".ms-right", 4704 afterLoad: null, 4705 onLeave: null, 4706 afterRender: null, 4707 afterResize: null 4708 }, s); 4709 var R = 600, 4710 Y = "ontouchstart" in t || navigator.msMaxTouchPoints > 0 || navigator.maxTouchPoints;
4711 ".ms-right" !== s.rightSelector && e(s.rightSelector).addClass("ms-right"), ".ms-left" !== s.leftSelector && e(s.leftSelector).addClass("ms-left"); 4712 var F, X = e(".ms-left").find(".ms-section").length, 4713 q = !1, 4714 I = e(t).height(); 4715 u(), P(), s.css3 && (s.css3 = w()), e("html, body").css({ 4716 overflow: "hidden", 4717 height: "100%" 4718 }), ".ms-section" !== s.sectionSelector && e(s.sectionSelector).each(function() { 4719 e(this).addClass("ms-section") 4720 }), s.navigation && (e("body").append('<div id="multiscroll-nav"><ul></ul></div>'), F = e("#multiscroll-nav"), F.css("color", s.navigationColor), F.addClass(s.navigationPosition)), e(".ms-right, .ms-left").css({ 4721 width: "50%", 4722 position: "absolute", 4723 height: "100%", 4724 "-ms-touch-action": "none" 4725 }), e(".ms-right").css({ 4726 right: "1px", 4727 top: "0", 4728 "-ms-touch-action": "none", 4729 "touch-action": "none" 4730 }), e(".ms-left").css({ 4731 left: "0", 4732 top: "0", 4733 "-ms-touch-action": "none", 4734 "touch-action": "none" 4735 }), e(".ms-left .ms-section, .ms-right .ms-section").each(function() { 4736 var t = e(this).index(); 4737 if ((s.paddingTop || s.paddingBottom) && e(this).css("padding", s.paddingTop + " 0 " + s.paddingBottom + " 0"), "undefined" != typeof s.sectionsColor[t] && e(this).css("background-color", s.sectionsColor[t]), "undefined" != typeof s.anchors[t] && e(this).attr("data-anchor", s.anchors[t]), s.verticalCentered && C(e(this)), e(this).closest(".ms-left").length && s.navigation) { 4738 var n = ""; 4739 s.anchors.length && (n = s.anchors[t]); 4740 var o = s.navigationTooltips[t]; 4741 "undefined" == typeof o && (o = ""), s.navigation && F.find("ul").append('<li data-tooltip="' + o + '"><a href="#' + n + '"><span></span></a></li>') 4742 } 4743 }), e(".ms-right").html(e(".ms-right").find(".ms-section").get().reverse()), e(".ms-left .ms-section, .ms-right .ms-section").each(function() { 4744 var t = e(this).index(); 4745 e(this).css({ 4746 height: "100%" 4747 }), !t && s.navigation && F.find("li").eq(t).find("a").addClass("active") 4748 }).promise().done(function() { 4749 e(".ms-left .ms-section.active").length || (e(".ms-right").find(".ms-section").last().addClass("active"), e(".ms-left").find(".ms-section").first().addClass("active")), s.navigation && F.css("margin-top", "-" + F.height() / 2 + "px"), e.isFunction(s.afterRender) && s.afterRender.call(this), m(), b(), e(t).on("load", function() { 4750 E() 4751 }) 4752 }), e(t).on("hashchange", a), e(n).keydown(l); 4753 var U; 4754 e(n).mousedown(function(e) { 4755 return 1 == e.button ? (e.preventDefault(), !1) : void 0 4756 }), e(n).on("click", "#multiscroll-nav a", function(t) { 4757 t.preventDefault(); 4758 var n = e(this).parent().index(); 4759 f(e(".ms-left .ms-section").eq(n)) 4760 }), e(n).on({ 4761 mouseenter: function() { 4762 var t = e(this).data("tooltip"); 4763 e('<div class="multiscroll-tooltip ' + s.navigationPosition + '">' + t + "</div>").hide().appendTo(e(this)).fadeIn(200) 4764 }, 4765 mouseleave: function() { 4766 e(this).find(".multiscroll-tooltip").fadeOut(200, function() { 4767 e(this).remove() 4768 }) 4769 } 4770 }, "#multiscroll-nav li"), s.normalScrollElements && (e(n).on("mouseenter", s.normalScrollElements, function() { 4771 B.setMouseWheelScrolling(!1) 4772 }), e(n).on("mouseleave", s.normalScrollElements, function() { 4773 B.setMouseWheelScrolling(!0) 4774 })), e(t).on("resize", c), B.moveSectionUp = function() { 4775 var t = e(".ms-left .ms-section.active").prev(".ms-section"); 4776 !t.length && s.loopTop && (t = e(".ms-left .ms-section").last()), t.length && f(t) 4777 }, B.moveSectionDown = function() { 4778 var t = e(".ms-left .ms-section.active").next(".ms-section"); 4779 !t.length && s.loopBottom && (t = e(".ms-left .ms-section").first()), t.length && f(t) 4780 }, B.moveTo = function(t) { 4781 var n = ""; 4782 n = isNaN(t) ? e('.ms-left [data-anchor="' + t + '"]') : e(".ms-left .ms-section").eq(t - 1), f(n) 4783 }, B.setKeyboardScrolling = function(e) { 4784 s.keyboardScrolling = e 4785 }, B.setMouseWheelScrolling = function(e) { 4786 e ? u() : d() 4787 }, B.setScrollingSpeed = function(e) { 4788 s.scrollingSpeed = e 4789 }; 4790 var W = 0, 4791 K = 0, 4792 N = 0, 4793 O = 0; 4794 B.destroy = function() { 4795 B.setKeyboardScrolling(!1), B.setMouseWheelScrolling(!1), e(t).off("hashchange", a).off("resize", c), e(n).off("mouseenter", "#multiscroll-nav li").off("mouseleave", "#multiscroll-nav li").off("
4795click", "#multiscroll-nav a") 4796 }, B.build = function() { 4797 B.setKeyboardScrolling(!0), B.setMouseWheelScrolling(!0), e(t).on("hashchange", a).on("resize", c), e(n).on("mouseenter", "#multiscroll-nav li").on("mouseleave", "#multiscroll-nav li").on("click", "#multiscroll-nav a") 4798 } 4799 } 4800}(jQuery, window, document, Math); 4801 4802/*! 4803 * Sayen Fancy Text 4804 */ 4805! function(a, b) { 4806 var c = function(a, c) { 4807 var d = this; 4808 d.el = a, d.$el = b(a), d.options = c, d.$el.append('<span class="sy-w-container"></span>'), d.$ctn = b(this.$el.children(".sy-w-container")), d.$wc = "", d.reverse = !1, d.i = d.c = 0, d.acWord = "" 4809 }; 4810 c.prototype = { 4811 defaults: { 4812 holdTime: 500, 4813 typeSpeed: 80, 4814 cursor: !0, 4815 words: { 4816 content: "" 4817 }, 4818 typing: !1, 4819 typeAnimation: "fade" 4820 }, 4821 init: function() { 4822 var a = this; 4823 return a.cf = b.extend({}, a.defaults, a.options), a.cf.cursor === !0 && (a.$el.append('<span class="cursor">|</span>'), a.$cursor = b(this.$el.children(".cursor")), setInterval(function() { 4824 a.$cursor.fadeOut(300, function() { 4825 a.$cursor.fadeIn(300) 4826 }) 4827 }, 620)), 1 == a.cf.typing ? (a.$ctn.attr({ 4828 "data-style": a.cf.typeAnimation 4829 }), a.fancyTextTyping()) : (a.$ctn.html('<span class="sy-wc" data-sit="hidden" data-word=""></span>'), a.$wc = a.$ctn.children(".sy-wc"), a.fancyText()), a 4830 }, 4831 fancyText: function() { 4832 var a = this, 4833 b = a.cf.words[a.i]; 4834 a.changeWord(b); 4835 var c = setTimeout(function() { 4836 a.$wc.attr("data-sit", "hidden"), a.i += 1, a.i < a.cf.words.length && a.changeWord(b), a.i >= a.cf.words.length && (clearInterval(c), a.i = 0), a.fancyText() 4837 }, a.cf.holdTime) 4838 }, 4839 changeWord: function(a) { 4840 var b = this; 4841 b.$wc.attr("data-sit", "hidden"); 4842 var c = setTimeout(function() { 4843 b.$wc.css({ 4844 color: a.color 4845 }).html(a.content).attr({ 4846 "data-sit": "way", 4847 "data-word": a.content 4848 }); 4849 var d = setTimeout(function() { 4850 b.$wc.attr({ 4851 "data-sit": "shown" 4852 }), clearInterval(d) 4853 }, 200); 4854 clearInterval(c) 4855 }, 200) 4856 }, 4857 fancyTextTyping: function() { 4858 var a = this, 4859 c = a.cf.words[a.i], 4860 d = c.content.split(""); 4861 if (a.$ctn.css({ 4862 color: c.color 4863 }), !a.reverse) var e = setTimeout(function() { 4864 if (a.c < d.length) { 4865 var c = d[a.c]; 4866 "" == b.trim(d[a.c]) && (c = " "), a.$ctn.append('<span class="sy-c" data-at="false">' + c + "</span>"); 4867 var e = setTimeout(function() { 4868 a.$ctn.children(".sy-c").attr({ 4869 "data-at": "true" 4870 }), clearInterval(e) 4871 }, 50); 4872 a.fancyTextTyping(), a.c += 1 4873 } 4874 }, a.cf.typeSpeed); 4875 a.c + 1 == d.length && (a.i + 1 == a.cf.words.length ? a.i = 0 : a.i += 1, clearInterval(e), setTimeout(function() { 4876 a.acWord = c.content, a.fancyCharReverse() 4877 }, a.cf.holdTime)) 4878 }, 4879 fancyCharReverse: function() { 4880 var a = this, 4881 b = setTimeout(function() { 4882 0 != a.acWord.length ? (a.acWord = a.acWord.slice(0, -1), a.$ctn.html(a.acWord), a.fancyCharReverse()) : (clearInterval(b), a.c = 0, a.fancyTextTyping()) 4883 }, 80) 4884 } 4885 }, c.defaults = c.prototype.defaults, b.fn.sayenft = function(a) { 4886 return this.each(function() { 4887 new c(this, a).init() 4888 }) 4889 }, a.sayenft = c 4890}(window, jQuery); 4891 4892//Slick Slider 4893! function(a) { 4894 "use strict"; 4895 "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jQuery) 4896}(function(a) { 4897 "use strict"; 4898 var b = window.Slick || {}; 4899 b = function() { 4900 function c(c, d) { 4901 var f, e = this; 4902 e.defaults = { 4903 accessibility: !0, 4904 adaptiveHeight: !1, 4905 appendArrows: a(c), 4906 appendDots: a(c), 4907 arrows: !0, 4908 asNavFor: null, 4909 prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>', 4910 nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>', 4911 autoplay: !1, 4912 autoplaySpeed: 3e3, 4913 centerMode: !1, 4914 centerPadding: "50px", 4915 cssEase: "ease", 4916 customPaging: function(b, c) { 4917 return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c + 1) 4918 }, 4919 dots: !1, 4920 dotsClass: "slick-dots", 4921 draggable: !0, 4922 easing: "linear", 4923 edgeFriction: .35, 4924 fade: !1, 4925 focusOnSelect: !1, 4926 infinite: !0, 4927 initialSlide: 0, 4928 lazyLoad: "ondemand", 4929 mobileFirst: !1, 4930 pauseOnHover: !0, 4931 pauseOnFocus: !0, 4932 pauseOnDotsHover: !1, 4933 respondTo: "window", 4934 responsive: null, 4935 rows: 1, 4936 rtl: !1, 4937 slide: "", 4938 slidesPerRow: 1, 4939 slidesToShow: 1, 4940 slidesToScroll: 1, 4941 speed: 500, 4942 swipe: !0, 4943 swipeToSlide: !1, 4944 touchMove: !0, 4945 touchThreshold: 5, 4946 useCSS: !0, 4947 useTransform: !0, 4948 variableWidth: !1, 4949 vertical: !1, 4950 verticalSwiping: !1, 4951 waitForAnimate: !0, 4952 zIndex: 1e3 4953 }, e.initials = { 4954 animating: !1, 4955 dragging: !1, 4956 autoPlayTimer: null, 4957 currentDirection: 0, 4958 currentLeft: null, 4959 currentSlide: 0, 4960 direction: 1, 4961 $dots: null, 4962 listWidth: null, 4963 listHeight: null, 4964 loadIndex: 0, 4965 $nextArrow: null, 4966 $prevArrow: null, 4967 slideCount: null, 4968 slideWidth: null, 4969 $slideTrack: null, 4970 $slides: null, 4971 sliding: !1, 4972 slideOffset: 0, 4973 swipeLeft: null, 4974 $list: null, 4975 touchObject: {}, 4976 transformsEnabled: !1, 4977 unslicked: !1 4978 }, a.extend(e, e.initials), e.activeBreakpoint = null, e.animType = null, e.animProp = null, e.breakpoints = [], e.breakpointSettings = [], e.cssTransitions = !1, e.focussed = !1, e.interrupted = !1, e.hidden = "hidden", e.paused = !0, e.positionProp = null, e.respondTo = null, e.rowCount = 1, e.shouldClick = !0, e.$slider = a(c), e.$slidesCache = null, e.transformType = null, e.transitionType = null, e.visibilityChange = "visibilitychange", e.windowWidth = 0, e.
vendor: 7,845 bytes, lines 4978-5072
4978windowTimer = null, f = a(c).data("slick") || {}, e.options = a.extend({}, e.defaults, d, f), e.currentSlide = e.options.initialSlide, e.originalSettings = e.options, "undefined" != typeof document.mozHidden ? (e.hidden = "mozHidden", e.visibilityChange = "mozvisibilitychange") : "undefined" != typeof document.webkitHidden && (e.hidden = "webkitHidden", e.visibilityChange = "webkitvisibilitychange"), e.autoPlay = a.proxy(e.autoPlay, e), e.autoPlayClear = a.proxy(e.autoPlayClear, e), e.autoPlayIterator = a.proxy(e.autoPlayIterator, e), e.changeSlide = a.proxy(e.changeSlide, e), e.clickHandler = a.proxy(e.clickHandler, e), e.selectHandler = a.proxy(e.selectHandler, e), e.setPosition = a.proxy(e.setPosition, e), e.swipeHandler = a.proxy(e.swipeHandler, e), e.dragHandler = a.proxy(e.dragHandler, e), e.keyHandler = a.proxy(e.keyHandler, e), e.instanceUid = b++, e.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, e.registerBreakpoints(), e.init(!0) 4979 } 4980 var b = 0; 4981 return c 4982 }(), b.prototype.activateADA = function() { 4983 var a = this; 4984 a.$slideTrack.find(".slick-active").attr({ 4985 "aria-hidden": "false" 4986 }).find("a, input, button, select").attr({ 4987 tabindex: "0" 4988 }) 4989 }, b.prototype.addSlide = b.prototype.slickAdd = function(b, c, d) { 4990 var e = this; 4991 if ("boolean" == typeof c) d = c, c = null; 4992 else if (0 > c || c >= e.slideCount) return !1; 4993 e.unload(), "number" == typeof c ? 0 === c && 0 === e.$slides.length ? a(b).appendTo(e.$slideTrack) : d ? a(b).insertBefore(e.$slides.eq(c)) : a(b).insertAfter(e.$slides.eq(c)) : d === !0 ? a(b).prependTo(e.$slideTrack) : a(b).appendTo(e.$slideTrack), e.$slides = e.$slideTrack.children(this.options.slide), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.append(e.$slides), e.$slides.each(function(b, c) { 4994 a(c).attr("data-slick-index", b) 4995 }), e.$slidesCache = e.$slides, e.reinit() 4996 }, b.prototype.animateHeight = function() { 4997 var a = this; 4998 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 4999 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 5000 a.$list.animate({ 5001 height: b 5002 }, a.options.speed) 5003 } 5004 }, b.prototype.animateSlide = function(b, c) { 5005 var d = {}, 5006 e = this; 5007 e.animateHeight(), e.options.rtl === !0 && e.options.vertical === !1 && (b = -b), e.transformsEnabled === !1 ? e.options.vertical === !1 ? e.$slideTrack.animate({ 5008 left: b 5009 }, e.options.speed, e.options.easing, c) : e.$slideTrack.animate({ 5010 top: b 5011 }, e.options.speed, e.options.easing, c) : e.cssTransitions === !1 ? (e.options.rtl === !0 && (e.currentLeft = -e.currentLeft), a({ 5012 animStart: e.currentLeft 5013 }).animate({ 5014 animStart: b 5015 }, { 5016 duration: e.options.speed, 5017 easing: e.options.easing, 5018 step: function(a) { 5019 a = Math.ceil(a), e.options.vertical === !1 ? (d[e.animType] = "translate(" + a + "px, 0px)", e.$slideTrack.css(d)) : (d[e.animType] = "translate(0px," + a + "px)", e.$slideTrack.css(d)) 5020 }, 5021 complete: function() { 5022 c && c.call() 5023 } 5024 })) : (e.applyTransition(), b = Math.ceil(b), e.options.vertical === !1 ? d[e.animType] = "translate3d(" + b + "px, 0px, 0px)" : d[e.animType] = "translate3d(0px," + b + "px, 0px)", e.$slideTrack.css(d), c && setTimeout(function() { 5025 e.disableTransition(), c.call() 5026 }, e.options.speed)) 5027 }, b.prototype.getNavTarget = function() { 5028 var b = this, 5029 c = b.options.asNavFor; 5030 return c && null !== c && (c = a(c).not(b.$slider)), c 5031 }, b.prototype.asNavFor = function(b) { 5032 var c = this, 5033 d = c.getNavTarget(); 5034 null !== d && "object" == typeof d && d.each(function() { 5035 var c = a(this).slick("getSlick"); 5036 c.unslicked || c.slideHandler(b, !0) 5037 }) 5038 }, b.prototype.applyTransition = function(a) { 5039 var b = this, 5040 c = {}; 5041 b.options.fade === !1 ? c[b.transitionType] = b.transformType + " " + b.options.speed + "ms " + b.options.cssEase : c[b.transitionType] = "opacity " + b.options.speed + "ms " + b.options.cssEase, b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 5042 }, b.prototype.autoPlay = function() { 5043 var a = this; 5044 a.autoPlayClear(), a.slideCount > a.options.slidesToShow && (a.autoPlayTimer = setInterval(a.autoPlayIterator, a.options.autoplaySpeed)) 5045 }, b.prototype.autoPlayClear = function() { 5046 var a = this; 5047 a.autoPlayTimer && clearInterval(a.autoPlayTimer) 5048 }, b.prototype.autoPlayIterator = function() { 5049 var a = this, 5050 b = a.currentSlide + a.options.slidesToScroll; 5051 a.paused || a.interrupted || a.focussed || (a.options.infinite === !1 && (1 === a.direction && a.currentSlide + 1 === a.slideCount - 1 ? a.direction = 0 : 0 === a.direction && (b = a.currentSlide - a.options.slidesToScroll, a.currentSlide - 1 === 0 && (a.direction = 1))), a.slideHandler(b)) 5052 }, b.prototype.buildArrows = function() { 5053 var b = this; 5054 b.options.arrows === !0 && (b.$prevArrow = a(b.options.prevArrow).addClass("slick-arrow"), b.$nextArrow = a(b.options.nextArrow).addClass("slick-arrow"), b.slideCount > b.options.slidesToShow ? (b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.prependTo(b.options.appendArrows), b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.appendTo(b.options.appendArrows), b.options.infinite !== !0 && b.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({ 5055 "aria-disabled": "true", 5056 tabindex: "-1" 5057 })) 5058 }, b.prototype.buildDots = function() { 5059 var c, d, b = this; 5060 if (b.options.dots === !0 && b.slideCount > b.options.slidesToShow) { 5061 for (b.$slider.addClass("slick-dotted"), d = a("<ul />").addClass(b.options.dotsClass), c = 0; c <= b.getDotCount(); c += 1) d.append(a("<li />").append(b.options.customPaging.call(this, b, c))); 5062 b.$dots = d.appendTo(b.options.appendDots), b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden", "false") 5063 } 5064 }, b.prototype.buildOut = function() { 5065 var b = this; 5066 b.$slides = b.$slider.children(b.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), b.slideCount = b.$slides.length, b.$slides.each(function(b, c) { 5067 a(c).attr("data-slick-index", b).data("originalStyling", a(c).attr("style") || "") 5068 }), b.$slider.addClass("slick-slider"), b.$slideTrack = 0 === b.slideCount ? a('<div class="slick-track"/>').appendTo(b.$slider) : b.$slides.wrapAll('<div class="slick-track"/>').parent(), b.$list = b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(), b.$slideTrack.css("opacity", 0), (b.options.centerMode === !0 || b.options.swipeToSlide === !0) && (b.options.slidesToScroll = 1), a("img[data-lazy]", b.$slider).not("[src]").addClass("slick-loading"), b.setupInfinite(), b.buildArrows(), b.buildDots(), b.updateDots(), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.options.draggable === !0 && b.$list.addClass("draggable") 5069 }, b.prototype.buildRows = function() { 5070 var b, c, d, e, f, g, h, a = this; 5071 if (e = document.createDocumentFragment(), g = a.$slider.children(), a.options.rows > 1) { 5072 for (h = a.options.slidesPerRow * a.options.rows, f = Math.
vendor: 4,335 bytes, lines 5072-5130
5072ceil(g.length / h), b = 0; f > b; b++) { 5073 var i = document.createElement("div"); 5074 for (c = 0; c < a.options.rows; c++) { 5075 var j = document.createElement("div"); 5076 for (d = 0; d < a.options.slidesPerRow; d++) { 5077 var k = b * h + (c * a.options.slidesPerRow + d); 5078 g.get(k) && j.appendChild(g.get(k)) 5079 } 5080 i.appendChild(j) 5081 } 5082 e.appendChild(i) 5083 } 5084 a.$slider.empty().append(e), a.$slider.children().children().children().css({ 5085 width: 100 / a.options.slidesPerRow + "%", 5086 display: "inline-block" 5087 }) 5088 } 5089 }, b.prototype.checkResponsive = function(b, c) { 5090 var e, f, g, d = this, 5091 h = !1, 5092 i = d.$slider.width(), 5093 j = window.innerWidth || a(window).width(); 5094 if ("window" === d.respondTo ? g = j : "slider" === d.respondTo ? g = i : "min" === d.respondTo && (g = Math.min(j, i)), d.options.responsive && d.options.responsive.length && null !== d.options.responsive) { 5095 f = null; 5096 for (e in d.breakpoints) d.breakpoints.hasOwnProperty(e) && (d.originalSettings.mobileFirst === !1 ? g < d.breakpoints[e] && (f = d.breakpoints[e]) : g > d.breakpoints[e] && (f = d.breakpoints[e])); 5097 null !== f ? null !== d.activeBreakpoint ? (f !== d.activeBreakpoint || c) && (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : null !== d.activeBreakpoint && (d.activeBreakpoint = null, d.options = d.originalSettings, b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b), h = f), b || h === !1 || d.$slider.trigger("breakpoint", [d, h]) 5098 } 5099 }, b.prototype.changeSlide = function(b, c) { 5100 var f, g, h, d = this, 5101 e = a(b.currentTarget); 5102 switch (e.is("a") && b.preventDefault(), e.is("li") || (e = e.closest("li")), h = d.slideCount % d.options.slidesToScroll !== 0, f = h ? 0 : (d.slideCount - d.currentSlide) % d.options.slidesToScroll, b.data.message) { 5103 case "previous": 5104 g = 0 === f ? d.options.slidesToScroll : d.options.slidesToShow - f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide - g, !1, c); 5105 break; 5106 case "next": 5107 g = 0 === f ? d.options.slidesToScroll : f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide + g, !1, c); 5108 break; 5109 case "index": 5110 var i = 0 === b.data.index ? 0 : b.data.index || e.index() * d.options.slidesToScroll; 5111 d.slideHandler(d.checkNavigable(i), !1, c), e.children().trigger("focus"); 5112 break; 5113 default: 5114 return 5115 } 5116 }, b.prototype.checkNavigable = function(a) { 5117 var c, d, b = this; 5118 if (c = b.getNavigableIndexes(), d = 0, a > c[c.length - 1]) a = c[c.length - 1]; 5119 else 5120 for (var e in c) { 5121 if (a < c[e]) { 5122 a = d; 5123 break 5124 } 5125 d = c[e] 5126 } 5127 return a 5128 }, b.prototype.cleanUpEvents = function() { 5129 var b = this; 5130 b.options.dots && null !== b.$dots && a("li", b.$dots).off("click.slick", b.changeSlide).off("mouseenter.slick", a.proxy(b.interrupt, b, !0)).off("mouseleave.slick", a.proxy(b.interrupt, b, !1)), b.$slider.off("focus.slick blur.slick"), b.options.arrows === !0 && b.slideCount > b.options.slidesToShow && (b.$prevArrow && b.$prevArrow.off("click.slick", b.changeSlide), b.$nextArrow && b.$nextArrow.off("click.slick", b.changeSlide)), b.$list.off("touchstart.slick mousedown.slick", b.swipeHandler), b.$list.off("touchmove.slick mousemove.slick", b.swipeHandler), b.$list.off("touchend.slick mouseup.slick", b.swipeHandler), b.$list.off("touchcancel.
vendor: 5,038 bytes, lines 5130-5194
5130slick mouseleave.slick", b.swipeHandler), b.$list.off("click.slick", b.clickHandler), a(document).off(b.visibilityChange, b.visibility), b.cleanUpSlideEvents(), b.options.accessibility === !0 && b.$list.off("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().off("click.slick", b.selectHandler), a(window).off("orientationchange.slick.slick-" + b.instanceUid, b.orientationChange), a(window).off("resize.slick.slick-" + b.instanceUid, b.resize), a("[draggable!=true]", b.$slideTrack).off("dragstart", b.preventDefault), a(window).off("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).off("ready.slick.slick-" + b.instanceUid, b.setPosition) 5131 }, b.prototype.cleanUpSlideEvents = function() { 5132 var b = this; 5133 b.$list.off("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.off("mouseleave.slick", a.proxy(b.interrupt, b, !1)) 5134 }, b.prototype.cleanUpRows = function() { 5135 var b, a = this; 5136 a.options.rows > 1 && (b = a.$slides.children().children(), b.removeAttr("style"), a.$slider.empty().append(b)) 5137 }, b.prototype.clickHandler = function(a) { 5138 var b = this; 5139 b.shouldClick === !1 && (a.stopImmediatePropagation(), a.stopPropagation(), a.preventDefault()) 5140 }, b.prototype.destroy = function(b) { 5141 var c = this; 5142 c.autoPlayClear(), c.touchObject = {}, c.cleanUpEvents(), a(".slick-cloned", c.$slider).detach(), c.$dots && c.$dots.remove(), c.$prevArrow && c.$prevArrow.length && (c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.prevArrow) && c.$prevArrow.remove()), c.$nextArrow && c.$nextArrow.length && (c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.nextArrow) && c.$nextArrow.remove()), c.$slides && (c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function() { 5143 a(this).attr("style", a(this).data("originalStyling")) 5144 }), c.$slideTrack.children(this.options.slide).detach(), c.$slideTrack.detach(), c.$list.detach(), c.$slider.append(c.$slides)), c.cleanUpRows(), c.$slider.removeClass("slick-slider"), c.$slider.removeClass("slick-initialized"), c.$slider.removeClass("slick-dotted"), c.unslicked = !0, b || c.$slider.trigger("destroy", [c]) 5145 }, b.prototype.disableTransition = function(a) { 5146 var b = this, 5147 c = {}; 5148 c[b.transitionType] = "", b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 5149 }, b.prototype.fadeSlide = function(a, b) { 5150 var c = this; 5151 c.cssTransitions === !1 ? (c.$slides.eq(a).css({ 5152 zIndex: c.options.zIndex 5153 }), c.$slides.eq(a).animate({ 5154 opacity: 1 5155 }, c.options.speed, c.options.easing, b)) : (c.applyTransition(a), c.$slides.eq(a).css({ 5156 opacity: 1, 5157 zIndex: c.options.zIndex 5158 }), b && setTimeout(function() { 5159 c.disableTransition(a), b.call() 5160 }, c.options.speed)) 5161 }, b.prototype.fadeSlideOut = function(a) { 5162 var b = this; 5163 b.cssTransitions === !1 ? b.$slides.eq(a).animate({ 5164 opacity: 0, 5165 zIndex: b.options.zIndex - 2 5166 }, b.options.speed, b.options.easing) : (b.applyTransition(a), b.$slides.eq(a).css({ 5167 opacity: 0, 5168 zIndex: b.options.zIndex - 2 5169 })) 5170 }, b.prototype.filterSlides = b.prototype.slickFilter = function(a) { 5171 var b = this; 5172 null !== a && (b.$slidesCache = b.$slides, b.unload(), b.$slideTrack.children(this.options.slide).detach(), b.$slidesCache.filter(a).appendTo(b.$slideTrack), b.reinit()) 5173 }, b.prototype.focusHandler = function() { 5174 var b = this; 5175 b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*:not(.slick-arrow)", function(c) { 5176 c.stopImmediatePropagation(); 5177 var d = a(this); 5178 setTimeout(function() { 5179 b.options.pauseOnFocus && (b.focussed = d.is(":focus"), b.autoPlay()) 5180 }, 0) 5181 }) 5182 }, b.prototype.getCurrent = b.prototype.slickCurrentSlide = function() { 5183 var a = this; 5184 return a.currentSlide 5185 }, b.prototype.getDotCount = function() { 5186 var a = this, 5187 b = 0, 5188 c = 0, 5189 d = 0; 5190 if (a.options.infinite === !0) 5191 for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 5192 else if (a.options.centerMode === !0) d = a.slideCount; 5193 else if (a.options.asNavFor) 5194 for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow;
vendor: 5,886 bytes, lines 5195-5260
5195 else d = 1 + Math.ceil((a.slideCount - a.options.slidesToShow) / a.options.slidesToScroll); 5196 return d - 1 5197 }, b.prototype.getLeft = function(a) { 5198 var c, d, f, b = this, 5199 e = 0; 5200 return b.slideOffset = 0, d = b.$slides.first().outerHeight(!0), b.options.infinite === !0 ? (b.slideCount > b.options.slidesToShow && (b.slideOffset = b.slideWidth * b.options.slidesToShow * -1, e = d * b.options.slidesToShow * -1), b.slideCount % b.options.slidesToScroll !== 0 && a + b.options.slidesToScroll > b.slideCount && b.slideCount > b.options.slidesToShow && (a > b.slideCount ? (b.slideOffset = (b.options.slidesToShow - (a - b.slideCount)) * b.slideWidth * -1, e = (b.options.slidesToShow - (a - b.slideCount)) * d * -1) : (b.slideOffset = b.slideCount % b.options.slidesToScroll * b.slideWidth * -1, e = b.slideCount % b.options.slidesToScroll * d * -1))) : a + b.options.slidesToShow > b.slideCount && (b.slideOffset = (a + b.options.slidesToShow - b.slideCount) * b.slideWidth, e = (a + b.options.slidesToShow - b.slideCount) * d), b.slideCount <= b.options.slidesToShow && (b.slideOffset = 0, e = 0), b.options.centerMode === !0 && b.options.infinite === !0 ? b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2) - b.slideWidth : b.options.centerMode === !0 && (b.slideOffset = 0, b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2)), c = b.options.vertical === !1 ? a * b.slideWidth * -1 + b.slideOffset : a * d * -1 + e, b.options.variableWidth === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, b.options.centerMode === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow + 1), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, c += (b.$list.width() - f.outerWidth()) / 2)), c 5201 }, b.prototype.getOption = b.prototype.slickGetOption = function(a) { 5202 var b = this; 5203 return b.options[a] 5204 }, b.prototype.getNavigableIndexes = function() { 5205 var e, a = this, 5206 b = 0, 5207 c = 0, 5208 d = []; 5209 for (a.options.infinite === !1 ? e = a.slideCount : (b = -1 * a.options.slidesToScroll, c = -1 * a.options.slidesToScroll, e = 2 * a.slideCount); e > b;) d.push(b), b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 5210 return d 5211 }, b.prototype.getSlick = function() { 5212 return this 5213 }, b.prototype.getSlideCount = function() { 5214 var c, d, e, b = this; 5215 return e = b.options.centerMode === !0 ? b.slideWidth * Math.floor(b.options.slidesToShow / 2) : 0, b.options.swipeToSlide === !0 ? (b.$slideTrack.find(".slick-slide").each(function(c, f) { 5216 return f.offsetLeft - e + a(f).outerWidth() / 2 > -1 * b.swipeLeft ? (d = f, !1) : void 0 5217 }), c = Math.abs(a(d).attr("data-slick-index") - b.currentSlide) || 1) : b.options.slidesToScroll 5218 }, b.prototype.goTo = b.prototype.slickGoTo = function(a, b) { 5219 var c = this; 5220 c.changeSlide({ 5221 data: { 5222 message: "index", 5223 index: parseInt(a) 5224 } 5225 }, b) 5226 }, b.prototype.init = function(b) { 5227 var c = this; 5228 a(c.$slider).hasClass("slick-initialized") || (a(c.$slider).addClass("slick-initialized"), c.buildRows(), c.buildOut(), c.setProps(), c.startLoad(), c.loadSlider(), c.initializeEvents(), c.updateArrows(), c.updateDots(), c.checkResponsive(!0), c.focusHandler()), b && c.$slider.trigger("init", [c]), c.options.accessibility === !0 && c.initADA(), c.options.autoplay && (c.paused = !1, c.autoPlay()) 5229 }, b.prototype.initADA = function() { 5230 var b = this; 5231 b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({ 5232 "aria-hidden": "true", 5233 tabindex: "-1" 5234 }).find("a, input, button, select").attr({ 5235 tabindex: "-1" 5236 }), b.$slideTrack.attr("role", "listbox"), b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c) { 5237 a(this).attr({ 5238 role: "option", 5239 "aria-describedby": "slick-slide" + b.instanceUid + c 5240 }) 5241 }), null !== b.$dots && b.$dots.attr("role", "tablist").find("li").each(function(c) { 5242 a(this).attr({ 5243 role: "presentation", 5244 "aria-selected": "false", 5245 "aria-controls": "navigation" + b.instanceUid + c, 5246 id: "slick-slide" + b.instanceUid + c 5247 }) 5248 }).first().attr("aria-selected", "true").end().find("button").attr("role", "button").end().closest("div").attr("role", "toolbar"), b.activateADA() 5249 }, b.prototype.initArrowEvents = function() { 5250 var a = this; 5251 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.off("click.slick").on("click.slick", { 5252 message: "previous" 5253 }, a.changeSlide), a.$nextArrow.off("click.slick").on("click.slick", { 5254 message: "next" 5255 }, a.changeSlide)) 5256 }, b.prototype.initDotEvents = function() { 5257 var b = this; 5258 b.options.dots === !0 && b.slideCount > b.options.slidesToShow && a("li", b.$dots).on("click.slick", { 5259 message: "index" 5260 }, b.changeSlide), b.options.dots === !0 && b.options.pauseOnDotsHover === !0 && a("li", b.$dots).on("mouseenter.slick", a.proxy(b.interrupt, b, !0)).on("mouseleave.
vendor: 12,320 bytes, lines 5260-5433
5260slick", a.proxy(b.interrupt, b, !1)) 5261 }, b.prototype.initSlideEvents = function() { 5262 var b = this; 5263 b.options.pauseOnHover && (b.$list.on("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.on("mouseleave.slick", a.proxy(b.interrupt, b, !1))) 5264 }, b.prototype.initializeEvents = function() { 5265 var b = this; 5266 b.initArrowEvents(), b.initDotEvents(), b.initSlideEvents(), b.$list.on("touchstart.slick mousedown.slick", { 5267 action: "start" 5268 }, b.swipeHandler), b.$list.on("touchmove.slick mousemove.slick", { 5269 action: "move" 5270 }, b.swipeHandler), b.$list.on("touchend.slick mouseup.slick", { 5271 action: "end" 5272 }, b.swipeHandler), b.$list.on("touchcancel.slick mouseleave.slick", { 5273 action: "end" 5274 }, b.swipeHandler), b.$list.on("click.slick", b.clickHandler), a(document).on(b.visibilityChange, a.proxy(b.visibility, b)), b.options.accessibility === !0 && b.$list.on("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), a(window).on("orientationchange.slick.slick-" + b.instanceUid, a.proxy(b.orientationChange, b)), a(window).on("resize.slick.slick-" + b.instanceUid, a.proxy(b.resize, b)), a("[draggable!=true]", b.$slideTrack).on("dragstart", b.preventDefault), a(window).on("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).on("ready.slick.slick-" + b.instanceUid, b.setPosition) 5275 }, b.prototype.initUI = function() { 5276 var a = this; 5277 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.show(), a.$nextArrow.show()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.show() 5278 }, b.prototype.keyHandler = function(a) { 5279 var b = this; 5280 a.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === a.keyCode && b.options.accessibility === !0 ? b.changeSlide({ 5281 data: { 5282 message: b.options.rtl === !0 ? "next" : "previous" 5283 } 5284 }) : 39 === a.keyCode && b.options.accessibility === !0 && b.changeSlide({ 5285 data: { 5286 message: b.options.rtl === !0 ? "previous" : "next" 5287 } 5288 })) 5289 }, b.prototype.lazyLoad = function() { 5290 function g(c) { 5291 a("img[data-lazy]", c).each(function() { 5292 var c = a(this), 5293 d = a(this).attr("data-lazy"), 5294 e = document.createElement("img"); 5295 e.onload = function() { 5296 c.animate({ 5297 opacity: 0 5298 }, 100, function() { 5299 c.attr("src", d).animate({ 5300 opacity: 1 5301 }, 200, function() { 5302 c.removeAttr("data-lazy").removeClass("slick-loading") 5303 }), b.$slider.trigger("lazyLoaded", [b, c, d]) 5304 }) 5305 }, e.onerror = function() { 5306 c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), b.$slider.trigger("lazyLoadError", [b, c, d]) 5307 }, e.src = d 5308 }) 5309 } 5310 var c, d, e, f, b = this; 5311 b.options.centerMode === !0 ? b.options.infinite === !0 ? (e = b.currentSlide + (b.options.slidesToShow / 2 + 1), f = e + b.options.slidesToShow + 2) : (e = Math.max(0, b.currentSlide - (b.options.slidesToShow / 2 + 1)), f = 2 + (b.options.slidesToShow / 2 + 1) + b.currentSlide) : (e = b.options.infinite ? b.options.slidesToShow + b.currentSlide : b.currentSlide, f = Math.ceil(e + b.options.slidesToShow), b.options.fade === !0 && (e > 0 && e--, f <= b.slideCount && f++)), c = b.$slider.find(".slick-slide").slice(e, f), g(c), b.slideCount <= b.options.slidesToShow ? (d = b.$slider.find(".slick-slide"), g(d)) : b.currentSlide >= b.slideCount - b.options.slidesToShow ? (d = b.$slider.find(".slick-cloned").slice(0, b.options.slidesToShow), g(d)) : 0 === b.currentSlide && (d = b.$slider.find(".slick-cloned").slice(-1 * b.options.slidesToShow), g(d)) 5312 }, b.prototype.loadSlider = function() { 5313 var a = this; 5314 a.setPosition(), a.$slideTrack.css({ 5315 opacity: 1 5316 }), a.$slider.removeClass("slick-loading"), a.initUI(), "progressive" === a.options.lazyLoad && a.progressiveLazyLoad() 5317 }, b.prototype.next = b.prototype.slickNext = function() { 5318 var a = this; 5319 a.changeSlide({ 5320 data: { 5321 message: "next" 5322 } 5323 }) 5324 }, b.prototype.orientationChange = function() { 5325 var a = this; 5326 a.checkResponsive(), a.setPosition() 5327 }, b.prototype.pause = b.prototype.slickPause = function() { 5328 var a = this; 5329 a.autoPlayClear(), a.paused = !0 5330 }, b.prototype.play = b.prototype.slickPlay = function() { 5331 var a = this; 5332 a.autoPlay(), a.options.autoplay = !0, a.paused = !1, a.focussed = !1, a.interrupted = !1 5333 }, b.prototype.postSlide = function(a) { 5334 var b = this; 5335 b.unslicked || (b.$slider.trigger("afterChange", [b, a]), b.animating = !1, b.setPosition(), b.swipeLeft = null, b.options.autoplay && b.autoPlay(), b.options.accessibility === !0 && b.initADA()) 5336 }, b.prototype.prev = b.prototype.slickPrev = function() { 5337 var a = this; 5338 a.changeSlide({ 5339 data: { 5340 message: "previous" 5341 } 5342 }) 5343 }, b.prototype.preventDefault = function(a) { 5344 a.preventDefault() 5345 }, b.prototype.progressiveLazyLoad = function(b) { 5346 b = b || 1; 5347 var e, f, g, c = this, 5348 d = a("img[data-lazy]", c.$slider); 5349 d.length ? (e = d.first(), f = e.attr("data-lazy"), g = document.createElement("img"), g.onload = function() { 5350 e.attr("src", f).removeAttr("data-lazy").removeClass("slick-loading"), c.options.adaptiveHeight === !0 && c.setPosition(), c.$slider.trigger("lazyLoaded", [c, e, f]), c.progressiveLazyLoad() 5351 }, g.onerror = function() { 5352 3 > b ? setTimeout(function() { 5353 c.progressiveLazyLoad(b + 1) 5354 }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), c.$slider.trigger("lazyLoadError", [c, e, f]), c.progressiveLazyLoad()) 5355 }, g.src = f) : c.$slider.trigger("allImagesLoaded", [c]) 5356 }, b.prototype.refresh = function(b) { 5357 var d, e, c = this; 5358 e = c.slideCount - c.options.slidesToShow, !c.options.infinite && c.currentSlide > e && (c.currentSlide = e), c.slideCount <= c.options.slidesToShow && (c.currentSlide = 0), d = c.currentSlide, c.destroy(!0), a.extend(c, c.initials, { 5359 currentSlide: d 5360 }), c.init(), b || c.changeSlide({ 5361 data: { 5362 message: "index", 5363 index: d 5364 } 5365 }, !1) 5366 }, b.prototype.registerBreakpoints = function() { 5367 var c, d, e, b = this, 5368 f = b.options.responsive || null; 5369 if ("array" === a.type(f) && f.length) { 5370 b.respondTo = b.options.respondTo || "window"; 5371 for (c in f) 5372 if (e = b.breakpoints.length - 1, d = f[c].breakpoint, f.hasOwnProperty(c)) { 5373 for (; e >= 0;) b.breakpoints[e] && b.breakpoints[e] === d && b.breakpoints.splice(e, 1), e--; 5374 b.breakpoints.push(d), b.breakpointSettings[d] = f[c].settings 5375 } 5376 b.breakpoints.sort(function(a, c) { 5377 return b.options.mobileFirst ? a - c : c - a 5378 }) 5379 } 5380 }, b.prototype.reinit = function() { 5381 var b = this; 5382 b.$slides = b.$slideTrack.children(b.options.slide).addClass("slick-slide"), b.slideCount = b.$slides.length, b.currentSlide >= b.slideCount && 0 !== b.currentSlide && (b.currentSlide = b.currentSlide - b.options.slidesToScroll), b.slideCount <= b.options.slidesToShow && (b.currentSlide = 0), b.registerBreakpoints(), b.setProps(), b.setupInfinite(), b.buildArrows(), b.updateArrows(), b.initArrowEvents(), b.buildDots(), b.updateDots(), b.initDotEvents(), b.cleanUpSlideEvents(), b.initSlideEvents(), b.checkResponsive(!1, !0), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.setPosition(), b.focusHandler(), b.paused = !b.options.autoplay, b.autoPlay(), b.$slider.trigger("reInit", [b]) 5383 }, b.prototype.resize = function() { 5384 var b = this; 5385 a(window).width() !== b.windowWidth && (clearTimeout(b.windowDelay), b.windowDelay = window.setTimeout(function() { 5386 b.windowWidth = a(window).width(), b.checkResponsive(), b.unslicked || b.setPosition() 5387 }, 50)) 5388 }, b.prototype.removeSlide = b.prototype.slickRemove = function(a, b, c) { 5389 var d = this; 5390 return "boolean" == typeof a ? (b = a, a = b === !0 ? 0 : d.slideCount - 1) : a = b === !0 ? --a : a, d.slideCount < 1 || 0 > a || a > d.slideCount - 1 ? !1 : (d.unload(), c === !0 ? d.$slideTrack.children().remove() : d.$slideTrack.children(this.options.slide).eq(a).remove(), d.$slides = d.$slideTrack.children(this.options.slide), d.$slideTrack.children(this.options.slide).detach(), d.$slideTrack.append(d.$slides), d.$slidesCache = d.$slides, void d.reinit()) 5391 }, b.prototype.setCSS = function(a) { 5392 var d, e, b = this, 5393 c = {}; 5394 b.options.rtl === !0 && (a = -a), d = "left" == b.positionProp ? Math.ceil(a) + "px" : "0px", e = "top" == b.positionProp ? Math.ceil(a) + "px" : "0px", c[b.positionProp] = a, b.transformsEnabled === !1 ? b.$slideTrack.css(c) : (c = {}, b.cssTransitions === !1 ? (c[b.animType] = "translate(" + d + ", " + e + ")", b.$slideTrack.css(c)) : (c[b.animType] = "translate3d(" + d + ", " + e + ", 0px)", b.$slideTrack.css(c))) 5395 }, b.prototype.setDimensions = function() { 5396 var a = this; 5397 a.options.vertical === !1 ? a.options.centerMode === !0 && a.$list.css({ 5398 padding: "0px " + a.options.centerPadding 5399 }) : (a.$list.height(a.$slides.first().outerHeight(!0) * a.options.slidesToShow), a.options.centerMode === !0 && a.$list.css({ 5400 padding: a.options.centerPadding + " 0px" 5401 })), a.listWidth = a.$list.width(), a.listHeight = a.$list.height(), a.options.vertical === !1 && a.options.variableWidth === !1 ? (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow), a.$slideTrack.width(Math.ceil(a.slideWidth * a.$slideTrack.children(".slick-slide").length))) : a.options.variableWidth === !0 ? a.$slideTrack.width(5e3 * a.slideCount) : (a.slideWidth = Math.ceil(a.listWidth), a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0) * a.$slideTrack.children(".slick-slide").length))); 5402 var b = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); 5403 a.options.variableWidth === !1 && a.$slideTrack.children(".slick-slide").width(a.slideWidth - b) 5404 }, b.prototype.setFade = function() { 5405 var c, b = this; 5406 b.$slides.each(function(d, e) { 5407 c = b.slideWidth * d * -1, b.options.rtl === !0 ? a(e).css({ 5408 position: "relative", 5409 right: c, 5410 top: 0, 5411 zIndex: b.options.zIndex - 2, 5412 opacity: 0 5413 }) : a(e).css({ 5414 position: "relative", 5415 left: c, 5416 top: 0, 5417 zIndex: b.options.zIndex - 2, 5418 opacity: 0 5419 }) 5420 }), b.$slides.eq(b.currentSlide).css({ 5421 zIndex: b.options.zIndex - 1, 5422 opacity: 1 5423 }) 5424 }, b.prototype.setHeight = function() { 5425 var a = this; 5426 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 5427 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 5428 a.$list.css("height", b) 5429 } 5430 }, b.prototype.setOption = b.prototype.slickSetOption = function() { 5431 var c, d, e, f, h, b = this, 5432 g = !1; 5433 if ("object" === a.type(arguments[0]) ? (e = arguments[0], g = arguments[1], h = "multiple") : "string" === a.type(arguments[0]) && (e = arguments[0], f = arguments[1], g = arguments[2], "responsive" === arguments[0] && "array" === a.type(arguments[1]) ? h
vendor: 12,714 bytes, lines 5433-5530
5433= "responsive" : "undefined" != typeof arguments[1] && (h = "single")), "single" === h) b.options[e] = f; 5434 else if ("multiple" === h) a.each(e, function(a, c) { 5435 b.options[a] = c 5436 }); 5437 else if ("responsive" === h) 5438 for (d in f) 5439 if ("array" !== a.type(b.options.responsive)) b.options.responsive = [f[d]]; 5440 else { 5441 for (c = b.options.responsive.length - 1; c >= 0;) b.options.responsive[c].breakpoint === f[d].breakpoint && b.options.responsive.splice(c, 1), c--; 5442 b.options.responsive.push(f[d]) 5443 } 5444 g && (b.unload(), b.reinit()) 5445 }, b.prototype.setPosition = function() { 5446 var a = this; 5447 a.setDimensions(), a.setHeight(), a.options.fade === !1 ? a.setCSS(a.getLeft(a.currentSlide)) : a.setFade(), a.$slider.trigger("setPosition", [a]) 5448 }, b.prototype.setProps = function() { 5449 var a = this, 5450 b = document.body.style; 5451 a.positionProp = a.options.vertical === !0 ? "top" : "left", "top" === a.positionProp ? a.$slider.addClass("slick-vertical") : a.$slider.removeClass("slick-vertical"), (void 0 !== b.WebkitTransition || void 0 !== b.MozTransition || void 0 !== b.msTransition) && a.options.useCSS === !0 && (a.cssTransitions = !0), a.options.fade && ("number" == typeof a.options.zIndex ? a.options.zIndex < 3 && (a.options.zIndex = 3) : a.options.zIndex = a.defaults.zIndex), void 0 !== b.OTransform && (a.animType = "OTransform", a.transformType = "-o-transform", a.transitionType = "OTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.MozTransform && (a.animType = "MozTransform", a.transformType = "-moz-transform", a.transitionType = "MozTransition", void 0 === b.perspectiveProperty && void 0 === b.MozPerspective && (a.animType = !1)), void 0 !== b.webkitTransform && (a.animType = "webkitTransform", a.transformType = "-webkit-transform", a.transitionType = "webkitTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.msTransform && (a.animType = "msTransform", a.transformType = "-ms-transform", a.transitionType = "msTransition", void 0 === b.msTransform && (a.animType = !1)), void 0 !== b.transform && a.animType !== !1 && (a.animType = "transform", a.transformType = "transform", a.transitionType = "transition"), a.transformsEnabled = a.options.useTransform && null !== a.animType && a.animType !== !1 5452 }, b.prototype.setSlideClasses = function(a) { 5453 var c, d, e, f, b = this; 5454 d = b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), b.$slides.eq(a).addClass("slick-current"), b.options.centerMode === !0 ? (c = Math.floor(b.options.slidesToShow / 2), b.options.infinite === !0 && (a >= c && a <= b.slideCount - 1 - c ? b.$slides.slice(a - c, a + c + 1).addClass("slick-active").attr("aria-hidden", "false") : (e = b.options.slidesToShow + a, 5455 d.slice(e - c + 1, e + c + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === a ? d.eq(d.length - 1 - b.options.slidesToShow).addClass("slick-center") : a === b.slideCount - 1 && d.eq(b.options.slidesToShow).addClass("slick-center")), b.$slides.eq(a).addClass("slick-center")) : a >= 0 && a <= b.slideCount - b.options.slidesToShow ? b.$slides.slice(a, a + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : d.length <= b.options.slidesToShow ? d.addClass("slick-active").attr("aria-hidden", "false") : (f = b.slideCount % b.options.slidesToShow, e = b.options.infinite === !0 ? b.options.slidesToShow + a : a, b.options.slidesToShow == b.options.slidesToScroll && b.slideCount - a < b.options.slidesToShow ? d.slice(e - (b.options.slidesToShow - f), e + f).addClass("slick-active").attr("aria-hidden", "false") : d.slice(e, e + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false")), "ondemand" === b.options.lazyLoad && b.lazyLoad() 5456 }, b.prototype.setupInfinite = function() { 5457 var c, d, e, b = this; 5458 if (b.options.fade === !0 && (b.options.centerMode = !1), b.options.infinite === !0 && b.options.fade === !1 && (d = null, b.slideCount > b.options.slidesToShow)) { 5459 for (e = b.options.centerMode === !0 ? b.options.slidesToShow + 1 : b.options.slidesToShow, c = b.slideCount; c > b.slideCount - e; c -= 1) d = c - 1, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d - b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned"); 5460 for (c = 0; e > c; c += 1) d = c, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d + b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned"); 5461 b.$slideTrack.find(".slick-cloned").find("[id]").each(function() { 5462 a(this).attr("id", "") 5463 }) 5464 } 5465 }, b.prototype.interrupt = function(a) { 5466 var b = this; 5467 a || b.autoPlay(), b.interrupted = a 5468 }, b.prototype.selectHandler = function(b) { 5469 var c = this, 5470 d = a(b.target).is(".slick-slide") ? a(b.target) : a(b.target).parents(".slick-slide"), 5471 e = parseInt(d.attr("data-slick-index")); 5472 return e || (e = 0), c.slideCount <= c.options.slidesToShow ? (c.setSlideClasses(e), void c.asNavFor(e)) : void c.slideHandler(e) 5473 }, b.prototype.slideHandler = function(a, b, c) { 5474 var d, e, f, g, j, h = null, 5475 i = this; 5476 return b = b || !1, i.animating === !0 && i.options.waitForAnimate === !0 || i.options.fade === !0 && i.currentSlide === a || i.slideCount <= i.options.slidesToShow ? void 0 : (b === !1 && i.asNavFor(a), d = a, h = i.getLeft(d), g = i.getLeft(i.currentSlide), i.currentLeft = null === i.swipeLeft ? g : i.swipeLeft, i.options.infinite === !1 && i.options.centerMode === !1 && (0 > a || a > i.getDotCount() * i.options.slidesToScroll) ? void(i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function() { 5477 i.postSlide(d) 5478 }) : i.postSlide(d))) : i.options.infinite === !1 && i.options.centerMode === !0 && (0 > a || a > i.slideCount - i.options.slidesToScroll) ? void(i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function() { 5479 i.postSlide(d) 5480 }) : i.postSlide(d))) : (i.options.autoplay && clearInterval(i.autoPlayTimer), e = 0 > d ? i.slideCount % i.options.slidesToScroll !== 0 ? i.slideCount - i.slideCount % i.options.slidesToScroll : i.slideCount + d : d >= i.slideCount ? i.slideCount % i.options.slidesToScroll !== 0 ? 0 : d - i.slideCount : d, i.animating = !0, i.$slider.trigger("beforeChange", [i, i.currentSlide, e]), f = i.currentSlide, i.currentSlide = e, i.setSlideClasses(i.currentSlide), i.options.asNavFor && (j = i.getNavTarget(), j = j.slick("getSlick"), j.slideCount <= j.options.slidesToShow && j.setSlideClasses(i.currentSlide)), i.updateDots(), i.updateArrows(), i.options.fade === !0 ? (c !== !0 ? (i.fadeSlideOut(f), i.fadeSlide(e, function() { 5481 i.postSlide(e) 5482 })) : i.postSlide(e), void i.animateHeight()) : void(c !== !0 ? i.animateSlide(h, function() { 5483 i.postSlide(e) 5484 }) : i.postSlide(e)))) 5485 }, b.prototype.startLoad = function() { 5486 var a = this; 5487 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.hide(), a.$nextArrow.hide()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.hide(), a.$slider.addClass("slick-loading") 5488 }, b.prototype.swipeDirection = function() { 5489 var a, b, c, d, e = this; 5490 return a = e.touchObject.startX - e.touchObject.curX, b = e.touchObject.startY - e.touchObject.curY, c = Math.atan2(b, a), d = Math.round(180 * c / Math.PI), 0 > d && (d = 360 - Math.abs(d)), 45 >= d && d >= 0 ? e.options.rtl === !1 ? "left" : "right" : 360 >= d && d >= 315 ? e.options.rtl === !1 ? "left" : "right" : d >= 135 && 225 >= d ? e.options.rtl === !1 ? "right" : "left" : e.options.verticalSwiping === !0 ? d >= 35 && 135 >= d ? "down" : "up" : "vertical" 5491 }, b.prototype.swipeEnd = function(a) { 5492 var c, d, b = this; 5493 if (b.dragging = !1, b.interrupted = !1, b.shouldClick = b.touchObject.swipeLength > 10 ? !1 : !0, void 0 === b.touchObject.curX) return !1; 5494 if (b.touchObject.edgeHit === !0 && b.$slider.trigger("edge", [b, b.swipeDirection()]), b.touchObject.swipeLength >= b.touchObject.minSwipe) { 5495 switch (d = b.swipeDirection()) { 5496 case "left": 5497 case "down": 5498 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide + b.getSlideCount()) : b.currentSlide + b.getSlideCount(), b.currentDirection = 0; 5499 break; 5500 case "right": 5501 case "up": 5502 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide - b.getSlideCount()) : b.currentSlide - b.getSlideCount(), b.currentDirection = 1 5503 } 5504 "vertical" != d && (b.slideHandler(c), b.touchObject = {}, b.$slider.trigger("swipe", [b, d])) 5505 } else b.touchObject.startX !== b.touchObject.curX && (b.slideHandler(b.currentSlide), b.touchObject = {}) 5506 }, b.prototype.swipeHandler = function(a) { 5507 var b = this; 5508 if (!(b.options.swipe === !1 || "ontouchend" in document && b.options.swipe === !1 || b.options.draggable === !1 && -1 !== a.type.indexOf("mouse"))) switch (b.touchObject.fingerCount = a.originalEvent && void 0 !== a.originalEvent.touches ? a.originalEvent.touches.length : 1, b.touchObject.minSwipe = b.listWidth / b.options.touchThreshold, b.options.verticalSwiping === !0 && (b.touchObject.minSwipe = b.listHeight / b.options.touchThreshold), a.data.action) { 5509 case "start": 5510 b.swipeStart(a); 5511 break; 5512 case "move": 5513 b.swipeMove(a); 5514 break; 5515 case "end": 5516 b.swipeEnd(a) 5517 } 5518 }, b.prototype.swipeMove = function(a) { 5519 var d, e, f, g, h, b = this; 5520 return h = void 0 !== a.originalEvent ? a.originalEvent.touches : null, !b.dragging || h && 1 !== h.length ? !1 : (d = b.getLeft(b.currentSlide), b.touchObject.curX = void 0 !== h ? h[0].pageX : a.clientX, b.touchObject.curY = void 0 !== h ? h[0].pageY : a.clientY, b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curX - b.touchObject.startX, 2))), b.options.verticalSwiping === !0 && (b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curY - b.touchObject.startY, 2)))), e = b.swipeDirection(), "vertical" !== e ? (void 0 !== a.originalEvent && b.touchObject.swipeLength > 4 && a.preventDefault(), g = (b.options.rtl === !1 ? 1 : -1) * (b.touchObject.curX > b.touchObject.startX ? 1 : -1), b.options.verticalSwiping === !0 && (g = b.touchObject.curY > b.touchObject.startY ? 1 : -1), f = b.touchObject.swipeLength, b.touchObject.edgeHit = !1, b.options.infinite === !1 && (0 === b.currentSlide && "right" === e || b.currentSlide >= b.getDotCount() && "left" === e) && (f = b.touchObject.swipeLength * b.options.edgeFriction, b.touchObject.edgeHit = !0), b.options.vertical === !1 ? b.swipeLeft = d + f * g : b.swipeLeft = d + f * (b.$list.height() / b.listWidth) * g, b.options.verticalSwiping === !0 && (b.swipeLeft = d + f * g), b.options.fade === !0 || b.options.touchMove === !1 ? !1 : b.animating === !0 ? (b.swipeLeft = null, !1) : void b.setCSS(b.swipeLeft)) : void 0) 5521 }, b.prototype.swipeStart = function(a) { 5522 var c, b = this; 5523 return b.interrupted = !0, 1 !== b.touchObject.fingerCount || b.slideCount <= b.options.slidesToShow ? (b.touchObject = {}, !1) : (void 0 !== a.originalEvent && void 0 !== a.originalEvent.touches && (c = a.originalEvent.touches[0]), b.touchObject.startX = b.touchObject.curX = void 0 !== c ? c.pageX : a.clientX, b.touchObject.startY = b.touchObject.curY = void 0 !== c ? c.pageY : a.clientY, void(b.dragging = !0)) 5524 }, b.prototype.unfilterSlides = b.prototype.slickUnfilter = function() { 5525 var a = this; 5526 null !== a.$slidesCache && (a.unload(), a.$slideTrack.children(this.options.slide).detach(), a.$slidesCache.appendTo(a.$slideTrack), a.reinit()) 5527 }, b.prototype.unload = function() { 5528 var b = this; 5529 a(".slick-cloned", b.$slider).remove(), b.$dots && b.$dots.remove(), b.$prevArrow && b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.remove(), b.$nextArrow && b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.remove(), b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "") 5530 }
5530, b.prototype.unslick = function(a) { 5531 var b = this; 5532 b.$slider.trigger("unslick", [b, a]), b.destroy() 5533 }, b.prototype.updateArrows = function() { 5534 var b, a = this; 5535 b = Math.floor(a.options.slidesToShow / 2), a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && !a.options.infinite && (a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === a.currentSlide ? (a.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - a.options.slidesToShow && a.options.centerMode === !1 ? (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - 1 && a.options.centerMode === !0 && (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))) 5536 }, b.prototype.updateDots = function() { 5537 var a = this; 5538 null !== a.$dots && (a.$dots.find("li").removeClass("slick-active").attr("aria-hidden", "true"), a.$dots.find("li").eq(Math.floor(a.currentSlide / a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden", "false")) 5539 }, b.prototype.visibility = function() { 5540 var a = this; 5541 a.options.autoplay && (document[a.hidden] ? a.interrupted = !0 : a.interrupted = !1) 5542 }, a.fn.slick = function() { 5543 var f, g, a = this, 5544 c = arguments[0], 5545 d = Array.prototype.slice.call(arguments, 1), 5546 e = a.length; 5547 for (f = 0; e > f; f++) 5548 if ("object" == typeof c || "undefined" == typeof c ? a[f].slick = new b(a[f], c) : g = a[f].slick[c].apply(a[f].slick, d), "undefined" != typeof g) return g; 5549 return a 5550 } 5551}); 5552 5553//CountDown 5554var module, countdown = function(v) { 5555 function A(a, b) { 5556 var c = a.getTime(); 5557 a.setMonth(a.getMonth() + b); 5558 return Math.round((a.getTime() - c) / 864E5) 5559 } 5560 5561 function w(a) { 5562 var b = a.getTime(), 5563 c = new Date(b); 5564 c.setMonth(a.getMonth() + 1); 5565 return Math.round((c.getTime() - b) / 864E5) 5566 } 5567 5568 function x(a, b) { 5569 b = b instanceof Date || null !== b && isFinite(b) ? new Date(+b) : new Date; 5570 if (!a) return b; 5571 var c = +a.value || 0; 5572 if (c) return b.setTime(b.getTime() + c), b; 5573 (c = +a.milliseconds || 0) && b.setMilliseconds(b.getMilliseconds() + c); 5574 (c = +a.seconds || 0) && b.setSeconds(b.getSeconds() + 5575 c); 5576 (c = +a.minutes || 0) && b.setMinutes(b.getMinutes() + c); 5577 (c = +a.hours || 0) && b.setHours(b.getHours() + c); 5578 (c = +a.weeks || 0) && (c *= 7); 5579 (c += +a.days || 0) && b.setDate(b.getDate() + c); 5580 (c = +a.months || 0) && b.setMonth(b.getMonth() + c); 5581 (c = +a.millennia || 0) && (c *= 10); 5582 (c += +a.centuries || 0) && (c *= 10); 5583 (c += +a.decades || 0) && (c *= 10); 5584 (c += +a.years || 0) && b.setFullYear(b.getFullYear() + c); 5585 return b 5586 } 5587 5588 function D(a, b) { 5589 return y(a) + (1 === a ? p[b] : q[b]) 5590 } 5591 5592 function n() {} 5593 5594 function k(a, b, c, e, l, d) { 5595 0 <= a[c] && (b += a[c], delete a[c]); 5596 b /= l; 5597 if (1 >= b + 1) return 0; 5598 if (0 <= a[e]) { 5599 a[e] = +(a[e] + b).toFixed(d); 5600 switch (e) { 5601 case "seconds": 5602 if (60 !== a.seconds || isNaN(a.minutes)) break; 5603 a.minutes++; 5604 a.seconds = 0; 5605 case "minutes": 5606 if (60 !== a.minutes || isNaN(a.hours)) break; 5607 a.hours++; 5608 a.minutes = 0; 5609 case "hours": 5610 if (24 !== a.hours || isNaN(a.days)) break; 5611 a.days++; 5612 a.hours = 0; 5613 case "days": 5614 if (7 !== a.days || isNaN(a.weeks)) break; 5615 a.weeks++; 5616 a.days = 0; 5617 case "weeks": 5618 if (a.weeks !== w(a.refMonth) / 7 || isNaN(a.months)) break; 5619 a.months++; 5620 a.weeks = 0; 5621 case "months": 5622 if (12 !== a.months || isNaN(a.years)) break; 5623 a.years++; 5624 a.months = 0; 5625 case "years": 5626 if (10 !== 5627 a.years || isNaN(a.decades)) break; 5628 a.decades++; 5629 a.years = 0; 5630 case "decades": 5631 if (10 !== a.decades || isNaN(a.centuries)) break; 5632 a.centuries++; 5633 a.decades = 0; 5634 case "centuries": 5635 if (10 !== a.centuries || isNaN(a.millennia)) break; 5636 a.millennia++; 5637 a.centuries = 0 5638 } 5639 return 0 5640 } 5641 return b 5642 } 5643 5644 function B(a, b, c, e, l, d) { 5645 var f = new Date; 5646 a.start = b = b || f; 5647 a.end = c = c || f; 5648 a.units = e; 5649 a.value = c.getTime() - b.getTime(); 5650 0 > a.value && (f = c, c = b, b = f); 5651 a.refMonth = new Date(b.getFullYear(), b.getMonth(), 15, 12, 0, 0); 5652 try { 5653 a.millennia = 0; 5654 a.centuries = 0; 5655 a.decades = 0; 5656 a.years = c.getFullYear() - 5657 b.getFullYear(); 5658 a.months = c.getMonth() - b.getMonth(); 5659 a.weeks = 0; 5660 a.days = c.getDate() - b.getDate(); 5661 a.hours = c.getHours() - b.getHours(); 5662 a.minutes = c.getMinutes() - b.getMinutes(); 5663 a.seconds = c.getSeconds() - b.getSeconds(); 5664 a.milliseconds = c.getMilliseconds() - b.getMilliseconds(); 5665 var g; 5666 0 > a.milliseconds ? (g = s(-a.milliseconds / 1E3), a.seconds -= g, a.milliseconds += 1E3 * g) : 1E3 <= a.milliseconds && (a.seconds += m(a.milliseconds / 1E3), a.milliseconds %= 1E3); 5667 0 > a.seconds ? (g = s(-a.seconds / 60), a.minutes -= g, a.seconds += 60 * g) : 60 <= a.seconds && (a.minutes +=
vendor: 4,655 bytes, lines 5668-5746
5668 m(a.seconds / 60), a.seconds %= 60); 5669 0 > a.minutes ? (g = s(-a.minutes / 60), a.hours -= g, a.minutes += 60 * g) : 60 <= a.minutes && (a.hours += m(a.minutes / 60), a.minutes %= 60); 5670 0 > a.hours ? (g = s(-a.hours / 24), a.days -= g, a.hours += 24 * g) : 24 <= a.hours && (a.days += m(a.hours / 24), a.hours %= 24); 5671 for (; 0 > a.days;) a.months--, a.days += A(a.refMonth, 1); 5672 7 <= a.days && (a.weeks += m(a.days / 7), a.days %= 7); 5673 0 > a.months ? (g = s(-a.months / 12), a.years -= g, a.months += 12 * g) : 12 <= a.months && (a.years += m(a.months / 12), a.months %= 12); 5674 10 <= a.years && (a.decades += m(a.years / 10), a.years %= 5675 10, 10 <= a.decades && (a.centuries += m(a.decades / 10), a.decades %= 10, 10 <= a.centuries && (a.millennia += m(a.centuries / 10), a.centuries %= 10))); 5676 b = 0; 5677 !(e & 1024) || b >= l ? (a.centuries += 10 * a.millennia, delete a.millennia) : a.millennia && b++; 5678 !(e & 512) || b >= l ? (a.decades += 10 * a.centuries, delete a.centuries) : a.centuries && b++; 5679 !(e & 256) || b >= l ? (a.years += 10 * a.decades, delete a.decades) : a.decades && b++; 5680 !(e & 128) || b >= l ? (a.months += 12 * a.years, delete a.years) : a.years && b++; 5681 !(e & 64) || b >= l ? (a.months && (a.days += A(a.refMonth, a.months)), delete a.months, 5682 7 <= a.days && (a.weeks += m(a.days / 7), a.days %= 7)) : a.months && b++; 5683 !(e & 32) || b >= l ? (a.days += 7 * a.weeks, delete a.weeks) : a.weeks && b++; 5684 !(e & 16) || b >= l ? (a.hours += 24 * a.days, delete a.days) : a.days && b++; 5685 !(e & 8) || b >= l ? (a.minutes += 60 * a.hours, delete a.hours) : a.hours && b++; 5686 !(e & 4) || b >= l ? (a.seconds += 60 * a.minutes, delete a.minutes) : a.minutes && b++; 5687 !(e & 2) || b >= l ? (a.milliseconds += 1E3 * a.seconds, delete a.seconds) : a.seconds && b++; 5688 if (!(e & 1) || b >= l) { 5689 var h = k(a, 0, "milliseconds", "seconds", 1E3, d); 5690 if (h && (h = k(a, h, "seconds", "minutes", 60, d)) && (h = 5691 k(a, h, "minutes", "hours", 60, d)) && (h = k(a, h, "hours", "days", 24, d)) && (h = k(a, h, "days", "weeks", 7, d)) && (h = k(a, h, "weeks", "months", w(a.refMonth) / 7, d))) { 5692 e = h; 5693 var n, p = a.refMonth, 5694 q = p.getTime(), 5695 r = new Date(q); 5696 r.setFullYear(p.getFullYear() + 1); 5697 n = Math.round((r.getTime() - q) / 864E5); 5698 if (h = k(a, e, "months", "years", n / w(a.refMonth), d)) 5699 if (h = k(a, h, "years", "decades", 10, d)) 5700 if (h = k(a, h, "decades", "centuries", 10, d)) 5701 if (h = k(a, h, "centuries", "millennia", 10, d)) throw Error("Fractional unit overflow"); 5702 } 5703 } 5704 } finally { 5705 delete a.refMonth 5706 } 5707 return a 5708 } 5709 5710 function d(a, b, c, e, d) { 5711 var f; 5712 c = +c || 222; 5713 e = 0 < e ? e : NaN; 5714 d = 0 < d ? 20 > d ? Math.round(d) : 20 : 0; 5715 var k = null; 5716 "function" === typeof a ? (f = a, a = null) : a instanceof Date || (null !== a && isFinite(a) ? a = new Date(+a) : ("object" === typeof k && (k = a), a = null)); 5717 var g = null; 5718 "function" === typeof b ? (f = b, b = null) : b instanceof Date || (null !== b && isFinite(b) ? b = new Date(+b) : ("object" === typeof b && (g = b), b = null)); 5719 k && (a = x(k, b)); 5720 g && (b = x(g, a)); 5721 if (!a && !b) return new n; 5722 if (!f) return B(new n, a, b, c, e, d); 5723 var k = c & 1 ? 1E3 / 30 : c & 2 ? 1E3 : c & 4 ? 6E4 : c & 8 ? 36E5 : c & 16 ? 864E5 : 6048E5, 5724 h, g = function() { 5725 f(B(new n, a, b, c, e, d), h) 5726 }; 5727 g(); 5728 return h = setInterval(g, k) 5729 } 5730 var s = Math.ceil, 5731 m = Math.floor, 5732 p, q, r, t, u, f, y, z; 5733 n.prototype.toString = function(a) { 5734 var b = z(this), 5735 c = b.length; 5736 if (!c) return a ? "" + a : u; 5737 if (1 === c) return b[0]; 5738 a = r + b.pop(); 5739 return b.join(t) + a 5740 }; 5741 n.prototype.toHTML = function(a, b) { 5742 a = a || "span"; 5743 var c = z(this), 5744 e = c.length; 5745 if (!e) return (b = b || u) ? "\x3c" + a + "\x3e" + b + "\x3c/" + a + "\x3e" : b; 5746 for (var d = 0; d < e; d++) c[d] = "\x3c" + a + "\x3e" + c[d] + "\x3c/" + a + "\x3e";
5747 if (1 === e) return c[0]; 5748 e = r + c.pop(); 5749 return c.join(t) + e 5750 }; 5751 n.prototype.addTo = 5752 function(a) { 5753 return x(this, a) 5754 }; 5755 z = function(a) { 5756 var b = [], 5757 c = a.millennia; 5758 c && b.push(f(c, 10)); 5759 (c = a.centuries) && b.push(f(c, 9)); 5760 (c = a.decades) && b.push(f(c, 8)); 5761 (c = a.years) && b.push(f(c, 7)); 5762 (c = a.months) && b.push(f(c, 6)); 5763 (c = a.weeks) && b.push(f(c, 5)); 5764 (c = a.days) && b.push(f(c, 4)); 5765 (c = a.hours) && b.push(f(c, 3)); 5766 (c = a.minutes) && b.push(f(c, 2)); 5767 (c = a.seconds) && b.push(f(c, 1)); 5768 (c = a.milliseconds) && b.push(f(c, 0)); 5769 return b 5770 }; 5771 d.MILLISECONDS = 1; 5772 d.SECONDS = 2; 5773 d.MINUTES = 4; 5774 d.HOURS = 8; 5775 d.DAYS = 16; 5776 d.WEEKS = 32; 5777 d.MONTHS = 64; 5778 d.YEARS = 128; 5779 d.DECADES = 256; 5780 d.CENTURIES = 512; 5781 d.MILLENNIA = 1024; 5782 d.DEFAULTS = 222; 5783 d.ALL = 2047; 5784 var E = d.setFormat = function(a) { 5785 if (a) { 5786 if ("singular" in a || "plural" in a) { 5787 var b = a.singular || []; 5788 b.split && (b = b.split("|")); 5789 var c = a.plural || []; 5790 c.split && (c = c.split("|")); 5791 for (var d = 0; 10 >= d;
5791 d++) p[d] = b[d] || p[d], q[d] = c[d] || q[d] 5792 } 5793 "string" === typeof a.last && (r = a.last); 5794 "string" === typeof a.delim && (t = a.delim); 5795 "string" === typeof a.empty && (u = a.empty); 5796 "function" === typeof a.formatNumber && (y = a.formatNumber); 5797 "function" === typeof a.formatter && (f = a.formatter) 5798 } 5799 }, 5800 C = d.resetFormat = 5801 function() { 5802 p = " millisecond; second; minute; hour; day; week; month; year; decade; century; millennium".split(";"); 5803 q = " milliseconds; seconds; minutes; hours; days; weeks; months; years; decades; centuries; millennia".split(";"); 5804 r = " and "; 5805 t = ", "; 5806 u = ""; 5807 y = function(a) { 5808 return a 5809 }; 5810 f = D 5811 }; 5812 d.setLabels = function(a, b, c, d, f, k, m) { 5813 E({ 5814 singular: a, 5815 plural: b, 5816 last: c, 5817 delim: d, 5818 empty: f, 5819 formatNumber: k, 5820 formatter: m 5821 }) 5822 }; 5823 d.resetLabels = C; 5824 C(); 5825 v && v.exports ? v.exports = d : "function" === typeof window.define && "undefined" !== typeof window.define.amd && 5826 window.define("countdown", [], function() { 5827 return d 5828 }); 5829 return d 5830}(module); 5831 5832 5833 5834! function(t) { 5835 var i = t(window); 5836 t.fn.visible = function(t, e, o) { 5837 if (!(this.length < 1)) { 5838 var r = this.length > 1 ? this.eq(0) : this, 5839 n = r.get(0), 5840 f = i.width(), 5841 h = i.height(), 5842 o = o ? o : "both", 5843 l = e === !0 ? n.offsetWidth * n.offsetHeight : !0; 5844 if ("function" == typeof n.getBoundingClientRect) { 5845 var g = n.getBoundingClientRect(), 5846 u = g.top >= 0 && g.top < h, 5847 s = g.bottom > 0 && g.bottom <= h, 5848 c = g.left >= 0 && g.left < f, 5849 a = g.right > 0 && g.right <= f, 5850 v = t ? u || s : u && s, 5851 b = t ? c || a : c && a; 5852 if ("both" === o) return l && v && b; 5853 if ("vertical" === o) return l && v; 5854 if ("horizontal" === o) return l && b 5855 } else { 5856 var d = i.scrollTop(), 5857 p = d + h, 5858 w = i.scrollLeft(), 5859 m = w + f, 5860 y = r.offset(), 5861 z = y.top, 5862 B = z + r.height(), 5863 C = y.left, 5864 R = C + r.width(), 5865 j = t === !0 ? B : z, 5866 q = t === !0 ? z : B, 5867 H = t === !0 ? R : C, 5868 L = t === !0 ? C : R; 5869 if ("both" === o) return !!l && p >= q && j >= d && m >= L && H >= w; 5870 if ("vertical" === o) return !!l && p >= q && j >= d; 5871 if ("horizontal" === o) return !!l && m >= L && H >= w 5872 } 5873 } 5874 } 5875}(jQuery); 5876 5877 5878/*! 5879 * pagepiling.js 1.5.4 5880 * 5881 * https://github.com/alvarotrigo/pagePiling.js 5882 * MIT licensed 5883 * 5884 * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo 5885 */ 5886! function(a, b, c, d) { 5887 "use strict"; 5888 a.fn.pagepiling = function(e) { 5889 function s(a) { 5890 a.addClass("pp-table").wrapInner('<div class="pp-tableCell" style="height:100%" />') 5891 } 5892 5893 function t(b) { 5894 var c = a(".pp-section.active").index(".pp-section"), 5895 d = b.index(".pp-section"); 5896 return c > d ? "up" : "down" 5897 } 5898 5899 function u(b, c) { 5900 var d = { 5901 destination: b, 5902 animated: c, 5903 activeSection: a(".pp-section.active"), 5904 anchorLink: b.data("anchor"), 5905 sectionIndex: b.index(".pp-section"), 5906 toMove: b, 5907 yMovement: t(b), 5908 leavingSection: a(".pp-section.active").index(".pp-section") + 1 5909 }; 5910 if (!d.activeSection.is(b)) { 5911 "undefined" == typeof d.animated && (d.animated = !0), "undefined" != typeof d.anch
5911orLink && B(d.anchorLink, d.sectionIndex), d.destination.addClass("active").siblings().removeClass("active"), d.sectionsToMove = x(d), "down" === d.yMovement ? (d.translate3d = aa(), d.scrolling = "", q.css3 || d.sectionsToMove.each(function(b) { 5912 b != d.activeSection.index(".pp-section") && a(this).css(z(d.scrolling)) 5913 }), d.animateSection = d.activeSection) : (d.translate3d = "", d.scrolling = "0", d.animateSection = b), a.isFunction(q.onLeave) && q.onLeave.call(this, d.leavingSection, d.sectionIndex + 1, d.yMovement), v(d), $(d.anchorLink), Z(d.anchorLink, d.sectionIndex), h = d.anchorLink; 5914 var e = (new Date).getTime(); 5915 i = e 5916 } 5917 } 5918 5919 function v(b) { 5920 q.css3 ? (H(b.animateSection, b.translate3d, b.animated), b.sectionsToMove.each(function() { 5921 H(a(this), b.translate3d, b.animated) 5922 }), setTimeout(function() { 5923 w(b) 5924 }, q.scrollingSpeed)) : (b.scrollOptions = z(b.scrolling), b.animated ? b.animateSection.animate(b.scrollOptions, q.scrollingSpeed, q.easing, function() { 5925 y(b), w(b) 5926 }) : (b.animateSection.css(z(b.scrolling)), setTimeout(function() { 5927 y(b), w(b) 5928 }, 400))) 5929 } 5930 5931 function w(b) { 5932 a.isFunction(q.afterLoad) && q.afterLoad.call(this, b.anchorLink, b.sectionIndex + 1) 5933 } 5934 5935 function x(b) { 5936 var c; 5937 return c = "down" === b.yMovement ? a(".pp-section").map(function(c) { 5938 if (c < b.destination.index(".pp-section")) return a(this) 5939 }) : a(".pp-section").map(function(c) { 5940 if (c > b.destination.index(".pp-section")) return a(this) 5941 }) 5942 } 5943 5944 function y(b) { 5945 "up" === b.yMovement && b.sectionsToMove.each(function(c) { 5946 a(this).css(z(b.scrolling)) 5947 }) 5948 } 5949 5950 function z(a) { 5951 return "vertical" === q.direction ? { 5952 top: a 5953 } : { 5954 left: a 5955 } 5956 } 5957 5958 function B(a, b) { 5959 q.anchors.length ? (location.hash = a, C(location.hash)) : C(String(b)) 5960 } 5961 5962 function C(b) { 5963 b = b.replace("#", ""), a("body")[0].className = a("body")[0].className.replace(/\b\s?pp-viewing-[^\s]+\b/g, ""), a("body").addClass("pp-viewing-" + b) 5964 } 5965 5966 function D() { 5967 var d = c.location.hash.replace("#", ""), 5968 e = d, 5969 f = a(b).find('.pp-section[data-anchor="' + e + '"]'); 5970 f.length > 0 && u(f, q.animateAnchor) 5971 } 5972 5973 function E() { 5974 var a = (new Date).getTime(); 5975 return a - i < p + q.scrollingSpeed 5976 } 5977 5978 function F() { 5979 var d = c.location.hash.replace("#", "").split("/"), 5980 e = d[0]; 5981 if (e.length && e && e !== h) { 5982 var f; 5983 f = isNaN(e) ? a(b).find('[data-anchor="' + e + '"]') : a(".pp-section").eq(e - 1), u(f) 5984 } 5985 } 5986 5987 function G(a) { 5988 return { 5989 "-webkit-transform": a, 5990 "-moz-transform": a, 5991 "-ms-transform": a, 5992 transform: a 5993 } 5994 } 5995 5996 function H(a, b, c) { 5997 a.toggleClass("pp-easing", c), a.css(G(b)) 5998 } 5999 6000 function J(b) { 6001 var d = (new Date).getTime(); 6002 b = b || c.event; 6003 var e = b.wheelDelta || -b.deltaY || -b.detail, 6004 f = Math.max(-1, Math.min(1, e)), 6005 g = "undefined" != typeof b.wheelDeltaX || "undefined" != typeof b.deltaX, 6006 h = Math.abs(b.wheelDeltaX) < Math.abs(b.wheelDelta) || Math.abs(b.deltaX) < Math.abs(b.deltaY) || !g; 6007 o.length > 149 && o.shift(), o.push(Math.abs(e)); 6008 var i = d - I; 6009 if (I = d, i > 200 && (o = []), !E()) { 6010 var j = a(".pp-section.active"), 6011 k = N(j), 6012 l = K(o, 10), 6013 m = K(o, 70), 6014 n = l >= m; 6015 return n && h && (f < 0 ? L("down", k) : f > 0 && L("up", k)), !1 6016 } 6017 } 6018 6019 function K(a, b) { 6020 for (var c = 0, d = a.slice(Math.max(a.length - b, 1)), e = 0; e < d.length; e++) c += d[e]; 6021 return Math.ceil(c / b) 6022 } 6023 6024 function L(a, b) { 6025 var c, d; 6026 if ("down" == a ? (c = "bottom", d = f.moveSectionDown) : (c = "to
6026p", d = f.moveSectionUp), b.length > 0) { 6027 if (!M(c, b)) return !0; 6028 d() 6029 } else d() 6030 } 6031 6032 function M(a, b) { 6033 return "top" === a ? !b.scrollTop() : "bottom" === a ? b.scrollTop() + 1 + b.innerHeight() >= b[0].scrollHeight : void 0 6034 } 6035 6036 function N(a) { 6037 return a.filter(".pp-scrollable") 6038 } 6039 6040 function O() { 6041 g.get(0).addEventListener ? (g.get(0).removeEventListener("mousewheel", J, !1), g.get(0).removeEventListener("wheel", J, !1)) : g.get(0).detachEvent("onmousewheel", J) 6042 } 6043 6044 function P() { 6045 g.get(0).addEventListener ? (g.get(0).addEventListener("mousewheel", J, !1), g.get(0).addEventListener("wheel", J, !1)) : g.get(0).attachEvent("onmousewheel", J) 6046 } 6047 6048 function Q() { 6049 if (j) { 6050 var a = S(); 6051 g.off("touchstart " + a.down).on("touchstart " + a.down, V), g.off("touchmove " + a.move).on("touchmove " + a.move, W) 6052 } 6053 } 6054 6055 function R() { 6056 if (j) { 6057 var a = S(); 6058 g.off("touchstart " + a.down), g.off("touchmove " + a.move) 6059 } 6060 } 6061 6062 function S() { 6063 var a; 6064 return a = c.PointerEvent ? { 6065 down: "pointerdown", 6066 move: "pointermove", 6067 up: "pointerup" 6068 } : { 6069 down: "MSPointerDown", 6070 move: "MSPointerMove", 6071 up: "MSPointerUp" 6072 } 6073 } 6074 6075 function T(a) { 6076 var b = new Array; 6077 return b.y = "undefined" != typeof a.pageY && (a.pageY || a.pageX) ? a.pageY : a.touches[0].pageY, b.x = "undefined" != typeof a.pageX && (a.pageY || a.pageX) ? a.pageX : a.touches[0].pageX, b 6078 } 6079 6080 function U(a) { 6081 return "undefined" == typeof a.pointerType || "mouse" != a.pointerType 6082 } 6083 6084 function V(a) { 6085 var b = a.originalEvent; 6086 if (U(b)) { 6087 var c = T(b); 6088 k = c.y, l = c.x 6089 } 6090 } 6091 6092 function W(b) { 6093 var c = b.originalEvent; 6094 if (!X(b.target) && U(c)) { 6095 var d = a(".pp-section.active"), 6096 e = N(d); 6097 if (e.length || b.preventDefault(), !E()) { 6098 var f = T(c); 6099 m = f.y, n = f.x, "horizontal" === q.direction && Math.abs(l - n) > Math.abs(k - m) ? Math.abs(l - n) > g.width() / 100 * q.touchSensitivity && (l > n ? L("down", e) : n > l && L("up", e)) : Math.abs(k - m) > g.height() / 100 * q.touchSensitivity && (k > m ? L("down", e) : m > k && L("up", e)) 6100 } 6101 } 6102 } 6103 6104 function X(b, c) { 6105 c = c || 0; 6106 var d = a(b).parent(); 6107 return !!(c < q.normalScrollElementTouchThreshold && d.is(q.normalScrollElements)) || c != q.normalScrollElementTouchThreshold && X(d, ++c) 6108 } 6109 6110 function Y() { 6111 a("body").append('<div id="pp-nav"><ul></ul></div>'); 6112 var b = a("#pp-nav"); 6113 b.css("color", q.navigation.textColor), b.addClass(q.navigation.position); 6114 for (var c = 0; c < a(".pp-section").length; c++) { 6115 var d = ""; 6116 if (q.anchors.length && (d = q.anchors[c]), "undefined" !== q.navigation.tooltips) { 6117 var e = q.navigation.tooltips[c]; 6118 "undefined" == typeof e && (e = "") 6119 } 6120 b.find("ul").append('<li data-tooltip="' + e + '"><a href="#' + d + '"><span></span></a></li>') 6121 } 6122 b.find("span").css("border-color", q.navigation.bulletsColor) 6123 } 6124 6125 function Z(b, c) { 6126 q.navigation && (a("#pp-nav").find(".active").removeClass("active"), b ? a("#pp-nav").find('a[href="#' + b + '"]').addClass("active") : a("#pp-nav").find("li").eq(c).find("a").addClass("active")) 6127 } 6128 6129 function $(b) { 6130 q.menu && (a(q.menu).find(".active").removeClass("active"), a(q.menu).find('[data-menuanchor="' + b + '"]').addClass("active")) 6131 } 6132 6133 function _() { 6134 var e, a = b.createElement("p"), 6135 f = { 6136 webkitTransform: "-webkit-transform", 6137 OTransform: "-o-transform", 6138 msTransform: "-ms-transform", 6139 MozTransform: "-moz-transform", 6140 transform: "transform" 6141 }; 6142 b.body.insertBefore(a, null); 6143 for (var g in f) a.style[g] !== d && (a.style[g] = "", e = c.getComputedStyle(a).getPropertyValue(f[g])); 6144 return b.body.removeChild(a), e !== d && e.length > 0 && "none" !== e 6145 } 6146 6147 function aa() {} 6148 var h, f = a.fn.pagepiling, 6149 g = a(this), 6150 i = 0, 6151 j = "ontouchstart" in c || navigator.msMaxTouchPoints > 0 || navigator.maxTouchPoints, 6152 k = 0, 6153 l = 0, 6154 m = 0, 6155 n = 0, 6156 o = [], 6157 p = 600, 6158 q = a.extend(!0, { 6159 direction: "vertical", 6160 menu: null, 6161 verticalCentered: !0, 6162 sectionsColor: [], 6163 anchors: [], 6164 scrollingSpeed: 700, 6165 easing: "easeInQuart", 6166 loopBottom: !1, 6167 loopTop: !1, 6168 css3: !0, 6169 navigation: { 6170 textColor: "#000", 6171 bulletsColor: "#000", 6172 position: "right", 6173 tooltips: [] 6174 }, 6175 normalScrollElements: null, 6176 normalScrollElementTouchThreshold: 5, 6177 touchSensitivity: 5, 6178 keyboardScrolling: !0, 6179 sectionSelector: ".section", 6180 animateAnchor: !1, 6181 afterLoad: null, 6182 onLeave: null, 6183 afterRender: null 6184 }, e); 6185 a.extend(a.easing, { 6186 easeInQuart: function(a, b, c, d, e) { 6187 return d * (b /= e) * b * b * b + c 6188 } 6189 }), f.setScrollingSpeed = function(a) { 6190 q.scrollingSpeed = a 6191 }, f.setMouseWheelScrolling = function(a) { 6192 a ? P() : O() 6193 }, f.setAllowScrolling = function(a) { 6194 a ? (f.setMouseWheelScrolling(!0), Q()) : (f.setMouseWheelScrolling(!1), R()) 6195 }, f.setKeyboardScrolling = function(a) { 6196 q.keyboardScrolling = a 6197 }, f.moveSectionUp = function() { 6198 var b = a(".pp-section.active").prev(".pp-section"); 6199 !b.length && q.loopTop && (b = a(".pp-section").last()), b.length && u(b) 6200 }, f.moveSectionDown = function() { 6201 var b = a(".pp-section.active").next(".pp-section"); 6202 !b.length && q.loopBottom && (b = a(".pp-section").first()), b.length && u(b) 6203 }, f.moveTo = function(c) { 6204 var d = ""; 6205 d = isNaN(c) ? a(b).find('[data-anchor="' + c + '"]') : a(".pp-section").eq(c - 1), d.length > 0 && u(d) 6206 }, a(q.sectionSelector).each(function() { 6207 a(this).addClass("pp-section") 6208 }), q.css3 && (q.css3 = _()), a(g).css({ 6209 overflow: "hidden", 6210 "-ms-touch-action": "none", 6211 "touch-action": "none" 6212 }), f.setAllowScrolling(!0), a.isEmptyObject(q.navigation) || Y(); 6213 var r = a(".pp-section").length; 6214 a(".pp-section").each(function(b) { 6215 a(this).data("data-index", b), a(this).css("z-index", r), b || 0 !== a(".pp-section.active").length || a(this).addClass("active"), "undefined" != typeof q.anchors[b] && a(this).attr("data-anchor", q.anchors[b]), "undefined" != typeof q.sectionsColor[b] && a(this).css("background-color", q.sectionsColor[b]), q.verticalCentered && !a(this).hasClass("pp-scrollable") && s(a(this)), r -= 1 6216 }).promise().done(function() { 6217 q.navigation && (a("#pp-nav").css("margin-top", "-" + a("#pp-nav").height() / 2 + "px"), a("#pp-nav").find("li").eq(a(".pp-section.active").index(".pp-section")).find("a").addClass("active")), a(c).on("load", function() { 6218 D() 6219 }
6219), a.isFunction(q.afterRender) && q.afterRender.call(this) 6220 }), a(c).on("hashchange", F), a(b).keydown(function(b) { 6221 if (q.keyboardScrolling && !E()) switch (b.which) { 6222 case 38: 6223 case 33: 6224 f.moveSectionUp(); 6225 break; 6226 case 40: 6227 case 34: 6228 f.moveSectionDown(); 6229 break; 6230 case 36: 6231 f.moveTo(1); 6232 break; 6233 case 35: 6234 f.moveTo(a(".pp-section").length); 6235 break; 6236 case 37: 6237 f.moveSectionUp(); 6238 break; 6239 case 39: 6240 f.moveSectionDown(); 6241 break; 6242 default: 6243 return 6244 } 6245 }), q.normalScrollElements && (a(b).on("mouseenter", q.normalScrollElements, function() { 6246 f.setMouseWheelScrolling(!1) 6247 }), a(b).on("mouseleave", q.normalScrollElements, function() { 6248 f.setMouseWheelScrolling(!0) 6249 })); 6250 var I = (new Date).getTime(); 6251 a(b).on("click touchstart", "#pp-nav a", function(b) { 6252 b.preventDefault(); 6253 var c = a(this).parent().index(); 6254 u(a(".pp-section").eq(c)) 6255 }), a(b).on({ 6256 mouseenter: function() { 6257 var b = a(this).data("tooltip"); 6258 a('<div class="pp-tooltip ' + q.navigation.position + '">' + b + "</div>").hide().appendTo(a(this)).fadeIn(200) 6259 }, 6260 mouseleave: function() { 6261 a(this).find(".pp-tooltip").fadeOut(200, function() { 6262 a(this).remove() 6263 }) 6264 } 6265 }, "#pp-nav li") 6266 } 6267}(jQuery, document, window); 6268 6269/* 6270 Tilt JS 6271*/ 6272 6273var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 6274 return typeof t 6275} : function(t) { 6276 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 6277}; 6278! function(t) { 6279 "function" == typeof define && define.amd ? define(["jquery"], t) : "object" === ("undefined" == typeof module ? "undefined" : _typeof(module)) && module.exports ? module.exports = function(i, s) { 6280 return void 0 === s && (s = "undefined" != typeof window ? require("jquery") : require("jquery")(i)), t(s), s 6281 } : t(jQuery) 6282}(function(t) { 6283 return t.fn.tilt = function(i) { 6284 var s = function() { 6285 this.ticking || (requestAnimationFrame(g.bind(this)), this.ticking = !0) 6286 }, 6287 e = function() { 6288 var i = this; 6289 t(this).on("mousemove", o), t(this).on("mouseenter", a), this.settings.reset && t(this).on("mouseleave", h), this.settings.glare && t(window).on("resize", u.bind(i)) 6290 }, 6291 n = function() { 6292 var i = this; 6293 void 0 !== this.timeout && clearTimeout(this.timeout), t(this).css({ 6294 transition: this.settings.speed + "ms " + this.settings.easing 6295 }), this.settings.glare && this.glareElement.css({ 6296 transition: "opacity " + this.settings.speed + "ms " + this.settings.easing 6297 }), this.timeout = setTimeout(function() { 6298 t(i).css({ 6299 transition: "" 6300 }), i.settings.glare && i.glareElement.css({ 6301 transition: "" 6302 }) 6303 }, this.settings.speed) 6304 }, 6305 a = function(i) { 6306 this.ticking = !1, t(this).css({ 6307 "will-change": "transform" 6308 }), n.call(this), t(this).trigger("tilt.mouseEnter") 6309 }, 6310 r = function(i) { 6311 return "undefined" == typeof i && (i = { 6312 pageX: t(this).offset().left + t(this).outerWidth() / 2, 6313 pageY: t(this).offset().top + t(this).outerHeight() / 2 6314 }), { 6315 x: i.pageX, 6316 y: i.pageY 6317 } 6318 }, 6319 o = function(t) { 6320 this.mousePositions = r(t), s.call(this) 6321 }, 6322 h = function() { 6323 n.call(this), this.reset = !0, s.call(this), t(this).trigger("tilt.mouseLeave") 6324 }, 6325 l = function() { 6326 var i = t(this).outerWidth(), 6327 s = t(this).outerHeight(), 6328 e = t(this).offset().left, 6329 n = t(this).offset().top, 6330 a = (this.mousePositions.x - e) / i, 6331 r = (this.mousePositions.y - n) / s, 6332 o = (this.settings.maxTilt / 2 - a * this.settings.maxTilt).toFixed(2), 6333 h = (r * this.settings.maxTilt - this.settings.maxTilt / 2).toFixed(2), 6334 l = Math.atan2(this.mousePositions.x - (e + i / 2), -(this.mousePositions.y - (n + s / 2))) * (180 / Math.PI); 6335 return { 6336 tiltX: o, 6337 tiltY: h, 6338 percentageX: 100 * a, 6339 percentageY: 100 * r, 6340 angle: l 6341 } 6342 }, 6343 g = function() { 6344 return this.transforms = l.call(this), this.reset ? (this.reset = !1, t(this).css("transform", "perspective(" + this.settings.perspective + "px) rotateX(0deg) rotateY(0deg)"), void(this.settings.glare && (this.glareElement.css("transform", "rotate(180deg) translate(-50%, -50%)"), this.glareElement.css("opacity", "0")))) : (t(this).css("transform", "perspective(" + this.settings.perspective + "px) rotateX(" + ("x" === this.settings.axis ? 0 : this.transforms.tiltY) + "deg) rotateY(" + ("y" === this.settings.axis ? 0 : this.transforms.tiltX) + "deg) scale3d(" + this.settings.scale + "," + this.settings.scale + "," + this.settings.scale + ")"), this.settings.glare && (this.glareElement.css("transform", "rotate(" + this.transforms.angle + "deg) translate(-50%, -50%)"), this.glareElement.css("opacity", "" + this.transforms.percentageY * this.settings.maxGlare / 100)), t(this).trigger("change", [this.transforms]), void(this.ticking = !1)) 6345 }, 6346 c = function() { 6347 var i = this.settings.glarePrerender; 6348 if (i || t(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'), this.glareElementWrapper = t(this).find(".js-tilt-glare"), this.glareElement = t(this).find(".js-tilt-glare-inner"), !i) { 6349 var s = { 6350 position: "absolute", 6351 top: "0", 6352 left: "0", 6353 width: "100%", 6354 height: "100%" 6355 }; 6356 this.glareElementWrapper.css(s).css({ 6357 overflow: "hidden" 6358 }), this.glareElement.css({ 6359 position: "absolute", 6360 top: "50%", 6361 left: "50%", 6362 "pointer-events": "none", 6363 "background-image": "linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)", 6364 width: "" + 2 * t(this).outerWidth(), 6365 height: "" + 2 * t(this).outerWidth(), 6366 transform: "rotate(180deg) translate(-50%, -50%)", 6367 "transform-origin": "0% 0%", 6368 opacity: "0" 6369 }) 6370 } 6371 }, 6372 u = function() { 6373 this.glareElement.css({ 6374 width: "" + 2 * t(this).outerWidth(), 6375 height: "" + 2 * t(this).outerWidth() 6376 }) 6377 }; 6378 return t.fn.tilt.destroy = function() { 6379 t(this).each(function() { 6380 t(this).find(".js-tilt-glare").remove(), t(this).css({ 6381 "will-change": "", 6382 transform: "" 6383 }), t(this).off("mousemove mouseenter mouseleave") 6384 }) 6385 }, t.fn.tilt.getValues = function() { 6386 var i = []; 6387 return t(this).each(function() { 6388 this.mousePositions = r.call(this), i.push(l.call(this)) 6389 }), i 6390 }, t.fn.tilt.reset = function() { 6391 t(this).each(function() { 6392 var i = this; 6393 this.mousePositions = r.call(this), this.settings = t(this).data("settings"), h.call(this), setTimeout(function() { 6394 i.reset = !1 6395 }, this.settings.transition) 6396 }) 6397 }, this.each(function() { 6398 var s = this; 6399 this.settings = t.extend({ 6400 maxTilt: t(this).is("[data-tilt-max]") ? t(this).data("tilt-max") : 20, 6401 perspective: t(this).is("[data-tilt-perspective]") ? t(this).data("tilt-perspective") : 300, 6402 easing: t(this).is("[data-tilt-easing]") ? t(this).data("tilt-easing") : "cubic-bezier(.03,.98,.52,.99)", 6403 scale: t(this).is("[data-tilt-scale]") ? t(this).data("tilt-scale") : "1", 6404 speed: t(this).is("[data-tilt-speed]") ? t(this).data("tilt-speed") : "400", 6405 transition: !t(this).is("[data-tilt-transition]") || t(this).data("tilt-transition"), 6406 axis: t(this).is("[data-tilt-axis]") ? t(this).data("tilt-axis") : null, 6407 reset: !t(this).is("[data-tilt-reset]") || t(this).data("tilt-reset"), 6408 glare: !!t(this).is("[data-tilt-glare]") && t(this).data("tilt-glare"), 6409 maxGlare: t(this).is("[data-tilt-maxglare]") ? t(this).data("tilt-maxglare") : 1 6410 }, i), this.init = function() { 6411 t(s).data("settings", s.settings), s.settings.glare && c.call(s), e.call(s) 6412 }, this.init() 6413 }) 6414 }, t("[data-tilt]").tilt(), !0 6415}); 6416 6417 6418 6419 6420! function(t, n) { 6421 var o = function(t, o) { 6422 var i = this; 6423 i.el = t, i.$el = n(t), i.options = o 6424 }; 6425 o.prototype = { 6426 defaults: { 6427 data: [], 6428 backend: !1 6429 }, 6430 init: function() { 6431 var t = this; 6432 if (t.hotspot = n.extend({}, t.defaults, t.options), 0 == t.hotspot.backend && t.frontendStyleMaker(), 1 == t.hotspot.backend) { 6433 t.$el.find(".syn-hotspot-imgwrapper").click(function(n) { 6434 t.backendAddHotspot(n) 6435 }), t.$el.append('<div class="syn-hotspot-editctn syn-elem-popup syn-centerhv syn-transition-4" data-situation="hidden" data-editing-id=""> \t\t<div class="syn-hotspot-edithead syn-hotspot-editsection">Edit Tooltip Content <div class="syn-popup-closer syn-popup-close syn-centerv">✗</div></div>\t\t\t\t\t\t<div class="syn-hotspot-editcontent syn-hotspot-editsection">\t\t\t\t\t\t\t<div class="syn-hotspot-editlabel">Title</div>\t\t\t\t\t\t\t<div><input type="text" class="syn-hotspot-edit-input syn-hotspot-titleinp syn-transition-4"></div>\t\t\t\t\t\t\t<div class="syn-hotspot-editlabel">Message</div>\t\t\t\t\t\t\t<div><textarea class="syn-hotspot-edit-input syn-hotspot-infoinp syn-transition-4"></textarea></div>\t\t\t\t\t\t\t<div class="syn-hotspot-editlabel">Tooltip Position</div>\t\t\t\t\t\t\t<div><select class="syn-hotspot-edit-input syn-hotspot-positioninp syn-transition-4"><option value="bottom">Bottom</option><option value="top">Top</option><option value="lefttop">Left Top</option><option value="leftcenter">Left Center</option><option value="leftbottom">Left Bottom</option><option value="righttop">Right Top</option><option value="rightcenter">Right Center</option><option value="rightbottom">Right Bottom</option></select>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="syn-hotspot-editbuttons"> \t\t\t\t\t\t\t<div class="syn-hotspot-editbtn syn-save syn-transition-4 syn-back-btn" data-bxs-small-h>Save Changes</div> \t\t\t\t\t\t\t<div class="syn-hotspot-editbtn syn-transition-4 syn-back-btn syn-popup-close" data-bxs-small-h>Cancel</div> \t\t\t\t\t\t</div> \t\t\t\t\t</div>'); 6436 var o = t.$el.parents(".syn-elem-parent").find(".syn-fake-input").val(); 6437 if ("" != n.trim(o)) { 6438 var i = JSON.parse(o); 6439 if ("" != n.trim(i.data)) { 6440 var s = JSON.parse(i.data);
6441 t.hotspot.data = [], s.forEach(function(n, o) { 6442 n = JSON.parse(n), t.hotspot.data.push(n), t.backendPrintHotspot(n, "hidden") 6443 }) 6444 } 6445 } 6446 t.closePopup() 6447 } 6448 return t 6449 }, 6450 frontendStyleMaker: function() { 6451 var t = this, 6452 o = "", 6453 i = t.$el.parents(".syn-hotspot-container"), 6454 s = JSON.parse(i.attr("data-marker-data")), 6455 e = JSON.parse(i.attr("data-tooltip-data")), 6456 a = JSON.parse(i.attr("data-hotspot")); 6457 o += ".syn-hotspot-itemfront .syn-hotspot-marker{background:" + s.markerBackground + "; color:" + s.markerColor + "; }", o += ".syn-hotspot-contentbig .syn-hotspot-content{color:" + s.markerColor + "; background:" + e.tooltipBackground + "}.syn-hotspot-contentbig .syn-hotspot-title{color:" + e.tooltipTitleColor + ";" + e.tooltipTitleFontSize + " " + e.tooltipTitleFontStyle + "}.syn-hotspot-contentbig .syn-hotspot-info{color:" + e.tooltipInfoColor + ";" + e.tooltipInfoFontSize + "}"; 6458 var d = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], 6459 p = ""; 6460 "plussign" == s.markerType && (p = "+"), a.forEach(function(n, o) { 6461 "alphabet" == s.markerType && (p = d[o]), "numbers" == s.markerType && (p = o + 1), t.printHotspot(n, p, e.tooltipShowEvent, e.tooltipAnimation) 6462 }), n("style[data-sayenstyle]").length || n("head").append('<style type="text/css" media="screen" data-sayenstyle="sayen"></style>'), n('style[data-sayenstyle="sayen"]').append(o) 6463 }, 6464 printHotspot: function(t, n, o, i) { 6465 var s = this; 6466 s.$el.append('<div class="syn-hotspot-contentbig syn-elem-isalign " data-position="' + t.position + '" style="left:' + t.left + "%; top:" + t.top + '%;"> \t<div class="syn-hotspot-item syn-hotspot-itemfront syn-elem-isbxsh" data-id="' + t.theID + '" style="left:' + t.left + "%; top:" + t.top + '%;">\t\t\t\t\t<div class="syn-hotspot-marker syn-elem-idrounded"><div class="syn-hotspot-markerinsider">' + n + '</div></div></div><div class="syn-hotspot-contentanim syn-animated-elem syn-transition-3" data-animation="' + i + '" data-situation="hidden"><div class="syn-hotspot-contentctn" ><div class="syn-hotspot-content"><div class="syn-hotspot-closer syn-closer"><i class="km-icon-close2"></i></div>\t\t\t\t\t\t<div class="syn-hotspot-title">' + t.title + '</div>\t\t\t\t\t\t<div class="syn-hotspot-info">' + t.info + "</div>\t\t\t\t\t</div></div></div></div>"), s.frontendShowItem(o) 6467 }, 6468 frontendShowItemHoverResponsive: function(t) { 6469 this.$el 6470 }, 6471 frontendShowItem: function(o) { 6472 var i = this, 6473 s = i.$el; 6474 s.find(".syn-hotspot-closer").unbind("click").click(function() { 6475 var t = n(this).parents(".syn-hotspot-contentbig").find(".syn-hotspot-contentctn"); 6476 i.frontendTooltipChangeSituation(t) 6477 }), "click" != o && "hover" != o || s.find(".syn-hotspot-contentbig").unbind("click").click(function() { 6478 if (n(t).width() < 850 || "click" == o) { 6479 console.log("s"); 6480 var e = n(this).find(".syn-hotspot-contentanim"); 6481 s.find(".syn-hotspot-contentanim").not(e).attr({ 6482 "data-situation": "hidden" 6483 }), i.frontendTooltipChangeSituation(e) 6484 } 6485 }), "hover" == o && s.find(".syn-hotspot-contentbig").unbind("hover").hover(function() { 6486 if (n(t).width() > 850) { 6487 var o = n(this).find(".syn-hotspot-contentanim"); 6488 i.frontendTooltipChangeSituation(o) 6489 } 6490 }) 6491 }, 6492 frontendTooltipChangeSituation: function(t) { 6493 "hidden" == n.trim(t.attr("data-situation")) ? t.attr({ 6494 "data-situation": "shown" 6495 }) : "shown" == n.trim(t.attr("data-situation")) && t.attr({ 6496 "data-situation": "hidden" 6497 }) 6498 }, 6499 generateID: function(t) { 6500 for (var n = "", o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = 0; i < t; i++) n += o.charAt(Math.floor(Math.random() * o.length)); 6501 return n 6502 }, 6503 backendPrintHotspot: function(t, n) { 6504 var o = this; 6505 o.$el.append('<div class="syn-hotspot-item syn-hotspot-edititem" data-id="' + t.theID + '" data-hoverstyle="" data-situation="' + n + '" style="left:' + t.left + "%; top:" + t.top + '%;">\t\t\t\t\t<div class="syn-hotspot-marker syn-closer"></div><div class="syn-hotspot-content syn-hotspot-contentbackend syn-transition-4"><div class="syn-hotspot-closer syn-closer"><i class="km-icon-close2"></i></div>\t\t\t\t\t\t<div class="syn-hotspot-title">' + t.title + '</div>\t\t\t\t\t\t<div class="syn-hotspot-info">' + t.info + '</div>\t\t\t\t\t\t<div class="syn-hotspot-btn syn-hotspot-btnicon syn-hotspot-btndelete" title="Delete" style="color:#d14836;"><i class="km-icon-trash"></i></div> <div class="syn-hotspot-btn syn-hotspot-btnicon syn-hotspot-btnedit" title="Edit" style="color:#2196f3;"><i class="km-icon-pencil2"></i></div>\t\t\t\t\t</div></div>'), o.backendShowTooltip(), o.backendSavePopup(), o.bakendEditPopup(), o.backendDeleteItem() 6506 }, 6507 backendAddHotspot: function(t) { 6508 var n = this, 6509 o = n.$el, 6510 i = o.offset(), 6511 s = n.generateID(7), 6512 e = { 6513 theID: s, 6514 left: 100 * (t.pageX - i.left) / o.width(), 6515 top: 100 * (t.pageY - i.top) / o.height(), 6516 title: "", 6517 info: "", 6518 position: "bottom" 6519 }; 6520 n.hotspot.data.push(e), n.backendPrintHotspot(e, "shown"), o.find(".syn-hotspot-editctn").attr({ 6521 "data-situation": "shown", 6522 "data-editing-id": s 6523 }), o.find(".syn-hotspot-edit-input").val(""), n.backendFakeJson() 6524 }, 6525 bakendEditPopup: function() { 6526 var t = this, 6527 o = t.$el; 6528 o.find(".syn-hotspot-btnedit").unbind().click(function() { 6529 var i = n(this).parents(".syn-hotspot-edititem").attr("data-id"), 6530 s = t.backendGetSingleElement(i)[0]; 6531 o.find(".syn-hotspot-titleinp").val(s.title), o.find(".syn-hotspot-infoinp").val(s.info), o.find(".syn-hotspot-positioninp").val(s.position), o.find(".syn-hotspot-editctn").attr({ 6532 "data-situation": "shown", 6533 "data-editing-id": i 6534 }) 6535 }) 6536 }, 6537 closePopup: function() { 6538 var t = this.$el; 6539 t.find(".syn-popup-close").unbind().click(function() { 6540 t.find(".syn-hotspot-editctn").attr({ 6541 "data-situation": "hidden", 6542 "data-editing-id": "" 6543 }).find(".syn-hotspot-edit-input").val("") 6544 }) 6545 }, 6546 backendSavePopup: function() { 6547 var t = this, 6548 n = t.$el; 6549 n.find(".syn-hotspot-editbtn.syn-save").unbind().click(function() { 6550 var o = n.find(".syn-hotspot-editctn.syn-elem-popup").attr("data-editing-id"), 6551 i = n.find(".syn-hotspot-titleinp").val(), 6552 s = n.find(".syn-hotspot-infoinp").val(), 6553 e = n.find(".syn-hotspot-positioninp").val(), 6554 a = t.backendGetSingleElement(o)[0]; 6555 a.title = i, a.info = s, a.position = e, n.find('.syn-hotspot-edititem[data-id="' + o + '"]').find(".syn-hotspot-title").html(i), n.find('.syn-hotspot-edititem[data-id="' + o + '"]').find(".syn-hotspot-info").html(s), t.backendFakeJson() 6556 }) 6557 }, 6558 backendDeleteItem: function() { 6559 var t = this, 6560 o = t.$el; 6561 o.find(".syn-hotspot-btndelete").unbind().click(function() { 6562 var i = n(this).parents(".syn-hotspot-item").attr("data-id"), 6563 s = t.hotspot.data.indexOf(t.backendGetSingleElement(i)[0]); 6564 t.hotspot.data.splice(s, 1), o.find('.syn-hotspot-edititem[data-id="' + i + '"]').remove(), o.find(".syn-hotspot-editctn").attr({ 6565 "data-situation": "hidden", 6566 "data-editing-id": "" 6567 }).find(".syn-hotspot-edit-input").val(""), t.backendFakeJson() 6568 }) 6569 }, 6570 backendGetSingleElement: function(t) { 6571 var o = this; 6572 return n.grep(o.hotspot.data, function(n) { 6573 return n.theID == t 6574 }) 6575 }, 6576 backendFakeJson: function() { 6577 var t = this, 6578 n = t.$el.parents(".syn-elem-parent").find(".syn-fake-input"), 6579 o = ""; 6580 o = "" != jQuery.trim(n.val()) ? JSON.parse(n.val()) : JSON.parse('{"imageid":"", "data":""}'); 6581 var i = []; 6582 t.hotspot.data.forEach(function(t, n) { 6583 i.push(JSON.stringify(t)) 6584 }), o.data = JSON.stringify(i), n.val(JSON.stringify(o)) 6585 }, 6586 backendShowTooltip: function() { 6587 this.$el.find(".syn-closer").unbind().click(function() { 6588 var t = n(this).parents(".syn-hotspot-edititem"); 6589 "hidden" == n.trim(t.attr("data-situation")) ? t.attr({ 6590 "data-situation": "shown" 6591 }) : "shown" == n.trim(t.attr("data-situation")) && t.attr({ 6592 "data-situation": "hidden" 6593 }) 6594 }) 6595 } 6596 }, o.defaults = o.prototype.defaults, n.fn.sayenhotspot = function(t) { 6597 return this.each(function() { 6598 new o(this, t).init() 6599 }) 6600 }, t.sayenhotspot = o 6601}(window, jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.