vendor: 29,365 bytes, lines 1-645
1/*! 2* jQuery Cycle2; version: 2.1.5 build: 20140415 3* http://jquery.malsup.com/cycle2/ 4* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL 5*/ 6! 7function(a) { 8 "use strict"; 9 10 function b(a) { 11 return (a || "").toLowerCase() 12 } 13 var c = "2.1.5"; 14 a.fn.cycle = function(c) { 15 var d; 16 return 0 !== this.length || a.isReady ? this.each(function() { 17 var d, e, f, g, h = a(this), 18 i = a.fn.cycle.log; 19 if (!h.data("cycle.opts")) { 20 (h.data("cycle-log") === !1 || c && c.log === !1 || e && e.log === !1) && (i = a.noop), i("--c2 init--"), d = h.data(); 21 for (var j in d) d.hasOwnProperty(j) && /^cycle[A-Z]+/.test(j) && (g = d[j], f = j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/, b), i(f + ":", g, "(" + typeof g + ")"), d[f] = g); 22 e = a.extend({}, a.fn.cycle.defaults, d, c || {}), e.timeoutId = 0, e.paused = e.paused || !1, e.container = h, e._maxZ = e.maxZ, e.API = a.extend({ 23 _container: h 24 }, a.fn.cycle.API), e.API.log = i, e.API.trigger = function(a, b) { 25 return e.container.trigger(a, b), e.API 26 }, h.data("cycle.opts", e), h.data("cycle.API", e.API), e.API.trigger("cycle-bootstrap", [e, e.API]), e.API.addInitialSlides(), e.API.preInitSlideshow(), e.slides.length && e.API.initSlideshow() 27 } 28 }) : (d = { 29 s: this.selector, 30 c: this.context 31 }, a.fn.cycle.log("requeuing slideshow (dom not ready)"), a(function() { 32 a(d.s, d.c).cycle(c) 33 }), this) 34 }, a.fn.cycle.API = { 35 opts: function() { 36 return this._container.data("cycle.opts") 37 }, 38 addInitialSlides: function() { 39 var b = this.opts(), 40 c = b.slides; 41 b.slideCount = 0, b.slides = a(), c = c.jquery ? c : b.container.find(c), b.random && c.sort(function() { 42 return Math.random() - .5 43 }), b.API.add(c) 44 }, 45 preInitSlideshow: function() { 46 var b = this.opts(); 47 b.API.trigger("cycle-pre-initialize", [b]); 48 var c = a.fn.cycle.transitions[b.fx]; 49 c && a.isFunction(c.preInit) && c.preInit(b), b._preInitialized = !0 50 }, 51 postInitSlideshow: function() { 52 var b = this.opts(); 53 b.API.trigger("cycle-post-initialize", [b]); 54 var c = a.fn.cycle.transitions[b.fx]; 55 c && a.isFunction(c.postInit) && c.postInit(b) 56 }, 57 initSlideshow: function() { 58 var b, c = this.opts(), 59 d = c.container; 60 c.API.calcFirstSlide(), "static" == c.container.css("position") && c.container.css("position", "relative"), a(c.slides[c.currSlide]).css({ 61 opacity: 1, 62 display: "block", 63 visibility: "visible" 64 }), c.API.stackSlides(c.slides[c.currSlide], c.slides[c.nextSlide], !c.reverse), c.pauseOnHover && (c.pauseOnHover !== !0 && (d = a(c.pauseOnHover)), d.hover(function() { 65 c.API.pause(!0) 66 }, function() { 67 c.API.resume(!0) 68 })), c.timeout && (b = c.API.getSlideOpts(c.currSlide), c.API.queueTransition(b, b.timeout + c.delay)), c._initialized = !0, c.API.updateView(!0), c.API.trigger("cycle-initialized", [c]), c.API.postInitSlideshow() 69 }, 70 pause: function(b) { 71 var c = this.opts(), 72 d = c.API.getSlideOpts(), 73 e = c.hoverPaused || c.paused; 74 b ? c.hoverPaused = !0 : c.paused = !0, e || (c.container.addClass("cycle-paused"), c.API.trigger("cycle-paused", [c]).log("cycle-paused"), d.timeout && (clearTimeout(c.timeoutId), c.timeoutId = 0, c._remainingTimeout -= a.now() - c._lastQueue, (c._remainingTimeout < 0 || isNaN(c._remainingTimeout)) && (c._remainingTimeout = void 0))) 75 }, 76 resume: function(a) { 77 var b = this.opts(), 78 c = !b.hoverPaused && !b.paused; 79 a ? b.hoverPaused = !1 : b.paused = !1, c || (b.container.removeClass("cycle-paused"), 0 === b.slides.filter(":animated").length && b.API.queueTransition(b.API.getSlideOpts(), b._remainingTimeout), b.API.trigger("cycle-resumed", [b, b._remainingTimeout]).log("cycle-resumed")) 80 }, 81 add: function(b, c) { 82 var d, e = this.opts(), 83 f = e.slideCount, 84 g = !1; 85 "string" == a.type(b) && (b = a.trim(b)), a(b).each(function() { 86 var b, d = a(this); 87 c ? e.container.prepend(d) : e.container.append(d), e.slideCount++, b = e.API.buildSlideOpts(d), e.slides = c ? a(d).add(e.slides) : e.slides.add(d), e.API.initSlide(b, d, --e._maxZ), d.data("cycle.opts", b), e.API.trigger("cycle-slide-added", [e, b, d]) 88 }), e.API.updateView(!0), g = e._preInitialized && 2 > f && e.slideCount >= 1, g && (e._initialized ? e.timeout && (d = e.slides.length, e.nextSlide = e.reverse ? d - 1 : 1, e.timeoutId || e.API.queueTransition(e)) : e.API.initSlideshow()) 89 }, 90 calcFirstSlide: function() { 91 var a, b = this.opts(); 92 a = parseInt(b.startingSlide || 0, 10), (a >= b.slides.length || 0 > a) && (a = 0), b.currSlide = a, b.reverse ? (b.nextSlide = a - 1, b.nextSlide < 0 && (b.nextSlide = b.slides.length - 1)) : (b.nextSlide = a + 1, b.nextSlide == b.slides.length && (b.nextSlide = 0)) 93 }, 94 calcNextSlide: function() { 95 var a, b = this.opts(); 96 b.reverse ? (a = b.nextSlide - 1 < 0, b.nextSlide = a ? b.slideCount - 1 : b.nextSlide - 1, b.currSlide = a ? 0 : b.nextSlide + 1) : (a = b.nextSlide + 1 == b.slides.length, b.nextSlide = a ? 0 : b.nextSlide + 1, b.currSlide = a ? b.slides.length - 1 : b.nextSlide - 1) 97 }, 98 calcTx: function(b, c) { 99 var d, e = b; 100 return e._tempFx ? d = a.fn.cycle.transitions[e._tempFx] : c && e.manualFx && (d = a.fn.cycle.transitions[e.manualFx]), d || (d = a.fn.cycle.transitions[e.fx]), e._tempFx = null, this.opts()._tempFx = null, d || (d = a.fn.cycle.transitions.fade, e.API.log('Transition "' + e.fx + '" not found. Using fade.')), d 101 }, 102 prepareTx: function(a, b) { 103 var c, d, e, f, g, h = this.opts(); 104 return h.slideCount < 2 ? void(h.timeoutId = 0) : (!a || h.busy && !h.manualTrump || (h.API.stopTransition(), h.busy = !1, clearTimeout(h.timeoutId), h.timeoutId = 0), void(h.busy || (0 !== h.timeoutId || a) && (d = h.slides[h.currSlide], e = h.slides[h.nextSlide], f = h.API.getSlideOpts(h.nextSlide), g = h.API.calcTx(f, a), h._tx = g, a && void 0 !== f.manualSpeed && (f.speed = f.manualSpeed), h.nextSlide != h.currSlide && (a || !h.paused && !h.hoverPaused && h.timeout) ? (h.API.trigger("cycle-before", [f, d, e, b]), g.before && g.before(f, d, e, b), c = function() { 105 h.busy = !1, h.container.data("cycle.opts") && (g.after && g.after(f, d, e, b), h.API.trigger("cycle-after", [f, d, e, b]), h.API.queueTransition(f), h.API.updateView(!0)) 106 }, h.busy = !0, g.transition ? g.transition(f, d, e, b, c) : h.API.doTransition(f, d, e, b, c), h.API.calcNextSlide(), h.API.updateView()) : h.API.queueTransition(f)))) 107 }, 108 doTransition: function(b, c, d, e, f) { 109 var g = b, 110 h = a(c), 111 i = a(d), 112 j = function() { 113 i.animate(g.animIn || { 114 opacity: 1 115 }, g.speed, g.easeIn || g.easing, f) 116 }; 117 i.css(g.cssBefore || {}), h.animate(g.animOut || {}, g.speed, g.easeOut || g.easing, function() { 118 h.css(g.cssAfter || {}), g.sync || j() 119 }), g.sync && j() 120 }, 121 queueTransition: function(b, c) { 122 var d = this.opts(), 123 e = void 0 !== c ? c : b.timeout; 124 return 0 === d.nextSlide && 0 === --d.loop ? (d.API.log("terminating; loop=0"), d.timeout = 0, e ? setTimeout(function() { 125 d.API.trigger("cycle-finished", [d]) 126 }, e) : d.API.trigger("cycle-finished", [d]), void(d.nextSlide = d.currSlide)) : void 0 !== d.continueAuto && (d.continueAuto === !1 || a.isFunction(d.continueAuto) && d.continueAuto() === !1) ? (d.API.log("terminating automatic transitions"), d.timeout = 0, void(d.timeoutId && clearTimeout(d.timeoutId))) : void(e && (d._lastQueue = a.now(), void 0 === c && (d._remainingTimeout = b.timeout), d.paused || d.hoverPaused || (d.timeoutId = setTimeout(function() { 127 d.API.prepareTx(!1, !d.reverse) 128 }, e)))) 129 }, 130 stopTransition: function() { 131 var a = this.opts(); 132 a.slides.filter(":animated").length && (a.slides.stop(!1, !0), a.API.trigger("cycle-transition-stopped", [a])), a._tx && a._tx.stopTransition && a._tx.stopTransition(a) 133 }, 134 advanceSlide: function(a) { 135 var b = this.opts(); 136 return clearTimeout(b.timeoutId), b.timeoutId = 0, b.nextSlide = b.currSlide + a, b.nextSlide < 0 ? b.nextSlide = b.slides.length - 1 : b.nextSlide >= b.slides.length && (b.nextSlide = 0), b.API.prepareTx(!0, a >= 0), !1 137 }, 138 buildSlideOpts: function(c) { 139 var d, e, f = this.opts(), 140 g = c.data() || {}; 141 for (var h in g) g.hasOwnProperty(h) && /^cycle[A-Z]+/.test(h) && (d = g[h], e = h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/, b), f.API.log("[" + (f.slideCount - 1) + "]", e + ":", d, "(" + typeof d + ")"), g[e] = d); 142 g = a.extend({}, a.fn.cycle.defaults, f, g), g.slideNum = f.slideCount; 143 try { 144 delete g.API, delete g.slideCount, delete g.currSlide, delete g.nextSlide, delete g.slides 145 } catch (i) {} 146 return g 147 }, 148 getSlideOpts: function(b) { 149 var c = this.opts(); 150 void 0 === b && (b = c.currSlide); 151 var d = c.slides[b], 152 e = a(d).data("cycle.opts"); 153 return a.extend({}, c, e) 154 }, 155 initSlide: function(b, c, d) { 156 var e = this.opts(); 157 c.css(b.slideCss || {}), d > 0 && c.css("zIndex", d), isNaN(b.speed) && (b.speed = a.fx.speeds[b.speed] || a.fx.speeds._default), b.sync || (b.speed = b.speed / 2), c.addClass(e.slideClass) 158 }, 159 updateView: function(a, b) { 160 var c = this.opts(); 161 if (c._initialized) { 162 var d = c.API.getSlideOpts(), 163 e = c.slides[c.currSlide]; 164 !a && b !== !0 && (c.API.trigger("cycle-update-view-before", [c, d, e]), c.updateView < 0) || (c.slideActiveClass && c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass), a && c.hideNonActive && c.slides.filter(":not(." + c.slideActiveClass + ")").css("visibility", "hidden"), 0 === c.updateView && setTimeout(function() { 165 c.API.trigger("cycle-update-view", [c, d, e, a]) 166 }, d.speed / (c.sync ? 2 : 1)), 0 !== c.updateView && c.API.trigger("cycle-update-view", [c, d, e, a]), a && c.API.trigger("cycle-update-view-after", [c, d, e])) 167 } 168 }, 169 getComponent: function(b) { 170 var c = this.opts(), 171 d = c[b]; 172 return "string" == typeof d ? /^\s*[\>|\+|~]/.test(d) ? c.container.find(d) : a(d) : d.jquery ? d : a(d) 173 }, 174 stackSlides: function(b, c, d) { 175 var e = this.opts(); 176 b || (b = e.slides[e.currSlide], c = e.slides[e.nextSlide], d = !e.reverse), a(b).css("zIndex", e.maxZ); 177 var f, g = e.maxZ - 2, 178 h = e.slideCount; 179 if (d) { 180 for (f = e.currSlide + 1; h > f; f++) a(e.slides[f]).css("zIndex", g--); 181 for (f = 0; f < e.currSlide; f++) a(e.slides[f]).css("zIndex", g--) 182 } else { 183 for (f = e.currSlide - 1; f >= 0; f--) a(e.slides[f]).css("zIndex", g--); 184 for (f = h - 1; f > e.currSlide; f--) a(e.slides[f]).css("zIndex", g--) 185 } 186 a(c).css("zIndex", e.maxZ - 1) 187 }, 188 getSlideIndex: function(a) { 189 return this.opts().slides.index(a) 190 } 191 }, a.fn.cycle.log = function() { 192 window.console && console.log && console.log("[cycle2] " + Array.prototype.join.call(arguments, " ")) 193 }, a.fn.cycle.version = function() { 194 return "Cycle2: " + c 195 }, a.fn.cycle.transitions = { 196 custom: {}, 197 none: { 198 before: function(a, b, c, d) { 199 a.API.stackSlides(c, b, d), a.cssBefore = { 200 opacity: 1, 201 visibility: "visible", 202 display: "block" 203 } 204 } 205 }, 206 fade: { 207 before: function(b, c, d, e) { 208 var f = b.API.getSlideOpts(b.nextSlide).slideCss || {}; 209 b.API.stackSlides(c, d, e), b.cssBefore = a.extend(f, { 210 opacity: 0, 211 visibility: "visible", 212 display: "block" 213 }), b.animIn = { 214 opacity: 1 215 }, b.animOut = { 216 opacity: 0 217 } 218 } 219 }, 220 fadeout: { 221 before: function(b, c, d, e) { 222 var f = b.API.getSlideOpts(b.nextSlide).slideCss || {}; 223 b.API.stackSlides(c, d, e), b.cssBefore = a.extend(f, { 224 opacity: 1, 225 visibility: "visible", 226 display: "block" 227 }), b.animOut = { 228 opacity: 0 229 } 230 } 231 }, 232 scrollHorz: { 233 before: function(a, b, c, d) { 234 a.API.stackSlides(b, c, d); 235 var e = a.container.css("overflow", "hidden").width(); 236 a.cssBefore = { 237 left: d ? e : -e, 238 top: 0, 239 opacity: 1, 240 visibility: "visible", 241 display: "block" 242 }, a.cssAfter = { 243 zIndex: a._maxZ - 2, 244 left: 0 245 }, a.animIn = { 246 left: 0 247 }, a.animOut = { 248 left: d ? -e : e 249 } 250 } 251 } 252 }, a.fn.cycle.defaults = { 253 allowWrap: !0, 254 autoSelector: ".cycle-slideshow[data-cycle-auto-init!=false]", 255 delay: 0, 256 easing: null, 257 fx: "fade", 258 hideNonActive: !0, 259 loop: 0, 260 manualFx: void 0, 261 manualSpeed: void 0, 262 manualTrump: !0, 263 maxZ: 100, 264 pauseOnHover: !1, 265 reverse: !1, 266 slideActiveClass: "cycle-slide-active", 267 slideClass: "cycle-slide", 268 slideCss: { 269 position: "absolute", 270 top: 0, 271 left: 0 272 }, 273 slides: "> img", 274 speed: 500, 275 startingSlide: 0, 276 sync: !0, 277 timeout: 4e3, 278 updateView: 0 279 }, a(document).ready(function() { 280 a(a.fn.cycle.defaults.autoSelector).cycle() 281 }) 282}(jQuery), /*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */ 283 284function(a) { 285 "use strict"; 286 287 function b(b, d) { 288 var e, f, g, h = d.autoHeight; 289 if ("container" == h) f = a(d.slides[d.currSlide]).outerHeight(), d.container.height(f); 290 else if (d._autoHeightRatio) d.container.height(d.container.width() / d._autoHeightRatio); 291 else if ("calc" === h || "number" == a.type(h) && h >= 0) { 292 if (g = "calc" === h ? c(b, d) : h >= d.slides.length ? 0 : h, g == d._sentinelIndex) return; 293 d._sentinelIndex = g, d._sentinel && d._sentinel.remove(), e = a(d.slides[g].cloneNode(!0)), e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"), e.css({ 294 position: "static", 295 visibility: "hidden", 296 display: "block" 297 }).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"), e.find("*").css("visibility", "hidden"), d._sentinel = e 298 } 299 } 300 function c(b, c) { 301 var d = 0, 302 e = -1; 303 return c.slides.each(function(b) { 304 var c = a(this).height(); 305 c > e && (e = c, d = b) 306 }), d 307 } 308 function d(b, c, d, e) { 309 var f = a(e).outerHeight(); 310 c.container.animate({ 311 height: f 312 }, c.autoHeightSpeed, c.autoHeightEasing) 313 } 314 function e(c, f) { 315 f._autoHeightOnResize && (a(window).off("resize orientationchange", f._autoHeightOnResize), f._autoHeightOnResize = null), f.container.off("cycle-slide-added cycle-slide-removed", b), f.container.off("cycle-destroyed", e), f.container.off("cycle-before", d), f._sentinel && (f._sentinel.remove(), f._sentinel = null) 316 } 317 a.extend(a.fn.cycle.defaults, { 318 autoHeight: 0, 319 autoHeightSpeed: 250, 320 autoHeightEasing: null 321 }), a(document).on("cycle-initialized", function(c, f) { 322 function g() { 323 b(c, f) 324 } 325 var h, i = f.autoHeight, 326 j = a.type(i), 327 k = null; 328 ("string" === j || "number" === j) && (f.container.on("cycle-slide-added cycle-slide-removed", b), f.container.on("cycle-destroyed", e), "container" == i ? f.container.on("cycle-before", d) : "string" === j && /\d+\:\d+/.test(i) && (h = i.match(/(\d+)\:(\d+)/), h = h[1] / h[2], f._autoHeightRatio = h), "number" !== j && (f._autoHeightOnResize = function() { 329 clearTimeout(k), k = setTimeout(g, 50) 330 }, a(window).on("resize orientationchange", f._autoHeightOnResize)), setTimeout(g, 30)) 331 }) 332}(jQuery), /*! caption plugin for Cycle2; version: 20130306 */ 333 334function(a) { 335 "use strict"; 336 a.extend(a.fn.cycle.defaults, { 337 caption: "> .cycle-caption", 338 captionTemplate: "{{slideNum}} / {{slideCount}}", 339 overlay: "> .cycle-overlay", 340 overlayTemplate: "<div>{{title}}</div><div>{{desc}}</div>", 341 captionModule: "caption" 342 }), a(document).on("cycle-update-view", function(b, c, d, e) { 343 if ("caption" === c.captionModule) { 344 a.each(["caption", "overlay"], function() { 345 var a = this, 346 b = d[a + "Template"], 347 f = c.API.getComponent(a); 348 f.length && b ? (f.html(c.API.tmpl(b, d, c, e)), f.show()) : f.hide() 349 }) 350 } 351 }), a(document).on("cycle-destroyed", function(b, c) { 352 var d; 353 a.each(["caption", "overlay"], function() { 354 var a = this, 355 b = c[a + "Template"]; 356 c[a] && b && (d = c.API.getComponent("caption"), d.empty()) 357 }) 358 }) 359}(jQuery), /*! command plugin for Cycle2; version: 20140415 */ 360 361function(a) { 362 "use strict"; 363 var b = a.fn.cycle; 364 a.fn.cycle = function(c) { 365 var d, e, f, g = a.makeArray(arguments); 366 return "number" == a.type(c) ? this.cycle("goto", c) : "string" == a.type(c) ? this.each(function() { 367 var h; 368 return d = c, f = a(this).data("cycle.opts"), void 0 === f ? void b.log('slideshow must be initialized before sending commands; "' + d + '" ignored') : (d = "goto" == d ? "jump" : d, e = f.API[d], a.isFunction(e) ? (h = a.makeArray(g), h.shift(), e.apply(f.API, h)) : void b.log("unknown command: ", d)) 369 }) : b.apply(this, arguments) 370 }, a.extend(a.fn.cycle, b), a.extend(b.API, { 371 next: function() { 372 var a = this.opts(); 373 if (!a.busy || a.manualTrump) { 374 var b = a.reverse ? -1 : 1; 375 a.allowWrap === !1 && a.currSlide + b >= a.slideCount || (a.API.advanceSlide(b), a.API.trigger("cycle-next", [a]).log("cycle-next")) 376 } 377 }, 378 prev: function() { 379 var a = this.opts(); 380 if (!a.busy || a.manualTrump) { 381 var b = a.reverse ? 1 : -1; 382 a.allowWrap === !1 && a.currSlide + b < 0 || (a.API.advanceSlide(b), a.API.trigger("cycle-prev", [a]).log("cycle-prev")) 383 } 384 }, 385 destroy: function() { 386 this.stop(); 387 var b = this.opts(), 388 c = a.isFunction(a._data) ? a._data : a.noop; 389 clearTimeout(b.timeoutId), b.timeoutId = 0, b.API.stop(), b.API.trigger("cycle-destroyed", [b]).log("cycle-destroyed"), b.container.removeData(), c(b.container[0], "parsedAttrs", !1), b.retainStylesOnDestroy || (b.container.removeAttr("style"), b.slides.removeAttr("style"), b.slides.removeClass(b.slideActiveClass)), b.slides.each(function() { 390 a(this).removeData(), c(this, "parsedAttrs", !1) 391 }) 392 }, 393 jump: function(a, b) { 394 var c, d = this.opts(); 395 if (!d.busy || d.manualTrump) { 396 var e = parseInt(a, 10); 397 if (isNaN(e) || 0 > e || e >= d.slides.length) return void d.API.log("goto: invalid slide index: " + e); 398 if (e == d.currSlide) return void d.API.log("goto: skipping, already on slide", e); 399 d.nextSlide = e, clearTimeout(d.timeoutId), d.timeoutId = 0, d.API.log("goto: ", e, " (zero-index)"), c = d.currSlide < d.nextSlide, d._tempFx = b, d.API.prepareTx(!0, c) 400 } 401 }, 402 stop: function() { 403 var b = this.opts(), 404 c = b.container; 405 clearTimeout(b.timeoutId), b.timeoutId = 0, b.API.stopTransition(), b.pauseOnHover && (b.pauseOnHover !== !0 && (c = a(b.pauseOnHover)), c.off("mouseenter mouseleave")), b.API.trigger("cycle-stopped", [b]).log("cycle-stopped") 406 }, 407 reinit: function() { 408 var a = this.opts(); 409 a.API.destroy(), a.container.cycle() 410 }, 411 remove: function(b) { 412 for (var c, d, e = this.opts(), f = [], g = 1, h = 0; h < e.slides.length; h++) c = e.slides[h], h == b ? d = c : (f.push(c), a(c).data("cycle.opts").slideNum = g, g++); 413 d && (e.slides = a(f), e.slideCount--, a(d).remove(), b == e.currSlide ? e.API.advanceSlide(1) : b < e.currSlide ? e.currSlide-- : e.currSlide++, e.API.trigger("cycle-slide-removed", [e, b, d]).log("cycle-slide-removed"), e.API.updateView()) 414 } 415 }), a(document).on("click.cycle", "[data-cycle-cmd]", function(b) { 416 b.preventDefault(); 417 var c = a(this), 418 d = c.data("cycle-cmd"), 419 e = c.data("cycle-context") || ".cycle-slideshow"; 420 a(e).cycle(d, c.data("cycle-arg")) 421 }) 422}(jQuery), /*! hash plugin for Cycle2; version: 20130905 */ 423 424function(a) { 425 "use strict"; 426 427 function b(b, c) { 428 var d; 429 return b._hashFence ? void(b._hashFence = !1) : (d = window.location.hash.substring(1), void b.slides.each(function(e) { 430 if (a(this).data("cycle-hash") == d) { 431 if (c === !0) b.startingSlide = e; 432 else { 433 var f = b.currSlide < e; 434 b.nextSlide = e, b.API.prepareTx(!0, f) 435 } 436 return !1 437 } 438 })) 439 } 440 a(document).on("cycle-pre-initialize", function(c, d) { 441 b(d, !0), d._onHashChange = function() { 442 b(d, !1) 443 }, a(window).on("hashchange", d._onHashChange) 444 }), a(document).on("cycle-update-view", function(a, b, c) { 445 c.hash && "#" + c.hash != window.location.hash && (b._hashFence = !0, window.location.hash = c.hash) 446 }), a(document).on("cycle-destroyed", function(b, c) { 447 c._onHashChange && a(window).off("hashchange", c._onHashChange) 448 }) 449}(jQuery), /*! loader plugin for Cycle2; version: 20131121 */ 450 451function(a) { 452 "use strict"; 453 a.extend(a.fn.cycle.defaults, { 454 loader: !1 455 }), a(document).on("cycle-bootstrap", function(b, c) { 456 function d(b, d) { 457 function f(b) { 458 var f; 459 "wait" == c.loader ? (h.push(b), 0 === j && (h.sort(g), e.apply(c.API, [h, d]), c.container.removeClass("cycle-loading"))) : (f = a(c.slides[c.currSlide]), e.apply(c.API, [b, d]), f.show(), c.container.removeClass("cycle-loading")) 460 } 461 function g(a, b) { 462 return a.data("index") - b.data("index") 463 } 464 var h = []; 465 if ("string" == a.type(b)) b = a.trim(b); 466 else if ("array" === a.type(b)) for (var i = 0; i < b.length; i++) b[i] = a(b[i])[0]; 467 b = a(b); 468 var j = b.length; 469 j && (b.css("visibility", "hidden").appendTo("body").each(function(b) { 470 function g() { 471 0 === --i && (--j, f(k)) 472 } 473 var i = 0, 474 k = a(this), 475 l = k.is("img") ? k : k.find("img"); 476 return k.data("index", b), l = l.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'), l.length ? (i = l.length, void l.each(function() { 477 this.complete ? g() : a(this).load(function() { 478 g() 479 }).on("error", function() { 480 0 === --i && (c.API.log("slide skipped; img not loaded:", this.src), 0 === --j && "wait" == c.loader && e.apply(c.API, [h, d])) 481 }) 482 })) : (--j, void h.push(k)) 483 }), j && c.container.addClass("cycle-loading")) 484 } 485 var e; 486 c.loader && (e = c.API.add, c.API.add = d) 487 }) 488}(jQuery), /*! pager plugin for Cycle2; version: 20140415 */ 489 490function(a) { 491 "use strict"; 492 493 function b(b, c, d) { 494 var e, f = b.API.getComponent("pager"); 495 f.each(function() { 496 var f = a(this); 497 if (c.pagerTemplate) { 498 var g = b.API.tmpl(c.pagerTemplate, c, b, d[0]); 499 e = a(g).appendTo(f) 500 } else e = f.children().eq(b.slideCount - 1); 501 e.on(b.pagerEvent, function(a) { 502 b.pagerEventBubble || a.preventDefault(), b.API.page(f, a.currentTarget) 503 }) 504 }) 505 } 506 function c(a, b) { 507 var c = this.opts(); 508 if (!c.busy || c.manualTrump) { 509 var d = a.children().index(b), 510 e = d, 511 f = c.currSlide < e; 512 c.currSlide != e && (c.nextSlide = e, c._tempFx = c.pagerFx, c.API.prepareTx(!0, f), c.API.trigger("cycle-pager-activated", [c, a, b])) 513 } 514 } 515 a.extend(a.fn.cycle.defaults, { 516 pager: "> .cycle-pager", 517 pagerActiveClass: "cycle-pager-active", 518 pagerEvent: "click.cycle", 519 pagerEventBubble: void 0, 520 pagerTemplate: "<span>•</span>" 521 }), a(document).on("cycle-bootstrap", function(a, c, d) { 522 d.buildPagerLink = b 523 }), a(document).on("cycle-slide-added", function(a, b, d, e) { 524 b.pager && (b.API.buildPagerLink(b, d, e), b.API.page = c) 525 }), a(document).on("cycle-slide-removed", function(b, c, d) { 526 if (c.pager) { 527 var e = c.API.getComponent("pager"); 528 e.each(function() { 529 var b = a(this); 530 a(b.children()[d]).remove() 531 }) 532 } 533 }), a(document).on("cycle-update-view", function(b, c) { 534 var d; 535 c.pager && (d = c.API.getComponent("pager"), d.each(function() { 536 a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass) 537 })) 538 }), a(document).on("cycle-destroyed", function(a, b) { 539 var c = b.API.getComponent("pager"); 540 c && (c.children().off(b.pagerEvent), b.pagerTemplate && c.empty()) 541 }) 542}(jQuery), /*! prevnext plugin for Cycle2; version: 20140408 */ 543 544function(a) { 545 "use strict"; 546 a.extend(a.fn.cycle.defaults, { 547 next: "> .cycle-next", 548 nextEvent: "click.cycle", 549 disabledClass: "disabled", 550 prev: "> .cycle-prev", 551 prevEvent: "click.cycle", 552 swipe: !1 553 }), a(document).on("cycle-initialized", function(a, b) { 554 if (b.API.getComponent("next").on(b.nextEvent, function(a) { 555 a.preventDefault(), b.API.next() 556 }), b.API.getComponent("prev").on(b.prevEvent, function(a) { 557 a.preventDefault(), b.API.prev() 558 }), b.swipe) { 559 var c = b.swipeVert ? "swipeUp.cycle" : "swipeLeft.cycle swipeleft.cycle", 560 d = b.swipeVert ? "swipeDown.cycle" : "swipeRight.cycle swiperight.cycle"; 561 b.container.on(c, function() { 562 b._tempFx = b.swipeFx, b.API.next() 563 }), b.container.on(d, function() { 564 b._tempFx = b.swipeFx, b.API.prev() 565 }) 566 } 567 }), a(document).on("cycle-update-view", function(a, b) { 568 if (!b.allowWrap) { 569 var c = b.disabledClass, 570 d = b.API.getComponent("next"), 571 e = b.API.getComponent("prev"), 572 f = b._prevBoundry || 0, 573 g = void 0 !== b._nextBoundry ? b._nextBoundry : b.slideCount - 1; 574 b.currSlide == g ? d.addClass(c).prop("disabled", !0) : d.removeClass(c).prop("disabled", !1), b.currSlide === f ? e.addClass(c).prop("disabled", !0) : e.removeClass(c).prop("disabled", !1) 575 } 576 }), a(document).on("cycle-destroyed", function(a, b) { 577 b.API.getComponent("prev").off(b.nextEvent), b.API.getComponent("next").off(b.prevEvent), b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle") 578 }) 579}(jQuery), /*! progressive loader plugin for Cycle2; version: 20130315 */ 580 581function(a) { 582 "use strict"; 583 a.extend(a.fn.cycle.defaults, { 584 progressive: !1 585 }), a(document).on("cycle-pre-initialize", function(b, c) { 586 if (c.progressive) { 587 var d, e, f = c.API, 588 g = f.next, 589 h = f.prev, 590 i = f.prepareTx, 591 j = a.type(c.progressive); 592 if ("array" == j) d = c.progressive; 593 else if (a.isFunction(c.progressive)) d = c.progressive(c); 594 else if ("string" == j) { 595 if (e = a(c.progressive), d = a.trim(e.html()), !d) return; 596 if (/^(\[)/.test(d)) try { 597 d = a.parseJSON(d) 598 } catch (k) { 599 return void f.log("error parsing progressive slides", k) 600 } else d = d.split(new RegExp(e.data("cycle-split") || "\n")), d[d.length - 1] || d.pop() 601 } 602 i && (f.prepareTx = function(a, b) { 603 var e, f; 604 return a || 0 === d.length ? void i.apply(c.API, [a, b]) : void(b && c.currSlide == c.slideCount - 1 ? (f = d[0], d = d.slice(1), c.container.one("cycle-slide-added", function(a, b) { 605 setTimeout(function() { 606 b.API.advanceSlide(1) 607 }, 50) 608 }), c.API.add(f)) : b || 0 !== c.currSlide ? i.apply(c.API, [a, b]) : (e = d.length - 1, f = d[e], d = d.slice(0, e), c.container.one("cycle-slide-added", function(a, b) { 609 setTimeout(function() { 610 b.currSlide = 1, b.API.advanceSlide(-1) 611 }, 50) 612 }), c.API.add(f, !0))) 613 }), g && (f.next = function() { 614 var a = this.opts(); 615 if (d.length && a.currSlide == a.slideCount - 1) { 616 var b = d[0]; 617 d = d.slice(1), a.container.one("cycle-slide-added", function(a, b) { 618 g.apply(b.API), b.container.removeClass("cycle-loading") 619 }), a.container.addClass("cycle-loading"), a.API.add(b) 620 } else g.apply(a.API) 621 }), h && (f.prev = function() { 622 var a = this.opts(); 623 if (d.length && 0 === a.currSlide) { 624 var b = d.length - 1, 625 c = d[b]; 626 d = d.slice(0, b), a.container.one("cycle-slide-added", function(a, b) { 627 b.currSlide = 1, b.API.advanceSlide(-1), b.container.removeClass("cycle-loading") 628 }), a.container.addClass("cycle-loading"), a.API.add(c, !0) 629 } else h.apply(a.API) 630 }) 631 } 632 }) 633}(jQuery), /*! tmpl plugin for Cycle2; version: 20121227 */ 634 635function(a) { 636 "use strict"; 637 a.extend(a.fn.cycle.defaults, { 638 tmplRegex: "{{((.)?.*?)}}" 639 }), a.extend(a.fn.cycle.API, { 640 tmpl: function(b, c) { 641 var d = new RegExp(c.tmplRegex || a.fn.cycle.defaults.tmplRegex, "g"), 642 e = a.makeArray(arguments); 643 return e.shift(), b.replace(d, function(b, c) { 644 var d, f, g, h, i = c.split("."); 645 for (d = 0; d < e.length;
645 d++) if (g = e[d]) { 646 if (i.length > 1) for (h = g, f = 0; f < i.length; f++) g = h, h = h[i[f]] || c; 647 else h = g[c]; 648 if (a.isFunction(h)) return h.apply(g, e); 649 if (void 0 !== h && null !== h && h != c) return h 650 } 651 return c 652 }) 653 } 654 }) 655}(jQuery); 656//# sourceMappingURL=jquery.cycle2.js.map
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.