text: Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=[],s=arguments[1],o=0;o<n;o++)if(o in e){var a=e[o];t.call(s,a,o,e)&&i.push(a)}return i}),function(t){function e(t,e,n){var i=e[1]-e[0],s=n[1]-n[0];return e[0]-n[0]>=0&&e[0]-n[0]<s||e[0]-n[0]<=0&&e[0]+i>n[0]}var n={spytarget:window,scrolltopoffset:0,scrollbehavior:"smooth",scrollduration:500,highlightclass:"selected",enableprogress:"",mincontentheight:30},i=/iPhone|iPad|iPod/i.test(navigator.userAgent);t.fn.ddscrollSpy=function(s){var o=t(window),a=t(window.opera?"CSS1Compat"==document.compatMode?"html":"body":"html,body");return this.each(function(){function r(e){var n=e.find('a[href^="#"]');h=[],p="",b=0,n.each(function(e){var n=t(this),i=t(n.attr("href")),s=i.get(0),o=null;if(0==i.length)return!0;n.off("click.goto").on("click.goto",function(t){if(c.spytarget!=window||"jump"!=c.scrollbehavior&&history.pushState||(window.location.hash=n.attr("href")),"smooth"==c.scrollbehavior||0!=c.scrolltopoffset){var i=c.spytarget==window?a:f,s=1;"smooth"!=c.scrollbehavior||!history.pushState&&c.spytarget==window?i.prop("scrollTop",h[e].offsettop+s):i.animate({scrollTop:h[e].offsettop+s},c.scrollduration,function(){c.spytarget==window&&history.pushState&&history.pushState(null,null,n.attr("href"))}),t.preventDefault()}}),c.enableprogress&&(0==n.find("div."+c.enableprogress).length&&(n.css({position:"relative",overflow:"hidden"}),t('<div class="'+c.enableprogress+'" style="position:absolute; left: -100%" />').appendTo(n)),o=n.find("div."+c.enableprogress));var r=c.spytarget==window?i.offset().top:s.offsetParent==c.spytarget?s.offsetTop:s.offsetTop-c.spytarget.offsetTop;r+=c.scrolltopoffset;var l=parseInt(i.data("spyrange"))>0?parseInt(i.data("spyrange")):i.outerHeight()||c.mincontentheight,d=r+l;-1==u&&d>v-m&&(u=e),h.push({$menuitem:n,$des:i,offsettop:r,height:l,$progress:o,index:e})}),h.length>0&&(b=h[h.length-1].offsettop+h[h.length-1].height)}function l(){if(0!=h.length){var t=p,n=f.scrollTop(),i=h.filter(function(t,i){return e(t,[t.offsettop,t.offsettop+t.height],[n,n+m])});if(i.length>0){if(p=i.shift(),t&&t!=p&&t.$menuitem.removeClass(c.highlightclass),p.$menuitem.hasClass(c.highlightclass)||p.$menuitem.addClass(c.highlightclass),p.index>=u&&n>=v-m){if(c.enableprogress)for(var s=0;s<h.length;s++)h[s].$menuitem.find("div."+c.enableprogress).css("left",0);return p.$menuitem.removeClass(c.highlightclass),p=h[h.length-1],void(p.$menuitem.hasClass(c.highlightclass)||p.$menuitem.addClass(c.highlightclass))}if(c.enableprogress){var o=(n-p.offsettop)/p.height*100;p.$menuitem.find("div."+c.enableprogress).css("left",-100+o+"%");for(var s=0;s<h.length;s++)s<p.index?h[s].$menuitem.find("div."+c.enableprogress).css("left",0):s>p.index&&h[s].$menuitem.find("div."+c.enableprogress).css("left","-100%")}}else if(n>b&&c.enableprogress){p.$menuitem.removeClass(c.highlightclass);for(var s=0;s<h.length;s++)h[s].$menuitem.find("div."+c.enableprogress).css("left",0)}}}function d(){if(0!=h.length){h[0].$menu;m=f.outerHeight(),v=c.spytarget==window?a.get(0).scrollHeight:f.get(0).scrollHeight,b=0,u=-1;for(var t=0;t<h.length;t++){var e=h[t].$des,n=e.get(0),i=c.spytarget==window?e.offset().top:n.offsetParent==c.spytarget?n.offsetTop:n.offsetTop-c.spytarget.offsetTop;if(i+=c.scrolltopoffset,h[t].offsettop=i,h[t].height=parseInt(e.data("spyrange"))>0?parseInt(e.data("spyrange")):e.outerHeight()||c.mincontentheight,c.enableprogress){var s=i+h[t].height;-1==u&&s>v-m&&(u=t)}}b=h[h.length-1].offsettop+h[h.length-1].height}}var c=t.extend({},n,s);c.enableprogress=i?"":c.enableprogress;var h=[],p="",u=-1,f=t(c.spytarget).eq(0),m=f.outerHeight(),v=c.spytarget==window?a.get(0).scrollHeight:f.get(0).scrollHeight,g=t(this),b=0;r(g),g.on("updatespy",function(){r(g),l()}),f.on("scroll resize",function(){l()}),l(),o.on("load resize",function(){d()})})}}(jQuery),function(){var t;t=window.jQuery||window.Zepto||window.$,t.fn.fancySelect=function(e){var n,i;return null==e&&(e={}),i=t.extend({forceiOS:!1,includeBlank:!1,optionTemplate:function(t){return t.text()},triggerTemplate:function(t){return t.text()}},e),n=!!navigator.userAgent.match(/iP(hone|od|ad)/i),this.each(function(){var e,s,o,a,r,l,d;if(a=t(this),!a.hasClass("fancified")&&"SELECT"===a[0].tagName)return a.addClass("fancified"),a.css({width:1,height:1,display:"block",position:"absolute",top:0,left:0,opacity:0}),a.wrap('<div class="fancy-select">'),d=a.parent(),a.data("class")&&d.addClass(a.data("class")),d.append('<div class="trigger">'),n&&!i.forceiOS||d.append('<ul class="options">'),r=d.find(".trigger"),o=d.find(".options"),s=a.prop("disabled"),s&&d.addClass("disabled"),l=function(){var t;return t=i.triggerTemplate(a.find(":selected")),r.html(t)},a.on("blur.fs",function(){if(r.hasClass("open"))return setTimeout(function(){return r.trigger("close.fs")},120)}),r.on("close.fs",function(){return r.removeClass("open"),o.removeClass("open")}),r.on("click.fs",function(){var e;if(!s)if(r.toggleClass("open"),n&&!i.forceiOS){if(r.hasClass("open"))return a.focus()}else if(r.hasClass("open")&&(e=r.parent(),e.offsetParent(),e.offset().top+e.outerHeight()+o.outerHeight()+20>t(window).height()+t(window).scrollTop()?o.addClass("overflowing"):o.removeClass("overflowing")),o.toggleClass("open"),!n)return a.focus()}),a.on("enable",function(){return a.prop("disabled",!1),d.removeClass("disabled"),s=!1,e()}),a.on("disable",function(){return a.prop("disabled",!0),d.addClass("disabled"),s=!0}),a.on("change.fs",function(t){return t.originalEvent&&t.originalEvent.isTrusted?t.stopPropagation():l()}),a.on("keydown",function(t){var e,n,i;if(i=t.which,e=o.find(".hover"),e.removeClass("hover"),o.hasClass("open")){if(38===i?(t.preventDefault(),e.length&&e.index()>0?e.prev().addClass("hover"):o.find("li:last-child").addClass("hover")):40===i?(t.preventDefault(),e.length&&e.index()<o.find("li").length-1?e.next().addClass("hover"):o.find("li:first-child").addClass("hover")):27===i?(t.preventDefault(),r.trigger("click.fs")):13===i||32===i?(t.preventDefault(),e.trigger("mousedown.fs")):9===i&&r.hasClass("open")&&r.trigger("close.fs"),n=o.find(".hover"),n.length)return o.scrollTop(0),o.scrollTop(n.position().top-12)}else if(13===i||32===i||38===i||40===i)return t.preventDefault(),r.trigger("click.fs")}),o.on("mousedown.fs","li",function(e){var i;return i=t(this),a.val(i.data("raw-value")),n||a.trigger("blur.fs").trigger("focus.fs"),o.find(".selected").removeClass("selected"),i.addClass("selected"),r.addClass("selected"),a.val(i.data("raw-value")).trigger("change.fs").trigger("blur.fs").trigger("focus.fs")}),o.on("mouseenter.fs","li",function(){var e,n;return n=t(this),e=o.find(".hover"),e.removeClass("hover"),n.addClass("hover")}),o.on("mouseleave.fs","li",function(){return o.find(".hover").removeClass("hover")}),e=function(){if(l(),!n||i.forceiOS)return a.find("option"),a.find("option").each(function(e,n){var s;if(n=t(n),!n.prop("disabled")&&(n.val()||i.includeBlank))return s=i.optionTemplate(n),n.prop("selected")?o.append('<li data-raw-value="'+n.val()+'" class="selected">'+s+"</li>"):o.append('<li data-raw-value="'+n.val()+'">'+s+"</li>")})},a.on("update.fs",function(){return d.find(".options").empty(),e()}),e()})}}.call(this),function(t,e,n,i){"use strict";var s=n("html"),o=n(t),a=n(e),r=n.fancybox=function(){r.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),d=null,c=e.createTouch!==i,h=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},u=function(t){return p(t)&&t.indexOf("%")>0},f=function(t){return t&&!(t.style.overflow&&"hidden"===t.style.overflow)&&(t.clientWidth&&t.scrollWidth>t.clientWidth||t.clientHeight&&t.scrollHeight>t.clientHeight)},m=function(t,e){var n=parseInt(t,10)||0;return e&&u(t)&&(n=r.getViewport()[e]/100*n),Math.ceil(n)},v=function(t,e){return m(t,e)+"px"};n.extend(r,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==r.close(!0)))return n.isArray(t)||(t=h(t)?n(t).get():[t]),n.each(t,function(s,o){var a,l,d,c,u,f,m,v={};"object"===n.type(o)&&(o.nodeType&&(o=n(o)),h(o)?(v={href:o.data("fancybox-href")||o.attr("href"),title:o.data("fancybox-title")||o.attr("title"),isDom:!0,element:o},n.metadata&&n.extend(!0,v,o.metadata())):v=o),a=e.href||v.href||(p(o)?o:null),l=e.title!==i?e.title:v.title||"",d=e.content||v.content,c=d?"html":e.type||v.type,!c&&v.isDom&&((c=o.data("fancybox-type"))||(u=o.prop("class").match(/fancybox\.(\w+)/),c=u?u[1]:null)),p(a)&&(c||(r.isImage(a)?c="image":r.isSWF(a)?c="swf":"#"===a.charAt(0)?c="inline":p(o)&&(c="html",d=o)),"ajax"===c&&(f=a.split(/\s+/,2),a=f.shift(),m=f.shift())),d||("inline"===c?a?d=n(p(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):v.isDom&&(d=o):"html"===c?d=a:c||a||!v.isDom||(c="inline",d=o)),n.extend(v,{href:a,type:c,content:d,title:l,selector:m}),t[s]=v}),r.opts=n.extend(!0,{},r.defaults,e),e.keys!==i&&(r.opts.keys=!!e.keys&&n.extend({},r.defaults.keys,e.keys)),r.group=t,r._start(r.opts.index)},cancel:function(){var t=r.coming;t&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(t))},close:function(t){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==t?(r.isOpen=r.isOpened=!1,r.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(r.player.timer)},n=function(){e(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},i=function(){e(),a.unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")},s=function(){r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":n,"beforeLoad.player":e}),n(),r.trigger("onPlayStart"))};!0===t||!r.player.isActive&&!1!==t?s():i()},next:function(t){var e=r.current;e&&(p(t)||(t=e.direction.next),r.jumpto(e.index+1,t,"next"))},prev:function(t){var e=r.current;e&&(p(t)||(t=e.direction.prev),r.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var s=r.current;s&&(t=m(t),r.direction=e||s.direction[t>=s.index?"next":"prev"],r.router=n||"jumpto",s.loop&&(t<0&&(t=s.group.length+t%s.group.length),t%=s.group.length),s.group[t]!==i&&(r.cancel(),r._start(t)))},reposition:function(t,e){var i,s=r.current,o=s?s.wrap:null;o&&(i=r._getPosition(e),t&&"scroll"===t.type?(delete i.position,o.stop(!0,!0).animate(i,200)):(o.css(i),s.pos=n.extend({},s.dim,i)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(d),d=null),r.isOpen&&!d&&(d=setTimeout(function(){var i=r.current;i&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&i.autoResize)&&r._setDimension(),"scroll"===e&&i.canShrink||r.reposition(t),r.trigger("onUpdate"),d=null)},n&&!c?0:300))},toggle:function(t){r.isOpen&&(r.current.fitToView="boolean"===n.type(t)?t:!r.current.fitToView,c&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;r.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),r.cancel())}),r.defaults.fixed||(e=r.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=r.current&&r.current.locked||!1,n={x:o.scrollLeft(),y:o.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=c&&t.innerWidth?t.innerWidth:o.width(),n.h=c&&t.innerHeight?t.innerHeight:o.height()),n},unbindEvents:function(){r.wrap&&h(r.wrap)&&r.wrap.unbind(".fb"),a.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var t,e=r.current;e&&(o.bind("orientationchange.fb"+(c?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),r.update),t=e.keys,t&&a.bind("keydown.fb",function(s){var o=s.which||s.keyCode,a=s.target||s.srcElement;if(27===o&&r.coming)return!1;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&a[o]!==i?(r[t](a[o]),s.preventDefault(),!1):n.inArray(o,a)>-1?(r[t](),s.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&r.wrap.bind("mousewheel.fb",function(t,i,s,o){for(var a=t.target||null,l=n(a),d=!1;l.length&&!(d||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)d=f(l[0]),l=n(l).parent();0===i||d||r.group.length>1&&!e.canShrink&&(o>0||s>0?r.prev(o>0?"down":"left"):(o<0||s<0)&&r.next(o<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var i,s=e||r.coming||r.current;if(s){if(n.isFunction(s[t])&&(i=s[t].apply(s,Array.prototype.slice.call(arguments,1))),!1===i)return!1;s.helpers&&n.each(s.helpers,function(e,i){i&&r.helpers[e]&&n.isFunction(r.helpers[e][t])&&r.helpers[e][t](n.extend(!0,{},r.helpers[e].defaults,i),s)}),a.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,i,s,o,a,l={};if(t=m(t),!(e=r.group[t]||null))return!1;if(l=n.extend(!0,{},r.opts,e),o=l.margin,a=l.padding,"number"===n.type(o)&&(l.margin=[o,o,o,o]),"number"===n.type(a)&&(l.padding=[a,a,a,a]),l.modal&&n.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=r.group,l.index=t,r.coming=l,!1===r.trigger("beforeLoad"))return void(r.coming=null);if(s=l.type,i=l.href,!s)return r.coming=null,!(!r.current||!r.router||"jumpto"===r.router)&&(r.current.index=t,r[r.router](r.direction));if(r.isActive=!0,"image"!==s&&"swf"!==s||(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===s&&(l.aspectRatio=!0),"iframe"===s&&c&&(l.scrolling="scroll"),l.wrap=n(l.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),n.extend(l,{skin:n(".fancybox-skin",l.wrap),outer:n(".fancybox-outer",l.wrap),inner:n(".fancybox-inner",l.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){l.skin.css("padding"+e,v(l.padding[t]))}),r.trigger("onReady"),"inline"===s||"html"===s){if(!l.content||!l.content.length)return r._error("content")}else if(!i)return r._error("href");"image"===s?r._loadImage():"ajax"===s?r._loadAjax():"iframe"===s?r._loadIframe():r._afterLoad()},_error:function(t){n.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var t=r.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width/r.opts.pixelRatio,r.coming.height=this.height/r.opts.pixelRatio,r._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,r._error("image")},t.src=r.coming.href,!0!==t.complete&&r.showLoading()},_loadAjax:function(){var t=r.coming;r.showLoading(),r.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){r.coming&&"abort"!==e?r._error("ajax",t):r.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,r._afterLoad())}}))},_loadIframe:function(){var t=r.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(r.showLoading(),e.one("load",function(){n(this).data("ready",1),c||n(this).bind("load.fb",r.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||r._afterLoad()},_preloadImages:function(){var t,e,n=r.group,i=r.current,s=n.length,o=i.preload?Math.min(i.preload,s-1):0;for(e=1;e<=o;e+=1)t=n[(i.index+e)%s],"image"===t.type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,i,s,o,a,l=r.coming,d=r.current,c="fancybox-placeholder";if(r.hideLoading(),l&&!1!==r.isActive){if(!1===r.trigger("afterLoad",l,d))return l.wrap.stop(!0).trigger("onReset").remove(),void(r.coming=null);switch(d&&(r.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),t=l,e=l.content,i=l.type,s=l.scrolling,n.extend(r,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:d}),o=t.href,i){case"inline":case"ajax":case"html":t.selector?e=n("<div>").html(e).find(t.selector):h(e)&&(e.data(c)||e.data(c,n('<div class="'+c+'"></div>').insertAfter(e).hide()),e=e.show().detach(),t.wrap.bind("onReset",function(){n(this).find(e).length&&e.hide().replaceAll(e.data(c)).data(c,!1)}));break;case"image":e=t.tpl.image.replace("{href}",o);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',a="",n.each(t.swf,function(t,n){e+='<param name="'+t+'" value="'+n+'"></param>',a+=" "+t+'="'+n+'"'}),e+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}h(e)&&e.parent().is(t.inner)||t.inner.append(e),r.trigger("beforeShow"),t.inner.css("overflow","yes"===s?"scroll":"no"===s?"hidden":s),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?d.prevMethod&&r.transitions[d.prevMethod]():n(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?t.nextMethod:t.openMethod](),r._preloadImages()}},_setDimension:function(){var t,e,i,s,o,a,l,d,c,h,p,f,g,b,y,w=r.getViewport(),x=0,_=!1,C=!1,k=r.wrap,I=r.skin,$=r.inner,T=r.current,A=T.width,P=T.height,S=T.minWidth,E=T.minHeight,O=T.maxWidth,j=T.maxHeight,M=T.scrolling,D=T.scrollOutside?T.scrollbarWidth:0,W=T.margin,z=m(W[1]+W[3]),N=m(W[0]+W[2]);if(k.add(I).add($).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(I.outerWidth(!0)-I.width()),e=m(I.outerHeight(!0)-I.height()),i=z+t,s=N+e,o=u(A)?(w.w-i)*m(A)/100:A,a=u(P)?(w.h-s)*m(P)/100:P,"iframe"===T.type){if(b=T.content,T.autoHeight&&1===b.data("ready"))try{b[0].contentWindow.document.location&&($.width(o).height(9999),y=b.contents().find("body"),D&&y.css("overflow-x","hidden"),a=y.outerHeight(!0))}catch(t){}}else(T.autoWidth||T.autoHeight)&&($.addClass("fancybox-tmp"),T.autoWidth||$.width(o),T.autoHeight||$.height(a),T.autoWidth&&(o=$.width()),T.autoHeight&&(a=$.height()),$.removeClass("fancybox-tmp"));if(A=m(o),P=m(a),c=o/a,S=m(u(S)?m(S,"w")-i:S),O=m(u(O)?m(O,"w")-i:O),E=m(u(E)?m(E,"h")-s:E),j=m(u(j)?m(j,"h")-s:j),l=O,d=j,T.fitToView&&(O=Math.min(w.w-i,O),j=Math.min(w.h-s,j)),f=w.w-z,g=w.h-N,T.aspectRatio?(A>O&&(A=O,P=m(A/c)),P>j&&(P=j,A=m(P*c)),A<S&&(A=S,P=m(A/c)),P<E&&(P=E,A=m(P*c))):(A=Math.max(S,Math.min(A,O)),T.autoHeight&&"iframe"!==T.type&&($.width(A),P=$.height()),P=Math.max(E,Math.min(P,j))),T.fitToView)if($.width(A).height(P),k.width(A+t),h=k.width(),p=k.height(),T.aspectRatio)for(;(h>f||p>g)&&A>S&&P>E&&!(x++>19);)P=Math.max(E,Math.min(j,P-10)),A=m(P*c),A<S&&(A=S,P=m(A/c)),A>O&&(A=O,P=m(A/c)),$.width(A).height(P),k.width(A+t),h=k.width(),p=k.height();else A=Math.max(S,Math.min(A,A-(h-f))),P=Math.max(E,Math.min(P,P-(p-g)));D&&"auto"===M&&P<a&&A+t+D<f&&(A+=D),$.width(A).height(P),k.width(A+t),h=k.width(),p=k.height(),_=(h>f||p>g)&&A>S&&P>E,C=T.aspectRatio?A<l&&P<d&&A<o&&P<a:(A<l||P<d)&&(A<o||P<a),n.extend(T,{dim:{width:v(h),height:v(p)},origWidth:o,origHeight:a,canShrink:_,canExpand:C,wPadding:t,hPadding:e,wrapSpace:p-I.outerHeight(!0),skinSpace:I.height()-P}),!b&&T.autoHeight&&P>E&&P<j&&!C&&$.height("auto")},_getPosition:function(t){var e=r.current,n=r.getViewport(),i=e.margin,s=r.wrap.width()+i[1]+i[3],o=r.wrap.height()+i[0]+i[2],a={position:"absolute",top:i[0],left:i[3]};return e.autoCenter&&e.fixed&&!t&&o<=n.h&&s<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=v(Math.max(a.top,a.top+(n.h-o)*e.topRatio)),a.left=v(Math.max(a.left,a.left+(n.w-s)*e.leftRatio)),a},_afterZoomIn:function(){var t=r.current;t&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(),(t.closeClick||t.nextClick&&r.group.length>1)&&r.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),r[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(r.skin).bind("click.fb",function(t){t.preventDefault(),r.close()}),t.arrows&&r.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(t.loop||t.index<r.group.length-1)&&n(t.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),t.loop||t.index!==t.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(t){t=t||r.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",t)}}),r.transitions={getOrigPosition:function(){var t=r.current,e=t.element,n=t.orig,i={},s=50,o=50,a=t.hPadding,l=t.wPadding,d=r.getViewport();return!n&&t.isDom&&e.is(":visible")&&(n=e.find("img:first"),n.length||(n=e)),h(n)?(i=n.offset(),n.is("img")&&(s=n.outerWidth(),o=n.outerHeight())):(i.top=d.y+(d.h-o)*t.topRatio,i.left=d.x+(d.w-s)*t.leftRatio),("fixed"===r.wrap.css("position")||t.locked)&&(i.top-=d.y,i.left-=d.x),i={top:v(i.top-a*t.topRatio),left:v(i.left-l*t.leftRatio),width:v(s+l),height:v(o+a)}},step:function(t,e){var n,i,s,o=e.prop,a=r.current,l=a.wrapSpace,d=a.skinSpace;"width"!==o&&"height"!==o||(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),r.isClosing&&(n=1-n),i="width"===o?a.wPadding:a.hPadding,s=t-i,r.skin[o](m("width"===o?s:s-l*n)),r.inner[o](m("width"===o?s:s-l*n-d*n)))},zoomIn:function(){var t=r.current,e=t.pos,i=t.openEffect,s="elastic"===i,o=n.extend({opacity:1},e);delete o.position,s?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===i&&(e.opacity=.1),r.wrap.css(e).animate(o,{duration:"none"===i?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var t=r.current,e=t.closeEffect,n="elastic"===e,i={opacity:.1};n&&(i=this.getOrigPosition(),t.closeOpacity&&(i.opacity=.1)),r.wrap.animate(i,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var t,e=r.current,n=e.nextEffect,i=e.pos,s={opacity:1},o=r.direction,a=200;i.opacity=.1,"elastic"===n&&(t="down"===o||"up"===o?"top":"left","down"===o||"right"===o?(i[t]=v(m(i[t])-a),s[t]="+="+a+"px"):(i[t]=v(m(i[t])+a),s[t]="-="+a+"px")),"none"===n?r._afterZoomIn():r.wrap.css(i).animate(s,{duration:e.nextSpeed,easing:e.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var t=r.previous,e=t.prevEffect,i={opacity:.1},s=r.direction;"elastic"===e&&(i["down"===s||"up"===s?"top":"left"]=("up"===s||"left"===s?"-":"+")+"=200px"),t.wrap.animate(i,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(r.coming?r.coming.parent:t.parent),this.fixed=!1,t.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(o.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return r.isActive?r.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;o.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=o.scrollTop(),e=o.scrollLeft(),this.el.removeClass("fancybox-lock"),o.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";this.overlay.width(n).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(n=a.width())):a.width()>o.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(t,e){var i=this.overlay;n(".fancybox-overlay").stop(!0,!0),i||this.create(t),t.locked&&this.fixed&&e.fixed&&(i||(this.margin=a.height()>o.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var i,s;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),i=o.scrollTop(),s=o.scrollLeft(),this.el.addClass("fancybox-lock"),o.scrollTop(i).scrollLeft(s)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!r.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,i,s=r.current,o=s.title,a=t.type;if(n.isFunction(o)&&(o=o.call(s.element,s)),p(o)&&""!==n.trim(o)){switch(e=n('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+o+"</div>"),a){case"inside":i=r.skin;break;case"outside":i=r.wrap;break;case"over":i=r.inner;break;default:i=r.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](i)}}},n.fn.fancybox=function(t){var e,i=n(this),s=this.selector||"",o=function(o){var a,l,d=n(this).blur(),c=e;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||d.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",l=d.attr(a),l||(a="rel",l=d.get(0)[a]),l&&""!==l&&"nofollow"!==l&&(d=s.length?n(s):i,d=d.filter("["+a+'="'+l+'"]'),c=d.index(this)),t.index=c,!1!==r.open(d,t)&&o.preventDefault())};return t=t||{},e=t.index||0,s&&!1!==t.live?a.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",o):i.unbind("click.fb-start").bind("click.fb-start",o),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,o;n.scrollbarWidth===i&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),i=e.innerWidth()-e.height(99).innerWidth();return t.remove(),i}),n.support.fixedPosition===i&&(n.support.fixedPosition=function(){var t=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop;return t.remove(),e}()),n.extend(r.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),s.addClass("fancybox-lock-test"),o=n(t).width(),s.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(o-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(t,e){"use strict";if(!e)throw new Error("Filterizr requires jQuery to work.");var n=function(t){this.init(t)};n.prototype={init:function(t){this.root={x:0,y:0,w:t}},fit:function(t){var e,n,i,s=t.length,o=s>0?t[0].h:0;for(this.root.h=o,e=0;s>e;e++)i=t[e],(n=this.findNode(this.root,i.w,i.h))?i.fit=this.splitNode(n,i.w,i.h):i.fit=this.growDown(i.w,i.h)},findNode:function(t,e,n){return t.used?this.findNode(t.right,e,n)||this.findNode(t.down,e,n):e<=t.w&&n<=t.h?t:null},splitNode:function(t,e,n){return t.used=!0,t.down={x:t.x,y:t.y+n,w:t.w,h:t.h-n},t.right={x:t.x+e,y:t.y,w:t.w-e,h:n},t},growDown:function(t,e){var n;return this.root={used:!0,x:0,y:0,w:this.root.w,h:this.root.h+e,down:{x:0,y:this.root.h,w:this.root.w,h:e},right:this.root},(n=this.findNode(this.root,t,e))?this.splitNode(n,t,e):null}},e.fn.filterizr=function(){var t=this,n=arguments;if(t._fltr||(t._fltr=e.fn.filterizr.prototype.init(t.selector,"object"==typeof n[0]?n[0]:void 0)),"string"==typeof n[0]){if(n[0].lastIndexOf("_")>-1)throw new Error("Filterizr error: You cannot call private methods");if("function"!=typeof t._fltr[n[0]])throw new Error("Filterizr error: There is no such function");t._fltr[n[0]](n[1],n[2])}return t},e.fn.filterizr.prototype={init:function(t,n){var i=e(t).extend(e.fn.filterizr.prototype);return i.options={animationDuration:.5,callbacks:{onFilteringStart:function(){},onFilteringEnd:function(){},onShufflingStart:function(){},onShufflingEnd:function(){},onSortingStart:function(){},onSortingEnd:function(){}},delay:0,delayMode:"progressive",easing:"ease-out",filter:"all",filterOutCss:{opacity:0,transform:"scale(0.5)"},filterInCss:{opacity:1,transform:"scale(1)"},layout:"sameSize",selector:"string"==typeof t?t:".filtr-container",setupControls:!0},0===arguments.length&&(t=i.options.selector,n=i.options),1===arguments.length&&"object"==typeof arguments[0]&&(n=arguments[0]),n&&i.setOptions(n),i.css({padding:0,position:"relative"}),i._lastCategory=0,i._isAnimating=!1,i._isShuffling=!1,i._isSorting=!1,i._mainArray=i._getFiltrItems(),i._subArrays=i._makeSubarrays(),i._activeArray=i._getCollectionByFilter(i.options.filter),i._toggledCategories={},i._typedText=e("input[data-search]").val()||"",i._uID="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}),i._setupEvents(),i.options.setupControls&&i._setupControls(),i.filter(i.options.filter),i},filter:function(t){var e=this,n=e._getCollectionByFilter(t);e.options.filter=t,e.trigger("filteringStart"),e._handleFiltering(n),e._isSearchActivated()&&e.search(e._typedText)},toggleFilter:function(t){var e=this,n=[];e.trigger("filteringStart"),t&&(e._toggledCategories[t]?delete e._toggledCategories[t]:e._toggledCategories[t]=!0),e._multifilterModeOn()?(n=e._makeMultifilterArray(),e._handleFiltering(n),e._isSearchActivated()&&e.search(e._typedText)):(e.filter("all"),e._isSearchActivated()&&e.search(e._typedText))},search:function(t){var e=this,n=e._multifilterModeOn()?e._makeMultifilterArray():e._getCollectionByFilter(e.options.filter),i=[],s=0;if(e._isSearchActivated())for(s=0;s<n.length;s++){var o=n[s].text().toLowerCase().indexOf(t.toLowerCase())>-1;o&&i.push(n[s])}if(i.length>0)e._handleFiltering(i);else if(e._isSearchActivated())for(s=0;s<e._activeArray.length;s++)e._activeArray[s]._filterOut();else e._handleFiltering(n)},shuffle:function(){var t=this;t._isAnimating=!0,t._isShuffling=!0,t.trigger("shufflingStart"),t._mainArray=t._fisherYatesShuffle(t._mainArray),t._subArrays=t._makeSubarrays();var e=t._multifilterModeOn()?t._makeMultifilterArray():t._getCollectionByFilter(t.options.filter);t._isSearchActivated()?t.search(t._typedText):t._placeItems(e)},sort:function(t,e){var n=this;if(t=t||"domIndex",e=e||"asc",n._isAnimating=!0,n._isSorting=!0,n.trigger("sortingStart"),"domIndex"!==t&&"sortData"!==t&&"w"!==t&&"h"!==t)for(var i=0;i<n._mainArray.length;i++)n._mainArray[i][t]=n._mainArray[i].data(t);n._mainArray.sort(n._comparator(t,e)),n._subArrays=n._makeSubarrays();var s=n._multifilterModeOn()?n._makeMultifilterArray():n._getCollectionByFilter(n.options.filter);n._isSearchActivated()?n.search(n._typedText):n._placeItems(s)},setOptions:function(t){var e=this,n=0;for(var i in t)e.options[i]=t[i];if(e._mainArray&&(t.animationDuration||t.delay||t.easing||t.delayMode))for(n=0;n<e._mainArray.length;n++)e._mainArray[n].css("transition","all "+e.options.animationDuration+"s "+e.options.easing+" "+e._mainArray[n]._calcDelay()+"ms");t.callbacks&&(t.callbacks.onFilteringStart||(e.options.callbacks.onFilteringStart=function(){}),t.callbacks.onFilteringEnd||(e.options.callbacks.onFilteringEnd=function(){}),t.callbacks.onShufflingStart||(e.options.callbacks.onShufflingStart=function(){}),t.callbacks.onShufflingEnd||(e.options.callbacks.onShufflingEnd=function(){}),t.callbacks.onSortingStart||(e.options.callbacks.onSortingStart=function(){}),t.callbacks.onSortingEnd||(e.options.callbacks.onSortingEnd=function(){})),e.options.filterInCss.transform||(e.options.filterInCss.transform="translate3d(0,0,0)"),e.options.filterOutCss.transform||(e.options.filterOutCss.transform="translate3d(0,0,0)")},_getFiltrItems:function(){var t=this,n=e(t.find(".filtr-item")),s=[];return e.each(n,function(n,o){var a=e(o).extend(i)._init(n,t);s.push(a)}),s},_makeSubarrays:function(){for(var t=this,e=[],n=0;n<t._lastCategory;n++)e.push([]);for(n=0;n<t._mainArray.length;n++)if("object"==typeof t._mainArray[n]._category)for(var i=t._mainArray[n]._category.length,s=0;i>s;s++)e[t._mainArray[n]._category[s]-1].push(t._mainArray[n]);else e[t._mainArray[n]._category-1].push(t._mainArray[n]);return e},_makeMultifilterArray:function(){for(var t=this,e=[],n={},i=0;i<t._mainArray.length;i++){var s=t._mainArray[i],o=!1,a=s.domIndex in n==0;if(Array.isArray(s._category)){for(var r=0;r<s._category.length;r++)if(s._category[r]in t._toggledCategories){o=!0;break}}else s._category in t._toggledCategories&&(o=!0);a&&o&&(n[s.domIndex]=!0,e.push(s))}return e},_setupControls:function(){var t=this;e("*[data-filter]").click(function(){var n=e(this).data("filter");t.options.filter!==n&&t.filter(n)}),e("*[data-multifilter]").click(function(){var n=e(this).data("multifilter");"all"===n?(t._toggledCategories={},t.filter("all")):t.toggleFilter(n)}),e("*[data-shuffle]").click(function(){t.shuffle()}),e("*[data-sortAsc]").click(function(){var n=e("*[data-sortOrder]").val();t.sort(n,"asc")}),e("*[data-sortDesc]").click(function(){var n=e("*[data-sortOrder]").val();t.sort(n,"desc")}),e("input[data-search]").keyup(function(){t._typedText=e(this).val(),t._delayEvent(function(){t.search(t._typedText)},250,t._uID)})},_setupEvents:function(){var n=this;e(t).resize(function(){n._delayEvent(function(){n.trigger("resizeFiltrContainer")},250,n._uID)}),n.on("resizeFiltrContainer",function(){n._multifilterModeOn()?n.toggleFilter():n.filter(n.options.filter)}).on("filteringStart",function(){n.options.callbacks.onFilteringStart()}).on("filteringEnd",function(){n.options.callbacks.onFilteringEnd()}).on("shufflingStart",function(){n._isShuffling=!0,n.options.callbacks.onShufflingStart()}).on("shufflingEnd",function(){n.options.callbacks.onShufflingEnd(),n._isShuffling=!1}).on("sortingStart",function(){n._isSorting=!0,n.options.callbacks.onSortingStart()}).on("sortingEnd",function(){n.options.callbacks.onSortingEnd(),n._isSorting=!1})},_calcItemPositions:function(){var t=this,i=t._activeArray,s=0,o=Math.round(t.width()/t.find(".filtr-item").outerWidth()),a=0,r=i[0].outerWidth(),l=0,d=0,c=0,h=0,p=0,u=[];if("packed"===t.options.layout){e.each(t._activeArray,function(t,e){e._updateDimensions()});var f=new n(t.outerWidth());for(f.fit(t._activeArray),h=0;h<i.length;h++)u.push({left:i[h].fit.x,top:i[h].fit.y});s=f.root.h}if("horizontal"===t.options.layout)for(a=1,h=1;h<=i.length;h++)r=i[h-1].outerWidth(),l=i[h-1].outerHeight(),u.push({left:d,top:c}),d+=r,l>s&&(s=l);else if("vertical"===t.options.layout){for(h=1;h<=i.length;h++)l=i[h-1].outerHeight(),u.push({left:d,top:c}),c+=l;s=c}else if("sameHeight"===t.options.layout){a=1;var m=t.outerWidth();for(h=1;h<=i.length;h++){r=i[h-1].width();var v=i[h-1].outerWidth(),g=0;i[h]&&(g=i[h].width()),u.push({left:d,top:c}),p=d+r+g,p>m?(p=0,d=0,c+=i[0].outerHeight(),a++):d+=v}s=a*i[0].outerHeight()}else if("sameWidth"===t.options.layout){for(h=1;h<=i.length;h++){if(u.push({left:d,top:c}),h%o==0&&a++,d+=r,c=0,a>0)for(p=a;p>0;)c+=i[h-o*p].outerHeight(),p--;h%o==0&&(d=0)}for(h=0;o>h;h++){for(var b=0,y=h;i[y];)b+=i[y].outerHeight(),y+=o;b>s?(s=b,b=0):b=0}}else if("sameSize"===t.options.layout){for(h=1;h<=i.length;h++)u.push({left:d,top:c}),d+=r,h%o==0&&(c+=i[0].outerHeight(),d=0);a=Math.ceil(i.length/o),s=a*i[0].outerHeight()}return t.css("height",s),u},_handleFiltering:function(t){for(var e=this,n=e._getArrayOfUniqueItems(e._activeArray,t),i=0;i<n.length;i++)n[i]._filterOut();e._activeArray=t,e._placeItems(t)},_multifilterModeOn:function(){var t=this;return Object.keys(t._toggledCategories).length>0},_isSearchActivated:function(){return this._typedText.length>0},_placeItems:function(t){var e=this;e._isAnimating=!0,e._itemPositions=e._calcItemPositions();for(var n=0;n<t.length;n++)t[n]._filterIn(e._itemPositions[n])},_getCollectionByFilter:function(t){var e=this;return"all"===t?e._mainArray:e._subArrays[t-1]},_makeDeepCopy:function(t){var e={};for(var n in t)e[n]=t[n];return e},_comparator:function(t,e){return function(n,i){return"asc"===e?n[t]<i[t]?-1:n[t]>i[t]?1:0:"desc"===e?i[t]<n[t]?-1:i[t]>n[t]?1:0:void 0}},_getArrayOfUniqueItems:function(t,e){var n,i,s=[],o={},a=e.length;for(n=0;a>n;n++)o[e[n].domIndex]=!0;for(a=t.length,n=0;a>n;n++)i=t[n],i.domIndex in o||s.push(i);return s},_delayEvent:function(){var t={};return function(e,n,i){if(null===i)throw Error("UniqueID needed");t[i]&&clearTimeout(t[i]),t[i]=setTimeout(e,n)}}(),_fisherYatesShuffle:function(t){for(var e,n,i=t.length;i;)n=Math.floor(Math.random()*i--),e=t[i],t[i]=t[n],t[n]=e;return t}};var i={_init:function(t,e){var n=this;return n._parent=e,n._category=n._getCategory(),n._lastPos={},n.domIndex=t,n.sortData=n.data("sort"),n.w=0,n.h=0,n._isFilteredOut=!0,n._filteringOut=!1,n._filteringIn=!1,n.css(e.options.filterOutCss).css({"-webkit-backface-visibility":"hidden",perspective:"1000px","-webkit-perspective":"1000px","-webkit-transform-style":"preserve-3d",position:"absolute",transition:"all "+e.options.animationDuration+"s "+e.options.easing+" "+n._calcDelay()+"ms"}),n.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){n._onTransitionEnd()}),n},_updateDimensions:function(){var t=this;t.w=t.outerWidth(),t.h=t.outerHeight()},_calcDelay:function(){var t=this,e=0;return"progressive"===t._parent.options.delayMode?e=t._parent.options.delay*t.domIndex:t.domIndex%2==0&&(e=t._parent.options.delay),e},_getCategory:function(){var t=this,e=t.data("category");if("string"==typeof e){e=e.split(", ");for(var n=0;n<e.length;n++){if(isNaN(parseInt(e[n])))throw new Error("Filterizr: the value of data-category must be a number, starting from value 1 and increasing.");parseInt(e[n])>t._parent._lastCategory&&(t._parent._lastCategory=parseInt(e[n]))}}else e>t._parent._lastCategory&&(t._parent._lastCategory=e);return e},_onTransitionEnd:function(){var t=this;t._filteringOut?(e(t).addClass("filteredOut"),t._isFilteredOut=!0,t._filteringOut=!1):t._filteringIn&&(t._isFilteredOut=!1,t._filteringIn=!1),t._parent._isAnimating&&(t._parent._isShuffling?t._parent.trigger("shufflingEnd"):t._parent._isSorting?t._parent.trigger("sortingEnd"):t._parent.trigger("filteringEnd"),t._parent._isAnimating=!1)},_filterOut:function(){var t=this,e=t._parent._makeDeepCopy(t._parent.options.filterOutCss);e.transform+=" translate3d("+t._lastPos.left+"px,"+t._lastPos.top+"px, 0)",t.css(e),t.css("pointer-events","none"),t._filteringOut=!0},_filterIn:function(t){var n=this,i=n._parent._makeDeepCopy(n._parent.options.filterInCss);e(n).removeClass("filteredOut"),n._filteringIn=!0,n._lastPos=t,n.css("pointer-events","auto"),i.transform+=" translate3d("+t.left+"px,"+t.top+"px, 0)",n.css(i)}}}(this,jQuery),function(t){function e(){t[n].glbl||(r={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},s={},o={},a={},t.each([s,o,a],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,i=t.length;i>n;n++)e[t[n]]=e.mm(t[n])}}),s.mm=function(t){return"mm-"+t},s.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),s.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.slice(3)),t},o.mm=function(t){return"mm-"+t},o.add("parent child"),a.mm=function(t){return t+".mm"},a.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[n]._c=s,t[n]._d=o,t[n]._e=a,t[n].glbl=r)}var n="mmenu",i="5.7.4";if(!(t[n]&&t[n].version>i)){t[n]=function(t,e,n){this.$menu=t,this._api=["bind","initPanels","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var i=this.$pnls.children();return this._initAddons(),this.initPanels(i),"function"==typeof this.___debug&&this.___debug(),this},t[n].version=i,t[n].addons={},t[n].uniqueId=0,t[n].defaults={extensions:[],initMenu:function(){},initPanels:function(){},navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[n].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[n].prototype={init:function(t){this.initPanels(t)},initPanels:function(t){t=t.not("."+s.nopanel),t=this._initPanels(t),this.opts.initPanels.call(this,t),this.trigger("initPanels",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+s.listview).children().removeClass(s.selected),t.addClass(s.selected),this.trigger("setSelected",t)},openPanel:function(e){var i=e.parent(),o=this;if(i.hasClass(s.vertical)){var a=i.parents("."+s.subopened);if(a.length)return void this.openPanel(a.first());i.addClass(s.opened),this.trigger("openPanel",e),this.trigger("openingPanel",e),this.trigger("openedPanel",e)}else{if(e.hasClass(s.current))return;var r=this.$pnls.children("."+s.panel),l=r.filter("."+s.current);r.removeClass(s.highest).removeClass(s.current).not(e).not(l).not("."+s.vertical).addClass(s.hidden),t[n].support.csstransitions||l.addClass(s.hidden),e.hasClass(s.opened)?e.nextAll("."+s.opened).addClass(s.highest).removeClass(s.opened).removeClass(s.subopened):(e.addClass(s.highest),l.addClass(s.subopened)),e.removeClass(s.hidden).addClass(s.current),o.trigger("openPanel",e),setTimeout(function(){e.removeClass(s.subopened).addClass(s.opened),o.trigger("openingPanel",e),o.__transitionend(e,function(){o.trigger("openedPanel",e)},o.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var e=t.parent();e.hasClass(s.vertical)&&(e.removeClass(s.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+s.listview).children().removeClass(s.selected).filter("."+s.vertical).removeClass(s.opened);var t=this.$pnls.children("."+s.panel),e=t.first();this.$pnls.children("."+s.panel).not(e).removeClass(s.subopened).removeClass(s.opened).removeClass(s.current).removeClass(s.highest).addClass(s.hidden),this.openPanel(e)},togglePanel:function(t){var e=t.parent();e.hasClass(s.vertical)&&this[e.hasClass(s.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){t="init"==t?"initPanels":t,this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=this,e=Array.prototype.slice.call(arguments),n=e.shift();if(n="init"==n?"initPanels":n,this.cbck[n])for(var i=0,s=this.cbck[n].length;s>i;i++)this.cbck[n][i].apply(t,e)},_initMenu:function(){this.conf.clone&&(this.$orig=this.$menu,this.$menu=this.$orig.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",s.mm(t(this).attr("id")))})),this.opts.initMenu.call(this,this.$menu,this.$orig),this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.$pnls=t('<div class="'+s.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(s.wrapper);var e=[s.menu];this.opts.slidingSubmenus||e.push(s.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&e.push(this.opts.extensions),this.$menu.addClass(e.join(" "))},_initPanels:function(e){var n=this,i=this.__findAddBack(e,"ul, ol");this.__refactorClass(i,this.conf.classNames.inset,"inset").addClass(s.nolistview+" "+s.nopanel),i.not("."+s.nolistview).addClass(s.listview);var a=this.__findAddBack(e,"."+s.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(e,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=t(),l=e.add(e.find("."+s.panel)).add(this.__findAddBack(e,"."+s.listview).children().children(this.conf.panelNodetype)).not("."+s.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(s.vertical),l.each(function(){var e=t(this),i=e;e.is("ul, ol")?(e.wrap('<div class="'+s.panel+'" />'),i=e.parent()):i.addClass(s.panel);var o=e.attr("id");e.removeAttr("id"),i.attr("id",o||n.__getUniqueId()),e.hasClass(s.vertical)&&(e.removeClass(n.conf.classNames.vertical),i.add(i.parent()).addClass(s.vertical)),r=r.add(i)});var d=t("."+s.panel,this.$menu);r.each(function(e){var i,a,r=t(this),l=r.parent(),d=l.children("a, span").first();if(l.is("."+s.panels)||(l.data(o.child,r),r.data(o.parent,l)),l.children("."+s.next).length||l.parent().is("."+s.listview)&&(i=r.attr("id"),a=t('<a class="'+s.next+'" href="#'+i+'" data-target="#'+i+'" />').insertBefore(d),d.is("span")&&a.addClass(s.fullsubopen)),!r.children("."+s.navbar).length&&!l.hasClass(s.vertical)){l.parent().is("."+s.listview)?l=l.closest("."+s.panel):(d=l.closest("."+s.panel).find('a[href="#'+r.attr("id")+'"]').first(),l=d.closest("."+s.panel));var c=!1,h=t('<div class="'+s.navbar+'" />');if(n.opts.navbar.add&&r.addClass(s.hasnavbar),l.length){switch(i=l.attr("id"),n.opts.navbar.titleLink){case"anchor":c=d.attr("href");break;case"panel":case"parent":c="#"+i;break;default:c=!1}h.append('<a class="'+s.btn+" "+s.prev+'" href="#'+i+'" data-target="#'+i+'" />').append(t('<a class="'+s.title+'"'+(c?' href="'+c+'"':"")+" />").text(d.text())).prependTo(r)}else n.opts.navbar.title&&h.append('<a class="'+s.title+'">'+n.opts.navbar.title+"</a>").prependTo(r)}});var c=this.__findAddBack(e,"."+s.listview).children("."+s.selected).removeClass(s.selected).last().addClass(s.selected);c.add(c.parentsUntil("."+s.menu,"li")).filter("."+s.vertical).addClass(s.opened).end().each(function(){t(this).parentsUntil("."+s.menu,"."+s.panel).not("."+s.vertical).first().addClass(s.opened).parentsUntil("."+s.menu,"."+s.panel).not("."+s.vertical).first().addClass(s.opened).addClass(s.subopened)}),c.children("."+s.panel).not("."+s.vertical).addClass(s.opened).parentsUntil("."+s.menu,"."+s.panel).not("."+s.vertical).first().addClass(s.opened).addClass(s.subopened);var h=d.filter("."+s.opened);return h.length||(h=r.first()),h.addClass(s.opened).last().addClass(s.current),r.not("."+s.vertical).not(h.last()).addClass(s.hidden).end().filter(function(){return!t(this).parent().hasClass(s.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var e=this;r.$body.on(a.click+"-oncanvas","a[href]",function(i){var o=t(this),a=!1,r=e.$menu.find(o).length;for(var l in t[n].addons)if(t[n].addons[l].clickAnchor.call(e,o,r)){a=!0;break}var d=o.attr("href");if(!a&&r&&d.length>1&&"#"==d.slice(0,1))try{var c=t(d,e.$menu);c.is("."+s.panel)&&(a=!0,e[o.parent().hasClass(s.vertical)?"togglePanel":"openPanel"](c))}catch(t){}if(a&&i.preventDefault(),!a&&r&&o.is("."+s.listview+" > li > a")&&!o.is('[rel="external"]')&&!o.is('[target="_blank"]')){e.__valueOrFn(e.opts.onClick.setSelected,o)&&e.setSelected(t(i.target).parent());var h=e.__valueOrFn(e.opts.onClick.preventDefault,o,"#"==d.slice(0,1));h&&i.preventDefault(),e.__valueOrFn(e.opts.onClick.close,o,h)&&e.close()}})},_initAddons:function(){var e;for(e in t[n].addons)t[n].addons[e].add.call(this),t[n].addons[e].add=function(){};for(e in t[n].addons)t[n].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=s.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var i=this;n[i]=function(){var t=e[i].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,e,n){return t.filter("."+e).removeClass(e).addClass(s[n])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+s.divider).not("."+s.hidden)},__transitionend:function(e,n,i){var s=!1,o=function(i){if(void 0!==i){if(!t(i.target).is(e))return!1;e.unbind(a.transitionend),e.unbind(a.webkitTransitionEnd)}s||n.call(e[0]),s=!0};e.on(a.transitionend,o),e.on(a.webkitTransitionEnd,o),setTimeout(o,1.1*i)},__getUniqueId:function(){return s.mm(t[n].uniqueId++)}},t.fn[n]=function(i,s){e(),i=t.extend(!0,{},t[n].defaults,i),s=t.extend(!0,{},t[n].configuration,s);var o=t();return this.each(function(){var e=t(this);if(!e.data(n)){var a=new t[n](e,i,s);a.$menu.data(n,a.__api()),o=o.add(a.$menu)}}),o},t[n].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=document.body||document.documentElement,e=t.style,n="transition";if("string"==typeof e[n])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];n=n.charAt(0).toUpperCase()+n.substr(1);for(var s=0;s<i.length;s++)if("string"==typeof e[i[s]+n])return!0;return!1}(),csstransforms:function(){return"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms||Modernizr.csstransforms}(),csstransforms3d:function(){return"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms3d||Modernizr.csstransforms3d}()};var s,o,a,r}}(jQuery),function(t){var e="mmenu",n="offCanvas";t[e].addons[n]={setup:function(){if(this.opts[n]){var s=this.opts[n],o=this.conf[n];a=t[e].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==s.position||"bottom"==s.position)&&(s.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),a.$allMenus=(a.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var r=[i.offcanvas];"left"!=s.position&&r.push(i.mm(s.position)),"back"!=s.zposition&&r.push(i.mm(s.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(i.wrapper),t[e].support.csstransforms||this.$menu.addClass(i["no-csstransforms"]),t[e].support.csstransforms3d||this.$menu.addClass(i["no-csstransforms3d"]),this.setPage(a.$page),this._initBlocker(),this["_initWindow_"+n](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var l=window.location.hash;if(l){var d=this._getOriginalMenuId();d&&d==l.slice(1)&&this.open()}}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("offcanvas slideout blocking modal background opening blocker page no-csstransforms3d"),s.add("style"),o.add("resize")},clickAnchor:function(t,e){var s=this;if(this.opts[n]){var o=this._getOriginalMenuId();if(o&&t.is('[href="#'+o+'"]')){if(e)return!0;var r=t.closest("."+i.menu);if(r.length){var l=r.data("mmenu");if(l&&l.close)return l.close(),s.__transitionend(r,function(){s.open()},s.conf.transitionDuration),!0}return this.open(),!0}if(a.$page)return o=a.$page.first().attr("id"),o&&t.is('[href="#'+o+'"]')?(this.close(),!0):void 0}}},t[e].defaults[n]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[e].configuration[n]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[e].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[e].prototype._openSetup=function(){var e=this,r=this.opts[n];this.closeAllOthers(),a.$page.each(function(){t(this).data(s.style,t(this).attr("style")||"")}),a.$wndw.trigger(o.resize+"-"+n,[!0]);var l=[i.opened];r.blockUI&&l.push(i.blocking),"modal"==r.blockUI&&l.push(i.modal),r.moveBackground&&l.push(i.background),"left"!=r.position&&l.push(i.mm(this.opts[n].position)),"back"!=r.zposition&&l.push(i.mm(this.opts[n].zposition)),this.opts.extensions&&l.push(this.opts.extensions),a.$html.addClass(l.join(" ")),setTimeout(function(){e.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(i.current+" "+i.opened)},t[e].prototype._openFinish=function(){var t=this;this.__transitionend(a.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),a.$html.addClass(i.opening),this.trigger("opening")},t[e].prototype.close=function(){if(this.vars.opened){var e=this;this.__transitionend(a.$page.first(),function(){e.$menu.removeClass(i.current+" "+i.opened);var o=[i.opened,i.blocking,i.modal,i.background,i.mm(e.opts[n].position),i.mm(e.opts[n].zposition)];e.opts.extensions&&o.push(e.opts.extensions),a.$html.removeClass(o.join(" ")),a.$page.each(function(){t(this).attr("style",t(this).data(s.style))}),e.vars.opened=!1,e.trigger("closed")},this.conf.transitionDuration),a.$html.removeClass(i.opening),this.trigger("close"),this.trigger("closing")}},t[e].prototype.closeAllOthers=function(){a.$allMenus.not(this.$menu).each(function(){var n=t(this).data(e);n&&n.close&&n.close()})},t[e].prototype.setPage=function(e){var s=this,o=this.conf[n];e&&e.length||(e=a.$body.find(o.pageSelector),o.noPageSelector.length&&(e=e.not(o.noPageSelector.join(", "))),e.length>1&&o.wrapPageIfNeeded&&(e=e.wrapAll("<"+this.conf[n].pageNodetype+" />").parent())),e.each(function(){t(this).attr("id",t(this).attr("id")||s.__getUniqueId())}),e.addClass(i.page+" "+i.slideout),a.$page=e,this.trigger("setPage",e)},t[e].prototype["_initWindow_"+n]=function(){a.$wndw.off(o.keydown+"-"+n).on(o.keydown+"-"+n,function(t){return a.$html.hasClass(i.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;a.$wndw.off(o.resize+"-"+n).on(o.resize+"-"+n,function(e,n){if(1==a.$page.length&&(n||a.$html.hasClass(i.opened))){var s=a.$wndw.height();(n||s!=t)&&(t=s,a.$page.css("minHeight",s))}})},t[e].prototype._initBlocker=function(){var e=this;this.opts[n].blockUI&&(a.$blck||(a.$blck=t('<div id="'+i.blocker+'" class="'+i.slideout+'" />')),a.$blck.appendTo(a.$body).off(o.touchstart+"-"+n+" "+o.touchmove+"-"+n).on(o.touchstart+"-"+n+" "+o.touchmove+"-"+n,function(t){t.preventDefault(),t.stopPropagation(),a.$blck.trigger(o.mousedown+"-"+n)}).off(o.mousedown+"-"+n).on(o.mousedown+"-"+n,function(t){t.preventDefault(),a.$html.hasClass(i.modal)||(e.closeAllOthers(),e.close())}))};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="scrollBugFix";t[e].addons[n]={setup:function(){var s=this,r=this.opts[n];if(this.conf[n],a=t[e].glbl,t[e].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),r.fix)){var l=this.$menu.attr("id"),d=!1;this.bind("opening",function(){this.$pnls.children("."+i.current).scrollTop(0)}),a.$docu.on(o.touchmove,function(t){s.vars.opened&&t.preventDefault()}),a.$body.on(o.touchstart,"#"+l+"> ."+i.panels+"> ."+i.current,function(t){s.vars.opened&&(d||(d=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),d=!1))}).on(o.touchmove,"#"+l+"> ."+i.panels+"> ."+i.current,function(e){s.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),a.$wndw.on(o.orientationchange,function(){s.$pnls.children("."+i.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e},clickAnchor:function(t,e){}},t[e].defaults[n]={fix:!0};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="autoHeight";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var s=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof s&&s&&(s={height:"auto"}),"string"==typeof s&&(s={height:s}),"object"!=typeof s&&(s={}),s=this.opts[n]=t.extend(!0,{},t[e].defaults[n],s),"auto"==s.height||"highest"==s.height){this.$menu.addClass(i.autoheight);var o=function(e){if(this.vars.opened){var n=parseInt(this.$pnls.css("top"),10)||0,o=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(i.measureheight),"auto"==s.height?(e=e||this.$pnls.children("."+i.current),e.is("."+i.vertical)&&(e=e.parents("."+i.panel).not("."+i.vertical).first()),a=e.outerHeight()):"highest"==s.height&&this.$pnls.children().each(function(){var e=t(this);e.is("."+i.vertical)&&(e=e.parents("."+i.panel).not("."+i.vertical).first()),a=Math.max(a,e.outerHeight())}),this.$menu.height(a+n+o).removeClass(i.measureheight)}};this.bind("opening",o),"highest"==s.height&&this.bind("initPanels",o),"auto"==s.height&&(this.bind("update",o),this.bind("openPanel",o),this.bind("closePanel",o))}}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("autoheight measureheight"),o.add("resize")},clickAnchor:function(t,e){}},t[e].defaults[n]={height:"default"};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="backButton";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var s=this,o=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof o&&(o={close:o}),"object"!=typeof o&&(o={}),o=t.extend(!0,{},t[e].defaults[n],o),o.close){var r="#"+s.$menu.attr("id");this.bind("opened",function(t){location.hash!=r&&history.pushState(null,document.title,r)}),t(window).on("popstate",function(t){a.$html.hasClass(i.opened)?(t.stopPropagation(),s.close()):location.hash==r&&(t.stopPropagation(),s.open())})}}},add:function(){return window.history&&window.history.pushState?(i=t[e]._c,s=t[e]._d,void(o=t[e]._e)):void(t[e].addons[n].setup=function(){})},clickAnchor:function(t,e){}},t[e].defaults[n]={close:!1};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="columns";t[e].addons[n]={setup:function(){var s=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),"number"==typeof s.visible&&(s.visible={min:s.visible,max:s.visible}),s=this.opts[n]=t.extend(!0,{},t[e].defaults[n],s),s.add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max)),this.$menu.addClass(i.columns);for(var o=this.opts.offCanvas?this.$menu.add(a.$html):this.$menu,r=[],l=0;l<=s.visible.max;l++)r.push(i.columns+"-"+l);r=r.join(" ");var d=function(t){p.call(this,this.$pnls.children("."+i.current))},c=function(){var t=this.$pnls.children("."+i.panel).filter("."+i.opened).length;t=Math.min(s.visible.max,Math.max(s.visible.min,t)),o.removeClass(r).addClass(i.columns+"-"+t)},h=function(){this.opts.offCanvas&&a.$html.removeClass(r)},p=function(e){this.$pnls.children("."+i.panel).removeClass(r).filter("."+i.subopened).removeClass(i.hidden).add(e).slice(-s.visible.max).each(function(e){t(this).addClass(i.columns+"-"+e)})};this.bind("open",c),this.bind("close",h),this.bind("initPanels",d),this.bind("openPanel",p),this.bind("openingPanel",c),this.bind("openedPanel",c),this.opts.offCanvas||c.call(this)}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("columns")},clickAnchor:function(e,s){if(!this.opts[n].add)return!1;if(s){var o=e.attr("href");if(o.length>1&&"#"==o.slice(0,1))try{if(t(o,this.$menu).is("."+i.panel))for(var a=parseInt(e.closest("."+i.panel).attr("class").split(i.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var r=this.$pnls.children("."+i.columns+"-"+a);if(!r.length){a=!1;break}a++,r.removeClass(i.subopened).removeClass(i.opened).removeClass(i.current).removeClass(i.highest).addClass(i.hidden)}}catch(t){}}}},t[e].defaults[n]={add:!1,visible:{min:1,max:3}};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="counters";t[e].addons[n]={setup:function(){var o=this,r=this.opts[n];this.conf[n],a=t[e].glbl,"boolean"==typeof r&&(r={add:r,update:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("initPanels",function(e){this.__refactorClass(t("em",e),this.conf.classNames[n].counter,"counter")}),r.add&&this.bind("initPanels",function(e){var n;switch(r.addTo){case"panels":n=e;break;default:n=e.filter(r.addTo)}n.each(function(){var e=t(this).data(s.parent);e&&(e.children("em."+i.counter).length||e.prepend(t('<em class="'+i.counter+'" />')))})}),r.update&&this.bind("update",function(){this.$pnls.find("."+i.panel).each(function(){var e=t(this),n=e.data(s.parent);if(n){var a=n.children("em."+i.counter);a.length&&(e=e.children("."+i.listview),e.length&&a.html(o.__filterListItems(e.children()).length))}})})},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[e].defaults[n]={add:!1,addTo:"panels",update:!1},t[e].configuration.classNames[n]={counter:"Counter"};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="dividers";t[e].addons[n]={setup:function(){var s=this,r=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof r&&(r={add:r,fixed:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("initPanels",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[n].collapsed,"collapsed")}),r.add&&this.bind("initPanels",function(e){var n;switch(r.addTo){case"panels":n=e;break;default:n=e.filter(r.addTo)}t("."+i.divider,n).remove(),n.find("."+i.listview).not("."+i.vertical).each(function(){var e="";s.__filterListItems(t(this).children()).each(function(){var n=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();n!=e&&n.length&&(e=n,t('<li class="'+i.divider+'">'+n+"</li>").insertBefore(this))})})}),r.collapse&&this.bind("initPanels",function(e){t("."+i.divider,e).each(function(){var e=t(this);e.nextUntil("."+i.divider,"."+i.collapsed).length&&(e.children("."+i.subopen).length||(e.wrapInner("<span />"),e.prepend('<a href="#" class="'+i.subopen+" "+i.fullsubopen+'" />')))})}),r.fixed){var l=function(e){if(e=e||this.$pnls.children("."+i.current),e.find("."+i.divider).not("."+i.hidden).length){this.$menu.addClass(i.hasdividers);var n=e.scrollTop()||0,s="";e.is(":visible")&&e.find("."+i.divider).not("."+i.hidden).each(function(){t(this).position().top+n<n+1&&(s=t(this).text())}),this.$fixeddivider.text(s)}else this.$menu.removeClass(i.hasdividers)};this.$fixeddivider=t('<ul class="'+i.listview+" "+i.fixeddivider+'"><li class="'+i.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("initPanels",function(e){e.off(o.scroll+"-dividers "+o.touchmove+"-dividers").on(o.scroll+"-dividers "+o.touchmove+"-dividers",function(e){l.call(s,t(this))})})}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("collapsed uncollapsed fixeddivider hasdividers"),o.add("scroll")},clickAnchor:function(t,e){if(this.opts[n].collapse&&e){var s=t.parent();if(s.is("."+i.divider)){var o=s.nextUntil("."+i.divider,"."+i.collapsed);return s.toggleClass(i.opened),o[s.hasClass(i.opened)?"addClass":"removeClass"](i.uncollapsed),!0}}return!1}},t[e].defaults[n]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[e].configuration.classNames[n]={collapsed:"Collapsed"};var i,s,o,a}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}function n(n,i,s){var r,l,d,c,h,p=this,u={},f=0,m=!1,v=!1,g=0,b=0;switch(this.opts.offCanvas.position){case"left":case"right":u.events="panleft panright",u.typeLower="x",u.typeUpper="X",v="width";break;case"top":case"bottom":u.events="panup pandown",u.typeLower="y",u.typeUpper="Y",v="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":u.negative=!0,c=function(t){t>=s.$wndw[v]()-n.maxStartPos&&(f=1)};break;default:u.negative=!1,c=function(t){t<=n.maxStartPos&&(f=1)}}switch(this.opts.offCanvas.position){case"left":u.open_dir="right",u.close_dir="left";break;case"right":u.open_dir="left",u.close_dir="right";break;case"top":u.open_dir="down",u.close_dir="up";break;case"bottom":u.open_dir="up",u.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":h=function(){return this.$menu};break;default:h=function(){return t("."+a.slideout)}}var y=this.__valueOrFn(n.node,this.$menu,s.$page);"string"==typeof y&&(y=t(y)),new Hammer(y[0],this.opts[o].vendors.hammer).on("panstart",function(t){c(t.center[u.typeLower]),s.$slideOutNodes=h(),m=u.open_dir}).on(u.events+" panend",function(t){f>0&&t.preventDefault()}).on(u.events,function(t){if(r=t["delta"+u.typeUpper],u.negative&&(r=-r),r!=g&&(m=r>=g?u.open_dir:u.close_dir),(g=r)>n.threshold&&1==f){if(s.$html.hasClass(a.opened))return;f=2,p._openSetup(),p.trigger("opening"),s.$html.addClass(a.dragging),b=e(s.$wndw[v]()*i[v].perc,i[v].min,i[v].max)}2==f&&(l=e(g,10,b)-("front"==p.opts.offCanvas.zposition?b:0),u.negative&&(l=-l),d="translate"+u.typeUpper+"("+l+"px )",s.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==f&&(s.$html.removeClass(a.dragging),s.$slideOutNodes.css("transform",""),p[m==u.open_dir?"_openFinish":"close"]()),f=0})}function i(e,n,i,s){var l=this;e.each(function(){var e=t(this),n=e.data(r.parent);if(n&&(n=n.closest("."+a.panel),n.length)){new Hammer(e[0],l.opts[o].vendors.hammer).on("panright",function(t){l.openPanel(n)})}})}var s="mmenu",o="drag";t[s].addons[o]={setup:function(){if(this.opts.offCanvas){var e=this.opts[o],a=this.conf[o];d=t[s].glbl,"boolean"==typeof e&&(e={menu:e,panels:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.menu&&(e.menu={open:e.menu}),"object"!=typeof e.menu&&(e.menu={}),"boolean"==typeof e.panels&&(e.panels={close:e.panels}),"object"!=typeof e.panels&&(e.panels={}),e=this.opts[o]=t.extend(!0,{},t[s].defaults[o],e),e.menu.open&&n.call(this,e.menu,a.menu,d),e.panels.close&&this.bind("initPanels",function(t){i.call(this,t,e.panels,a.panels,d)})}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[s].addons[o].setup=function(){}):(a=t[s]._c,r=t[s]._d,l=t[s]._e,void a.add("dragging"))},clickAnchor:function(t,e){}},t[s].defaults[o]={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},t[s].configuration[o]={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}};var a,r,l,d}(jQuery),function(t){var e="mmenu",n="dropdown";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var r=this,l=this.opts[n],d=this.conf[n];if(a=t[e].glbl,"boolean"==typeof l&&l&&(l={drop:l}),"object"!=typeof l&&(l={}),"string"==typeof l.position&&(l.position={of:l.position}),l=this.opts[n]=t.extend(!0,{},t[e].defaults[n],l),l.drop){if("string"!=typeof l.position.of){var c=this.$menu.attr("id");c&&c.length&&(this.conf.clone&&(c=i.umm(c)),l.position.of='[href="#'+c+'"]')}if("string"==typeof l.position.of){var h=t(l.position.of);if(h.length){this.$menu.addClass(i.dropdown),l.tip&&this.$menu.addClass(i.tip),l.event=l.event.split(" "),1==l.event.length&&(l.event[1]=l.event[0]),"hover"==l.event[0]&&h.on(o.mouseenter+"-dropdown",function(){r.open()}),"hover"==l.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){r.close()}),this.bind("opening",function(){this.$menu.data(s.style,this.$menu.attr("style")||""),a.$html.addClass(i.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(s.style)),a.$html.removeClass(i.dropdown)});var p=function(s,o){var r=o[0],c=o[1],p="x"==s?"scrollLeft":"scrollTop",u="x"==s?"outerWidth":"outerHeight",f="x"==s?"left":"top",m="x"==s?"right":"bottom",v="x"==s?"width":"height",g="x"==s?"maxWidth":"maxHeight",b=null,y=a.$wndw[p](),w=h.offset()[f]-=y,x=w+h[u](),_=a.$wndw[v](),C=d.offset.button[s]+d.offset.viewport[s];if(l.position[s])switch(l.position[s]){case"left":case"bottom":b="after";break;case"right":case"top":b="before"}null===b&&(b=_/2>w+(x-w)/2?"after":"before");var k,I;return"after"==b?(k="x"==s?w:x,I=_-(k+C),r[f]=k+d.offset.button[s],r[m]="auto",c.push(i["x"==s?"tipleft":"tiptop"])):(k="x"==s?x:w,I=k-C,r[m]="calc( 100% - "+(k-d.offset.button[s])+"px )",r[f]="auto",c.push(i["x"==s?"tipright":"tipbottom"])),r[g]=Math.min(t[e].configuration[n][v].max,I),[r,c]},u=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(s.style));var e=[{},[]];e=p.call(this,"y",e),e=p.call(this,"x",e),this.$menu.css(e[0]),l.tip&&this.$menu.removeClass(i.tipleft+" "+i.tipright+" "+i.tiptop+" "+i.tipbottom).addClass(e[1].join(" "))}};this.bind("opening",u),a.$wndw.on(o.resize+"-dropdown",function(t){u.call(r)}),this.opts.offCanvas.blockUI||a.$wndw.on(o.scroll+"-dropdown",function(t){u.call(r)})}}}}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[e].defaults[n]={drop:!1,event:"click",position:{},tip:!0},t[e].configuration[n]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="fixedElements";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var i=this.opts[n];this.conf[n],a=t[e].glbl,i=this.opts[n]=t.extend(!0,{},t[e].defaults[n],i);var s=function(t){var e=this.conf.classNames[n].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(a.$body)};s.call(this,a.$page),this.bind("setPage",s)}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("fixed")},clickAnchor:function(t,e){}},t[e].configuration.classNames[n]={fixed:"Fixed"};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="iconPanels";t[e].addons[n]={setup:function(){var s=this,o=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof o&&(o={add:o}),"number"==typeof o&&(o={add:!0,visible:o}),"object"!=typeof o&&(o={}),o=this.opts[n]=t.extend(!0,{},t[e].defaults[n],o),o.visible++,o.add){this.$menu.addClass(i.iconpanel);for(var r=[],l=0;l<=o.visible;l++)r.push(i.iconpanel+"-"+l);r=r.join(" ");var d=function(e){e.hasClass(i.vertical)||s.$pnls.children("."+i.panel).removeClass(r).filter("."+i.subopened).removeClass(i.hidden).add(e).not("."+i.vertical).slice(-o.visible).each(function(e){t(this).addClass(i.iconpanel+"-"+e)})};this.bind("openPanel",d),this.bind("initPanels",function(e){d.call(s,s.$pnls.children("."+i.current)),e.not("."+i.vertical).each(function(){t(this).children("."+i.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+i.panel).attr("id")+'" class="'+i.subblocker+'" />')})})}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[e].defaults[n]={add:!1,visible:3};var i,s,o,a}(jQuery),function(t){function e(e,n){e||(e=this.$pnls.children("."+o.current));var i=t();"default"==n&&(i=e.children("."+o.listview).find("a[href]").not(":hidden"),i.length||(i=e.find(d).not(":hidden")),i.length||(i=this.$menu.children("."+o.navbar).find(d).not(":hidden"))),i.length||(i=this.$menu.children("."+o.tabstart)),i.first().focus()}function n(t){t||(t=this.$pnls.children("."+o.current)),this.$pnls.children("."+o.panel).not(t).find(d).attr("tabindex",-1),t.find(d).attr("tabindex",0),t.find("input.mm-toggle, input.mm-check").attr("tabindex",-1)}var i="mmenu",s="keyboardNavigation";t[i].addons[s]={setup:function(){var a=this,r=this.opts[s];if(this.conf[s],l=t[i].glbl,("boolean"==typeof r||"string"==typeof r)&&(r={enable:r}),"object"!=typeof r&&(r={}),r=this.opts[s]=t.extend(!0,{},t[i].defaults[s],r),r.enable){r.enhance&&this.$menu.addClass(o.keyboardfocus);var c=t('<input class="'+o.tabstart+'" tabindex="0" type="text" />'),h=t('<input class="'+o.tabend+'" tabindex="0" type="text" />');this.bind("initPanels",function(){this.$menu.prepend(c).append(h).children("."+o.navbar).find(d).attr("tabindex",0)}),this.bind("open",function(){n.call(this),this.__transitionend(this.$menu,function(){e.call(a,null,r.enable)},this.conf.transitionDuration)}),this.bind("openPanel",function(t){n.call(this,t),this.__transitionend(t,function(){e.call(a,t,r.enable)},this.conf.transitionDuration)}),this["_initWindow_"+s](r.enhance)}},add:function(){o=t[i]._c,a=t[i]._d,r=t[i]._e,o.add("tabstart tabend keyboardfocus"),r.add("focusin keydown")},clickAnchor:function(t,e){}},t[i].defaults[s]={enable:!1,enhance:!1},t[i].configuration[s]={},t[i].prototype["_initWindow_"+s]=function(e){l.$wndw.off(r.keydown+"-offCanvas"),l.$wndw.off(r.focusin+"-"+s).on(r.focusin+"-"+s,function(e){if(l.$html.hasClass(o.opened)){var n=t(e.target);n.is("."+o.tabend)&&n.parent().find("."+o.tabstart).focus()}}),l.$wndw.off(r.keydown+"-"+s).on(r.keydown+"-"+s,function(e){var n=t(e.target),i=n.closest("."+o.menu);if(i.length)if(i.data("mmenu"),n.is("input, textarea"));else switch(e.keyCode){case 13:(n.is(".mm-toggle")||n.is(".mm-check"))&&n.trigger(r.click);break;case 32:case 37:case 38:case 39:case 40:e.preventDefault()}}),e&&l.$wndw.on(r.keydown+"-"+s,function(e){var n=t(e.target),i=n.closest("."+o.menu);if(i.length){var s=i.data("mmenu");if(n.is("input, textarea"))switch(e.keyCode){case 27:n.val("")}else switch(e.keyCode){case 8:var r=n.closest("."+o.panel).data(a.parent);r&&r.length&&s.openPanel(r.closest("."+o.panel));break;case 27:i.hasClass(o.offcanvas)&&s.close()}}})};var o,a,r,l,d="input, select, textarea, button, label, a[href]"}(jQuery),function(t){var e="mmenu",n="lazySubmenus";t[e].addons[n]={setup:function(){var o=this.opts[n];this.conf[n],a=t[e].glbl,"boolean"==typeof o&&(o={load:o}),"object"!=typeof o&&(o={}),o=this.opts[n]=t.extend(!0,{},t[e].defaults[n],o),o.load&&(this.$menu.find("li").find("li").children(this.conf.panelNodetype).each(function(){t(this).parent().addClass(i.lazysubmenu).data(s.lazysubmenu,this).end().remove()}),this.bind("openingPanel",function(e){var n=e.find("."+i.lazysubmenu);n.length&&(n.each(function(){t(this).append(t(this).data(s.lazysubmenu)).removeData(s.lazysubmenu).removeClass(i.lazysubmenu)}),this.initPanels(e))}))},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("lazysubmenu"),s.add("lazysubmenu")},clickAnchor:function(t,e){}},t[e].defaults[n]={load:!1},t[e].configuration[n]={};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="rtl";t[e].addons[n]={setup:function(){var s=this.opts[n];this.conf[n],a=t[e].glbl,"object"!=typeof s&&(s={use:s}),s=this.opts[n]=t.extend(!0,{},t[e].defaults[n],s),"boolean"!=typeof s.use&&(s.use="rtl"==(a.$html.attr("dir")||"").toLowerCase()),s.use&&this.$menu.addClass(i.rtl)},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("rtl")},clickAnchor:function(t,e){}},t[e].defaults[n]={use:"detect"};var i,s,o,a}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var i="mmenu",s="screenReader";t[i].addons[s]={setup:function(){var a=this.opts[s],r=this.conf[s];if(l=t[i].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{},t[i].defaults[s],a),a.aria){if(this.opts.offCanvas){var d=function(){e(this.$menu,"hidden",!1)},c=function(){e(this.$menu,"hidden",!0)};this.bind("open",d),this.bind("close",c),c.call(this)}var h=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)},p=function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)};this.bind("update",h),this.bind("openPanel",h),this.bind("openPanel",p);var u=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("initPanels",u),u.call(this,this.$menu.children("."+o.navbar))}if(a.text){var f=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(r.text.closeSubmenu)).end().children("."+o.next).html(n(r.text.openSubmenu)).end().children("."+o.close).html(n(r.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(r.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("initPanels",f),f.call(this,this.$menu)}},add:function(){o=t[i]._c,a=t[i]._d,r=t[i]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[i].defaults[s]={aria:!1,text:!1},t[i].configuration[s]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}};var o,a,r,l}(jQuery),function(t){function e(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",i="searchfield";t[n].addons[i]={setup:function(){var l=this,d=this.opts[i],c=this.conf[i];r=t[n].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),"boolean"==typeof d.resultsPanel&&(d.resultsPanel={add:d.resultsPanel}),d=this.opts[i]=t.extend(!0,{},t[n].defaults[i],d),c=this.conf[i]=t.extend(!0,{},t[n].configuration[i],c),this.bind("close",function(){this.$menu.find("."+s.search).find("input").blur()}),this.bind("initPanels",function(n){if(d.add){var r;switch(d.addTo){case"panels":r=n;break;default:r=this.$menu.find(d.addTo)}if(r.each(function(){var e=t(this);if(!e.is("."+s.panel)||!e.is("."+s.vertical)){if(!e.children("."+s.search).length){var n=l.__valueOrFn(c.clear,e),i=l.__valueOrFn(c.form,e),o=l.__valueOrFn(c.input,e),r=l.__valueOrFn(c.submit,e),h=t("<"+(i?"form":"div")+' class="'+s.search+'" />'),p=t('<input placeholder="'+d.placeholder+'" type="text" autocomplete="off" />');h.append(p);var u;if(o)for(u in o)p.attr(u,o[u]);if(n&&t('<a class="'+s.btn+" "+s.clear+'" href="#" />').appendTo(h).on(a.click+"-searchfield",function(t){t.preventDefault(),p.val("").trigger(a.keyup+"-searchfield")}),i){for(u in i)h.attr(u,i[u]);r&&!n&&t('<a class="'+s.btn+" "+s.next+'" href="#" />').appendTo(h).on(a.click+"-searchfield",function(t){t.preventDefault(),h.submit()})}e.hasClass(s.search)?e.replaceWith(h):e.prepend(h).addClass(s.hassearch)}if(d.noResults){if(e.closest("."+s.panel).length||(e=l.$pnls.children("."+s.panel).first()),!e.children("."+s.noresultsmsg).length){var f=e.children("."+s.listview).first();t('<div class="'+s.noresultsmsg+" "+s.hidden+'" />').append(d.noResults)[f.length?"insertAfter":"prependTo"](f.length?f:e)}}}}),d.search){if(d.resultsPanel.add){d.showSubPanels=!1;var h=this.$pnls.children("."+s.resultspanel);h.length||(h=t('<div class="'+s.panel+" "+s.resultspanel+" "+s.hidden+'" />').appendTo(this.$pnls).append('<div class="'+s.navbar+" "+s.hidden+'"><a class="'+s.title+'">'+d.resultsPanel.title+"</a></div>").append('<ul class="'+s.listview+'" />').append(this.$pnls.find("."+s.noresultsmsg).first().clone()),this.initPanels(h))}this.$menu.find("."+s.search).each(function(){var n,r,c=t(this),p=c.closest("."+s.panel).length;p?(n=c.closest("."+s.panel),r=n):(n=t("."+s.panel,l.$menu),r=l.$menu),d.resultsPanel.add&&(n=n.not(h));var u=c.children("input"),f=l.__findAddBack(n,"."+s.listview).children("li"),m=f.filter("."+s.divider),v=l.__filterListItems(f),g="a",b=g+", span",y="",w=function(){var e=u.val().toLowerCase();if(e!=y){if(y=e,d.resultsPanel.add&&h.children("."+s.listview).empty(),n.scrollTop(0),v.add(m).addClass(s.hidden).find("."+s.fullsubopensearch).removeClass(s.fullsubopen+" "+s.fullsubopensearch),v.each(function(){var e=t(this),n=g;(d.showTextItems||d.showSubPanels&&e.find("."+s.next))&&(n=b),(e.data(o.searchtext)||e.children(n).text()).toLowerCase().indexOf(y)>-1&&e.add(e.prevAll("."+s.divider).first()).removeClass(s.hidden)}),d.showSubPanels&&n.each(function(e){var n=t(this);l.__filterListItems(n.find("."+s.listview).children()).each(function(){var e=t(this),n=e.data(o.child);e.removeClass(s.nosubresults),n&&n.find("."+s.listview).children().removeClass(s.hidden)})}),d.resultsPanel.add)if(""===y)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+s.subopened).last());else{var i=t();n.each(function(){var e=l.__filterListItems(t(this).find("."+s.listview).children()).not("."+s.hidden).clone(!0);e.length&&(d.resultsPanel.dividers&&(i=i.add('<li class="'+s.divider+'">'+t(this).children("."+s.navbar).text()+"</li>")),i=i.add(e))}),i.find("."+s.next).remove(),h.children("."+s.listview).append(i),this.openPanel(h)}else t(n.get().reverse()).each(function(e){var n=t(this),i=n.data(o.parent);i&&(l.__filterListItems(n.find("."+s.listview).children()).length?(i.hasClass(s.hidden)&&i.children("."+s.next).not("."+s.fullsubopen).addClass(s.fullsubopen).addClass(s.fullsubopensearch),i.removeClass(s.hidden).removeClass(s.nosubresults).prevAll("."+s.divider).first().removeClass(s.hidden)):p||(n.hasClass(s.opened)&&setTimeout(function(){l.openPanel(i.closest("."+s.panel))},(e+1)*(1.5*l.conf.openingInterval)),i.addClass(s.nosubresults)))});r.find("."+s.noresultsmsg)[v.not("."+s.hidden).length?"addClass":"removeClass"](s.hidden),this.update()}};u.off(a.keyup+"-"+i+" "+a.change+"-"+i).on(a.keyup+"-"+i,function(t){e(t.keyCode)||w.call(l)}).on(a.change+"-"+i,function(t){w.call(l)});var x=c.children("."+s.btn);x.length&&u.on(a.keyup+"-"+i,function(t){x[u.val().length?"removeClass":"addClass"](s.hidden)}),u.trigger(a.keyup+"-"+i)})}}})},add:function(){s=t[n]._c,o=t[n]._d,a=t[n]._e,s.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),o.add("searchtext"),a.add("change keyup")},clickAnchor:function(t,e){}},t[n].defaults[i]={add:!1,addTo:"panels",placeholder:"Search",noResults:"Ничего не найдено.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[n].configuration[i]={clear:!1,form:!1,input:!1,submit:!1};var s,o,a,r}(jQuery),function(t){var e="mmenu",n="sectionIndexer";t[e].addons[n]={setup:function(){var s=this,r=this.opts[n];this.conf[n],a=t[e].glbl,"boolean"==typeof r&&(r={add:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("initPanels",function(e){if(r.add){var n;switch(r.addTo){case"panels":n=e;break;default:n=t(r.addTo,this.$menu).filter("."+i.panel)}n.find("."+i.divider).closest("."+i.panel).addClass(i.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+i.hasindexer).length){this.$indexer=t('<div class="'+i.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(o.mouseover+"-sectionindexer "+i.touchstart+"-sectionindexer",function(e){var n=t(this).attr("href").slice(1),o=s.$pnls.children("."+i.current),a=o.find("."+i.listview),r=!1,l=o.scrollTop();o.scrollTop(0),a.children("."+i.divider).not("."+i.hidden).each(function(){!1===r&&n==t(this).text().slice(0,1).toLowerCase()&&(r=t(this).position().top)}),o.scrollTop(!1!==r?r:l)});var a=function(t){s.$menu[(t.hasClass(i.hasindexer)?"add":"remove")+"Class"](i.hasindexer)};this.bind("openPanel",a),a.call(this,this.$pnls.children("."+i.current))}})},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("indexer hasindexer"),o.add("mouseover touchstart")},clickAnchor:function(t,e){return!!t.parent().is("."+i.indexer)||void 0}},t[e].defaults[n]={add:!1,addTo:"panels"};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="setSelected";t[e].addons[n]={setup:function(){var o=this,r=this.opts[n];if(this.conf[n],a=t[e].glbl,"boolean"==typeof r&&(r={hover:r,parent:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),"detect"==r.current){var l=function(t){t=t.split("?")[0].split("#")[0];var e=o.$menu.find('a[href="'+t+'"], a[href="'+t+'/"]');e.length?o.setSelected(e.parent(),!0):(t=t.split("/").slice(0,-1),t.length&&l(t.join("/")))};l(window.location.href)}else r.current||this.bind("initPanels",function(t){t.find("."+i.listview).children("."+i.selected).removeClass(i.selected)});if(r.hover&&this.$menu.addClass(i.hoverselected),r.parent){this.$menu.addClass(i.parentselected);var d=function(t){this.$pnls.find("."+i.listview).find("."+i.next).removeClass(i.selected);for(var e=t.data(s.parent);e&&e.length;)e=e.not("."+i.vertical).children("."+i.next).addClass(i.selected).end().closest("."+i.panel).data(s.parent)};this.bind("openedPanel",d),this.bind("initPanels",function(t){d.call(this,this.$pnls.children("."+i.current))})}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[e].defaults[n]={current:!0,hover:!1,parent:!1};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="toggles";t[e].addons[n]={setup:function(){var s=this;this.opts[n],this.conf[n],a=t[e].glbl,this.bind("initPanels",function(e){this.__refactorClass(t("input",e),this.conf.classNames[n].toggle,"toggle"),this.__refactorClass(t("input",e),this.conf.classNames[n].check,"check"),t("input."+i.toggle+", input."+i.check,e).each(function(){var e=t(this),n=e.closest("li"),o=e.hasClass(i.toggle)?"toggle":"check",a=e.attr("id")||s.__getUniqueId();n.children('label[for="'+a+'"]').length||(e.attr("id",a),n.prepend(e),t('<label for="'+a+'" class="'+i[o]+'"></label>').insertBefore(n.children("a, span").last()))})})},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("toggle check")},clickAnchor:function(t,e){}},t[e].configuration.classNames[n]={toggle:"Toggle",check:"Check"};var i,s,o,a}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n]={setup:function(){var s=this,o=this.opts[n],r=this.conf[n];if(a=t[e].glbl,void 0!==o){o instanceof Array||(o=[o]);var l={};if(o.length){t.each(o,function(a){var d=o[a];"boolean"==typeof d&&d&&(d={}),"object"!=typeof d&&(d={}),void 0===d.content&&(d.content=["prev","title"]),d.content instanceof Array||(d.content=[d.content]),d=t.extend(!0,{},s.opts.navbar,d);var c=d.position,h=d.height;"number"!=typeof h&&(h=1),h=Math.min(4,Math.max(1,h)),"bottom"!=c&&(c="top"),l[c]||(l[c]=0),l[c]++;var p=t("<div />").addClass(i.navbar+" "+i.navbar+"-"+c+" "+i.navbar+"-"+c+"-"+l[c]+" "+i.navbar+"-size-"+h);l[c]+=h-1;for(var u=0,f=0,m=d.content.length;m>f;f++){var v=t[e].addons[n][d.content[f]]||!1;v?u+=v.call(s,p,d,r):(v=d.content[f],v instanceof t||(v=t(d.content[f])),p.append(v))}u+=Math.ceil(p.children().not("."+i.btn).length/h),u>1&&p.addClass(i.navbar+"-content-"+u),p.children("."+i.btn).length&&p.addClass(i.hasbtns),p.prependTo(s.$menu)});for(var d in l)s.$menu.addClass(i.hasnavbar+"-"+d+"-"+l[d])}}},add:function(){i=t[e]._c,s=t[e]._d,o=t[e]._e,i.add("close hasbtns")},clickAnchor:function(t,e){}},t[e].configuration[n]={breadcrumbSeparator:"/"},t[e].configuration.classNames[n]={};var i,s,o,a}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,i,s){var o=t[e]._c,a=t[e]._d;o.add("breadcrumbs separator");var r=t('<span class="'+o.breadcrumbs+'" />').appendTo(n);this.bind("initPanels",function(e){e.removeClass(o.hasnavbar).each(function(){for(var e=[],n=t(this),i=t('<span class="'+o.breadcrumbs+'"></span>'),r=t(this).children().first(),l=!0;r&&r.length;){r.is("."+o.panel)||(r=r.closest("."+o.panel));var d=r.children("."+o.navbar).children("."+o.title).text();e.unshift(l?"<span>"+d+"</span>":'<a href="#'+r.attr("id")+'">'+d+"</a>"),l=!1,r=r.data(a.parent)}i.append(e.join('<span class="'+o.separator+'">'+s.breadcrumbSeparator+"</span>")).appendTo(n.children("."+o.navbar))})});var l=function(){r.html(this.$pnls.children("."+o.current).children("."+o.navbar).children("."+o.breadcrumbs).html())};return this.bind("openPanel",l),this.bind("initPanels",l),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,i){var s=t[e]._c,o=t[e].glbl,a=t('<a class="'+s.close+" "+s.btn+'" href="#" />').appendTo(n),r=function(t){a.attr("href","#"+t.attr("id"))};return r.call(this,o.$page),this.bind("setPage",r),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(i,s){var o,a,r=t[e]._c,l=t('<a class="'+r.next+" "+r.btn+'" href="#" />').appendTo(i),d=function(t){t=t||this.$pnls.children("."+r.current);var e=t.find("."+this.conf.classNames[n].panelNext);o=e.attr("href"),a=e.html(),l[o?"attr":"removeAttr"]("href",o),l[o||a?"removeClass":"addClass"](r.hidden),l.html(a)};return this.bind("openPanel",d),this.bind("initPanels",function(){d.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(i,s){var o=t[e]._c,a=t('<a class="'+o.prev+" "+o.btn+'" href="#" />').appendTo(i);this.bind("initPanels",function(t){t.removeClass(o.hasnavbar).children("."+o.navbar).addClass(o.hidden)});var r,l,d=function(t){if(t=t||this.$pnls.children("."+o.current),!t.hasClass(o.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+o.navbar).children("."+o.prev)),r=e.attr("href"),l=e.html(),a[r?"attr":"removeAttr"]("href",r),a[r||l?"removeClass":"addClass"](o.hidden),a.html(l)}};return this.bind("openPanel",d),this.bind("initPanels",function(){d.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,i){var s=t[e]._c,o=t('<div class="'+s.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=o,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(i,s){var o,a,r=t[e]._c,l=t('<a class="'+r.title+'" />').appendTo(i),d=function(t){if(t=t||this.$pnls.children("."+r.current),!t.hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+r.navbar).children("."+r.title)),o=e.attr("href"),a=e.html()||s.title,l[o?"attr":"removeAttr"]("href",o),l[o||a?"removeClass":"addClass"](r.hidden),l.html(a)}};return this.bind("openPanel",d),this.bind("initPanels",function(t){d.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t,e,n){function i(e,n){this.element=e,this.settings=t.extend({},s,n),this.settings.duplicate||n.hasOwnProperty("removeIds")||(this.settings.removeIds=!1),this._defaults=s,this._name=o,this.init()}var s={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"&#9658;",openedSymbol:"&#9660;",prependTo:"body",appendTo:"",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,removeIds:!0,removeClasses:!1,removeStyles:!1,brand:"",init:function(){},beforeOpen:function(){},beforeClose:function(){},afterOpen:function(){},afterClose:function(){}},o="slicknav",a="slicknav";i.prototype.init=function(){var n,i,s=this,o=t(this.element),r=this.settings;if(r.duplicate?s.mobileNav=o.clone():s.mobileNav=o,r.removeIds&&(s.mobileNav.removeAttr("id"),s.mobileNav.find("*").each(function(e,n){t(n).removeAttr("id")})),r.removeClasses&&(s.mobileNav.removeAttr("class"),s.mobileNav.find("*").each(function(e,n){t(n).removeAttr("class")})),r.removeStyles&&(s.mobileNav.removeAttr("style"),s.mobileNav.find("*").each(function(e,n){t(n).removeAttr("style")})),n=a+"_icon",""===r.label&&(n+=" "+a+"_no-text"),"a"==r.parentTag&&(r.parentTag='a href="#"'),s.mobileNav.attr("class",a+"_nav"),i=t('<div class="'+a+'_menu"></div>'),""!==r.brand){var l=t('<div class="'+a+'_brand">'+r.brand+"</div>");t(i).append(l)}s.btn=t(["<"+r.parentTag+' aria-haspopup="true" tabindex="0" class="'+a+"_btn "+a+'_collapsed">','<span class="'+a+'_menutxt">'+r.label+"</span>",'<span class="'+n+'">','<span class="'+a+'_icon-bar"></span>','<span class="'+a+'_icon-bar"></span>','<span class="'+a+'_icon-bar"></span>',"</span>","</"+r.parentTag+">"].join("")),t(i).append(s.btn),""!==r.appendTo?t(r.appendTo).append(i):t(r.prependTo).prepend(i),i.append(s.mobileNav);var d=s.mobileNav.find("li");t(d).each(function(){var e=t(this),n={};if(n.children=e.children("ul").attr("role","menu"),e.data("menu",n),n.children.length>0){var i=e.contents(),o=!1,l=[];t(i).each(function(){return!t(this).is("ul")&&(l.push(this),void(t(this).is("a")&&(o=!0)))});var d=t("<"+r.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+a+'_item"/>');if(r.allowParentLinks&&!r.nestedParentLinks&&o)t(l).wrapAll('<span class="'+a+"_parent-link "+a+'_row"/>').parent();else{t(l).wrapAll(d).parent().addClass(a+"_row")}r.showChildren?e.addClass(a+"_open"):e.addClass(a+"_collapsed"),e.addClass(a+"_parent");var c=t('<span class="'+a+'_arrow">'+(r.showChildren?r.openedSymbol:r.closedSymbol)+"</span>");r.allowParentLinks&&!r.nestedParentLinks&&o&&(c=c.wrap(d).parent()),t(l).last().after(c)}else 0===e.children().length&&e.addClass(a+"_txtnode");e.children("a").attr("role","menuitem").click(function(e){r.closeOnClick&&!t(e.target).parent().closest("li").hasClass(a+"_parent")&&t(s.btn).click()}),r.closeOnClick&&r.allowParentLinks&&(e.children("a").children("a").click(function(e){t(s.btn).click()}),e.find("."+a+"_parent-link a:not(."+a+"_item)").click(function(e){t(s.btn).click()}))}),t(d).each(function(){var e=t(this).data("menu");r.showChildren||s._visibilityToggle(e.children,null,!1,null,!0)}),s._visibilityToggle(s.mobileNav,null,!1,"init",!0),s.mobileNav.attr("role","menu"),t(e).mousedown(function(){s._outlines(!1)}),t(e).keyup(function(){s._outlines(!0)}),t(s.btn).click(function(t){t.preventDefault(),s._menuToggle()}),s.mobileNav.on("click","."+a+"_item",function(e){e.preventDefault(),s._itemClick(t(this))}),t(s.btn).keydown(function(t){13==(t||event).keyCode&&(t.preventDefault(),s._menuToggle())}),s.mobileNav.on("keydown","."+a+"_item",function(e){13==(e||event).keyCode&&(e.preventDefault(),s._itemClick(t(e.target)))}),r.allowParentLinks&&r.nestedParentLinks&&t("."+a+"_item a").click(function(t){t.stopImmediatePropagation()})},i.prototype._menuToggle=function(t){var e=this,n=e.btn,i=e.mobileNav;n.hasClass(a+"_collapsed")?(n.removeClass(a+"_collapsed"),n.addClass(a+"_open")):(n.removeClass(a+"_open"),n.addClass(a+"_collapsed")),n.addClass(a+"_animating"),e._visibilityToggle(i,n.parent(),!0,n)},i.prototype._itemClick=function(t){var e=this,n=e.settings,i=t.data("menu");i||(i={},i.arrow=t.children("."+a+"_arrow"),i.ul=t.next("ul"),i.parent=t.parent(),i.parent.hasClass(a+"_parent-link")&&(i.parent=t.parent().parent(),i.ul=t.parent().next("ul")),t.data("menu",i)),i.parent.hasClass(a+"_collapsed")?(i.arrow.html(n.openedSymbol),i.parent.removeClass(a+"_collapsed"),i.parent.addClass(a+"_open"),i.parent.addClass(a+"_animating"),e._visibilityToggle(i.ul,i.parent,!0,t)):(i.arrow.html(n.closedSymbol),i.parent.addClass(a+"_collapsed"),i.parent.removeClass(a+"_open"),i.parent.addClass(a+"_animating"),e._visibilityToggle(i.ul,i.parent,!0,t))},i.prototype._visibilityToggle=function(e,n,i,s,o){var r=this,l=r.settings,d=r._getActionItems(e),c=0;i&&(c=l.duration),e.hasClass(a+"_hidden")?(e.removeClass(a+"_hidden"),o||l.beforeOpen(s),e.slideDown(c,l.easingOpen,function(){t(s).removeClass(a+"_animating"),t(n).removeClass(a+"_animating"),o||l.afterOpen(s)}),e.attr("aria-hidden","false"),d.attr("tabindex","0"),r._setVisAttr(e,!1)):(e.addClass(a+"_hidden"),o||l.beforeClose(s),e.slideUp(c,this.settings.easingClose,function(){e.attr("aria-hidden","true"),d.attr("tabindex","-1"),r._setVisAttr(e,!0),e.hide(),t(s).removeClass(a+"_animating"),t(n).removeClass(a+"_animating"),o?"init"==s&&l.init():l.afterClose(s)}))},i.prototype._setVisAttr=function(e,n){var i=this,s=e.children("li").children("ul").not("."+a+"_hidden");n?s.each(function(){var e=t(this);e.attr("aria-hidden","true"),i._getActionItems(e).attr("tabindex","-1"),i._setVisAttr(e,n)}):s.each(function(){var e=t(this);e.attr("aria-hidden","false"),i._getActionItems(e).attr("tabindex","0"),i._setVisAttr(e,n)})},i.prototype._getActionItems=function(t){var e=t.data("menu");if(!e){e={};var n=t.children("li"),i=n.find("a");e.links=i.add(n.find("."+a+"_item")),t.data("menu",e)}return e.links},i.prototype._outlines=function(e){e?t("."+a+"_item, ."+a+"_btn").css("outline",""):t("."+a+"_item, ."+a+"_btn").css("outline","none")},i.prototype.toggle=function(){this._menuToggle()},i.prototype.open=function(){var t=this;t.btn.hasClass(a+"_collapsed")&&t._menuToggle()},i.prototype.close=function(){var t=this;t.btn.hasClass(a+"_open")&&t._menuToggle()},t.fn[o]=function(e){var n=arguments;if(void 0===e||"object"==typeof e)return this.each(function(){t.data(this,"plugin_"+o)||t.data(this,"plugin_"+o,new i(this,e))});if("string"==typeof e&&"_"!==e[0]&&"init"!==e){var s;return this.each(function(){var a=t.data(this,"plugin_"+o);a instanceof i&&"function"==typeof a[e]&&(s=a[e].apply(a,Array.prototype.slice.call(n,1)))}),void 0!==s?s:this}}}(jQuery,document,window),function(t,e){function n(t,e){f(t).push(e)}function i(i,s,o){var a=i.children(s.headerTag),r=i.children(s.bodyTag);a.length>r.length?R(K,"contents"):a.length<r.length&&R(K,"titles");var l=s.startIndex;if(o.stepCount=a.length,s.saveState&&t.cookie){var d=t.cookie(V+v(i)),c=parseInt(d,0);!isNaN(c)&&c<o.stepCount&&(l=c)}o.currentIndex=l,a.each(function(s){var o=t(this),a=r.eq(s),l=a.data("mode"),d=null==l?Z.html:g(Z,/^\s*$/.test(l)||isNaN(l)?l:parseInt(l,0)),c=d===Z.html||a.data("url")===e?"":a.data("url"),h=d!==Z.html&&"1"===a.data("loaded"),p=t.extend({},et,{title:o.html(),content:d===Z.html?a.html():"",contentUrl:c,contentMode:d,contentLoaded:h});n(i,p)})}function s(t){t.triggerHandler("canceled")}function o(t,e){return t.currentIndex-e}function a(e,n){var i=l(e);e.unbind(i).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(i),e.removeClass(n.clearFixCssClass+" vertical");var s=e.find(".content > *");s.removeData("loaded").removeData("mode").removeData("url"),s.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),e.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var o=t('<{0} class="{1}"></{0}>'.format(e.get(0).tagName,e.attr("class"))),a=e._id();return null!=a&&""!==a&&o._id(a),o.html(e.find(".content").html()),e.after(o),e.remove(),o}function r(t,e){var n=t.find(".steps li").eq(e.currentIndex);t.triggerHandler("finishing",[e.currentIndex])?(n.addClass("done").removeClass("error"),t.triggerHandler("finished",[e.currentIndex])):n.addClass("error")}function l(t){var e=t.data("eventNamespace");return null==e&&(e="."+v(t),t.data("eventNamespace",e)),e}function d(t,e){var n=v(t);return t.find("#"+n+Q+e)}function c(t,e){var n=v(t);return t.find("#"+n+G+e)}function h(t,e){var n=v(t);return t.find("#"+n+X+e)}function p(t){return t.data("options")}function u(t){return t.data("state")}function f(t){return t.data("steps")}function m(t,e){var n=f(t);return(e<0||e>=n.length)&&R(Y),n[e]}function v(t){var e=t.data("uid");return null==e&&(e=t._id(),null==e&&(e="steps-uid-".concat(q),t._id(e)),q++,t.data("uid",e)),e}function g(t,n){if(U("enumType",t),U("keyOrValue",n),"string"==typeof n){var i=t[n];return i===e&&R("The enum key '{0}' does not exist.",n),i}if("number"==typeof n){for(var s in t)if(t[s]===n)return n;R("Invalid enum value '{0}'.",n)}else R("Invalid key or value type.")}function b(t,e,n){return T(t,e,n,x(n,1))}function y(t,e,n){return T(t,e,n,o(n,1))}function w(t,e,n,i){if((i<0||i>=n.stepCount)&&R(Y),!(e.forceMoveForward&&i<n.currentIndex)){var s=n.currentIndex;return t.triggerHandler("stepChanging",[n.currentIndex,i])?(n.currentIndex=i,H(t,e,n),S(t,e,n,s),P(t,e,n),$(t,e,n),L(t,e,n,i,s,function(){t.triggerHandler("stepChanged",[i,s])})):t.find(".steps li").eq(s).addClass("error"),!0}}function x(t,e){return t.currentIndex+e}function _(e){var n=t.extend(!0,{},nt,e);return this.each(function(){var e=t(this),s={currentIndex:n.startIndex,currentStep:null,stepCount:0,transitionElement:null};e.data("options",n),e.data("state",s),e.data("steps",[]),i(e,n,s),D(e,n,s),O(e,n),n.autoFocus&&0===q&&d(e,n.startIndex).focus(),e.triggerHandler("init",[n.startIndex])})}function C(e,n,i,s,o){(s<0||s>i.stepCount)&&R(Y),o=t.extend({},et,o),k(e,s,o),i.currentIndex!==i.stepCount&&i.currentIndex>=s&&(i.currentIndex++,H(e,n,i)),i.stepCount++;var a=e.find(".content"),r=t("<{0}>{1}</{0}>".format(n.headerTag,o.title)),l=t("<{0}></{0}>".format(n.bodyTag));return null!=o.contentMode&&o.contentMode!==Z.html||l.html(o.content),0===s?a.prepend(l).prepend(r):c(e,s-1).after(l).after(r),W(e,i,l,s),F(e,n,i,r,s),E(e,n,i,s),s===i.currentIndex&&S(e,n,i),P(e,n,i),e}function k(t,e,n){f(t).splice(e,0,n)}function I(e){var n=t(this),i=p(n),s=u(n);if(i.suppressPaginationOnFocus&&n.find(":focus").is(":input"))return e.preventDefault(),!1;var o={left:37,right:39};e.keyCode===o.left?(e.preventDefault(),y(n,i,s)):e.keyCode===o.right&&(e.preventDefault(),b(n,i,s))}function $(e,n,i){if(i.stepCount>0){var s=i.currentIndex,o=m(e,s);if(!n.enableContentCache||!o.contentLoaded)switch(g(Z,o.contentMode)){case Z.iframe:e.find(".content > .body").eq(i.currentIndex).empty().html('<iframe src="'+o.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case Z.async:var a=c(e,s)._aria("busy","true").empty().append(N(n.loadingTemplate,{text:n.labels.loading}));t.ajax({url:o.contentUrl,cache:!1}).done(function(t){a.empty().html(t)._aria("busy","false").data("loaded","1"),e.triggerHandler("contentLoaded",[s])})}}}function T(t,e,n,i){var s=n.currentIndex;if(i>=0&&i<n.stepCount&&!(e.forceMoveForward&&i<n.currentIndex)){var o=d(t,i),a=o.parent(),r=a.hasClass("disabled");return a._enableAria(),o.click(),s!==n.currentIndex||!r||(a._enableAria(!1),!1)}return!1}function A(e){e.preventDefault();var n=t(this),i=n.parent().parent().parent().parent(),o=p(i),a=u(i),l=n.attr("href");switch(l.substring(l.lastIndexOf("#")+1)){case"cancel":s(i);break;case"finish":r(i,a);break;case"next":b(i,o,a);break;case"previous":y(i,o,a)}}function P(t,e,n){if(e.enablePagination){var i=t.find(".actions a[href$='#finish']").parent(),s=t.find(".actions a[href$='#next']").parent();if(!e.forceMoveForward){t.find(".actions a[href$='#previous']").parent()._enableAria(n.currentIndex>0)}e.enableFinishButton&&e.showFinishButtonAlways?(i._enableAria(n.stepCount>0),s._enableAria(n.stepCount>1&&n.stepCount>n.currentIndex+1)):(i._showAria(e.enableFinishButton&&n.stepCount===n.currentIndex+1),s._showAria(0===n.stepCount||n.stepCount>n.currentIndex+1)._enableAria(n.stepCount>n.currentIndex+1||!e.enableFinishButton))}}function S(e,n,i,s){var o=d(e,i.currentIndex),a=t('<span class="current-info audible">'+n.labels.current+" </span>"),r=e.find(".content > .title");if(null!=s){var l=d(e,s);l.parent().addClass("done").removeClass("error")._selectAria(!1),r.eq(s).removeClass("current").next(".body").removeClass("current"),a=l.find(".current-info"),o.focus()}o.prepend(a).parent()._selectAria().removeClass("done")._enableAria(),r.eq(i.currentIndex).addClass("current").next(".body").addClass("current")}function E(t,e,n,i){for(var s=v(t),o=i;o<n.stepCount;o++){var a=s+Q+o,r=s+G+o,l=s+X+o,d=t.find(".title").eq(o)._id(l);t.find(".steps a").eq(o)._id(a)._aria("controls",r).attr("href","#"+l).html(N(e.titleTemplate,{index:o+1,title:d.html()})),t.find(".body").eq(o)._id(r)._aria("labelledby",l)}}function O(t,e){var n=l(t);t.bind("canceled"+n,e.onCanceled),t.bind("contentLoaded"+n,e.onContentLoaded),t.bind("finishing"+n,e.onFinishing),t.bind("finished"+n,e.onFinished),t.bind("init"+n,e.onInit),t.bind("stepChanging"+n,e.onStepChanging),t.bind("stepChanged"+n,e.onStepChanged),e.enableKeyNavigation&&t.bind("keyup"+n,I),t.find(".actions a").bind("click"+n,A)}function j(t,e,n,i){return!(i<0||i>=n.stepCount||n.currentIndex===i)&&(M(t,i),n.currentIndex>i&&(n.currentIndex--,H(t,e,n)),n.stepCount--,h(t,i).remove(),c(t,i).remove(),d(t,i).parent().remove(),0===i&&t.find(".steps li").first().addClass("first"),i===n.stepCount&&t.find(".steps li").eq(i).addClass("last"),E(t,e,n,i),P(t,e,n),!0)}function M(t,e){f(t).splice(e,1)}function D(e,n,i){var s='<{0} class="{1}">{2}</{0}>',o=g(J,n.stepsOrientation),a=o===J.vertical?" vertical":"",r=t(s.format(n.contentContainerTag,"content "+n.clearFixCssClass,e.html())),l=t(s.format(n.stepsContainerTag,"steps "+n.clearFixCssClass,'<ul role="tablist"></ul>')),d=r.children(n.headerTag),c=r.children(n.bodyTag);e.attr("role","application").empty().append(l).append(r).addClass(n.cssClass+" "+n.clearFixCssClass+a),c.each(function(n){W(e,i,t(this),n)}),d.each(function(s){F(e,n,i,t(this),s)}),S(e,n,i),z(e,n,i)}function W(t,e,n,i){var s=v(t),o=s+G+i,a=s+X+i;n._id(o).attr("role","tabpanel")._aria("labelledby",a).addClass("body")._showAria(e.currentIndex===i)}function z(t,e,n){if(e.enablePagination){var i='<li><a href="#{0}" role="menuitem">{1}</a></li>',s="";e.forceMoveForward||(s+=i.format("previous",e.labels.previous)),s+=i.format("next",e.labels.next),e.enableFinishButton&&(s+=i.format("finish",e.labels.finish)),e.enableCancelButton&&(s+=i.format("cancel",e.labels.cancel)),t.append('<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>'.format(e.actionContainerTag,e.clearFixCssClass,e.labels.pagination,s)),P(t,e,n),$(t,e,n)}}function N(t,n){for(var i=t.match(/#([a-z]*)#/gi),s=0;s<i.length;s++){var o=i[s],a=o.substring(1,o.length-1);n[a]===e&&R("The key '{0}' does not exist in the substitute collection!",a),t=t.replace(o,n[a])}return t}function F(e,n,i,s,o){var a=v(e),r=a+Q+o,d=a+G+o,c=a+X+o,h=e.find(".steps > ul"),p=N(n.titleTemplate,{index:o+1,title:s.html()}),u=t('<li role="tab"><a id="'+r+'" href="#'+c+'" aria-controls="'+d+'">'+p+"</a></li>");u._enableAria(n.enableAllSteps||i.currentIndex>o),i.currentIndex>o&&u.addClass("done"),s._id(c).attr("tabindex","-1").addClass("title"),0===o?h.prepend(u):h.find("li").eq(o-1).after(u),0===o&&h.find("li").removeClass("first").eq(o).addClass("first"),o===i.stepCount-1&&h.find("li").removeClass("last").eq(o).addClass("last"),u.children("a").bind("click"+l(e),B)}function H(e,n,i){n.saveState&&t.cookie&&t.cookie(V+v(e),i.currentIndex)}function L(e,n,i,s,o,a){var r=e.find(".content > .body"),l=g(tt,n.transitionEffect),d=n.transitionEffectSpeed,c=r.eq(s),h=r.eq(o);switch(l){case tt.fade:case tt.slide:var p=l===tt.fade?"fadeOut":"slideUp",f=l===tt.fade?"fadeIn":"slideDown";i.transitionElement=c,h[p](d,function(){var e=t(this)._showAria(!1).parent().parent(),n=u(e);n.transitionElement&&(n.transitionElement[f](d,function(){t(this)._showAria()}).promise().done(a),n.transitionElement=null)});break;case tt.slideLeft:var m=h.outerWidth(!0),v=s>o?-m:m,b=s>o?m:-m;t.when(h.animate({left:v},d,function(){t(this)._showAria(!1)}),c.css("left",b+"px")._showAria().animate({left:0},d)).done(a);break;default:t.when(h._showAria(!1),c._showAria()).done(a)}}function B(e){e.preventDefault();var n=t(this),i=n.parent().parent().parent().parent(),s=p(i),o=u(i),a=o.currentIndex;if(n.parent().is(":not(.disabled):not(.current)")){var r=n.attr("href");w(i,s,o,parseInt(r.substring(r.lastIndexOf("-")+1),0))}if(a===o.currentIndex)return d(i,a).focus(),!1}function R(t){throw arguments.length>1&&(t=t.format(Array.prototype.slice.call(arguments,1))),new Error(t)}function U(t,e){null==e&&R("The argument '{0}' is null or undefined.",t)}t.fn.extend({_aria:function(t,e){return this.attr("aria-"+t,e)},_removeAria:function(t){return this.removeAttr("aria-"+t)},_enableAria:function(t){return null==t||t?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(t){return null==t||t?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(t){return null==t||t?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(t){return t?this.attr("id",t):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var e=1===arguments.length&&t.isArray(arguments[0])?arguments[0]:arguments,n=this,i=0;i<e.length;i++){var s=new RegExp("\\{"+i+"\\}","gm");n=n.replace(s,e[i])}return n});var q=0,V="jQu3ry_5teps_St@te_",Q="-t-",G="-p-",X="-h-",Y="Index out of range.",K="One or more corresponding step {0} are missing.";t.fn.steps=function(e){return t.fn.steps[e]?t.fn.steps[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.steps"):_.apply(this,arguments)},t.fn.steps.add=function(t){var e=u(this);return C(this,p(this),e,e.stepCount,t)},t.fn.steps.destroy=function(){return a(this,p(this))},t.fn.steps.finish=function(){r(this,u(this))},t.fn.steps.getCurrentIndex=function(){return u(this).currentIndex},t.fn.steps.getCurrentStep=function(){return m(this,u(this).currentIndex)},t.fn.steps.getStep=function(t){return m(this,t)},t.fn.steps.insert=function(t,e){return C(this,p(this),u(this),t,e)},t.fn.steps.next=function(){return b(this,p(this),u(this))},t.fn.steps.previous=function(){return y(this,p(this),u(this))},t.fn.steps.remove=function(t){return j(this,p(this),u(this),t)},t.fn.steps.setStep=function(t,e){throw new Error("Not yet implemented!")},t.fn.steps.skip=function(t){throw new Error("Not yet implemented!")};var Z=t.fn.steps.contentMode={html:0,iframe:1,async:2},J=t.fn.steps.stepsOrientation={horizontal:0,vertical:1},tt=t.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},et=t.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:Z.html,contentLoaded:!1},nt=t.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOrientation:J.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:tt.none,transitionEffectSpeed:200,onStepChanging:function(t,e,n){return!0},onStepChanged:function(t,e,n){},onCanceled:function(t){},onFinishing:function(t,e){return!0},onFinished:function(t,e){},onContentLoaded:function(t,e){},onInit:function(t,e){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,n=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},s=t(window),o=t(document),a=[],r=s.height(),l=function(){for(var e=s.scrollTop(),n=o.height(),i=n-r,l=e>i?i-e:0,d=0,c=a.length;d<c;d++){var h=a[d],p=h.stickyWrapper.offset().top,u=p-h.topSpacing-l;if(h.stickyWrapper.css("height",h.stickyElement.outerHeight()),e<=u)null!==h.currentTop&&(h.stickyElement.css({width:"",position:"",top:"","z-index":""}),h.stickyElement.parent().removeClass(h.className),h.stickyElement.trigger("sticky-end",[h]),h.currentTop=null);else{var f=n-h.stickyElement.outerHeight()-h.topSpacing-h.bottomSpacing-e-l;if(f<0?f+=h.topSpacing:f=h.topSpacing,h.currentTop!==f){var m;h.getWidthFrom?m=t(h.getWidthFrom).width()||null:h.widthFromWrapper&&(m=h.stickyWrapper.width()),null==m&&(m=h.stickyElement.width()),h.stickyElement.css("width",m).css("position","fixed").css("top",f).css("z-index",h.zIndex),h.stickyElement.parent().addClass(h.className),null===h.currentTop?h.stickyElement.trigger("sticky-start",[h]):h.stickyElement.trigger("sticky-update",[h]),h.currentTop===h.topSpacing&&h.currentTop>f||null===h.currentTop&&f<h.topSpacing?h.stickyElement.trigger("sticky-bottom-reached",[h]):null!==h.currentTop&&f===h.topSpacing&&h.currentTop<f&&h.stickyElement.trigger("sticky-bottom-unreached",[h]),h.currentTop=f}var v=h.stickyWrapper.parent();h.stickyElement.offset().top+h.stickyElement.outerHeight()>=v.offset().top+v.outerHeight()&&h.stickyElement.offset().top<=h.topSpacing?h.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):h.stickyElement.css("position","fixed").css("top",f).css("bottom","").css("z-index",h.zIndex)}}},d=function(){r=s.height();for(var e=0,n=a.length;e<n;e++){var i=a[e],o=null;i.getWidthFrom?i.responsiveWidth&&(o=t(i.getWidthFrom).width()):i.widthFromWrapper&&(o=i.stickyWrapper.width()),null!=o&&i.stickyElement.css("width",o)}},c={init:function(e){return this.each(function(){var n=t.extend({},i,e),s=t(this),o=s.attr("id"),r=o?o+"-"+i.wrapperClassName:i.wrapperClassName,l=t("<div></div>").attr("id",r).addClass(n.wrapperClassName);s.wrapAll(function(){if(0==t(this).parent("#"+r).length)return l});var d=s.parent();n.center&&d.css({width:s.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===s.css("float")&&s.css({float:"none"}).parent().css({float:"right"}),n.stickyElement=s,n.stickyWrapper=d,n.currentTop=null,a.push(n),c.setWrapperHeight(this),c.setupChangeListeners(this)})},setWrapperHeight:function(e){var n=t(e),i=n.parent();i&&i.css("height",n.outerHeight())},setupChangeListeners:function(t){if(window.MutationObserver){new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&c.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0})}else window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){c.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){c.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){c.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){c.setWrapperHeight(t)}))},update:l,unstick:function(e){return this.each(function(){for(var e=this,i=t(e),s=-1,o=a.length;o-- >0;)a[o].stickyElement.get(0)===e&&(n.call(a,o,1),s=o);-1!==s&&(i.unwrap(),i.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",d,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",d)),t.fn.sticky=function(n){return c[n]?c[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):c.init.apply(this,arguments)},t.fn.unstick=function(n){return c[n]?c[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):c.unstick.apply(this,arguments)},t(function(){setTimeout(l,0)})}),function(t){t.fn.videoBG=function(e,n){if(void 0===n&&(n={}),"object"==typeof e)n=t.extend({},t.fn.videoBG.defaults,e);else{if(e)return t(e).videoBG(n);n=t.fn.videoBG.defaults}var i=t(this);if(i.length){"static"!=i.css("position")&&i.css("position")||i.css("position","relative"),0===n.width&&(n.width=i.width()),0===n.height&&(n.height=i.height());var s=t.fn.videoBG.wrapper();s.height(n.height).width(n.width),n.textReplacement?(n.scale=!0,i.width(n.width).height(n.height).css("text-indent","-9999px")):s.css("z-index",n.zIndex+1),s.html(i.clone(!0));var o=t.fn.videoBG.video(n);return n.scale&&(s.height(n.height).width(n.width),o.height(n.height).width(n.width)),i.html(s),i.append(o),o.find("video")[0]}},t.fn.videoBG.setFullscreen=function(e){var n=t(window).width(),i=t(window).height();e.css("min-height",0).css("min-width",0),e.parent().width(n).height(i);var s=0;if(n/i>e.aspectRatio){e.width(n).height("auto");s=(e.height()-i)/2,s<0&&(s=0),e.css("top",-s)}else{e.width("auto").height(i);if(s=(e.width()-n)/2,s<0&&(s=0),e.css("left",-s),0===s){setTimeout(function(){t.fn.videoBG.setFullscreen(e)},500)}}t("body > .videoBG_wrapper").width(n).height(i)},t.fn.videoBG.video=function(e){t("html, body").scrollTop(-1);var n=t("<div/>");n.addClass("videoBG").css("position",e.position).css("z-index",e.zIndex).css("top",0).css("left",0).css("height",e.height).css("width",e.width).css("opacity",e.opacity).css("overflow","hidden");var i=t("<video/>");if(i.css("position","absolute").css("z-index",e.zIndex).attr("poster",e.poster).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),e.autoplay&&i.attr("autoplay",e.autoplay),e.fullscreen){i.bind("canplay",function(){i.aspectRatio=i.width()/i.height(),t.fn.videoBG.setFullscreen(i)});var s;t(window).resize(function(){clearTimeout(s),s=setTimeout(function(){t.fn.videoBG.setFullscreen(i)},100)}),t.fn.videoBG.setFullscreen(i)}var o=i[0];e.loop&&(loops_left=e.loop,i.bind("ended",function(){loops_left&&o.play(),!0!==loops_left&&loops_left--})),i.bind("canplay",function(){e.autoplay&&o.play()}),t.fn.videoBG.supportsVideo()&&(t.fn.videoBG.supportType("webm")?i.attr("src",e.webm):t.fn.videoBG.supportType("mp4")?i.attr("src",e.mp4):i.attr("src",e.ogv));var a=t("<img/>");return a.attr("src",e.poster).css("position","absolute").css("z-index",e.zIndex).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),t.fn.videoBG.supportsVideo()?n.html(i):n.html(a),e.textReplacement&&(n.css("min-height",1).css("min-width",1),i.css("min-height",1).css("min-width",1),a.css("min-height",1).css("min-width",1),n.height(e.height).width(e.width),i.height(e.height).width(e.width),a.height(e.height).width(e.width)),t.fn.videoBG.supportsVideo()&&o.play(),n},t.fn.videoBG.supportsVideo=function(){return document.createElement("video").canPlayType},t.fn.videoBG.supportType=function(e){if(!t.fn.videoBG.supportsVideo())return!1;var n=document.createElement("video");switch(e){case"webm":return n.canPlayType('video/webm; codecs="vp8, vorbis"');case"mp4":return n.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');case"ogv":return n.canPlayType('video/ogg; codecs="theora, vorbis"')}return!1},t.fn.videoBG.wrapper=function(){var e=t("<div/>");return e.addClass("videoBG_wrapper").css("position","absolute").css("top",0).css("left",0),e},t.fn.videoBG.defaults={mp4:"",ogv:"",webm:"",poster:"",autoplay:!0,loop:!0,scale:!1,position:"absolute",opacity:1,textReplacement:!1,zIndex:0,width:0,height:0,fullscreen:!1,imgFallback:!0}}(jQuery),function(t){t.fn.liteTabs=function(e){return this.each(function(){var n={borders:!1,boxed:!1,fadeIn:!1,height:"auto",hideHash:!0,rounded:!1,selectedTab:1,width:500},i=t.extend({},n,e),s=t(this),o=s.children("ul"),a=o.find("a"),r=t("> div",s);s.addClass("liteTabs").width(i.width),r.css({height:i.height,width:i.width-(parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"))),position:"absolute",left:-9999}),a.click(function(t){var e=r.removeClass("selected").filter("[name="+this.hash+"]");a.removeClass("selected").filter(this).addClass("selected"),i.fadeIn?e.hide().addClass("selected").fadeIn():e.addClass("selected"),i.hideHash&&t.preventDefault()}),i.selectedTab&&a.eq(i.selectedTab-1).click(),i.rounded&&s.addClass("rounded"),i.borders&&s.addClass("borders")&&r.width(r.width()-(parseInt(r.css("border-left-width"))+parseInt(r.css("border-right-width")))),i.boxed&&s.addClass("boxed")})}}(jQuery),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,n){var i={init:function(e,n){this.$elem=t(n),this.options=t.extend({},t.fn.owlCarousel.options,this.$elem.data(),e),this.userOptions=e,this.loadContent()},loadContent:function(){function e(t){var e,n="";if("function"==typeof i.options.jsonSuccess)i.options.jsonSuccess.apply(this,[t]);else{for(e in t.owl)t.owl.hasOwnProperty(e)&&(n+=t.owl[e].item);i.$elem.html(n)}i.logIn()}var n,i=this;"function"==typeof i.options.beforeInit&&i.options.beforeInit.apply(this,[i.$elem]),"string"==typeof i.options.jsonPath?(n=i.options.jsonPath,t.getJSON(n,e)):i.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style")),this.$elem.data("owl-originalClasses",this.$elem.attr("class")),this.$elem.css({opacity:0}),this.orignalItems=this.options.items,this.checkBrowser(),this.wrapperWidth=0,this.checkVisible=null,this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass(),this.eventTypes(),this.$userItems=this.$elem.children(),this.itemsAmount=this.$userItems.length,this.wrapItems(),this.$owlItems=this.$elem.find(".owl-item"),this.$owlWrapper=this.$elem.find(".owl-wrapper"),this.playDirection="next",this.prevItem=0,this.prevArr=[0],this.currentItem=0,this.customEvents(),this.onStartup()},onStartup:function(){this.updateItems(),this.calculateAll(),this.buildControls(),this.updateControls(),this.response(),this.moveEvents(),this.stopOnHover(),this.owlStatus(),!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle),!0===this.options.autoPlay&&(this.options.autoPlay=5e3),this.play(),this.$elem.find(".owl-wrapper").css("display","block"),this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility(),this.onstartup=!1,this.eachMoveUpdate(),"function"==typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad(),!0===this.options.autoHeight&&this.autoHeight(),this.onVisibleItems(),"function"==typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem])},updateVars:function(){"function"==typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]),this.watchVisibility(),this.updateItems(),this.calculateAll(),this.updatePosition(),this.updateControls(),this.eachMoveUpdate(),"function"==typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var t=this;e.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;if(!1!==t.$elem.is(":visible"))return!1;t.$elem.css({opacity:0}),e.clearInterval(t.autoPlayInterval),e.clearInterval(t.checkVisible),t.checkVisible=e.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),e.clearInterval(t.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),this.wrapperOuter=this.$elem.find(".owl-wrapper-outer"),this.$elem.css("display","block")},baseClass:function(){var t=this.$elem.hasClass(this.options.baseClass),e=this.$elem.hasClass(this.options.theme);t||this.$elem.addClass(this.options.baseClass),e||this.$elem.addClass(this.options.theme)},updateItems:function(){var e,n;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1;if(e=t(this.options.responsiveBaseWidth).width(),e>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems),!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(t,e){return t[0]-e[0]}),n=0;n<this.options.itemsCustom.length;n+=1)this.options.itemsCustom[n][0]<=e&&(this.options.items=this.options.itemsCustom[n][1]);else e<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]),e<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),e<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),e<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),e<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&&!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var n,i,s=this;if(!0!==s.options.responsive)return!1;i=t(e).width(),s.resizer=function(){t(e).width()!==i&&(!1!==s.options.autoPlay&&e.clearInterval(s.autoPlayInterval),e.clearTimeout(n),n=e.setTimeout(function(){i=t(e).width(),s.updateVars()},s.options.responsiveRefreshRate))},t(e).resize(s.resizer)},updatePosition:function(){this.jumpTo(this.currentItem),!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var e=this,n=0,i=e.itemsAmount-e.options.items;e.$owlItems.each(function(s){var o=t(this);o.css({width:e.itemWidth}).data("owl-item",Number(s)),0!=s%e.options.items&&s!==i||s>i||(n+=1),o.data("owl-roundPages",n)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0}),this.appendItemsSizes()},calculateAll:function(){this.calculateWidth(),this.appendWrapperSizes(),this.loops(),this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/this.options.items)},max:function(){var t=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);return this.options.items>this.itemsAmount?this.maximumPixels=t=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=t),t},min:function(){return 0},loops:function(){var e,n,i=0,s=0;for(this.positionsInArray=[0],this.pagesInArray=[],e=0;e<this.itemsAmount;e+=1)s+=this.itemWidth,this.positionsInArray.push(-s),!0===this.options.scrollPerPage&&(n=t(this.$owlItems[e]),(n=n.data("owl-roundPages"))!==i&&(this.pagesInArray[i]=this.positionsInArray[e],i=n))},buildControls:function(){!0!==this.options.navigation&&!0!==this.options.pagination||(this.owlControls=t('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem)),!0===this.options.pagination&&this.buildPagination(),!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var e=this,n=t('<div class="owl-buttons"/>');e.owlControls.append(n),e.buttonPrev=t("<div/>",{class:"owl-prev",html:e.options.navigationText[0]||""}),e.buttonNext=t("<div/>",{class:"owl-next",html:e.options.navigationText[1]||""}),n.append(e.buttonPrev).append(e.buttonNext),n.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(t){t.preventDefault()}),n.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(n){n.preventDefault(),t(this).hasClass("owl-next")?e.next():e.prev()})},buildPagination:function(){var e=this;e.paginationWrapper=t('<div class="owl-pagination"/>'),e.owlControls.append(e.paginationWrapper),e.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(n){n.preventDefault(),Number(t(this).data("owl-page"))!==e.currentItem&&e.goTo(Number(t(this).data("owl-page")),!0)})},updatePagination:function(){var e,n,i,s,o,a;if(!1===this.options.pagination)return!1;for(this.paginationWrapper.html(""),e=0,n=this.itemsAmount-this.itemsAmount%this.options.items,s=0;s<this.itemsAmount;s+=1)0==s%this.options.items&&(e+=1,n===s&&(i=this.itemsAmount-this.options.items),o=t("<div/>",{class:"owl-page"}),a=t("<span></span>",{text:!0===this.options.paginationNumbers?e:"",class:!0===this.options.paginationNumbers?"owl-numbers":""}),o.append(a),o.data("owl-page",n===s?i:s),o.data("owl-roundPages",e),this.paginationWrapper.append(o));this.checkPagination()},checkPagination:function(){var e=this;if(!1===e.options.pagination)return!1;e.paginationWrapper.find(".owl-page").each(function(){t(this).data("owl-roundPages")===t(e.$owlItems[e.currentItem]).data("owl-roundPages")&&(e.paginationWrapper.find(".owl-page").removeClass("active"),t(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination(),this.checkNavigation(),this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(t){if(this.isTransition)return!1;if(this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1,this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0)){if(!0!==this.options.rewindNav)return this.currentItem=this.maximumItem,!1;this.currentItem=0,t="rewind"}this.goTo(this.currentItem,t)},prev:function(t){if(this.isTransition)return!1;if(this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?this.options.items:1),0>this.currentItem){if(!0!==this.options.rewindNav)return this.currentItem=0,!1;this.currentItem=this.maximumItem,t="rewind"}this.goTo(this.currentItem,t)},goTo:function(t,n,i){var s=this;return!s.isTransition&&("function"==typeof s.options.beforeMove&&s.options.beforeMove.apply(this,[s.$elem]),t>=s.maximumItem?t=s.maximumItem:0>=t&&(t=0),s.currentItem=s.owl.currentItem=t,!1!==s.options.transitionStyle&&"drag"!==i&&1===s.options.items&&!0===s.browser.support3d?(s.swapSpeed(0),!0===s.browser.support3d?s.transition3d(s.positionsInArray[t]):s.css2slide(s.positionsInArray[t],1),s.afterGo(),s.singleItemTransition(),!1):(t=s.positionsInArray[t],!0===s.browser.support3d?(s.isCss3Finish=!1,!0===n?(s.swapSpeed("paginationSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.paginationSpeed)):"rewind"===n?(s.swapSpeed(s.options.rewindSpeed),e.setTimeout(function(){s.isCss3Finish=!0},s.options.rewindSpeed)):(s.swapSpeed("slideSpeed"),e.setTimeout(function(){s.isCss3Finish=!0},s.options.slideSpeed)),s.transition3d(t)):!0===n?s.css2slide(t,s.options.paginationSpeed):"rewind"===n?s.css2slide(t,s.options.rewindSpeed):s.css2slide(t,s.options.slideSpeed),void s.afterGo()))},jumpTo:function(t){"function"==typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]),t>=this.maximumItem||-1===t?t=this.maximumItem:0>=t&&(t=0),this.swapSpeed(0),!0===this.browser.support3d?this.transition3d(this.positionsInArray[t]):this.css2slide(this.positionsInArray[t],1),this.currentItem=this.owl.currentItem=t,this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem),this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2],this.prevArr.shift(0),this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp()),"function"==typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop",e.clearInterval(this.autoPlayInterval)},checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var t=this;if(t.apStatus="play",!1===t.options.autoPlay)return!1;e.clearInterval(t.autoPlayInterval),t.autoPlayInterval=e.setInterval(function(){t.next(!0)},t.options.autoPlay)},swapSpeed:function(t){"slideSpeed"===t?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===t?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!=typeof t&&this.$owlWrapper.css(this.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){return{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){this.$owlWrapper.css(this.doTranslate(t))},css2move:function(t){this.$owlWrapper.css({left:t})},css2slide:function(t,e){var n=this;n.isCssFinish=!1,n.$owlWrapper.stop(!0,!0).animate({left:t},{duration:e||n.options.slideSpeed,complete:function(){n.isCssFinish=!0}})},checkBrowser:function(){var t=n.createElement("div");t.style.cssText="  -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)",t=t.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g),this.browser={support3d:null!==t&&1===t.length,isTouch:"ontouchstart"in e||e.navigator.msMaxTouchPoints}},moveEvents:function(){!1===this.options.mouseDrag&&!1===this.options.touchDrag||(this.gestures(),this.disabledEvents())},eventTypes:function(){var t=["s","e","x"];this.ev_types={},!0===this.options.mouseDrag&&!0===this.options.touchDrag?t=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:!1===this.options.mouseDrag&&!0===this.options.touchDrag?t=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(t=["mousedown.owl","mousemove.owl","mouseup.owl"]),this.ev_types.start=t[0],this.ev_types.move=t[1],this.ev_types.end=t[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(t){t.preventDefault()}),this.$elem.on("mousedown.disableTextSelect",function(e){return t(e.target).is("input, textarea, select, option")})},gestures:function(){function i(t){if(void 0!==t.touches)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(void 0===t.touches){if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY};if(void 0===t.pageX)return{x:t.clientX,y:t.clientY}}}function s(e){"on"===e?(t(n).on(r.ev_types.move,o),t(n).on(r.ev_types.end,a)):"off"===e&&(t(n).off(r.ev_types.move),t(n).off(r.ev_types.end))}function o(s){s=s.originalEvent||s||e.event,r.newPosX=i(s).x-l.offsetX,r.newPosY=i(s).y-l.offsetY,r.newRelativeX=r.newPosX-l.relativePos,"function"==typeof r.options.startDragging&&!0!==l.dragging&&0!==r.newRelativeX&&(l.dragging=!0,r.options.startDragging.apply(r,[r.$elem])),(8<r.newRelativeX||-8>r.newRelativeX)&&!0===r.browser.isTouch&&(void 0!==s.preventDefault?s.preventDefault():s.returnValue=!1,l.sliding=!0),(10<r.newPosY||-10>r.newPosY)&&!1===l.sliding&&t(n).off("touchmove.owl"),r.newPosX=Math.max(Math.min(r.newPosX,r.newRelativeX/5),r.maximumPixels+r.newRelativeX/5),!0===r.browser.support3d?r.transition3d(r.newPosX):r.css2move(r.newPosX)}function a(n){n=n.originalEvent||n||e.event;var i;n.target=n.target||n.srcElement,l.dragging=!1,!0!==r.browser.isTouch&&r.$owlWrapper.removeClass("grabbing"),r.dragDirection=0>r.newRelativeX?r.owl.dragDirection="left":r.owl.dragDirection="right",0!==r.newRelativeX&&(i=r.getNewPosition(),r.goTo(i,!1,"drag"),l.targetElement===n.target&&!0!==r.browser.isTouch&&(t(n.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(e.target).off("click.disable")}),n=t._data(n.target,"events").click,i=n.pop(),n.splice(0,0,i))),s("off")}var r=this,l={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};r.isCssFinish=!0,r.$elem.on(r.ev_types.start,".owl-wrapper",function(n){n=n.originalEvent||n||e.event;var o;if(3===n.which)return!1;if(!(r.itemsAmount<=r.options.items)){if(!1===r.isCssFinish&&!r.options.dragBeforeAnimFinish||!1===r.isCss3Finish&&!r.options.dragBeforeAnimFinish)return!1;!1!==r.options.autoPlay&&e.clearInterval(r.autoPlayInterval),!0===r.browser.isTouch||r.$owlWrapper.hasClass("grabbing")||r.$owlWrapper.addClass("grabbing"),r.newPosX=0,r.newRelativeX=0,t(this).css(r.removeTransition()),o=t(this).position(),l.relativePos=o.left,l.offsetX=i(n).x-o.left,l.offsetY=i(n).y-o.top,s("on"),l.sliding=!1,l.targetElement=n.target||n.srcElement}})},getNewPosition:function(){var t=this.closestItem();return t>this.maximumItem?t=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=t=0),t},closestItem:function(){var e=this,n=!0===e.options.scrollPerPage?e.pagesInArray:e.positionsInArray,i=e.newPosX,s=null;return t.each(n,function(o,a){i-e.itemWidth/20>n[o+1]&&i-e.itemWidth/20<a&&"left"===e.moveDirection()?(s=a,e.currentItem=!0===e.options.scrollPerPage?t.inArray(s,e.positionsInArray):o):i+e.itemWidth/20<a&&i+e.itemWidth/20>(n[o+1]||n[o]-e.itemWidth)&&"right"===e.moveDirection()&&(!0===e.options.scrollPerPage?(s=n[o+1]||n[n.length-1],e.currentItem=t.inArray(s,e.positionsInArray)):(s=n[o+1],e.currentItem=o+1))}),e.currentItem},moveDirection:function(){var t;return 0>this.newRelativeX?(t="right",this.playDirection="next"):(t="left",this.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",function(){t.next()}),t.$elem.on("owl.prev",function(){t.prev()}),t.$elem.on("owl.play",function(e,n){t.options.autoPlay=n,t.play(),t.hoverStatus="play"}),t.$elem.on("owl.stop",function(){t.stop(),t.hoverStatus="stop"}),t.$elem.on("owl.goTo",function(e,n){t.goTo(n)}),t.$elem.on("owl.jumpTo",function(e,n){t.jumpTo(n)})},stopOnHover:function(){var t=this;!0===t.options.stopOnHover&&!0!==t.browser.isTouch&&!1!==t.options.autoPlay&&(t.$elem.on("mouseover",function(){t.stop()}),t.$elem.on("mouseout",function(){"stop"!==t.hoverStatus&&t.play()}))},lazyLoad:function(){var e,n,i,s;if(!1===this.options.lazyLoad)return!1;for(e=0;e<this.itemsAmount;e+=1)n=t(this.$owlItems[e]),"loaded"!==n.data("owl-loaded")&&(i=n.data("owl-item"),s=n.find(".lazyOwl"),"string"!=typeof s.data("src")?n.data("owl-loaded","loaded"):(void 0===n.data("owl-loaded")&&(s.hide(),n.addClass("loading").data("owl-loaded","checked")),(!0!==this.options.lazyFollow||i>=this.currentItem)&&i<this.currentItem+this.options.items&&s.length&&this.lazyPreload(n,s)))},lazyPreload:function(t,n){function i(){t.data("owl-loaded","loaded").removeClass("loading"),n.removeAttr("data-src"),"fade"===a.options.lazyEffect?n.fadeIn(400):n.show(),"function"==typeof a.options.afterLazyLoad&&a.options.afterLazyLoad.apply(this,[a.$elem])}function s(){r+=1,a.completeImg(n.get(0))||!0===o?i():100>=r?e.setTimeout(s,100):i()}var o,a=this,r=0;"DIV"===n.prop("tagName")?(n.css("background-image","url("+n.data("src")+")"),o=!0):n[0].src=n.data("src"),s()},autoHeight:function(){function n(){var n=t(o.$owlItems[o.currentItem]).height();o.wrapperOuter.css("height",n+"px"),o.wrapperOuter.hasClass("autoHeight")||e.setTimeout(function(){o.wrapperOuter.addClass("autoHeight")},0)}function i(){s+=1,o.completeImg(a.get(0))?n():100>=s?e.setTimeout(i,100):o.wrapperOuter.css("height","")}var s,o=this,a=t(o.$owlItems[o.currentItem]).find("img");void 0!==a.get(0)?(s=0,i()):n()},completeImg:function(t){return!(!t.complete||void 0!==t.naturalWidth&&0===t.naturalWidth)},onVisibleItems:function(){var e;for(!0===this.options.addClassActive&&this.$owlItems.removeClass("active"),this.visibleItems=[],e=this.currentItem;e<this.currentItem+this.options.items;e+=1)this.visibleItems.push(e),!0===this.options.addClassActive&&t(this.$owlItems[e]).addClass("active");this.owl.visibleItems=this.visibleItems},transitionTypes:function(t){this.outClass="owl-"+t+"-out",this.inClass="owl-"+t+"-in"},singleItemTransition:function(){var t=this,e=t.outClass,n=t.inClass,i=t.$owlItems.eq(t.currentItem),s=t.$owlItems.eq(t.prevItem),o=Math.abs(t.positionsInArray[t.currentItem])+t.positionsInArray[t.prevItem],a=Math.abs(t.positionsInArray[t.currentItem])+t.itemWidth/2;t.isTransition=!0,t.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":a+"px","-moz-perspective-origin":a+"px","perspective-origin":a+"px"}),s.css({position:"relative",left:o+"px"}).addClass(e).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){t.endPrev=!0,s.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"),t.clearTransStyle(s,e)}),i.addClass(n).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){t.endCurrent=!0,i.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"),t.clearTransStyle(i,n)})},clearTransStyle:function(t,e){t.css({position:"",left:""}).removeClass(e),this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect"),t(n).off(".owl owl"),t(e).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove()),this.clearEvents(),this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop(),e.clearInterval(this.checkVisible),this.unWrap(),this.$elem.removeData()},reinit:function(e){e=t.extend({},this.userOptions,e),this.unWrap(),this.init(e,this.$elem)},addItem:function(t,e){var n;return!!t&&(0===this.$elem.children().length?(this.$elem.append(t),this.setVars(),!1):(this.unWrap(),n=void 0===e||-1===e?-1:e,n>=this.$userItems.length||-1===n?this.$userItems.eq(-1).after(t):this.$userItems.eq(n).before(t),void this.setVars()))},removeItem:function(t){if(0===this.$elem.children().length)return!1;t=void 0===t||-1===t?-1:t,this.unWrap(),this.$userItems.eq(t).remove(),this.setVars()}};t.fn.owlCarousel=function(e){return this.each(function(){if(!0===t(this).data("owl-init"))return!1;t(this).data("owl-init",!0);var n=Object.create(i);n.init(e,this),t.data(this,"owlCarousel",n)})},t.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:e,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.Rellax=e()}(this,function(){var t=function(e,n){var i=Object.create(t.prototype),s=0,o=0,a=[],r=!1,l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},d=function(t,e,n){return t<=e?e:t>=n?n:t};i.options={speed:-2,center:!1},n&&Object.keys(n).forEach(function(t){i.options[t]=n[t]}),i.options.speed=d(i.options.speed,-10,10),e||(e=".rellax");var c=document.querySelectorAll(e);if(!(0<c.length))throw Error("The elements you're trying to select don't exist.");i.elems=c;var h=function(t){var e=t.getAttribute("data-rellax-percentage"),n=t.getAttribute("data-rellax-speed"),s=e||i.options.center?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop:0,a=s+t.getBoundingClientRect().top,r=t.clientHeight||t.offsetHeight||t.scrollHeight,l=e||(s-a+o)/(r+o);return i.options.center&&(l=.5),s=n?d(n,-10,10):i.options.speed,(e||i.options.center)&&(s=d(n||i.options.speed,-5,5)),e=Math.round(100*s*(1-l)),t=t.style.cssText,n="",0<=t.indexOf("transform")&&(n=t.indexOf("transform"),n=t.slice(n),n=(l=n.indexOf(";"))?" "+n.slice(11,l).replace(/\s/g,""):" "+n.slice(11).replace(/\s/g,"")),{base:e,top:a,height:r,speed:s,style:t,transform:n}},p=function(){var t=s;return s=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,t!=s},u=function(){p()&&!1===r&&f(),l(u)},f=function(){for(var t=0;t<i.elems.length;t++){var e=" translate3d(0,"+(Math.round(100*a[t].speed*(1-(s-a[t].top+o)/(a[t].height+o)))-a[t].base)+"px,0)"+a[t].transform;i.elems[t].style.cssText=a[t].style+"-webkit-transform:"+e+";-moz-transform:"+e+";transform:"+e+";"}};return i.destroy=function(){for(var t=0;t<i.elems.length;t++)i.elems[t].style.cssText=a[t].style;r=!0},function(){o=window.innerHeight,p();for(var t=0;t<i.elems.length;t++){var e=h(i.elems[t]);a.push(e)}window.addEventListener("resize",function(){f()}),u(),f()}(),i};return t});