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