1/* 2 _ _ _ _ 3 ___| (_) ___| | __ (_)___ 4/ __| | |/ __| |/ / | / __| 5\__ \ | | (__| < _ | \__ \ 6|___/_|_|\___|_|\_(_)/ |___/ 7 |__/ 8 9 Version: 1.4.1 10 Author: Ken Wheeler 11 Website: http://kenwheeler.github.io 12 Docs: http://kenwheeler.github.io/slick 13 Repo: http://github.com/kenwheeler/slick 14 Issues: http://github.com/kenwheeler/slick/issues 15 16 */ 17 18!(function (a) { 19 "use strict"; 20 "function" == typeof define && define.amd 21 ? define(["jquery"], a) 22 : "undefined" != typeof exports 23 ? (module.exports = a(require("jquery"))) 24 : a(jQuery); 25})(function (a) { 26 "use strict"; 27 var b = window.Slick || {}; 28 (b = (function () { 29 function c(c, d) { 30 var f, 31 g, 32 h, 33 e = this; 34 if ( 35 ((e.defaults = { 36 accessibility: !0, 37 adaptiveHeight: !1, 38 appendArrows: a(c), 39 appendDots: a(c), 40 arrows: !0, 41 asNavFor: null, 42 prevArrow: 43 '<button type="button" data-role="none" class="slick-prev">Previous</button>', 44 nextArrow: 45 '<button type="button" data-role="none" class="slick-next">Next</button>', 46 autoplay: !1, 47 autoplaySpeed: 3e3, 48 centerMode: !1, 49 centerPadding: "50px", 50 cssEase: "ease", 51 customPaging: function (a, b) { 52 return ( 53 '<button type="button" data-role="none">' + (b + 1) + "</button>" 54 ); 55 }, 56 dots: !1, 57 dotsClass: "slick-dots", 58 draggable: !0, 59 easing: "linear", 60 edgeFriction: 0.35, 61 fade: !1, 62 focusOnSelect: !1, 63 infinite: !0, 64 initialSlide: 0, 65 lazyLoad: "ondemand", 66 mobileFirst: !1, 67 pauseOnHover: !0, 68 pauseOnDotsHover: !1, 69 respondTo: "window", 70 responsive: null, 71 rtl: !1, 72 slide: "", 73 slidesToShow: 1, 74 slidesToScroll: 1, 75 speed: 500, 76 swipe: !0, 77 swipeToSlide: !1, 78 touchMove: !0, 79 touchThreshold: 5, 80 useCSS: !0, 81 variableWidth: !1, 82 vertical: !1, 83 waitForAnimate: !0, 84 }), 85 (e.initials = { 86 animating: !1, 87 dragging: !1, 88 autoPlayTimer: null, 89 currentDirection: 0, 90 currentLeft: null, 91 currentSlide: 0, 92 direction: 1, 93 $dots: null, 94 listWidth: null, 95 listHeight: null, 96 loadIndex: 0, 97 $nextArrow: null, 98 $prevArrow: null, 99 slideCount: null, 100 slideWidth: null, 101 $slideTrack: null, 102 $slides: null, 103 sliding: !1, 104 slideOffset: 0, 105 swipeLeft: null, 106 $list: null, 107 touchObject: {}, 108 transformsEnabled: !1, 109 }), 110 a.extend(e, e.initials), 111 (e.activeBreakpoint = null), 112 (e.animType = null), 113 (e.animProp = null), 114 (e.breakpoints = []), 115 (e.breakpointSettings = []), 116 (e.cssTransitions = !1), 117 (e.hidden = "hidden"), 118 (e.paused = !1), 119 (e.positionProp = null), 120 (e.respondTo = null),
121 (e.shouldClick = !0), 122 (e.$slider = a(c)), 123 (e.$slidesCache = null), 124 (e.transformType = null), 125 (e.transitionType = null), 126 (e.visibilityChange = "visibilitychange"), 127 (e.windowWidth = 0), 128 (e.windowTimer = null), 129 (f = a(c).data("slick") || {}), 130 (e.options = a.extend({}, e.defaults, f, d)), 131 (e.currentSlide = e.options.initialSlide), 132 (e.originalSettings = e.options), 133 (g = e.options.responsive || null), 134 g && g.length > -1) 135 ) { 136 e.respondTo = e.options.respondTo || "window"; 137 for (h in g) 138 g.hasOwnProperty(h) && 139 (e.breakpoints.push(g[h].breakpoint), 140 (e.breakpointSettings[g[h].breakpoint] = g[h].settings)); 141 e.breakpoints.sort(function (a, b) { 142 return e.options.mobileFirst === !0 ? a - b : b - a; 143 }); 144 } 145 "undefined" != typeof document.mozHidden 146 ? ((e.hidden = "mozHidden"), 147 (e.visibilityChange = "mozvisibilitychange")) 148 : "undefined" != typeof document.msHidden 149 ? ((e.hidden = "msHidden"), (e.visibilityChange = "msvisibilitychange")) 150 : "undefined" != typeof document.webkitHidden && 151 ((e.hidden = "webkitHidden"), 152 (e.visibilityChange = "webkitvisibilitychange")), 153 (e.autoPlay = a.proxy(e.autoPlay, e)), 154 (e.autoPlayClear = a.proxy(e.autoPlayClear, e)), 155 (e.changeSlide = a.proxy(e.changeSlide, e)), 156 (e.clickHandler = a.proxy(e.clickHandler, e)), 157 (e.selectHandler = a.proxy(e.selectHandler, e)), 158 (e.setPosition = a.proxy(e.setPosition, e)), 159 (e.swipeHandler = a.proxy(e.swipeHandler, e)), 160 (e.dragHandler = a.proxy(e.dragHandler, e)), 161 (e.keyHandler = a.proxy(e.keyHandler, e)), 162 (e.autoPlayIterator = a.proxy(e.autoPlayIterator, e)), 163 (e.instanceUid = b++), 164 (e.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/), 165 e.init(), 166 e.checkResponsive(!0); 167 } 168 var b = 0; 169 return c; 170 })()), 171 (b.prototype.addSlide = b.prototype.slickAdd = 172 function (b, c, d) { 173 var e = this; 174 if ("boolean" == typeof c) (d = c), (c = null); 175 else if (0 > c || c >= e.slideCount) return !1; 176 e.unload(), 177 "number" == typeof c 178 ? 0 === c && 0 === e.$slides.length 179 ? a(b).appendTo(e.$slideTrack) 180 : d 181 ? a(b).insertBefore(e.$slides.eq(c)) 182 : a(b).insertAfter(e.$slides.eq(c)) 183 : d === !0 184 ? a(b).prependTo(e.$slideTrack) 185 : a(b).appendTo(e.$slideTrack), 186 (e.$slides = e.$slideTrack.children(this.options.slide)), 187 e.$slideTrack.children(this.options.slide).detach(), 188 e.$slideTrack.append(e.$slides), 189 e.$slides.each(function (b, c) { 190 a(c).attr("data-slick-index", b); 191 }), 192 (e.$slidesCache = e.$slides), 193 e.reinit(); 194 }), 195 (b.prototype.animateHeight = function () { 196 var a = this; 197 if ( 198 1 === a.options.slidesToShow && 199 a.options.adaptiveHeight === !0 && 200 a.options.vertical === !1 201 ) { 202 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 203 a.$list.animate({ height: b }, a.options.speed); 204 } 205 }), 206 (b.prototype.animateSlide = function (b, c) { 207 var d = {}, 208 e = this; 209 e.animateHeight(), 210 e.options.rtl === !0 && e.options.vertical === !1 && (b = -b), 211 e.transformsEnabled === !1 212 ? e.options.vertical === !1 213 ? e.$slideTrack.animate( 214 { left: b }, 215 e.options.speed, 216 e.options.easing, 217 c 218 ) 219 : e.$slideTrack.animate( 220 { top: b }, 221 e.options.speed, 222 e.options.easing, 223 c 224 ) 225 : e.cssTransitions === !1 226 ? (e.options.rtl === !0 && (e.currentLeft = -e.currentLeft), 227 a({ animStart: e.currentLeft }).animate( 228 { animStart: b }, 229 { 230 duration: e.options.speed, 231 easing: e.options.easing, 232 step: function (a) { 233 (a = Math.ceil(a)), 234 e.options.vertical === !1 235 ? ((d[e.animType] = "translate(" + a + "px, 0px)"), 236 e.$slideTrack.css(d)) 237 : ((d[e.animType] = "translate(0px," + a + "px)"), 238 e.$slideTrack.css(d)); 239 }, 240 complete: function () { 241 c && c.call(); 242 }, 243 } 244 )) 245 : (e.applyTransition(),
246 (b = Math.ceil(b)), 247 (d[e.animType] = 248 e.options.vertical === !1 249 ? "translate3d(" + b + "px, 0px, 0px)" 250 : "translate3d(0px," + b + "px, 0px)"), 251 e.$slideTrack.css(d), 252 c && 253 setTimeout(function () { 254 e.disableTransition(), c.call(); 255 }, e.options.speed)); 256 }), 257 (b.prototype.asNavFor = function (b) { 258 var c = this, 259 d = 260 null !== c.options.asNavFor 261 ? a(c.options.asNavFor).slick("getSlick") 262 : null; 263 null !== d && d.slideHandler(b, !0); 264 }), 265 (b.prototype.applyTransition = function (a) { 266 var b = this, 267 c = {}; 268 (c[b.transitionType] = 269 b.options.fade === !1 270 ? b.transformType + " " + b.options.speed + "ms " + b.options.cssEase 271 : "opacity " + b.options.speed + "ms " + b.options.cssEase), 272 b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c); 273 }), 274 (b.prototype.autoPlay = function () { 275 var a = this; 276 a.autoPlayTimer && clearInterval(a.autoPlayTimer), 277 a.slideCount > a.options.slidesToShow && 278 a.paused !== !0 && 279 (a.autoPlayTimer = setInterval( 280 a.autoPlayIterator, 281 a.options.autoplaySpeed 282 )); 283 }), 284 (b.prototype.autoPlayClear = function () { 285 var a = this; 286 a.autoPlayTimer && clearInterval(a.autoPlayTimer); 287 }), 288 (b.prototype.autoPlayIterator = function () { 289 var a = this; 290 a.options.infinite === !1 291 ? 1 === a.direction 292 ? (a.currentSlide + 1 === a.slideCount - 1 && (a.direction = 0), 293 a.slideHandler(a.currentSlide + a.options.slidesToScroll)) 294 : (0 === a.currentSlide - 1 && (a.direction = 1), 295 a.slideHandler(a.currentSlide - a.options.slidesToScroll)) 296 : a.slideHandler(a.currentSlide + a.options.slidesToScroll); 297 }), 298 (b.prototype.buildArrows = function () { 299 var b = this; 300 b.options.arrows === !0 && 301 b.slideCount > b.options.slidesToShow && 302 ((b.$prevArrow = a(b.options.prevArrow)), 303 (b.$nextArrow = a(b.options.nextArrow)), 304 b.htmlExpr.test(b.options.prevArrow) && 305 b.$prevArrow.appendTo(b.options.appendArrows), 306 b.htmlExpr.test(b.options.nextArrow) && 307 b.$nextArrow.appendTo(b.options.appendArrows), 308 b.options.infinite !== !0 && b.$prevArrow.addClass("slick-disabled")); 309 }), 310 (b.prototype.buildDots = function () { 311 var c, 312 d, 313 b = this; 314 if (b.options.dots === !0 && b.slideCount > b.options.slidesToShow) { 315 for ( 316 d = '<ul class="' + b.options.dotsClass + '">', c = 0; 317 c <= b.getDotCount(); 318 c += 1 319 ) 320 d += "<li>" + b.options.customPaging.call(this, b, c) + "</li>"; 321 (d += "</ul>"), 322 (b.$dots = a(d).appendTo(b.options.appendDots)), 323 b.$dots.find("li").first().addClass("slick-active"); 324 } 325 }), 326 (b.prototype.buildOut = function () { 327 var b = this; 328 (b.$slides = b.$slider 329 .children(b.options.slide + ":not(.slick-cloned)") 330 .addClass("slick-slide")), 331 (b.slideCount = b.$slides.length), 332 b.$slides.each(function (b, c) { 333 a(c).attr("data-slick-index", b); 334 }), 335 (b.$slidesCache = b.$slides), 336 b.$slider.addClass("slick-slider"), 337 (b.$slideTrack = 338 0 === b.slideCount 339 ? a('<div class="slick-track"/>').appendTo(b.$slider) 340 : b.$slides.wrapAll('<div class="slick-track"/>').parent()), 341 (b.$list = b.$slideTrack.wrap('<div class="slick-list"/>').parent()), 342 b.$slideTrack.css("opacity", 0), 343 (b.options.centerMode === !0 || b.options.swipeToSlide === !0) && 344 (b.options.slidesToScroll = 1), 345 a("img[data-lazy]", b.$slider).not("[src]").addClass("slick-loading"), 346 b.setupInfinite(), 347 b.buildArrows(), 348 b.buildDots(), 349 b.updateDots(), 350 b.options.accessibility === !0 && b.$list.prop("tabIndex", 0), 351 b.setSlideClasses( 352 "number" == typeof this.currentSlide ? this.currentSlide : 0 353 ), 354 b.options.draggable === !0 && b.$list.addClass("draggable"); 355 }), 356 (b.prototype.checkResponsive = function (b) { 357 var d, 358 e, 359 f, 360 c = this, 361 g = c.$slider.width(), 362 h = window.innerWidth || a(window).width(); 363 if ( 364 ("window" === c.respondTo 365 ? (f = h) 366 : "slider" === c.respondTo 367 ? (f = g) 368 : "min" === c.respondTo && (f = Math.min(h, g)), 369 c.originalSettings.responsive && 370 c.originalSettings.responsive.length > -1 && 371 null !== c.originalSettings.responsive) 372 ) { 373 e = null; 374 for (d in c.breakpoints) 375 c.breakpoints.hasOwnProperty(d) && 376 (c.originalSettings.mobileFirst === !1 377 ? f < c.breakpoints[d] && (e = c.breakpoints[d]) 378 : f > c.breakpoints[d] && (e = c.breakpoints[d])); 379 null !== e 380 ? null !== c.activeBreakpoint 381 ? e !== c.activeBreakpoint && 382 ((c.activeBreakpoint = e), 383 "unslick" === c.breakpointSettings[e] 384 ? c.unslick() 385 : ((c.options = a.extend( 386 {}, 387 c.originalSettings, 388 c.breakpointSettings[e] 389 )), 390 b === !0 && (c.currentSlide = c.options.initialSlide),
391 c.refresh())) 392 : ((c.activeBreakpoint = e), 393 "unslick" === c.breakpointSettings[e] 394 ? c.unslick() 395 : ((c.options = a.extend( 396 {}, 397 c.originalSettings, 398 c.breakpointSettings[e] 399 )), 400 b === !0 && (c.currentSlide = c.options.initialSlide), 401 c.refresh())) 402 : null !== c.activeBreakpoint && 403 ((c.activeBreakpoint = null), 404 (c.options = c.originalSettings), 405 b === !0 && (c.currentSlide = c.options.initialSlide), 406 c.refresh()); 407 } 408 }), 409 (b.prototype.changeSlide = function (b, c) { 410 var f, 411 g, 412 h, 413 d = this, 414 e = a(b.target); 415 switch ( 416 (e.is("a") && b.preventDefault(), 417 (h = 0 !== d.slideCount % d.options.slidesToScroll), 418 (f = h 419 ? 0 420 : (d.slideCount - d.currentSlide) % d.options.slidesToScroll), 421 b.data.message) 422 ) { 423 case "previous": 424 (g = 0 === f ? d.options.slidesToScroll : d.options.slidesToShow - f), 425 d.slideCount > d.options.slidesToShow && 426 d.slideHandler(d.currentSlide - g, !1, c); 427 break; 428 case "next": 429 (g = 0 === f ? d.options.slidesToScroll : f), 430 d.slideCount > d.options.slidesToShow && 431 d.slideHandler(d.currentSlide + g, !1, c); 432 break; 433 case "index": 434 var i = 435 0 === b.data.index 436 ? 0 437 : b.data.index || 438 a(b.target).parent().index() * d.options.slidesToScroll; 439 d.slideHandler(d.checkNavigable(i), !1, c); 440 break; 441 default: 442 return; 443 } 444 }), 445 (b.prototype.checkNavigable = function (a) { 446 var c, 447 d, 448 b = this; 449 if (((c = b.getNavigableIndexes()), (d = 0), a > c[c.length - 1])) 450 a = c[c.length - 1]; 451 else 452 for (var e in c) { 453 if (a < c[e]) { 454 a = d; 455 break; 456 } 457 d = c[e]; 458 } 459 return a; 460 }), 461 (b.prototype.clickHandler = function (a) { 462 var b = this; 463 b.shouldClick === !1 && 464 (a.stopImmediatePropagation(), a.stopPropagation(), a.preventDefault()); 465 }), 466 (b.prototype.destroy = function () { 467 var b = this; 468 b.autoPlayClear(), 469 (b.touchObject = {}), 470 a(".slick-cloned", b.$slider).remove(), 471 b.$dots && b.$dots.remove(), 472 b.$prevArrow && 473 "object" != typeof b.options.prevArrow && 474 b.$prevArrow.remove(), 475 b.$nextArrow && 476 "object" != typeof b.options.nextArrow && 477 b.$nextArrow.remove(), 478 b.$slides 479 .removeClass("slick-slide slick-active slick-center slick-visible") 480 .removeAttr("data-slick-index") 481 .css({ 482 position: "", 483 left: "", 484 top: "", 485 zIndex: "", 486 opacity: "", 487 width: "", 488 }), 489 b.$slider.removeClass("slick-slider"), 490 b.$slider.removeClass("slick-initialized"), 491 b.$list.off(".slick"), 492 a(window).off(".slick-" + b.instanceUid), 493 a(document).off(".slick-" + b.instanceUid), 494 b.$slider.html(b.$slides); 495 }), 496 (b.prototype.disableTransition = function (a) { 497 var b = this, 498 c = {}; 499 (c[b.transitionType] = ""), 500 b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c); 501 }), 502 (b.prototype.fadeSlide = function (a, b) { 503 var c = this; 504 c.cssTransitions === !1 505 ? (c.$slides.eq(a).css({ zIndex: 1e3 }), 506 c.$slides 507 .eq(a) 508 .animate({ opacity: 1 }, c.options.speed, c.options.easing, b)) 509 : (c.applyTransition(a), 510 c.$slides.eq(a).css({ opacity: 1, zIndex: 1e3 }), 511 b && 512 setTimeout(function () { 513 c.disableTransition(a), b.call(); 514 }, c.options.speed)); 515 }),
516 (b.prototype.filterSlides = b.prototype.slickFilter = 517 function (a) { 518 var b = this; 519 null !== a && 520 (b.unload(), 521 b.$slideTrack.children(this.options.slide).detach(), 522 b.$slidesCache.filter(a).appendTo(b.$slideTrack), 523 b.reinit()); 524 }), 525 (b.prototype.getCurrent = b.prototype.slickCurrentSlide = 526 function () { 527 var a = this; 528 return a.currentSlide; 529 }), 530 (b.prototype.getDotCount = function () { 531 var a = this, 532 b = 0, 533 c = 0, 534 d = 0; 535 if (a.options.infinite === !0) 536 d = Math.ceil(a.slideCount / a.options.slidesToScroll); 537 else if (a.options.centerMode === !0) d = a.slideCount; 538 else 539 for (; b < a.slideCount; ) 540 ++d, 541 (b = c + a.options.slidesToShow), 542 (c += 543 a.options.slidesToScroll <= a.options.slidesToShow 544 ? a.options.slidesToScroll 545 : a.options.slidesToShow); 546 return d - 1; 547 }), 548 (b.prototype.getLeft = function (a) { 549 var c, 550 d, 551 f, 552 b = this, 553 e = 0; 554 return ( 555 (b.slideOffset = 0), 556 (d = b.$slides.first().outerHeight()), 557 b.options.infinite === !0 558 ? (b.slideCount > b.options.slidesToShow && 559 ((b.slideOffset = -1 * b.slideWidth * b.options.slidesToShow), 560 (e = -1 * d * b.options.slidesToShow)), 561 0 !== b.slideCount % b.options.slidesToScroll && 562 a + b.options.slidesToScroll > b.slideCount && 563 b.slideCount > b.options.slidesToShow && 564 (a > b.slideCount 565 ? ((b.slideOffset = 566 -1 * 567 (b.options.slidesToShow - (a - b.slideCount)) * 568 b.slideWidth), 569 (e = -1 * (b.options.slidesToShow - (a - b.slideCount)) * d)) 570 : ((b.slideOffset = 571 ((-1 * b.slideCount) % b.options.slidesToScroll) * 572 b.slideWidth), 573 (e = ((-1 * b.slideCount) % b.options.slidesToScroll) * d)))) 574 : a + b.options.slidesToShow > b.slideCount && 575 ((b.slideOffset = 576 (a + b.options.slidesToShow - b.slideCount) * b.slideWidth), 577 (e = (a + b.options.slidesToShow - b.slideCount) * d)), 578 b.slideCount <= b.options.slidesToShow && 579 ((b.slideOffset = 0), (e = 0)), 580 b.options.centerMode === !0 && b.options.infinite === !0 581 ? (b.slideOffset += 582 b.slideWidth * Math.floor(b.options.slidesToShow / 2) - 583 b.slideWidth) 584 : b.options.centerMode === !0 && 585 ((b.slideOffset = 0), 586 (b.slideOffset += 587 b.slideWidth * Math.floor(b.options.slidesToShow / 2))), 588 (c = 589 b.options.vertical === !1 590 ? -1 * a * b.slideWidth + b.slideOffset 591 : -1 * a * d + e), 592 b.options.variableWidth === !0 && 593 ((f = 594 b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 595 ? b.$slideTrack.children(".slick-slide").eq(a) 596 : b.$slideTrack 597 .children(".slick-slide") 598 .eq(a + b.options.slidesToShow)), 599 (c = f[0] ? -1 * f[0].offsetLeft : 0), 600 b.options.centerMode === !0 && 601 ((f = 602 b.options.infinite === !1 603 ? b.$slideTrack.children(".slick-slide").eq(a) 604 : b.$slideTrack 605 .children(".slick-slide") 606 .eq(a + b.options.slidesToShow + 1)), 607 (c = f[0] ? -1 * f[0].offsetLeft : 0), 608 (c += (b.$list.width() - f.outerWidth()) / 2))), 609 c 610 ); 611 }), 612 (b.prototype.getOption = b.prototype.slickGetOption = 613 function (a) { 614 var b = this; 615 return b.options[a]; 616 }), 617 (b.prototype.getNavigableIndexes = function () { 618 var e, 619 a = this, 620 b = 0, 621 c = 0, 622 d = []; 623 for ( 624 a.options.infinite === !1 625 ? ((e = a.slideCount - a.options.slidesToShow + 1), 626 a.options.centerMode === !0 && (e = a.slideCount)) 627 : ((b = -1 * a.slideCount), 628 (c = -1 * a.slideCount), 629 (e = 2 * a.slideCount)); 630 e > b; 631 632 ) 633 d.push(b), 634 (b = c + a.options.slidesToScroll), 635 (c += 636 a.options.slidesToScroll <= a.options.slidesToShow 637 ? a.options.slidesToScroll 638 : a.options.slidesToShow); 639 return d; 640 }), 641 (b.prototype.getSlick = function () { 642 return this; 643 }), 644 (b.prototype.getSlideCount = function () { 645 var c, 646 d, 647 e, 648 b = this; 649 return ( 650 (e = 651 b.options.centerMode === !0 652 ? b.slideWidth * Math.floor(b.options.slidesToShow / 2) 653 : 0), 654 b.options.swipeToSlide === !0 655 ? (b.$slideTrack.find(".slick-slide").each(function (c, f) { 656 return f.offsetLeft - e + a(f).outerWidth() / 2 > -1 * b.swipeLeft 657 ? ((d = f), !1) 658 : void 0; 659 }), 660 (c = Math.abs(a(d).attr("data-slick-index") - b.currentSlide) || 1)) 661 : b.options.slidesToScroll 662 ); 663 }), 664 (b.prototype.goTo = b.prototype.slickGoTo = 665 function (a, b) { 666 var c = this; 667 c.changeSlide({ data: { message: "index", index: parseInt(a) } }, b); 668 }), 669 (b.prototype.init = function () { 670 var b = this; 671 a(b.$slider).hasClass("slick-initialized") || 672 (a(b.$slider).addClass("slick-initialized"),
673 b.buildOut(), 674 b.setProps(), 675 b.startLoad(), 676 b.loadSlider(), 677 b.initializeEvents(), 678 b.updateArrows(), 679 b.updateDots()), 680 b.$slider.trigger("init", [b]); 681 }), 682 (b.prototype.initArrowEvents = function () { 683 var a = this; 684 a.options.arrows === !0 && 685 a.slideCount > a.options.slidesToShow && 686 (a.$prevArrow.on("click.slick", { message: "previous" }, a.changeSlide), 687 a.$nextArrow.on("click.slick", { message: "next" }, a.changeSlide)); 688 }), 689 (b.prototype.initDotEvents = function () { 690 var b = this; 691 b.options.dots === !0 && 692 b.slideCount > b.options.slidesToShow && 693 a("li", b.$dots).on("click.slick", { message: "index" }, b.changeSlide), 694 b.options.dots === !0 && 695 b.options.pauseOnDotsHover === !0 && 696 b.options.autoplay === !0 && 697 a("li", b.$dots) 698 .on("mouseenter.slick", function () { 699 (b.paused = !0), b.autoPlayClear(); 700 }) 701 .on("mouseleave.slick", function () { 702 (b.paused = !1), b.autoPlay(); 703 }); 704 }), 705 (b.prototype.initializeEvents = function () { 706 var b = this; 707 b.initArrowEvents(), 708 b.initDotEvents(), 709 b.$list.on( 710 "touchstart.slick mousedown.slick", 711 { action: "start" }, 712 b.swipeHandler 713 ), 714 b.$list.on( 715 "touchmove.slick mousemove.slick", 716 { action: "move" }, 717 b.swipeHandler 718 ), 719 b.$list.on( 720 "touchend.slick mouseup.slick", 721 { action: "end" }, 722 b.swipeHandler 723 ), 724 b.$list.on(
725 "touchcancel.slick mouseleave.slick", 726 { action: "end" }, 727 b.swipeHandler 728 ), 729 b.$list.on("click.slick", b.clickHandler), 730 b.options.autoplay === !0 && 731 (a(document).on(b.visibilityChange, function () { 732 b.visibility(); 733 }), 734 b.options.pauseOnHover === !0 && 735 (b.$list.on("mouseenter.slick", function () { 736 (b.paused = !0), b.autoPlayClear(); 737 }), 738 b.$list.on("mouseleave.slick", function () { 739 (b.paused = !1), b.autoPlay(); 740 }))), 741 b.options.accessibility === !0 && 742 b.$list.on("keydown.slick", b.keyHandler), 743 b.options.focusOnSelect === !0 && 744 a(b.$slideTrack).children().on("click.slick", b.selectHandler), 745 a(window).on( 746 "orientationchange.slick.slick-" + b.instanceUid, 747 function () { 748 b.checkResponsive(), b.setPosition(); 749 } 750 ), 751 a(window).on("resize.slick.slick-" + b.instanceUid, function () { 752 a(window).width() !== b.windowWidth && 753 (clearTimeout(b.windowDelay), 754 (b.windowDelay = window.setTimeout(function () { 755 (b.windowWidth = a(window).width()), 756 b.checkResponsive(), 757 b.setPosition(); 758 }, 50))); 759 }), 760 a("*[draggable!=true]", b.$slideTrack).on("dragstart", function (a) { 761 a.preventDefault(); 762 }), 763 a(window).on("load.slick.slick-" + b.instanceUid, b.setPosition), 764 a(document).on("ready.slick.slick-" + b.instanceUid, b.setPosition); 765 }), 766 (b.prototype.initUI = function () { 767 var a = this; 768 a.options.arrows === !0 && 769 a.slideCount > a.options.slidesToShow && 770 (a.$prevArrow.show(), a.$nextArrow.show()), 771 a.options.dots === !0 && 772 a.slideCount > a.options.slidesToShow && 773 a.$dots.show(), 774 a.options.autoplay === !0 && a.autoPlay(); 775 }), 776 (b.prototype.keyHandler = function (a) { 777 var b = this; 778 37 === a.keyCode && b.options.accessibility === !0 779 ? b.changeSlide({ data: { message: "previous" } }) 780 : 39 === a.keyCode && 781 b.options.accessibility === !0 && 782 b.changeSlide({ data: { message: "next" } }); 783 }), 784 (b.prototype.lazyLoad = function () { 785 function g(b) { 786 a("img[data-lazy]", b).each(function () { 787 var b = a(this), 788 c = a(this).attr("data-lazy"); 789 b.load(function () { 790 b.animate({ opacity: 1 }, 200); 791 }) 792 .css({ opacity: 0 }) 793 .attr("src", c) 794 .removeAttr("data-lazy") 795 .removeClass("slick-loading"); 796 }); 797 } 798 var c, 799 d, 800 e, 801 f, 802 b = this; 803 b.options.centerMode === !0 804 ? b.options.infinite === !0 805 ? ((e = b.currentSlide + (b.options.slidesToShow / 2 + 1)), 806 (f = e + b.options.slidesToShow + 2)) 807 : ((e = Math.max( 808 0, 809 b.currentSlide - (b.options.slidesToShow / 2 + 1) 810 )), 811 (f = 2 + (b.options.slidesToShow / 2 + 1) + b.currentSlide)) 812 : ((e = b.options.infinite 813 ? b.options.slidesToShow + b.currentSlide 814 : b.currentSlide), 815 (f = e + b.options.slidesToShow), 816 b.options.fade === !0 && (e > 0 && e--, f <= b.slideCount && f++)), 817 (c = b.$slider.find(".slick-slide").slice(e, f)), 818 g(c), 819 b.slideCount <= b.options.slidesToShow 820 ? ((d = b.$slider.find(".slick-slide")), g(d)) 821 : b.currentSlide >= b.slideCount - b.options.slidesToShow 822 ? ((d = b.$slider 823 .find(".slick-cloned") 824 .slice(0, b.options.slidesToShow)), 825 g(d)) 826 : 0 === b.currentSlide && 827 ((d = b.$slider 828 .find(".slick-cloned") 829 .slice(-1 * b.options.slidesToShow)), 830 g(d)); 831 }), 832 (b.prototype.loadSlider = function () { 833 var a = this; 834 a.setPosition(), 835 a.$slideTrack.css({ opacity: 1 }), 836 a.$slider.removeClass("slick-loading"), 837 a.initUI(), 838 "progressive" === a.options.lazyLoad && a.progressiveLazyLoad(); 839 }), 840 (b.prototype.next = b.prototype.slickNext = 841 function () { 842 var a = this; 843 a.changeSlide({ data: { message: "next" } }); 844 }), 845 (b.prototype.pause = b.prototype.slickPause = 846 function () { 847 var a = this; 848 a.autoPlayClear(), (a.paused = !0); 849 }), 850 (b.prototype.play = b.prototype.slickPlay = 851 function () { 852 var a = this; 853 (a.paused = !1), a.autoPlay(); 854 }), 855 (b.prototype.postSlide = function (a) { 856 var b = this; 857 b.$slider.trigger("afterChange", [b, a]), 858 (b.animating = !1), 859 b.setPosition(), 860 (b.swipeLeft = null),
861 b.options.autoplay === !0 && b.paused === !1 && b.autoPlay(); 862 }), 863 (b.prototype.prev = b.prototype.slickPrev = 864 function () { 865 var a = this; 866 a.changeSlide({ data: { message: "previous" } }); 867 }), 868 (b.prototype.progressiveLazyLoad = function () { 869 var c, 870 d, 871 b = this; 872 (c = a("img[data-lazy]", b.$slider).length), 873 c > 0 && 874 ((d = a("img[data-lazy]", b.$slider).first()), 875 d 876 .attr("src", d.attr("data-lazy")) 877 .removeClass("slick-loading") 878 .load(function () { 879 d.removeAttr("data-lazy"), b.progressiveLazyLoad(); 880 }) 881 .error(function () { 882 d.removeAttr("data-lazy"), b.progressiveLazyLoad(); 883 })); 884 }), 885 (b.prototype.refresh = function () { 886 var b = this, 887 c = b.currentSlide; 888 b.destroy(), 889 a.extend(b, b.initials), 890 b.init(), 891 b.changeSlide({ data: { message: "index", index: c } }, !0); 892 }), 893 (b.prototype.reinit = function () { 894 var b = this; 895 (b.$slides = b.$slideTrack 896 .children(b.options.slide) 897 .addClass("slick-slide")), 898 (b.slideCount = b.$slides.length), 899 b.currentSlide >= b.slideCount && 900 0 !== b.currentSlide && 901 (b.currentSlide = b.currentSlide - b.options.slidesToScroll), 902 b.slideCount <= b.options.slidesToShow && (b.currentSlide = 0), 903 b.setProps(), 904 b.setupInfinite(), 905 b.buildArrows(), 906 b.updateArrows(), 907 b.initArrowEvents(), 908 b.buildDots(), 909 b.updateDots(), 910 b.initDotEvents(), 911 b.options.focusOnSelect === !0 && 912 a(b.$slideTrack).children().on("click.slick", b.selectHandler), 913 b.setSlideClasses(0), 914 b.setPosition(), 915 b.$slider.trigger("reInit", [b]); 916 }), 917 (b.prototype.removeSlide = b.prototype.slickRemove = 918 function (a, b, c) { 919 var d = this; 920 return ( 921 "boolean" == typeof a 922 ? ((b = a), (a = b === !0 ? 0 : d.slideCount - 1)) 923 : (a = b === !0 ? --a : a), 924 d.slideCount < 1 || 0 > a || a > d.slideCount - 1 925 ? !1 926 : (d.unload(), 927 c === !0 928 ? d.$slideTrack.children().remove() 929 : d.$slideTrack.children(this.options.slide).eq(a).remove(), 930 (d.$slides = d.$slideTrack.children(this.options.slide)), 931 d.$slideTrack.children(this.options.slide).detach(), 932 d.$slideTrack.append(d.$slides), 933 (d.$slidesCache = d.$slides), 934 d.reinit(), 935 void 0) 936 ); 937 }), 938 (b.prototype.setCSS = function (a) { 939 var d, 940 e, 941 b = this, 942 c = {}; 943 b.options.rtl === !0 && (a = -a), 944 (d = "left" == b.positionProp ? Math.ceil(a) + "px" : "0px"), 945 (e = "top" == b.positionProp ? Math.ceil(a) + "px" : "0px"), 946 (c[b.positionProp] = a), 947 b.transformsEnabled === !1 948 ? b.$slideTrack.css(c) 949 : ((c = {}), 950 b.cssTransitions === !1 951 ? ((c[b.animType] = "translate(" + d + ", " + e + ")"), 952 b.$slideTrack.css(c)) 953 : ((c[b.animType] = "translate3d(" + d + ", " + e + ", 0px)"), 954 b.$slideTrack.css(c))); 955 }), 956 (b.prototype.setDimensions = function () { 957 var a = this; 958 if ( 959 (a.options.vertical === !1 960 ? a.options.centerMode === !0 && 961 a.$list.css({ padding: "0px " + a.options.centerPadding }) 962 : (a.$list.height( 963 a.$slides.first().outerHeight(!0) * a.options.slidesToShow 964 ), 965 a.options.centerMode === !0 && 966 a.$list.css({ padding: a.options.centerPadding + " 0px" })), 967 (a.listWidth = a.$list.width()), 968 (a.listHeight = a.$list.height()), 969 a.options.vertical === !1 && a.options.variableWidth === !1) 970 ) 971 (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow)), 972 a.$slideTrack.width( 973 Math.ceil( 974 a.slideWidth * a.$slideTrack.children(".slick-slide").length 975 ) 976 ); 977 else if (a.options.variableWidth === !0) { 978 var b = 0; 979 (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow)), 980 a.$slideTrack.children(".slick-slide").each(function () { 981 b += a.listWidth; 982 }), 983 a.$slideTrack.width(Math.ceil(b) + 1); 984 } else 985 (a.slideWidth = Math.ceil(a.listWidth)), 986 a.$slideTrack.height( 987 Math.ceil( 988 a.$slides.first().outerHeight(!0) * 989 a.$slideTrack.children(".slick-slide").length 990 ) 991 ); 992 var c = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); 993 a.options.variableWidth === !1 && 994 a.$slideTrack.children(".slick-slide").width(a.slideWidth - c); 995 }), 996 (b.prototype.setFade = function () { 997 var c, 998 b = this; 999 b.$slides.each(function (d, e) { 1000 (c = -1 * b.slideWidth * d), 1001 b.options.rtl === !0 1002 ? a(e).css({ 1003 position: "relative", 1004 right: c, 1005 top: 0, 1006 zIndex: 800, 1007 opacity: 0, 1008 }) 1009 : a(e).css({ 1010 position: "relative", 1011 left: c, 1012 top: 0, 1013 zIndex: 800, 1014 opacity: 0, 1015 }); 1016 }), 1017 b.$slides.eq(b.currentSlide).css({ zIndex: 900, opacity: 1 }); 1018 }), 1019 (b.prototype.setHeight = function () { 1020 var a = this; 1021 if ( 1022 1 === a.options.slidesToShow && 1023 a.options.adaptiveHeight === !0 && 1024 a.options.vertical === !1 1025 ) { 1026 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 1027 a.$list.css("height", b); 1028 } 1029 }), 1030 (b.prototype.setOption = b.prototype.slickSetOption = 1031 function (a, b, c) { 1032 var d = this; 1033 (d.options[a] = b), c === !0 && (d.unload(), d.reinit()); 1034 }), 1035 (b.prototype.setPosition = function () { 1036 var a = this; 1037 a.setDimensions(), 1038 a.setHeight(), 1039 a.options.fade === !1 1040 ? a.setCSS(a.getLeft(a.currentSlide)) 1041 : a.setFade(), 1042 a.$slider.trigger("setPosition", [a]); 1043 }), 1044 (b.prototype.setProps = function () { 1045 var a = this, 1046 b = document.body.style; 1047 (a.positionProp = a.options.vertical === !0 ? "top" : "left"), 1048 "top" === a.positionProp 1049 ? a.$slider.addClass("slick-vertical") 1050 : a.$slider.removeClass("slick-vertical"), 1051 (void 0 !== b.WebkitTransition || 1052 void 0 !== b.MozTransition || 1053 void 0 !== b.msTransition) && 1054 a.options.useCSS === !0 && 1055 (a.cssTransitions = !0), 1056 void 0 !== b.OTransform && 1057 ((a.animType = "OTransform"), 1058 (a.transformType = "-o-transform"), 1059 (a.transitionType = "OTransition"), 1060 void 0 === b.perspectiveProperty && 1061 void 0 === b.webkitPerspective && 1062 (a.animType = !1)), 1063 void 0 !== b.MozTransform && 1064 ((a.animType = "MozTransform"), 1065 (a.transformType = "-moz-transform"), 1066 (a.transitionType = "MozTransition"), 1067 void 0 === b.perspectiveProperty && 1068 void 0 === b.MozPerspective && 1069 (a.animType = !1)), 1070 void 0 !== b.webkitTransform &&
1071 ((a.animType = "webkitTransform"), 1072 (a.transformType = "-webkit-transform"), 1073 (a.transitionType = "webkitTransition"), 1074 void 0 === b.perspectiveProperty && 1075 void 0 === b.webkitPerspective && 1076 (a.animType = !1)), 1077 void 0 !== b.msTransform && 1078 ((a.animType = "msTransform"), 1079 (a.transformType = "-ms-transform"), 1080 (a.transitionType = "msTransition"), 1081 void 0 === b.msTransform && (a.animType = !1)), 1082 void 0 !== b.transform && 1083 a.animType !== !1 && 1084 ((a.animType = "transform"), 1085 (a.transformType = "transform"), 1086 (a.transitionType = "transition")), 1087 (a.transformsEnabled = null !== a.animType && a.animType !== !1); 1088 }), 1089 (b.prototype.setSlideClasses = function (a) { 1090 var c, 1091 d, 1092 e, 1093 f, 1094 b = this; 1095 b.$slider 1096 .find(".slick-slide") 1097 .removeClass("slick-active") 1098 .removeClass("slick-center"), 1099 (d = b.$slider.find(".slick-slide")), 1100 b.options.centerMode === !0 1101 ? ((c = Math.floor(b.options.slidesToShow / 2)), 1102 b.options.infinite === !0 && 1103 (a >= c && a <= b.slideCount - 1 - c 1104 ? b.$slides.slice(a - c, a + c + 1).addClass("slick-active") 1105 : ((e = b.options.slidesToShow + a), 1106 d.slice(e - c + 1, e + c + 2).addClass("slick-active")), 1107 0 === a 1108 ? d 1109 .eq(d.length - 1 - b.options.slidesToShow) 1110 .addClass("slick-center") 1111 : a === b.slideCount - 1 && 1112 d.eq(b.options.slidesToShow).addClass("slick-center")), 1113 b.$slides.eq(a).addClass("slick-center")) 1114 : a >= 0 && a <= b.slideCount - b.options.slidesToShow 1115 ? b.$slides 1116 .slice(a, a + b.options.slidesToShow) 1117 .addClass("slick-active") 1118 : d.length <= b.options.slidesToShow 1119 ? d.addClass("slick-active") 1120 : ((f = b.slideCount % b.options.slidesToShow), 1121 (e = b.options.infinite === !0 ? b.options.slidesToShow + a : a), 1122 b.options.slidesToShow == b.options.slidesToScroll && 1123 b.slideCount - a < b.options.slidesToShow 1124 ? d 1125 .slice(e - (b.options.slidesToShow - f), e + f) 1126 .addClass("slick-active") 1127 : d 1128 .slice(e, e + b.options.slidesToShow) 1129 .addClass("slick-active")), 1130 "ondemand" === b.options.lazyLoad && b.lazyLoad(); 1131 }), 1132 (b.prototype.setupInfinite = function () { 1133 var c, 1134 d, 1135 e, 1136 b = this; 1137 if ( 1138 (b.options.fade === !0 && (b.options.centerMode = !1), 1139 b.options.infinite === !0 && 1140 b.options.fade === !1 && 1141 ((d = null), b.slideCount > b.options.slidesToShow)) 1142 ) { 1143 for ( 1144 e = 1145 b.options.centerMode === !0 1146 ? b.options.slidesToShow + 1 1147 : b.options.slidesToShow, 1148 c = b.slideCount; 1149 c > b.slideCount - e; 1150 c -= 1 1151 ) 1152 (d = c - 1), 1153 a(b.$slides[d]) 1154 .clone(!0) 1155 .attr("id", "") 1156 .attr("data-slick-index", d - b.slideCount) 1157 .prependTo(b.$slideTrack) 1158 .addClass("slick-cloned"); 1159 for (c = 0; e > c; c += 1) 1160 (d = c), 1161 a(b.$slides[d]) 1162 .clone(!0) 1163 .attr("id", "") 1164 .attr("data-slick-index", d + b.slideCount) 1165 .appendTo(b.$slideTrack) 1166 .addClass("slick-cloned"); 1167 b.$slideTrack 1168 .find(".slick-cloned") 1169 .find("[id]") 1170 .each(function () { 1171 a(this).attr("id", ""); 1172 }); 1173 } 1174 }), 1175 (b.prototype.selectHandler = function (b) { 1176 var c = this, 1177 d = parseInt( 1178 a(b.target).parents(".slick-slide").attr("data-slick-index") 1179 ); 1180 return ( 1181 d || (d = 0), 1182 c.slideCount <= c.options.slidesToShow 1183 ? (c.$slider.find(".slick-slide").removeClass("slick-active"), 1184 c.$slides.eq(d).addClass("slick-active"), 1185 c.options.centerMode === !0 && 1186 (c.$slider.find(".slick-slide").removeClass("slick-center"), 1187 c.$slides.eq(d).addClass("slick-center")), 1188 c.asNavFor(d), 1189 void 0) 1190 : (c.slideHandler(d), void 0) 1191 ); 1192 }), 1193 (b.prototype.slideHandler = function (a, b, c) { 1194 var d, 1195 e, 1196 f, 1197 g, 1198 h = null, 1199 i = this; 1200 return ( 1201 (b = b || !1), 1202 (i.animating === !0 && i.options.waitForAnimate === !0) || 1203 (i.options.fade === !0 && i.currentSlide === a) || 1204 i.slideCount <= i.options.slidesToShow 1205 ? void 0 1206 : (b === !1 && i.asNavFor(a), 1207 (d = a), 1208 (h = i.getLeft(d)), 1209 (g = i.getLeft(i.currentSlide)), 1210 (i.currentLeft = null === i.swipeLeft ? g : i.swipeLeft), 1211 i.options.infinite === !1 && 1212 i.options.centerMode === !1 && 1213 (0 > a || a > i.getDotCount() * i.options.slidesToScroll) 1214 ? (i.options.fade === !1 && 1215 ((d = i.currentSlide), 1216 c !== !0 1217 ? i.animateSlide(g, function () { 1218 i.postSlide(d); 1219 }) 1220 : i.postSlide(d)), 1221 void 0) 1222 : i.options.infinite === !1 && 1223 i.options.centerMode === !0 && 1224 (0 > a || a > i.slideCount - i.options.slidesToScroll) 1225 ? (i.options.fade === !1 && 1226 ((d = i.currentSlide), 1227 c !== !0 1228 ? i.animateSlide(g, function () { 1229 i.postSlide(d); 1230 }) 1231 : i.postSlide(d)), 1232 void 0) 1233 : (i.options.autoplay === !0 && clearInterval(i.autoPlayTimer), 1234 (e = 1235 0 > d 1236 ? 0 !== i.slideCount % i.options.slidesToScroll 1237 ? i.slideCount - (i.slideCount % i.options.slidesToScroll) 1238 : i.slideCount + d 1239 : d >= i.slideCount 1240 ? 0 !== i.slideCount % i.options.slidesToScroll 1241 ? 0 1242 : d - i.slideCount 1243 : d), 1244 (i.animating = !0), 1245 i.$slider.trigger("beforeChange", [i, i.currentSlide, e]), 1246 (f = i.currentSlide), 1247 (i.currentSlide = e), 1248 i.setSlideClasses(i.currentSlide), 1249 i.updateDots(), 1250 i.updateArrows(), 1251 i.options.fade === !0 1252 ? (c !== !0 1253 ? i.fadeSlide(e, function () { 1254 i.postSlide(e); 1255 }) 1256 : i.postSlide(e), 1257 i.animateHeight(), 1258 void 0) 1259 : (c !== !0 1260 ? i.animateSlide(h, function () { 1261 i.postSlide(e); 1262 }) 1263 : i.postSlide(e), 1264 void 0))) 1265 ); 1266 }), 1267 (b.prototype.startLoad = function () { 1268 var a = this; 1269 a.options.arrows === !0 && 1270 a.slideCount > a.options.slidesToShow && 1271 (a.$prevArrow.hide(), a.$nextArrow.hide()), 1272 a.options.dots === !0 && 1273 a.slideCount > a.options.slidesToShow && 1274 a.$dots.hide(), 1275 a.$slider.addClass("slick-loading"); 1276 }), 1277 (b.prototype.swipeDirection = function () { 1278 var a, 1279 b, 1280 c, 1281 d, 1282 e = this; 1283 return ( 1284 (a = e.touchObject.startX - e.touchObject.curX), 1285 (b = e.touchObject.startY - e.touchObject.curY), 1286 (c = Math.atan2(b, a)), 1287 (d = Math.round((180 * c) / Math.PI)), 1288 0 > d && (d = 360 - Math.abs(d)), 1289 45 >= d && d >= 0 1290 ? e.options.rtl === !1 1291 ? "left" 1292 : "right" 1293 : 360 >= d && d >= 315 1294 ? e.options.rtl === !1 1295 ? "left" 1296 : "right" 1297 : d >= 135 && 225 >= d 1298 ? e.options.rtl === !1 1299 ? "right" 1300 : "left" 1301 : "vertical" 1302 ); 1303 }), 1304 (b.prototype.swipeEnd = function () { 1305 var c, 1306 b = this; 1307 if ( 1308 ((b.dragging = !1), 1309 (b.shouldClick = b.touchObject.swipeLength > 10 ? !1 : !0), 1310 void 0 === b.touchObject.curX) 1311 ) 1312 return !1; 1313 if ( 1314 (b.touchObject.edgeHit === !0 && 1315 b.$slider.trigger("edge", [b, b.swipeDirection()]), 1316 b.touchObject.swipeLength >= b.touchObject.minSwipe) 1317 ) 1318 switch (b.swipeDirection()) {
1319 case "left": 1320 (c = b.options.swipeToSlide 1321 ? b.checkNavigable(b.currentSlide + b.getSlideCount()) 1322 : b.currentSlide + b.getSlideCount()), 1323 b.slideHandler(c), 1324 (b.currentDirection = 0), 1325 (b.touchObject = {}), 1326 b.$slider.trigger("swipe", [b, "left"]); 1327 break; 1328 case "right": 1329 (c = b.options.swipeToSlide 1330 ? b.checkNavigable(b.currentSlide - b.getSlideCount()) 1331 : b.currentSlide - b.getSlideCount()), 1332 b.slideHandler(c), 1333 (b.currentDirection = 1), 1334 (b.touchObject = {}), 1335 b.$slider.trigger("swipe", [b, "right"]); 1336 } 1337 else 1338 b.touchObject.startX !== b.touchObject.curX && 1339 (b.slideHandler(b.currentSlide), (b.touchObject = {})); 1340 }), 1341 (b.prototype.swipeHandler = function (a) { 1342 var b = this; 1343 if ( 1344 !( 1345 b.options.swipe === !1 || 1346 ("ontouchend" in document && b.options.swipe === !1) || 1347 (b.options.draggable === !1 && -1 !== a.type.indexOf("mouse")) 1348 ) 1349 ) 1350 switch ( 1351 ((b.touchObject.fingerCount = 1352 a.originalEvent && void 0 !== a.originalEvent.touches 1353 ? a.originalEvent.touches.length 1354 : 1), 1355 (b.touchObject.minSwipe = b.listWidth / b.options.touchThreshold), 1356 a.data.action) 1357 ) { 1358 case "start": 1359 b.swipeStart(a); 1360 break; 1361 case "move": 1362 b.swipeMove(a); 1363 break; 1364 case "end": 1365 b.swipeEnd(a); 1366 } 1367 }), 1368 (b.prototype.swipeMove = function (a) { 1369 var d, 1370 e, 1371 f, 1372 g, 1373 h, 1374 b = this; 1375 return ( 1376 (h = void 0 !== a.originalEvent ? a.originalEvent.touches : null), 1377 !b.dragging || (h && 1 !== h.length) 1378 ? !1 1379 : ((d = b.getLeft(b.currentSlide)), 1380 (b.touchObject.curX = void 0 !== h ? h[0].pageX : a.clientX), 1381 (b.touchObject.curY = void 0 !== h ? h[0].pageY : a.clientY), 1382 (b.touchObject.swipeLength = Math.round( 1383 Math.sqrt(Math.pow(b.touchObject.curX - b.touchObject.startX, 2)) 1384 )), 1385 (e = b.swipeDirection()), 1386 "vertical" !== e 1387 ? (void 0 !== a.originalEvent && 1388 b.touchObject.swipeLength > 4 && 1389 a.preventDefault(), 1390 (g = 1391 (b.options.rtl === !1 ? 1 : -1) * 1392 (b.touchObject.curX > b.touchObject.startX ? 1 : -1)), 1393 (f = b.touchObject.swipeLength), 1394 (b.touchObject.edgeHit = !1), 1395 b.options.infinite === !1 && 1396 ((0 === b.currentSlide && "right" === e) || 1397 (b.currentSlide >= b.getDotCount() && "left" === e)) && 1398 ((f = b.touchObject.swipeLength * b.options.edgeFriction), 1399 (b.touchObject.edgeHit = !0)), 1400 (b.swipeLeft = 1401 b.options.vertical === !1 1402 ? d + f * g 1403 : d + f * (b.$list.height() / b.listWidth) * g), 1404 b.options.fade === !0 || b.options.touchMove === !1 1405 ? !1 1406 : b.animating === !0 1407 ? ((b.swipeLeft = null), !1) 1408 : (b.setCSS(b.swipeLeft), void 0)) 1409 : void 0) 1410 ); 1411 }), 1412 (b.prototype.swipeStart = function (a) { 1413 var c, 1414 b = this; 1415 return 1 !== b.touchObject.fingerCount || 1416 b.slideCount <= b.options.slidesToShow 1417 ? ((b.touchObject = {}), !1) 1418 : (void 0 !== a.originalEvent && 1419 void 0 !== a.originalEvent.touches && 1420 (c = a.originalEvent.touches[0]), 1421 (b.touchObject.startX = b.touchObject.curX = 1422 void 0 !== c ? c.pageX : a.clientX), 1423 (b.touchObject.startY = b.touchObject.curY = 1424 void 0 !== c ? c.pageY : a.clientY), 1425 (b.dragging = !0), 1426 void 0); 1427 }), 1428 (b.prototype.unfilterSlides = b.prototype.slickUnfilter = 1429 function () { 1430 var a = this; 1431 null !== a.$slidesCache && 1432 (a.unload(), 1433 a.$slideTrack.children(this.options.slide).detach(), 1434 a.$slidesCache.appendTo(a.$slideTrack), 1435 a.reinit()); 1436 }), 1437 (b.prototype.unload = function () { 1438 var b = this; 1439 a(".slick-cloned", b.$slider).remove(), 1440 b.$dots && b.$dots.remove(), 1441 b.$prevArrow && 1442 "object" != typeof b.options.prevArrow && 1443 b.$prevArrow.remove(), 1444 b.$nextArrow && 1445 "object" != typeof b.options.nextArrow && 1446 b.$nextArrow.remove(), 1447 b.$slides 1448 .removeClass("slick-slide slick-active slick-visible") 1449 .css("width", ""); 1450 }),
1451 (b.prototype.unslick = function () { 1452 var a = this; 1453 a.destroy(); 1454 }), 1455 (b.prototype.updateArrows = function () { 1456 var b, 1457 a = this; 1458 (b = Math.floor(a.options.slidesToShow / 2)), 1459 a.options.arrows === !0 && 1460 a.options.infinite !== !0 && 1461 a.slideCount > a.options.slidesToShow && 1462 (a.$prevArrow.removeClass("slick-disabled"), 1463 a.$nextArrow.removeClass("slick-disabled"), 1464 0 === a.currentSlide 1465 ? (a.$prevArrow.addClass("slick-disabled"), 1466 a.$nextArrow.removeClass("slick-disabled")) 1467 : a.currentSlide >= a.slideCount - a.options.slidesToShow && 1468 a.options.centerMode === !1 1469 ? (a.$nextArrow.addClass("slick-disabled"), 1470 a.$prevArrow.removeClass("slick-disabled")) 1471 : a.currentSlide >= a.slideCount - 1 && 1472 a.options.centerMode === !0 && 1473 (a.$nextArrow.addClass("slick-disabled"), 1474 a.$prevArrow.removeClass("slick-disabled"))); 1475 }), 1476 (b.prototype.updateDots = function () { 1477 var a = this; 1478 null !== a.$dots && 1479 (a.$dots.find("li").removeClass("slick-active"), 1480 a.$dots 1481 .find("li") 1482 .eq(Math.floor(a.currentSlide / a.options.slidesToScroll)) 1483 .addClass("slick-active")); 1484 }), 1485 (b.prototype.visibility = function () { 1486 var a = this; 1487 document[a.hidden] 1488 ? ((a.paused = !0), a.autoPlayClear()) 1489 : ((a.paused = !1), a.autoPlay()); 1490 }), 1491 (a.fn.slick = function () { 1492 var g, 1493 a = this, 1494 c = arguments[0], 1495 d = Array.prototype.slice.call(arguments, 1), 1496 e = a.length, 1497 f = 0; 1498 for (f; e > f; f++) 1499 if ( 1500 ("object" == typeof c || "undefined" == typeof c 1501 ? (a[f].slick = new b(a[f], c)) 1502 : (g = a[f].slick[c].apply(a[f].slick, d)), 1503 "undefined" != typeof g) 1504 ) 1505 return g; 1506 return a; 1507 }), 1508 a(function () { 1509 a("[data-slick]").slick(); 1510 }); 1511});
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.