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