vendor: 57,826 bytes, lines 1-833
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, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this._handlers = {}, this._plugins = {}, this._supress = {}, this._current = null, this._speed = null, this._coordinates = [], this._breakpoint = null, this._width = null, this._items = [], this._clones = [], this._mergers = [], this._widths = [], this._invalidated = {}, this._pipe = [], this._drag = { 9 time: null, 10 target: null, 11 pointer: null, 12 stage: {start: null, current: null}, 13 direction: null 14 }, this._states = { 15 current: {}, 16 tags: {initializing: ["busy"], animating: ["busy"], dragging: ["interacting"]} 17 }, a.each(["onResize", "onThrottledResize"], a.proxy(function (b, c) { 18 this._handlers[c] = a.proxy(this[c], this) 19 }, this)), a.each(e.Plugins, a.proxy(function (a, b) { 20 this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this) 21 }, this)), a.each(e.Workers, a.proxy(function (b, c) { 22 this._pipe.push({filter: c.filter, run: a.proxy(c.run, this)}) 23 }, this)), this.setup(), this.initialize() 24 } 25 26 e.Defaults = { 27 items: 3, 28 loop: !1, 29 center: !1, 30 rewind: !1, 31 checkVisibility: !0, 32 mouseDrag: !0, 33 touchDrag: !0, 34 pullDrag: !0, 35 freeDrag: !1, 36 margin: 0, 37 stagePadding: 0, 38 merge: !1, 39 mergeFit: !0, 40 autoWidth: !1, 41 startPosition: 0, 42 rtl: !1, 43 smartSpeed: 250, 44 fluidSpeed: !1, 45 dragEndSpeed: !1, 46 responsive: {}, 47 responsiveRefreshRate: 200, 48 responsiveBaseElement: b, 49 fallbackEasing: "swing", 50 slideTransition: "", 51 info: !1, 52 nestedItemSelector: !1, 53 itemElement: "div", 54 stageElement: "div", 55 refreshClass: "owl-refresh", 56 loadedClass: "owl-loaded", 57 loadingClass: "owl-loading", 58 rtlClass: "owl-rtl", 59 responsiveClass: "owl-responsive", 60 dragClass: "owl-drag", 61 itemClass: "owl-item", 62 stageClass: "owl-stage", 63 stageOuterClass: "owl-stage-outer", 64 grabClass: "owl-grab" 65 }, e.Width = {Default: "default", Inner: "inner", Outer: "outer"}, e.Type = { 66 Event: "event", 67 State: "state" 68 }, e.Plugins = {}, e.Workers = [{ 69 filter: ["width", "settings"], run: function () { 70 this._width = this.$element.width() 71 } 72 }, { 73 filter: ["width", "items", "settings"], run: function (a) { 74 a.current = this._items && this._items[this.relative(this._current)] 75 } 76 }, { 77 filter: ["items", "settings"], run: function () { 78 this.$stage.children(".cloned").remove() 79 } 80 }, { 81 filter: ["width", "items", "settings"], run: function (a) { 82 var b = this.settings.margin || "", c = !this.settings.autoWidth, d = this.settings.rtl, 83 e = {width: "auto", "margin-left": d ? b : "", "margin-right": d ? "" : b}; 84 !c && this.$stage.children().css(e), a.css = e 85 } 86 }, { 87 filter: ["width", "items", "settings"], run: function (a) { 88 var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, c = null, 89 d = this._items.length, e = !this.settings.autoWidth, f = []; 90 for (a.items = { 91 merge: !1, 92 width: b 93 }; d--;) 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(); 94 this._widths = f 95 } 96 }, { 97 filter: ["items", "settings"], run: function () { 98 var b = [], c = this._items, d = this.settings, e = Math.max(2 * d.items, 4), 99 f = 2 * Math.ceil(c.length / 2), g = d.loop && c.length ? d.rewind ? e : Math.max(e, f) : 0, h = "", 100 i = ""; 101 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; 102 this._clones = b, a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage) 103 } 104 }, { 105 filter: ["width", "items", "settings"], run: function () { 106 for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b;) d = f[c - 1] || 0, e = this._widths[this.relative(c)] + this.settings.margin, f.push(d + e * a); 107 this._coordinates = f 108 } 109 }, { 110 filter: ["width", "items", "settings"], run: function () { 111 var a = this.settings.stagePadding, b = this._coordinates, c = { 112 width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, 113 "padding-left": a || "", 114 "padding-right": a || "" 115 }; 116 this.$stage.css(c) 117 } 118 }, { 119 filter: ["width", "items", "settings"], run: function (a) { 120 var b = this._coordinates.length, c = !this.settings.autoWidth, d = this.$stage.children(); 121 if (c && a.items.merge) for (; b--;) a.css.width = this._widths[this.relative(b)], d.eq(b).css(a.css); else c && (a.css.width = a.items.width, d.css(a.css)) 122 } 123 }, { 124 filter: ["items"], run: function () { 125 this._coordinates.length < 1 && this.$stage.removeAttr("style") 126 } 127 }, { 128 filter: ["width", "items", "settings"], run: function (a) { 129 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) 130 } 131 }, { 132 filter: ["position"], run: function () { 133 this.animate(this.coordinates(this._current)) 134 } 135 }, { 136 filter: ["width", "position", "items", "settings"], run: function () { 137 var a, b, c, d, e = this.settings.rtl ? 1 : -1, f = 2 * this.settings.stagePadding, 138 g = this.coordinates(this.current()) + f, h = g + this.width() * e, i = []; 139 for (c = 0, d = this._coordinates.length; c < d; c++) 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); 140 this.$stage.children(".active").removeClass("active"), this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass("active"), this.$stage.children(".center").removeClass("center"), this.settings.center && this.$stage.children().eq(this.current()).addClass("center") 141 } 142 }], e.prototype.initializeStage = function () { 143 this.$stage = this.$element.find("." + this.settings.stageClass), this.$stage.length || (this.$element.addClass(this.options.loadingClass), this.$stage = a("<" + this.settings.stageElement + ">", {class: this.settings.stageClass}).wrap(a("<div/>", {class: this.settings.stageOuterClass})), this.$element.append(this.$stage.parent())) 144 }, e.prototype.initializeItems = function () { 145 var b = this.$element.find(".owl-item"); 146 if (b.length) return this._items = b.get().map(function (b) { 147 return a(b) 148 }), this._mergers = this._items.map(function () { 149 return 1 150 }), void this.refresh(); 151 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) 152 }, e.prototype.initialize = function () { 153 if (this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading")) { 154 var a, b, c; 155 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) 156 } 157 this.initializeStage(), this.initializeItems(), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized") 158 }, e.prototype.isVisible = function () { 159 return !this.settings.checkVisibility || this.$element.is(":visible") 160 }, e.prototype.setup = function () { 161 var b = this.viewport(), c = this.options.responsive, d = -1, e = null; 162 c ? (a.each(c, function (a) { 163 a <= b && a > d && (d = Number(a)) 164 }), e = a.extend({}, this.options, c[d]), "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + d))) : e = a.extend({}, this.options), this.trigger("change", { 165 property: { 166 name: "settings", 167 value: e 168 } 169 }), this._breakpoint = d, this.settings = e, this.invalidate("settings"), this.trigger("changed", { 170 property: { 171 name: "settings", 172 value: this.settings 173 } 174 }) 175 }, e.prototype.optionsLogic = function () { 176 this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) 177 }, e.prototype.prepare = function (b) { 178 var c = this.trigger("prepare", {content: b}); 179 return c.data || (c.data = a("<" + this.settings.itemElement + "/>").addClass(this.options.itemClass).append(b)), this.trigger("prepared", {content: c.data}), c.data 180 }, e.prototype.update = function () { 181 for (var b = 0, c = this._pipe.length, d = a.proxy(function (a) { 182 return this[a] 183 }, this._invalidated), e = {}; b < c;) (this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; 184 this._invalidated = {}, !this.is("valid") && this.enter("valid") 185 }, e.prototype.width = function (a) { 186 switch (a = a || e.Width.Default) { 187 case e.Width.Inner: 188 case e.Width.Outer: 189 return this._width; 190 default: 191 return this._width - 2 * this.settings.stagePadding + this.settings.margin 192 } 193 }, e.prototype.refresh = function () { 194 this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed") 195 }, e.prototype.onThrottledResize = function () { 196 b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate) 197 }, e.prototype.onResize = function () { 198 return !!this._items.length && (this._width !== this.$element.width() && (!!this.isVisible() && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))))) 199 }, e.prototype.registerEventHandlers = function () { 200 a.support.transition && this.$stage.on(a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this)), !1 !== this.settings.responsive && this.on(b, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("dragstart.owl.core selectstart.owl.core", function () { 201 return !1 202 })), 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))) 203 }, e.prototype.onDragStart = function (b) { 204 var d = null; 205 3 !== b.which && (a.support.transform ? (d = this.$stage.css("transform").replace(/.*\(|\)| /g, "").split(","), d = { 206 x: d[16 === d.length ? 12 : 4], 207 y: d[16 === d.length ? 13 : 5] 208 }) : (d = this.$stage.position(), d = { 209 x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, 210 y: d.top 211 }), this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass(this.options.grabClass, "mousedown" === b.type), this.speed(0), this._drag.time = (new Date).getTime(), this._drag.target = a(b.target), this._drag.stage.start = d, this._drag.stage.current = d, this._drag.pointer = this.pointer(b), a(c).on("mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this)), a(c).one("mousemove.owl.core touchmove.owl.core", a.proxy(function (b) { 212 var d = this.difference(this._drag.pointer, this.pointer(b)); 213 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")) 214 }, this))) 215 }, e.prototype.onDragMove = function (a) { 216 var b = null, c = null, d = null, e = this.difference(this._drag.pointer, this.pointer(a)), 217 f = this.difference(this._drag.stage.start, e); 218 this.is("dragging") && (a.preventDefault(), this.settings.loop ? (b = this.coordinates(this.minimum()), c = this.coordinates(this.maximum() + 1) - b, f.x = ((f.x - b) % c + c) % c + b) : (b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), d = this.settings.pullDrag ? -1 * e.x / 5 : 0, f.x = Math.max(Math.min(f.x, b + d), c + d)), this._drag.stage.current = f, this.animate(f.x)) 219 }, e.prototype.onDragEnd = function (b) { 220 var d = this.difference(this._drag.pointer, this.pointer(b)), e = this._drag.stage.current, 221 f = d.x > 0 ^ this.settings.rtl ? "left" : "right"; 222 a(c).off(".owl.core"), this.$element.removeClass(this.options.grabClass), (0 !== d.x && this.is("dragging") || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), this.invalidate("position"), this.update(), this._drag.direction = f, (Math.abs(d.x) > 3 || (new Date).getTime() - this._drag.time > 300) && this._drag.target.one("click.owl.core", function () { 223 return !1 224 })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")) 225 }, e.prototype.closest = function (b, c) { 226 var e = -1, f = 30, g = this.width(), h = this.coordinates(); 227 return this.settings.freeDrag || a.each(h, a.proxy(function (a, i) { 228 return "left" === c && b > i - f && b < i + f ? e = a : "right" === c && b > i - g - f && b < i - g + f ? e = a + 1 : this.op(b, "<", i) && this.op(b, ">", h[a + 1] !== d ? h[a + 1] : i - g) && (e = "left" === c ? a + 1 : a), -1 === e 229 }, this)), this.settings.loop || (this.op(b, ">", h[this.minimum()]) ? e = b = this.minimum() : this.op(b, "<", h[this.maximum()]) && (e = b = this.maximum())), e 230 }, e.prototype.animate = function (b) { 231 var c = this.speed() > 0; 232 this.is("animating") && this.onTransitionEnd(), c && (this.enter("animating"), this.trigger("translate")), a.support.transform3d && a.support.transition ? this.$stage.css({ 233 transform: "translate3d(" + b + "px,0px,0px)", 234 transition: this.speed() / 1e3 + "s" + (this.settings.slideTransition ? " " + this.settings.slideTransition : "") 235 }) : c ? this.$stage.animate({left: b + "px"}, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) : this.$stage.css({left: b + "px"}) 236 }, e.prototype.is = function (a) { 237 return this._states.current[a] && this._states.current[a] > 0 238 }, e.prototype.current = function (a) { 239 if (a === d) return this._current; 240 if (0 === this._items.length) return d; 241 if (a = this.normalize(a), this._current !== a) { 242 var b = this.trigger("change", {property: {name: "position", value: a}}); 243 b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate("position"), this.trigger("changed", { 244 property: { 245 name: "position", 246 value: this._current 247 } 248 }) 249 } 250 return this._current 251 }, e.prototype.invalidate = function (b) { 252 return "string" === a.type(b) && (this._invalidated[b] = !0, this.is("valid") && this.leave("valid")), a.map(this._invalidated, function (a, b) { 253 return b 254 }) 255 }, e.prototype.reset = function (a) { 256 (a = this.normalize(a)) !== d && (this._speed = 0, this._current = a, this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])) 257 }, e.prototype.normalize = function (a, b) { 258 var c = this._items.length, e = b ? 0 : this._clones.length; 259 return !this.isNumeric(a) || c < 1 ? a = d : (a < 0 || a >= c + e) && (a = ((a - e / 2) % c + c) % c + e / 2), a 260 }, e.prototype.relative = function (a) { 261 return a -= this._clones.length / 2, this.normalize(a, !0) 262 }, e.prototype.maximum = function (a) { 263 var b, c, d, e = this.settings, f = this._coordinates.length; 264 if (e.loop) f = this._clones.length / 2 + this._items.length - 1; else if (e.autoWidth || e.merge) { 265 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);) ; 266 f = b + 1 267 } else f = e.center ? this._items.length - 1 : this._items.length - e.items; 268 return a && (f -= this._clones.length / 2), Math.max(f, 0) 269 }, e.prototype.minimum = function (a) { 270 return a ? 0 : this._clones.length / 2 271 }, e.prototype.items = function (a) { 272 return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]) 273 }, e.prototype.mergers = function (a) { 274 return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]) 275 }, e.prototype.clones = function (b) { 276 var c = this._clones.length / 2, e = c + this._items.length, f = function (a) { 277 return a % 2 == 0 ? e + a / 2 : c - (a + 1) / 2 278 }; 279 return b === d ? a.map(this._clones, function (a, b) { 280 return f(b) 281 }) : a.map(this._clones, function (a, c) { 282 return a === b ? f(c) : null 283 }) 284 }, e.prototype.speed = function (a) { 285 return a !== d && (this._speed = a), this._speed 286 }, e.prototype.coordinates = function (b) { 287 var c, e = 1, f = b - 1; 288 return b === d ? a.map(this._coordinates, a.proxy(function (a, b) { 289 return this.coordinates(b) 290 }, this)) : (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)) 291 }, e.prototype.duration = function (a, b, c) { 292 return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed) 293 }, e.prototype.to = function (a, b) { 294 var c = this.current(), d = null, e = a - this.relative(c), f = (e > 0) - (e < 0), g = this._items.length, 295 h = this.minimum(), i = this.maximum(); 296 this.settings.loop ? (!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))) : this.settings.rewind ? (i += 1, a = (a % i + i) % i) : a = Math.max(h, Math.min(i, a)), this.speed(this.duration(c, a, b)), this.current(a), this.isVisible() && this.update() 297 }, e.prototype.next = function (a) { 298 a = a || !1, this.to(this.relative(this.current()) + 1, a) 299 }, e.prototype.prev = function (a) { 300 a = a || !1, this.to(this.relative(this.current()) - 1, a) 301 }, e.prototype.onTransitionEnd = function (a) { 302 if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))) return !1; 303 this.leave("animating"), this.trigger("translated") 304 }, e.prototype.viewport = function () { 305 var d; 306 return this.options.responsiveBaseElement !== b ? d = a(this.options.responsiveBaseElement).width() : b.innerWidth ? d = b.innerWidth : c.documentElement && c.documentElement.clientWidth ? d = c.documentElement.clientWidth : console.warn("Can not detect viewport width."), d 307 }, e.prototype.replace = function (b) { 308 this.$stage.empty(), this._items = [], b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), b.filter(function () { 309 return 1 === this.nodeType 310 }).each(a.proxy(function (a, b) { 311 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) 312 }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") 313 }, e.prototype.add = function (b, c) { 314 var e = this.relative(this._current); 315 c = c === d ? this._items.length : this.normalize(c, !0), b = b instanceof jQuery ? b : a(b), this.trigger("add", { 316 content: b, 317 position: c 318 }), b = this.prepare(b), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) : (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)), this._items[e] && this.reset(this._items[e].index()), this.invalidate("items"), this.trigger("added", { 319 content: b, 320 position: c 321 }) 322 }, e.prototype.remove = function (a) { 323 (a = this.normalize(a, !0)) !== d && (this.trigger("remove", { 324 content: this._items[a], 325 position: a 326 }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { 327 content: null, 328 position: a 329 })) 330 }, e.prototype.preloadAutoWidthImages = function (b) { 331 b.each(a.proxy(function (b, c) { 332 this.enter("pre-loading"), c = a(c), a(new Image).one("load", a.proxy(function (a) { 333 c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh() 334 }, this)).attr("src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")) 335 }, this)) 336 }, e.prototype.destroy = function () { 337 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)); 338 for (var d in this._plugins) this._plugins[d].destroy(); 339 this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.remove(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")).removeData("owl.carousel") 340 }, e.prototype.op = function (a, b, c) { 341 var d = this.settings.rtl; 342 switch (b) { 343 case"<": 344 return d ? a > c : a < c; 345 case">": 346 return d ? a < c : a > c; 347 case">=": 348 return d ? a <= c : a >= c; 349 case"<=": 350 return d ? a >= c : a <= c 351 } 352 }, e.prototype.on = function (a, b, c, d) { 353 a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c) 354 }, e.prototype.off = function (a, b, c, d) { 355 a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c) 356 }, e.prototype.trigger = function (b, c, d, f, g) { 357 var h = {item: {count: this._items.length, index: this.current()}}, 358 i = a.camelCase(a.grep(["on", b, d], function (a) { 359 return a 360 }).join("-").toLowerCase()), 361 j = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({relatedTarget: this}, h, c)); 362 return this._supress[b] || (a.each(this._plugins, function (a, b) { 363 b.onTrigger && b.onTrigger(j) 364 }), this.register({ 365 type: e.Type.Event, 366 name: b 367 }), this.$element.trigger(j), this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), j 368 }, e.prototype.enter = function (b) { 369 a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { 370 this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++ 371 }, this)) 372 }, e.prototype.leave = function (b) { 373 a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { 374 this._states.current[b]-- 375 }, this)) 376 }, e.prototype.register = function (b) { 377 if (b.type === e.Type.Event) { 378 if (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) { 379 var c = a.event.special[b.name]._default; 380 a.event.special[b.name]._default = function (a) { 381 return !c || !c.apply || a.namespace && -1 !== a.namespace.indexOf("owl") ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments) 382 }, a.event.special[b.name].owl = !0 383 } 384 } else b.type === e.Type.State && (this._states.tags[b.name] ? this._states.tags[b.name] = this._states.tags[b.name].concat(b.tags) : this._states.tags[b.name] = b.tags, this._states.tags[b.name] = a.grep(this._states.tags[b.name], a.proxy(function (c, d) { 385 return a.inArray(c, this._states.tags[b.name]) === d 386 }, this))) 387 }, e.prototype.suppress = function (b) { 388 a.each(b, a.proxy(function (a, b) { 389 this._supress[b] = !0 390 }, this)) 391 }, e.prototype.release = function (b) { 392 a.each(b, a.proxy(function (a, b) { 393 delete this._supress[b] 394 }, this)) 395 }, e.prototype.pointer = function (a) { 396 var c = {x: null, y: null}; 397 return a = a.originalEvent || a || b.event, a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, a.pageX ? (c.x = a.pageX, c.y = a.pageY) : (c.x = a.clientX, c.y = a.clientY), c 398 }, e.prototype.isNumeric = function (a) { 399 return !isNaN(parseFloat(a)) 400 }, e.prototype.difference = function (a, b) { 401 return {x: a.x - b.x, y: a.y - b.y} 402 }, a.fn.owlCarousel = function (b) { 403 var c = Array.prototype.slice.call(arguments, 1); 404 return this.each(function () { 405 var d = a(this), f = d.data("owl.carousel"); 406 f || (f = new e(this, "object" == typeof b && b), d.data("owl.carousel", f), a.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function (b, c) { 407 f.register({ 408 type: e.Type.Event, 409 name: c 410 }), f.$element.on(c + ".owl.carousel.core", a.proxy(function (a) { 411 a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])) 412 }, f)) 413 })), "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c) 414 }) 415 }, a.fn.owlCarousel.Constructor = e 416}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 417 var e = function (b) { 418 this._core = b, this._interval = null, this._visible = null, this._handlers = { 419 "initialized.owl.carousel": a.proxy(function (a) { 420 a.namespace && this._core.settings.autoRefresh && this.watch() 421 }, this) 422 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 423 }; 424 e.Defaults = {autoRefresh: !0, autoRefreshInterval: 500}, e.prototype.watch = function () { 425 this._interval || (this._visible = this._core.isVisible(), this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval)) 426 }, e.prototype.refresh = function () { 427 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()) 428 }, e.prototype.destroy = function () { 429 var a, c; 430 b.clearInterval(this._interval); 431 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 432 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 433 }, a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e 434}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 435 var e = function (b) { 436 this._core = b, this._loaded = [], this._handlers = { 437 "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function (b) { 438 if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && "position" == b.property.name || "initialized" == b.type)) { 439 var c = this._core.settings, e = c.center && Math.ceil(c.items / 2) || c.items, 440 f = c.center && -1 * e || 0, 441 g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, 442 h = this._core.clones().length, i = a.proxy(function (a, b) { 443 this.load(b) 444 }, this); 445 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++ 446 } 447 }, this) 448 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 449 }; 450 e.Defaults = {lazyLoad: !1, lazyLoadEager: 0}, e.prototype.load = function (c) { 451 var d = this._core.$stage.children().eq(c), e = d && d.find(".owl-lazy"); 452 !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function (c, d) { 453 var e, f = a(d), 454 g = b.devicePixelRatio > 1 && f.attr("data-src-retina") || f.attr("data-src") || f.attr("data-srcset"); 455 this._core.trigger("load", { 456 element: f, 457 url: g 458 }, "lazy"), f.is("img") ? f.one("load.owl.lazy", a.proxy(function () { 459 f.css("opacity", 1), this._core.trigger("loaded", {element: f, url: g}, "lazy") 460 }, this)).attr("src", g) : f.is("source") ? f.one("load.owl.lazy", a.proxy(function () { 461 this._core.trigger("loaded", {element: f, url: g}, "lazy") 462 }, this)).attr("srcset", g) : (e = new Image, e.onload = a.proxy(function () { 463 f.css({"background-image": 'url("' + g + '")', opacity: "1"}), this._core.trigger("loaded", { 464 element: f, 465 url: g 466 }, "lazy") 467 }, this), e.src = g) 468 }, this)), this._loaded.push(d.get(0))) 469 }, e.prototype.destroy = function () { 470 var a, b; 471 for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); 472 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 473 }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e 474}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 475 var e = function (c) { 476 this._core = c, this._previousHeight = null, this._handlers = { 477 "initialized.owl.carousel refreshed.owl.carousel": a.proxy(function (a) { 478 a.namespace && this._core.settings.autoHeight && this.update() 479 }, this), "changed.owl.carousel": a.proxy(function (a) { 480 a.namespace && this._core.settings.autoHeight && "position" === a.property.name && this.update() 481 }, this), "loaded.owl.lazy": a.proxy(function (a) { 482 a.namespace && this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update() 483 }, this) 484 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._intervalId = null; 485 var d = this; 486 a(b).on("load", function () { 487 d._core.settings.autoHeight && d.update() 488 }), a(b).resize(function () { 489 d._core.settings.autoHeight && (null != d._intervalId && clearTimeout(d._intervalId), d._intervalId = setTimeout(function () { 490 d.update() 491 }, 250)) 492 }) 493 }; 494 e.Defaults = {autoHeight: !1, autoHeightClass: "owl-height"}, e.prototype.update = function () { 495 var b = this._core._current, c = b + this._core.settings.items, d = this._core.settings.lazyLoad, 496 e = this._core.$stage.children().toArray().slice(b, c), f = [], g = 0; 497 a.each(e, function (b, c) { 498 f.push(a(c).height()) 499 }), g = Math.max.apply(null, f), g <= 1 && d && this._previousHeight && (g = this._previousHeight), this._previousHeight = g, this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass) 500 }, e.prototype.destroy = function () { 501 var a, b; 502 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 503 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 504 }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e 505}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 506 var e = function (b) { 507 this._core = b, this._videos = {}, this._playing = null, this._handlers = { 508 "initialized.owl.carousel": a.proxy(function (a) { 509 a.namespace && this._core.register({type: "state", name: "playing", tags: ["interacting"]}) 510 }, this), "resize.owl.carousel": a.proxy(function (a) { 511 a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault() 512 }, this), "refreshed.owl.carousel": a.proxy(function (a) { 513 a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove() 514 }, this), "changed.owl.carousel": a.proxy(function (a) { 515 a.namespace && "position" === a.property.name && this._playing && this.stop() 516 }, this), "prepared.owl.carousel": a.proxy(function (b) { 517 if (b.namespace) { 518 var c = a(b.content).find(".owl-video"); 519 c.length && (c.css("display", "none"), this.fetch(c, a(b.content))) 520 } 521 }, this) 522 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on("click.owl.video", ".owl-video-play-icon", a.proxy(function (a) { 523 this.play(a) 524 }, this)) 525 }; 526 e.Defaults = {video: !1, videoHeight: !1, videoWidth: !1}, e.prototype.fetch = function (a, b) { 527 var c = function () { 528 return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube" 529 }(), d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), 530 e = a.attr("data-width") || this._core.settings.videoWidth, 531 f = a.attr("data-height") || this._core.settings.videoHeight, g = a.attr("href"); 532 if (!g) throw new Error("Missing video URL."); 533 if (d = g.match(/(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+)?/), d[3].indexOf("youtu") > -1) c = "youtube"; else if (d[3].indexOf("vimeo") > -1) c = "vimeo"; else { 534 if (!(d[3].indexOf("vzaar") > -1)) throw new Error("Video URL not supported."); 535 c = "vzaar" 536 } 537 d = d[6], this._videos[g] = { 538 type: c, 539 id: d, 540 width: e, 541 height: f 542 }, b.attr("data-video", g), this.thumbnail(a, this._videos[g]) 543 }, e.prototype.thumbnail = function (b, c) { 544 var d, e, f, g = c.width && c.height ? "width:" + c.width + "px;height:" + c.height + "px;" : "", 545 h = b.find("img"), i = "src", j = "", k = this._core.settings, l = function (c) { 546 e = '<div class="owl-video-play-icon"></div>', d = k.lazyLoad ? a("<div/>", { 547 class: "owl-video-tn " + j, 548 srcType: c 549 }) : a("<div/>", { 550 class: "owl-video-tn", 551 style: "opacity:1;background-image:url(" + c + ")" 552 }), b.after(d), b.after(e) 553 }; 554 if (b.wrap(a("<div/>", { 555 class: "owl-video-wrapper", 556 style: g 557 })), this._core.settings.lazyLoad && (i = "data-src", j = "owl-lazy"), h.length) return l(h.attr(i)), h.remove(), !1; 558 "youtube" === c.type ? (f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg", l(f)) : "vimeo" === c.type ? a.ajax({ 559 type: "GET", 560 url: "//vimeo.com/api/v2/video/" + c.id + ".json", 561 jsonp: "callback", 562 dataType: "jsonp", 563 success: function (a) { 564 f = a[0].thumbnail_large, l(f) 565 } 566 }) : "vzaar" === c.type && a.ajax({ 567 type: "GET", 568 url: "//vzaar.com/api/videos/" + c.id + ".json", 569 jsonp: "callback", 570 dataType: "jsonp", 571 success: function (a) { 572 f = a.framegrab_url, l(f) 573 } 574 }) 575 }, e.prototype.stop = function () { 576 this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), this._playing = null, this._core.leave("playing"), this._core.trigger("stopped", null, "video") 577 }, e.prototype.play = function (b) { 578 var c, d = a(b.target), e = d.closest("." + this._core.settings.itemClass), 579 f = this._videos[e.attr("data-video")], g = f.width || "100%", h = f.height || this._core.$stage.height(); 580 this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), c = a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'), c.attr("height", h), c.attr("width", g), "youtube" === f.type ? c.attr("src", "//www.youtube.com/embed/" + f.id + "?autoplay=1&rel=0&v=" + f.id) : "vimeo" === f.type ? c.attr("src", "//player.vimeo.com/video/" + f.id + "?autoplay=1") : "vzaar" === f.type && c.attr("src", "//view.vzaar.com/" + f.id + "/player?autoplay=true"), a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")), this._playing = e.addClass("owl-video-playing")) 581 }, e.prototype.isInFullScreen = function () { 582 var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; 583 return b && a(b).parent().hasClass("owl-video-frame") 584 }, e.prototype.destroy = function () { 585 var a, b; 586 this._core.$element.off("click.owl.video"); 587 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 588 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 589 }, a.fn.owlCarousel.Constructor.Plugins.Video = e 590}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 591 var e = function (b) { 592 this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = { 593 "change.owl.carousel": a.proxy(function (a) { 594 a.namespace && "position" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value) 595 }, this), "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function (a) { 596 a.namespace && (this.swapping = "translated" == a.type) 597 }, this), "translate.owl.carousel": a.proxy(function (a) { 598 a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() 599 }, this) 600 }, this.core.$element.on(this.handlers) 601 }; 602 e.Defaults = { 603 animateOut: !1, 604 animateIn: !1 605 }, e.prototype.swap = function () { 606 if (1 === this.core.settings.items && a.support.animation && a.support.transition) { 607 this.core.speed(0); 608 var b, c = a.proxy(this.clear, this), d = this.core.$stage.children().eq(this.previous), 609 e = this.core.$stage.children().eq(this.next), f = this.core.settings.animateIn, 610 g = this.core.settings.animateOut; 611 this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.one(a.support.animation.end, c).css({left: b + "px"}).addClass("animated owl-animated-out").addClass(g)), f && e.one(a.support.animation.end, c).addClass("animated owl-animated-in").addClass(f)) 612 } 613 }, e.prototype.clear = function (b) { 614 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() 615 }, e.prototype.destroy = function () { 616 var a, b; 617 for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); 618 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 619 }, a.fn.owlCarousel.Constructor.Plugins.Animate = e 620}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 621 var e = function (b) { 622 this._core = b, this._call = null, this._time = 0, this._timeout = 0, this._paused = !0, this._handlers = { 623 "changed.owl.carousel": a.proxy(function (a) { 624 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) 625 }, this), "initialized.owl.carousel": a.proxy(function (a) { 626 a.namespace && this._core.settings.autoplay && this.play() 627 }, this), "play.owl.autoplay": a.proxy(function (a, b, c) { 628 a.namespace && this.play(b, c) 629 }, this), "stop.owl.autoplay": a.proxy(function (a) { 630 a.namespace && this.stop() 631 }, this), "mouseover.owl.autoplay": a.proxy(function () { 632 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 633 }, this), "mouseleave.owl.autoplay": a.proxy(function () { 634 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play() 635 }, this), "touchstart.owl.core": a.proxy(function () { 636 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 637 }, this), "touchend.owl.core": a.proxy(function () { 638 this._core.settings.autoplayHoverPause && this.play() 639 }, this) 640 }, this._core.$element.on(this._handlers), this._core.options = a.extend({}, e.Defaults, this._core.options) 641 }; 642 e.Defaults = { 643 autoplay: !1, 644 autoplayTimeout: 5e3, 645 autoplayHoverPause: !1, 646 autoplaySpeed: !1 647 }, e.prototype._next = function (d) { 648 this._call = b.setTimeout(a.proxy(this._next, this, d), this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()), this._core.is("interacting") || c.hidden || this._core.next(d || this._core.settings.autoplaySpeed) 649 }, e.prototype.read = function () { 650 return (new Date).getTime() - this._time 651 }, e.prototype.play = function (c, d) { 652 var e; 653 this._core.is("rotating") || this._core.enter("rotating"), c = c || this._core.settings.autoplayTimeout, e = Math.min(this._time % (this._timeout || c), c), this._paused ? (this._time = this.read(), this._paused = !1) : b.clearTimeout(this._call), this._time += this.read() % c - e, this._timeout = c, this._call = b.setTimeout(a.proxy(this._next, this, d), c - e) 654 }, e.prototype.stop = function () { 655 this._core.is("rotating") && (this._time = 0, this._paused = !0, b.clearTimeout(this._call), this._core.leave("rotating")) 656 }, e.prototype.pause = function () { 657 this._core.is("rotating") && !this._paused && (this._time = this.read(), this._paused = !0, b.clearTimeout(this._call)) 658 }, e.prototype.destroy = function () { 659 var a, b; 660 this.stop(); 661 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 662 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 663 }, a.fn.owlCarousel.Constructor.Plugins.autoplay = e 664}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 665 "use strict"; 666 var e = function (b) { 667 this._core = b, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = { 668 next: this._core.next, 669 prev: this._core.prev, 670 to: this._core.to 671 }, this._handlers = { 672 "prepared.owl.carousel": a.proxy(function (b) { 673 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>") 674 }, this), "added.owl.carousel": a.proxy(function (a) { 675 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()) 676 }, this), "remove.owl.carousel": a.proxy(function (a) { 677 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1) 678 }, this), "changed.owl.carousel": a.proxy(function (a) { 679 a.namespace && "position" == a.property.name && this.draw() 680 }, this), "initialized.owl.carousel": a.proxy(function (a) { 681 a.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger("initialized", null, "navigation")) 682 }, this), "refreshed.owl.carousel": a.proxy(function (a) { 683 a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")) 684 }, this) 685 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers) 686 }; 687 e.Defaults = { 688 nav: !1, 689 navText: ['<span aria-label="Previous">‹</span>', '<span aria-label="Next">›</span>'], 690 navSpeed: !1, 691 navElement: 'button type="button" role="presentation"', 692 navContainer: !1, 693 navContainerClass: "owl-nav", 694 navClass: ["owl-prev", "owl-next"], 695 slideBy: 1, 696 dotClass: "owl-dot", 697 dotsClass: "owl-dots", 698 dots: !0, 699 dotsEach: !1, 700 dotsData: !1, 701 dotsSpeed: !1, 702 dotsContainer: !1 703 }, e.prototype.initialize = function () { 704 var b, c = this._core.settings; 705 this._controls.$relative = (c.navContainer ? a(c.navContainer) : a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"), this._controls.$previous = a("<" + c.navElement + ">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click", a.proxy(function (a) { 706 this.prev(c.navSpeed) 707 }, this)), this._controls.$next = a("<" + c.navElement + ">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click", a.proxy(function (a) { 708 this.next(c.navSpeed) 709 }, this)), c.dotsData || (this._templates = [a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]), this._controls.$absolute = (c.dotsContainer ? a(c.dotsContainer) : a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"), this._controls.$absolute.on("click", "button", a.proxy(function (b) { 710 var d = a(b.target).parent().is(this._controls.$absolute) ? a(b.target).index() : a(b.target).parent().index(); 711 b.preventDefault(), this.to(d, c.dotsSpeed) 712 }, this)); 713 for (b in this._overrides) this._core[b] = a.proxy(this[b], this) 714 }, e.prototype.destroy = function () { 715 var a, b, c, d, e; 716 e = this._core.settings; 717 for (a in this._handlers) this.$element.off(a, this._handlers[a]); 718 for (b in this._controls) "$relative" === b && e.navContainer ? this._controls[b].html("") : this._controls[b].remove(); 719 for (d in this.overides) this._core[d] = this._overrides[d]; 720 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 721 }, e.prototype.update = function () { 722 var a, b, c, d = this._core.clones().length / 2, e = d + this._core.items().length, f = this._core.maximum(!0), 723 g = this._core.settings, h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items; 724 if ("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)), g.dots || "page" == g.slideBy) for (this._pages = [], a = d, b = 0, c = 0; a < e; a++) { 725 if (b >= h || 0 === b) { 726 if (this._pages.push({start: Math.min(f, a - d), end: a - d + h - 1}), Math.min(f, a - d) === f) break; 727 b = 0, ++c 728 } 729 b += this._core.mergers(this._core.relative(a)) 730 } 731 }, e.prototype.draw = function () { 732 var b, c = this._core.settings, d = this._core.items().length <= c.items, 733 e = this._core.relative(this._core.current()), f = c.loop || c.rewind; 734 this._controls.$relative.toggleClass("disabled", !c.nav || d), c.nav && (this._controls.$previous.toggleClass("disabled", !f && e <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !f && e >= this._core.maximum(!0))), this._controls.$absolute.toggleClass("disabled", !c.dots || d), c.dots && (b = this._pages.length - this._controls.$absolute.children().length, c.dotsData && 0 !== b ? this._controls.$absolute.html(this._templates.join("")) : b > 0 ? this._controls.$absolute.append(new Array(b + 1).join(this._templates[0])) : b < 0 && this._controls.$absolute.children().slice(b).remove(), this._controls.$absolute.find(".active").removeClass("active"), this._controls.$absolute.children().eq(a.inArray(this.current(), this._pages)).addClass("active")) 735 }, e.prototype.onTrigger = function (b) { 736 var c = this._core.settings; 737 b.page = { 738 index: a.inArray(this.current(), this._pages), 739 count: this._pages.length, 740 size: c && (c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items) 741 } 742 }, e.prototype.current = function () { 743 var b = this._core.relative(this._core.current()); 744 return a.grep(this._pages, a.proxy(function (a, c) { 745 return a.start <= b && a.end >= b 746 }, this)).pop() 747 }, e.prototype.getPosition = function (b) { 748 var c, d, e = this._core.settings; 749 return "page" == e.slideBy ? (c = a.inArray(this.current(), this._pages), d = this._pages.length, b ? ++c : --c, c = this._pages[(c % d + d) % d].start) : (c = this._core.relative(this._core.current()), d = this._core.items().length, b ? c += e.slideBy : c -= e.slideBy), c 750 }, e.prototype.next = function (b) { 751 a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b) 752 }, e.prototype.prev = function (b) { 753 a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b) 754 }, e.prototype.to = function (b, c, d) { 755 var e; 756 !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) 757 }, a.fn.owlCarousel.Constructor.Plugins.Navigation = e 758}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 759 "use strict"; 760 var e = function (c) { 761 this._core = c, this._hashes = {}, this.$element = this._core.$element, this._handlers = { 762 "initialized.owl.carousel": a.proxy(function (c) { 763 c.namespace && "URLHash" === this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation") 764 }, this), "prepared.owl.carousel": a.proxy(function (b) { 765 if (b.namespace) { 766 var c = a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"); 767 if (!c) return; 768 this._hashes[c] = b.content 769 } 770 }, this), "changed.owl.carousel": a.proxy(function (c) { 771 if (c.namespace && "position" === c.property.name) { 772 var d = this._core.items(this._core.relative(this._core.current())), 773 e = a.map(this._hashes, function (a, b) { 774 return a === d ? b : null 775 }).join(); 776 if (!e || b.location.hash.slice(1) === e) return; 777 b.location.hash = e 778 } 779 }, this) 780 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers), a(b).on("hashchange.owl.navigation", a.proxy(function (a) { 781 var c = b.location.hash.substring(1), e = this._core.$stage.children(), 782 f = this._hashes[c] && e.index(this._hashes[c]); 783 f !== d && f !== this._core.current() && this._core.to(this._core.relative(f), !1, !0) 784 }, this)) 785 }; 786 e.Defaults = {URLhashListener: !1}, e.prototype.destroy = function () { 787 var c, d; 788 a(b).off("hashchange.owl.navigation"); 789 for (c in this._handlers) this._core.$element.off(c, this._handlers[c]); 790 for (d in Object.getOwnPropertyNames(this)) "function" != typeof this[d] && (this[d] = null) 791 }, a.fn.owlCarousel.Constructor.Plugins.Hash = e 792}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 793 function e(b, c) { 794 var e = !1, f = b.charAt(0).toUpperCase() + b.slice(1); 795 return a.each((b + " " + h.join(f + " ") + f).split(" "), function (a, b) { 796 if (g[b] !== d) return e = !c || b, !1 797 }), e 798 } 799 800 function f(a) { 801 return e(a, !0) 802 } 803 804 var g = a("<support>").get(0).style, h = "Webkit Moz O ms".split(" "), i = { 805 transition: { 806 end: { 807 WebkitTransition: "webkitTransitionEnd", 808 MozTransition: "transitionend", 809 OTransition: "oTransitionEnd", 810 transition: "transitionend" 811 } 812 }, 813 animation: { 814 end: { 815 WebkitAnimation: "webkitAnimationEnd", 816 MozAnimation: "animationend", 817 OAnimation: "oAnimationEnd", 818 animation: "animationend" 819 } 820 } 821 }, j = { 822 csstransforms: function () { 823 return !!e("transform") 824 }, csstransforms3d: function () { 825 return !!e("perspective") 826 }, csstransitions: function () { 827 return !!e("transition") 828 }, cssanimations: function () { 829 return !!e("animation") 830 } 831 }; 832 j.csstransitions() && (a.support.transition = new String(f("transition")), a.support.transition.end = i.transition.end[a.support.transition]), j.cssanimations() && (a.support.animation = new String(f("animation")), a.support.animation.end = i.animation.end[a.support.animation]), j.csstransforms() && (a.support.transform = new String(f("transform")), a.support.transform3d = j.csstransforms3d()) 833}(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.