ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/public_html/lilyexpresslive/js/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/public_html/lilyexpresslive/js/core.min.js |
!function(o){"use strict";o.fn.menumaker=function(t){var e=o(this),i=o.extend({format:"dropdown",sticky:!1},t);return this.each(function(){o(this).find(".navbar-toggler").on("click",function(){o(this).toggleClass("menu-opened");var t=o(this).next("ul");t.hasClass("open")?t.slideToggle().removeClass("open"):(t.slideToggle().addClass("open"),"dropdown"===i.format&&t.find("ul").show())}),e.find(".navbar-nav li ul").parent().addClass("has-sub"),e.find(".navbar-nav li ul li").parent().addClass("sub-menu");"multitoggle"===i.format?(e.find(".has-sub").prepend('<span class="submenu-button"></span>'),e.find(".navbar-nav > li.has-sub > .submenu-button").on("click",function(){o(this).next(".sub-menu").slideToggle(),o(this).siblings("ul").addClass("open").slideToggle(),o(this).parents(".navbar-nav > li.has-sub").toggleClass("active").siblings(".has-sub").children(".sub-menu").slideUp().removeClass("open").parents("li").removeClass("active")}),e.find(".sub-menu > li.has-sub > .submenu-button").on("click",function(){o(this).next(".sub-menu").slideToggle(),o(this).siblings("ul").addClass("open").slideToggle(),o(this).parents(".sub-menu > li").toggleClass("active").siblings(".has-sub").children(".sub-menu").slideUp().removeClass("open").parents("li").removeClass("active"),o(this).siblings("ul").hasClass("open")&&o(this).parents("li").eq(1).addClass("active")})):e.addClass("dropdown"),!0===i.sticky&&e.css("position","fixed");function t(){991<o(window).width()&&e.find("ul").show()}return t(),o(window).on("resize",t)})},o(document).ready(function(){o("nav").menumaker({format:"multitoggle"});var t=window.location.pathname.split("/"),e=window.location.pathname,e=0<t[t.length-1].length?t[t.length-1]:t[t.length-2];o(".navbar-nav li").find('a[href="'+e+'"]').closest("li").addClass("active").parents().eq(1).addClass("current"),o(".navbar-nav li.has-sub ul li").find('a[href="'+e+'"]').parents().eq(4).addClass("current")}),o(".navbar-default .attr-nav").each(function(){o("li.search > a",this).on("click",function(t){t.preventDefault(),o(".top-search").slideToggle()})}),o(".input-group-addon.close-search").on("click",function(){o(".top-search").slideUp()})}(jQuery),jQuery(document).ready(function(r){var a=2500,n=3800,l=n-3e3,s=50,d=150,c=500,u=c+800,h=600,o=1500;function p(t){var e,i,o=g(t);t.parents(".cd-headline").hasClass("type")?((e=t.parent(".cd-words-wrapper")).addClass("selected").removeClass("waiting"),setTimeout(function(){e.removeClass("selected"),t.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")},c),setTimeout(function(){f(o,d)},u)):t.parents(".cd-headline").hasClass("letters")?(i=t.children("i").length>=o.children("i").length,function t(e,i,o,s){e.removeClass("in").addClass("out");e.is(":last-child")?o&&setTimeout(function(){p(g(i))},a):setTimeout(function(){t(e.next(),i,o,s)},s);{var n;e.is(":last-child")&&r("html").hasClass("no-csstransitions")&&(n=g(i),y(i,n))}}(t.find("i").eq(0),t,i,s),m(o.find("i").eq(0),o,i,s)):t.parents(".cd-headline").hasClass("clip")?t.parents(".cd-words-wrapper").animate({width:"2px"},h,function(){y(t,o),f(o)}):t.parents(".cd-headline").hasClass("loading-bar")?(t.parents(".cd-words-wrapper").removeClass("is-loading"),y(t,o),setTimeout(function(){p(o)},n),setTimeout(function(){t.parents(".cd-words-wrapper").addClass("is-loading")},l)):(y(t,o),setTimeout(function(){p(o)},a))}function f(t,e){t.parents(".cd-headline").hasClass("type")?(m(t.find("i").eq(0),t,!1,e),t.addClass("is-visible").removeClass("is-hidden")):t.parents(".cd-headline").hasClass("clip")&&t.parents(".cd-words-wrapper").animate({width:t.width()+10},h,function(){setTimeout(function(){p(t)},o)})}function m(t,e,i,o){t.addClass("in").removeClass("out"),t.is(":last-child")?(e.parents(".cd-headline").hasClass("type")&&setTimeout(function(){e.parents(".cd-words-wrapper").addClass("waiting")},200),i||setTimeout(function(){p(e)},a)):setTimeout(function(){m(t.next(),e,i,o)},o)}function g(t){return t.is(":last-child")?t.parent().children().eq(0):t.next()}function y(t,e){t.removeClass("is-visible").addClass("is-hidden"),e.removeClass("is-hidden").addClass("is-visible")}r(".cd-headline.letters").find("b").each(function(){var t=r(this),e=t.text().split(""),o=t.hasClass("is-visible");for(i in e)0<t.parents(".rotate-2").length&&(e[i]="<em>"+e[i]+"</em>"),e[i]=o?'<i class="in">'+e[i]+"</i>":"<i>"+e[i]+"</i>";var s=e.join("");t.html(s).css("opacity",1)}),function(t){var s=a;t.each(function(){var t,e,i,o=r(this);o.hasClass("loading-bar")?(s=n,setTimeout(function(){o.find(".cd-words-wrapper").addClass("is-loading")},l)):o.hasClass("clip")?(e=(t=o.find(".cd-words-wrapper")).width()+10,t.css("width",e)):o.hasClass("type")||(e=o.find(".cd-words-wrapper b"),i=0,e.each(function(){var t=r(this).width();i<t&&(i=t)}),o.find(".cd-words-wrapper").css("width",i)),setTimeout(function(){p(o.find(".is-visible").eq(0))},s)})}(r(".cd-headline"))}),function(l,i,o,a){function d(t,e){this.settings=null,this.options=l.extend({},d.Defaults,e),this.$element=l(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(t,e){this._handlers[e]=l.proxy(this[e],this)},this)),l.each(d.Plugins,l.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(d.Workers,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}d.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},d.Width={Default:"default",Inner:"inner",Outer:"outer"},d.Type={Event:"event",State:"state"},d.Plugins={},d.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,o=this.settings.rtl,e={width:"auto","margin-left":o?e:"","margin-right":o?"":e};i||this.$stage.children().css(e),t.css=e}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,o=this._items.length,s=!this.settings.autoWidth,n=[];for(t.items={merge:!1,width:e};o--;)i=this._mergers[o],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,n[o]=s?e*i:this._items[o].width();this._widths=n}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,o=Math.max(2*i.items,4),s=2*Math.ceil(e.length/2),n=i.loop&&e.length?i.rewind?o:Math.max(o,s):0,r="",a="";for(n/=2;0<n;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,--n;this._clones=t,l(r).addClass("cloned").appendTo(this.$stage),l(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t,e,i=this.settings.rtl?1:-1,o=this._clones.length+this._items.length,s=-1,n=[];++s<o;)t=n[s-1]||0,e=this._widths[this.relative(s)]+this.settings.margin,n.push(t+e*i);this._coordinates=n}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,t={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(t)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,o=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],o.eq(e).css(t.css);else i&&(t.css.width=t.items.width,o.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,e,i=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,s=this.coordinates(this.current())+o,n=s+this.width()*i,r=[],a=0,l=this._coordinates.length;a<l;a++)t=this._coordinates[a-1]||0,e=Math.abs(this._coordinates[a])+o*i,(this.op(t,"<=",s)&&this.op(t,">",n)||this.op(e,"<",s)&&this.op(e,">",n))&&r.push(a);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+r.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],d.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},d.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},d.prototype.initialize=function(){var t,e;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,e=this.$element.children(e).width(),t.length&&e<=0&&this.preloadAutoWidthImages(t)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},d.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},d.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,o=null;t?(l.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(o=l.extend({},this.options,t[i])).stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):o=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},d.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},d.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},d.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),o={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(o),t++;this._invalidated={},this.is("valid")||this.enter("valid")},d.prototype.width=function(t){switch(t=t||d.Width.Default){case d.Width.Inner:case d.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},d.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},d.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},d.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},d.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},d.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=l.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(l.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),l(o).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(o).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));l(o).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},d.prototype.onDragMove=function(t){var e,i=null,o=null,s=this.difference(this._drag.pointer,this.pointer(t)),n=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(i=this.coordinates(this.minimum()),o=this.coordinates(this.maximum()+1)-i,n.x=((n.x-i)%o+o)%o+i):(i=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),o=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),e=this.settings.pullDrag?-1*s.x/5:0,n.x=Math.max(Math.min(n.x,i+e),o+e)),this._drag.stage.current=n,this.animate(n.x))},d.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,t=0<e.x^this.settings.rtl?"left":"right";l(o).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?t:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=t,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},d.prototype.closest=function(i,o){var s=-1,n=this.width(),r=this.coordinates();return this.settings.freeDrag||l.each(r,l.proxy(function(t,e){return"left"===o&&e-30<i&&i<e+30?s=t:"right"===o&&e-n-30<i&&i<e-n+30?s=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]!==a?r[t+1]:e-n)&&(s="left"===o?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},d.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},d.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},d.prototype.current=function(t){return t===a?this._current:0===this._items.length?a:(t=this.normalize(t),this._current!==t&&((e=this.trigger("change",{property:{name:"position",value:t}})).data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})),this._current);var e},d.prototype.invalidate=function(t){return"string"===l.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),l.map(this._invalidated,function(t,e){return e})},d.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},d.prototype.normalize=function(t,e){var i=this._items.length,e=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=a:(t<0||i+e<=t)&&(t=((t-e/2)%i+i)%i+e/2),t},d.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},d.prototype.maximum=function(t){var e,i,o,s=this.settings,n=this._coordinates.length;if(s.loop)n=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){if(e=this._items.length)for(i=this._items[--e].width(),o=this.$element.width();e--&&!(o<(i+=this._items[e].width()+this.settings.margin)););n=e+1}else n=s.center?this._items.length-1:this._items.length-s.items;return t&&(n-=this._clones.length/2),Math.max(n,0)},d.prototype.minimum=function(t){return t?0:this._clones.length/2},d.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},d.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},d.prototype.clones=function(i){function o(t){return t%2==0?s+t/2:e-(t+1)/2}var e=this._clones.length/2,s=e+this._items.length;return i===a?l.map(this._clones,function(t,e){return o(e)}):l.map(this._clones,function(t,e){return t===i?o(e):null})},d.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},d.prototype.coordinates=function(t){var e,i=1,o=t-1;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,o=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[o]||0))/2*i):e=this._coordinates[o]||0,e=Math.ceil(e))},d.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},d.prototype.to=function(t,e){var i,o=this.current(),s=t-this.relative(o),n=(0<s)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*n*r),(i=(((t=o+s)-a)%r+r)%r+a)!==t&&i-s<=l&&0<i-s&&(o=i-s,t=i,this.reset(o))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(a,Math.min(l,t)),this.speed(this.duration(o,t,e)),this.current(t),this.isVisible()&&this.update()},d.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},d.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},d.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},d.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==i?t=l(this.options.responsiveBaseElement).width():i.innerWidth?t=i.innerWidth:o.documentElement&&o.documentElement.clientWidth?t=o.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},d.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},d.prototype.add=function(t,e){var i=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:l(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},d.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(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}))},d.prototype.preloadAutoWidthImages=function(t){t.each(l.proxy(function(t,e){this.enter("pre-loading"),e=l(e),l(new Image).one("load",l.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},d.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(o).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},d.prototype.op=function(t,e,i){var o=this.settings.rtl;switch(e){case"<":return o?i<t:t<i;case">":return o?t<i:i<t;case">=":return o?t<=i:i<=t;case"<=":return o?i<=t:t<=i}},d.prototype.on=function(t,e,i,o){t.addEventListener?t.addEventListener(e,i,o):t.attachEvent&&t.attachEvent("on"+e,i)},d.prototype.off=function(t,e,i,o){t.removeEventListener?t.removeEventListener(e,i,o):t.detachEvent&&t.detachEvent("on"+e,i)},d.prototype.trigger=function(t,e,i,o,s){var n={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},n,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:d.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},d.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},d.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},d.prototype.register=function(i){var e;i.type===d.Type.Event?(l.event.special[i.name]||(l.event.special[i.name]={}),l.event.special[i.name].owl||(e=l.event.special[i.name]._default,l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},l.event.special[i.name].owl=!0)):i.type===d.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=l.grep(this._states.tags[i.name],l.proxy(function(t,e){return l.inArray(t,this._states.tags[i.name])===e},this)))},d.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},d.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},d.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},d.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},d.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},l.fn.owlCarousel=function(e){var o=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=l(this),i=t.data("owl.carousel");i||(i=new d(this,"object"==typeof e&&e),t.data("owl.carousel",i),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:d.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",l.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,o)})},l.fn.owlCarousel.Constructor=d}(window.Zepto||window.jQuery,window,document),function(e,i){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(a,s){var e=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,o=e.center&&-1*i||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+o,n=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(s-=e.lazyLoadEager,i++));o++<i;)this.load(n/2+this._core.relative(s)),n&&a.each(this._core.clones(this._core.relative(s)),r),s++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(t){var e=this._core.$stage.children().eq(t),t=e&&e.find(".owl-lazy");!t||-1<a.inArray(e.get(0),this._loaded)||(t.each(a.proxy(function(t,e){var i=a(e),o=1<s.devicePixelRatio&&i.attr("data-src-retina")||i.attr("data-src")||i.attr("data-srcset");this._core.trigger("load",{element:i,url:o},"lazy"),i.is("img")?i.one("load.owl.lazy",a.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:o},"lazy")},this)).attr("src",o):i.is("source")?i.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:i,url:o},"lazy")},this)).attr("srcset",o):((e=new Image).onload=a.proxy(function(){i.css({"background-image":'url("'+o+'")',opacity:"1"}),this._core.trigger("loaded",{element:i,url:o},"lazy")},this),e.src=o)},this)),this._loaded.push(e.get(0)))},e.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)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(s,i){var o=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":s.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=s.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;s(i).on("load",function(){e._core.settings.autoHeight&&e.update()}),s(i).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,t=this._core.$stage.children().toArray().slice(t,e),o=[],e=0;s.each(t,function(t,e){o.push(s(e).height())}),(e=Math.max.apply(null,o))<=1&&i&&this._previousHeight&&(e=this._previousHeight),this._previousHeight=e,this._core.$stage.parent().height(e).addClass(this._core.settings.autoHeightClass)},o.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)},s.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(c,e){var i=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":c.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":c.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":c.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":c.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":c.proxy(function(t){var e;!t.namespace||(e=c(t.content).find(".owl-video")).length&&(e.css("display","none"),this.fetch(e,c(t.content)))},this)},this._core.options=c.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",c.proxy(function(t){this.play(t)},this))};i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",o=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,n=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(o=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<o[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<o[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}o=o[6],this._videos[r]={type:i,id:o,width:s,height:n},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},i.prototype.thumbnail=function(e,t){function i(t){o=d.lazyLoad?c("<div/>",{class:"owl-video-tn "+l,srcType:t}):c("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(o),e.after('<div class="owl-video-play-icon"></div>')}var o,s,n=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",r=e.find("img"),a="src",l="",d=this._core.settings;if(e.wrap(c("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return i(r.attr(a)),r.remove(),!1;"youtube"===t.type?(s="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(s)):"vimeo"===t.type?c.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,i(s)}}):"vzaar"===t.type&&c.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,i(s)}})},i.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,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},i.prototype.play=function(t){var e=c(t.target).closest("."+this._core.settings.itemClass),i=this._videos[e.attr("data-video")],o=i.width||"100%",s=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),(t=c('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",s),t.attr("width",o),"youtube"===i.type?t.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?t.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&t.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),c(t).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},i.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")},i.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,(window,document)),function(r){var e=function(t){this.core=t,this.core.options=r.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){var t,e,i,o,s,n;1===this.core.settings.items&&r.support.animation&&r.support.transition&&(this.core.speed(0),e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,n=this.core.settings.animateOut,this.core.current()!==this.previous&&(n&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(n)),s&&o.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(s)))},e.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.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)},r.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(o,s,e){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":o.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":o.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":o.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":o.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":o.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":o.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":o.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=o.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=s.setTimeout(o.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=s.setTimeout(o.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},o.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(s){"use strict";var e=function(t){this._core=t,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":s.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+s(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":s.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":s.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":s.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=s.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?s(i.navContainer):s("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=s("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",s.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=s("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",s.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[s('<button role="button">').addClass(i.dotClass).append(s("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?s(i.dotsContainer):s("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",s.proxy(function(t){var e=(s(t.target).parent().is(this._controls.$absolute)?s(t.target):s(t.target).parent()).index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=s.proxy(this[t],this)},e.prototype.destroy=function(){var t,e,i,o,s=this._core.settings;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&s.navContainer?this._controls[e].html(""):this._controls[e].remove();for(o in this.overides)this._core[o]=this._overrides[o];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,o=i+this._core.items().length,s=this._core.maximum(!0),n=this._core.settings,r=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=i,e=0;t<o;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var t=this._core.settings,e=this._core.items().length<=t.items,i=this._core.relative(this._core.current()),o=t.loop||t.rewind;this._controls.$relative.toggleClass("disabled",!t.nav||e),t.nav&&(this._controls.$previous.toggleClass("disabled",!o&&i<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&i>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!t.dots||e),t.dots&&(e=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!=e?this._controls.$absolute.html(this._templates.join("")):0<e?this._controls.$absolute.append(new Array(1+e).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(s.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:s.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var i=this._core.relative(this._core.current());return s.grep(this._pages,s.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},e.prototype.getPosition=function(t){var e,i,o=this._core.settings;return"page"==o.slideBy?(e=s.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=o.slideBy:e-=o.slideBy),e},e.prototype.next=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){s.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){!i&&this._pages.length?(i=this._pages.length,s.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,e)):s.proxy(this._overrides.to,this._core)(t,e)},s.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,(window,document)),function(o,s){"use strict";var e=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":o.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&o(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":o.proxy(function(t){var e;!t.namespace||(e=o(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[e]=t.content)},this),"changed.owl.carousel":o.proxy(function(t){var i;t.namespace&&"position"===t.property.name&&(i=this._core.items(this._core.relative(this._core.current())),(t=o.map(this._hashes,function(t,e){return t===i?e:null}).join())&&s.location.hash.slice(1)!==t&&(s.location.hash=t))},this)},this._core.options=o.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),o(s).on("hashchange.owl.navigation",o.proxy(function(t){var e=s.location.hash.substring(1),i=this._core.$stage.children(),e=this._hashes[e]&&i.index(this._hashes[e]);void 0!==e&&e!==this._core.current()&&this._core.to(this._core.relative(e),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in o(s).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},o.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(s,n){var r=s("<support>").get(0).style,a="Webkit Moz O ms".split(" "),t={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},e=function(){return!!l("transform")},i=function(){return!!l("perspective")},o=function(){return!!l("animation")};function l(t,i){var o=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return s.each((t+" "+a.join(e+" ")+e).split(" "),function(t,e){if(r[e]!==n)return o=!i||e,!1}),o}function d(t){return l(t,!0)}!function(){return!!l("transition")}()||(s.support.transition=new String(d("transition")),s.support.transition.end=t.transition.end[s.support.transition]),o()&&(s.support.animation=new String(d("animation")),s.support.animation.end=t.animation.end[s.support.animation]),e()&&(s.support.transform=new String(d("transform")),s.support.transform3d=i())}(window.Zepto||window.jQuery,(window,void document)),function(i){var o={};function s(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}s.m=i,s.c=o,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)s.d(i,o,function(t){return e[t]}.bind(null,o));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=11)}([,,function(t,e,i){"use strict";t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&t.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}},,function(e,t,i){"use strict";(function(t){t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};e.exports=t}).call(this,i(5))},function(t,e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){return this}();try{s=s||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(s=window)}t.exports=s},,,,,,function(t,e,i){t.exports=i(12)},function(t,e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=a(i(2)),n=i(4),r=a(i(13));function a(t){return t&&t.__esModule?t:{default:t}}var l,d=n.window.jarallax;n.window.jarallax=r.default,n.window.jarallax.noConflict=function(){return n.window.jarallax=d,this},void 0!==n.jQuery&&((i=function(){var t=arguments||[];Array.prototype.unshift.call(t,this);t=r.default.apply(n.window,t);return"object"!==(void 0===t?"undefined":o(t))?t:this}).constructor=r.default.constructor,l=n.jQuery.fn.jarallax,n.jQuery.fn.jarallax=i,n.jQuery.fn.jarallax.noConflict=function(){return n.jQuery.fn.jarallax=l,this}),(0,s.default)(function(){(0,r.default)(document.querySelectorAll("[data-jarallax]"))})},function(t,z,A){"use strict";(function(t){Object.defineProperty(z,"__esModule",{value:!0});var a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],o=!0,s=!1,n=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,n=t}finally{try{!o&&a.return&&a.return()}finally{if(s)throw n}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function e(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(A(2)),o=n(A(14)),s=A(4);function n(t){return t&&t.__esModule?t:{default:t}}var d=-1<navigator.userAgent.indexOf("MSIE ")||-1<navigator.userAgent.indexOf("Trident/")||-1<navigator.userAgent.indexOf("Edge/"),r=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),c=function(){for(var t="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div"),i=0;i<t.length;i++)if(e&&void 0!==e.style[t[i]])return t[i];return!1}(),u=void 0,f=void 0,m=void 0,h=void 0,p=!1,g=!1;function y(t){f=s.window.innerWidth||document.documentElement.clientWidth,m=r?(!u&&document.body&&((u=document.createElement("div")).style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(u)),(u?u.clientHeight:0)||s.window.innerHeight||document.documentElement.clientHeight):s.window.innerHeight||document.documentElement.clientHeight,"object"!==(void 0===t?"undefined":l(t))||"load"!==t.type&&"dom-loaded"!==t.type||(p=!0)}y(),s.window.addEventListener("resize",y),s.window.addEventListener("orientationchange",y),s.window.addEventListener("load",y),(0,i.default)(function(){y({type:"dom-loaded"})});var v=[],w=!1;function b(){var e,i;v.length&&(h=void 0!==s.window.pageYOffset?s.window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,e=p||!w||w.width!==f||w.height!==m,i=g||e||!w||w.y!==h,g=p=!1,(e||i)&&(v.forEach(function(t){e&&t.onResize(),i&&t.onScroll()}),w={width:f,height:m,y:h}),(0,o.default)(b))}var x,_,$,C=!!t.ResizeObserver&&new t.ResizeObserver(function(t){t&&t.length&&(0,o.default)(function(){t.forEach(function(t){t.target&&t.target.jarallax&&(p||t.target.jarallax.onResize(),g=!0)})})}),T=0,S=(x=k,(_=[{key:"css",value:function(e,i){return"string"==typeof i?s.window.getComputedStyle(e).getPropertyValue(i):(i.transform&&c&&(i[c]=i.transform),Object.keys(i).forEach(function(t){e.style[t]=i[t]}),e)}},{key:"extend",value:function(i){var o=arguments;return i=i||{},Object.keys(arguments).forEach(function(e){o[e]&&Object.keys(o[e]).forEach(function(t){i[t]=o[e][t]})}),i}},{key:"getWindowData",value:function(){return{width:f,height:m,y:h}}},{key:"initImg",value:function(){var t=this,e=t.options.imgElement;return e&&"string"==typeof e&&(e=t.$item.querySelector(e)),e instanceof Element||(e=null),e&&(t.options.keepImg?t.image.$item=e.cloneNode(!0):(t.image.$item=e,t.image.$itemParent=e.parentNode),t.image.useImgTag=!0),!(!t.image.$item&&(null===t.image.src&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.image.bgImage=t.css(t.$item,"background-image")),!t.image.bgImage||"none"===t.image.bgImage))}},{key:"canInitParallax",value:function(){return c&&!this.options.disableParallax()}},{key:"init",value:function(){var t,e,i=this,o={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},s={};if(i.options.keepImg||((t=i.$item.getAttribute("style"))&&i.$item.setAttribute("data-jarallax-original-styles",t),i.image.useImgTag&&(e=i.image.$item.getAttribute("style"))&&i.image.$item.setAttribute("data-jarallax-original-styles",e)),"static"===i.css(i.$item,"position")&&i.css(i.$item,{position:"relative"}),"auto"===i.css(i.$item,"z-index")&&i.css(i.$item,{zIndex:0}),i.image.$container=document.createElement("div"),i.css(i.image.$container,o),i.css(i.image.$container,{"z-index":i.options.zIndex}),d&&i.css(i.image.$container,{opacity:.9999}),i.image.$container.setAttribute("id","jarallax-container-"+i.instanceID),i.$item.appendChild(i.image.$container),i.image.useImgTag?s=i.extend({"object-fit":i.options.imgSize,"object-position":i.options.imgPosition,"font-family":"object-fit: "+i.options.imgSize+"; object-position: "+i.options.imgPosition+";","max-width":"none"},o,s):(i.image.$item=document.createElement("div"),i.image.src&&(s=i.extend({"background-position":i.options.imgPosition,"background-size":i.options.imgSize,"background-repeat":i.options.imgRepeat,"background-image":i.image.bgImage||'url("'+i.image.src+'")'},o,s))),"opacity"!==i.options.type&&"scale"!==i.options.type&&"scale-opacity"!==i.options.type&&1!==i.options.speed||(i.image.position="absolute"),"fixed"===i.image.position)for(var n=0,r=i.$item;null!==r&&r!==document&&0===n;){var a=i.css(r,"-webkit-transform")||i.css(r,"-moz-transform")||i.css(r,"transform");a&&"none"!==a&&(n=1,i.image.position="absolute"),r=r.parentNode}s.position=i.image.position,i.css(i.image.$item,s),i.image.$container.appendChild(i.image.$item),i.onResize(),i.onScroll(!0),i.options.automaticResize&&C&&C.observe(i.$item),i.options.onInit&&i.options.onInit.call(i),"none"!==i.css(i.$item,"background-image")&&i.css(i.$item,{"background-image":"none"}),i.addToParallaxList()}},{key:"addToParallaxList",value:function(){v.push(this),1===v.length&&b()}},{key:"removeFromParallaxList",value:function(){var i=this;v.forEach(function(t,e){t.instanceID===i.instanceID&&v.splice(e,1)})}},{key:"destroy",value:function(){var t=this;t.removeFromParallaxList();var e,i=t.$item.getAttribute("data-jarallax-original-styles");t.$item.removeAttribute("data-jarallax-original-styles"),i?t.$item.setAttribute("style",i):t.$item.removeAttribute("style"),t.image.useImgTag&&(e=t.image.$item.getAttribute("data-jarallax-original-styles"),t.image.$item.removeAttribute("data-jarallax-original-styles"),e?t.image.$item.setAttribute("style",i):t.image.$item.removeAttribute("style"),t.image.$itemParent&&t.image.$itemParent.appendChild(t.image.$item)),t.$clipStyles&&t.$clipStyles.parentNode.removeChild(t.$clipStyles),t.image.$container&&t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax}},{key:"clipContainer",value:function(){var t,e,i;"fixed"===this.image.position&&(e=(i=(t=this).image.$container.getBoundingClientRect()).width,i=i.height,t.$clipStyles||(t.$clipStyles=document.createElement("style"),t.$clipStyles.setAttribute("type","text/css"),t.$clipStyles.setAttribute("id","jarallax-clip-"+t.instanceID),(document.head||document.getElementsByTagName("head")[0]).appendChild(t.$clipStyles)),i="#jarallax-container-"+t.instanceID+" {\n clip: rect(0 "+e+"px "+i+"px 0);\n clip: rect(0, "+e+"px, "+i+"px, 0);\n }",t.$clipStyles.styleSheet?t.$clipStyles.styleSheet.cssText=i:t.$clipStyles.innerHTML=i)}},{key:"coverImage",value:function(){var t,e=this,i=e.image.$container.getBoundingClientRect(),o=i.height,s=e.options.speed,n="scroll"===e.options.type||"scroll-opacity"===e.options.type,r=0,a=o;return n&&(s<0?(r=s*Math.max(o,m),m<o&&(r-=s*(o-m))):r=s*(o+m),1<s?a=Math.abs(r-m):s<0?a=r/s+Math.abs(r):a+=(m-o)*(1-s),r/=2),e.parallaxScrollDistance=r,t=n?(m-a)/2:(o-a)/2,e.css(e.image.$item,{height:a+"px",marginTop:t+"px",left:"fixed"===e.image.position?i.left+"px":"0",width:i.width+"px"}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:a,marginTop:t},container:i}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(t){var e,i,o,s,n,r,a,l=this,d=l.$item.getBoundingClientRect(),c=d.top,u=d.height,h={},p=d;l.options.elementInViewport&&(p=l.options.elementInViewport.getBoundingClientRect()),l.isElementInViewport=0<=p.bottom&&0<=p.right&&p.top<=m&&p.left<=f,(t||l.isElementInViewport)&&(e=Math.max(0,c),i=Math.max(0,u+c),o=Math.max(0,-c),s=Math.max(0,c+u-m),n=Math.max(0,u-(c+u-m)),r=Math.max(0,-c+m-u),p=1-2*(m-c)/(m+u),t=1,u<m?t=1-(o||s)/u:i<=m?t=i/m:n<=m&&(t=n/m),"opacity"!==l.options.type&&"scale-opacity"!==l.options.type&&"scroll-opacity"!==l.options.type||(h.transform="translate3d(0,0,0)",h.opacity=t),"scale"!==l.options.type&&"scale-opacity"!==l.options.type||(a=1,l.options.speed<0?a-=l.options.speed*t:a+=l.options.speed*(1-t),h.transform="scale("+a+") translate3d(0,0,0)"),"scroll"!==l.options.type&&"scroll-opacity"!==l.options.type||(a=l.parallaxScrollDistance*p,"absolute"===l.image.position&&(a-=c),h.transform="translate3d(0,"+a+"px,0)"),l.css(l.image.$item,h),l.options.onScroll&&l.options.onScroll.call(l,{section:d,beforeTop:e,beforeTopEnd:i,afterTop:o,beforeBottom:s,beforeBottomEnd:n,afterBottom:r,visiblePercent:t,fromViewportCenter:p}))}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&e(x.prototype,_),$&&e(x,$),k);function k(t,e){!function(t){if(!(t instanceof k))throw new TypeError("Cannot call a class as a function")}(this);var i=this;i.instanceID=T++,i.$item=t,i.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,automaticResize:!0,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var o,s,n=i.$item.dataset||{},r={};Object.keys(n).forEach(function(t){var e=t.substr(0,1).toLowerCase()+t.substr(1);e&&void 0!==i.defaults[e]&&(r[e]=n[t])}),i.options=i.extend({},i.defaults,r,e),i.pureOptions=i.extend({},i.options),Object.keys(i.options).forEach(function(t){"true"===i.options[t]?i.options[t]=!0:"false"===i.options[t]&&(i.options[t]=!1)}),i.options.speed=Math.min(2,Math.max(-1,parseFloat(i.options.speed))),"string"==typeof i.options.disableParallax&&(i.options.disableParallax=new RegExp(i.options.disableParallax)),i.options.disableParallax instanceof RegExp&&(o=i.options.disableParallax,i.options.disableParallax=function(){return o.test(navigator.userAgent)}),"function"!=typeof i.options.disableParallax&&(i.options.disableParallax=function(){return!1}),"string"==typeof i.options.disableVideo&&(i.options.disableVideo=new RegExp(i.options.disableVideo)),i.options.disableVideo instanceof RegExp&&(s=i.options.disableVideo,i.options.disableVideo=function(){return s.test(navigator.userAgent)}),"function"!=typeof i.options.disableVideo&&(i.options.disableVideo=function(){return!1});e=i.options.elementInViewport;e&&"object"===(void 0===e?"undefined":l(e))&&void 0!==e.length&&(e=a(e,1)[0]),e instanceof Element||(e=null),i.options.elementInViewport=e,i.image={src:i.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(navigator.userAgent)?"absolute":"fixed"},i.initImg()&&i.canInitParallax()&&i.init()}function E(t,e){("object"===("undefined"==typeof HTMLElement?"undefined":l(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":l(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);for(var i=e,o=Array.prototype.slice.call(arguments,2),s=t.length,n=0,r=void 0;n<s;n++)if("object"===(void 0===i?"undefined":l(i))||void 0===i?t[n].jarallax||(t[n].jarallax=new S(t[n],i)):t[n].jarallax&&(r=t[n].jarallax[i].apply(t[n].jarallax,o)),void 0!==r)return r;return t}E.constructor=S,z.default=E}).call(this,A(5))},function(t,e,i){"use strict";var o=i(15),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var e=+new Date,i=Math.max(0,16-(e-n)),i=setTimeout(t,i);return n=e,i},n=+new Date,i=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),i=i.bind(o)),(t.exports=s).cancel=i},function(e,t,i){"use strict";(function(t){t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};e.exports=t}).call(this,i(5))}]),function(i){var o={};function s(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}s.m=i,s.c=o,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)s.d(i,o,function(t){return e[t]}.bind(null,o));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=6)}([,,function(t,e,i){"use strict";t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&t.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}},,function(e,t,i){"use strict";(function(t){t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};e.exports=t}).call(this,i(5))},function(t,e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){return this}();try{s=s||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(s=window)}t.exports=s},function(t,e,i){t.exports=i(7)},function(t,e,i){"use strict";var o=r(i(8)),s=r(i(4)),n=r(i(2)),i=r(i(10));function r(t){return t&&t.__esModule?t:{default:t}}s.default.VideoWorker=s.default.VideoWorker||o.default,(0,i.default)(),(0,n.default)(function(){"undefined"!=typeof jarallax&&jarallax(document.querySelectorAll("[data-jarallax-video]"))})},function(t,e,i){"use strict";t.exports=i(9)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t};function n(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function r(){this._done=[],this._fail=[]}r.prototype={execute:function(t,e){var i=t.length;for(e=Array.prototype.slice.call(e);i--;)t[i].apply(null,e)},resolve:function(){this.execute(this._done,arguments)},reject:function(){this.execute(this._fail,arguments)},done:function(t){this._done.push(t)},fail:function(t){this._fail.push(t)}};var a=0,l=0,d=0,c=0,u=0,h=new r,p=new r,s=(s(f,[{key:"extend",value:function(i){var o=arguments;return i=i||{},Object.keys(arguments).forEach(function(e){o[e]&&Object.keys(o[e]).forEach(function(t){i[t]=o[e][t]})}),i}},{key:"parseURL",value:function(t){var e,i,o,s,n,r=!(!(e=(e=t).match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/))||11!==e[1].length)&&e[1],a=!(!(i=(i=t).match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/))||!i[3])&&i[3],l=(o=(o=t).split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),s={},n=0,o.forEach(function(t){t=t.match(/^(mp4|webm|ogv|ogg)\:(.*)/);t&&t[1]&&t[2]&&(s["ogv"===t[1]?"ogg":t[1]]=t[2],n=1)}),!!n&&s);return r?(this.type="youtube",r):a?(this.type="vimeo",a):!!l&&(this.type="local",l)}},{key:"isValid",value:function(){return!!this.videoID}},{key:"on",value:function(t,e){this.userEventsList=this.userEventsList||[],(this.userEventsList[t]||(this.userEventsList[t]=[])).push(e)}},{key:"off",value:function(i,o){var s=this;this.userEventsList&&this.userEventsList[i]&&(o?this.userEventsList[i].forEach(function(t,e){t===o&&(s.userEventsList[i][e]=!1)}):delete this.userEventsList[i])}},{key:"fire",value:function(t){var e=this,i=[].slice.call(arguments,1);this.userEventsList&&void 0!==this.userEventsList[t]&&this.userEventsList[t].forEach(function(t){t&&t.apply(e,i)})}},{key:"play",value:function(t){var e=this;e.player&&("youtube"===e.type&&e.player.playVideo&&(void 0!==t&&e.player.seekTo(t||0),YT.PlayerState.PLAYING!==e.player.getPlayerState()&&e.player.playVideo()),"vimeo"===e.type&&(void 0!==t&&e.player.setCurrentTime(t),e.player.getPaused().then(function(t){t&&e.player.play()})),"local"===e.type&&(void 0!==t&&(e.player.currentTime=t),e.player.paused&&e.player.play()))}},{key:"pause",value:function(){var e=this;e.player&&("youtube"===e.type&&e.player.pauseVideo&&YT.PlayerState.PLAYING===e.player.getPlayerState()&&e.player.pauseVideo(),"vimeo"===e.type&&e.player.getPaused().then(function(t){t||e.player.pause()}),"local"===e.type&&(e.player.paused||e.player.pause()))}},{key:"mute",value:function(){var t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.mute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(0),"local"===t.type&&(t.$video.muted=!0))}},{key:"unmute",value:function(){var t=this;t.player&&("youtube"===t.type&&t.player.mute&&t.player.unMute(),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(t.options.volume),"local"===t.type&&(t.$video.muted=!1))}},{key:"setVolume",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=this;e.player&&t&&("youtube"===e.type&&e.player.setVolume&&e.player.setVolume(t),"vimeo"===e.type&&e.player.setVolume&&e.player.setVolume(t),"local"===e.type&&(e.$video.volume=t/100))}},{key:"getVolume",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.getVolume&&e(t.player.getVolume()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then(function(t){e(t)}),"local"===t.type&&e(100*t.$video.volume)):e(!1)}},{key:"getMuted",value:function(e){var t=this;t.player?("youtube"===t.type&&t.player.isMuted&&e(t.player.isMuted()),"vimeo"===t.type&&t.player.getVolume&&t.player.getVolume().then(function(t){e(!!t)}),"local"===t.type&&e(t.$video.muted)):e(null)}},{key:"getImageURL",value:function(e){var t,i,o,s=this;s.videoImage?e(s.videoImage):("youtube"===s.type&&(t=["maxresdefault","sddefault","hqdefault","0"],i=0,(o=new Image).onload=function(){120!==(this.naturalWidth||this.width)||i===t.length-1?(s.videoImage="https://img.youtube.com/vi/"+s.videoID+"/"+t[i]+".jpg",e(s.videoImage)):(i++,this.src="https://img.youtube.com/vi/"+s.videoID+"/"+t[i]+".jpg")},o.src="https://img.youtube.com/vi/"+s.videoID+"/"+t[i]+".jpg"),"vimeo"===s.type&&((o=new XMLHttpRequest).open("GET","https://vimeo.com/api/v2/video/"+s.videoID+".json",!0),o.onreadystatechange=function(){var t;4===this.readyState&&200<=this.status&&this.status<400&&(t=JSON.parse(this.responseText),s.videoImage=t[0].thumbnail_large,e(s.videoImage))},o.send(),o=null))}},{key:"getIframe",value:function(t){this.getVideo(t)}},{key:"getVideo",value:function(l){var d=this;d.$video?l(d.$video):d.onAPIready(function(){var e,i,t,o,s,n,r,a=void 0;d.$video||((a=document.createElement("div")).style.display="none"),"youtube"===d.type&&(d.playerOptions={},d.playerOptions.videoId=d.videoID,d.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},d.options.showContols||(d.playerOptions.playerVars.iv_load_policy=3,d.playerOptions.playerVars.modestbranding=1,d.playerOptions.playerVars.controls=0,d.playerOptions.playerVars.showinfo=0,d.playerOptions.playerVars.disablekb=1),i=e=void 0,d.playerOptions.events={onReady:function(e){d.options.mute?e.target.mute():d.options.volume&&e.target.setVolume(d.options.volume),d.options.autoplay&&d.play(d.options.startTime),d.fire("ready",e),d.options.loop&&!d.options.endTime&&(d.options.endTime=d.player.getDuration()-.1),setInterval(function(){d.getVolume(function(t){d.options.volume!==t&&(d.options.volume=t,d.fire("volumechange",e))})},150)},onStateChange:function(t){d.options.loop&&t.data===YT.PlayerState.ENDED&&d.play(d.options.startTime),e||t.data!==YT.PlayerState.PLAYING||(e=1,d.fire("started",t)),t.data===YT.PlayerState.PLAYING&&d.fire("play",t),t.data===YT.PlayerState.PAUSED&&d.fire("pause",t),t.data===YT.PlayerState.ENDED&&d.fire("ended",t),t.data===YT.PlayerState.PLAYING?i=setInterval(function(){d.fire("timeupdate",t),d.options.endTime&&d.player.getCurrentTime()>=d.options.endTime&&(d.options.loop?d.play(d.options.startTime):d.pause())},150):clearInterval(i)}},(t=!d.$video)&&((o=document.createElement("div")).setAttribute("id",d.playerID),a.appendChild(o),document.body.appendChild(a)),d.player=d.player||new window.YT.Player(d.playerID,d.playerOptions),t&&(d.$video=document.getElementById(d.playerID),d.videoWidth=parseInt(d.$video.getAttribute("width"),10)||1280,d.videoHeight=parseInt(d.$video.getAttribute("height"),10)||720)),"vimeo"===d.type&&(d.playerOptions={id:d.videoID,autopause:0,transparent:0,autoplay:d.options.autoplay?1:0,loop:d.options.loop?1:0,muted:d.options.mute?1:0},d.options.volume&&(d.playerOptions.volume=d.options.volume),d.options.showContols||(d.playerOptions.badge=0,d.playerOptions.byline=0,d.playerOptions.portrait=0,d.playerOptions.title=0),d.$video||(s="",Object.keys(d.playerOptions).forEach(function(t){""!==s&&(s+="&"),s+=t+"="+encodeURIComponent(d.playerOptions[t])}),d.$video=document.createElement("iframe"),d.$video.setAttribute("id",d.playerID),d.$video.setAttribute("src","https://player.vimeo.com/video/"+d.videoID+"?"+s),d.$video.setAttribute("frameborder","0"),d.$video.setAttribute("mozallowfullscreen",""),d.$video.setAttribute("allowfullscreen",""),a.appendChild(d.$video),document.body.appendChild(a)),d.player=d.player||new Vimeo.Player(d.$video,d.playerOptions),d.options.startTime&&d.options.autoplay&&d.player.setCurrentTime(d.options.startTime),d.player.getVideoWidth().then(function(t){d.videoWidth=t||1280}),d.player.getVideoHeight().then(function(t){d.videoHeight=t||720}),n=void 0,d.player.on("timeupdate",function(t){n||(d.fire("started",t),n=1),d.fire("timeupdate",t),d.options.endTime&&d.options.endTime&&t.seconds>=d.options.endTime&&(d.options.loop?d.play(d.options.startTime):d.pause())}),d.player.on("play",function(t){d.fire("play",t),d.options.startTime&&0===t.seconds&&d.play(d.options.startTime)}),d.player.on("pause",function(t){d.fire("pause",t)}),d.player.on("ended",function(t){d.fire("ended",t)}),d.player.on("loaded",function(t){d.fire("ready",t)}),d.player.on("volumechange",function(t){d.fire("volumechange",t)})),"local"===d.type&&(d.$video||(d.$video=document.createElement("video"),d.options.showContols&&(d.$video.controls=!0),d.options.mute?d.$video.muted=!0:d.$video.volume&&(d.$video.volume=d.options.volume/100),d.options.loop&&(d.$video.loop=!0),d.$video.setAttribute("playsinline",""),d.$video.setAttribute("webkit-playsinline",""),d.$video.setAttribute("id",d.playerID),a.appendChild(d.$video),document.body.appendChild(a),Object.keys(d.videoID).forEach(function(t){var e,i,o;e=d.$video,i=d.videoID[t],o="video/"+t,(t=document.createElement("source")).src=i,t.type=o,e.appendChild(t)})),d.player=d.player||d.$video,r=void 0,d.player.addEventListener("playing",function(t){r||d.fire("started",t),r=1}),d.player.addEventListener("timeupdate",function(t){d.fire("timeupdate",t),d.options.endTime&&d.options.endTime&&this.currentTime>=d.options.endTime&&(d.options.loop?d.play(d.options.startTime):d.pause())}),d.player.addEventListener("play",function(t){d.fire("play",t)}),d.player.addEventListener("pause",function(t){d.fire("pause",t)}),d.player.addEventListener("ended",function(t){d.fire("ended",t)}),d.player.addEventListener("loadedmetadata",function(){d.videoWidth=this.videoWidth||1280,d.videoHeight=this.videoHeight||720,d.fire("ready"),d.options.autoplay&&d.play(d.options.startTime)}),d.player.addEventListener("volumechange",function(t){d.getVolume(function(t){d.options.volume=t}),d.fire("volumechange",t)})),l(d.$video)})}},{key:"init",value:function(){this.playerID="VideoWorker-"+this.ID}},{key:"loadAPI",value:function(){var t,e,i;l&&d||(t="","youtube"!==this.type||l||(l=1,t="https://www.youtube.com/iframe_api"),"vimeo"!==this.type||d||(d=1,t="https://player.vimeo.com/api/player.js"),t&&(e=document.createElement("script"),i=document.getElementsByTagName("head")[0],e.src=t,i.appendChild(e),e=i=null))}},{key:"onAPIready",value:function(t){var e;"youtube"===this.type&&("undefined"!=typeof YT&&0!==YT.loaded||c?"object"===("undefined"==typeof YT?"undefined":o(YT))&&1===YT.loaded?t():h.done(function(){t()}):(c=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,h.resolve("done"),t()})),"vimeo"===this.type&&("undefined"!=typeof Vimeo||u?"undefined"!=typeof Vimeo?t():p.done(function(){t()}):(u=1,e=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(e),p.resolve("done"),t())},20))),"local"===this.type&&t()}}]),f);function f(t,e){!function(t){if(!(t instanceof f))throw new TypeError("Cannot call a class as a function")}(this);var i=this;i.url=t,i.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showContols:!0,startTime:0,endTime:0},i.options=i.extend({},i.options_default,e),i.videoID=i.parseURL(t),i.videoID&&(i.ID=a++,i.loadAPI(),i.init())}e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r.default.jarallax;if(void 0===t)return;var t=t.constructor,e=t.prototype.onScroll;t.prototype.onScroll=function(){var i=this;e.apply(i),i.isVideoInserted||!i.video||i.options.videoLazyLoading&&!i.isElementInViewport||i.options.disableVideo()||(i.isVideoInserted=!0,i.video.getVideo(function(t){var e=t.parentNode;i.css(t,{position:i.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),i.$video=t,i.image.$container.appendChild(t),e.parentNode.removeChild(e)}))};var a=t.prototype.coverImage;t.prototype.coverImage=function(){var t,e,i,o,s=this,n=a.apply(s),r=!!s.image.$item&&s.image.$item.nodeName;return n&&s.video&&r&&("IFRAME"===r||"VIDEO"===r)&&(e=(t=n.image.height)*s.image.width/s.image.height,i=(n.container.width-e)/2,o=n.image.marginTop,n.container.width>e&&(t=(e=n.container.width)*s.image.height/s.image.width,i=0,o+=(n.image.height-t)/2),"IFRAME"===r&&(t+=400,o-=200),s.css(s.$video,{width:e+"px",marginLeft:i+"px",height:t+"px",marginTop:o+"px"})),n};var i=t.prototype.initImg;t.prototype.initImg=function(){var t=this,e=i.apply(t);return t.options.videoSrc||(t.options.videoSrc=t.$item.getAttribute("data-jarallax-video")||null),t.options.videoSrc?(t.defaultInitImgResult=e,!0):e};var o=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var i=this,t=o.apply(i);if(!i.options.videoSrc)return t;var e=new n.default(i.options.videoSrc,{autoplay:!0,loop:i.options.videoLoop,showContols:!1,startTime:i.options.videoStartTime||0,endTime:i.options.videoEndTime||0,mute:i.options.videoVolume?0:1,volume:i.options.videoVolume||0});if(e.isValid())if(t){if(e.on("ready",function(){var t;i.options.videoPlayOnlyVisible?(t=i.onScroll,i.onScroll=function(){t.apply(i),!i.options.videoLoop&&(i.options.videoLoop||i.videoEnded)||(i.isVisible()?e.play():e.pause())}):e.play()}),e.on("started",function(){i.image.$default_item=i.image.$item,i.image.$item=i.$video,i.image.width=i.video.videoWidth||1280,i.image.height=i.video.videoHeight||720,i.coverImage(),i.clipContainer(),i.onScroll(),i.image.$default_item&&(i.image.$default_item.style.display="none")}),e.on("ended",function(){i.videoEnded=!0,i.options.videoLoop||i.image.$default_item&&(i.image.$item=i.image.$default_item,i.image.$item.style.display="block",i.coverImage(),i.clipContainer(),i.onScroll())}),i.video=e,!i.defaultInitImgResult)return i.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"===e.type||(e.getImageURL(function(t){i.image.bgImage='url("'+t+'")',i.init()}),!1)}else i.defaultInitImgResult||e.getImageURL(function(t){var e=i.$item.getAttribute("style");e&&i.$item.setAttribute("data-jarallax-original-styles",e),i.css(i.$item,{"background-image":'url("'+t+'")',"background-position":"center","background-size":"cover"})});return t};var s=t.prototype.destroy;t.prototype.destroy=function(){var t=this;t.image.$default_item&&(t.image.$item=t.image.$default_item,delete t.image.$default_item),s.apply(t)}};var n=o(i(8)),r=o(i(4));function o(t){return t&&t.__esModule?t:{default:t}}}]),function(i){"use strict";i.fn.counterUp=function(t){var e=i.extend({time:400,delay:10},t);return this.each(function(){var l=i(this),d=e;l.waypoint(function(){for(var t=[],e=d.time/d.delay,i=l.text(),o=/[0-9]+,[0-9]+/.test(i),i=i.replace(/,/g,""),s=(/^[0-9]+$/.test(i),/^[0-9]+\.[0-9]+$/.test(i)),n=s?(i.split(".")[1]||[]).length:0,r=e;1<=r;r--){var a=parseInt(i/e*r);if(s&&(a=parseFloat(i/e*r).toFixed(n)),o)for(;/(\d+)(\d{3})/.test(a.toString());)a=a.toString().replace(/(\d+)(\d{3})/,"$1,$2");t.unshift(a)}l.data("counterup-nums",t),l.text("0");l.data("counterup-func",function(){l.text(l.data("counterup-nums").shift()),l.data("counterup-nums").length?setTimeout(l.data("counterup-func"),d.delay):(l.data("counterup-nums"),l.data("counterup-nums",null),l.data("counterup-func",null))}),setTimeout(l.data("counterup-func"),d.delay),this.destroy()},{offset:"100%"})})}}(jQuery),function(f,s,t,m){function o(t,e){this.element=t,this.options=f.extend({},i,e),this._defaults=i,this._name=n,this.init()}var n="stellar",i={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(t){t.hide()},showElement:function(t){t.show()}},a={scroll:{getLeft:function(t){return t.scrollLeft()},setLeft:function(t,e){t.scrollLeft(e)},getTop:function(t){return t.scrollTop()},setTop:function(t,e){t.scrollTop(e)}},position:{getLeft:function(t){return-1*parseInt(t.css("left"),10)},getTop:function(t){return-1*parseInt(t.css("top"),10)}},margin:{getLeft:function(t){return-1*parseInt(t.css("margin-left"),10)},getTop:function(t){return-1*parseInt(t.css("margin-top"),10)}},transform:{getLeft:function(t){t=getComputedStyle(t[0])[r];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(t){t=getComputedStyle(t[0])[r];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[5],10):0}}},l={position:{setLeft:function(t,e){t.css("left",e)},setTop:function(t,e){t.css("top",e)}},transform:{setPosition:function(t,e,i,o,s){t[0].style[r]="translate3d("+(e-i)+"px, "+(o-s)+"px, 0)"}}},r=function(){var t,e=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=f("script")[0].style,o="";for(t in i)if(e.test(t)){o=t.match(e)[0];break}return"WebkitOpacity"in i&&(o="Webkit"),"KhtmlOpacity"in i&&(o="Khtml"),function(t){return o+(0<o.length?t.charAt(0).toUpperCase()+t.slice(1):t)}}()("transform"),e=f("<div />",{style:"background:#fff"}).css("background-position-x")!==m,g=e?function(t,e,i){t.css({"background-position-x":e,"background-position-y":i})}:function(t,e,i){t.css("background-position",e+" "+i)},y=e?function(t){return[t.css("background-position-x"),t.css("background-position-y")]}:function(t){return t.css("background-position").split(" ")},d=s.requestAnimationFrame||s.webkitRequestAnimationFrame||s.mozRequestAnimationFrame||s.oRequestAnimationFrame||s.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)};o.prototype={init:function(){this.options.name=n+"_"+Math.floor(1e9*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===t.body&&(this.element=s),this.$scrollElement=f(this.element),this.$element=this.element===s?f("body"):this.$scrollElement,this.$viewportElement=this.options.viewportElement!==m?f(this.options.viewportElement):this.$scrollElement[0]===s||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var t=this,e=a[t.options.scrollProperty];this._getScrollLeft=function(){return e.getLeft(t.$scrollElement)},this._getScrollTop=function(){return e.getTop(t.$scrollElement)}},_defineSetters:function(){var n=this,t=a[n.options.scrollProperty],r=l[n.options.positionProperty],e=t.setLeft,i=t.setTop;this._setScrollLeft="function"==typeof e?function(t){e(n.$scrollElement,t)}:f.noop,this._setScrollTop="function"==typeof i?function(t){i(n.$scrollElement,t)}:f.noop,this._setPosition=r.setPosition||function(t,e,i,o,s){n.options.horizontalScrolling&&r.setLeft(t,e,i),n.options.verticalScrolling&&r.setTop(t,o,s)}},_handleWindowLoadAndResize:function(){var t=this,e=f(s);t.options.responsive&&e.bind("load."+this.name,function(){t.refresh()}),e.bind("resize."+this.name,function(){t._detectViewport(),t.options.responsive&&t.refresh()})},refresh:function(t){var i=this,e=i._getScrollLeft(),o=i._getScrollTop();t&&t.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),t&&t.firstLoad&&/WebKit/.test(navigator.userAgent)&&f(s).load(function(){var t=i._getScrollLeft(),e=i._getScrollTop();i._setScrollLeft(t+1),i._setScrollTop(e+1),i._setScrollLeft(t),i._setScrollTop(e)}),this._setScrollLeft(e),this._setScrollTop(o)},_detectViewport:function(){var t=this.$viewportElement.offset(),e=null!==t&&t!==m;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=e?t.top:0,this.viewportOffsetLeft=e?t.left:0},_findParticles:function(){var h=this;if(this._getScrollLeft(),this._getScrollTop(),this.particles!==m)for(var t=this.particles.length-1;0<=t;t--)this.particles[t].$element.data("stellar-elementIsActive",m);this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(){var t,e,i,o,s,n,r,a=f(this),l=0,d=0,c=0,u=0;if(a.data("stellar-elementIsActive")){if(a.data("stellar-elementIsActive")!==this)return}else a.data("stellar-elementIsActive",this);h.options.showElement(a),a.data("stellar-startingLeft")?(a.css("left",a.data("stellar-startingLeft")),a.css("top",a.data("stellar-startingTop"))):(a.data("stellar-startingLeft",a.css("left")),a.data("stellar-startingTop",a.css("top"))),t=a.position().left,e=a.position().top,i="auto"===a.css("margin-left")?0:parseInt(a.css("margin-left"),10),o="auto"===a.css("margin-top")?0:parseInt(a.css("margin-top"),10),n=a.offset().left-i,r=a.offset().top-o,a.parents().each(function(){var t=f(this);return!0===t.data("stellar-offset-parent")?(l=c,d=u,s=t,!1):(c+=t.position().left,void(u+=t.position().top))}),i=a.data("stellar-horizontal-offset")!==m?a.data("stellar-horizontal-offset"):s!==m&&s.data("stellar-horizontal-offset")!==m?s.data("stellar-horizontal-offset"):h.horizontalOffset,o=a.data("stellar-vertical-offset")!==m?a.data("stellar-vertical-offset"):s!==m&&s.data("stellar-vertical-offset")!==m?s.data("stellar-vertical-offset"):h.verticalOffset,h.particles.push({$element:a,$offsetParent:s,isFixed:"fixed"===a.css("position"),horizontalOffset:i,verticalOffset:o,startingPositionLeft:t,startingPositionTop:e,startingOffsetLeft:n,startingOffsetTop:r,parentOffsetLeft:l,parentOffsetTop:d,stellarRatio:a.data("stellar-ratio")!==m?a.data("stellar-ratio"):1,width:a.outerWidth(!0),height:a.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var t,u=this,h=this._getScrollLeft(),p=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(t=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(t=t.add(this.$element)),t.each(function(){var t,e,i,o,s,n=f(this),r=y(n),a=0,l=0,d=0,c=0;if(n.data("stellar-backgroundIsActive")){if(n.data("stellar-backgroundIsActive")!==this)return}else n.data("stellar-backgroundIsActive",this);n.data("stellar-backgroundStartingLeft")?g(n,n.data("stellar-backgroundStartingLeft"),n.data("stellar-backgroundStartingTop")):(n.data("stellar-backgroundStartingLeft",r[0]),n.data("stellar-backgroundStartingTop",r[1])),t="auto"===n.css("margin-left")?0:parseInt(n.css("margin-left"),10),e="auto"===n.css("margin-top")?0:parseInt(n.css("margin-top"),10),i=n.offset().left-t-h,o=n.offset().top-e-p,n.parents().each(function(){var t=f(this);return!0===t.data("stellar-offset-parent")?(a=d,l=c,s=t,!1):(d+=t.position().left,void(c+=t.position().top))}),t=n.data("stellar-horizontal-offset")!==m?n.data("stellar-horizontal-offset"):s!==m&&s.data("stellar-horizontal-offset")!==m?s.data("stellar-horizontal-offset"):u.horizontalOffset,e=n.data("stellar-vertical-offset")!==m?n.data("stellar-vertical-offset"):s!==m&&s.data("stellar-vertical-offset")!==m?s.data("stellar-vertical-offset"):u.verticalOffset,u.backgrounds.push({$element:n,$offsetParent:s,isFixed:"fixed"===n.css("background-attachment"),horizontalOffset:t,verticalOffset:e,startingValueLeft:r[0],startingValueTop:r[1],startingBackgroundPositionLeft:isNaN(parseInt(r[0],10))?0:parseInt(r[0],10),startingBackgroundPositionTop:isNaN(parseInt(r[1],10))?0:parseInt(r[1],10),startingPositionLeft:n.position().left,startingPositionTop:n.position().top,startingOffsetLeft:i,startingOffsetTop:o,parentOffsetLeft:a,parentOffsetTop:l,stellarRatio:n.data("stellar-background-ratio")===m?1:n.data("stellar-background-ratio")})}))},_reset:function(){for(var t,e,i,o,s=this.particles.length-1;0<=s;s--)e=(t=this.particles[s]).$element.data("stellar-startingLeft"),i=t.$element.data("stellar-startingTop"),this._setPosition(t.$element,e,e,i,i),this.options.showElement(t.$element),t.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(s=this.backgrounds.length-1;0<=s;s--)(o=this.backgrounds[s]).$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),g(o.$element,o.startingValueLeft,o.startingValueTop)},destroy:function(){this._reset(),this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name),this._animationLoop=f.noop,f(s).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var t=this,e=f(s);e.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),e.bind("resize.horizontal-"+this.name,function(){t.horizontalOffset=t.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),e.bind("resize.vertical-"+this.name,function(){t.verticalOffset=t.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var t,e,i,o,s,n,r,a,l,d,c=this._getScrollLeft(),u=this._getScrollTop(),h=!0,p=!0;if(this.currentScrollLeft!==c||this.currentScrollTop!==u||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=c,this.currentScrollTop=u,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,d=this.particles.length-1;0<=d;d--)e=(t=this.particles[d]).isFixed?1:0,a=this.options.horizontalScrolling?(n=(c+t.horizontalOffset+this.viewportOffsetLeft+t.startingPositionLeft-t.startingOffsetLeft+t.parentOffsetLeft)*-(t.stellarRatio+e-1)+t.startingPositionLeft)-t.startingPositionLeft+t.startingOffsetLeft:(n=t.startingPositionLeft,t.startingOffsetLeft),l=this.options.verticalScrolling?(r=(u+t.verticalOffset+this.viewportOffsetTop+t.startingPositionTop-t.startingOffsetTop+t.parentOffsetTop)*-(t.stellarRatio+e-1)+t.startingPositionTop)-t.startingPositionTop+t.startingOffsetTop:(r=t.startingPositionTop,t.startingOffsetTop),this.options.hideDistantElements&&(p=!this.options.horizontalScrolling||a+t.width>(t.isFixed?0:c)&&a<(t.isFixed?0:c)+this.viewportWidth+this.viewportOffsetLeft,h=!this.options.verticalScrolling||l+t.height>(t.isFixed?0:u)&&l<(t.isFixed?0:u)+this.viewportHeight+this.viewportOffsetTop),p&&h?(t.isHidden&&(this.options.showElement(t.$element),t.isHidden=!1),this._setPosition(t.$element,n,t.startingPositionLeft,r,t.startingPositionTop)):t.isHidden||(this.options.hideElement(t.$element),t.isHidden=!0);for(d=this.backgrounds.length-1;0<=d;d--)e=(i=this.backgrounds[d]).isFixed?0:1,o=this.options.horizontalScrolling?(c+i.horizontalOffset-this.viewportOffsetLeft-i.startingOffsetLeft+i.parentOffsetLeft-i.startingBackgroundPositionLeft)*(e-i.stellarRatio)+"px":i.startingValueLeft,s=this.options.verticalScrolling?(u+i.verticalOffset-this.viewportOffsetTop-i.startingOffsetTop+i.parentOffsetTop-i.startingBackgroundPositionTop)*(e-i.stellarRatio)+"px":i.startingValueTop,g(i.$element,o,s)}},_handleScrollEvent:function(){function t(){i._repositionElements(),o=!1}function e(){o||(d(t),o=!0)}var i=this,o=!1;this.$scrollElement.bind("scroll."+this.name,e),e()},_startAnimationLoop:function(){var t=this;this._animationLoop=function(){d(t._animationLoop),t._repositionElements()},this._animationLoop()}},f.fn[n]=function(e){var i=arguments;return e===m||"object"==typeof e?this.each(function(){f.data(this,"plugin_"+n)||f.data(this,"plugin_"+n,new o(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var t=f.data(this,"plugin_"+n);t instanceof o&&"function"==typeof t[e]&&t[e].apply(t,Array.prototype.slice.call(i,1)),"destroy"===e&&f.data(this,"plugin_"+n,null)}):void 0},f[n]=function(){var t=f(s);return t.stellar.apply(t,Array.prototype.slice.call(arguments,0))},f[n].scrollProperty=a,f[n].positionProperty=l,s.Stellar=o}(jQuery,this,document),function(d){"use strict";d.fn.countdown=function(t,n){var r=d(this),a={date:null,format:null};function e(){var t=Date.parse(a.date)/1e3,e=Math.floor(d.now()/1e3);t<=e&&(n.call(this),clearInterval(l));var i=t-e,o=Math.floor(i/86400);i-=60*o*60*24;var s=Math.floor(i/3600);i-=60*s*60;e=Math.floor(i/60);i-=60*e,1==o?r.find(".timeRefDays").text("day"):r.find(".timeRefDays").text("days"),1==s?r.find(".timeRefHours").text("hour"):r.find(".timeRefHours").text("hours"),1==e?r.find(".timeRefMinutes").text("minute"):r.find(".timeRefMinutes").text("minutes"),1==i?r.find(".timeRefSeconds").text("second"):r.find(".timeRefSeconds").text("seconds"),"on"==a.format&&(o=2<=String(o).length?o:"0"+o,s=2<=String(s).length?s:"0"+s,e=2<=String(e).length?e:"0"+e,i=2<=String(i).length?i:"0"+i),isNaN(t)?(alert("Invalid date. Here's an example: 12 Tuesday 2012 17:30:00"),clearInterval(l)):(r.find(".days").text(o),r.find(".hours").text(s),r.find(".minutes").text(e),r.find(".seconds").text(i))}t&&d.extend(a,t),e();var l=setInterval(e,1e3)}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(d){function t(){}function c(t,e){f.ev.on("mfp"+t+b,e)}function u(t,e,i,o){var s=document.createElement("div");return s.className="mfp-"+t,i&&(s.innerHTML=i),o?e&&e.appendChild(s):(s=d(s),e&&s.appendTo(e)),s}function h(t,e){f.ev.triggerHandler("mfp"+t,e),f.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),f.st.callbacks[t]&&f.st.callbacks[t].apply(f,d.isArray(e)?e:[e]))}function p(t){return t===e&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=d(f.st.closeMarkup.replace("%title%",f.st.tClose)),e=t),f.currTemplate.closeBtn}function n(){d.magnificPopup.instance||((f=new t).init(),d.magnificPopup.instance=f)}var f,o,m,s,g,e,l="Close",y="BeforeClose",v="MarkupParse",w="Open",b=".mfp",x="mfp-ready",i="mfp-removing",r="mfp-prevent-close",a=!!window.jQuery,_=d(window);t.prototype={constructor:t,init:function(){var t=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(t),f.isIOS=/iphone|ipad|ipod/gi.test(t),f.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),m=d(document),f.popupsCache={}},open:function(t){if(!1===t.isObj){f.items=t.items.toArray(),f.index=0;for(var e,i=t.items,o=0;o<i.length;o++)if((e=i[o]).parsed&&(e=e.el[0]),e===t.el[0]){f.index=o;break}}else f.items=d.isArray(t.items)?t.items:[t.items],f.index=t.index||0;if(!f.isOpen){f.types=[],g="",t.mainEl&&t.mainEl.length?f.ev=t.mainEl.eq(0):f.ev=m,t.key?(f.popupsCache[t.key]||(f.popupsCache[t.key]={}),f.currTemplate=f.popupsCache[t.key]):f.currTemplate={},f.st=d.extend(!0,{},d.magnificPopup.defaults,t),f.fixedContentPos="auto"===f.st.fixedContentPos?!f.probablyMobile:f.st.fixedContentPos,f.st.modal&&(f.st.closeOnContentClick=!1,f.st.closeOnBgClick=!1,f.st.showCloseBtn=!1,f.st.enableEscapeKey=!1),f.bgOverlay||(f.bgOverlay=u("bg").on("click"+b,function(){f.close()}),f.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(t){f._checkIfClose(t.target)&&f.close()}),f.container=u("container",f.wrap)),f.contentContainer=u("content"),f.st.preloader&&(f.preloader=u("preloader",f.container,f.st.tLoading));var s=d.magnificPopup.modules;for(o=0;o<s.length;o++){var n=(n=s[o]).charAt(0).toUpperCase()+n.slice(1);f["init"+n].call(f)}h("BeforeOpen"),f.st.showCloseBtn&&(f.st.closeBtnInside?(c(v,function(t,e,i,o){i.close_replaceWith=p(o.type)}),g+=" mfp-close-btn-in"):f.wrap.append(p())),f.st.alignTop&&(g+=" mfp-align-top"),f.fixedContentPos?f.wrap.css({overflow:f.st.overflowY,overflowX:"hidden",overflowY:f.st.overflowY}):f.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==f.st.fixedBgPos&&("auto"!==f.st.fixedBgPos||f.fixedContentPos)||f.bgOverlay.css({height:m.height(),position:"absolute"}),f.st.enableEscapeKey&&m.on("keyup"+b,function(t){27===t.keyCode&&f.close()}),_.on("resize"+b,function(){f.updateSize()}),f.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&f.wrap.addClass(g);var r=f.wH=_.height(),a={};f.fixedContentPos&&f._hasScrollBar(r)&&((l=f._getScrollbarSize())&&(a.marginRight=l)),f.fixedContentPos&&(f.isIE7?d("body, html").css("overflow","hidden"):a.overflow="hidden");var l=f.st.mainClass;return f.isIE7&&(l+=" mfp-ie7"),l&&f._addClassToMFP(l),f.updateItemHTML(),h("BuildControls"),d("html").css(a),f.bgOverlay.add(f.wrap).prependTo(f.st.prependTo||d(document.body)),f._lastFocusedEl=document.activeElement,setTimeout(function(){f.content?(f._addClassToMFP(x),f._setFocus()):f.bgOverlay.addClass(x),m.on("focusin"+b,f._onFocusIn)},16),f.isOpen=!0,f.updateSize(r),h(w),t}f.updateItemHTML()},close:function(){f.isOpen&&(h(y),f.isOpen=!1,f.st.removalDelay&&!f.isLowIE&&f.supportsTransition?(f._addClassToMFP(i),setTimeout(function(){f._close()},f.st.removalDelay)):f._close())},_close:function(){h(l);var t=i+" "+x+" ";f.bgOverlay.detach(),f.wrap.detach(),f.container.empty(),f.st.mainClass&&(t+=f.st.mainClass+" "),f._removeClassFromMFP(t),f.fixedContentPos&&(t={marginRight:""},f.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)),m.off("keyup.mfp focusin"+b),f.ev.off(b),f.wrap.attr("class","mfp-wrap").removeAttr("style"),f.bgOverlay.attr("class","mfp-bg"),f.container.attr("class","mfp-container"),!f.st.showCloseBtn||f.st.closeBtnInside&&!0!==f.currTemplate[f.currItem.type]||f.currTemplate.closeBtn&&f.currTemplate.closeBtn.detach(),f.st.autoFocusLast&&f._lastFocusedEl&&d(f._lastFocusedEl).focus(),f.currItem=null,f.content=null,f.currTemplate=null,f.prevHeight=0,h("AfterClose")},updateSize:function(t){var e;f.isIOS?(e=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*e,f.wrap.css("height",e),f.wH=e):f.wH=t||_.height(),f.fixedContentPos||f.wrap.css("height",f.wH),h("Resize")},updateItemHTML:function(){var t=f.items[f.index];f.contentContainer.detach(),f.content&&f.content.detach(),t.parsed||(t=f.parseEl(f.index));var e=t.type;h("BeforeChange",[f.currItem?f.currItem.type:"",e]),f.currItem=t,f.currTemplate[e]||(i=!!f.st[e]&&f.st[e].markup,h("FirstMarkupParse",i),f.currTemplate[e]=!i||d(i)),s&&s!==t.type&&f.container.removeClass("mfp-"+s+"-holder");var i=f["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,f.currTemplate[e]);f.appendContent(i,e),t.preloaded=!0,h("Change",t),s=t.type,f.container.prepend(f.contentContainer),h("AfterChange")},appendContent:function(t,e){(f.content=t)?f.st.showCloseBtn&&f.st.closeBtnInside&&!0===f.currTemplate[e]?f.content.find(".mfp-close").length||f.content.append(p()):f.content=t:f.content="",h("BeforeAppend"),f.container.addClass("mfp-"+e+"-holder"),f.contentContainer.append(f.content)},parseEl:function(t){var e,i=f.items[t];if((i=i.tagName?{el:d(i)}:(e=i.type,{data:i,src:i.src})).el){for(var o=f.types,s=0;s<o.length;s++)if(i.el.hasClass("mfp-"+o[s])){e=o[s];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||f.st.type||"inline",i.index=t,i.parsed=!0,f.items[t]=i,h("ElementParse",i),f.items[t]},addGroup:function(e,i){function t(t){t.mfpEl=this,f._openClick(t,e,i)}var o="click.magnificPopup";(i=i||{}).mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,t)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,t):(i.items=e).off(o).on(o,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i:d.magnificPopup.defaults).midClick||!(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){var o=(void 0!==i.disableOn?i:d.magnificPopup.defaults).disableOn;if(o)if(d.isFunction(o)){if(!o.call(f))return!0}else if(_.width()<o)return!0;t.type&&(t.preventDefault(),f.isOpen&&t.stopPropagation()),i.el=d(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),f.open(i)}},updateStatus:function(t,e){var i;f.preloader&&(o!==t&&f.container.removeClass("mfp-s-"+o),e||"loading"!==t||(e=f.st.tLoading),h("UpdateStatus",i={status:t,text:e}),t=i.status,e=i.text,f.preloader.html(e),f.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),f.container.addClass("mfp-s-"+t),o=t)},_checkIfClose:function(t){if(!d(t).hasClass(r)){var e=f.st.closeOnContentClick,i=f.st.closeOnBgClick;if(e&&i)return!0;if(!f.content||d(t).hasClass("mfp-close")||f.preloader&&t===f.preloader[0])return!0;if(t===f.content[0]||d.contains(f.content[0],t)){if(e)return!0}else if(i&&d.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){f.bgOverlay.addClass(t),f.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),f.wrap.removeClass(t)},_hasScrollBar:function(t){return(f.isIE7?m.height():document.body.scrollHeight)>(t||_.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).focus()},_onFocusIn:function(t){return t.target===f.wrap[0]||d.contains(f.wrap[0],t.target)?void 0:(f._setFocus(),!1)},_parseMarkup:function(s,t,e){var n;e.data&&(t=d.extend(e.data,t)),h(v,[s,t,e]),d.each(t,function(t,e){return void 0===e||!1===e||void(1<(n=t.split("_")).length?0<(i=s.find(b+"-"+n[0])).length&&("replaceWith"===(o=n[1])?i[0]!==e[0]&&i.replaceWith(e):"img"===o?i.is("img")?i.attr("src",e):i.replaceWith(d("<img>").attr("src",e).attr("class",i.attr("class"))):i.attr(n[1],e)):s.find(b+"-"+t).html(e));var i,o})},_getScrollbarSize:function(){var t;return void 0===f.scrollbarSize&&((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),f.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),f.scrollbarSize}},d.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return n(),(t=t?d.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(d.magnificPopup.defaults[t]=e.options),d.extend(this.proto,e.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},d.fn.magnificPopup=function(t){n();var e,i,o,s=d(this);return"string"==typeof t?"open"===t?(e=a?s.data("magnificPopup"):s[0].magnificPopup,i=parseInt(arguments[1],10)||0,o=e.items?e.items[i]:(o=s,e.delegate&&(o=o.find(e.delegate)),o.eq(i)),f._openClick({mfpEl:o},s,e)):f.isOpen&&f[t].apply(f,Array.prototype.slice.call(arguments,1)):(t=d.extend(!0,{},t),a?s.data("magnificPopup",t):s[0].magnificPopup=t,f.addGroup(s,t)),s};function $(){S&&(T.after(S.addClass(C)).detach(),S=null)}var C,T,S,k="inline";d.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(k),c(l+"."+k,function(){$()})},getInline:function(t,e){if($(),t.src){var i,o=f.st.inline,s=d(t.src);return s.length?((i=s[0].parentNode)&&i.tagName&&(T||(C=o.hiddenClass,T=u(C),C="mfp-"+C),S=s.after(T).detach().removeClass(C)),f.updateStatus("ready")):(f.updateStatus("error",o.tNotFound),s=d("<div>")),t.inlineElement=s}return f.updateStatus("ready"),f._parseMarkup(e,{},t),e}}});function E(){A&&d(document.body).removeClass(A)}function z(){E(),f.req&&f.req.abort()}var A,I="ajax";d.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){f.types.push(I),A=f.st.ajax.cursor,c(l+"."+I,z),c("BeforeChange."+I,z)},getAjax:function(o){A&&d(document.body).addClass(A),f.updateStatus("loading");var t=d.extend({url:o.src,success:function(t,e,i){i={data:t,xhr:i};h("ParseAjax",i),f.appendContent(d(i.data),I),o.finished=!0,E(),f._setFocus(),setTimeout(function(){f.wrap.addClass(x)},16),f.updateStatus("ready"),h("AjaxContentAdded")},error:function(){E(),o.finished=o.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",o.src))}},f.st.ajax.settings);return f.req=d.ajax(t),""}}});var P;d.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var t=f.st.image,e=".image";f.types.push("image"),c(w+e,function(){"image"===f.currItem.type&&t.cursor&&d(document.body).addClass(t.cursor)}),c(l+e,function(){t.cursor&&d(document.body).removeClass(t.cursor),_.off("resize"+b)}),c("Resize"+e,f.resizeImage),f.isLowIE&&c("AfterChange",f.resizeImage)},resizeImage:function(){var t,e=f.currItem;e&&e.img&&f.st.image.verticalFit&&(t=0,f.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",f.wH-t))},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,P&&clearInterval(P),t.isCheckingImgSize=!1,h("ImageHasSize",t),t.imgHidden&&(f.content&&f.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],s=function(t){P&&clearInterval(P),P=setInterval(function(){return 0<o.naturalWidth?void f._onImageHasSize(e):(200<i&&clearInterval(P),void(3===++i?s(10):40===i?s(50):100===i&&s(500)))},t)};s(1)},getImage:function(t,e){var i,o=0,s=function(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,h("ImageLoadComplete")):++o<200?setTimeout(s,100):n())},n=function(){t&&(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("error",r.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)},r=f.st.image,a=e.find(".mfp-img");return a.length&&((i=document.createElement("img")).className="mfp-img",t.el&&t.el.find("img").length&&(i.alt=t.el.find("img").attr("alt")),t.img=d(i).on("load.mfploader",s).on("error.mfploader",n),i.src=t.src,a.is("img")&&(t.img=t.img.clone()),0<(i=t.img[0]).naturalWidth?t.hasSize=!0:i.width||(t.hasSize=!1)),f._parseMarkup(e,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var e=f.st.image.titleSrc;if(e){if(d.isFunction(e))return e.call(f,t);if(t.el)return t.el.attr(e)||""}return""}(t),img_replaceWith:t.img},t),f.resizeImage(),t.hasSize?(P&&clearInterval(P),t.loadError?(e.addClass("mfp-loading"),f.updateStatus("error",r.tError.replace("%url%",t.src))):(e.removeClass("mfp-loading"),f.updateStatus("ready"))):(f.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,e.addClass("mfp-loading"),f.findImageSize(t))),e}}});var O;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,e,i,o,s,n,r=f.st.zoom,a=".zoom";r.enabled&&f.supportsTransition&&(o=r.duration,s=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+r.duration/1e3+"s "+r.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},t="transition";return o["-webkit-"+t]=o["-moz-"+t]=o["-o-"+t]=o[t]=i,e.css(o),e},n=function(){f.content.css("visibility","visible")},c("BuildControls"+a,function(){f._allowZoom()&&(clearTimeout(e),f.content.css("visibility","hidden"),(t=f._getItemToZoom())?((i=s(t)).css(f._getOffset()),f.wrap.append(i),e=setTimeout(function(){i.css(f._getOffset(!0)),e=setTimeout(function(){n(),setTimeout(function(){i.remove(),t=i=null,h("ZoomAnimationEnded")},16)},o)},16)):n())}),c(y+a,function(){if(f._allowZoom()){if(clearTimeout(e),f.st.removalDelay=o,!t){if(!(t=f._getItemToZoom()))return;i=s(t)}i.css(f._getOffset(!0)),f.wrap.append(i),f.content.css("visibility","hidden"),setTimeout(function(){i.css(f._getOffset())},16)}}),c(l+a,function(){f._allowZoom()&&(n(),i&&i.remove(),t=null)}))},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(t){var e=t?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem),i=e.offset(),o=parseInt(e.css("padding-top"),10),t=parseInt(e.css("padding-bottom"),10);i.top-=d(window).scrollTop()-o;o={width:e.width(),height:(a?e.innerHeight():e[0].offsetHeight)-t-o};return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O?o["-moz-transform"]=o.transform="translate("+i.left+"px,"+i.top+"px)":(o.left=i.left,o.top=i.top),o}}});function j(t){var e;!f.currTemplate[L]||(e=f.currTemplate[L].find("iframe")).length&&(t||(e[0].src="//about:blank"),f.isIE8&&e.css("display",t?"block":"none"))}var L="iframe";d.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){f.types.push(L),c("BeforeChange",function(t,e,i){e!==i&&(e===L?j():i===L&&j(!0))}),c(l+"."+L,function(){j()})},getIframe:function(t,e){var i=t.src,o=f.st.iframe;d.each(o.patterns,function(){return-1<i.indexOf(this.index)?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0});var s={};return o.srcAction&&(s[o.srcAction]=i),f._parseMarkup(e,s,t),f.updateStatus("ready"),e}}});function M(t){var e=f.items.length;return e-1<t?t-e:t<0?e+t:t}function D(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)}d.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=f.st.gallery,t=".mfp-gallery";return f.direction=!0,!(!n||!n.enabled)&&(g+=" mfp-gallery",c(w+t,function(){n.navigateByImgClick&&f.wrap.on("click"+t,".mfp-img",function(){return 1<f.items.length?(f.next(),!1):void 0}),m.on("keydown"+t,function(t){37===t.keyCode?f.prev():39===t.keyCode&&f.next()})}),c("UpdateStatus"+t,function(t,e){e.text&&(e.text=D(e.text,f.currItem.index,f.items.length))}),c(v+t,function(t,e,i,o){var s=f.items.length;i.counter=1<s?D(n.tCounter,o.index,s):""}),c("BuildControls"+t,function(){var t,e;1<f.items.length&&n.arrows&&!f.arrowLeft&&(e=n.arrowMarkup,t=f.arrowLeft=d(e.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(r),e=f.arrowRight=d(e.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(r),t.click(function(){f.prev()}),e.click(function(){f.next()}),f.container.append(t.add(e)))}),c("Change"+t,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),void c(l+t,function(){m.off(t),f.wrap.off("click"+t),f.arrowRight=f.arrowLeft=null}))},next:function(){f.direction=!0,f.index=M(f.index+1),f.updateItemHTML()},prev:function(){f.direction=!1,f.index=M(f.index-1),f.updateItemHTML()},goTo:function(t){f.direction=t>=f.index,f.index=t,f.updateItemHTML()},preloadNearbyImages:function(){for(var t=f.st.gallery.preload,e=Math.min(t[0],f.items.length),i=Math.min(t[1],f.items.length),o=1;o<=(f.direction?i:e);o++)f._preloadItem(f.index+o);for(o=1;o<=(f.direction?e:i);o++)f._preloadItem(f.index-o)},_preloadItem:function(t){var e;t=M(t),f.items[t].preloaded||((e=f.items[t]).parsed||(e=f.parseEl(t)),h("LazyLoad",e),"image"===e.type&&(e.img=d('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,h("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0)}}});var q="retina";d.magnificPopup.registerModule(q,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){var i,o;1<window.devicePixelRatio&&(i=f.st.retina,o=i.ratio,1<(o=isNaN(o)?o():o)&&(c("ImageHasSize."+q,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/o,width:"100%"})}),c("ElementParse."+q,function(t,e){e.src=i.replaceSrc(e,o)})))}}}),n()}),function(){"use strict";function e(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i,this.options=e.Adapter.extend({},e.defaults,t),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,i+=1}var i=0,n={};e.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},e.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(t){var e,i=[];for(e in n)i.push(n[e]);for(var o=0,s=i.length;o<s;o++)i[o][t]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){for(var t in e.Context.refreshAll(),n)n[t].enabled=!0;return this},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){"use strict";function e(t){window.setTimeout(t,1e3/60)}function i(t){this.element=t,this.Adapter=p.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+o,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,s[t.waypointContextKey]=this,o+=1,p.windowContext||(p.windowContext=!0,p.windowContext=new i(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var o=0,s={},p=window.Waypoint,t=window.onload;i.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},i.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete s[this.key])},i.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,p.requestAnimationFrame(t))})},i.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){e.didScroll&&!p.isTouch||(e.didScroll=!0,p.requestAnimationFrame(t))})},i.prototype.handleResize=function(){p.Context.refreshAll()},i.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var s,n=o[t],r=n.newScroll>n.oldScroll?n.forward:n.backward;for(s in this.waypoints[t]){var a,l,d=this.waypoints[t][s];null!==d.triggerPoint&&(a=n.oldScroll<d.triggerPoint,l=n.newScroll>=d.triggerPoint,(a&&l||!a&&!l)&&(d.queueTrigger(r),i[d.group.id]=d.group))}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?p.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?p.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,s=e.length;o<s;o++)e[o].destroy()},i.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),s={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var n,r=t[e];for(n in this.waypoints[e]){var a,l=this.waypoints[e][n],d=l.options.offset,c=l.triggerPoint,u=0,h=null==c;l.element!==l.element.window&&(u=l.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(l):"string"==typeof d&&(d=parseFloat(d),-1<l.options.offset.indexOf("%")&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,l.triggerPoint=Math.floor(u+a-d),a=c<r.oldScroll,d=l.triggerPoint>=r.oldScroll,c=!a&&!d,!h&&(a&&d)?(l.queueTrigger(r.backward),s[l.group.id]=l.group):(!h&&c||h&&r.oldScroll>=l.triggerPoint)&&(l.queueTrigger(r.forward),s[l.group.id]=l.group)}}return p.requestAnimationFrame(function(){for(var t in s)s[t].flushTriggers()}),this},i.findOrCreateByElement=function(t){return i.findByElement(t)||new i(t)},i.refreshAll=function(){for(var t in s)s[t].refresh()},i.findByElement=function(t){return s[t.waypointContextKey]},window.onload=function(){t&&t(),i.refreshAll()},p.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},p.Context=i}(),function(){"use strict";function r(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}function e(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},o=window.Waypoint;e.prototype.add=function(t){this.waypoints.push(t)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:r);for(var o=0,s=e.length;o<s;o+=1){var n=e[o];!n.options.continuous&&o!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},e.prototype.next=function(t){this.waypoints.sort(r);t=o.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},e.prototype.previous=function(t){this.waypoints.sort(r);t=o.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},e.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},e.prototype.remove=function(t){t=o.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},e.prototype.first=function(){return this.waypoints[0]},e.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},e.findOrCreate=function(t){return i[t.axis][t.name]||new e(t)},o.Group=e}(),function(){"use strict";function i(t){this.$element=o(t)}var o=window.jQuery,t=window.Waypoint;o.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),o.each(["extend","inArray","isEmptyObject"],function(t,e){i[e]=o[e]}),t.adapters.push({name:"jquery",Adapter:i}),t.Adapter=i}(),function(){"use strict";function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new s(t))}),e}}var s=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(f){!function(){"use strict";var i={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,ariaLabelledby:"",ariaDescribedby:"",closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1,supportLegacyBrowser:!0};function e(t,e){if(this.el=t,this.$el=f(t),this.s=f.extend({},i,e),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBarTimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=f(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(f(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}e.prototype.init=function(){var t=this;t.s.preload>t.$items.length&&(t.s.preload=t.$items.length);var e=window.location.hash;0<e.indexOf("lg="+this.s.galleryId)&&(t.index=parseInt(e.split("&slide=")[1],10),f("body").addClass("lg-from-hash"),f("body").hasClass("lg-on")||(setTimeout(function(){t.build(t.index)}),f("body").addClass("lg-on"))),t.s.dynamic?(t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||0,f("body").hasClass("lg-on")||setTimeout(function(){t.build(t.index),f("body").addClass("lg-on")})):t.$items.on("click.lgcustom",function(e){try{e.preventDefault(),e.preventDefault()}catch(t){e.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||t.$items.index(this),f("body").hasClass("lg-on")||(t.build(t.index),f("body").addClass("lg-on"))})},e.prototype.build=function(t){var e=this;e.structure(),f.each(f.fn.lightGallery.modules,function(t){e.modules[t]=new f.fn.lightGallery.modules[t](e.el)}),e.slide(t,!1,!1,!1),e.s.keyPress&&e.keyPress(),1<e.$items.length?(e.arrow(),setTimeout(function(){e.enableDrag(),e.enableSwipe()},50),e.s.mousewheel&&e.mousewheel()):e.$slide.on("click.lg",function(){e.$el.trigger("onSlideClick.lg")}),e.counter(),e.closeGallery(),e.$el.trigger("onAfterOpen.lg"),0<e.s.hideBarsDelay&&e.$outer.on("mousemove.lg click.lg touchstart.lg",function(){e.$outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.$outer.addClass("lg-hide-items")},e.s.hideBarsDelay)}),e.$outer.trigger("mousemove.lg")},e.prototype.structure=function(){var t="",e="",i=0,o="",s=this;for(f("body").append('<div class="lg-backdrop"></div>'),f(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),i=0;i<this.$items.length;i++)t+='<div class="lg-item"></div>';this.s.controls&&1<this.$items.length&&(e='<div class="lg-actions"><button type="button" aria-label="Previous slide" class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button type="button" aria-label="Next slide" class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(o='<div role="status" aria-live="polite" class="lg-sub-html"></div>');var o='<div tabindex="-1" aria-modal="true" '+(this.s.ariaLabelledby?'aria-labelledby="'+this.s.ariaLabelledby+'"':"")+" "+(this.s.ariaDescribedby?'aria-describedby="'+this.s.ariaDescribedby+'"':"")+' role="dialog" class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+t+'</div><div class="lg-toolbar lg-group"><button type="button" aria-label="Close gallery" class="lg-close lg-icon"></button></div>'+e+o+"</div></div>";f("body").append(o),this.$outer=f(".lg-outer"),this.$outer.focus(),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),s.setTop(),f(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){s.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&1<this.$items.length&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()&&((o=this.$outer.find(".lg-inner")).css("transition-timing-function",this.s.cssEasing),o.css("transition-duration",this.s.speed+"ms")),setTimeout(function(){f(".lg-backdrop").addClass("in")}),setTimeout(function(){s.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" aria-label="Download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=f(window).scrollTop()},e.prototype.setTop=function(){var t,e,i;"100%"!==this.s.height&&(e=((t=f(window).height())-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg"),t>=parseInt(this.s.height,10)?i.css("top",e+"px"):i.css("top","0px"))},e.prototype.doCss=function(){return!!function(){for(var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],e=document.documentElement,i=0,i=0;i<t.length;i++)if(t[i]in e.style)return!0}()},e.prototype.isVideo=function(t,e){var i=this.s.dynamic?this.s.dynamicEl[e].html:this.$items.eq(e).attr("data-html");if(!t)return i?{html5:!0}:(console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var o=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),i=t.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),e=t.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),t=t.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return o?{youtube:o}:i?{vimeo:i}:e?{dailymotion:e}:t?{vk:t}:void 0},e.prototype.counter=function(){this.s.counter&&f(this.s.appendCounterTo).append('<div id="lg-counter" role="status" aria-live="polite"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},e.prototype.addHtml=function(t){var e,i,o,s=null;this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?e=this.s.dynamicEl[t].subHtmlUrl:s=this.s.dynamicEl[t].subHtml:(i=this.$items.eq(t)).attr("data-sub-html-url")?e=i.attr("data-sub-html-url"):(s=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!s&&(s=i.attr("title")||i.find("img").first().attr("alt"))),e||(null!=s?"."!==(o=s.substring(0,1))&&"#"!==o||(s=(this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(s):f(s)).html()):s=""),".lg-sub-html"===this.s.appendSubHtmlTo?e?this.$outer.find(this.s.appendSubHtmlTo).load(e):this.$outer.find(this.s.appendSubHtmlTo).html(s):e?this.$slide.eq(t).load(e):this.$slide.eq(t).append(s),null!=s&&(""===s?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[t])},e.prototype.preload=function(t){for(var e=1,i=1,e=1;e<=this.s.preload&&!(e>=this.$items.length-t);e++)this.loadContent(t+e,!1,0);for(i=1;i<=this.s.preload&&!(t-i<0);i++)this.loadContent(t-i,!1,0)},e.prototype.loadContent=function(e,t,i){var o,a,s,n,r,l,d=this,c=!1,u=function(t){for(var e=[],i=[],o=0;o<t.length;o++){var s=t[o].split(" ");""===s[0]&&s.splice(0,1),i.push(s[0]),e.push(s[1])}for(var n=f(window).width(),r=0;r<e.length;r++)if(parseInt(e[r],10)>n){a=i[r];break}},h=d.s.dynamic?(d.s.dynamicEl[e].poster&&(c=!0,s=d.s.dynamicEl[e].poster),r=d.s.dynamicEl[e].html,a=d.s.dynamicEl[e].src,l=d.s.dynamicEl[e].alt,d.s.dynamicEl[e].responsive&&u(d.s.dynamicEl[e].responsive.split(",")),n=d.s.dynamicEl[e].srcset,d.s.dynamicEl[e].sizes):((p=d.$items.eq(e)).attr("data-poster")&&(c=!0,s=p.attr("data-poster")),r=p.attr("data-html"),a=p.attr("href")||p.attr("data-src"),l=p.attr("title")||p.find("img").first().attr("alt"),p.attr("data-responsive")&&u(p.attr("data-responsive").split(",")),n=p.attr("data-srcset"),p.attr("data-sizes")),u=!1;d.s.dynamic?d.s.dynamicEl[e].iframe&&(u=!0):"true"===d.$items.eq(e).attr("data-iframe")&&(u=!0);var p=d.isVideo(a,e);if(!d.$slide.eq(e).hasClass("lg-loaded")){if(u?d.$slide.eq(e).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+d.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+a+'" allowfullscreen="true"></iframe></div></div>'):c?(u="",u=p&&p.youtube?"lg-has-youtube":p&&p.vimeo?"lg-has-vimeo":"lg-has-html5",d.$slide.eq(e).prepend('<div class="lg-video-cont '+u+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+s+'" /></div></div>')):p?(d.$slide.eq(e).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),d.$el.trigger("hasVideo.lg",[e,a,r])):(l=l?'alt="'+l+'"':"",d.$slide.eq(e).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" '+l+' src="'+a+'" /></div>')),d.$el.trigger("onAferAppendSlide.lg",[e]),o=d.$slide.eq(e).find(".lg-object"),h&&o.attr("sizes",h),n&&(o.attr("srcset",n),this.s.supportLegacyBrowser))try{picturefill({elements:[o[0]]})}catch(t){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}".lg-sub-html"!==this.s.appendSubHtmlTo&&d.addHtml(e),d.$slide.eq(e).addClass("lg-loaded")}d.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){var t=0;i&&!f("body").hasClass("lg-from-hash")&&(t=i),setTimeout(function(){d.$slide.eq(e).addClass("lg-complete"),d.$el.trigger("onSlideItemLoad.lg",[e,i||0])},t)}),p&&p.html5&&!c&&d.$slide.eq(e).addClass("lg-complete"),!0===t&&(d.$slide.eq(e).hasClass("lg-complete")?d.preload(e):d.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){d.preload(e)}))},e.prototype.slide=function(t,e,i,o){var s,n,r,a,l,d=this.$outer.find(".lg-current").index(),c=this;c.lGalleryOn&&d===t||(s=this.$slide.length,n=c.lGalleryOn?this.s.speed:0,c.lgBusy||(this.s.download&&((r=c.s.dynamic?!1!==c.s.dynamicEl[t].downloadUrl&&(c.s.dynamicEl[t].downloadUrl||c.s.dynamicEl[t].src):"false"!==c.$items.eq(t).attr("data-download-url")&&(c.$items.eq(t).attr("data-download-url")||c.$items.eq(t).attr("href")||c.$items.eq(t).attr("data-src")))?(f("#lg-download").attr("href",r),c.$outer.removeClass("lg-hide-download")):c.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[d,t,e,i]),c.lgBusy=!0,clearTimeout(c.hideBarTimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){c.addHtml(t)},n),this.arrowDisable(t),o||(t<d?o="prev":d<t&&(o="next")),e?(this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),2<s?(a=t-1,l=t+1,(0===t&&d===s-1||t===s-1&&0===d)&&(l=0,a=s-1)):(a=0,l=1),"prev"===o?c.$slide.eq(l).addClass("lg-next-slide"):c.$slide.eq(a).addClass("lg-prev-slide"),c.$slide.eq(t).addClass("lg-current")):(c.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===o?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(d).addClass("lg-next-slide")):(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(d).addClass("lg-prev-slide")),setTimeout(function(){c.$slide.removeClass("lg-current"),c.$slide.eq(t).addClass("lg-current"),c.$outer.removeClass("lg-no-trans")},50)),c.lGalleryOn?(setTimeout(function(){c.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){c.lgBusy=!1,c.$el.trigger("onAfterSlide.lg",[d,t,e,i])},this.s.speed)):(c.loadContent(t,!0,c.s.backdropDuration),c.lgBusy=!1,c.$el.trigger("onAfterSlide.lg",[d,t,e,i])),c.lGalleryOn=!0,this.s.counter&&f("#lg-counter-current").text(t+1)),c.index=t)},e.prototype.goToNextSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(e.index+1<e.$slide.length?(e.index++,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):i?(e.index=0,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-right-end"),setTimeout(function(){e.$outer.removeClass("lg-right-end")},400)))},e.prototype.goToPrevSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(0<e.index?(e.index--,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):i?(e.index=e.$items.length-1,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-left-end"),setTimeout(function(){e.$outer.removeClass("lg-left-end")},400)))},e.prototype.keyPress=function(){var e=this;1<this.$items.length&&f(window).on("keyup.lg",function(t){1<e.$items.length&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}),f(window).on("keydown.lg",function(t){!0===e.s.escKey&&27===t.keyCode&&(t.preventDefault(),e.$outer.hasClass("lg-thumb-open")?e.$outer.removeClass("lg-thumb-open"):e.destroy())})},e.prototype.arrow=function(){var t=this;this.$outer.find(".lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){t.goToNextSlide()})},e.prototype.arrowDisable=function(t){!this.s.loop&&this.s.hideControlOnEnd&&(t+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),0<t?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},e.prototype.setTranslate=function(t,e,i){this.s.useLeft?t.css("left",e):t.css({transform:"translate3d("+e+"px, "+i+"px, 0px)"})},e.prototype.touchMove=function(t,e){t=e-t;15<Math.abs(t)&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),t,0),this.setTranslate(f(".lg-prev-slide"),-this.$slide.eq(this.index).width()+t,0),this.setTranslate(f(".lg-next-slide"),this.$slide.eq(this.index).width()+t,0))},e.prototype.touchEnd=function(t){var e=this;"lg-slide"!==e.s.mode&&e.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){e.$outer.removeClass("lg-dragging"),t<0&&Math.abs(t)>e.s.swipeThreshold?e.goToNextSlide(!0):0<t&&Math.abs(t)>e.s.swipeThreshold?e.goToPrevSlide(!0):Math.abs(t)<5&&e.$el.trigger("onSlideClick.lg"),e.$slide.removeAttr("style")}),setTimeout(function(){e.$outer.hasClass("lg-dragging")||"lg-slide"===e.s.mode||e.$outer.removeClass("lg-slide")},e.s.speed+100)},e.prototype.enableSwipe=function(){var e=this,i=0,o=0,s=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",function(t){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(t.preventDefault(),e.manageSwipeClass(),i=t.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(t){e.$outer.hasClass("lg-zoomed")||(t.preventDefault(),o=t.originalEvent.targetTouches[0].pageX,e.touchMove(i,o),s=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(s?(s=!1,e.touchEnd(o-i)):e.$el.trigger("onSlideClick.lg"))}))},e.prototype.enableDrag=function(){var e=this,i=0,o=0,s=!1,n=!1;e.s.enableDrag&&e.doCss()&&(e.$slide.on("mousedown.lg",function(t){e.$outer.hasClass("lg-zoomed")||e.lgBusy||f(t.target).text().trim()||(t.preventDefault(),e.manageSwipeClass(),i=t.pageX,s=!0,e.$outer.scrollLeft+=1,--e.$outer.scrollLeft,e.$outer.removeClass("lg-grab").addClass("lg-grabbing"),e.$el.trigger("onDragstart.lg"))}),f(window).on("mousemove.lg",function(t){s&&(n=!0,o=t.pageX,e.touchMove(i,o),e.$el.trigger("onDragmove.lg"))}),f(window).on("mouseup.lg",function(t){n?(n=!1,e.touchEnd(o-i),e.$el.trigger("onDragend.lg")):(f(t.target).hasClass("lg-object")||f(t.target).hasClass("lg-video-play"))&&e.$el.trigger("onSlideClick.lg"),s&&(s=!1,e.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},e.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.s.loop&&2<this.$slide.length&&(0===this.index?e=this.$slide.length-1:this.index===this.$slide.length-1&&(t=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),-1<e&&this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(t).addClass("lg-next-slide")},e.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(0<t.deltaY?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},e.prototype.closeGallery=function(){var e=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){e.destroy()}),e.s.closable&&(e.$outer.on("mousedown.lg",function(t){i=!!(f(t.target).is(".lg-outer")||f(t.target).is(".lg-item ")||f(t.target).is(".lg-img-wrap"))}),e.$outer.on("mousemove.lg",function(){i=!1}),e.$outer.on("mouseup.lg",function(t){(f(t.target).is(".lg-outer")||f(t.target).is(".lg-item ")||f(t.target).is(".lg-img-wrap")&&i)&&(e.$outer.hasClass("lg-dragging")||e.destroy())}))},e.prototype.destroy=function(t){var e=this;t||(e.$el.trigger("onBeforeClose.lg"),f(window).scrollTop(e.prevScrollTop)),t&&(e.s.dynamic||this.$items.off("click.lg click.lgcustom"),f.removeData(e.el,"lightGallery")),this.$el.off(".lg.tm"),f.each(f.fn.lightGallery.modules,function(t){e.modules[t]&&e.modules[t].destroy()}),this.lGalleryOn=!1,clearTimeout(e.hideBarTimeout),this.hideBarTimeout=!1,f(window).off(".lg"),f("body").removeClass("lg-on lg-from-hash"),e.$outer&&e.$outer.removeClass("lg-visible"),f(".lg-backdrop").removeClass("in"),setTimeout(function(){e.$outer&&e.$outer.remove(),f(".lg-backdrop").remove(),t||e.$el.trigger("onCloseAfter.lg"),e.$el.focus()},e.s.backdropDuration+50)},f.fn.lightGallery=function(t){return this.each(function(){if(f.data(this,"lightGallery"))try{f(this).data("lightGallery").init()}catch(t){console.error("lightGallery has not initiated properly",t)}else f.data(this,"lightGallery",new e(this,t))})},f.fn.lightGallery.modules={}}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(i){!function(){"use strict";function t(t){return this.core=i(t).data("lightGallery"),this.$el=i(t),!(this.core.$items.length<2)&&(this.core.s=i.extend({},e,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)}var e={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"};t.prototype.init=function(){var t=this;t.core.s.autoplayControls&&t.controls(),t.core.s.progressBar&&t.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),t.progress(),t.core.s.autoplay&&t.$el.one("onSlideItemLoad.lg.tm",function(){t.startlAuto()}),t.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){t.interval&&(t.cancelAuto(),t.canceledOnTouch=!0)}),t.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!t.interval&&t.canceledOnTouch&&(t.startlAuto(),t.canceledOnTouch=!1)})},t.prototype.progress=function(){var t,e,i=this;i.$el.on("onBeforeSlide.lg.tm",function(){i.core.s.progressBar&&i.fromAuto&&(t=i.core.$outer.find(".lg-progress-bar"),e=i.core.$outer.find(".lg-progress"),i.interval&&(e.removeAttr("style"),t.removeClass("lg-start"),setTimeout(function(){e.css("transition","width "+(i.core.s.speed+i.core.s.pause)+"ms ease 0s"),t.addClass("lg-start")},20))),i.fromAuto||i.core.s.fourceAutoplay||i.cancelAuto(),i.fromAuto=!1})},t.prototype.controls=function(){var t=this;i(this.core.s.appendAutoplayControlsTo).append('<button type="button" aria-label="Toggle autoplay" class="lg-autoplay-button lg-icon"></button>'),t.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){i(t.core.$outer).hasClass("lg-show-autoplay")?(t.cancelAuto(),t.core.s.fourceAutoplay=!1):t.interval||(t.startlAuto(),t.core.s.fourceAutoplay=t.fourceAutoplayTemp)})},t.prototype.startlAuto=function(){var t=this;t.core.$outer.find(".lg-progress").css("transition","width "+(t.core.s.speed+t.core.s.pause)+"ms ease 0s"),t.core.$outer.addClass("lg-show-autoplay"),t.core.$outer.find(".lg-progress-bar").addClass("lg-start"),t.interval=setInterval(function(){t.core.index+1<t.core.$items.length?t.core.index++:t.core.index=0,t.fromAuto=!0,t.core.slide(t.core.index,!1,!1,"next")},t.core.s.speed+t.core.s.pause)},t.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},t.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},i.fn.lightGallery.modules.autoplay=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(o){!function(){"use strict";var e={fullScreen:!0};function i(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function t(t){return this.core=o(t).data("lightGallery"),this.$el=o(t),this.core.s=o.extend({},e,this.core.s),this.init(),this}t.prototype.init=function(){this.core.s.fullScreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(this.core.$outer.find(".lg-toolbar").append('<button type="button" aria-label="Toggle fullscreen" class="lg-fullscreen lg-icon"></button>'),this.fullScreen())},t.prototype.requestFullscreen=function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},t.prototype.fullScreen=function(){var t=this;o(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){t.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){i()?t.exitFullscreen():t.requestFullscreen()})},t.prototype.destroy=function(){i()&&this.exitFullscreen(),o(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},o.fn.lightGallery.modules.fullscreen=t}()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(r){!function(){"use strict";function t(t){return this.core=r(t).data("lightGallery"),this.$el=r(t),this.core.s=r.extend({},e,this.core.s),this.core.s.pager&&1<this.core.$items.length&&this.init(),this}var e={pager:!1};t.prototype.init=function(){var o,t,e,i=this,s="";if(i.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),i.core.s.dynamic)for(var n=0;n<i.core.s.dynamicEl.length;n++)s+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+i.core.s.dynamicEl[n].thumb+'" /></div></span>';else i.core.$items.each(function(){i.core.s.exThumbImage?s+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+r(this).attr(i.core.s.exThumbImage)+'" /></div></span>':s+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+r(this).find("img").attr("src")+'" /></div></span>'});(t=i.core.$outer.find(".lg-pager-outer")).html(s),(o=i.core.$outer.find(".lg-pager-cont")).on("click.lg touchend.lg",function(){var t=r(this);i.core.index=t.index(),i.core.slide(i.core.index,!1,!0,!1)}),t.on("mouseover.lg",function(){clearTimeout(e),t.addClass("lg-pager-hover")}),t.on("mouseout.lg",function(){e=setTimeout(function(){t.removeClass("lg-pager-hover")})}),i.core.$el.on("onBeforeSlide.lg.tm",function(t,e,i){o.removeClass("lg-pager-active"),o.eq(i).addClass("lg-pager-active")})},t.prototype.destroy=function(){},r.fn.lightGallery.modules.pager=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(a){!function(){"use strict";function t(t){return this.core=a(t).data("lightGallery"),this.core.s=a.extend({},e,this.core.s),this.$el=a(t),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this}var e={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0};t.prototype.init=function(){var t=this;this.core.s.thumbnail&&1<this.core.$items.length&&(this.core.s.showThumbByDefault&&setTimeout(function(){t.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},t.prototype.build=function(){var t,s=this,n="",r="";switch(this.core.s.vimeoThumbSize){case"thumbnail_large":r="640";break;case"thumbnail_medium":r="200x150";break;case"thumbnail_small":r="100x75"}function e(t,e,i){var o,t=s.core.isVideo(t,i)||{},i="";t.youtube||t.vimeo||t.dailymotion?t.youtube?o=s.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+t.youtube[1]+"/"+s.core.s.youtubeThumbSize+".jpg":e:t.vimeo?s.core.s.loadVimeoThumbnail?(o="//i.vimeocdn.com/video/error_"+r+".jpg",i=t.vimeo[1]):o=e:t.dailymotion&&(o=s.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+t.dailymotion[1]:e):o=e,n+='<div data-vimeo-id="'+i+'" class="lg-thumb-item" style="width:'+s.core.s.thumbWidth+"px; height: "+s.core.s.thumbHeight+"; margin-right: "+s.core.s.thumbMargin+'px"><img src="'+o+'" /></div>',i=""}if(s.core.$outer.addClass("lg-has-thumb"),s.core.$outer.find(".lg").append('<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>'),s.$thumbOuter=s.core.$outer.find(".lg-thumb-outer"),s.thumbOuterWidth=s.$thumbOuter.width(),s.core.s.animateThumb&&s.core.$outer.find(".lg-thumb").css({width:s.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&s.$thumbOuter.css("height",s.core.s.thumbContHeight+"px"),s.core.s.dynamic)for(var i=0;i<s.core.s.dynamicEl.length;i++)e(s.core.s.dynamicEl[i].src,s.core.s.dynamicEl[i].thumb,i);else s.core.$items.each(function(t){s.core.s.exThumbImage?e(a(this).attr("href")||a(this).attr("data-src"),a(this).attr(s.core.s.exThumbImage),t):e(a(this).attr("href")||a(this).attr("data-src"),a(this).find("img").attr("src"),t)});s.core.$outer.find(".lg-thumb").html(n),(t=s.core.$outer.find(".lg-thumb-item")).each(function(){var e=a(this),t=e.attr("data-vimeo-id");t&&a.getJSON("//www.vimeo.com/api/v2/video/"+t+".json?callback=?",{format:"json"},function(t){e.find("img").attr("src",t[0][s.core.s.vimeoThumbSize])})}),t.eq(s.core.index).addClass("active"),s.core.$el.on("onBeforeSlide.lg.tm",function(){t.removeClass("active"),t.eq(s.core.index).addClass("active")}),t.on("click.lg touchend.lg",function(){var t=a(this);setTimeout(function(){(!s.thumbClickable||s.core.lgBusy)&&s.core.doCss()||(s.core.index=t.index(),s.core.slide(s.core.index,!1,!0,!1))},50)}),s.core.$el.on("onBeforeSlide.lg.tm",function(){s.animateThumb(s.core.index)}),a(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){s.animateThumb(s.core.index),s.thumbOuterWidth=s.$thumbOuter.width()},200)})},t.prototype.setTranslate=function(t){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+t+"px, 0px, 0px)"})},t.prototype.animateThumb=function(t){var e,i=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){switch(this.core.s.currentPagerPosition){case"left":e=0;break;case"middle":e=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":e=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*t-1-e,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(i.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||i.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||i.css("left",-this.left+"px"),this.setTranslate(this.left)}},t.prototype.enableThumbDrag=function(){var e=this,i=0,o=0,s=!1,n=!1,r=0;e.$thumbOuter.addClass("lg-grab"),e.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),i=t.pageX,s=!0,e.core.$outer.scrollLeft+=1,--e.core.$outer.scrollLeft,e.thumbClickable=!1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.thumb",function(t){s&&(r=e.left,n=!0,o=t.pageX,e.$thumbOuter.addClass("lg-dragging"),(r-=o-i)>e.thumbTotalWidth-e.thumbOuterWidth&&(r=e.thumbTotalWidth-e.thumbOuterWidth),r<0&&(r=0),e.setTranslate(r))}),a(window).on("mouseup.lg.thumb",function(){n?(n=!1,e.$thumbOuter.removeClass("lg-dragging"),e.left=r,Math.abs(o-i)<e.core.s.swipeThreshold&&(e.thumbClickable=!0)):e.thumbClickable=!0,s&&(s=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},t.prototype.enableThumbSwipe=function(){var e=this,i=0,o=0,s=!1,n=0;e.core.$outer.find(".lg-thumb").on("touchstart.lg",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),i=t.originalEvent.targetTouches[0].pageX,e.thumbClickable=!1)}),e.core.$outer.find(".lg-thumb").on("touchmove.lg",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),o=t.originalEvent.targetTouches[0].pageX,s=!0,e.$thumbOuter.addClass("lg-dragging"),n=e.left,(n-=o-i)>e.thumbTotalWidth-e.thumbOuterWidth&&(n=e.thumbTotalWidth-e.thumbOuterWidth),n<0&&(n=0),e.setTranslate(n))}),e.core.$outer.find(".lg-thumb").on("touchend.lg",function(){e.thumbTotalWidth>e.thumbOuterWidth&&s?(s=!1,e.$thumbOuter.removeClass("lg-dragging"),Math.abs(o-i)<e.core.s.swipeThreshold&&(e.thumbClickable=!0),e.left=n):e.thumbClickable=!0})},t.prototype.toogle=function(){var t=this;t.core.s.toogleThumb&&(t.core.$outer.addClass("lg-can-toggle"),t.$thumbOuter.append('<button type="button" aria-label="Toggle thumbnails" class="lg-toogle-thumb lg-icon"></button>'),t.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){t.core.$outer.toggleClass("lg-thumb-open")}))},t.prototype.thumbkeyPress=function(){var e=this;a(window).on("keydown.lg.thumb",function(t){38===t.keyCode?(t.preventDefault(),e.core.$outer.addClass("lg-thumb-open")):40===t.keyCode&&(t.preventDefault(),e.core.$outer.removeClass("lg-thumb-open"))})},t.prototype.destroy=function(){this.core.s.thumbnail&&1<this.core.$items.length&&(a(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},a.fn.lightGallery.modules.Thumbnail=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(d){!function(){"use strict";function t(t){return this.core=d(t).data("lightGallery"),this.$el=d(t),this.core.s=d.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this}var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}};t.prototype.init=function(){var o=this;o.core.$el.on("hasVideo.lg.tm",function(t,e,i,o){var s=this;if(s.core.$slide.eq(e).find(".lg-video").append(s.loadVideo(i,"lg-object",!0,e,o)),o)if(s.core.s.videojs)try{videojs(s.core.$slide.eq(e).find(".lg-html5").get(0),s.core.s.videojsOptions,function(){!s.videoLoaded&&s.core.s.autoplayFirstVideo&&this.play()})}catch(t){console.error("Make sure you have included videojs")}else!s.videoLoaded&&s.core.s.autoplayFirstVideo&&s.core.$slide.eq(e).find(".lg-html5").get(0).play()}.bind(this)),o.core.$el.on("onAferAppendSlide.lg.tm",function(t,e){e=this.core.$slide.eq(e).find(".lg-video-cont");e.hasClass("lg-has-iframe")||(e.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}.bind(this)),o.core.doCss()&&1<o.core.$items.length&&(o.core.s.enableSwipe||o.core.s.enableDrag)?o.core.$el.on("onSlideClick.lg.tm",function(){var t=o.core.$slide.eq(o.core.index);o.loadVideoOnclick(t)}):o.core.$slide.on("click.lg",function(){o.loadVideoOnclick(d(this))}),o.core.$el.on("onBeforeSlide.lg.tm",function(t,e,i){var o=this,s=o.core.$slide.eq(e),n=s.find(".lg-youtube").get(0),r=s.find(".lg-vimeo").get(0),a=s.find(".lg-dailymotion").get(0),e=s.find(".lg-vk").get(0),l=s.find(".lg-html5").get(0);if(n)n.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(r)try{$f(r).api("pause")}catch(t){console.error("Make sure you have included froogaloop2 js")}else if(a)a.contentWindow.postMessage("pause","*");else if(l)if(o.core.s.videojs)try{videojs(l).pause()}catch(t){console.error("Make sure you have included videojs")}else l.pause();e&&d(e).attr("src",d(e).attr("src").replace("&autoplay","&noplay"));e=o.core.s.dynamic?o.core.s.dynamicEl[i].src:o.core.$items.eq(i).attr("href")||o.core.$items.eq(i).attr("data-src");i=o.core.isVideo(e,i)||{};(i.youtube||i.vimeo||i.dailymotion||i.vk)&&o.core.$outer.addClass("lg-hide-download")}.bind(this)),o.core.$el.on("onAfterSlide.lg.tm",function(t,e){o.core.$slide.eq(e).removeClass("lg-video-playing")}),o.core.s.autoplayFirstVideo&&o.core.$el.on("onAferAppendSlide.lg.tm",function(t,e){var i;o.core.lGalleryOn||(i=o.core.$slide.eq(e),setTimeout(function(){o.loadVideoOnclick(i)},100))})},t.prototype.loadVideo=function(t,e,i,o,s){var n=this,r="",a=1,l="",o=this.core.isVideo(t,o)||{},n=n.core.s.dynamic?n.core.s.dynamicEl[n.core.index].title:n.core.$items.eq(n.core.index).attr("title")||n.core.$items.eq(n.core.index).find("img").first().attr("alt");return n=n?'title="'+n+'"':"",i&&(a=!this.videoLoaded&&this.core.s.autoplayFirstVideo?1:0),o.youtube?(l="?wmode=opaque&autoplay="+a+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(l=l+"&"+d.param(this.core.s.youtubePlayerParams)),r='<iframe class="lg-video-object lg-youtube '+e+'" '+n+' width="560" height="315" src="//www.youtube.com/embed/'+o.youtube[1]+l+'" frameborder="0" allowfullscreen></iframe>'):o.vimeo?(l="?autoplay="+a+"&api=1",this.core.s.vimeoPlayerParams&&(l=l+"&"+d.param(this.core.s.vimeoPlayerParams)),r='<iframe class="lg-video-object lg-vimeo '+e+'" '+n+' width="560" height="315" src="//player.vimeo.com/video/'+o.vimeo[1]+l+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):o.dailymotion?(l="?wmode=opaque&autoplay="+a+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(l=l+"&"+d.param(this.core.s.dailymotionPlayerParams)),r='<iframe class="lg-video-object lg-dailymotion '+e+'" '+n+' width="560" height="315" src="//www.dailymotion.com/embed/video/'+o.dailymotion[1]+l+'" frameborder="0" allowfullscreen></iframe>'):o.html5?("."!==(i=s.substring(0,1))&&"#"!==i||(s=d(s).html()),r=s):o.vk&&(l="&autoplay="+a,this.core.s.vkPlayerParams&&(l=l+"&"+d.param(this.core.s.vkPlayerParams)),r='<iframe class="lg-video-object lg-vk '+e+'" '+n+' width="560" height="315" src="//vk.com/video_ext.php?'+o.vk[1]+l+'" frameborder="0" allowfullscreen></iframe>'),r},t.prototype.loadVideoOnclick=function(i){var o=this;if(i.find(".lg-object").hasClass("lg-has-poster")&&i.find(".lg-object").is(":visible"))if(i.hasClass("lg-has-video")){var t=i.find(".lg-youtube").get(0),e=i.find(".lg-vimeo").get(0),s=i.find(".lg-dailymotion").get(0),n=i.find(".lg-html5").get(0);if(t)t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(e)try{$f(e).api("play")}catch(t){console.error("Make sure you have included froogaloop2 js")}else if(s)s.contentWindow.postMessage("play","*");else if(n)if(o.core.s.videojs)try{videojs(n).play()}catch(t){console.error("Make sure you have included videojs")}else n.play();i.addClass("lg-video-playing")}else{i.addClass("lg-video-playing lg-has-video");s=function(t,e){if(i.find(".lg-video").append(o.loadVideo(t,"",!1,o.core.index,e)),e)if(o.core.s.videojs)try{videojs(o.core.$slide.eq(o.core.index).find(".lg-html5").get(0),o.core.s.videojsOptions,function(){this.play()})}catch(t){console.error("Make sure you have included videojs")}else o.core.$slide.eq(o.core.index).find(".lg-html5").get(0).play()};o.core.s.dynamic?s(o.core.s.dynamicEl[o.core.index].src,o.core.s.dynamicEl[o.core.index].html):s(o.core.$items.eq(o.core.index).attr("href")||o.core.$items.eq(o.core.index).attr("data-src"),o.core.$items.eq(o.core.index).attr("data-html"));s=i.find(".lg-object");i.find(".lg-video").append(s),i.find(".lg-video-object").hasClass("lg-html5")||(i.removeClass("lg-complete"),i.find(".lg-video-object").on("load.lg error.lg",function(){i.addClass("lg-complete")}))}},t.prototype.destroy=function(){this.videoLoaded=!1},d.fn.lightGallery.modules.video=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(h){!function(){"use strict";function t(t){return this.core=h(t).data("lightGallery"),this.core.s=h.extend({},o,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=h(window).width()/2,this.pageY=h(window).height()/2+h(window).scrollTop()),this}var e,i,o={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:(e=!1,(i=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./))&&parseInt(i[2],10)<54&&(e=!0),e)};t.prototype.init=function(){var n=this,t='<button type="button" aria-label="Zoom in" id="lg-zoom-in" class="lg-icon"></button><button type="button" aria-label="Zoom out" id="lg-zoom-out" class="lg-icon"></button>';n.core.s.actualSize&&(t+='<button type="button" aria-label="Actual size" id="lg-actual-size" class="lg-icon"></button>'),n.core.s.useLeftForZoom?n.core.$outer.addClass("lg-use-left-for-zoom"):n.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(t),n.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(t,e,i){var o=n.core.s.enableZoomAfter+i;h("body").hasClass("lg-from-hash")&&i?o=0:h("body").removeClass("lg-from-hash"),n.zoomabletimeout=setTimeout(function(){n.core.$slide.eq(e).addClass("lg-zoomable")},o+30)});function e(t){var e=n.core.$outer.find(".lg-current .lg-image"),i=(h(window).width()-e.prop("offsetWidth"))/2,o=(h(window).height()-e.prop("offsetHeight"))/2+h(window).scrollTop(),i=(t-1)*(n.pageX-i),o=(t-1)*(n.pageY-o);e.css("transform","scale3d("+t+", "+t+", 1)").attr("data-scale",t),(n.core.s.useLeftForZoom?e.parent().css({left:-i+"px",top:-o+"px"}):e.parent().css("transform","translate3d(-"+i+"px, -"+o+"px, 0)")).attr("data-x",i).attr("data-y",o)}function r(){1<a?n.core.$outer.addClass("lg-zoomed"):n.resetZoom(),a<1&&(a=1),e(a)}function o(t,e,i,o){var s=e.prop("offsetWidth"),e=n.core.s.dynamic?n.core.s.dynamicEl[i].width||e[0].naturalWidth||s:n.core.$items.eq(i).attr("data-width")||e[0].naturalWidth||s;n.core.$outer.hasClass("lg-zoomed")?a=1:s<e&&(a=e/s||2),o?(n.pageX=h(window).width()/2,n.pageY=h(window).height()/2+h(window).scrollTop()):(n.pageX=t.pageX||t.originalEvent.targetTouches[0].pageX,n.pageY=t.pageY||t.originalEvent.targetTouches[0].pageY),r(),setTimeout(function(){n.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)}var a=1,s=!1;n.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(t,e){var i=n.core.$slide.eq(e).find(".lg-image");i.on("dblclick",function(t){o(t,i,e)}),i.on("touchstart",function(t){s?(clearTimeout(s),s=null,o(t,i,e)):s=setTimeout(function(){s=null},300),t.preventDefault()})}),h(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){n.pageX=h(window).width()/2,n.pageY=h(window).height()/2+h(window).scrollTop(),e(a)}),h("#lg-zoom-out").on("click.lg",function(){n.core.$outer.find(".lg-current .lg-image").length&&(a-=n.core.s.scale,r())}),h("#lg-zoom-in").on("click.lg",function(){n.core.$outer.find(".lg-current .lg-image").length&&(a+=n.core.s.scale,r())}),h("#lg-actual-size").on("click.lg",function(t){o(t,n.core.$slide.eq(n.core.index).find(".lg-image"),n.core.index,!0)}),n.core.$el.on("onBeforeSlide.lg.tm",function(){a=1,n.resetZoom()}),n.zoomDrag(),n.zoomSwipe()},t.prototype.getCurrentTransform=function(t){if(!t)return 0;t=window.getComputedStyle(t,null),t=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";return"none"!==t?t.split("(")[1].split(")")[0].split(","):0},t.prototype.getCurrentRotation=function(t){if(!t)return 0;t=this.getCurrentTransform(t);return t?Math.round(Math.atan2(t[1],t[0])*(180/Math.PI)):0},t.prototype.getModifier=function(t,e,i){var o=t;t=Math.abs(t);var s=this.getCurrentTransform(i);if(!s)return 1;var n,i=1;return"X"===e?(n=Math.sign(parseFloat(s[0])),0===t||180===t?i=1:90===t&&(i=-90===o&&1===n||90===o&&-1===n?-1:1),i*=n):(n=Math.sign(parseFloat(s[3])),0===t||180===t?i=1:90===t&&(t=parseFloat(s[1]),s=parseFloat(s[2]),i=Math.sign(t*s*o*n)),i*=n),i},t.prototype.getImageSize=function(t,e,i){return 90===e&&(i="x"===i?"y":"x"),t.prop({y:"offsetHeight",x:"offsetWidth"}[i])},t.prototype.getDragCords=function(t,e){return 90===e?{x:t.pageY,y:t.pageX}:{x:t.pageX,y:t.pageY}},t.prototype.getSwipeCords=function(t,e){var i=t.originalEvent.targetTouches[0].pageX,t=t.originalEvent.targetTouches[0].pageY;return 90===e?{x:t,y:i}:{x:i,y:t}},t.prototype.getPossibleDragCords=function(t,e){var i=(this.core.$outer.find(".lg").height()-this.getImageSize(t,e,"y"))/2,o=Math.abs(this.getImageSize(t,e,"y")*Math.abs(t.attr("data-scale"))-this.core.$outer.find(".lg").height()+i),s=(this.core.$outer.find(".lg").width()-this.getImageSize(t,e,"x"))/2,t=Math.abs(this.getImageSize(t,e,"x")*Math.abs(t.attr("data-scale"))-this.core.$outer.find(".lg").width()+s);return 90===e?{minY:s,maxY:t,minX:i,maxX:o}:{minY:i,maxY:o,minX:s,maxX:t}},t.prototype.getDragAllowedAxises=function(t,e){var i=this.getImageSize(t,e,"y")*t.attr("data-scale")>this.core.$outer.find(".lg").height(),t=this.getImageSize(t,e,"x")*t.attr("data-scale")>this.core.$outer.find(".lg").width();return 90===e?{allowX:i,allowY:t}:{allowX:t,allowY:i}},t.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=h(window).width()/2,this.pageY=h(window).height()/2+h(window).scrollTop()},t.prototype.zoomSwipe=function(){var o,s=this,n={},r={},a=!1,l=!1,d=!1,c=0;s.core.$slide.on("touchstart.lg",function(t){var e;s.core.$outer.hasClass("lg-zoomed")&&(e=s.core.$slide.eq(s.core.index).find(".lg-object"),o=s.core.$slide.eq(s.core.index).find(".lg-img-rotate")[0],c=s.getCurrentRotation(o),e=s.getDragAllowedAxises(e,Math.abs(c)),d=e.allowY,((l=e.allowX)||d)&&(t.preventDefault(),n=s.getSwipeCords(t,Math.abs(c))))}),s.core.$slide.on("touchmove.lg",function(t){var e,i;s.core.$outer.hasClass("lg-zoomed")&&(e=s.core.$slide.eq(s.core.index).find(".lg-img-wrap"),t.preventDefault(),a=!0,r=s.getSwipeCords(t,Math.abs(c)),s.core.$outer.addClass("lg-zoom-dragging"),i=d?-Math.abs(e.attr("data-y"))+(r.y-n.y)*s.getModifier(c,"Y",o):-Math.abs(e.attr("data-y")),t=l?-Math.abs(e.attr("data-x"))+(r.x-n.x)*s.getModifier(c,"X",o):-Math.abs(e.attr("data-x")),(15<Math.abs(r.x-n.x)||15<Math.abs(r.y-n.y))&&(s.core.s.useLeftForZoom?e.css({left:t+"px",top:i+"px"}):e.css("transform","translate3d("+t+"px, "+i+"px, 0)")))}),s.core.$slide.on("touchend.lg",function(){s.core.$outer.hasClass("lg-zoomed")&&a&&(a=!1,s.core.$outer.removeClass("lg-zoom-dragging"),s.touchendZoom(n,r,l,d,c))})},t.prototype.zoomDrag=function(){var o,s=this,n={},r={},a=!1,l=!1,d=!1,c=!1,u=0;s.core.$slide.on("mousedown.lg.zoom",function(t){o=s.core.$slide.eq(s.core.index).find(".lg-img-rotate")[0],u=s.getCurrentRotation(o);var e=s.core.$slide.eq(s.core.index).find(".lg-object"),e=s.getDragAllowedAxises(e,Math.abs(u));c=e.allowY,d=e.allowX,s.core.$outer.hasClass("lg-zoomed")&&h(t.target).hasClass("lg-object")&&(d||c)&&(t.preventDefault(),n=s.getDragCords(t,Math.abs(u)),a=!0,s.core.$outer.scrollLeft+=1,--s.core.$outer.scrollLeft,s.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),h(window).on("mousemove.lg.zoom",function(t){var e,i;a&&(e=s.core.$slide.eq(s.core.index).find(".lg-img-wrap"),l=!0,r=s.getDragCords(t,Math.abs(u)),s.core.$outer.addClass("lg-zoom-dragging"),i=c?-Math.abs(e.attr("data-y"))+(r.y-n.y)*s.getModifier(u,"Y",o):-Math.abs(e.attr("data-y")),t=d?-Math.abs(e.attr("data-x"))+(r.x-n.x)*s.getModifier(u,"X",o):-Math.abs(e.attr("data-x")),s.core.s.useLeftForZoom?e.css({left:t+"px",top:i+"px"}):e.css("transform","translate3d("+t+"px, "+i+"px, 0)"))}),h(window).on("mouseup.lg.zoom",function(t){a&&(a=!1,s.core.$outer.removeClass("lg-zoom-dragging"),!l||n.x===r.x&&n.y===r.y||(r=s.getDragCords(t,Math.abs(u)),s.touchendZoom(n,r,d,c,u)),l=!1),s.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.touchendZoom=function(t,e,i,o,s){var n=this,r=n.core.$slide.eq(n.core.index).find(".lg-img-wrap"),a=n.core.$slide.eq(n.core.index).find(".lg-object"),l=n.core.$slide.eq(n.core.index).find(".lg-img-rotate")[0],d=-Math.abs(r.attr("data-x"))+(e.x-t.x)*n.getModifier(s,"X",l),l=-Math.abs(r.attr("data-y"))+(e.y-t.y)*n.getModifier(s,"Y",l),s=n.getPossibleDragCords(a,Math.abs(s));(15<Math.abs(e.x-t.x)||15<Math.abs(e.y-t.y))&&(o&&(l<=-s.maxY?l=-s.maxY:l>=-s.minY&&(l=-s.minY)),i&&(d<=-s.maxX?d=-s.maxX:d>=-s.minX&&(d=-s.minX)),o?r.attr("data-y",Math.abs(l)):l=-Math.abs(r.attr("data-y")),i?r.attr("data-x",Math.abs(d)):d=-Math.abs(r.attr("data-x")),n.core.s.useLeftForZoom?r.css({left:d+"px",top:l+"px"}):r.css("transform","translate3d("+d+"px, "+l+"px, 0)"))},t.prototype.destroy=function(){var t=this;t.core.$el.off(".lg.zoom"),h(window).off(".lg.zoom"),t.core.$slide.off(".lg.zoom"),t.core.$el.off(".lg.tm.zoom"),t.resetZoom(),clearTimeout(t.zoomabletimeout),t.zoomabletimeout=!1},h.fn.lightGallery.modules.zoom=t}()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(i){!function(){"use strict";function t(t){return this.core=i(t).data("lightGallery"),this.core.s=i.extend({},e,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this}var e={hash:!0};t.prototype.init=function(){var e,o=this;o.core.$el.on("onAfterSlide.lg.tm",function(t,e,i){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+o.core.s.galleryId+"&slide="+i):window.location.hash="lg="+o.core.s.galleryId+"&slide="+i}),i(window).on("hashchange.lg.hash",function(){e=window.location.hash;var t=parseInt(e.split("&slide=")[1],10);-1<e.indexOf("lg="+o.core.s.galleryId)?o.core.slide(t,!1,!1):o.core.lGalleryOn&&o.core.destroy()})},t.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},i.fn.lightGallery.modules.hash=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(s){!function(){"use strict";function t(t){return this.core=s(t).data("lightGallery"),this.core.s=s.extend({},e,this.core.s),this.core.s.share&&this.init(),this}var e={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",pinterest:!0,pinterestDropdownText:"Pinterest"};t.prototype.init=function(){var o=this,t='<button type="button" aria-label="Share" id="lg-share" class="lg-icon" aria-haspopup="true" aria-expanded="false"><ul class="lg-dropdown" style="position: absolute;">';t+=o.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",t+=o.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",t+=o.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",t+="</ul></button>",this.core.$outer.find(".lg-toolbar").append(t),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),s("#lg-share").on("click.lg",function(){o.core.$outer.toggleClass("lg-dropdown-active");var t=s("#lg-share").attr("aria-expanded");s("#lg-share").attr("aria-expanded","true"!==t)}),s("#lg-dropdown-overlay").on("click.lg",function(){o.core.$outer.removeClass("lg-dropdown-active"),s("#lg-share").attr("aria-expanded",!1)}),o.core.$el.on("onAfterSlide.lg.tm",function(t,e,i){setTimeout(function(){s("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o.getSahreProps(i,"facebookShareUrl")||window.location.href)),s("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+o.getSahreProps(i,"tweetText")+"&url="+encodeURIComponent(o.getSahreProps(i,"twitterShareUrl")||window.location.href)),s("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(o.getSahreProps(i,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(o.getSahreProps(i,"src"))+"&description="+o.getSahreProps(i,"pinterestText"))},100)})},t.prototype.getSahreProps=function(t,e){var i;return this.core.s.dynamic?this.core.s.dynamicEl[t][e]:(i=this.core.$items.eq(t).attr("href"),t=this.core.$items.eq(t).data(e),"src"===e&&i||t)},t.prototype.destroy=function(){},s.fn.lightGallery.modules.share=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(i){!function(){"use strict";function t(t){return this.core=i(t).data("lightGallery"),this.core.s=i.extend({},e,this.core.s),this.core.s.rotate&&this.core.doCss()&&this.init(),this}var e={rotate:!0,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0};t.prototype.buildTemplates=function(){var t="";this.core.s.flipVertical&&(t+='<button aria-label="Flip vertical" class="lg-flip-ver lg-icon"></button>'),this.core.s.flipHorizontal&&(t+='<button aria-label="flip horizontal" class="lg-flip-hor lg-icon"></button>'),this.core.s.rotateLeft&&(t+='<button aria-label="Rotate left" class="lg-rotate-left lg-icon"></button>'),this.core.s.rotateRight&&(t+='<button aria-label="Rotate right" class="lg-rotate-right lg-icon"></button>'),this.core.$outer.find(".lg-toolbar").append(t)},t.prototype.init=function(){var o=this;this.buildTemplates(),this.rotateValuesList={},this.core.$el.on("onAferAppendSlide.lg.tm.rotate",function(t,e){o.core.$slide.eq(e).find(".lg-img-wrap").wrap('<div class="lg-img-rotate"></div>')}),this.core.$outer.find(".lg-rotate-left").on("click.lg",this.rotateLeft.bind(this)),this.core.$outer.find(".lg-rotate-right").on("click.lg",this.rotateRight.bind(this)),this.core.$outer.find(".lg-flip-hor").on("click.lg",this.flipHorizontal.bind(this)),this.core.$outer.find(".lg-flip-ver").on("click.lg",this.flipVertical.bind(this)),this.core.$el.on("onBeforeSlide.lg.tm.rotate",function(t,e,i){o.rotateValuesList[i]||(o.rotateValuesList[i]={rotate:0,flipHorizontal:1,flipVertical:1})})},t.prototype.applyStyles=function(){this.core.$slide.eq(this.core.index).find(".lg-img-rotate").css("transform","rotate("+this.rotateValuesList[this.core.index].rotate+"deg) scale3d("+this.rotateValuesList[this.core.index].flipHorizontal+", "+this.rotateValuesList[this.core.index].flipVertical+", 1)")},t.prototype.getCurrentRotation=function(t){if(!t)return 0;t=window.getComputedStyle(t,null),t=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";if("none"!==t){t=t.split("(")[1].split(")")[0].split(",");if(t){t=Math.round(Math.atan2(t[1],t[0])*(180/Math.PI));return t<0?t+360:t}}return 0},t.prototype.rotateLeft=function(){this.rotateValuesList[this.core.index].rotate-=90,this.applyStyles()},t.prototype.rotateRight=function(){this.rotateValuesList[this.core.index].rotate+=90,this.applyStyles()},t.prototype.flipHorizontal=function(){var t=this.core.$slide.eq(this.core.index).find(".lg-img-rotate")[0],t=this.getCurrentRotation(t),t=90!==t&&270!==t?"flipHorizontal":"flipVertical";this.rotateValuesList[this.core.index][t]*=-1,this.applyStyles()},t.prototype.flipVertical=function(){var t=this.core.$slide.eq(this.core.index).find(".lg-img-rotate")[0],t=this.getCurrentRotation(t),t=90!==t&&270!==t?"flipVertical":"flipHorizontal";this.rotateValuesList[this.core.index][t]*=-1,this.applyStyles()},t.prototype.destroy=function(){this.core.$el.off(".lg.tm.rotate"),this.rotateValuesList={}},i.fn.lightGallery.modules.rotate=t}()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(c){function e(t){var e,i=t||window.event,o=m.call(arguments,1),s=0,n=0,r=0,a=0,l=0,d=0;if((t=c.event.fix(i)).type="mousewheel","detail"in i&&(r=-1*i.detail),"wheelDelta"in i&&(r=i.wheelDelta),"wheelDeltaY"in i&&(r=i.wheelDeltaY),"wheelDeltaX"in i&&(n=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(n=-1*r,r=0),s=0===r?n:r,"deltaY"in i&&(s=r=-1*i.deltaY),"deltaX"in i&&(n=i.deltaX,0===r&&(s=-1*n)),0!==r||0!==n){1===i.deltaMode?(s*=e=c.data(this,"mousewheel-line-height"),r*=e,n*=e):2===i.deltaMode&&(s*=e=c.data(this,"mousewheel-page-height"),r*=e,n*=e);var a=Math.max(Math.abs(r),Math.abs(n));return f&&!(a<f)||h(i,f=a)&&(f/=40),h(i,a)&&(s/=40,n/=40,r/=40),s=Math[1<=s?"floor":"ceil"](s/f),n=Math[1<=n?"floor":"ceil"](n/f),r=Math[1<=r?"floor":"ceil"](r/f),g.settings.normalizeOffset&&this.getBoundingClientRect&&(a=this.getBoundingClientRect(),l=t.clientX-a.left,d=t.clientY-a.top),t.deltaX=n,t.deltaY=r,t.deltaFactor=f,t.offsetX=l,t.offsetY=d,t.deltaMode=0,o.unshift(t,s,n,r),p&&clearTimeout(p),p=setTimeout(u,200),(c.event.dispatch||c.event.handle).apply(this,o)}}function u(){f=null}function h(t,e){return g.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var p,f,t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(c.event.fixHooks)for(var o=t.length;o;)c.event.fixHooks[t[--o]]=c.event.mouseHooks;var g=c.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e;c.data(this,"mousewheel-line-height",g.getLineHeight(this)),c.data(this,"mousewheel-page-height",g.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height"),c.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var e=c(t),t=e["offsetParent"in c.fn?"offsetParent":"parent"]();return t.length||(t=c("body")),parseInt(t.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(t){return c(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};c.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});