vendor: 27,975 bytes, lines 1-753
1"function"!==typeof 2Object.create&&( 3 Object.create=function(f){ 4 function g(){ 5 6 } 7 g.prototype=f; 8 return new g 9 }); 10 (function(f,g,k) 11 { 12 var l= 13 { 14 init:function(a,b) 15 { 16 this.$elem=f(b); 17 this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a); 18 this.userOptions=a; 19 this.loadContent() 20 }, 21 loadContent:function() 22 { 23 function a(a) 24 { 25 var d,e=""; 26 if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]); 27 else 28 { 29 for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item); 30 b.$elem.html(e) 31 }b.logIn() 32 } 33 var b=this,e; 34 "function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]); 35 "string"===typeof b.options.jsonPath?(e=b.options.jsonPath,f.getJSON(e,a)):b.logIn() 36 }, 37 logIn:function() 38 { 39 this.$elem.data("owl-originalStyles",this.$elem.attr("style")); 40 this.$elem.data("owl-originalClasses",this.$elem.attr("class")); 41 this.$elem.css({opacity:0}); 42 this.orignalItems=this.options.items; 43 this.checkBrowser(); 44 this.wrapperWidth=0; 45 this.checkVisible=null; 46 this.setVars() 47 }, 48 setVars:function() 49 { 50 if(0===this.$elem.children().length)return!1; 51 this.baseClass(); 52 this.eventTypes(); 53 this.$userItems=this.$elem.children(); 54 this.itemsAmount=this.$userItems.length; 55 this.wrapItems(); 56 this.$owlItems=this.$elem.find(".owl-item"); 57 this.$owlWrapper=this.$elem.find(".owl-wrapper"); 58 this.playDirection="next"; 59 this.prevItem=0; 60 this.prevArr=[0]; 61 this.currentItem=0; 62 this.customEvents(); 63 this.onStartup() 64 }, 65 onStartup:function() 66 { 67 this.updateItems(); 68 this.calculateAll(); 69 this.buildControls(); 70 this.updateControls(); 71 this.response(); 72 this.moveEvents(); 73 this.stopOnHover(); 74 this.owlStatus(); 75 !1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle); 76 !0===this.options.autoPlay&&(this.options.autoPlay=5E3); 77 this.play(); 78 this.$elem.find(".owl-wrapper").css("display","block"); 79 this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility(); 80 this.onstartup=!1; 81 this.eachMoveUpdate(); 82 "function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem]) 83 }, 84 eachMoveUpdate:function() 85 { 86 !0===this.options.lazyLoad&&this.lazyLoad(); 87 !0===this.options.autoHeight&&this.autoHeight(); 88 this.onVisibleItems(); 89 "function"===typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem]) 90 }, 91 updateVars:function() 92 { 93 "function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]); 94 this.watchVisibility(); 95 this.updateItems(); 96 this.calculateAll(); 97 this.updatePosition(); 98 this.updateControls(); 99 this.eachMoveUpdate(); 100 "function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem]) 101 }, 102 reload:function() 103 { 104 var a=this; 105 g.setTimeout(function(){a.updateVars()},0) 106 }, 107 watchVisibility:function() 108 { 109 var a=this; 110 if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}),g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible); 111 else 112 return!1; 113 a.checkVisible=g.setInterval(function() 114 { 115 a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible)) 116 },500) 117 }, 118 wrapItems:function() 119 { 120 this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'); 121 this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'); 122 this.wrapperOuter=this.$elem.find(".owl-wrapper-outer"); 123 this.$elem.css("display","block") 124 }, 125 baseClass:function() 126 { 127 var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme); 128 a||this.$elem.addClass(this.options.baseClass); 129 b||this.$elem.addClass(this.options.theme) 130 }, 131 updateItems:function() 132 { 133 var a,b; 134 if(!1===this.options.responsive)return!1; 135 if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1; 136 a=f(this.options.responsiveBaseWidth).width(); 137 a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems); 138 if(!1!==this.options.itemsCustom) 139 for(this.options.itemsCustom.sort(function(a,b) 140 { 141 return a[0]-b[0] 142 }), 143 b=0; 144 b<this.options.itemsCustom.length; 145 b+=1)this.options.itemsCustom[b][0]<=a&&(this.options.items=this.options.itemsCustom[b][1]); 146 else 147 a<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]), 148 a<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]), 149 a<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]), 150 a<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]), 151 a<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]); 152 this.options.items>this.itemsAmount&&!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount) 153 }, 154 response:function() 155 { 156 var a=this,b,e; 157 if(!0!==a.options.responsive)return!1; 158 e=f(g).width(); 159 a.resizer=function() 160 { 161 f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval), 162 g.clearTimeout(b), 163 b=g.setTimeout(function() 164 { 165 e=f(g).width(); 166 a.updateVars() 167 }, 168 a.options.responsiveRefreshRate)) 169 }; 170 f(g).resize(a.resizer) 171 }, 172 updatePosition:function() 173 { 174 this.jumpTo(this.currentItem); 175 !1!==this.options.autoPlay&&this.checkAp() 176 }, 177 appendItemsSizes:function() 178 { 179 var a=this,b=0,e=a.itemsAmount-a.options.items; 180 a.$owlItems.each( 181 function(c) 182 { 183 var d=f(this); 184 d.css({width:a.itemWidth}).data("owl-item",Number(c)); 185 if(0===c%a.options.items||c===e)c>e||(b+=1); 186 d.data("owl-roundPages",b) 187 }) 188 }, 189 appendWrapperSizes:function() 190 { 191 this.$owlWrapper.css( 192 { 193 width:this.$owlItems.length*this.itemWidth*2,left:0 194 }); 195 this.appendItemsSizes() 196 }, 197 calculateAll:function() 198 { 199 this.calculateWidth(); 200 this.appendWrapperSizes(); 201 this.loops(); 202 this.max() 203 }, 204 calculateWidth:function() 205 { 206 this.itemWidth=Math.round(this.$elem.width()/this.options.items) 207 }, 208 max:function() 209 { 210 var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth); 211 this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a); 212 return a 213 }, 214 min:function(){return 0}, 215 loops:function() 216 { 217 var a=0,b=0,e,c; 218 this.positionsInArray=[0]; 219 this.pagesInArray=[]; 220 for(e=0;e<this.itemsAmount;e+=1) 221 b+=this.itemWidth, 222 this.positionsInArray.push(-b), 223 !0===this.options.scrollPerPage&&(c=f(this.$owlItems[e]), 224 c=c.data("owl-roundPages"), 225 c!==a&&(this.pagesInArray[a]=this.positionsInArray[e],a=c)) 226 }, 227 buildControls:function() 228 { 229 if(!0===this.options.navigation||!0===this.options.pagination)this.owlControls=f('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem); 230 !0===this.options.pagination&&this.buildPagination(); 231 !0===this.options.navigation&&this.buildButtons() 232 }, 233 buildButtons:function() 234 { 235 var a=this,b=f('<div class="owl-buttons"/>'); 236 a.owlControls.append(b); 237 a.buttonPrev=f("<div/>",{"class":"owl-prev",html:a.options.navigationText[0]||""}); 238 a.buttonNext=f("<div/>",{"class":"owl-next",html:a.options.navigationText[1]||""}); 239 b.append(a.buttonPrev).append(a.buttonNext); 240 b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()}); 241 b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b) 242 { 243 b.preventDefault(); 244 f(this).hasClass("owl-next")?a.next():a.prev() 245 }) 246 }, 247 buildPagination:function() 248 { 249 var a=this; 250 a.paginationWrapper=f('<div class="owl-pagination"/>'); 251 a.owlControls.append(a.paginationWrapper); 252 a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b) 253 { 254 b.preventDefault(); 255 Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0) 256 }) 257 }, 258 updatePagination:function() 259 { 260 var a,b,e,c,d,g;if(!1===this.options.pagination)return!1; 261 this.paginationWrapper.html(""); 262 a=0; 263 b=this.itemsAmount-this.itemsAmount%this.options.items; 264 for(c=0;c<this.itemsAmount;c+=1)0===c%this.options.items&&( 265 a+=1,b===c&&(e=this.itemsAmount-this.options.items),d=f("<div/>",{"class":"owl-page"}),g=f("<span></span>",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d)); 266 this.checkPagination() 267 }, 268 checkPagination:function() 269 { 270 var a=this;if(!1===a.options.pagination)return!1; 271 a.paginationWrapper.find(".owl-page").each(function() 272 { 273 f(this).data("owl-roundPages")===f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"), 274 f(this).addClass("active")) 275 }) 276 }, 277 checkNavigation:function() 278 { 279 if(!1===this.options.navigation)return!1; 280 !1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?( 281 this.buttonPrev.addClass("disabled"), 282 this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"), 283 this.buttonNext.removeClass("disabled")):this.currentItem===this.maximumItem?(this.buttonPrev.removeClass("disabled"), 284 this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"), 285 this.buttonNext.removeClass("disabled"))) 286 }, 287 updateControls:function() 288 { 289 this.updatePagination(); 290 this.checkNavigation(); 291 this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show()) 292 }, 293 destroyControls:function() 294 { 295 this.owlControls&&this.owlControls.remove() 296 }, 297 next:function(a) 298 { 299 if(this.isTransition)return!1; 300 this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1; 301 if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0)) 302 if(!0===this.options.rewindNav)this.currentItem=0,a="rewind"; 303 else return this.currentItem=this.maximumItem,!1; 304 this.goTo(this.currentItem,a) 305 }, 306 prev:function(a) 307 { 308 if(this.isTransition)return!1; 309 this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?this.options.items:1); 310 if(0>this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind"; 311 else return this.currentItem=0,!1; 312 this.goTo(this.currentItem,a) 313 }, 314 goTo:function(a,b,e) 315 { 316 var c=this;if(c.isTransition)return!1; 317 "function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]); 318 a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0); 319 c.currentItem=c.owl.currentItem=a; 320 if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0),!0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1; 321 a=c.positionsInArray[a]; 322 !0===c.browser.support3d?(c.isCss3Finish=!1,!0===b? 323 ( 324 c.swapSpeed("paginationSpeed"), 325 g.setTimeout(function(){c.isCss3Finish=!0}, 326 c.options.paginationSpeed) 327 ): 328 "rewind"===b? 329 ( 330 c.swapSpeed(c.options.rewindSpeed), 331 g.setTimeout(function(){c.isCss3Finish=!0}, 332 c.options.rewindSpeed) 333 ):( 334 c.swapSpeed("slideSpeed"), 335 g.setTimeout(function(){c.isCss3Finish=!0},c.options.slideSpeed) 336 ), 337 c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed); 338 c.afterGo() 339 }, 340 jumpTo:function(a) 341 { 342 "function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]); 343 a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0); 344 this.swapSpeed(0); 345 !0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1); 346 this.currentItem=this.owl.currentItem=a; 347 this.afterGo() 348 }, 349 afterGo:function() 350 { 351 this.prevArr.push(this.currentItem); 352 this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2]; 353 this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp()); 354 "function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem]) 355 }, 356 stop:function() 357 { 358 this.apStatus="stop"; 359 g.clearInterval(this.autoPlayInterval) 360 }, 361 checkAp:function() 362 { 363 "stop"!==this.apStatus&&this.play() 364 }, 365 play:function() 366 { 367 var a=this;a.apStatus="play"; 368 if(!1===a.options.autoPlay)return!1; 369 g.clearInterval(a.autoPlayInterval); 370 a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay) 371 }, 372 swapSpeed:function(a) 373 { 374 "slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a)) 375 }, 376 addCssSpeed:function(a) 377 { 378 return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"} 379 }, 380 removeTransition:function() 381 { 382 return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""} 383 }, 384 doTranslate:function(a) 385 { 386 return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"} 387 }, 388 transition3d:function(a) 389 { 390 this.$owlWrapper.css(this.doTranslate(a)) 391 }, 392 css2move:function(a) 393 { 394 this.$owlWrapper.css({left:a}) 395 }, 396 css2slide:function(a,b) 397 { 398 var e=this; 399 e.isCssFinish=!1; 400 e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}}) 401 }, 402 checkBrowser:function() 403 { 404 var a=k.createElement("div"); 405 a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; 406 a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g); 407 this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints} 408 }, 409 moveEvents:function() 410 { 411 if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents() 412 }, 413 eventTypes:function() 414 { 415 var a=["s","e","x"]; 416 this.ev_types={}; 417 !0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:!1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]); 418 this.ev_types.start=a[0]; 419 this.ev_types.move=a[1]; 420 this.ev_types.end=a[2] 421 }, 422 disabledEvents:function() 423 { 424 this.$elem.on("dragstart.owl",function(a){a.preventDefault()}); 425 this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")}) 426 }, 427 gestures:function() 428 { 429 function a(a) 430 { 431 if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY}; 432 if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY}; 433 if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}} 434 } 435 function b(a) 436 { 437 "on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end)) 438 } 439 function e(b) 440 { 441 b=b.originalEvent||b||g.event; 442 d.newPosX=a(b).x-h.offsetX; 443 d.newPosY=a(b).y-h.offsetY; 444 d.newRelativeX=d.newPosX-h.relativePos; 445 "function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem])); 446 (8<d.newRelativeX||-8>d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0); 447 (10<d.newPosY||-10>d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl"); 448 d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5); 449 !0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX) 450 } 451 function c(a) 452 { 453 a=a.originalEvent||a||g.event; 454 var c; 455 a.target=a.target||a.srcElement; 456 h.dragging=!1; 457 !0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing"); 458 d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right"; 459 0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a) 460 { 461 a.stopImmediatePropagation(); 462 a.stopPropagation(); 463 a.preventDefault(); 464 f(a.target).off("click.disable") 465 }),a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c))); 466 b("off") 467 } 468 var d=this,h= 469 { 470 offsetX:0, 471 offsetY:0, 472 baseElWidth:0, 473 relativePos:0, 474 position:null, 475 minSwipe:null, 476 maxSwipe:null, 477 sliding:null, 478 dargging:null, 479 targetElement:null 480 }; 481 d.isCssFinish=!0; 482 d.$elem.on(d.ev_types.start,".owl-wrapper",function(c) 483 { 484 c=c.originalEvent||c||g.event; 485 var e; 486 if(3===c.which)return!1; 487 if(!(d.itemsAmount<=d.options.items)) 488 { 489 if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; 490 !1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval); 491 !0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing"); 492 d.newPosX=0; 493 d.newRelativeX=0; 494 f(this).css(d.removeTransition()); 495 e=f(this).position(); 496 h.relativePos=e.left; 497 h.offsetX=a(c).x-e.left; 498 h.offsetY=a(c).y-e.top; 499 b("on"); 500 h.sliding=!1; 501 h.targetElement=c.target||c.srcElement 502 } 503 }) 504 }, 505 getNewPosition:function() 506 { 507 var a=this.closestItem(); 508 a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=a=0); 509 return a 510 }, 511 closestItem:function() 512 { 513 var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null; 514 f.each(b,function(d,g) 515 { 516 e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20<g&&"left"===a.moveDirection()?(c=g,a.currentItem=!0===a.options.scrollPerPage?f.inArray(c,a.positionsInArray):d):e+a.itemWidth/20<g&&e+a.itemWidth/20>(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)):(c=b[d+1],a.currentItem=d+1)) 517 }); 518 return a.currentItem 519 }, 520 moveDirection:function() 521 { 522 var a; 523 0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev"); 524 return a 525 }, 526 customEvents:function() 527 { 528 var a=this; 529 a.$elem.on("owl.next",function(){a.next()}); 530 a.$elem.on("owl.prev",function(){a.prev()}); 531 a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"}); 532 a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"}); 533 a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); 534 a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)}) 535 }, 536 stopOnHover:function() 537 { 538 var a=this; 539 !0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()})) 540 }, 541 lazyLoad:function() 542 { 543 var a,b,e,c,d; 544 if(!1===this.options.lazyLoad)return!1; 545 for(a=0;a<this.itemsAmount;a+=1)b=f(this.$owlItems[a]),"loaded"!==b.data("owl-loaded")&&(e=b.data("owl-item"),c=b.find(".lazyOwl"),"string"!==typeof c.data("src")?b.data("owl-loaded","loaded"):(void 0===b.data("owl-loaded")&&(c.hide(),b.addClass("loading").data("owl-loaded","checked")),(d=!0===this.options.lazyFollow?e>=this.currentItem:!0)&&e<this.currentItem+this.options.items&&c.length&&this.lazyPreload(b,c))) 546 }, 547 lazyPreload:function(a,b) 548 { 549 function e() 550 { 551 a.data("owl-loaded","loaded").removeClass("loading"); 552 b.removeAttr("data-src"); 553 "fade"===d.options.lazyEffect?b.fadeIn(400):b.show(); 554 "function"===typeof d.options.afterLazyLoad&&d.options.afterLazyLoad.apply(this,[d.$elem]) 555 } 556 function c() 557 { 558 f+=1; 559 d.completeImg(b.get(0))||!0===k?e():100>=f?g.setTimeout(c,100):e() 560 } 561 var d=this,f=0,k; 562 "DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src"); 563 c() 564 }, 565 autoHeight:function() 566 { 567 function a() 568 { 569 var a=f(e.$owlItems[e.currentItem]).height(); 570 e.wrapperOuter.css("height",a+"px"); 571 e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function() 572 { 573 e.wrapperOuter.addClass("autoHeight") 574 },0) 575 } 576 function b() 577 { 578 d+=1; 579 e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b,100):e.wrapperOuter.css("height","") 580 } 581 var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d; 582 void 0!==c.get(0)?(d=0,b()):a() 583 }, 584 completeImg:function(a) 585 { 586 return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0 587 }, 588 onVisibleItems:function() 589 { 590 var a; 591 !0===this.options.addClassActive&&this.$owlItems.removeClass("active"); 592 this.visibleItems=[]; 593 for 594 ( 595 a=this.currentItem; 596 a<this.currentItem+this.options.items; 597 a+=1 598 ) 599 this.visibleItems.push(a),!0===this.options.addClassActive&&f(this.$owlItems[a]).addClass("active"); 600 this.owl.visibleItems=this.visibleItems 601 }, 602 transitionTypes:function(a) 603 { 604 this.outClass="owl-"+a+"-out"; 605 this.inClass="owl-"+a+"-in" 606 }, 607 singleItemTransition:function() 608 { 609 var 610 a=this, 611 b=a.outClass, 612 e=a.inClass, 613 c=a.$owlItems.eq(a.currentItem), 614 d=a.$owlItems.eq(a.prevItem), 615 f=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem], 616 g=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2; 617 a.isTransition=!0; 618 a.$owlWrapper.addClass("owl-origin").css( 619 { 620 "-webkit-transform-origin":g+"px","-moz-perspective-origin":g+"px","perspective-origin":g+"px" 621 }); 622 d.css({position:"relative",left:f+"px"}).addClass(b).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endPrev=!0;d.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"); 623 a.clearTransStyle(d,b)}); 624 c.addClass(e).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function() 625 { 626 a.endCurrent=!0; 627 c.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"); 628 a.clearTransStyle(c,e) 629 }) 630 }, 631 clearTransStyle:function(a,b) 632 { 633 a.css({position:"",left:""}).removeClass(b); 634 this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1) 635 }, 636 owlStatus:function() 637 { 638 this.owl= 639 { 640 userOptions:this.userOptions, 641 baseElement:this.$elem,userItems:this.$userItems, 642 owlItems:this.$owlItems, 643 currentItem:this.currentItem, 644 prevItem:this.prevItem, 645 visibleItems:this.visibleItems, 646 isTouch:this.browser.isTouch, 647 browser:this.browser, 648 dragDirection:this.dragDirection 649 } 650 }, 651 clearEvents:function() 652 { 653 this.$elem.off(".owl owl mousedown.disableTextSelect"); 654 f(k).off(".owl owl"); 655 f(g).off("resize",this.resizer) 656 }, 657 unWrap:function() 658 { 659 0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove()); 660 this.clearEvents(); 661 this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses")) 662 }, 663 destroy:function(){ 664 this.stop(); 665 g.clearInterval(this.checkVisible); 666 this.unWrap(); 667 this.$elem.removeData() 668 }, 669 reinit:function(a) 670 { 671 a=f.extend({},this.userOptions,a); 672 this.unWrap(); 673 this.init(a,this.$elem) 674 }, 675 addItem:function(a,b) 676 { 677 var e; 678 if(!a)return!1; 679 if(0===this.$elem.children().length)return this.$elem.append(a),this.setVars(),!1; 680 this.unWrap(); 681 e=void 0===b||-1===b?-1:b; 682 e>=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a); 683 this.setVars() 684 }, 685 removeItem:function(a) 686 { 687 if(0===this.$elem.children().length)return!1; 688 a=void 0===a||-1===a?-1:a; 689 this.unWrap(); 690 this.$userItems.eq(a).remove(); 691 this.setVars() 692 } 693 }; 694 f.fn.owlCarousel=function(a) 695 { 696 return this.each(function() 697 { 698 if(!0===f(this).data("owl-init"))return!1; 699 f(this).data("owl-init",!0); 700 var b=Object.create(l); 701 b.init(a,this); 702 f.data(this,"owlCarousel",b) 703 }) 704 }; 705 f.fn.owlCarousel.options= 706 { 707 items:20, 708 itemsCustom:!1, 709 itemsDesktop:[1199,20], 710 itemsDesktopSmall:[979,3], 711 itemsTablet:[768,2], 712 itemsTabletSmall:!1, 713 itemsMobile:[479,1], 714 singleItem:!1, 715 itemsScaleUp:!1, 716 slideSpeed:200, 717 paginationSpeed:800, 718 rewindSpeed:1E3, 719 autoPlay:!1, 720 stopOnHover:!1, 721 navigation:!1, 722 navigationText:["prev","next"], 723 rewindNav:!0, 724 scrollPerPage:!1, 725 pagination:!0, 726 paginationNumbers:!1, 727 responsive:!0, 728 responsiveRefreshRate:200, 729 responsiveBaseWidth:g,baseClass:"owl-carousel", 730 theme:"owl-theme", 731 lazyLoad:!1, 732 lazyFollow:!0, 733 lazyEffect:"fade", 734 autoHeight:!1, 735 jsonPath:!1, 736 jsonSuccess:!1, 737 dragBeforeAnimFinish:!0, 738 mouseDrag:!0, 739 touchDrag:!0, 740 addClassActive:!1, 741 transitionStyle:!1, 742 beforeUpdate:!1, 743 afterUpdate:!1, 744 beforeInit:!1, 745 afterInit:!1, 746 beforeMove:!1, 747 afterMove:!1, 748 afterAction:!1, 749 startDragging:!1, 750 afterLazyLoad:!1 751 } 752 }) 753 (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.