'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){e>=t&&t>s&&(s=Number(t))}),n=t.extend({},this.options,i[s]),delete n.responsive,n.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+s)):n=t.extend({},this.options),(null===this.settings||this._breakpoint!==s)&&(this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},n.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length
").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={}},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed")},n.prototype.eventsCall=function(){this.e._onDragStart=t.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=t.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=t.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=t.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},n.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},n.prototype.internalEvents=function(){var i=(c(),d());this.settings.mouseDrag?(this.$stage.on("mousedown",t.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",t.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",t.proxy(this.onThrottledResize,this))},n.prototype.onDragStart=function(s){var n,r,a,h;if(n=s.originalEvent||s||e.event,3===n.which||this.state.isTouch)return!1;if("mousedown"===n.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,r=o(n).x,a=o(n).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)h=this.getTransformProperty(),this.drag.offsetX=h,this.animate(h),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=a-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=n.target||n.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",t.proxy(function(t){this.eventsRouter(t)},this))},n.prototype.onDragMove=function(t){var i,n,r,a,h,l;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,n=o(i).x,r=o(i).y,this.drag.currentX=n-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(a=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),h=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),l=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,a+l),h+l)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==s?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},n.prototype.onDragEnd=function(e){var s,n,o;if(this.state.isTouch){if("mouseup"===e.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),s=this.drag.endTime-this.drag.startTime,n=Math.abs(this.drag.distance),(n>3||s>300)&&this.removeClick(this.drag.targetEl),o=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(o),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(o)||this.transitionEnd(),this.drag.distance=0,t(i).off(".owl.dragEvents")}},n.prototype.removeClick=function(i){this.drag.targetEl=i,t(i).on("click.preventClick",this.e._preventClick),e.setTimeout(function(){t(i).off("click.preventClick")},300)},n.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},n.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},n.prototype.closest=function(e){var i=-1,s=30,n=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return e>r-s&&r+s>e?i=t:this.op(e,"<",r)&&this.op(e,">",o[t+1]||r-n)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?i=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(i=e=this.maximum())),i},n.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:e+"px"}):this.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(t){this._invalidated[t]=!0},n.prototype.reset=function(t){t=this.normalize(t),t!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(e,i){var n=i?this._items.length:this._items.length+this._clones.length;return!t.isNumeric(e)||1>n?s:e=this._clones.length?(e%n+n)%n:Math.max(this.minimum(i),Math.min(this.maximum(i),e))},n.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=0,o=this.settings;if(t)return this._items.length-1;if(!o.loop&&o.center)e=this._items.length-1;else if(o.loop||o.center)if(o.loop||o.center)e=this._items.length+o.items;else{if(!o.autoWidth&&!o.merge)throw"Can not detect maximum absolute position.";for(revert=o.rtl?1:-1,i=this.$stage.width()-this.$element.width();(s=this.coordinates(n))&&!(s*revert>=i);)e=++n}else e=this._items.length-o.items;return e},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2===0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i=null;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[e-1]||0,i)},n.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(i,s){if(this.settings.loop){var n=i-this.relative(this.current()),o=this.current(),r=this.current(),a=this.current()+n,h=0>r-a?!0:!1,l=this._clones.length+this._items.length;a
=l-this.settings.items&&h===!0&&(o=r-this._items.length,this.reset(o)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),o+n,s)),this.current(o+n),this.update()},this),30)}else this.speed(this.duration(this.current(),i,s)),this.current(i),this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.transitionEnd=function(t){return t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},n.prototype.viewport=function(){var s;if(this.options.responsiveBaseElement!==e)s=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)s=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";s=i.documentElement.clientWidth}return s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(t.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(t,e){e=e===s?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},n.prototype.remove=function(t){t=this.normalize(t,!0),t!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.addTriggerableEvents=function(){var e=t.proxy(function(e,i){return t.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},t.proxy(function(t,i){this.$element.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},n.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function s(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(s,this),500))},n.prototype.preloadAutoWidthImages=function(e){var i,s,n,o;i=0,s=this,e.each(function(r,a){n=t(a),o=new Image,o.onload=function(){i++,n.attr("src",o.src),n.css("opacity",1),i>=e.length&&(s.state.imagesLoaded=!0,s.initialize())},o.src=n.attr("src")||n.attr("data-src")||n.attr("data-src-retina")})},n.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&t(e).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var s in this._plugins)this._plugins[s].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),t(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:i>t;case">":return s?i>t:t>i;case">=":return s?i>=t:t>=i;case"<=":return s?t>=i:i>=t}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s){var n={item:{count:this._items.length,index:this.current()}},o=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),r=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},n,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.browserSupport=function(){if(this.support3d=l(),this.support3d){this.transformVendor=h();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[a()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each(function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new n(this,e))})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&e.property.value||this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);n++-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):(n=new Image,n.onload=t.proxy(function(){o.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(s){this._core=s,this._handlers={"initialized.owl.carousel":t.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers);var n=this;t(e).load(function(){n._core.settings.autoHeight&&n.update()})};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":t.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(s=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),s[3].indexOf("youtu")>-1)i="youtube";else{if(!(s[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var s,n,o,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),h="src",l="",c=this._core.settings,d=function(t){n='',s=c.lazyLoad?'':'',e.after(s),e.after(n)};return e.wrap('"),this._core.settings.lazyLoad&&(h="data-src",l="owl-lazy"),a.length?(d(a.attr(h)),a.remove(),!1):void("youtube"===i.type?(o="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",d(o)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,d(o)}}))},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},s.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var i,s,n=t(e.target||e.srcElement),o=n.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],a=r.width||"100%",h=r.height||this._core.$stage.height();"youtube"===r.type?i='':"vimeo"===r.type&&(i=''),o.addClass("owl-video-playing"),this._playing=o,s=t(''+i+"
"),n.after(s)},s.prototype.isInFullScreen=function(){var s=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return s&&t(s).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),s&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==e.orientation?(this._core.state.orientation=e.orientation,!1):!0},s.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),o&&n.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},s.prototype.play=function(){return i.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},s.prototype.stop=function(){e.clearInterval(this.interval)},s.prototype.pause=function(){e.clearInterval(this.interval)},s.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),s=this._core.minimum();t.data=t.property.value>i?e>=i?s:i:t.property.value").addClass(s.dotClass).append(t("")).prop("outerHTML")]),s.navContainer&&s.dotsContainer||(this._controls.$container=t("").addClass(s.controlsClass).appendTo(this.$element)),this._controls.$indicators=s.dotsContainer?t(s.dotsContainer):t("
").hide().addClass(s.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,s.dotsSpeed)},this)),e=s.navContainer?t(s.navContainer):t("
").addClass(s.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+s.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(s.navClass[0]).html(s.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(s.navSpeed)},this)),this._controls.$next.addClass(s.navClass[1]).html(s.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(s.navSpeed)},this));for(i in this._overrides)this._core[i]=t.proxy(this[i],this)},e.prototype.destroy=function(){var t,e,i,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,s=this._core.settings,n=this._core.clones().length/2,o=n+this._core.items().length,r=s.center||s.autoWidth||s.dotData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],t=n,e=0,i=0;o>t;t++)(e>=r||0===e)&&(this._pages.push({start:t-n,end:t-n+r-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,i,s="",n=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!n.nav||n.loop||n.navRewind||(this._controls.$previous.toggleClass("disabled",0>=o),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(n.nav),this._controls.$next.toggle(n.nav),n.dots){if(e=this._pages.length-this._controls.$indicators.children().length,n.dotData&&0!==e){for(i=0;i
0?(s=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(s)):0>e&&this._controls.$indicators.children().slice(e).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(n.dots)},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,s){var n;s?t.proxy(this._overrides.to,this._core)(e,i):(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(s){this._core=s,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[i]=e.content},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[t]&&i.index(this._hashes[t])||0;return t?void this._core.to(s,!1,!0):!1},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,s;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document);"use strict"; var Modal = base.Component.extend( { render: function() { return { 'aria-modal': true, className: 'modal ' + this.modalClassName, onState: [ 'displayed', { 'modal-visible': true } ], header: this.addHeader(), body: this.addBody() }; }, setupStates: function() { var self = this; return { displayed: { state: false, callBack: function(value) { if (value === true) { document.body.classList.add('modal-open'); self.createShadow(); } else { document.body.classList.remove('modal-open'); self.backdrop.destroy(); self.destroy(); } } } }; }, addEvents: function() { this.keyboardEvents(); }, keyboardEvents: function() { var self = this; var state = this.state; document.onkeydown = function(evt) { evt = evt || window.event; if (evt.keyCode == 27 && state.get('displayed')) { self.display(); } }; }, modalClassName: '', title: '', addHeader: function() { return ModalHeader({ title: this.title || null, callBack: base.bind(this, this.display) }); }, addBody: function() { return { role: 'dialog', className: 'body-container', children: this.addBodyContent() }; }, addBodyContent: function() { return []; }, addFooter: function() { var id = this.id; return { tag: 'footer', id: id + '_button_container', className: 'button-container', buttons: this.addFooterButtons() }; }, addFooterButton: function(id, className, label, callBack) { return { tag: 'button', className: 'bttn ' + className, textContent: label, onclick: callBack, id: (id) ? this.id + id : null }; }, addFooterButtons: function() { return [ this.addFooterButton('_button_1', 'bttn-red', 'Cancel', base.bind(this, this.decline)), this.addFooterButton('_button_2', 'bttn-green', 'Save', base.bind(this, this.accept)) ]; }, getTitle: function() { return 'Edit Panel'; }, setupHeaderOptions: function() { }, checkToClose: function() { this.decline(); }, createShadow: function() { this.backdrop = new Shadow({ callBack: base.bind(this, this.display) }); this.backdrop.setup(this.container); }, returnCallBack: function(data) { var callBack = this.callbackFunction; if(typeof callBack === 'function') { callBack(data); } }, removeAndCallBack: function(data) { this.returnCallBack(data); window.setTimeout(base.bind(this, this.display), 200); }, accept: function() { this.removeAndCallBack(); }, decline: function() { this.display(); }, display: function() { var state = this.state; state.set('displayed', !state.get('displayed')); }});if(navigator.userAgent.indexOf('MSIE')!==-1 || navigator.appVersion.indexOf('Trident/') > -1){ var ModalIE = Modal.extend( { modalClassName: 'ie-error', addBodyContent: function() { return { innerHTML: 'This browser is not supported due to security vulnerabilities. Please use a secure browser such as Chrome, Edge, or Firefox.' }; } }); var ieError = new ModalIE(); ieError.setup(document.body); ieError.display();}"use strict";var ConfirmModal = Modal.extend({ title: 'Confirm Submission', addBodyContent: function(e) { var self = this, name = this.name, success = this.success, failure = this.failure, data = this.data, form = this.form; return [ P({ className: 'success', innerHTML: success }), P({ className: 'failure', text: failure }), { className: 'page-form-confirm', children: [ P({ text: 'Just wanted to confirm you are ready to submit! Press \'confirm\' to continue.' }), { className: 'catch-secondary-btn transition center', text: 'Edit Form', click: function() { self.display(); } }, { className: 'catch-primary-btn transition center', text: 'Confirm', click: function(e) { jQuery.post(ajax_url, data, function(e) { if (e.match(/1/)) { self.panel.classList.add('form_success'); if(name && typeof _gaq !== 'undefined') { _gaq.push(['_trackEvent', 'Form Submission', name]); } } else if (e.match(/^alert:/)) { alert(e.replace(/^alert:/,'')); } else if (e.match(/(^\/\w+|http)/)) { window.location = e; } else { self.panel.classList.add('form_failure'); } }); return false; } } ] } ]; }});var bpApp={};(function(e){var h=base.Class,k=h.extend({constructor:function(){this.modules=[]},add:function(a){if("function"===typeof a){var b=new a;this.modules.push(b)}return b},mark:function(a){window.performance&&window.performance.mark(a)},setup:function(){this.mark("module-setup");for(var a,b=this.modules,c=0,d=b.length;c ul > li'); this.setupGroup(options); return { button: this.cache('backEle', Button( { className: 'bttn back', text: 'Back' })), children: this.groups }; }, setupGroup: function(options, level, parentGroup) { level = level || 0; var selected = false, group = this.addGroup(level, parentGroup); if(options) { for(var i = 0, maxLength = options.length; i < maxLength; i++) { var element = options[i]; if(!element) { continue; } var childSelected = false, childGroup = null, childOptions = this.getChildOptions(element); if(childOptions.length) { var result = this.setupGroup(childOptions, (level + 1), group); childSelected = result.selected; childGroup = result.group; } var option = this.setupOption(element, childGroup, childSelected); group.addOption(option); if(option.selected && selected !== true) { selected = true; } } } return { group: group, selected: selected }; }, addGroup: function(level, parentGroup) { var group = new Group( { level: level, parentGroup: parentGroup, options: [], selected: false }); this.groups.push(group); return group; }, setupOption: function(element, childGroup, childSelected) { var link = this.getLink(element); var url = link.attr('href'); var selected = childSelected || this.checkSelection(url); var label = link[0].textContent; return new Option( { element: element, child: childGroup, url: url, label: label, selected: selected, callBack: base.bind(this, this.selectGroup) }); }, getLink: function(element) { return jQuery(element).find(' > a'); }, getChildOptions: function(element) { return jQuery(element).find(' > .sub-menu > li'); }, afterSetup: function() { this.selectPrimaryGroup(); this.layoutGroups = null; }, selectGroup: function(group) { if(!group || typeof group !== 'object') { return false; } if(group.selected === true) { return false; } group.selected = true; this.selectGroupPanel(group); this.updateBackButton(group); this.lastSelectedGroup = group; }, selectPrimaryGroup: function() { var groups = this.groups, length = groups.length; if(length < 1) { return false; } var selected = groups[0]; this.selectGroup(selected); }, getAnimationClass: function(lastNum, currentNum) { var animation = { selecting: 'pull-right-in-transparent', removing: 'pull-left-transparent' }; if(lastNum === null) { animation.removing = 'no-change'; animation.selecting = 'no-change'; } else if(currentNum > lastNum) { animation.removing = 'pull-left-transparent'; animation.selecting = 'pull-right-in-transparent'; } else if(currentNum < lastNum) { animation.removing = 'pull-right-transparent'; animation.selecting = 'pull-left-in-transparent'; } return animation; }, getAniamtion: function(group) { var groupNumber = group.level; var lastOption = this.lastSelectedGroup, lastGroupNumber = (lastOption && typeof lastOption !== 'undefined')? lastOption.level: null; return this.getAnimationClass(lastGroupNumber, groupNumber); }, selectGroupPanel: function(group) { var animations = this.getAniamtion(group); var lastOption = this.lastSelectedGroup; var groups = this.groups; for(var i = 0, maxLength = groups.length; i < maxLength; i++) { var option = groups[i], panel = option.panel; if(!panel) { continue; } if(panel === group.panel) { panel.style.zIndex = 5; var animationClass = animations.selecting; bpApp.animate.show(panel, animationClass, 300); } else { if(option === lastOption) { panel.style.zIndex = 4; var animationClass = animations.removing; bpApp.animate.hide(panel, animationClass, 300); } else { panel.style.zIndex = 2; bpApp.animate.hide(panel, 'none', 0); } option.selected = false; } } }, updateBackButton: function(group) { var button = this.backEle; if(group && typeof group.parentGroup !== 'undefined') { button.onclick = base.createCallBack(this, this.selectGroup, [group.parentGroup]); button.style.opacity = '1'; } else { button.style.opacity = '0'; } }, getPageUrl: function(url) { var path = (url != undefined) ? url.split('/') : ''; var length = path.length - 1; var page = path[length]; if(page === '') { page = path[length - 1]; } return page; }, checkSelection: function(url) { var currentPage = this.currentPage; currentPage = currentPage.split('&')[0]; url = this.getPageUrl(url); if(currentPage === url) { return true; } else if(!currentPage && url == '') { return true; } else if(currentPage === 'blog-post' && url === 'blog') { return true; } else { return false; } }, getCurrentPage: function() { var path = window.location.pathname, page; var pattern = /\//g, pageSlashCount = path.match(pattern); if(pageSlashCount.length > 1) { var parts = path.split('/'), length = parts.length - 1; var end = parts[length]; if(end === '') { end = parts[length - 1]; } page = end; } else { page = path.substring(path.lastIndexOf("/") + 1); } return page.replace("/", ""); }, setupCurrentPage: function() { this.currentPage = this.getCurrentPage(); } }); function responsiveCheck(x) { if (x.matches) { if (!mobileNavbar) { return false; } var navHeight = mobileNavbar.offsetHeight; root.style.setProperty('--mobile-nav-height', navHeight + 'px'); var prevScrollpos = window.pageYOffset; window.onscroll = function() { var currentScrollPos = window.pageYOffset; if (navHeight < currentScrollPos && prevScrollpos < currentScrollPos) { mobileNavbar.classList.add('pull-up'); } else { mobileNavbar.classList.remove('pull-up'); } prevScrollpos = currentScrollPos; } } } var mobileNavbar = document.getElementById("mobile-navbar"); var root = document.documentElement; var x = window.matchMedia("(max-width: 1025px)"); x.addListener(responsiveCheck); responsiveCheck(x); var img = jQuery('#mobile-navbar picture img')[0]; img.onload = function() { responsiveCheck(x); }; bpApp.Navigation = Navigation; })(bpApp); (function(g){var f=base.Component,k=f.extend({render:function(){var a=this.option||{};return{tag:"figure",className:"single-slide","data-bg-src":this.addBg(),onState:this.setOnState(),image:this.addImage(a),section:this.addSection(a)}},setOnState:function(){return["selected",{active:!0,inactive:!1,lower:-1}]},addSection:function(a){return a.title||a.content?{tag:"figcaption",className:"content-container "+(a.className||""),h2:{tag:"h2",className:a.reviewerClassName||"title-text",text:a.title},content:{tag:"p",text:a.content}}:null},setupStates:function(){return{selected:!1,isSetup:{state:!1,callBack:base.bind(this,this.load)}}},getUrl:function(){var a=this.option;return a&&a.image?wpChildThemeUrl+this.defaultPathUrl+a.image:!1},addBg:function(){return this.setAsBg?this.getUrl():null},addImage:function(a){var b=this.getUrl();return!1===b||1==this.setAsBg?null:{className:"image-container",image:{tag:"img",src:wpParentThemeUrl+"/images/blank.gif","data-src":b,alt:a.alt}}},load:function(a){if(!0!==a)return!1;a=this.panel;var b=g.getImageExt()||"jpg",c=base.data(a,"bg-src");if(c)base.css(a,"background-image","url("+c+"."+b+")");else{var d=a.querySelector(".image-container > img");(c=base.data(d,"src"))&&window.setTimeout(function(){c+="."+b;base.attr(d,"src",c)},10)}},isSelected:function(){return!0===this.state.get("selected")},select:function(){this.state.set({selected:!0,isSetup:!0});var a=this.panel,b=this.animationIn;void 0===b&&(b="fadeIn");g.animate.show(a,b,1E3);this.crumb.select()},unselect:function(a){this.state.set("selected",!1);a=this.panel;var b=this.animationOut;void 0===b&&(b="fadeOut");g.animate.hide(a,b,1E3);this.crumb.unselect()},lower:function(){this.state.set("selected",-1)}}),m=k.extend({beforeSetup:function(){this.panel=this.element},afterSetup:function(){base.builder.onState(this.panel,this.setOnState(),this)},render:function(){this.container.appendChild(this.panel)},buildLayout:function(){this.render();base.DataTracker.add(this.panel,"components",{component:this});this.rendered=!0}}),n=f.extend({render:function(){return{tag:"li",className:"slide-tab"}},getPosition:function(a){var b={x:0,y:0};if(a&&"object"===typeof a)for(var c=2;0',click:base.bind(this,this.togglePlay)}},togglePlay:function(a){var b=this.parent;a.preventDefault();b.togglePlay()}}),q=f.extend({render:function(){return{tag:"li",className:"option","aria-label":"Slide "+(this.number+1),onState:["selected",{selected:!0}],innerHTML:this.content||null,click:base.bind(this,this.selectOption)}},setupStates:function(){return{selected:this.selected||!1}},useCallBack:function(){"function"===typeof this.callBack&&this.callBack(this.option)},select:function(){this.state.set("selected",!0)},unselect:function(){this.state.set("selected",!1)},selectOption:function(a){a.preventDefault();this.select();this.unselect();this.useCallBack()}});f=f.extend({duration:7E3,beforeSetup:function(){this.defaultPathUrl=this.defaultPathUrl||"";var a=a||0;this.onNumber="undefined"!==typeof a?a:0;this.setAsBg=this.setAsBg||!1;this.options=[];this.timer=null},afterSetup:function(){this.selectPrimaryOption();this.addSlideshow();this.startTimer();this.getHeight()},render:function(){this.setupOptions();return{className:"slide-container",tabindex:"0",onState:["playing",{playing:!0}],children:[this.addButton("arrow-left",base.bind(this,this.selectPreviousOption)),this.addButton("arrow-right",base.bind(this,this.selectNextOption)),this.cache("slideContainerEle",{className:"slides",children:this.options}),{tag:"ul",className:"number-crumb-container",slider:this.cache("slideTab",new n),children:this.setupCrumbs()}]}},addButton:function(a,b){return{tag:"a","aria-label":"arrow-left"===a?"Previous slide":"Next slide",className:"arrow "+a,click:b}},setupStates:function(){return{playing:!1,inView:!1}},setupEvents:function(){return[["keydown",document,base.bind(this,this.keyPress)]]},addSlideshow:function(){var a=this.container;if(!a)return!1;var b=a.parentNode;if(!b)return!1;b.appendChild(this.panel);b.removeChild(a)},getHeight:function(){for(var a=100,b=this.options,c=0,d=b.length;ca&&(a=e)}this.slideContainerEle.style.minHeight=a+"px"},keyPress:function(a){var b=g.elementInViewport(this.panel),c=document.getElementsByTagName("form").length;if(b&&!c&&!document.body.classList.contains("modal-open"))switch(a.keyCode){case 32:a.preventDefault();this.togglePlay();break;case 37:this.selectPreviousOption();break;case 39:this.selectNextOption()}},getSlides:function(){return this.container.querySelectorAll(".single-slide")},setupOptions:function(){var a=[],b=this.getSlides(),c=b.length;if(0=this.size.width},update:function(){this.getElements();this.resize();this.checkScroll();return this},updatePosition:function(a){var b=a.element;a.position=base.position(b,0);a.size=base.getSize(b)},updateOptionPositions:function(){for(var a=this.options,b=a.length,c=0;c=c?this.animate(e,l):g>=c&&g<=d&&this.animate(e,l)}}return this},phoneSize:600,animate:function(a,b){var c=a.element,d=a.animation;window.setTimeout(function(){base.addClass(c,d).addClass(c,"animated")},b||0);this.removeOption(a);return this},ticking:!1,scroll:function(a){if(!this.ticking){var b=this;n(function(){b.checkScroll(a);b.ticking=!1});this.ticking=!0}},setupEvents:function(){this.callBack=base.bind(this,this.checkScroll);var a=base.bind(this,this.scroll),b=base.bind(this,this.resize),c=window;this.addEvents=function(){base.on("scroll",c,a,!1);base.on("resize",c,b)};this.removeEvents=function(){base.off("scroll",c,a,!1);base.off("resize",c,b)};this.addEvents();return this}});m.lazyAnimator=p})(bpApp);"use strict";var ModalFormPanel = Modal.extend( { afterSetup: function() { BpFormValidator.monitor(jQuery(this.form.panel)); }, addBody: function() { return { className: 'body-container', children: [this.cache('form', this.addBodyContent())] }; }, decline: function() { var form = this.form; if(form) { form.reset(); var $form = jQuery(form); $form.removeClass('form_failure'); $form.find('input, select, textarea').each(function() { var $element = jQuery(this); $element.removeClass('success_val'); $element.removeClass('error_val'); }); } this.display(); }});"use strict";var practiceData = typeof practiceData !== 'undefined' ? practiceData : { name: null, enabled: false };var AppointmentFormv2 = Form.extend( { className: 'form-appointment-modal', formTitle: 'Appointment Request', addFormBody: function () { var id = this.getId('optional-message'); var formBody = [ Row({ children: [ Column({ columns: '6', children: FloatingInput({ name: 'First Name', label: 'First Name', placeholder: 'Jaime', required: true }) }), Column({ columns: '6', children: FloatingInput({ name: 'Last Name', label: 'Last Name', placeholder: 'Doe', required: true }) }) ] }), new PreferredContact, Row({ children: [ Column({ columns: '6', children: FloatingInput({ name: 'Date', label: 'Preferred Date', type: 'date', placeholder: 'mm/dd/yyyy', value: weekAway }) }), Column({ columns: '6', children: FloatingInput({ name: 'Time', label: 'Preferred Time', type: 'time', placeholder: '09:00 AM', value: '09:00' }) }) ] }), this.addLocations(), OptionalMessage({ id: id }), ]; if (practiceData && practiceData.enabled) { var privacyPolicyUrl = '/privacy-policy'; var consentLabel = practiceData.name ? `By checking this box I consent to receive text messages, calls, or emails from ${practiceData.name}. Check out our privacy policy.` : 'By checking this box I consent to receive text messages, calls, or emails. Check out our privacy policy.'; formBody.push(LabelCheckbox({ name: 'Contact Consent Opt-in', label: consentLabel, value: 'yes', id: 'Contact Consent Opt-in', required: true })); } formBody.push(this.addSubmit()); return formBody; }, addSubmit: function () { return { className: 'bp-submit-wrap', children: Button({ type: 'submit', className: 'send_button main-btn transition', text: this.submit }) }; }, getFormData: function (form) { var data = { action: 'form_submittion', data: form.serialize() }; return data; } });"use strict";var ModalAppointmentRequest = ModalFormPanel.extend({ modalClassName: 'appointment-request', title: 'Request an Appointment', addBodyContent: function() { return new AppointmentFormv2({ formType: 'Modal' }); }, afterSetup: function() { if (charlie.appCode === '' || !charlie.apptRequest) { BpFormValidator.monitor(jQuery(this.form.panel)); } }, });"use strict";var ReviewModel = base.Model.extend({ defaults: { rating: 5, publish: 0, should_review: 1, send_email: 1 }});var LeaveReviewForm = ModalFormPanel.extend({ beforeSetup: function() { this.data = new ReviewModel(); }, modalClassName: 'review-modal-updated', title: 'Leave a Review', addHiddenFields: function() { return { tag: 'input', type: 'text', name: 'URL', autocomplete: 'none', className: 'honey' }; }, addBodyContent: function() { return { tag: 'form', method: 'post', children: [ { tag: 'label', text: 'Display Name', children: this.addDataInput() }, { tag: 'label', text: 'Star Rating', children: this.addRatingContainer() }, { tag: 'label', text: 'Review', children: this.addDataReview() }, this.addHiddenFields(), { tag: 'button', className: 'main-btn transition', text: 'Submit Review', click: base.bind(this, this.accept) } ] }; }, accept: function() { this.request(); }, validate: function() { var data = this.data.get(); if (!data.url) { var review = data.review, reviewer = data.reviewer, msg = ''; if (!review) { msg += '- Please enter a review
'; } if (!reviewer) { msg += '- Please enter a display name'; } if (msg !== '') { this.addAlert('failure', msg); } else { return true; } } return false; }, request: function() { var $ = jQuery; if (this.validate()) { var data = this.data.get(); var params = { action: 'newStoreReview', review: base.prepareJsonUrl(data) }, ajaxurl = '/wp-admin/admin-ajax.php'; $.post(ajaxurl, params, base.bind(this, this.requestResponse)); } }, requestResponse: function(response) { this.addAlert('success', response); this.form.reset(); }, addAlert: function(type, msg) { var alertPanel = new AlertPanel({ type: type, msg: msg }); alertPanel.setup(this.alertContainer); }, addRatingContainer: function() { var layout = { className: 'stars-container', children: [] }; var ratings = 5, self = this; for (var i = ratings; i > 0; i--) { var number = i, id = 'ratingStar' + number, starInput = { tag: 'input', type: 'radio', id: id, name: 'modal-rating', value: number, checked: (number === 5), change: function() { self.data.set('rating', this.value) } }, starLabel = { tag: 'label', 'aria-label': number + ' stars', for: id, innerHTML: '' }; layout.children.push(starInput); layout.children.push(starLabel); } return layout; }, addDataInput: function() { return { tag: 'input', type: 'text', autocomplete: 'off', className: 'name-reviewer val', bind: 'reviewer', required: true, placeholder: 'John D.' }; }, addDataReview: function() { return { tag: 'textarea', name: 'review', autocomplete: 'off', className: 'review-message val', bind: 'review', required: true, placeholder: 'What did you think?' }; }, getTitle: function() { return 'Leave a Review'; }});var AlertPanel = base.Component.extend({ render: function() { return { className: this.getPanelClass(), innerHTML: this.msg }; }, getPanelClass: function() { return this.type === 'success' ? 'saveSuccess' : 'saveFailure'; }, msgTimeOut: function (fade) { var self = this; window.setTimeout(function() { bpApp.animate.hide(self.panel, 'fadeOut', 500, function() { self.destroy(); } ); }, fade); }});(function (bpApp, global) { "use strict"; var container = jQuery('#nav-scroll-container')[0], appNav = new bpApp.Navigation(); appNav.setup(container); var addModule = function (module) { return bpApp.addModule(module) }; var stickHeader = function () { var ele = jQuery('#sticky-header')[0]; if (!ele) { return !1 } var height = 400, heightElement = jQuery('#sticky-scroll-height'); if (heightElement[0]) { height = heightElement.height() } new bpApp.scrollHeader(ele, 'sticky', height) }; var desktopNav = function () { var ele = jQuery('.headerarea nav.main-nav-container')[0]; if (!ele) { return !1 } ele.setAttribute('aria-label', 'desktop navigation') }; var updateViewport = function () { var viewport = jQuery('meta[name="viewport"]'); if (!viewport) { return !1 } viewport = viewport[0]; viewport.setAttribute('content', "width=device-width, initial-scale=1, maximum-scale=5") }; addModule({ navHidden: !0, setup: function () { stickHeader(); desktopNav(); updateViewport(); this.addEvents() }, addEvents: function () { var self = this; var button = jQuery('#main-nav-toggle'); button.on('click', function () { self.toggleNav(); document.body.classList.toggle('menu-open') }) }, toggleNav: function () { var header = jQuery('.top-banner-row'), button = jQuery('#main-nav-toggle'), nav = jQuery('#main-nav-container'), footBar = jQuery('.bottom-bar'), address = jQuery('.bottom-bar.inner'); if (this.navHidden === !0) { this.navHidden = !1; header.addClass('opened nav-d'); nav.addClass('open'); button.addClass('nav-close'); footBar.addClass('nav-d'); if (jQuery(global).width() < 767) { address.css({ 'bottom': '60px', 'position': 'fixed' }) } else { address.css('position', 'fixed') } appNav.selectPrimaryGroup() } else { this.navHidden = !0; header.removeClass('opened nav-d'); nav.removeClass('open'); button.removeClass('nav-close'); footBar.removeClass('nav-d'); address.css({ 'position': 'relative', 'bottom': '0px' }) } } }); var bpSlideShow = addModule({ create: function (type, options) { type = type || 'controller'; switch (type) { case 'controller': this.controller(options); break; case 'office': this.office(options); break; case 'reviews': this.reviews(options); break } }, controller: function (slideOptions) { var container = jQuery('#slides')[0]; if (!container) { return !1 } var options = container.querySelectorAll('.single-slide'); var startNumber = this.getStart(options); var slideAnimationIn = this.tryProp(slideOptions, 'animationIn') || 'fadeIn'; var slideAnimationOut = this.tryProp(slideOptions, 'animationOut') || 'fadeOut'; var slideTimer = this.tryProp(slideOptions, 'duration') || 7000; var spotlight = new bpApp.SlideController({ onNumber: startNumber, defaultPathUrl: '', duration: slideTimer, animationIn: slideAnimationIn, animationOut: slideAnimationOut }); spotlight.setup(container) }, tryProp: function (options, property) { if (!options) { return } return options[property] }, getStart: function (options) { return Math.round(Math.random() * (options.length - 1)) }, createSlideShow: function (container, path, bg, options, duration) { container = jQuery('#' + container)[0]; duration = duration || 7000; var startNumber = this.getStart(options); var slideShow = new bpApp.SlideShow({ onNumber: startNumber, defaultPathUrl: path, slides: options, setAsBg: bg, duration: 7000 }); slideShow.setup(container); return slideShow }, addSlide: function (image, alt, title, content, className, url, crumbContent) { return { title: title, content: content, className: className, image: image, alt: alt, url: url, crumbContent: crumbContent } }, office: function (options, id) { id = id || 'tour'; this.createSlideShow(id, '/images/slideshow/', !1, options) }, reviews: function (options) { this.createSlideShow('reviews', '', !1, options) } }); var convertReviews = function (options) { if (!options) { return !1 } for (var i = 0, length = options.length; i < length; i++) { var option = options[i]; option.title = option.reviewer; option.className = 'reviews-section'; option.reviewerClassName = 'patient-name' } return options }; var _slideShow = bpSlideShow; global.DefaultSlider = function (options) { _slideShow.create('controller', options) }; global.OfficeSlider = function (options, id) { _slideShow.office(options, id) }; global.ReviewSlider = function (options) { options = convertReviews(options); _slideShow.create('reviews', options) }; addModule({ setup: function () { this.navModals(); this.externalLinks(); this.setupModals(); this.setupVideos() }, navModals: function () { var navModalItem = jQuery('li.data-modal a'); if (navModalItem.length === 0) { return !1 } navModalItem.each(function () { var self = jQuery(this); var navModalLink = self.attr('href').replace('#', ''); self.attr('data-modal', navModalLink); self.removeAttr('href'); self.attr('tabindex', 0) }) }, setupModals: function () { var attrName = 'data-modal', self = this; jQuery('[' + attrName + ']').each(function (index, element) { element = jQuery(element); element.attr('tabindex', 0); element.attr('role', 'button'); element.attr('aria-haspopup', !0); var modalName = element.attr(attrName); if (!modalName) { return !1 } element.attr('data-cta-name', modalName.toLowerCase()); element.on('click', function () { var modalClass = global[modalName]; if (!modalClass) { return !1 } bpApp.GA4Tracking('opened_modal'); var modal = new modalClass(); modal.setup(document.body); modal.display() }) }) }, setupVideos: function (attrName) { attrName = attrName || 'data-video-src'; var self = this; jQuery('[' + attrName + ']').each(function (index, element) { element = jQuery(element); var src = element.attr('data-video-src'); if (!src) { return !1 } element.on('click', function () { self.view(src) }) }) }, view: function (src) { var panel = new VideoPanel({ src: src }); panel.setup(document.body); panel.display() }, externalLinks: function () { var attrName = 'target', self = this; jQuery('[' + attrName + ']').each(function (index, element) { element = jQuery(element); element.append('') }) } }); bpApp.createBackgroundVideo = function (container, src) { return new bpApp.BackgroundVideo(container, src) }; addModule({ setup: function () { var IframeLoader = base.Class.extend({ heightAdded: !1, constructor: function (element) { this.element = element; if (element) { this.setup() } }, setup: function () { this.addEvents(); var self = this; setTimeout(function () { if (!self.heightAdded) { self.setHeight() } }, 2500) }, setHeight: function () { var iFrame = this.element; var doc = iFrame.contentDocument ? iFrame.contentDocument : iFrame.contentWindow.document; var height = 100; if (charlie.iframeHeight) { height = doc.body.scrollHeight + parseInt(charlie.iframeHeight) } else { height = doc.body.scrollHeight + 100 } if (height < 100) { height = 100 } iFrame.height = height }, addEvents: function () { var self = this; jQuery(this.element).on('load', function () { self.setHeight(); self.heightAdded = !0 }) } }); var iframes = document.querySelectorAll(".services-iframe"), length = iframes.length; for (var i = 0; i < length; i++) { new IframeLoader(iframes[i]) } } }); bpApp.exceptions = ['tab-description', 'tab-additional_information']; bpApp.addException = function (exception) { this.exceptions.push(exception) }; bpApp.imgExt = null; bpApp.getImageExt = function () { return (nextGenImages) ? 'webp' : 'jpg' }; bpApp.GA4Tracking = function (event) { event = event.replace(/ /g, "_").toLowerCase(); if (typeof gtag === 'function') { gtag('event', event) } }; addModule({ setup: function () { this.telTracking(); this.setupFancyBox(); this.setupAutoScroll(); this.loadDeferredImages(); this.lazyLoadViewport() }, telTracking: function () { jQuery("a[href^='tel:']").click(function () { bpApp.GA4Tracking('Click to Call') }) }, setupFancyBox: function () { if (!jQuery.fancybox) { return } jQuery(".pics").fancybox({ openEffect: 'elastic', closeEffect: 'elastic', helpers: { overlay: { locked: !1 } } }) }, setupAutoScroll: function () { var exceptions = bpApp.exceptions; var pattern = /^\//; jQuery('a[href*="#"]:not([href="#"])').click(function () { if (location.pathname.replace(pattern, '') === this.pathname.replace(pattern, '') && location.hostname === this.hostname) { var hash = this.hash.slice(1), index = jQuery.inArray(hash, exceptions); if (index === -1) { var target = jQuery(this.hash); target = target.length ? target : jQuery('[id=' + hash + ']'); if (target.length) { jQuery('html,body').animate({ scrollTop: target.offset().top }, 800); return !1 } } } }) }, loadDeferredImages: function () { var loadWebp = (nextGenImages === !0), ext = bpApp.getImageExt(); jQuery('body').addClass('loaded'); jQuery('img[data-src]').each(function (i, ele) { this.loading = "lazy"; var $ele = jQuery(this), src; if (loadWebp) { var dataSrc = String($ele.data('src')), fileExt = /\.jpg|\.png/ig; src = dataSrc.indexOf('.svg') !== -1 ? dataSrc : (dataSrc.replace(fileExt, '') + '.webp') } else { src = $ele.data('src') } ele.src = src }) }, lazyLoadViewport: function () { var att = 'data-map-src', maps = [].slice.call(document.querySelectorAll('iframe[' + att + ']')), active = !1; function lazyLoad() { maps.forEach(function (map) { map.loading = "lazy"; map.title = "Google Map"; bpApp.elementInViewport(map, function () { map.src = map.getAttribute(att); maps = maps.filter(function (iframe) { return iframe !== map }); if (maps.length === 0) { document.removeEventListener("scroll", lazyLoad); global.removeEventListener("resize", lazyLoad); global.removeEventListener("orientationchange", lazyLoad) } jQuery('.map-overlay').fadeOut() }) }) } document.addEventListener("scroll", lazyLoad, { passive: !0 }); global.addEventListener("resize", lazyLoad, { passive: !0 }); global.addEventListener("orientationchange", lazyLoad, { passive: !0 }) } })})(bpApp, window);