');e.wrapperOuter=e.$elem.find(".owl-wrapper-outer");e.$elem.css("display","block")},baseClass:function(){var e=this;var t=e.$elem.hasClass(e.options.baseClass);var n=e.$elem.hasClass(e.options.theme);e.$elem.data("owl-originalStyles",e.$elem.attr("style")).data("owl-originalClasses",e.$elem.attr("class"));if(!t){e.$elem.addClass(e.options.baseClass)}if(!n){e.$elem.addClass(e.options.theme)}},updateItems:function(){var t=this;if(t.options.responsive===false){return false}if(t.options.singleItem===true){t.options.items=t.orignalItems=1;t.options.itemsDesktop=false;t.options.itemsDesktopSmall=false;t.options.itemsTablet=false;t.options.itemsTabletSmall=false;t.options.itemsMobile=false;return false}var n=e(t.options.responsiveBaseWidth).width();if(n>(t.options.itemsDesktop[0]||t.orignalItems)){t.options.items=t.orignalItems}if(n<=t.options.itemsDesktop[0]&&t.options.itemsDesktop!==false){t.options.items=t.options.itemsDesktop[1]}if(n<=t.options.itemsDesktopSmall[0]&&t.options.itemsDesktopSmall!==false){t.options.items=t.options.itemsDesktopSmall[1]}if(n<=t.options.itemsTablet[0]&&t.options.itemsTablet!==false){t.options.items=t.options.itemsTablet[1]}if(n<=t.options.itemsTabletSmall[0]&&t.options.itemsTabletSmall!==false){t.options.items=t.options.itemsTabletSmall[1]}if(n<=t.options.itemsMobile[0]&&t.options.itemsMobile!==false){t.options.items=t.options.itemsMobile[1]}if(t.options.items>t.itemsAmount&&t.options.itemsScaleUp===true){t.options.items=t.itemsAmount}},response:function(){var n=this,r;if(n.options.responsive!==true){return false}var i=e(t).width();n.resizer=function(){if(e(t).width()!==i){if(n.options.autoPlay!==false){clearInterval(n.autoPlayInterval)}clearTimeout(r);r=setTimeout(function(){i=e(t).width();n.updateVars()},n.options.responsiveRefreshRate)}};e(t).resize(n.resizer)},updatePosition:function(){var e=this;if(e.browser.support3d===true){if(e.positionsInArray[e.currentItem]>e.maximumPixels){e.transition3d(e.positionsInArray[e.currentItem])}else{e.transition3d(0);e.currentItem=0}}else{if(e.positionsInArray[e.currentItem]>e.maximumPixels){e.css2slide(e.positionsInArray[e.currentItem])}else{e.css2slide(0);e.currentItem=0}}if(e.options.autoPlay!==false){e.checkAp()}},appendItemsSizes:function(){var t=this;var n=0;var r=t.itemsAmount-t.options.items;t.$owlItems.each(function(i){var s=e(this);s.css({width:t.itemWidth}).data("owl-item",Number(i));if(i%t.options.items===0||i===r){if(!(i>r)){n+=1}}s.data("owl-roundPages",n)})},appendWrapperSizes:function(){var e=this;var t=0;var t=e.$owlItems.length*e.itemWidth;e.$owlWrapper.css({width:t*2,left:0});e.appendItemsSizes()},calculateAll:function(){var e=this;e.calculateWidth();e.appendWrapperSizes();e.loops();e.max()},calculateWidth:function(){var e=this;e.itemWidth=Math.round(e.$elem.width()/e.options.items)},max:function(){var e=this;var t=(e.itemsAmount*e.itemWidth-e.options.items*e.itemWidth)*-1;if(e.options.items>e.itemsAmount){e.maximumItem=0;t=0;e.maximumPixels=0}else{e.maximumItem=e.itemsAmount-e.options.items;e.maximumPixels=t}return t},min:function(){return 0},loops:function(){var e=this;e.positionsInArray=[0];var t=0;for(var n=0;n
').toggleClass("clickable",!t.browser.isTouch).appendTo(t.$elem)}if(t.options.pagination===true){t.buildPagination()}if(t.options.navigation===true){t.buildButtons()}},buildButtons:function(){var t=this;var n=e('
');t.owlControls.append(n);t.buttonPrev=e("
",{"class":"owl-prev",html:t.options.navigationText[0]||""});t.buttonNext=e("
",{"class":"owl-next",html:t.options.navigationText[1]||""});n.append(t.buttonPrev).append(t.buttonNext);n.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(e){e.preventDefault()});n.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(n){n.preventDefault();if(e(this).hasClass("owl-next")){t.next()}else{t.prev()}})},buildPagination:function(){var t=this;t.paginationWrapper=e('');t.owlControls.append(t.paginationWrapper);t.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(n){n.preventDefault();if(Number(e(this).data("owl-page"))!==t.currentItem){t.goTo(Number(e(this).data("owl-page")),true)}})},updatePagination:function(){var t=this;if(t.options.pagination===false){return false}t.paginationWrapper.html("");var n=0;var r=t.itemsAmount-t.itemsAmount%t.options.items;for(var i=0;i
",{"class":"owl-page"});var u=e("",{text:t.options.paginationNumbers===true?n:"","class":t.options.paginationNumbers===true?"owl-numbers":""});o.append(u);o.data("owl-page",r===i?s:i);o.data("owl-roundPages",n);t.paginationWrapper.append(o)}}t.checkPagination()},checkPagination:function(){var t=this;if(t.options.pagination===false){return false}t.paginationWrapper.find(".owl-page").each(function(n,r){if(e(this).data("owl-roundPages")===e(t.$owlItems[t.currentItem]).data("owl-roundPages")){t.paginationWrapper.find(".owl-page").removeClass("active");e(this).addClass("active")}})},checkNavigation:function(){var e=this;if(e.options.navigation===false){return false}if(e.options.rewindNav===false){if(e.currentItem===0&&e.maximumItem===0){e.buttonPrev.addClass("disabled");e.buttonNext.addClass("disabled")}else if(e.currentItem===0&&e.maximumItem!==0){e.buttonPrev.addClass("disabled");e.buttonNext.removeClass("disabled")}else if(e.currentItem===e.maximumItem){e.buttonPrev.removeClass("disabled");e.buttonNext.addClass("disabled")}else if(e.currentItem!==0&&e.currentItem!==e.maximumItem){e.buttonPrev.removeClass("disabled");e.buttonNext.removeClass("disabled")}}},updateControls:function(){var e=this;e.updatePagination();e.checkNavigation();if(e.owlControls){if(e.options.items>=e.itemsAmount){e.owlControls.hide()}else{e.owlControls.show()}}},destroyControls:function(){var e=this;if(e.owlControls){e.owlControls.remove()}},next:function(e){var t=this;if(t.isTransition){return false}t.storePrevItem=t.currentItem;t.currentItem+=t.options.scrollPerPage===true?t.options.items:1;if(t.currentItem>t.maximumItem+(t.options.scrollPerPage==true?t.options.items-1:0)){if(t.options.rewindNav===true){t.currentItem=0;e="rewind"}else{t.currentItem=t.maximumItem;return false}}t.goTo(t.currentItem,e)},prev:function(e){var t=this;if(t.isTransition){return false}t.storePrevItem=t.currentItem;if(t.options.scrollPerPage===true&&t.currentItem>0&&t.currentItem=r.maximumItem){e=r.maximumItem}else if(e<=0){e=0}r.currentItem=r.owl.currentItem=e;if(r.options.transitionStyle!==false&&n!=="drag"&&r.options.items===1&&r.browser.support3d===true){r.swapSpeed(0);if(r.browser.support3d===true){r.transition3d(r.positionsInArray[e])}else{r.css2slide(r.positionsInArray[e],1)}r.singleItemTransition();r.afterGo();return false}var i=r.positionsInArray[e];if(r.browser.support3d===true){r.isCss3Finish=false;if(t===true){r.swapSpeed("paginationSpeed");setTimeout(function(){r.isCss3Finish=true},r.options.paginationSpeed)}else if(t==="rewind"){r.swapSpeed(r.options.rewindSpeed);setTimeout(function(){r.isCss3Finish=true},r.options.rewindSpeed)}else{r.swapSpeed("slideSpeed");setTimeout(function(){r.isCss3Finish=true},r.options.slideSpeed)}r.transition3d(i)}else{if(t===true){r.css2slide(i,r.options.paginationSpeed)}else if(t==="rewind"){r.css2slide(i,r.options.rewindSpeed)}else{r.css2slide(i,r.options.slideSpeed)}}r.afterGo()},getPrevItem:function(){var e=this;e.prevItem=e.owl.prevItem=e.storePrevItem===r?e.currentItem:e.storePrevItem;e.storePrevItem=r},jumpTo:function(e){var t=this;t.getPrevItem();if(typeof t.options.beforeMove==="function"){t.options.beforeMove.apply(this,[t.$elem])}if(e>=t.maximumItem||e===-1){e=t.maximumItem}else if(e<=0){e=0}t.swapSpeed(0);if(t.browser.support3d===true){t.transition3d(t.positionsInArray[e])}else{t.css2slide(t.positionsInArray[e],1)}t.currentItem=t.owl.currentItem=e;t.afterGo()},afterGo:function(){var e=this;e.checkPagination();e.checkNavigation();e.eachMoveUpdate();if(typeof e.options.afterMove==="function"){e.options.afterMove.apply(this,[e.$elem])}if(e.options.autoPlay!==false){e.checkAp()}},stop:function(){var e=this;e.apStatus="stop";clearInterval(e.autoPlayInterval)},checkAp:function(){var e=this;if(e.apStatus!=="stop"){e.play()}},play:function(){var e=this;e.apStatus="play";if(e.options.autoPlay===false){return false}clearInterval(e.autoPlayInterval);e.autoPlayInterval=setInterval(function(){e.next(true)},e.options.autoPlay)},swapSpeed:function(e){var t=this;if(e==="slideSpeed"){t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed))}else if(e==="paginationSpeed"){t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed))}else if(typeof e!=="string"){t.$owlWrapper.css(t.addCssSpeed(e))}},addCssSpeed:function(e){var t=this;return{"-webkit-transition":"all "+e+"ms ease","-moz-transition":"all "+e+"ms ease","-o-transition":"all "+e+"ms ease",transition:"all "+e+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(e){return{"-webkit-transform":"translate3d("+e+"px, 0px, 0px)","-moz-transform":"translate3d("+e+"px, 0px, 0px)","-o-transform":"translate3d("+e+"px, 0px, 0px)","-ms-transform":"translate3d("+e+"px, 0px, 0px)",transform:"translate3d("+e+"px, 0px,0px)"}},transition3d:function(e){var t=this;t.$owlWrapper.css(t.doTranslate(e))},css2move:function(e){var t=this;t.$owlWrapper.css({left:e})},css2slide:function(e,t){var n=this;n.isCssFinish=false;n.$owlWrapper.stop(true,true).animate({left:e},{duration:t||n.options.slideSpeed,complete:function(){n.isCssFinish=true}})},checkBrowser:function(){var e=this;var r="translate3d(0px, 0px, 0px)",i=n.createElement("div");i.style.cssText=" -moz-transform:"+r+"; -ms-transform:"+r+"; -o-transform:"+r+"; -webkit-transform:"+r+"; transform:"+r;var s=/translate3d\(0px, 0px, 0px\)/g,o=i.style.cssText.match(s),u=o!==null&&o.length===1;var a="ontouchstart"in t||navigator.msMaxTouchPoints;e.browser={support3d:u,isTouch:a}},moveEvents:function(){var e=this;if(e.options.mouseDrag!==false||e.options.touchDrag!==false){e.gestures();e.disabledEvents()}},eventTypes:function(){var e=this;var t=["s","e","x"];e.ev_types={};if(e.options.mouseDrag===true&&e.options.touchDrag===true){t=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]}else if(e.options.mouseDrag===false&&e.options.touchDrag===true){t=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]}else if(e.options.mouseDrag===true&&e.options.touchDrag===false){t=["mousedown.owl","mousemove.owl","mouseup.owl"]}e.ev_types["start"]=t[0];e.ev_types["move"]=t[1];e.ev_types["end"]=t[2]},disabledEvents:function(){var t=this;t.$elem.on("dragstart.owl",function(e){e.preventDefault()});t.$elem.on("mousedown.disableTextSelect",function(t){return e(t.target).is("input, textarea, select, option")})},gestures:function(){function i(e){if(e.touches){return{x:e.touches[0].pageX,y:e.touches[0].pageY}}else{if(e.pageX!==r){return{x:e.pageX,y:e.pageY}}else{return{x:e.clientX,y:e.clientY}}}}function s(t){if(t==="on"){e(n).on(f.ev_types["move"],u);e(n).on(f.ev_types["end"],a)}else if(t==="off"){e(n).off(f.ev_types["move"]);e(n).off(f.ev_types["end"])}}function o(n){var n=n.originalEvent||n||t.event;if(n.which===3){return false}if(f.isCssFinish===false&&!f.options.dragBeforeAnimFinish){return false}if(f.isCss3Finish===false&&!f.options.dragBeforeAnimFinish){return false}if(f.options.autoPlay!==false){clearInterval(f.autoPlayInterval)}if(f.browser.isTouch!==true&&!f.$owlWrapper.hasClass("grabbing")){f.$owlWrapper.addClass("grabbing")}f.newPosX=0;f.newRelativeX=0;e(this).css(f.removeTransition());var r=e(this).position();l.relativePos=r.left;l.offsetX=i(n).x-r.left;l.offsetY=i(n).y-r.top;s("on");l.sliding=false;l.targetElement=n.target||n.srcElement}function u(r){var r=r.originalEvent||r||t.event;f.newPosX=i(r).x-l.offsetX;f.newPosY=i(r).y-l.offsetY;f.newRelativeX=f.newPosX-l.relativePos;if(typeof f.options.startDragging==="function"&&l.dragging!==true&&f.newRelativeX!==0){l.dragging=true;f.options.startDragging.apply(this)}if(f.newRelativeX>8||f.newRelativeX<-8&&f.browser.isTouch===true){r.preventDefault?r.preventDefault():r.returnValue=false;l.sliding=true}if((f.newPosY>10||f.newPosY<-10)&&l.sliding===false){e(n).off("touchmove.owl")}var s=function(){return f.newRelativeX/5};var o=function(){return f.maximumPixels+f.newRelativeX/5};f.newPosX=Math.max(Math.min(f.newPosX,s()),o());if(f.browser.support3d===true){f.transition3d(f.newPosX)}else{f.css2move(f.newPosX)}}function a(n){var n=n.originalEvent||n||t.event;n.target=n.target||n.srcElement;l.dragging=false;if(f.browser.isTouch!==true){f.$owlWrapper.removeClass("grabbing")}if(f.newRelativeX!==0){var r=f.getNewPosition();f.goTo(r,false,"drag");if(l.targetElement===n.target&&f.browser.isTouch!==true){e(n.target).on("click.disable",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();e(n.target).off("click.disable")});var i=e._data(n.target,"events")["click"];var o=i.pop();i.splice(0,0,o)}}s("off")}var f=this;var l={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};f.isCssFinish=true;f.$elem.on(f.ev_types["start"],".owl-wrapper",o)},getNewPosition:function(){var e=this,t;var t=e.improveClosest();if(t>e.maximumItem){e.currentItem=e.maximumItem;t=e.maximumItem}else if(e.newPosX>=0){t=0;e.currentItem=0}return t},improveClosest:function(){var t=this;var n=t.positionsInArray;var r=t.newPosX;var i=null;e.each(n,function(e,s){if(r-t.itemWidth/20>n[e+1]&&r-t.itemWidth/20n[e+1]&&t.moveDirection()==="right"){i=n[e+1];t.currentItem=e+1}});return t.currentItem},moveDirection:function(){var e=this,t;if(e.newRelativeX<0){t="right";e.playDirection="next"}else{t="left";e.playDirection="prev"}return t},customEvents:function(){var e=this;e.$elem.on("owl.next",function(){e.next()});e.$elem.on("owl.prev",function(){e.prev()});e.$elem.on("owl.play",function(t,n){e.options.autoPlay=n;e.play();e.hoverStatus="play"});e.$elem.on("owl.stop",function(){e.stop();e.hoverStatus="stop"});e.$elem.on("owl.goTo",function(t,n){e.goTo(n)});e.$elem.on("owl.jumpTo",function(t,n){e.jumpTo(n)})},stopOnHover:function(){var e=this;if(e.options.stopOnHover===true&&e.browser.isTouch!==true&&e.options.autoPlay!==false){e.$elem.on("mouseover",function(){e.stop()});e.$elem.on("mouseout",function(){if(e.hoverStatus!=="stop"){e.play()}})}},lazyLoad:function(){var t=this;if(t.options.lazyLoad===false){return false}for(var n=0;n=t.currentItem}else{u=true}if(u&&s=n.$userItems.length||i===-1){n.$userItems.eq(-1).after(e)}else{n.$userItems.eq(i).before(e)}n.setVars()},removeItem:function(e){var t=this,n;if(t.$elem.children().length===0){return false}if(e===r||e===-1){n=-1}else{n=e}t.unWrap();t.$userItems.eq(n).remove();t.setVars()}};e.fn.owlCarousel=function(t){return this.each(function(){if(e(this).data("owl-init")===true){return false}e(this).data("owl-init",true);var n=Object.create(i);n.init(t,this);e.data(this,"owlCarousel",n)})};e.fn.owlCarousel.options={items:4,itemsDesktop:[1199,3],itemsDesktopSmall:[979,2],itemsTablet:[768,1],itemsTabletSmall:false,itemsMobile:[479,1],singleItem:false,itemsScaleUp:false,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:false,stopOnHover:false,navigation:false,navigationText:["",""],rewindNav:true,scrollPerPage:false,pagination:true,paginationNumbers:false,responsive:true,responsiveRefreshRate:200,responsiveBaseWidth:t,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:false,lazyFollow:true,lazyEffect:"fade",autoHeight:false,jsonPath:false,jsonSuccess:false,dragBeforeAnimFinish:true,mouseDrag:true,touchDrag:true,addClassActive:false,transitionStyle:false,beforeUpdate:false,afterUpdate:false,beforeInit:false,afterInit:false,beforeMove:false,afterMove:false,afterAction:false,startDragging:false}})(jQuery,window,document)