1/** 2 * Owl Carousel v2.2.1 3 * Copyright 2013-2017 David Deutsch 4 * Licensed under () 5 */ 6!(function (a, b, c, d) { 7 function e(b, c) { 8 (this.settings = null), 9 (this.options = a.extend({}, e.Defaults, c)), 10 (this.$element = a(b)), 11 (this._handlers = {}), 12 (this._plugins = {}), 13 (this._supress = {}), 14 (this._current = null), 15 (this._speed = null), 16 (this._coordinates = []), 17 (this._breakpoint = null), 18 (this._width = null), 19 (this._items = []), 20 (this._clones = []), 21 (this._mergers = []), 22 (this._widths = []), 23 (this._invalidated = {}), 24 (this._pipe = []), 25 (this._drag = { time: null, target: null, pointer: null, stage: { start: null, current: null }, direction: null }), 26 (this._states = { current: {}, tags: { initializing: ["busy"], animating: ["busy"], dragging: ["interacting"] } }), 27 a.each( 28 ["onResize", "onThrottledResize"], 29 a.proxy(function (b, c) { 30 this._handlers[c] = a.proxy(this[c], this); 31 }, this) 32 ), 33 a.each( 34 e.Plugins, 35 a.proxy(function (a, b) { 36 this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this); 37 }, this) 38 ), 39 a.each( 40 e.Workers, 41 a.proxy(function (b, c) { 42 this._pipe.push({ filter: c.filter, run: a.proxy(c.run, this) }); 43 }, this) 44 ), 45 this.setup(), 46 this.initialize(); 47 } 48 (e.Defaults = { 49 items: 3, 50 loop: !1, 51 center: !1, 52 rewind: !1, 53 mouseDrag: !0, 54 touchDrag: !0, 55 pullDrag: !0, 56 freeDrag: !1, 57 margin: 0, 58 stagePadding: 0, 59 merge: !1, 60 mergeFit: !0, 61 autoWidth: !1, 62 startPosition: 0, 63 rtl: !1, 64 smartSpeed: 250, 65 fluidSpeed: !1, 66 dragEndSpeed: !1, 67 responsive: {}, 68 responsiveRefreshRate: 200, 69 responsiveBaseElement: b, 70 fallbackEasing: "swing", 71 info: !1, 72 nestedItemSelector: !1, 73 itemElement: "div", 74 stageElement: "div", 75 refreshClass: "owl-refresh", 76 loadedClass: "owl-loaded", 77 loadingClass: "owl-loading", 78 rtlClass: "owl-rtl", 79 responsiveClass: "owl-responsive", 80 dragClass: "owl-drag", 81 itemClass: "owl-item", 82 stageClass: "owl-stage", 83 stageOuterClass: "owl-stage-outer", 84 grabClass: "owl-grab", 85 }), 86 (e.Width = { Default: "default", Inner: "inner", Outer: "outer" }), 87 (e.Type = { Event: "event", State: "state" }), 88 (e.Plugins = {}), 89 (e.Workers = [ 90 { 91 filter: ["width", "settings"], 92 run: function () { 93 this._width = this.$element.width(); 94 }, 95 }, 96 { 97 filter: ["width", "items", "settings"], 98 run: function (a) { 99 a.current = this._items && this._items[this.relative(this._current)]; 100 }, 101 }, 102 { 103 filter: ["items", "settings"], 104 run: function () { 105 this.$stage.children(".cloned").remove(); 106 }, 107 }, 108 { 109 filter: ["width", "items", "settings"], 110 run: function (a) { 111 var b = this.settings.margin || "", 112 c = !this.settings.autoWidth, 113 d = this.settings.rtl, 114 e = { width: "auto", "margin-left": d ? b : "", "margin-right": d ? "" : b }; 115 !c && this.$stage.children().css(e), (a.css = e); 116 }, 117 }, 118 { 119 filter: ["width", "items", "settings"], 120 run: function (a) { 121 var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, 122 c = null, 123 d = this._items.length, 124 e = !this.settings.autoWidth, 125 f = []; 126 for (a.items = { merge: !1, width: b }; d--; ) 127 (c = this._mergers[d]), (c = (this.settings.mergeFit && Math.min(c, this.settings.items)) || c), (a.items.merge = c > 1 || a.items.merge), (f[d] = e ? b * c : this._items[d].width()); 128 this._widths = f; 129 }, 130 }, 131 { 132 filter: ["items", "settings"], 133 run: function () { 134 var b = [], 135 c = this._items, 136 d = this.settings, 137 e = Math.max(2 * d.items, 4), 138 f = 2 * Math.ceil(c.length / 2), 139 g = d.loop && c.length ? (d.rewind ? e : Math.max(e, f)) : 0, 140 h = "", 141 i = ""; 142 for (g /= 2; g--; ) b.push(this.normalize(b.length / 2, !0)), (h += c[b[b.length - 1]][0].outerHTML), b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), (i = c[b[b.length - 1]][0].outerHTML + i); 143 (this._clones = b), a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage); 144 }, 145 }, 146 { 147 filter: ["width", "items", "settings"], 148 run: function () { 149 for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b; ) 150 (d = f[c - 1] || 0), (e = this._widths[this.relative(c)] + this.settings.margin), f.push(d + e * a); 151 this._coordinates = f; 152 }, 153 }, 154 { 155 filter: ["width", "items", "settings"], 156 run: function () { 157 var a = this.settings.stagePadding, 158 b = this._coordinates, 159 c = { width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, "padding-left": a || "", "padding-right": a || "" }; 160 this.$stage.css(c); 161 }, 162 }, 163 { 164 filter: ["width", "items", "settings"], 165 run: function (a) { 166 var b = this._coordinates.length, 167 c = !this.settings.autoWidth, 168 d = this.$stage.children(); 169 if (c && a.items.merge) for (; b--; ) (a.css.width = this._widths[this.relative(b)]), d.eq(b).css(a.css); 170 else c && ((a.css.width = a.items.width), d.css(a.css)); 171 }, 172 }, 173 { 174 filter: ["items"], 175 run: function () { 176 this._coordinates.length < 1 && this.$stage.removeAttr("style"); 177 }, 178 }, 179 { 180 filter: ["width", "items", "settings"], 181 run: function (a) { 182 (a.current = a.current ? this.$stage.children().index(a.current) : 0), (a.current = Math.max(this.minimum(), Math.min(this.maximum(), a.current))), this.reset(a.current); 183 }, 184 }, 185 { 186 filter: ["position"], 187 run: function () { 188 this.animate(this.coordinates(this._current)); 189 }, 190 }, 191 { 192 filter: ["width", "position", "items", "settings"], 193 run: function () { 194 var a, 195 b, 196 c, 197 d, 198 e = this.settings.rtl ? 1 : -1, 199 f = 2 * this.settings.stagePadding, 200 g = this.coordinates(this.current()) + f, 201 h = g + this.width() * e, 202 i = []; 203 for (c = 0, d = this._coordinates.length; c < d; c++) 204 (a = this._coordinates[c - 1] || 0), (b = Math.abs(this._coordinates[c]) + f * e), ((this.op(a, "<=", g) && this.op(a, ">", h)) || (this.op(b, "<", g) && this.op(b, ">", h))) && i.push(c); 205 this.$stage.children(".active").removeClass("active"), 206 this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass("active"), 207 this.settings.center && (this.$stage.children(".center").removeClass("center"), this.$stage.children().eq(this.current()).addClass("center")); 208 }, 209 }, 210 ]), 211 (e.prototype.initialize = function () { 212 if ((this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading"))) { 213 var b, c, e; 214 (b = this.$element.find("img")), (c = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d), (e = this.$element.children(c).width()), b.length && e <= 0 && this.preloadAutoWidthImages(b); 215 } 216 this.$element.addClass(this.options.loadingClass), 217 (this.$stage = a("<" + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>').wrap('<div class="' + this.settings.stageOuterClass + '"/>')), 218 this.$element.append(this.$stage.parent()), 219 this.replace(this.$element.children().not(this.$stage.parent())), 220 this.$element.is(":visible") ? this.refresh() : this.invalidate("width"), 221 this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass), 222 this.registerEventHandlers(), 223 this.leave("initializing"), 224 this.trigger("initialized"); 225 }), 226 (e.prototype.setup = function () { 227 var b = this.viewport(), 228 c = this.options.responsive, 229 d = -1, 230 e = null; 231 c 232 ? (a.each(c, function (a) { 233 a <= b && a > d && (d = Number(a)); 234 }), 235 (e = a.extend({}, this.options, c[d])), 236 "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), 237 delete e.responsive, 238 e.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + d))) 239 : (e = a.extend({}, this.options)), 240 this.trigger("change", { property: { name: "settings", value: e } }), 241 (this._breakpoint = d), 242 (this.settings = e), 243 this.invalidate("settings"), 244 this.trigger("changed", { property: { name: "settings", value: this.settings } }); 245 }), 246 (e.prototype.optionsLogic = function () { 247 this.settings.autoWidth && ((this.settings.stagePadding = !1), (this.settings.merge = !1)); 248 }), 249 (e.prototype.prepare = function (b) {
250 var c = this.trigger("prepare", { content: b }); 251 return ( 252 c.data || 253 (c.data = a("<" + this.settings.itemElement + "/>") 254 .addClass(this.options.itemClass) 255 .append(b)), 256 this.trigger("prepared", { content: c.data }), 257 c.data 258 ); 259 }), 260 (e.prototype.update = function () { 261 for ( 262 var b = 0, 263 c = this._pipe.length, 264 d = a.proxy(function (a) { 265 return this[a]; 266 }, this._invalidated), 267 e = {}; 268 b < c; 269 270 ) 271 (this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; 272 (this._invalidated = {}), !this.is("valid") && this.enter("valid"); 273 }), 274 (e.prototype.width = function (a) { 275 switch ((a = a || e.Width.Default)) { 276 case e.Width.Inner: 277 case e.Width.Outer: 278 return this._width; 279 default: 280 return this._width - 2 * this.settings.stagePadding + this.settings.margin; 281 } 282 }), 283 (e.prototype.refresh = function () { 284 this.enter("refreshing"), 285 this.trigger("refresh"), 286 this.setup(), 287 this.optionsLogic(), 288 this.$element.addClass(this.options.refreshClass), 289 this.update(), 290 this.$element.removeClass(this.options.refreshClass), 291 this.leave("refreshing"), 292 this.trigger("refreshed"); 293 }), 294 (e.prototype.onThrottledResize = function () { 295 b.clearTimeout(this.resizeTimer), (this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate)); 296 }), 297 (e.prototype.onResize = function () { 298 return ( 299 !!this._items.length && 300 this._width !== this.$element.width() && 301 !!this.$element.is(":visible") && 302 (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))) 303 ); 304 }), 305 (e.prototype.registerEventHandlers = function () { 306 a.support.transition && this.$stage.on(a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this)), 307 this.settings.responsive !== !1 && this.on(b, "resize", this._handlers.onThrottledResize), 308 this.settings.mouseDrag && 309 (this.$element.addClass(this.options.dragClass), 310 this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)), 311 this.$stage.on("dragstart.owl.core selectstart.owl.core", function () { 312 return !1; 313 })), 314 this.settings.touchDrag && (this.$stage.on("touchstart.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("touchcancel.owl.core", a.proxy(this.onDragEnd, this))); 315 }), 316 (e.prototype.onDragStart = function (b) { 317 var d = null; 318 3 !== b.which && 319 (a.support.transform 320 ? ((d = this.$stage 321 .css("transform") 322 .replace(/.*\(|\)| /g, "") 323 .split(",")), 324 (d = { x: d[16 === d.length ? 12 : 4], y: d[16 === d.length ? 13 : 5] })) 325 : ((d = this.$stage.position()), (d = { x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, y: d.top })), 326 this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), 327 this.$element.toggleClass(this.options.grabClass, "mousedown" === b.type), 328 this.speed(0), 329 (this._drag.time = new Date().getTime()), 330 (this._drag.target = a(b.target)), 331 (this._drag.stage.start = d), 332 (this._drag.stage.current = d), 333 (this._drag.pointer = this.pointer(b)), 334 a(c).on("mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this)), 335 a(c).one( 336 "mousemove.owl.core touchmove.owl.core", 337 a.proxy(function (b) { 338 var d = this.difference(this._drag.pointer, this.pointer(b)); 339 a(c).on("mousemove.owl.core touchmove.owl.core", a.proxy(this.onDragMove, this)), (Math.abs(d.x) < Math.abs(d.y) && this.is("valid")) || (b.preventDefault(), this.enter("dragging"), this.trigger("drag")); 340 }, this) 341 )); 342 }), 343 (e.prototype.onDragMove = function (a) { 344 var b = null, 345 c = null, 346 d = null, 347 e = this.difference(this._drag.pointer, this.pointer(a)), 348 f = this.difference(this._drag.stage.start, e); 349 this.is("dragging") && 350 (a.preventDefault(), 351 this.settings.loop 352 ? ((b = this.coordinates(this.minimum())), (c = this.coordinates(this.maximum() + 1) - b), (f.x = ((((f.x - b) % c) + c) % c) + b)) 353 : ((b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum())), 354 (c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum())), 355 (d = this.settings.pullDrag ? (-1 * e.x) / 5 : 0), 356 (f.x = Math.max(Math.min(f.x, b + d), c + d))
356), 357 (this._drag.stage.current = f), 358 this.animate(f.x)); 359 }), 360 (e.prototype.onDragEnd = function (b) { 361 var d = this.difference(this._drag.pointer, this.pointer(b)), 362 e = this._drag.stage.current, 363 f = (d.x > 0) ^ this.settings.rtl ? "left" : "right"; 364 a(c).off(".owl.core"), 365 this.$element.removeClass(this.options.grabClass), 366 ((0 !== d.x && this.is("dragging")) || !this.is("valid")) && 367 (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), 368 this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), 369 this.invalidate("position"), 370 this.update(), 371 (this._drag.direction = f), 372 (Math.abs(d.x) > 3 || new Date().getTime() - this._drag.time > 300) && 373 this._drag.target.one("click.owl.core", function () { 374 return !1; 375 })), 376 this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")); 377 }), 378 (e.prototype.closest = function (b, c) { 379 var d = -1, 380 e = 30, 381 f = this.width(), 382 g = this.coordinates(); 383 return ( 384 this.settings.freeDrag || 385 a.each( 386 g, 387 a.proxy(function (a, h) { 388 return ( 389 "left" === c && b > h - e && b < h + e ? (d = a) : "right" === c && b > h - f - e && b < h - f + e ? (d = a + 1) : this.op(b, "<", h) && this.op(b, ">", g[a + 1] || h - f) && (d = "left" === c ? a + 1 : a), 390 d === -1 391 ); 392 }, this) 393 ), 394 this.settings.loop || (this.op(b, ">", g[this.minimum()]) ? (d = b = this.minimum()) : this.op(b, "<", g[this.maximum()]) && (d = b = this.maximum())), 395 d 396 ); 397 }), 398 (e.prototype.animate = function (b) { 399 var c = this.speed() > 0; 400 this.is("animating") && this.onTransitionEnd(), 401 c && (this.enter("animating"), this.trigger("translate")), 402 a.support.transform3d && a.support.transition 403 ? this.$stage.css({ transform: "translate3d(" + b + "px,0px,0px)", transition: this.speed() / 1e3 + "s" }) 404 : c 405 ? this.$stage.animate({ left: b + "px" }, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) 406 : this.$stage.css({ left: b + "px" }); 407 }), 408 (e.prototype.is = function (a) { 409 return this._states.current[a] && this._states.current[a] > 0; 410 }), 411 (e.prototype.current = function (a) { 412 if (a === d) return this._current; 413 if (0 === this._items.length) return d; 414 if (((a = this.normalize(a)), this._current !== a)) { 415 var b = this.trigger("change", { property: { name: "position", value: a } }); 416 b.data !== d && (a = this.normalize(b.data)), (this._current = a), this.invalidate("position"), this.trigger("changed", { property: { name: "position", value: this._current } }); 417 } 418 return this._current; 419 }), 420 (e.prototype.invalidate = function (b) { 421 return ( 422 "string" === a.type(b) && ((this._invalidated[b] = !0), this.is("valid") && this.leave("valid")), 423 a.map(this._invalidated, function (a, b) { 424 return b; 425 }) 426 ); 427 }), 428 (e.prototype.reset = function (a) { 429 (a = this.normalize(a)), a !== d && ((this._speed = 0), (this._current = a), this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])); 430 }), 431 (e.prototype.normalize = function (a, b) { 432 var c = this._items.length, 433 e = b ? 0 : this._clones.length; 434 return !this.isNumeric(a) || c < 1 ? (a = d) : (a < 0 || a >= c + e) && (a = ((((a - e / 2) % c) + c) % c) + e / 2), a; 435 }), 436 (e.prototype.relative = function (a) {
437 return (a -= this._clones.length / 2), this.normalize(a, !0); 438 }), 439 (e.prototype.maximum = function (a) { 440 var b, 441 c, 442 d, 443 e = this.settings, 444 f = this._coordinates.length; 445 if (e.loop) f = this._clones.length / 2 + this._items.length - 1; 446 else if (e.autoWidth || e.merge) { 447 for (b = this._items.length, c = this._items[--b].width(), d = this.$element.width(); b-- && ((c += this._items[b].width() + this.settings.margin), !(c > d)); ); 448 f = b + 1; 449 } else f = e.center ? this._items.length - 1 : this._items.length - e.items; 450 return a && (f -= this._clones.length / 2), Math.max(f, 0); 451 }), 452 (e.prototype.minimum = function (a) { 453 return a ? 0 : this._clones.length / 2; 454 }), 455 (e.prototype.items = function (a) { 456 return a === d ? this._items.slice() : ((a = this.normalize(a, !0)), this._items[a]); 457 }), 458 (e.prototype.mergers = function (a) { 459 return a === d ? this._mergers.slice() : ((a = this.normalize(a, !0)), this._mergers[a]); 460 }), 461 (e.prototype.clones = function (b) { 462 var c = this._clones.length / 2, 463 e = c + this._items.length, 464 f = function (a) { 465 return a % 2 === 0 ? e + a / 2 : c - (a + 1) / 2; 466 }; 467 return b === d 468 ? a.map(this._clones, function (a, b) { 469 return f(b); 470 }) 471 : a.map(this._clones, function (a, c) { 472 return a === b ? f(c) : null; 473 }); 474 }), 475 (e.prototype.speed = function (a) { 476 return a !== d && (this._speed = a), this._speed; 477 }), 478 (e.prototype.coordinates = function (b) { 479 var c, 480 e = 1, 481 f = b - 1; 482 return b === d 483 ? a.map( 484 this._coordinates, 485 a.proxy(function (a, b) { 486 return this.coordinates(b); 487 }, this) 488 ) 489 : (this.settings.center ? (this.settings.rtl && ((e = -1), (f = b + 1)), (c = this._coordinates[b]), (c += ((this.width() - c + (this._coordinates[f] || 0)) / 2) * e)) : (c = this._coordinates[f] || 0), (c = Math.ceil(c))); 490 }), 491 (e.prototype.duration = function (a, b, c) { 492 return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed); 493 }), 494 (e.prototype.to = function (a, b) { 495 var c = this.current(), 496 d = null, 497 e = a - this.relative(c), 498 f = (e > 0) - (e < 0), 499 g = this._items.length, 500 h = this.minimum(), 501 i = this.maximum(); 502 this.settings.loop 503 ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += f * -1 * g), (a = c + e), (d = ((((a - h) % g) + g) % g) + h), d !== a && d - e <= i && d - e > 0 && ((c = d - e), (a = d), this.reset(c))) 504 : this.settings.rewind 505 ? ((i += 1), (a = ((a % i) + i) % i)) 506 : (a = Math.max(h, Math.min(i, a))), 507 this.speed(this.duration(c, a, b)), 508 this.current(a), 509 this.$element.is(":visible") && this.update(); 510 }), 511 (e.prototype.next = function (a) { 512 (a = a || !1), this.to(this.relative(this.current()) + 1, a); 513 }), 514 (e.prototype.prev = function (a) { 515 (a = a || !1), this.to(this.relative(this.current()) - 1, a); 516 }), 517 (e.prototype.onTransitionEnd = function (a) { 518 if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))) return !1; 519 this.leave("animating"), this.trigger("translated"); 520 }), 521 (e.prototype.viewport = function () { 522 var d; 523 return ( 524 this.options.responsiveBaseElement !== b 525 ? (d = a(this.options.responsiveBaseElement).width()) 526 : b.innerWidth 527 ? (d = b.innerWidth) 528 : c.documentElement && c.documentElement.clientWidth 529 ? (d = c.documentElement.clientWidth) 530 : console.warn("Can not detect viewport width."), 531 d 532 ); 533 }), 534 (e.prototype.replace = function (b) { 535 this.$stage.empty(), 536 (this._items = []), 537 b && (b = b instanceof jQuery ? b : a(b)), 538 this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), 539 b 540 .filter(function () { 541 return 1 === this.nodeType; 542 }) 543 .each( 544 a.proxy(function (a, b) { 545 (b = this.prepare(b)), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1); 546 }, this) 547 ), 548 this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), 549 this.invalidate("items"); 550 }), 551 (e.prototype.add = function (b, c) { 552 var e = this.relative(this._current); 553 (c = c === d ? this._items.length : this.normalize(c, !0)), 554 (b = b instanceof jQuery ? b : a(b)), 555 this.trigger("add", { content: b, position: c }), 556 (b = this.prepare(b)), 557 0 === this._items.length || c === this._items.length 558 ? (0 === this._items.length && this.$stage.append(b), 559 0 !== this._items.length && this._items[c - 1].after(b), 560 this._items.push(b), 561 this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) 562 : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice(c, 0, 1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)), 563 this._items[e] && this.reset(this._items[e].index()), 564 this.invalidate("items"), 565 this.trigger("added", { content: b, position: c }); 566 }), 567 (e.prototype.remove = function (a) { 568 (a = this.normalize(a, !0)), 569 a !== d && 570 (this.trigger("remove", { content: this._items[a], position: a }), 571 this._items[a].remove(), 572 this._items.splice(a, 1), 573 this._mergers.splice(a, 1), 574 this.invalidate("items"), 575 this.trigger("removed", { content: null, position: a })); 576 }), 577 (e.prototype.preloadAutoWidthImages = function (b) { 578 b.each( 579 a.proxy(function (b, c) { 580 this.enter("pre-loading"), 581 (c = a(c)), 582 a(new Image()) 583 .one( 584 "load", 585 a.proxy(function (a) { 586 c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh(); 587 }, this) 588 ) 589 .attr("src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")); 590 }, this) 591 ); 592 }), 593 (e.prototype.destroy = function () { 594 this.$element.off(".owl.core"), this.$stage.off(".owl.core"), a(c).off(".owl.core"), this.settings.responsive !== !1 && (b.clearTimeout(this.resizeTimer), this.off(b, "resize", this._handlers.onThrottledResize)); 595 for (var d in this._plugins) this._plugins[d].destroy(); 596 this.$stage.children(".cloned").remove(), 597 this.$stage.unwrap(), 598 this.$stage.children().contents().unwrap(), 599 this.$stage.children().unwrap(), 600 this.$element 601 .removeClass(this.options.refreshClass) 602 .removeClass(this.options.loadingClass) 603 .removeClass(this.options.loadedClass) 604 .removeClass(this.options.rtlClass) 605 .removeClass(this.options.dragClass) 606 .removeClass(this.options.grabClass) 607 .attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")) 608 .removeData("owl.carousel"); 609 }), 610 (e.prototype.op = function (a, b, c) { 611 var d = this.settings.rtl; 612 switch (b) { 613 case "<": 614 return d ? a > c : a < c; 615 case ">": 616 return d ? a < c : a > c; 617 case ">=": 618 return d ? a <= c : a >= c; 619 case "<=": 620 return d ? a >= c : a <= c; 621 } 622 }), 623 (e.prototype.on = function (a, b, c, d) { 624 a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c); 625 }), 626 (e.prototype.off = function (a, b, c, d) { 627 a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c); 628 }), 629 (e.prototype.trigger = function (b, c, d, f, g) { 630 var h = { item: { count: this._items.length, index: this.current() } }, 631 i = a.camelCase( 632 a 633 .grep(["on", b, d], function (a) { 634 return a; 635 }) 636 .join("-") 637 .toLowerCase() 638 ), 639 j = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({ relatedTarget: this }, h, c)); 640 return ( 641 this._supress[b] || 642 (a.each(this._plugins, function (a, b) { 643 b.onTrigger && b.onTrigger(j); 644 }), 645 this.register({ type: e.Type.Event, name: b }), 646 this.$element.trigger(j), 647 this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), 648 j 649 ); 650 }), 651 (e.prototype.enter = function (b) { 652 a.each( 653 [b].concat(this._states.tags[b] || []), 654 a.proxy(function (a, b) { 655 this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++; 656 }, this) 657 ); 658 }), 659 (e.prototype.leave = function (b) { 660 a.each( 661 [b].concat(this._states.tags[b] || []), 662 a.proxy(function (a, b) { 663 this._states.current[b]--; 664 }, this) 665 ); 666 }), 667 (e.prototype.register = function (b) { 668 if (b.type === e.Type.Event) { 669 if ((a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl)) { 670 var c = a.event.special[b.name]._default; 671 (a.event.special[b.name]._default = function (a) { 672 return !c || !c.apply || (a.namespace && a.namespace.indexOf("owl") !== -1) ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments); 673 }), 674 (a.event.special[b.name].owl = !0); 675 } 676 } else 677 b.type === e.Type.State && 678 (this._states.tags[b.name] ? (this._states.tags[b.name] = this._states.tags[b.name].
678concat(b.tags)) : (this._states.tags[b.name] = b.tags), 679 (this._states.tags[b.name] = a.grep( 680 this._states.tags[b.name], 681 a.proxy(function (c, d) { 682 return a.inArray(c, this._states.tags[b.name]) === d; 683 }, this) 684 ))); 685 }), 686 (e.prototype.suppress = function (b) { 687 a.each( 688 b, 689 a.proxy(function (a, b) { 690 this._supress[b] = !0; 691 }, this) 692 ); 693 }), 694 (e.prototype.release = function (b) { 695 a.each( 696 b, 697 a.proxy(function (a, b) { 698 delete this._supress[b]; 699 }, this) 700 ); 701 }), 702 (e.prototype.pointer = function (a) { 703 var c = { x: null, y: null }; 704 return ( 705 (a = a.originalEvent || a || b.event), 706 (a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a), 707 a.pageX ? ((c.x = a.pageX), (c.y = a.pageY)) : ((c.x = a.clientX), (c.y = a.clientY)), 708 c 709 ); 710 }), 711 (e.prototype.isNumeric = function (a) { 712 return !isNaN(parseFloat(a)); 713 }), 714 (e.prototype.difference = function (a, b) { 715 return { x: a.x - b.x, y: a.y - b.y }; 716 }), 717 (a.fn.owlCarousel = function (b) { 718 var c = Array.prototype.slice.call(arguments, 1); 719 return this.each(function () { 720 var d = a(this), 721 f = d.data("owl.carousel"); 722 f || 723 ((f = new e(this, "object" == typeof b && b)), 724 d.data("owl.carousel", f), 725 a.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function (b, c) { 726 f.register({ type: e.Type.Event, name: c }), 727 f.$element.on( 728 c + ".owl.carousel.core", 729 a.proxy(function (a) { 730 a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])); 731 }, f) 732 ); 733 })), 734 "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c); 735 }); 736 }), 737 (a.fn.owlCarousel.Constructor = e); 738})(window.Zepto || window.jQuery, window, document), 739 (function (a, b, c, d) { 740 var e = function (b) { 741 (this._core = b), 742 (this._interval = null), 743 (this._visible = null), 744 (this._handlers = { 745 "initialized.owl.carousel": a.proxy(function (a) { 746 a.namespace && this._core.settings.autoRefresh && this.watch(); 747 }, this), 748 }), 749 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 750 this._core.$element.on(this._handlers); 751 }; 752 (e.Defaults = { autoRefresh: !0, autoRefreshInterval: 500 }), 753 (e.prototype.watch = function () { 754 this._interval || ((this._visible = this._core.$element.is(":visible")), (this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval))); 755 }), 756 (e.prototype.refresh = function () { 757 this._core.$element.is(":visible") !== this._visible && 758 ((this._visible = !this._visible), this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()); 759 }), 760 (e.prototype.destroy = function () { 761 var a, c; 762 b.clearInterval(this._interval); 763 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 764 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null); 765 }), 766 (a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e); 767 })(window.Zepto || window.jQuery, window, document), 768 (function (a, b, c, d) { 769 var e = function (b) { 770 (this._core = b), 771 (this._loaded = []), 772 (this._handlers = { 773 "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function (b) { 774 if (b.namespace && this._core.settings && this._core.settings.lazyLoad && ((b.property && "position" == b.property.name) || "initialized" == b.type)) 775 for ( 776 var c = this._core.settings, 777 e = (c.center && Math.ceil(c.items / 2)) || c.items, 778 f = (c.center && e * -1) || 0, 779 g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, 780 h = this._core.clones().length, 781 i = a.proxy(function (a, b) { 782 this.load(b); 783 }, this); 784 f++ < e; 785 786 ) 787 this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++; 788 }, this), 789 }), 790 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 791 this._core.$element.on(this._handlers); 792 }; 793 (e.Defaults = { lazyLoad: !1 }), 794 (e.prototype.load = function (c) { 795 var d = this._core.$stage.children().eq(c), 796 e = d && d.find(".owl-lazy"); 797 !e || 798 a.inArray(d.get(0), this._loaded) > -1 || 799 (e.each( 800 a.proxy(function (c, d) { 801 var e, 802 f = a(d), 803 g = (b.devicePixelRatio > 1 && f.attr("data-src-retina")) || f.attr("data-src"); 804 this._core.trigger("load", { element: f, url: g }, "lazy"), 805 f.is("img") 806 ? f 807 .one( 808 "load.owl.lazy", 809 a.proxy(function () { 810 f.css("opacity", 1), this._core.trigger("loaded", { element: f, url: g }, "lazy"); 811 }, this) 812 ) 813 .attr("src", g) 814 : ((e = new Image()), 815 (e.onload = a.proxy(function () { 816 f.css({ "background-image": 'url("' + g + '")', opacity: "1" }), this._core.trigger("loaded", { element: f, url: g }, "lazy"); 817 }, this)), 818 (e.src = g)); 819 }, this) 820 ), 821 this._loaded.push(d.get(0))); 822 }), 823 (e.prototype.destroy = function () { 824 var a, b; 825 for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); 826 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); 827 }), 828 (a.fn.owlCarousel.Constructor.Plugins.Lazy = e); 829 })(window.Zepto || window.jQuery, window, document), 830 (function (a, b, c, d) { 831 var e = function (b) { 832 (this._core = b), 833 (this._handlers = { 834 "initialized.owl.carousel refreshed.owl.carousel": a.proxy(function (a) { 835 a.namespace && this._core.settings.autoHeight && this.update(); 836 }, this), 837 "changed.owl.carousel": a.proxy(function (a) { 838 a.namespace && this._core.settings.autoHeight && "position" == a.property.name && this.update(); 839 }, this), 840 "loaded.owl.lazy": a.proxy(function (a) { 841 a.namespace && this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update(); 842 }, this), 843 }), 844 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 845 this._core.$element.on(this._handlers); 846 }; 847 (e.Defaults = { autoHeight: !1, autoHeightClass: "owl-height" }), 848 (e.prototype.update = function () { 849 var b = this._core._current, 850 c = b + this._core.settings.items, 851 d = this._core.$stage.children().toArray().slice(b, c), 852 e = [], 853 f = 0; 854 a.each(d, function (b, c) { 855 e.push(a(c).height()); 856 }), 857 (f = Math.max.apply(null, e)), 858 this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass); 859 }), 860 (e.prototype.destroy = function () { 861 var a, b; 862 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 863 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); 864 }), 865 (a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e); 866 })(window.Zepto || window.jQuery, window, document), 867 (function (a, b, c, d) { 868 var e = function (b) { 869 (this._core = b), 870 (this._videos = {}), 871 (this._playing = null),
872 (this._handlers = { 873 "initialized.owl.carousel": a.proxy(function (a) { 874 a.namespace && this._core.register({ type: "state", name: "playing", tags: ["interacting"] }); 875 }, this), 876 "resize.owl.carousel": a.proxy(function (a) { 877 a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault(); 878 }, this), 879 "refreshed.owl.carousel": a.proxy(function (a) { 880 a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove(); 881 }, this), 882 "changed.owl.carousel": a.proxy(function (a) { 883 a.namespace && "position" === a.property.name && this._playing && this.stop(); 884 }, this), 885 "prepared.owl.carousel": a.proxy(function (b) { 886 if (b.namespace) { 887 var c = a(b.content).find(".owl-video"); 888 c.length && (c.css("display", "none"), this.fetch(c, a(b.content))); 889 } 890 }, this), 891 }), 892 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 893 this._core.$element.on(this._handlers), 894 this._core.$element.on( 895 "click.owl.video", 896 ".owl-video-play-icon", 897 a.proxy(function (a) { 898 this.play(a); 899 }, this) 900 ); 901 }; 902 (e.Defaults = { video: !1, videoHeight: !1, videoWidth: !1 }), 903 (e.prototype.fetch = function (a, b) { 904 var c = (function () { 905 return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube"; 906 })(), 907 d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), 908 e = a.attr("data-width") || this._core.settings.videoWidth, 909 f = a.attr("data-height") || this._core.settings.videoHeight, 910 g = a.attr("href"); 911 if (!g) throw new Error("Missing video URL."); 912 if ( 913 ((d = g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/)), 914 d[3].indexOf("youtu") > -1) 915 ) 916 c = "youtube"; 917 else if (d[3].indexOf("vimeo") > -1) c = "vimeo"; 918 else { 919 if (!(d[3].indexOf("vzaar") > -1)) throw new Error("Video URL not supported."); 920 c = "vzaar"; 921 } 922 (d = d[6]), (this._videos[g] = { type: c, id: d, width: e, height: f }), b.attr("data-video", g), this.thumbnail(a, this._videos[g]); 923 }), 924 (e.prototype.thumbnail = function (b, c) { 925 var d, 926 e, 927 f, 928 g = c.width && c.height ? 'style="width:' + c.width + "px;height:" + c.height + 'px;"' : "", 929 h = b.find("img"), 930 i = "src", 931 j = "", 932 k = this._core.settings, 933 l = function (a) { 934 (e = '<div class="owl-video-play-icon"></div>'), 935 (d = k.lazyLoad ? '<div class="owl-video-tn ' + j + '" ' + i + '="' + a + '"></div>' : '<div class="owl-video-tn" style="opacity:1;background-image:url(' + a + ')"></div>'), 936 b.after(d), 937 b.after(e); 938 }; 939 if ((b.wrap('<div class="owl-video-wrapper"' + g + "></div>"), this._core.settings.lazyLoad && ((i = "data-src"), (j = "owl-lazy")), h.length)) return l(h.attr(i)), h.remove(), !1; 940 "youtube" === c.type 941 ? ((f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg"), l(f)) 942 : "vimeo" === c.type
943 ? a.ajax({ 944 type: "GET", 945 url: "//vimeo.com/api/v2/video/" + c.id + ".json", 946 jsonp: "callback", 947 dataType: "jsonp", 948 success: function (a) { 949 (f = a[0].thumbnail_large), l(f); 950 }, 951 }) 952 : "vzaar" === c.type && 953 a.ajax({ 954 type: "GET", 955 url: "//vzaar.com/api/videos/" + c.id + ".json", 956 jsonp: "callback", 957 dataType: "jsonp", 958 success: function (a) { 959 (f = a.framegrab_url), l(f); 960 }, 961 }); 962 }), 963 (e.prototype.stop = function () { 964 this._core.trigger("stop", null, "video"), 965 this._playing.find(".owl-video-frame").remove(), 966 this._playing.removeClass("owl-video-playing"), 967 (this._playing = null), 968 this._core.leave("playing"), 969 this._core.trigger("stopped", null, "video"); 970 }), 971 (e.prototype.play = function (b) { 972 var c, 973 d = a(b.target), 974 e = d.closest("." + this._core.settings.itemClass), 975 f = this._videos[e.attr("data-video")], 976 g = f.width || "100%", 977 h = f.height || this._core.$stage.height(); 978 this._playing || 979 (this._core.enter("playing"), 980 this._core.trigger("play", null, "video"), 981 (e = this._core.items(this._core.relative(e.index()))), 982 this._core.reset(e.index()), 983 "youtube" === f.type 984 ? (c = '<iframe width="' + g + '" height="' + h + '" src="//www.youtube.com/embed/' + f.id + "?autoplay=1&rel=0&v=" + f.id + '" frameborder="0" allowfullscreen></iframe>') 985 : "vimeo" === f.type 986 ? (c = '<iframe src="//player.vimeo.com/video/' + f.id + '?autoplay=1" width="' + g + '" height="' + h + '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>') 987 : "vzaar" === f.type && (c = '<iframe frameborder="0"height="' + h + '"width="' + g + '" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/' + f.id + '/player?autoplay=true"></iframe>'), 988 a('<div class="owl-video-frame">' + c + "</div>").insertAfter(e.find(".owl-video")), 989 (this._playing = e.addClass("owl-video-playing"))); 990 }), 991 (e.prototype.isInFullScreen = function () { 992 var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; 993 return b && a(b).parent().hasClass("owl-video-frame"); 994 }), 995 (e.prototype.destroy = function () { 996 var a, b; 997 this._core.$element.off("click.owl.video"); 998 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 999 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); 1000 }), 1001 (a.fn.owlCarousel.Constructor.Plugins.Video = e); 1002 })(window.Zepto || window.jQuery, window, document), 1003 (function (a, b, c, d) { 1004 var e = function (b) { 1005 (this.core = b), 1006 (this.core.options = a.extend({}, e.Defaults, this.core.options)), 1007 (this.swapping = !0), 1008 (this.previous = d), 1009 (this.next = d), 1010 (this.handlers = { 1011 "change.owl.carousel": a.proxy(function (a) { 1012 a.namespace && "position" == a.property.name && ((this.previous = this.core.current()), (this.next = a.property.value)); 1013 }, this), 1014 "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function (a) { 1015 a.namespace && (this.swapping = "translated" == a.type); 1016 }, this), 1017 "translate.owl.carousel": a.proxy(function (a) { 1018 a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap(); 1019 }, this), 1020 }), 1021 this.core.$element.on(this.handlers); 1022 }; 1023 (e.Defaults = { animateOut: !1, animateIn: !1 }), 1024 (e.prototype.swap = function () { 1025 if (1 === this.core.settings.items && a.support.animation && a.support.transition) { 1026 this.core.speed(0); 1027 var b, 1028 c = a.proxy(this.clear, this), 1029 d = this.core.$stage.children().eq(this.previous), 1030 e = this.core.$stage.children().eq(this.next), 1031 f = this.core.settings.animateIn, 1032 g = this.core.settings.animateOut; 1033 this.core.current() !== this.previous && 1034 (g && 1035 ((b = this.core.coordinates(this.previous) - this.core.coordinates(this.next)), 1036 d 1037 .one(a.support.animation.end, c) 1038 .css({ left: b + "px" }) 1039 .addClass("animated owl-animated-out") 1040 .addClass(g)), 1041 f && e.one(a.support.animation.end, c).addClass("animated owl-animated-in").addClass(f)); 1042 } 1043 }), 1044 (e.prototype.clear = function (b) { 1045 a(b.target).css({ left: "" }).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd(); 1046 }), 1047 (e.prototype.destroy = function () { 1048 var a, b; 1049 for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); 1050 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); 1051 }), 1052 (a.fn.owlCarousel.Constructor.Plugins.Animate = e); 1053 })(window.Zepto || window.jQuery, window, document), 1054 (function (a, b, c, d) { 1055 var e = function (b) { 1056 (this._core = b), 1057 (this._timeout = null),
1058 (this._paused = !1), 1059 (this._handlers = { 1060 "changed.owl.carousel": a.proxy(function (a) { 1061 a.namespace && "settings" === a.property.name 1062 ? this._core.settings.autoplay 1063 ? this.play() 1064 : this.stop() 1065 : a.namespace && "position" === a.property.name && this._core.settings.autoplay && this._setAutoPlayInterval(); 1066 }, this), 1067 "initialized.owl.carousel": a.proxy(function (a) { 1068 a.namespace && this._core.settings.autoplay && this.play(); 1069 }, this), 1070 "play.owl.autoplay": a.proxy(function (a, b, c) { 1071 a.namespace && this.play(b, c); 1072 }, this), 1073 "stop.owl.autoplay": a.proxy(function (a) { 1074 a.namespace && this.stop(); 1075 }, this), 1076 "mouseover.owl.autoplay": a.proxy(function () { 1077 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause(); 1078 }, this), 1079 "mouseleave.owl.autoplay": a.proxy(function () { 1080 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play(); 1081 }, this), 1082 "touchstart.owl.core": a.proxy(function () { 1083 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause(); 1084 }, this), 1085 "touchend.owl.core": a.proxy(function () { 1086 this._core.settings.autoplayHoverPause && this.play(); 1087 }, this), 1088 }), 1089 this._core.$element.on(this._handlers), 1090 (this._core.options = a.extend({}, e.Defaults, this._core.options)); 1091 }; 1092 (e.Defaults = { autoplay: !1, autoplayTimeout: 5e3, autoplayHoverPause: !1, autoplaySpeed: !1 }), 1093 (e.prototype.play = function (a, b) { 1094 (this._paused = !1), this._core.is("rotating") || (this._core.enter("rotating"), this._setAutoPlayInterval()); 1095 }), 1096 (e.prototype._getNextTimeout = function (d, e) { 1097 return ( 1098 this._timeout && b.clearTimeout(this._timeout), 1099 b.setTimeout( 1100 a.proxy(function () { 1101 this._paused || this._core.is("busy") || this._core.is("interacting") || c.hidden || this._core.next(e || this._core.settings.autoplaySpeed); 1102 }, this), 1103 d || this._core.settings.autoplayTimeout 1104 ) 1105 ); 1106 }), 1107 (e.prototype._setAutoPlayInterval = function () { 1108 this._timeout = this._getNextTimeout(); 1109 }), 1110 (e.prototype.stop = function () { 1111 this._core.is("rotating") && (b.clearTimeout(this._timeout), this._core.leave("rotating")); 1112 }), 1113 (e.prototype.pause = function () { 1114 this._core.is("rotating") && (this._paused = !0); 1115 }), 1116 (e.prototype.destroy = function () { 1117 var a, b; 1118 this.stop(); 1119 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 1120 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null); 1121 }), 1122 (a.fn.owlCarousel.Constructor.Plugins.autoplay = e); 1123 })(window.Zepto || window.jQuery, window, document), 1124 (function (a, b, c, d) { 1125 "use strict"; 1126 var e = function (b) { 1127 (this._core = b), 1128 (this._initialized = !1), 1129 (this._pages = []), 1130 (this._controls = {}), 1131 (this._templates = []), 1132 (this.$element = this._core.$element), 1133 (this._overrides = { next: this._core.next, prev: this._core.prev, to: this._core.to }), 1134 (this._handlers = { 1135 "prepared.owl.carousel": a.proxy(function (b) { 1136 b.namespace && this._core.settings.dotsData && this._templates.push('<div class="' + this._core.settings.dotClass + '">' + a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot") + "</div>"); 1137 }, this), 1138 "added.owl.carousel": a.proxy(function (a) { 1139 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()); 1140 }, this), 1141 "remove.owl.carousel": a.proxy(function (a) { 1142 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1); 1143 }, this), 1144 "changed.owl.carousel": a.proxy(function (a) { 1145 a.namespace && "position" == a.property.name && this.draw(); 1146 }, this), 1147 "initialized.owl.carousel": a.proxy(function (a) { 1148 a.namespace && 1149 !this._initialized && 1150 (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), (this._initialized = !0), this._core.trigger("initialized", null, "navigation")); 1151 }, this), 1152 "refreshed.owl.carousel": a.proxy(function (a) { 1153 a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")); 1154 }, this), 1155 }), 1156 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 1157 this.$element.on(this._handlers); 1158 }; 1159 (e.Defaults = { 1160 nav: !1, 1161 navText: ["prev", "next"], 1162 navSpeed: !1, 1163 navElement: "div", 1164 navContainer: !1, 1165 navContainerClass: "owl-nav", 1166 navClass: ["owl-prev", "owl-next"], 1167 slideBy: 1, 1168 dotClass: "owl-dot", 1169 dotsClass: "owl-dots", 1170 dots: !0, 1171 dotsEach: !1, 1172 dotsData: !1, 1173 dotsSpeed: !1, 1174 dotsContainer: !1, 1175 }), 1176 (e.prototype.initialize = function () { 1177 var b, 1178 c = this._core.settings; 1179 (this._controls.$relative = (c.navContainer ? a(c.navContainer) : a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled")), 1180 (this._controls.$previous = a("<" + c.navElement + ">") 1181 .addClass(c.navClass[0]) 1182 .html(c.navText[0]) 1183 .prependTo(this._controls.$relative) 1184 .on( 1185 "click", 1186 a.proxy(function (a) { 1187 this.prev(c.navSpeed); 1188 }, this) 1189 )), 1190 (this._controls.$next = a("<" + c.navElement + ">") 1191 .addClass(c.navClass[1]) 1192 .html(c.navText[1]) 1193 .appendTo(this._controls.$relative) 1194 .on( 1195 "click", 1196 a.proxy(function (a) { 1197 this.next(c.navSpeed); 1198 }, this) 1199 )), 1200 c.dotsData || (this._templates = [a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]), 1201 (this._controls.$absolute = (c.dotsContainer ? a(c.dotsContainer) : a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled")), 1202 this._controls.$absolute.on( 1203 "click", 1204 "div", 1205 a.proxy(function (b) { 1206 var d = a(b.target).parent().is(this._controls.$absolute) ? a(b.target).index() : a(b.target).parent().index(); 1207 b.preventDefault(), this.to(d, c.dotsSpeed); 1208 }, this) 1209 ); 1210 for (b in this._overrides) this._core[b] = a.proxy(this[b], this); 1211 }), 1212 (e.prototype.destroy = function () { 1213 var a, b, c, d; 1214 for (a in this._handlers) this.$element.off(a, this._handlers[a]); 1215 for (b in this._controls) this._controls[b].remove(); 1216 for (d in this.overides) this._core[d] = this._overrides[d]; 1217 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null); 1218 }), 1219 (e.prototype.update = function () { 1220 var a, 1221 b, 1222 c, 1223 d = this._core.clones().length / 2, 1224 e = d + this._core.items().length, 1225 f = this._core.maximum(!0), 1226 g = this._core.settings, 1227 h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items; 1228 if (("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)), g.dots || "page" == g.slideBy)) 1229 for (this._pages = [], a = d, b = 0, c = 0; a < e; a++) { 1230 if (b >= h || 0 === b) { 1231 if ((this._pages.push({ start: Math.min(f, a - d), end: a - d + h - 1 }), Math.min(f, a - d) === f)) break; 1232 (b = 0), ++c; 1233 } 1234 b += this._core.mergers(this._core.relative(a)); 1235 } 1236 }), 1237 (e.prototype.draw = function () { 1238 var b, 1239 c = this._core.settings, 1240 d = this._core.items().length <= c.items, 1241 e = this._core.relative(this._core.current()), 1242 f = c.loop || c.rewind; 1243 this._controls.$relative.toggleClass("disabled", !c.nav || d), 1244 c.nav && (this._controls.$previous.toggleClass("disabled", !f && e <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !f && e >= this._core.maximum(!0))), 1245 this._controls.$absolute.toggleClass("disabled", !c.dots || d), 1246 c.dots && 1247 ((b = this._pages.length - this._controls.$absolute.children().length), 1248 c.dotsData && 0 !== b 1249 ? this._controls.$absolute.html(this._templates.join("")) 1250 : b > 0 1251 ? this._controls.$absolute.append(new Array(b + 1).join(this._templates[0])) 1252 : b < 0 && this._controls.$absolute.children().slice(b).remove(), 1253 this._controls.$absolute.find(".active").removeClass("active"), 1254 this._controls.$absolute.children().eq(a.inArray(this.current(), this._pages)).addClass("active")); 1255 }), 1256 (e.prototype.onTrigger = function (b) { 1257 var c = this._core.settings; 1258 b.page = { index: a.inArray(this.current(), this._pages), count: this._pages.length, size: c && (c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items) }; 1259 }), 1260 (e.prototype.current = function () { 1261 var b = this._core.relative(this._core.current()); 1262 return a 1263 .grep( 1264 this._pages, 1265 a.proxy(function (a, c) { 1266 return a.start <= b && a.end >= b; 1267 }, this) 1268 ) 1269 .pop(); 1270 }), 1271 (e.prototype.getPosition = function (b) { 1272 var c, 1273 d, 1274 e = this._core.settings; 1275 return ( 1276 "page" == e.slideBy 1277 ? ((c = a.inArray(this.current(), this._pages)), (d = this._pages.length), b ? ++c : --c, (c = this._pages[((c % d) + d) % d].start)) 1278 : ((c = this._core.relative(this._core.current())), (d = this._core.items().length), b ? (c += e.slideBy) : (c -= e.slideBy)), 1279 c 1280 ); 1281 }), 1282 (e.prototype.next = function (b) { 1283 a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b); 1284 }), 1285 (e.prototype.prev = function (b) { 1286 a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b); 1287 }), 1288 (e.prototype.to = function (b, c, d) { 1289 var e; 1290 !d && this._pages.length ? ((e = this._pages.length), a.proxy(this._overrides.to, this._core)(this._pages[((b % e) + e) % e].start, c)) : a.proxy(this._overrides.to, this._core)(b, c); 1291 }), 1292 (a.fn.owlCarousel.Constructor.Plugins.Navigation = e); 1293 })(window.Zepto || window.jQuery, window, document), 1294 (function (a, b, c, d) { 1295 "use strict"; 1296 var e = function (c) { 1297 (this._core = c), 1298 (this._hashes = {}), 1299 (this.$element = this._core.$element), 1300 (this._handlers = { 1301 "initialized.owl.carousel": a.proxy(function (c) { 1302 c.namespace && "URLHash" === this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation"); 1303 }, this), 1304 "prepared.owl.carousel": a.proxy(function (b) { 1305 if (b.namespace) { 1306 var c = a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"); 1307 if (!c) return; 1308 this._hashes[c] = b.content; 1309 } 1310 }, this), 1311 "changed.owl.carousel": a.proxy(function (c) { 1312 if (c.namespace && "position" === c.property.name) { 1313 var d = this._core.items(this._core.relative(this._core.current())), 1314 e = a 1315 .map(this._hashes, function (a, b) { 1316 return a === d ? b : null; 1317 }) 1318 .join(); 1319 if (!e || b.location.hash.slice(1) === e) return; 1320 b.location.hash = e; 1321 } 1322 }, this), 1323 }), 1324 (this._core.options = a.extend({}, e.Defaults, this._core.options)), 1325 this.$element.on(this._handlers), 1326 a(b).on( 1327 "hashchange.owl.navigation", 1328 a.proxy(function (a) { 1329 var c = b.location.hash.substring(1), 1330 e = this._core.$stage.children(), 1331 f = this._hashes[c] && e.index(this._hashes[c]); 1332 f !== d && f !== this._core.current() && this._core.to(this._core.relative(f), !1, !0); 1333 }, this) 1334 ); 1335 }; 1336 (e.Defaults = { URLhashListener: !1 }), 1337 (e.prototype.destroy = function () { 1338 var c, d; 1339 a(b).off("hashchange.owl.navigation"); 1340 for (c in this._handlers) this._core.$element.off(c, this._handlers[c]); 1341 for (d in Object.getOwnPropertyNames(this)) "function" != typeof this[d] && (this[d] = null); 1342 }), 1343 (a.fn.owlCarousel.Constructor.Plugins.Hash = e); 1344 })(window.Zepto || window.jQuery, window, document), 1345 (function (a, b, c, d) { 1346 function e(b, c) { 1347 var e = !1, 1348 f = b.charAt(0).toUpperCase() + b.slice(1); 1349 return ( 1350 a.each((b + " " + h.join(f + " ") + f).split(" "), function (a, b) { 1351 if (g[b] !== d) return (e = !c || b), !1; 1352 }), 1353 e 1354 ); 1355 } 1356 function f(a
1356) { 1357 return e(a, !0); 1358 } 1359 var g = a("<support>").get(0).style, 1360 h = "Webkit Moz O ms".split(" "), 1361 i = { 1362 transition: { end: { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd", transition: "transitionend" } }, 1363 animation: { end: { WebkitAnimation: "webkitAnimationEnd", MozAnimation: "animationend", OAnimation: "oAnimationEnd", animation: "animationend" } }, 1364 }, 1365 j = { 1366 csstransforms: function () { 1367 return !!e("transform"); 1368 }, 1369 csstransforms3d: function () { 1370 return !!e("perspective"); 1371 }, 1372 csstransitions: function () { 1373 return !!e("transition"); 1374 }, 1375 cssanimations: function () { 1376 return !!e("animation"); 1377 }, 1378 }; 1379 j.csstransitions() && ((a.support.transition = new String(f("transition"))), (a.support.transition.end = i.transition.end[a.support.transition])), 1380 j.cssanimations() && ((a.support.animation = new String(f("animation"))), (a.support.animation.end = i.animation.end[a.support.animation])), 1381 j.csstransforms() && ((a.support.transform = new String(f("transform"))), (a.support.transform3d = j.csstransforms3d())); 1382 })(window.Zepto || window.jQuery, window, document);
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.