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