!function($){!function($){function t(t){return"object"==typeof t?t:{top:t,left:t}}var e=$.scrollTo=function(t,e,i){$(window).scrollTo(t,e,i)};e.defaults={axis:"xy",duration:parseFloat($.fn.$)>=1.3?0:1,limit:!0},e.window=function(t){return $(window)._scrollable()},$.fn._scrollable=function(){return this.map(function(){var t=this,e=!t.nodeName||-1!=$.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!e)return t;var i=(t.contentWindow||t).document||t.ownerDocument||t;return/webkit/i.test(navigator.userAgent)||"BackCompat"==i.compatMode?i.body:i.documentElement})},$.fn.scrollTo=function(i,n,o){return"object"==typeof n&&(o=n,n=0),"function"==typeof o&&(o={onAfter:o}),"max"==i&&(i=9e9),o=$.extend({},e.defaults,o),n=n||o.duration,o.queue=o.queue&&o.axis.length>1,o.queue&&(n/=2),o.offset=t(o.offset),o.over=t(o.over),this._scrollable().each(function(){function r(t){a.animate(d,n,o.easing,t&&function(){t.call(this,i,o)})}if(null!=i){var s=this,a=$(s),l=i,c,d={},u=a.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=t(l);break}if(l=$(l,this),!l.length)return;case"object":(l.is||l.style)&&(c=(l=$(l)).offset())}$.each(o.axis.split(""),function(t,i){var n="x"==i?"Left":"Top",f=n.toLowerCase(),p="scroll"+n,h=s[p],m=e.max(s,i);if(c)d[p]=c[f]+(u?0:h-a.offset()[f]),o.margin&&(d[p]-=parseInt(l.css("margin"+n))||0,d[p]-=parseInt(l.css("border"+n+"Width"))||0),d[p]+=o.offset[f]||0,o.over[f]&&(d[p]+=l["x"==i?"width":"height"]()*o.over[f]);else{var g=l[f];d[p]=g.slice&&"%"==g.slice(-1)?parseFloat(g)/100*m:g}o.limit&&/^\d+$/.test(d[p])&&(d[p]=d[p]<=0?0:Math.min(d[p],m)),!t&&o.queue&&(h!=d[p]&&r(o.onAfterFirst),delete d[p])}),r(o.onAfter)}}).end()},e.max=function(t,e){var i="x"==e?"Width":"Height",n="scroll"+i;if(!$(t).is("html,body"))return t[n]-$(t)[i.toLowerCase()]();var o="client"+i,r=t.ownerDocument.documentElement,s=t.ownerDocument.body;return Math.max(r[n],s[n])-Math.min(r[o],s[o])}}($)}(jQuery),function(t,e,i){t.jRespond=function(t){var e=[],n=[],o=t,r="",s="",a,l=0,c=100,d=500,u=d,f=function(){var t=0;return t="number"!=typeof window.innerWidth?0!==document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth:window.innerWidth},p=function(t){if(t.length===i)h(t);else for(var e=0;e=o[i].enter&&t<=o[i].exit){e=!0;break}e&&r!==o[i].label?(s=r,r=o[i].label,m()):e||""===r||(r="",m())},v=function(t){if("object"==typeof t){if(t.join().indexOf(r)>=0)return!0}else{if("*"===t)return!0;if("string"==typeof t&&r===t)return!0}},y=function(){var t=f();t!==l?(u=c,g(t)):u=d,l=t,setTimeout(y,u)};return y(),{addFunc:function(t){p(t)},getBreakpoint:function(){return r}}}}(this,this.document),function(t){t.jPanelMenu=function(e){("undefined"==typeof e||null==e)&&(e={});var i={options:t.extend({menu:"#menu",trigger:".menu-trigger",excludedPanelContent:"style, script",direction:"left",openPosition:"250px",animated:!0,closeOnContentClick:!0,keyboardShortcuts:[{code:27,open:!1,close:!0},{code:37,open:!1,close:!0},{code:39,open:!0,close:!0},{code:77,open:!0,close:!0}],duration:150,openDuration:e.duration||150,closeDuration:e.duration||150,easing:"ease-in-out",openEasing:e.easing||"ease-in-out",closeEasing:e.easing||"ease-in-out",before:function(){},beforeOpen:function(){},beforeClose:function(){},after:function(){},afterOpen:function(){},afterClose:function(){},beforeOn:function(){},afterOn:function(){},beforeOff:function(){},afterOff:function(){}},e),settings:{transitionsSupported:"WebkitTransition"in document.body.style||"MozTransition"in document.body.style||"msTransition"in document.body.style||"OTransition"in document.body.style||"Transition"in document.body.style,shiftFixedChildren:!1,panelPosition:"relative",positionUnits:"px"},menu:"#jPanelMenu-menu",panel:".jPanelMenu-panel",fixedChildren:[],timeouts:{},clearTimeouts:function(){clearTimeout(i.timeouts.open),clearTimeout(i.timeouts.afterOpen),clearTimeout(i.timeouts.afterClose)},setPositionUnits:function(){var t=!1,e=["%","px","em"];for(unitID in e){var n=e[unitID];i.options.openPosition.toString().substr(-n.length)==n&&(t=!0,i.settings.positionUnits=n)}t||(i.options.openPosition=parseInt(i.options.openPosition)+i.settings.positionUnits)},checkFixedChildren:function(){i.disableTransitions();var e={position:t(i.panel).css("position")};if(e[i.options.direction]="auto"==t(i.panel).css(i.options.direction)?0:t(i.panel).css(i.options.direction),t(i.panel).find("> *").each(function(){"fixed"==t(this).css("position")&&"auto"==t(this).css(i.options.direction)&&i.fixedChildren.push(this)}),i.fixedChildren.length>0){var n={position:"relative"};n[i.options.direction]="1px",i.setPanelStyle(n),0==parseInt(t(i.fixedChildren[0]).offset().left)&&(i.settings.shiftFixedChildren=!0)}i.setPanelStyle(e)},setjPanelMenuStyles:function(){var e="#fff",n=t("html").css("background-color"),o=t("body").css("background-color");e="transparent"!=o&&"rgba(0, 0, 0, 0)"!=o?o:"transparent"!=n&&"rgba(0, 0, 0, 0)"!=n?n:"#fff",0==t("#jPanelMenu-style-master").length&&t("body").append('")},setMenuState:function(e){var i=e?"open":"closed";t("body").attr("data-menu-position",i)},getMenuState:function(){return t("body").attr("data-menu-position")},menuIsOpen:function(){return"open"==i.getMenuState()?!0:!1},setMenuStyle:function(e){t(i.menu).css(e)},setPanelStyle:function(e){t(i.panel).css(e)},showMenu:function(){i.setMenuStyle({display:"block"}),i.setMenuStyle({"z-index":"1"})},hideMenu:function(){i.setMenuStyle({"z-index":"-1"}),i.setMenuStyle({display:"none"})},enableTransitions:function(e,n){var o=e/1e3,r=i.getCSSEasingFunction(n);i.disableTransitions(),t("body").append('")},disableTransitions:function(){t("#jPanelMenu-style-transitions").remove()},enableFixedTransitions:function(e,n,o,r){var s=o/1e3,a=i.getCSSEasingFunction(r);i.disableFixedTransitions(n),t("body").append('")},disableFixedTransitions:function(e){t("#jPanelMenu-style-fixed-"+e).remove()},getCSSEasingFunction:function(t){switch(t){case"linear":return t;case"ease":return t;case"ease-in":return t;case"ease-out":return t;case"ease-in-out":return t;default:return"ease-in-out"}},getJSEasingFunction:function(t){switch(t){case"linear":return t;default:return"swing"}},openMenu:function(e){("undefined"==typeof e||null==e)&&(e=i.options.animated),i.clearTimeouts(),i.options.before(),i.options.beforeOpen(),i.setMenuState(!0),i.setPanelStyle({position:"relative"}),i.showMenu();var n={none:e?!1:!0,transitions:e&&i.settings.transitionsSupported?!0:!1};if(n.transitions||n.none){n.none&&i.disableTransitions(),n.transitions&&i.enableTransitions(i.options.openDuration,i.options.openEasing);var o={};o[i.options.direction]=i.options.openPosition,i.setPanelStyle(o),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e=t(this).prop("tagName").toLowerCase()+" "+t(this).attr("class"),o=e.replace(" ","."),e=e.replace(" ","-");n.none&&i.disableFixedTransitions(e),n.transitions&&i.enableFixedTransitions(o,e,i.options.openDuration,i.options.openEasing);var r={};r[i.options.direction]=i.options.openPosition,t(this).css(r)}),i.timeouts.afterOpen=setTimeout(function(){i.disableTransitions(),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e=t(this).prop("tagName").toLowerCase()+" "+t(this).attr("class"),e=e.replace(" ","-");i.disableFixedTransitions(e)}),i.options.after(),i.options.afterOpen(),i.initiateContentClickListeners()},i.options.openDuration)}else{var r=i.getJSEasingFunction(i.options.openEasing),s={};s[i.options.direction]=i.options.openPosition,t(i.panel).stop().animate(s,i.options.openDuration,r,function(){i.options.after(),i.options.afterOpen(),i.initiateContentClickListeners()}),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e={};e[i.options.direction]=i.options.openPosition,t(this).stop().animate(e,i.options.openDuration,r)})}},closeMenu:function(e){("undefined"==typeof e||null==e)&&(e=i.options.animated),i.clearTimeouts(),i.options.before(),i.options.beforeClose(),i.setMenuState(!1);var n={none:e?!1:!0,transitions:e&&i.settings.transitionsSupported?!0:!1};if(n.transitions||n.none){n.none&&i.disableTransitions(),n.transitions&&i.enableTransitions(i.options.closeDuration,i.options.closeEasing);var o={};o[i.options.direction]=0+i.settings.positionUnits,i.setPanelStyle(o),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e=t(this).prop("tagName").toLowerCase()+" "+t(this).attr("class"),o=e.replace(" ","."),e=e.replace(" ","-");n.none&&i.disableFixedTransitions(e),n.transitions&&i.enableFixedTransitions(o,e,i.options.closeDuration,i.options.closeEasing);var r={};r[i.options.direction]=0+i.settings.positionUnits,t(this).css(r)}),i.timeouts.afterClose=setTimeout(function(){i.setPanelStyle({position:i.settings.panelPosition}),i.disableTransitions(),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e=t(this).prop("tagName").toLowerCase()+" "+t(this).attr("class"),e=e.replace(" ","-");i.disableFixedTransitions(e)}),i.hideMenu(),i.options.after(),i.options.afterClose(),i.destroyContentClickListeners()},i.options.closeDuration)}else{var r=i.getJSEasingFunction(i.options.closeEasing),s={};s[i.options.direction]=0+i.settings.positionUnits,t(i.panel).stop().animate(s,i.options.closeDuration,r,function(){i.setPanelStyle({position:i.settings.panelPosition}),i.hideMenu(),i.options.after(),i.options.afterClose(),i.destroyContentClickListeners()}),i.settings.shiftFixedChildren&&t(i.fixedChildren).each(function(){var e={};e[i.options.direction]=0+i.settings.positionUnits,t(this).stop().animate(e,i.options.closeDuration,r)})}},triggerMenu:function(t){i.menuIsOpen()?i.closeMenu(t):i.openMenu(t)},initiateClickListeners:function(){t(document).on("click",i.options.trigger,function(){return i.triggerMenu(i.options.animated),!1})},destroyClickListeners:function(){t(document).off("click",i.options.trigger,null)},initiateContentClickListeners:function(){return i.options.closeOnContentClick?(t(document).on("click",i.panel,function(t){i.menuIsOpen()&&i.closeMenu(i.options.animated)}),void t(document).on("touchend",i.panel,function(t){i.menuIsOpen()&&i.closeMenu(i.options.animated)})):!1},destroyContentClickListeners:function(){return i.options.closeOnContentClick?(t(document).off("click",i.panel,null),void t(document).off("touchend",i.panel,null)):!1},initiateKeyboardListeners:function(){var e=["input","textarea"];t(document).on("keydown",function(n){var o=t(n.target),r=!1;if(t.each(e,function(){o.is(this.toString())&&(r=!0)}),r)return!0;for(mapping in i.options.keyboardShortcuts)if(n.which==i.options.keyboardShortcuts[mapping].code){var s=i.options.keyboardShortcuts[mapping];return s.open&&s.close?i.triggerMenu(i.options.animated):!s.open||s.close||i.menuIsOpen()?!s.open&&s.close&&i.menuIsOpen()&&i.closeMenu(i.options.animated):i.openMenu(i.options.animated),!1}})},destroyKeyboardListeners:function(){t(document).off("keydown",null)},setupMarkup:function(){t("html").addClass("jPanelMenu"),t("body > *").not(i.menu+", "+i.options.excludedPanelContent).wrapAll('
'),t(i.options.menu).clone().attr("id",i.menu.replace("#","")).insertAfter("body > "+i.panel)},resetMarkup:function(){t("html").removeClass("jPanelMenu"),t("body > "+i.panel+" > *").unwrap(),t(i.menu).remove()},init:function(){i.options.beforeOn(),i.initiateClickListeners(),"[object Array]"===Object.prototype.toString.call(i.options.keyboardShortcuts)&&i.initiateKeyboardListeners(),i.setjPanelMenuStyles(),i.setMenuState(!1),i.setupMarkup(),i.setMenuStyle({width:i.options.openPosition}),i.checkFixedChildren(),i.setPositionUnits(),i.closeMenu(!1),i.options.afterOn()},destroy:function(){i.options.beforeOff(),i.closeMenu(),i.destroyClickListeners(),"[object Array]"===Object.prototype.toString.call(i.options.keyboardShortcuts)&&i.destroyKeyboardListeners(),i.resetMarkup();var e={};e[i.options.direction]="auto",t(i.fixedChildren).each(function(){t(this).css(e)}),i.fixedChildren=[],i.options.afterOff()}};return{on:i.init,off:i.destroy,trigger:i.triggerMenu,open:i.openMenu,close:i.closeMenu,isOpen:i.menuIsOpen,menu:i.menu,getMenu:function(){return t(i.menu)},panel:i.panel,getPanel:function(){return t(i.panel)}}}}(jQuery),function($){$.fn.hoverIntent=function(t,e,i){var n={interval:50,sensitivity:20,timeout:200};n="object"==typeof t?$.extend(n,t):$.isFunction(e)?$.extend(n,{over:t,out:e,selector:i}):$.extend(n,{over:t,out:t,selector:e});var o,r,s,a,l=function(t){o=t.pageX,r=t.pageY},c=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),Math.abs(s-o)+Math.abs(a-r)e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(i){return e(i,t)}):e(t.jQuery,t)}(window,function(i,n){var o,r,s,a,l,c,d,u,f,p,h,m,g,v,y,b;return o=i(n),u=t.call(n,"ontouchstart")>=0,a={horizontal:{},vertical:{}},l=1,d={},c="waypoints-context-id",h="resize.waypoints",m="scroll.waypoints",g=1,v="waypoints-waypoint-ids",y="waypoint",b="waypoints",r=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[c]=this.id,d[this.id]=this,t.bind(m,function(){var t;return e.didScroll||u?void 0:(e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},n.setTimeout(t,i[b].settings.scrollThrottle))}),t.bind(h,function(){var t;return e.didResize?void 0:(e.didResize=!0,t=function(){return i[b]("refresh"),e.didResize=!1},n.setTimeout(t,i[b].settings.resizeThrottle))})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!u||t.vertical.oldScroll&&t.vertical.newScroll||i[b]("refresh"),i.each(t,function(t,n){var o,r,s;return s=[],r=n.newScroll>n.oldScroll,o=r?n.forward:n.backward,i.each(e.waypoints[t],function(t,e){var i,o;return n.oldScroll<(i=e.offset)&&i<=n.newScroll?s.push(e):n.newScroll<(o=e.offset)&&o<=n.oldScroll?s.push(e):void 0}),s.sort(function(t,e){return t.offset-e.offset}),r||s.reverse(),i.each(s,function(t,e){return e.options.continuous||t===s.length-1?e.trigger([o]):void 0})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,n,o=this;return n=i.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:n?0:e.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:e.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?i[b]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(t,function(t,e){return i.each(o.waypoints[t],function(t,n){var o,r,s,a,l;return o=n.options.offset,s=n.offset,r=i.isWindow(n.element)?0:n.$element.offset()[e.offsetProp],i.isFunction(o)?o=o.apply(n.element):"string"==typeof o&&(o=parseFloat(o),n.options.offset.indexOf("%")>-1&&(o=Math.ceil(e.contextDimension*o/100))),n.offset=r-e.contextOffset+e.contextScroll-o,n.options.onlyOnScroll&&null!=s||!n.enabled?void 0:null!==s&&s<(a=e.oldScroll)&&a<=n.offset?n.trigger([e.backward]):null!==s&&s>(l=e.oldScroll)&&l>=n.offset?n.trigger([e.forward]):null===s&&e.oldScroll>=n.offset?n.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){return i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([h,m].join(" ")),delete d[this.id]):void 0},t}(),s=function(){function t(t,e,n){var o,r;"bottom-in-view"===n.offset&&(n.offset=function(){var t;return t=i[b]("viewportHeight"),i.isWindow(e.element)||(t=e.$element.height()),t-i(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=n.horizontal?"horizontal":"vertical",this.callback=n.handler,this.context=e,this.enabled=n.enabled,this.id="waypoints"+g++,this.offset=null,this.options=n,e.waypoints[this.axis][this.id]=this,a[this.axis][this.id]=this,o=null!=(r=this.element[v])?r:[],o.push(this.id),this.element[v]=o}return t.prototype.trigger=function(t){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete a[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,n;return(n=t[v])?(e=i.extend({},a.horizontal,a.vertical),i.map(n,function(t){return e[t]})):[]},t}(),p={init:function(t,e){var n;return e=i.extend({},i.fn[y].defaults,e),null==(n=e.handler)&&(e.handler=t),this.each(function(){var t,n,o,a;return t=i(this),o=null!=(a=e.context)?a:i.fn[y].defaults.context,i.isWindow(o)||(o=t.closest(o)),o=i(o),n=d[o[0][c]],n||(n=new r(o)),new s(t,n,e)}),i[b]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(t,e){return p._traverse.call(this,t,e,function(t,e,i){return e>0?t.push(i[e-1]):void 0})},next:function(t,e){return p._traverse.call(this,t,e,function(t,e,i){return et.oldScroll.y})},left:function(t){return null==t&&(t=n),f._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=n),f._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(t,e){return p[t]=e},_invoke:function(t){var e;return e=i.extend({},a.vertical,a.horizontal),i.each(e,function(e,i){return i[t](),!0})},_filter:function(t,e,n){var o,r;return(o=d[i(t)[0][c]])?(r=[],i.each(o.waypoints[e],function(t,e){return n(o,e)?r.push(e):void 0}),r.sort(function(t,e){return t.offset-e.offset}),i.map(r,function(t){return t.element})):[]}},i[b]=function(){var t,i;return i=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],f[i]?f[i].apply(null,t):f.aggregate.call(null,i)},i[b].settings={resizeThrottle:100,scrollThrottle:30},o.on("load.waypoints",function(){return i[b]("refresh")})})}.call(this),function(){!function(t,e){return"function"==typeof define&&define.amd?define(["jquery","waypoints"],e):e(t.jQuery)}(this,function(t){var e,i;return e={wrapper:'
',stuckClass:"stuck"},i=function(t,e){return t.wrap(e.wrapper),t.parent()},t.waypoints("extendFn","sticky",function(n){var o,r,s;return r=t.extend({},t.fn.waypoint.defaults,e,n),o=i(this,r),s=r.handler,r.handler=function(e){var i,n;return i=t(this).children(":first"),n="down"===e||"right"===e,i.toggleClass(r.stuckClass,n),o.height(n?i.outerHeight():""),null!=s?s.call(this,e):void 0},o.waypoint(r),this.data("stuckClass",r.stuckClass)}),t.waypoints("extendFn","unsticky",function(){return this.parent().waypoint("destroy"),this.unwrap(),this.removeClass(this.data("stuckClass"))})})}.call(this),function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var s=n.call(arguments,1),a=0,l=this.length;l>a;a++){var c=this[a],d=t.data(c,e);if(d)if(t.isFunction(d[o])&&"_"!==o.charAt(0)){var u=d[o].apply(d,s);if(void 0!==u)return u}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i(t.jQuery)}(window),function(t){function e(t){return RegExp("(^|\\s+)"+t+"(\\s+|$)")}function i(t,e){var i=n(t,e)?r:o;i(t,e)}var n,o,r;"classList"in document.documentElement?(n=function(t,e){return t.classList.contains(e)},o=function(t,e){t.classList.add(e)},r=function(t,e){t.classList.remove(e)}):(n=function(t,i){return e(i).test(t.className)},o=function(t,e){n(t,e)||(t.className=t.className+" "+e)},r=function(t,i){t.className=t.className.replace(e(i)," ")});var s={hasClass:n,addClass:o,removeClass:r,toggleClass:i,has:n,add:o,remove:r,toggle:i};"function"==typeof define&&define.amd?define("classie/classie",s):"object"==typeof exports?module.exports=s:t.classie=s}(window),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var n=s[e];t[n]=0}return t}function n(t){function n(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=r(t);if("none"===n.display)return i();var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var d=o.isBorderBox=!(!c||!n[c]||"border-box"!==n[c]),u=0,f=s.length;f>u;u++){var p=s[u],h=n[p];h=a(t,h);var m=parseFloat(h);o[p]=isNaN(m)?0:m}var g=o.paddingLeft+o.paddingRight,v=o.paddingTop+o.paddingBottom,y=o.marginLeft+o.marginRight,b=o.marginTop+o.marginBottom,S=o.borderLeftWidth+o.borderRightWidth,w=o.borderTopWidth+o.borderBottomWidth,x=d&&l,C=e(n.width);C!==!1&&(o.width=C+(x?0:g+S));var k=e(n.height);return k!==!1&&(o.height=k+(x?0:v+w)),o.innerWidth=o.width-(g+S),o.innerHeight=o.height-(v+w),o.outerWidth=o.width+y,o.outerHeight=o.height+b,o}}function a(t,e){if(o||-1===e.indexOf("%"))return e;var i=t.style,n=i.left,r=t.runtimeStyle,s=r&&r.left;return s&&(r.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=n,s&&(r.left=s),e}var l,c=t("boxSizing");return function(){if(c){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[c]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=r(t);l=200===e(n.width),i.removeChild(t)}}(),n}var o=t.getComputedStyle,r=o?function(t){return o(t,null)}:function(t){return t.currentStyle},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("get-style-property")):t.getSize=n(t.getStyleProperty)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var r={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(this),function(t){function e(t){"function"==typeof t&&(e.isReady?t():r.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==o.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var n=0,s=r.length;s>n;n++){var a=r[n];a()}}}function n(n){return n.bind(o,"DOMContentLoaded",i),n.bind(o,"readystatechange",i),n.bind(t,"load",i),e}var o=t.document,r=[];e.isReady=!1,"function"==typeof define&&define.amd?(e.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],n)):"object"==typeof exports?module.exports=n(require("eventie")):t.docReady=n(t.eventie)}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),r="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(r?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(n=e(r[o],i),-1!==n&&r[o].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):s.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,r,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].length;n--;)i=s[o][n],i.once===!0&&this.removeListener(t,i.listener),r=i.listener.apply(this,e||[]),r===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(t,e){return t[s](e)}function i(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function n(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),o=0,r=n.length;r>o;o++)if(n[o]===t)return!0;return!1}function o(t,n){return i(t),e(t,n)}var r,s=function(){if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;n>i;i++){var o=e[i],r=o+"MatchesSelector";if(t[r])return r}}();if(s){var a=document.createElement("div"),l=e(a,"div");r=l?e:o}else r=n;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return r}):"object"==typeof exports?module.exports=r:window.matchesSelector=r
}(Element.prototype),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function o(t,o,r){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var l=r("transition"),c=r("transform"),d=l&&c,u=!!r("perspective"),f={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[l],p=["transform","transition","transitionDuration","transitionProperty"],h=function(){for(var t={},e=0,i=p.length;i>e;e++){var n=p[e],o=r(n);o&&o!==n&&(t[n]=o)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=o(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},a.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var a=this.layout.size;o-=i?a.paddingLeft:a.paddingRight,r-=n?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=r},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var m=u?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,l=e-n,c={},d=this.layout.options;a=d.isOriginLeft?a:-a,l=d.isOriginTop?l:-l,c.transform=m(a,l),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=d?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var g=c&&n(c)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:g,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(f,this,!1))},a.prototype.transition=a.prototype[l?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=v[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(f,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var y={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(y)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!l||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var r=t.getComputedStyle,s=r?function(t){return r(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],o):(t.Outlayer={},t.Outlayer.Item=o(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===u.call(t)}function n(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,e){var i=p(e,t);-1!==i&&e.splice(i,1)}function r(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function s(i,s,u,p,h,m){function g(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!f(t))return void(l&&l.error("Bad "+this.constructor.namespace+" element: "+t));this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var n=++v;this.element.outlayerGUID=n,y[n]=this,this._create(),this.options.isInitLayout&&this.layout()}var v=0,y={};return g.namespace="outlayer",g.Item=m,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(g.prototype,u.prototype),g.prototype.option=function(t){e(this.options,t)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,r=e.length;r>o;o++){var s=e[o],a=new i(s,this);n.push(a)}return n},g.prototype._filterFindItemElements=function(t){t=n(t);for(var e=this.options.itemSelector,i=[],o=0,r=t.length;r>o;o++){var s=t[o];if(f(s))if(e){h(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),l=0,c=a.length;c>l;l++)i.push(a[l])}else i.push(s)}return i},g.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=p(this.element)},g.prototype._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):f(n)&&(i=n),this[t]=i?p(i)[e]:n):this[t]=0},g.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},g.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},g.prototype._layoutItems=function(t,e){function i(){n.emitEvent("layoutComplete",[n,t])}var n=this;if(!t||!t.length)return void i();this._itemsOn(t,"layout",i);for(var o=[],r=0,s=t.length;s>r;r++){var a=t[r],l=this._getItemLayoutPosition(a);l.item=a,l.isInstant=e||a.isLayoutInstant,o.push(l)}this._processLayoutQueue(o)},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},g.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},g.prototype._getContainerSize=d,g.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},g.prototype._itemsOn=function(t,e,i){function n(){return o++,o===r&&i.call(s),!0}for(var o=0,r=t.length,s=this,a=0,l=t.length;l>a;a++){var c=t[a];c.on(e,n)}},g.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},g.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},g.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},g.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o(n,this.stamps),this.unignore(n)}},g.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n(t)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},g.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},g.prototype._manageStamp=d,g.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=p(t),o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},g.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},g.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var t=p(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},g.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},g.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},g.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.reveal()}},g.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.hide()}},g.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},g.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],r=this.getItem(o);r&&e.push(r)}return e}},g.prototype.remove=function(t){t=n(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,r=e.length;r>i;i++){var s=e[i];s.remove(),o(s,this.items)}}},g.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];n.destroy()}this.unbindResize(),delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},g.data=function(t){var e=t&&t.outlayerGUID;return e&&y[e]},g.create=function(t,i){function n(){g.apply(this,arguments)}return Object.create?n.prototype=Object.create(g.prototype):e(n.prototype,g.prototype),n.prototype.constructor=n,n.defaults=e({},g.defaults),e(n.defaults,i),n.prototype.settings={},n.namespace=t,n.data=g.data,n.Item=function(){m.apply(this,arguments)},n.Item.prototype=new m,s(function(){for(var e=r(t),i=a.querySelectorAll(".js-"+e),o="data-"+e+"-options",s=0,d=i.length;d>s;s++){var u,f=i[s],p=f.getAttribute(o);try{u=p&&JSON.parse(p)}catch(h){l&&l.error("Error parsing "+o+" on "+f.nodeName.toLowerCase()+(f.id?"#"+f.id:"")+": "+h);continue}var m=new n(f,u);c&&c.data(f,t,m)}}),c&&c.bridget&&c.bridget(t,n),n},g.Item=m,g}var a=t.document,l=t.console,c=t.jQuery,d=function(){},u=Object.prototype.toString,f="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},p=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],s):t.Outlayer=s(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){function e(){function t(e){for(var i in t.defaults)this[i]=t.defaults[i];for(i in e)this[i]=e[i]}return i.Rect=t,t.defaults={x:0,y:0,width:0,height:0},t.prototype.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},t.prototype.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return n>this.x&&e>t.x&&o>this.y&&i>t.y},t.prototype.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,n=[],o=this.x+this.width,r=this.y+this.height,s=e.x+e.width,a=e.y+e.height;return this.ys&&(i=new t({x:s,y:this.y,width:o-s,height:this.height}),n.push(i)),r>a&&(i=new t({x:this.x,y:a,width:this.width,height:r-a}),n.push(i)),this.x=t.width&&this.height>=t.height},t}var i=t.Packery=function(){};"function"==typeof define&&define.amd?define("packery/js/rect",e):(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window),function(t){function e(t){function e(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}e.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},e.prototype.pack=function(t){for(var e=0,i=this.spaces.length;i>e;e++){var n=this.spaces[e];if(n.canFit(t)){this.placeInSpace(t,n);break}}},e.prototype.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},e.prototype.placed=function(t){for(var i=[],n=0,o=this.spaces.length;o>n;n++){var r=this.spaces[n],s=r.getMaximalFreeRects(t);s?i.push.apply(i,s):i.push(r)}this.spaces=i,e.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.mergeRects=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];if(n){var o=t.slice(0);o.splice(e,1);for(var r=0,s=0,a=o.length;a>s;s++){var l=o[s],c=e>s?0:1;n.contains(l)&&(t.splice(s+c-r,1),r++)}}}return t};var i={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return e}if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window),function(t){function e(t,e,i){var n=t("transform"),o=function(){e.Item.apply(this,arguments)};o.prototype=new e.Item;var r=o.prototype._create;return o.prototype._create=function(){r.call(this),this.rect=new i,this.placeRect=new i},o.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},o.prototype.dragMove=function(t,e){this.didDrag=!0;var i=this.layout.size;t-=i.paddingLeft,e-=i.paddingTop,this.positionPlaceRect(t,e)},o.prototype.dragStop=function(){this.getPosition();var t=this.position.x!==this.placeRect.x,e=this.position.y!==this.placeRect.y;this.needsPositioning=t||e,this.didDrag=!1},o.prototype.positionPlaceRect=function(t,e,i){this.placeRect.x=this.getPlaceRectCoord(t,!0),this.placeRect.y=this.getPlaceRectCoord(e,!1,i)},o.prototype.getPlaceRectCoord=function(t,e,i){var n=e?"Width":"Height",o=this.size["outer"+n],r=this.layout[e?"columnWidth":"rowHeight"],s=this.layout.size["inner"+n];e||(s=Math.max(s,this.layout.maxY),this.layout.rowHeight||(s-=this.layout.gutter));var a;if(r){r+=this.layout.gutter,s+=e?this.layout.gutter:0,t=Math.round(t/r);var l;l=this.layout.options.isHorizontal?e?"ceil":"floor":e?"floor":"ceil";var c=Math[l](s/r);c-=Math.ceil(o/r),a=c}else a=s-o;return t=i?t:Math.min(t,a),t*=r||1,Math.max(0,t)},o.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},o}"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],e):t.Packery.Item=e(t.getStyleProperty,t.Outlayer,t.Packery.Rect)}(window),function(t){function e(t,e,i,n,o,r){function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function a(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}var l=i.create("packery");return l.Item=r,l.prototype._create=function(){i.prototype._create.call(this),this.packer=new o,this.stamp(this.options.stamped);var t=this;this.handleDraggabilly={dragStart:function(e){t.itemDragStart(e.element)},dragMove:function(e){t.itemDragMove(e.element,e.position.x,e.position.y)},dragEnd:function(e){t.itemDragEnd(e.element)}},this.handleUIDraggable={start:function(e){t.itemDragStart(e.currentTarget)},drag:function(e,i){t.itemDragMove(e.currentTarget,i.position.left,i.position.top)},stop:function(e){t.itemDragEnd(e.currentTarget)}}},l.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var t=this.packer;this.options.isHorizontal?(t.width=Number.POSITIVE_INFINITY,t.height=this.size.innerHeight+this.gutter,t.sortDirection="rightwardTopToBottom"):(t.width=this.size.innerWidth+this.gutter,t.height=Number.POSITIVE_INFINITY,t.sortDirection="downwardLeftToRight"),t.reset(),this.maxY=0,this.maxX=0},l.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},l.prototype._getItemLayoutPosition=function(t){return this._packItem(t),t.rect},l.prototype._packItem=function(t){this._setRectSize(t.element,t.rect),this.packer.pack(t.rect),this._setMaxXY(t.rect)},l.prototype._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},l.prototype._setRectSize=function(t,i){var n=e(t),o=n.outerWidth,r=n.outerHeight;if(o||r){var s=this.columnWidth+this.gutter,a=this.rowHeight+this.gutter;o=this.columnWidth?Math.ceil(o/s)*s:o+this.gutter,r=this.rowHeight?Math.ceil(r/a)*a:r+this.gutter}i.width=Math.min(o,this.packer.width),i.height=Math.min(r,this.packer.height)},l.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},l.prototype._manageStamp=function(t){var e,i=this.getItem(t);if(i&&i.isPlacing)e=i.placeRect;else{var o=this._getElementOffset(t);e=new n({x:this.options.isOriginLeft?o.left:o.right,y:this.options.isOriginTop?o.top:o.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},l.prototype.sortItemsByPosition=function(){var t=this.options.isHorizontal?a:s;this.items.sort(t)},l.prototype.fit=function(t,e,i){var n=this.getItem(t);n&&(this._getMeasurements(),this.stamp(n.element),n.getSize(),n.isPlacing=!0,e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,n.positionPlaceRect(e,i,!0),this._bindFitEvents(n),n.moveTo(n.placeRect.x,n.placeRect.y),this.layout(),this.unstamp(n.element),this.sortItemsByPosition(),n.isPlacing=!1,n.copyPlaceRectPosition())},l.prototype._bindFitEvents=function(t){function e(){n++,2===n&&i.emitEvent("fitComplete",[i,t])}var i=this,n=0;t.on("layout",function(){return e(),!0}),this.on("layoutComplete",function(){return e(),!0})},l.prototype.resize=function(){var t=e(this.element),i=this.size&&t,n=this.options.isHorizontal?"innerHeight":"innerWidth";i&&t[n]===this.size[n]||this.layout()},l.prototype.itemDragStart=function(t){this.stamp(t);var e=this.getItem(t);e&&e.dragStart()},l.prototype.itemDragMove=function(t,e,i){function n(){r.layout(),delete r.dragTimeout}var o=this.getItem(t);o&&o.dragMove(e,i);var r=this;this.clearDragTimeout(),this.dragTimeout=setTimeout(n,40)},l.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},l.prototype.itemDragEnd=function(e){var i,n=this.getItem(e);if(n&&(i=n.didDrag,n.dragStop()),!n||!i&&!n.needsPositioning)return void this.unstamp(e);t.add(n.element,"is-positioning-post-drag");var o=this._getDragEndLayoutComplete(e,n);n.needsPositioning?(n.on("layout",o),n.moveTo(n.placeRect.x,n.placeRect.y)):n&&n.copyPlaceRectPosition(),this.clearDragTimeout(),this.on("layoutComplete",o),this.layout()},l.prototype._getDragEndLayoutComplete=function(e,i){var n=i&&i.needsPositioning,o=0,r=n?2:1,s=this;return function(){return o++,o!==r?!0:(i&&(t.remove(i.element,"is-positioning-post-drag"),i.isPlacing=!1,i.copyPlaceRectPosition()),s.unstamp(e),s.sortItemsByPosition(),n&&s.emitEvent("dragItemPositioned",[s,i]),!0)}},l.prototype.bindDraggabillyEvents=function(t){t.on("dragStart",this.handleDraggabilly.dragStart),t.on("dragMove",this.handleDraggabilly.dragMove),t.on("dragEnd",this.handleDraggabilly.dragEnd)},l.prototype.bindUIDraggableEvents=function(t){t.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},l.Rect=n,l.Packer=o,l}"function"==typeof define&&define.amd?define(["classie/classie","get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],e):t.Packery=e(t.classie,t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t,e,i){function n(e,i){this.bodyOverflowX,this.callbacks={hide:[],show:[]},this.checkInterval=null,this.Content,this.$el=t(e),this.$elProxy,this.elProxyPosition,this.enabled=!0,this.options=t.extend({},l,i),this.mouseIsOverProxy=!1,this.namespace="tooltipster-"+Math.round(1e5*Math.random()),this.Status="hidden",this.timerHide=null,this.timerShow=null,this.$tooltip,this.options.iconTheme=this.options.iconTheme.replace(".",""),this.options.theme=this.options.theme.replace(".",""),this._init()}function o(e,i){var n=!0;return t.each(e,function(t,o){return"undefined"==typeof i[t]||e[t]!==i[t]?(n=!1,!1):void 0}),n}function r(){return!d&&c}function s(){var t=i.body||i.documentElement,e=t.style,n="transition";if("string"==typeof e[n])return!0;v=["Moz","Webkit","Khtml","O","ms"],n=n.charAt(0).toUpperCase()+n.substr(1);for(var o=0;o'),e.$elProxy.text(e.options.icon)):e.$elProxy=e.options.iconCloning?e.options.icon.clone(!0):e.options.icon,e.$elProxy.insertAfter(e.$el)):e.$elProxy=e.$el,"hover"==e.options.trigger?(e.$elProxy.on("mouseenter."+e.namespace,function(){(!r()||e.options.touchDevices)&&(e.mouseIsOverProxy=!0,e._show())}).on("mouseleave."+e.namespace,function(){(!r()||e.options.touchDevices)&&(e.mouseIsOverProxy=!1)}),c&&e.options.touchDevices&&e.$elProxy.on("touchstart."+e.namespace,function(){e._showNow()})):"click"==e.options.trigger&&e.$elProxy.on("click."+e.namespace,function(){(!r()||e.options.touchDevices)&&e._show()})}},_show:function(){var t=this;"shown"!=t.Status&&"appearing"!=t.Status&&(t.options.delay?t.timerShow=setTimeout(function(){("click"==t.options.trigger||"hover"==t.options.trigger&&t.mouseIsOverProxy)&&t._showNow()},t.options.delay):t._showNow())},_showNow:function(i){var n=this;n.options.functionBefore.call(n.$el,n.$el,function(){if(n.enabled&&null!==n.Content){i&&n.callbacks.show.push(i),n.callbacks.hide=[],clearTimeout(n.timerShow),n.timerShow=null,clearTimeout(n.timerHide),n.timerHide=null,n.options.onlyOne&&t(".tooltipstered").not(n.$el).each(function(e,i){var n=t(i),o=n.data("tooltipster-ns");t.each(o,function(t,e){var i=n.data(e),o=i.status(),r=i.option("autoClose");"hidden"!==o&&"disappearing"!==o&&r&&i.hide()})});var o=function(){n.Status="shown",t.each(n.callbacks.show,function(t,e){e.call(n.$el)}),n.callbacks.show=[]};if("hidden"!==n.Status){var r=0;"disappearing"===n.Status?(n.Status="appearing",s()?(n.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+n.options.animation+"-show"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(o)):n.$tooltip.stop().fadeIn(o)):"shown"===n.Status&&o()}else{n.Status="appearing";var r=n.options.speed;n.bodyOverflowX=t("body").css("overflow-x"),t("body").css("overflow-x","hidden");var a="tooltipster-"+n.options.animation,l="-webkit-transition-duration: "+n.options.speed+"ms; -webkit-animation-duration: "+n.options.speed+"ms; -moz-transition-duration: "+n.options.speed+"ms; -moz-animation-duration: "+n.options.speed+"ms; -o-transition-duration: "+n.options.speed+"ms; -o-animation-duration: "+n.options.speed+"ms; -ms-transition-duration: "+n.options.speed+"ms; -ms-animation-duration: "+n.options.speed+"ms; transition-duration: "+n.options.speed+"ms; animation-duration: "+n.options.speed+"ms;",d=n.options.minWidth?"min-width:"+Math.round(n.options.minWidth)+"px;":"",u=n.options.maxWidth?"max-width:"+Math.round(n.options.maxWidth)+"px;":"",f=n.options.interactive?"pointer-events: auto;":"";if(n.$tooltip=t(''),s()&&n.$tooltip.addClass(a),n._content_insert(),n.$tooltip.appendTo("body"),n.reposition(),n.options.functionReady.call(n.$el,n.$el,n.$tooltip),s()?(n.$tooltip.addClass(a+"-show"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(o)):n.$tooltip.css("display","none").fadeIn(n.options.speed,o),n._interval_set(),t(e).on("scroll."+n.namespace+" resize."+n.namespace,function(){n.reposition()}),n.options.autoClose)if(t("body").off("."+n.namespace),"hover"==n.options.trigger)if(c&&setTimeout(function(){t("body").on("touchstart."+n.namespace,function(){n.hide()})},0),n.options.interactive){c&&n.$tooltip.on("touchstart."+n.namespace,function(t){t.stopPropagation()});var p=null;n.$elProxy.add(n.$tooltip).on("mouseleave."+n.namespace+"-autoClose",function(){clearTimeout(p),p=setTimeout(function(){n.hide()},n.options.interactiveTolerance)}).on("mouseenter."+n.namespace+"-autoClose",function(){clearTimeout(p)})}else n.$elProxy.on("mouseleave."+n.namespace+"-autoClose",function(){n.hide()});else"click"==n.options.trigger&&(setTimeout(function(){t("body").on("click."+n.namespace+" touchstart."+n.namespace,function(){n.hide()})},0),n.options.interactive&&n.$tooltip.on("click."+n.namespace+" touchstart."+n.namespace,function(t){t.stopPropagation()}))}n.options.timer>0&&(n.timerHide=setTimeout(function(){n.timerHide=null,n.hide()},n.options.timer+r))}})},_interval_set:function(){var e=this;e.checkInterval=setInterval(function(){if(0===t("body").find(e.$el).length||0===t("body").find(e.$elProxy).length||"hidden"==e.Status||0===t("body").find(e.$tooltip).length)("shown"==e.Status||"appearing"==e.Status)&&e.hide(),e._interval_cancel();else if(e.options.positionTracker){var i=e._repositionInfo(e.$elProxy),n=!1;o(i.dimension,e.elProxyPosition.dimension)&&("fixed"===e.$elProxy.css("position")?o(i.position,e.elProxyPosition.position)&&(n=!0):o(i.offset,e.elProxyPosition.offset)&&(n=!0)),n||e.reposition()}},200)},_interval_cancel:function(){clearInterval(this.checkInterval),this.checkInterval=null},_content_set:function(t){"object"==typeof t&&null!==t&&this.options.contentCloning&&(t=t.clone(!0)),this.Content=t},_content_insert:function(){var t=this,e=this.$tooltip.find(".tooltipster-content");"string"!=typeof t.Content||t.options.contentAsHTML?e.empty().append(t.Content):e.text(t.Content)},_update:function(t){var e=this;e._content_set(t),null!==e.Content?"hidden"!==e.Status&&(e._content_insert(),e.reposition(),e.options.updateAnimation&&(s()?(e.$tooltip.css({width:"","-webkit-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!=e.Status&&(e.$tooltip.removeClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!==e.Status&&e.$tooltip.css({"-webkit-transition":e.options.speed+"ms","-moz-transition":e.options.speed+"ms","-o-transition":e.options.speed+"ms","-ms-transition":e.options.speed+"ms",transition:e.options.speed+"ms"})},e.options.speed))},e.options.speed)):e.$tooltip.fadeTo(e.options.speed,.5,function(){"hidden"!=e.Status&&e.$tooltip.fadeTo(e.options.speed,1)}))):e.hide()},_repositionInfo:function(t){return{dimension:{height:t.outerHeight(!1),width:t.outerWidth(!1)},offset:t.offset(),position:{left:parseInt(t.css("left")),top:parseInt(t.css("top"))}}
},hide:function(i){var n=this;i&&n.callbacks.hide.push(i),n.callbacks.show=[],clearTimeout(n.timerShow),n.timerShow=null,clearTimeout(n.timerHide),n.timerHide=null;var o=function(){t.each(n.callbacks.hide,function(t,e){e.call(n.$el)}),n.callbacks.hide=[]};if("shown"==n.Status||"appearing"==n.Status){n.Status="disappearing";var r=function(){n.Status="hidden","object"==typeof n.Content&&null!==n.Content&&n.Content.detach(),n.$tooltip.remove(),n.$tooltip=null,t(e).off("."+n.namespace),t("body").off("."+n.namespace).css("overflow-x",n.bodyOverflowX),t("body").off("."+n.namespace),n.$elProxy.off("."+n.namespace+"-autoClose"),n.options.functionAfter.call(n.$el,n.$el),o()};s()?(n.$tooltip.clearQueue().removeClass("tooltipster-"+n.options.animation+"-show").addClass("tooltipster-dying"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(r)):n.$tooltip.stop().fadeOut(n.options.speed,r)}else"hidden"==n.Status&&o();return n},show:function(t){return this._showNow(t),this},update:function(t){return this.content(t)},content:function(t){return"undefined"==typeof t?this.Content:(this._update(t),this)},reposition:function(){function i(){var i=t(e).scrollLeft();0>M-i&&(r=M-i,M=i),M+l-i>s&&(r=M-(s+i-l),M=s+i-l)}function n(i,n){a.offset.top-t(e).scrollTop()-d-j-12<0&&n.indexOf("top")>-1&&(A=i),a.offset.top+a.dimension.height+d+12+j>t(e).scrollTop()+t(e).height()&&n.indexOf("bottom")>-1&&(A=i,L=a.offset.top-d-j-12)}var o=this;if(0!==t("body").find(o.$tooltip).length){o.$tooltip.css("width",""),o.elProxyPosition=o._repositionInfo(o.$elProxy);var r=null,s=t(e).width(),a=o.elProxyPosition,l=o.$tooltip.outerWidth(!1),c=o.$tooltip.innerWidth()+1,d=o.$tooltip.outerHeight(!1);if(o.$elProxy.is("area")){var u=o.$elProxy.attr("shape"),f=o.$elProxy.parent().attr("name"),p=t('img[usemap="#'+f+'"]'),h=p.offset().left,m=p.offset().top,g=void 0!==o.$elProxy.attr("coords")?o.$elProxy.attr("coords").split(","):void 0;if("circle"==u){var v=parseInt(g[0]),y=parseInt(g[1]),b=parseInt(g[2]);a.dimension.height=2*b,a.dimension.width=2*b,a.offset.top=m+y-b,a.offset.left=h+v-b}else if("rect"==u){var v=parseInt(g[0]),y=parseInt(g[1]),S=parseInt(g[2]),w=parseInt(g[3]);a.dimension.height=w-y,a.dimension.width=S-v,a.offset.top=m+y,a.offset.left=h+v}else if("poly"==u){for(var x=[],C=[],k=0,T=0,O=0,I=0,_="even",P=0;PO&&(O=E,0===P&&(k=O)),k>E&&(k=E),_="odd"):(E>I&&(I=E,1==P&&(T=I)),T>E&&(T=E),_="even")}a.dimension.height=I-T,a.dimension.width=O-k,a.offset.top=m+T,a.offset.left=h+k}else a.dimension.height=p.outerHeight(!1),a.dimension.width=p.outerWidth(!1),a.offset.top=m,a.offset.left=h}var M=0,z=0,L=0,j=parseInt(o.options.offsetY),N=parseInt(o.options.offsetX),A=o.options.position;if("top"==A){var R=a.offset.left+l-(a.offset.left+a.dimension.width);M=a.offset.left+N-R/2,L=a.offset.top-d-j-12,i(),n("bottom","top")}if("top-left"==A&&(M=a.offset.left+N,L=a.offset.top-d-j-12,i(),n("bottom-left","top-left")),"top-right"==A&&(M=a.offset.left+a.dimension.width+N-l,L=a.offset.top-d-j-12,i(),n("bottom-right","top-right")),"bottom"==A){var R=a.offset.left+l-(a.offset.left+a.dimension.width);M=a.offset.left-R/2+N,L=a.offset.top+a.dimension.height+j+12,i(),n("top","bottom")}if("bottom-left"==A&&(M=a.offset.left+N,L=a.offset.top+a.dimension.height+j+12,i(),n("top-left","bottom-left")),"bottom-right"==A&&(M=a.offset.left+a.dimension.width+N-l,L=a.offset.top+a.dimension.height+j+12,i(),n("top-right","bottom-right")),"left"==A){M=a.offset.left-N-l-12,z=a.offset.left+N+a.dimension.width+12;var D=a.offset.top+d-(a.offset.top+a.dimension.height);if(L=a.offset.top-D/2-j,0>M&&z+l>s){var B=2*parseFloat(o.$tooltip.css("border-width")),W=l+M-B;o.$tooltip.css("width",W+"px"),d=o.$tooltip.outerHeight(!1),M=a.offset.left-N-W-12-B,D=a.offset.top+d-(a.offset.top+a.dimension.height),L=a.offset.top-D/2-j}else 0>M&&(M=a.offset.left+N+a.dimension.width+12,r="left")}if("right"==A){M=a.offset.left+N+a.dimension.width+12,z=a.offset.left-N-l-12;var D=a.offset.top+d-(a.offset.top+a.dimension.height);if(L=a.offset.top-D/2-j,M+l>s&&0>z){var B=2*parseFloat(o.$tooltip.css("border-width")),W=s-M-B;o.$tooltip.css("width",W+"px"),d=o.$tooltip.outerHeight(!1),D=a.offset.top+d-(a.offset.top+a.dimension.height),L=a.offset.top-D/2-j}else M+l>s&&(M=a.offset.left-N-l-12,r="right")}if(o.options.arrow){var F="tooltipster-arrow-"+A;if(o.options.arrowColor.length<1)var H=o.$tooltip.css("background-color");else var H=o.options.arrowColor;if(r?"left"==r?(F="tooltipster-arrow-right",r=""):"right"==r?(F="tooltipster-arrow-left",r=""):r="left:"+Math.round(r)+"px;":r="","top"==A||"top-left"==A||"top-right"==A)var q=parseFloat(o.$tooltip.css("border-bottom-width")),U=o.$tooltip.css("border-bottom-color");else if("bottom"==A||"bottom-left"==A||"bottom-right"==A)var q=parseFloat(o.$tooltip.css("border-top-width")),U=o.$tooltip.css("border-top-color");else if("left"==A)var q=parseFloat(o.$tooltip.css("border-right-width")),U=o.$tooltip.css("border-right-color");else if("right"==A)var q=parseFloat(o.$tooltip.css("border-left-width")),U=o.$tooltip.css("border-left-color");else var q=parseFloat(o.$tooltip.css("border-bottom-width")),U=o.$tooltip.css("border-bottom-color");q>1&&q++;var X="";if(0!==q){var Y="",V="border-color: "+U+";";-1!==F.indexOf("bottom")?Y="margin-top: -"+Math.round(q)+"px;":-1!==F.indexOf("top")?Y="margin-bottom: -"+Math.round(q)+"px;":-1!==F.indexOf("left")?Y="margin-right: -"+Math.round(q)+"px;":-1!==F.indexOf("right")&&(Y="margin-left: -"+Math.round(q)+"px;"),X=' '}o.$tooltip.find(".tooltipster-arrow").remove();var Q=''+X+'
';o.$tooltip.append(Q)}o.$tooltip.css({top:Math.round(L)+"px",left:Math.round(M)+"px"})}return o},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var e=this;e.hide(),e.$el[0]!==e.$elProxy[0]&&e.$elProxy.remove(),e.$el.removeData(e.namespace).off("."+e.namespace);var i=e.$el.data("tooltipster-ns");if(1===i.length){var n="string"==typeof e.Content?e.Content:t("
").append(e.Content).html();e.$el.removeClass("tooltipstered").attr("title",n).removeData(e.namespace).removeData("tooltipster-ns").off("."+e.namespace)}else i=t.grep(i,function(t,i){return t!==e.namespace}),e.$el.data("tooltipster-ns",i);return e},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:void 0},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:void 0},option:function(t,e){return"undefined"==typeof e?this.options[t]:(this.options[t]=e,this)},status:function(){return this.Status}},t.fn[a]=function(){var e=arguments;if(0===this.length){if("string"==typeof e[0]){var i=!0;switch(e[0]){case"setDefaults":t.extend(l,e[1]);break;default:i=!1}return i?!0:this}return this}if("string"==typeof e[0]){var o="#*$~&";return this.each(function(){var i=t(this).data("tooltipster-ns"),n=i?t(this).data(i[0]):null;if(!n)throw new Error("You called Tooltipster's \""+e[0]+'" method on an uninitialized element');if("function"!=typeof n[e[0]])throw new Error('Unknown method .tooltipster("'+e[0]+'")');var r=n[e[0]](e[1],e[2]);return r!==n?(o=r,!1):void 0}),"#*$~&"!==o?o:this}var r=[],s=e[0]&&"undefined"!=typeof e[0].multiple,a=s&&e[0].multiple||!s&&l.multiple;return this.each(function(){var i=!1,o=t(this).data("tooltipster-ns"),s=null;o?a?i=!0:console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):i=!0,i&&(s=new n(this,e[0]),o||(o=[]),o.push(s.namespace),t(this).data("tooltipster-ns",o),t(this).data(s.namespace,s)),r.push(s)}),a?r:this};var c=!!("ontouchstart"in e),d=!1;t("body").one("mousemove",function(){d=!0})}(jQuery,window,document),function(){"use strict";function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}var i=t.prototype;i.getListeners=function(t){var e,i,n=this._getEvents();if("object"==typeof t){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},i.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},i.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},i.addListener=function(t,i){var n,o=this.getListenersAsObject(t),r="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(r?i:{listener:i,once:!1});return this},i.on=i.addListener,i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=i.addOnceListener,i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,i){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(n=e(r[o],i),-1!==n&&r[o].splice(n,1));return this},i.off=i.removeListener,i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):s.call(this,n,o));return this},i.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if("object"===i)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},i.emitEvent=function(t,e){var i,n,o,r,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].length;n--;)i=s[o][n],r=i.listener.apply(this,e||[]),(r===this._getOnceReturnValue()||i.once===!0)&&this.removeListener(t,s[o][n].listener);return this},i.trigger=i.emitEvent,i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},"function"==typeof define&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){"use strict";var e=document.documentElement,i=function(){};e.addEventListener?i=function(t,e,i){t.addEventListener(e,i,!1)}:e.attachEvent&&(i=function(e,i,n){e[i+n]=n.handleEvent?function(){var e=t.event;e.target=e.target||e.srcElement,n.handleEvent.call(n,e)}:function(){var i=t.event;i.target=i.target||i.srcElement,n.call(e,i)},e.attachEvent("on"+i,e[i+n])});var n=function(){};e.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:e.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:n};"function"==typeof define&&define.amd?define(o):t.eventie=o}(this),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===l.call(t)}function n(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,i){function o(t,i,s){if(!(this instanceof o))return new o(t,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=e({},this.options),"function"==typeof i?s=i:e(this.options,i),s&&this.on("always",s),this.getImages(),r&&(this.jqDeferred=new r.Deferred);var a=this;setTimeout(function(){a.check()})}function l(t){this.img=t}o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);for(var n=i.querySelectorAll("img"),o=0,r=n.length;r>o;o++){var s=n[o];this.addImage(s)}}},o.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},o.prototype.check=function(){function t(t,o){return e.options.debug&&a&&s.log("confirm",t,o),e.progress(t),i++,i===n&&e.complete(),!0}var e=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var o=0;n>o;o++){var r=this.images[o];r.on("confirm",t),r.check()}},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify(e,t)})},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var i=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[i](e)}})},r&&(r.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(r(this))});var c={};return l.prototype=new t,l.prototype.check=function(){var t=c[this.img.src];if(t)return void this.useCached(t);if(c[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this.proxyImage=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.img.src},l.prototype.useCached=function(t){if(t.isConfirmed)this.confirm(t.isLoaded,"cached was confirmed");else{var e=this;t.on("confirm",function(t){return e.confirm(t.isLoaded,"cache emitted confirmed"),!0})}},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},l.prototype.unbindProxyEvents=function(){i.unbind(this.proxyImage,"load",this),i.unbind(this.proxyImage,"error",this)},o}var r=t.jQuery,s=t.console,a=void 0!==s,l=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],o):t.imagesLoaded=o(t.EventEmitter,t.eventie)}(window),/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)||jQuery(function($){$elements=$(".ux_banner, .ux-section, .parallax_img, .columns").find("[data-velocity]");var t=$(".header-wrapper").outerHeight()+$("#wpadminbar").outerHeight();$(window).bind("resize.ux-parallax",function(){var t=$(window).height(),e=$(window).scrollTop();$elements.each(function(e){var i=$(this),n=i.parents(".ux_banner, .ux-section, .parallax_img, .columns");if(!i.hasClass("parallax_text")&&!i.hasClass("parallax_img_inner")){n.outerHeight()<$(window).height()?i.css("height",t):i.css("height","");var o=n.outerHeight()/2-n.outerHeight()/2;i.css("margin-top",-o)}i.css("opacity","1")}),$(window).trigger("scroll.ux-parallax")}),$(window).bind("scroll.ux-parallax",function(){var e=$(window).height(),i=$(window).scrollTop();$elements.each(function(n){var o=$(this),r=o.parents(".ux_banner, .ux-section, .parallax_img, .columns"),s=r.offset().top-i;if(!(s>e||s+r.outerHeight()+t<0)){var a=1-o.data("velocity"),l=(s-t)/e*.7,c=-s+s*a,d=-s+t+(s-t)*a,u=o.hasClass("parallax_text")?d:c;o.css({webkitTransform:"translate3d(0px, "+u+"px , 0px)"}),o.css({mozTransform:"translate3d(0px, "+u+"px , 0px)"}),o.css({Transform:"translate3d(0px, "+u+"px , 0px)"}),o.hasClass("parallax_text")&&o.css("opacity",1-Math.abs(l))}})}),$(window).bind("DOMNodeInserted",function(t){$(window).trigger("resize.ux-parallax")}),$(window).trigger("resize")}),function(t){var e,i,n,o,r,s,a,l="Close",c="BeforeClose",d="AfterClose",u="BeforeAppend",f="MarkupParse",p="Open",h="Change",m="mfp",g="."+m,v="mfp-ready",y="mfp-removing",b="mfp-prevent-close",S=function(){},w=!!window.jQuery,x=t(window),C=function(t,i){e.ev.on(m+t+g,i)},k=function(e,i,n,o){var r=document.createElement("div");return r.className="mfp-"+e,n&&(r.innerHTML=n),o?i&&i.appendChild(r):(r=t(r),i&&r.appendTo(i)),r},T=function(i,n){e.ev.triggerHandler(m+i,n),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(n)?n:[n]))},O=function(i){return i===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=i),e.currTemplate.closeBtn},I=function(){t.magnificPopup.instance||(e=new S,e.init(),t.magnificPopup.instance=e)},_=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};S.prototype={constructor:S,init:function(){var i=navigator.appVersion;e.isIE7=-1!==i.indexOf("MSIE 7."),e.isIE8=-1!==i.indexOf("MSIE 8."),e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=_(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){n||(n=t(document.body));var r;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var a,l=i.items;for(r=0;l.length>r;r++)if(a=l[r],a.parsed&&(a=a.el[0]),a===i.el[0]){e.index=r;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],s="",e.ev=i.mainEl&&i.mainEl.length?i.mainEl.eq(0):o,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=k("bg").on("click"+g,function(){e.close()}),e.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(t){e._checkIfClose(t.target)&&e.close()}),e.container=k("container",e.wrap)),e.contentContainer=k("content"),e.st.preloader&&(e.preloader=k("preloader",e.container,e.st.tLoading));var c=t.magnificPopup.modules;for(r=0;c.length>r;r++){var d=c[r];d=d.charAt(0).toUpperCase()+d.slice(1),e["init"+d].call(e)}T("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(C(f,function(t,e,i,n){i.close_replaceWith=O(n.type)}),s+=" mfp-close-btn-in"):e.wrap.append(O())),e.st.alignTop&&(s+=" mfp-align-top"),e.wrap.css(e.fixedContentPos?{overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}:{top:x.scrollTop(),position:"absolute"}),(e.st.fixedBgPos===!1||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:"absolute"}),e.st.enableEscapeKey&&o.on("keyup"+g,function(t){27===t.keyCode&&e.close()}),x.on("resize"+g,function(){e.updateSize()}),e.st.closeOnContentClick||(s+=" mfp-auto-cursor"),s&&e.wrap.addClass(s);var u=e.wH=x.height(),h={};if(e.fixedContentPos&&e._hasScrollBar(u)){var m=e._getScrollbarSize();m&&(h.marginRight=m)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):h.overflow="hidden");var y=e.st.mainClass;return e.isIE7&&(y+=" mfp-ie7"),y&&e._addClassToMFP(y),e.updateItemHTML(),T("BuildControls"),t("html").css(h),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||n),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(v),e._setFocus()):e.bgOverlay.addClass(v),o.on("focusin"+g,e._onFocusIn)},16),e.isOpen=!0,e.updateSize(u),T(p),i},close:function(){e.isOpen&&(T(c),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(y),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){T(l);var i=y+" "+v+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={marginRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}o.off("keyup"+g+" focusin"+g),e.ev.off(g),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&e.currTemplate[e.currItem.type]!==!0||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,T(d)},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;e.wrap.css("height",n),e.wH=n}else e.wH=t||x.height();e.fixedContentPos||e.wrap.css("height",e.wH),T("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var n=i.type;if(T("BeforeChange",[e.currItem?e.currItem.type:"",n]),e.currItem=i,!e.currTemplate[n]){var o=e.st[n]?e.st[n].markup:!1;T("FirstMarkupParse",o),e.currTemplate[n]=o?t(o):!0}r&&r!==i.type&&e.container.removeClass("mfp-"+r+"-holder");var s=e["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,e.currTemplate[n]);e.appendContent(s,n),i.preloaded=!0,T(h,i),r=i.type,e.container.prepend(e.contentContainer),T("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&e.currTemplate[i]===!0?e.content.find(".mfp-close").length||e.content.append(O()):e.content=t:e.content="",T(u),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var n=e.items[i],o=n.type;if(n=n.tagName?{el:t(n)}:{data:n,src:n.src},n.el){for(var r=e.types,s=0;r.length>s;s++)if(n.el.hasClass("mfp-"+r[s])){o=r[s];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||e.st.type||"inline",n.index=i,n.parsed=!0,e.items[i]=n,T("ElementParse",n),e.items[i]},addGroup:function(t,i){var n=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var o="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(o).on(o,n)):(i.isObj=!1,i.delegate?t.off(o).on(o,i.delegate,n):(i.items=t,t.off(o).on(o,n)))},_openClick:function(i,n,o){var r=void 0!==o.midClick?o.midClick:t.magnificPopup.defaults.midClick;if(r||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==o.disableOn?o.disableOn:t.magnificPopup.defaults.disableOn;if(s)if(t.isFunction(s)){if(!s.call(e))return!0}else if(s>x.width())return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),o.el=t(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),e.open(o)}},updateStatus:function(t,n){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),n||"loading"!==t||(n=e.st.tLoading);var o={status:t,text:n};T("UpdateStatus",o),t=o.status,n=o.text,e.preloader.html(n),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass(b)){var n=e.st.closeOnContentClick,o=e.st.closeOnBgClick;if(n&&o)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}else if(o&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||x.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,n){var o;n.data&&(i=t.extend(n.data,i)),T(f,[e,i,n]),t.each(i,function(t,i){if(void 0===i||i===!1)return!0;if(o=t.split("_"),o.length>1){var n=e.find(g+"-"+o[0]);if(n.length>0){var r=o[1];"replaceWith"===r?n[0]!==i[0]&&n.replaceWith(i):"img"===r?n.is("img")?n.attr("src",i):n.replaceWith(' '):n.attr(o[1],i)}}else e.find(g+"-"+t).html(i)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.id="mfp-sbm",t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:S.prototype,modules:[],open:function(e,i){return I(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'× ',tClose:"Close (Esc)",tLoading:"Loading..."}},t.fn.magnificPopup=function(i){I();var n=t(this);if("string"==typeof i)if("open"===i){var o,r=w?n.data("magnificPopup"):n[0].magnificPopup,s=parseInt(arguments[1],10)||0;r.items?o=r.items[s]:(o=n,r.delegate&&(o=o.find(r.delegate)),o=o.eq(s)),e._openClick({mfpEl:o},n,r)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),w?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var P,E,M,z="inline",L=function(){M&&(E.after(M.addClass(P)).detach(),M=null)};t.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(z),C(l+"."+z,function(){L()})},getInline:function(i,n){if(L(),i.src){var o=e.st.inline,r=t(i.src);if(r.length){var s=r[0].parentNode;s&&s.tagName&&(E||(P=o.hiddenClass,E=k(P),P="mfp-"+P),M=r.after(E).detach().removeClass(P)),e.updateStatus("ready")}else e.updateStatus("error",o.tNotFound),r=t("");return i.inlineElement=r,r}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var j,N="ajax",A=function(){j&&n.removeClass(j)},R=function(){A(),e.req&&e.req.abort()};t.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){e.types.push(N),j=e.st.ajax.cursor,C(l+"."+N,R),C("BeforeChange."+N,R)},getAjax:function(i){j&&n.addClass(j),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(n,o,r){var s={data:n,xhr:r};T("ParseAjax",s),e.appendContent(t(s.data),N),i.finished=!0,A(),e._setFocus(),setTimeout(function(){e.wrap.addClass(v)},16),e.updateStatus("ready"),T("AjaxContentAdded")},error:function(){A(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var D,B=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var t=e.st.image,i=".image";e.types.push("image"),C(p+i,function(){"image"===e.currItem.type&&t.cursor&&n.addClass(t.cursor)}),C(l+i,function(){t.cursor&&n.removeClass(t.cursor),x.off("resize"+g)}),C("Resize"+i,e.resizeImage),e.isLowIE&&C("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,D&&clearInterval(D),t.isCheckingImgSize=!1,T("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(r){D&&clearInterval(D),D=setInterval(function(){return n.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(D),i++,void(3===i?o(10):40===i?o(50):100===i&&o(500)))},r)};o(1)},getImage:function(i,n){var o=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(r,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.img=t(c).on("load.mfploader",r).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:B(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(D&&clearInterval(D),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var W,F=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var o,r,s=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=n,e.css(o),e},d=function(){e.content.css("visibility","visible")};C("BuildControls"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void d();r=a(t),r.css(e._getOffset()),e.wrap.append(r),o=setTimeout(function(){r.css(e._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),t=r=null,T("ZoomAnimationEnded")},16)},s)},16)}}),C(c+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.st.removalDelay=s,!t){if(t=e._getItemToZoom(),!t)return;r=a(t)}r.css(e._getOffset(!0)),e.wrap.append(r),e.content.css("visibility","hidden"),setTimeout(function(){r.css(e._getOffset())},16)}}),C(l+n,function(){e._allowZoom()&&(d(),r&&r.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(i){var n;n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var o=n.offset(),r=parseInt(n.css("padding-top"),10),s=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-r;var a={width:n.width(),height:(w?n.innerHeight():n[0].offsetHeight)-s-r};return F()?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var H="iframe",q="//about:blank",U=function(t){if(e.currTemplate[H]){var i=e.currTemplate[H].find("iframe");i.length&&(t||(i[0].src=q),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(H,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(H),C("BeforeChange",function(t,e,i){e!==i&&(e===H?U():i===H&&U(!0))
}),C(l+"."+H,function(){U()})},getIframe:function(i,n){var o=i.src,r=e.st.iframe;t.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var s={};return r.srcAction&&(s[r.srcAction]=o),e._parseMarkup(n,s,i),e.updateStatus("ready"),n}}});var X=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},Y=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery",r=Boolean(t.fn.mfpFastClick);return e.direction=!0,i&&i.enabled?(s+=" mfp-gallery",C(p+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),C("UpdateStatus"+n,function(t,i){i.text&&(i.text=Y(i.text,e.currItem.index,e.items.length))}),C(f+n,function(t,n,o,r){var s=e.items.length;o.counter=s>1?Y(i.tCounter,r.index,s):""}),C("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(b),s=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(b),a=r?"mfpFastClick":"click";o[a](function(){e.prev()}),s[a](function(){e.next()}),e.isIE7&&(k("b",o[0],!1,!0),k("a",o[0],!1,!0),k("b",s[0],!1,!0),k("a",s[0],!1,!0)),e.container.append(o.add(s))}}),C(h+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void C(l+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowLeft&&r&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=X(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=X(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;(e.direction?o:n)>=t;t++)e._preloadItem(e.index+t);for(t=1;(e.direction?n:o)>=t;t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=X(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),T("LazyLoad",n),"image"===n.type&&(n.img=t('
').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,T("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});var V="retina";t.magnificPopup.registerModule(V,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(C("ImageHasSize."+V,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),C("ElementParse."+V,function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),function(){var e=1e3,i="ontouchstart"in window,n=function(){x.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;t.fn.mfpFastClick=function(o){return t(this).each(function(){var s,a=t(this);if(i){var l,c,d,u,f,p;a.on("touchstart"+r,function(t){u=!1,p=1,f=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],c=f.clientX,d=f.clientY,x.on("touchmove"+r,function(t){f=t.originalEvent?t.originalEvent.touches:t.touches,p=f.length,f=f[0],(Math.abs(f.clientX-c)>10||Math.abs(f.clientY-d)>10)&&(u=!0,n())}).on("touchend"+r,function(t){n(),u||p>1||(s=!0,t.preventDefault(),clearTimeout(l),l=setTimeout(function(){s=!1},e),o())})})}a.on("click"+r,function(){s||o()})})},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+r+" click"+r),i&&x.off("touchmove"+r+" touchend"+r)}}(),I()}(window.jQuery||window.Zepto),function(t){var e=0,i=0,n=0,o=0,r="ontouchstart"in window||0
d;d++)e[e.length]=T.hideScrollbarIntervalTimer(10*d,n[i],(i+24-d)/24,o,r,s,a,l,c,t)},hideScrollbarInterval:function(e,i,n,r,s,a,l,c,d){o=-1*e/x[c]*(s-a-l-r),T.setSliderOffset("."+n,o),t("."+n).css({opacity:d.scrollbarOpacity*i,filter:"alpha(opacity:"+d.scrollbarOpacity*i*100+")"})},slowScrollHorizontalInterval:function(e,i,n,r,s,a,l,c,d,u,f,p,h,m,g,v,k,O,I){if(I.infiniteSlider){if(n<=-1*x[v]||n<=-1*C[v]){var _=t(e).width();if(n<=-1*C[v]){var P=-1*f[0];t(i).each(function(e){T.setSliderOffset(t(i)[e],P+k),e=-1*w[v]||n>=0){if(_=t(e).width(),n>0)for(P=-1*f[0],t(i).each(function(e){T.setSliderOffset(t(i)[e],P+k),eL&&(L=T.getSliderOffset(this,"x"),z=t)}),h=w[v]-g[z],T.setSliderOffset(t(i)[z],h),p.splice(0,0,-1*h+k),p.splice(p.length-1,1),w[v]=-1*p[0]+k,x[v]=w[v]+_-a,S[v]--,y[v]++}for(;n>-1*w[v];)z=0,L=T.getSliderOffset(t(i[0]),"x"),t(i).each(function(t){T.getSliderOffset(this,"x")>L&&(L=T.getSliderOffset(this,"x"),z=t)}),h=w[v]-g[z],T.setSliderOffset(t(i)[z],h),p.splice(0,0,-1*h+k),p.splice(p.length-1,1),w[v]=-1*p[0]+k,x[v]=w[v]+_-a,S[v]--}}return f=!1,a=T.calcActiveOffset(I,n,p,a,S[v],m,u,v),h=(a+S[v]+m)%m,I.infiniteSlider?h!=b[v]&&(f=!0):a!=y[v]&&(f=!0),f&&(m=new T.args("change",I,e,t(e).children(":eq("+h+")"),h,O),t(e).parent().data("args",m),""!=I.onSlideChange)&&I.onSlideChange(m),y[v]=a,b[v]=h,n=Math.floor(n),v!=t(e).parent().data("args").data.sliderNumber?!0:(T.setSliderOffset(e,n),void(I.scrollbar&&(o=Math.floor((-1*n-w[v]+k)/(x[v]-w[v]+k)*(l-c-s)),e=s-d,n>=-1*w[v]+k?(e=s-d- -1*o,T.setSliderOffset(t("."+r),0)):(n<=-1*x[v]+1&&(e=l-c-d-o),T.setSliderOffset(t("."+r),o)),t("."+r).css({width:e+"px"}))))},slowScrollHorizontal:function(e,i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,C,k,O,I,_){var P=T.getSliderOffset(e,"x");s=[];var E=0,M=25/1024*l;if(frictionCoefficient=_.frictionCoefficient,elasticFrictionCoefficient=_.elasticFrictionCoefficient,snapFrictionCoefficient=_.snapFrictionCoefficient,r>_.snapVelocityThreshold&&_.snapToChildren&&!O?E=1:r<-1*_.snapVelocityThreshold&&_.snapToChildren&&!O&&(E=-1),-1*M>r?r=-1*M:r>M&&(r=M),t(e)[0]!==t(k)[0]&&(E*=-1,r*=-2),k=S[m],_.infiniteSlider)var z=w[m],L=x[m];O=[];for(var M=[],j=0;j1||-1>r;){if(r*=frictionCoefficient,P+=r,(P>-1*w[m]||P<-1*x[m])&&!_.infiniteSlider&&(r*=elasticFrictionCoefficient,P+=r),_.infiniteSlider){if(-1*L>=P){for(var L=t(e).width(),N=0,A=M[0],j=0;j=-1*z){for(L=t(e).width(),N=0,A=M[0],j=0;jA&&(A=M[j],N=j);j=z-h[N],M[N]=j,O.splice(0,0,-1*j+I),O.splice(O.length-1,1),z=-1*O[0]+I,L=z+L-l,k--}}s[s.length]=P}if(M=!1,r=T.calcActiveOffset(_,P,O,l,k,C,y[m],m),z=(r+k+C)%C,_.snapToChildren&&(_.infiniteSlider?z!=b[m]&&(M=!0):r!=y[m]&&(M=!0),0>E&&!M?(r++,r>=p.length&&!_.infiniteSlider&&(r=p.length-1)):E>0&&!M&&(r--,0>r&&!_.infiniteSlider&&(r=0))),_.snapToChildren||(P>-1*w[m]||P<-1*x[m])&&!_.infiniteSlider){for((P>-1*w[m]||P<-1*x[m])&&!_.infiniteSlider?s.splice(0,s.length):(s.splice(.1*s.length,s.length),P=0O[r]+.5;)P=(P-O[r])*snapFrictionCoefficient+O[r],s[s.length]=P;s[s.length]=O[r]}for(E=1,0!=s.length%2&&(E=0),P=0;P=s.length-2)&&(z=s[P],n[n.length]=T.slowScrollHorizontalIntervalTimer(10*P,e,i,s[P],o,a,l,c,d,u,r,f,p,g,C,h,m,I,k,_));z=(r+S[m]+C)%C,""!=_.onSlideComplete&&1 ").css({msTransform:"matrix(1,1,1,1,1,1)",webkitTransform:"matrix(1,1,1,1,1,1)",MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});return""==i.attr("style")?e=!1:u&&21<=parseInt(navigator.userAgent.split("/")[3],10)?e=!1:void 0!=i.attr("style")&&(e=!0),e},getSlideNumber:function(t,e,i){return(t-S[e]+i)%i},calcActiveOffset:function(t,e,i,n,o,r,s,a){o=!1,t=[];var l;for(e>i[0]&&(l=0),ee-n&&(o||i[r]==e||(t[t.length]=i[r-1]),t[t.length]=i[r],o=!0);for(0==t.length&&(t[0]=i[i.length-1]),r=o=0;rs&&(o=t[r],n=s);for(r=0;rI&&-1==_?I+=t(i).width():I>0&&1==_&&(I-=t(i).width()),_=[],T.showScrollbar(x,r),C=0;k>=C;C++)P=C,P/=k,P--,P=O+I*(Math.pow(P,5)+1),_[_.length]=P;for(k=(e+S[h]+g)%g,C=O=0;C<_.length;C++)(0==C||1=_.length-2)&&(O=_[C],o[C]=T.slowScrollHorizontalIntervalTimer(10*(C+1),i,n,_[C],r,s,a,l,c,d,e,u,f,m,g,p,h,w,k,x)),0==C&&""!=x.onSlideStart&&(I=(y[h]+S[h]+g)%g,x.onSlideStart(new T.args("start",x,i,t(i).children(":eq("+I+")"),I,e)));O=!1,x.infiniteSlider?k!=b[h]&&(O=!0):e!=y[h]&&(O=!0),O&&""!=x.onSlideComplete&&(o[o.length]=T.onSlideCompleteTimer(10*(C+1),x,i,t(i).children(":eq("+k+")"),k,h)),v[h]=o,T.hideScrollbar(x,o,C,_,r,s,a,c,d,h),T.autoSlide(i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,w,x)},changeOffset:function(e,i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,C,k){T.autoSlidePause(h);for(var O=0;O-1*w[h]+C?-1*w[h]+C:e,e=e<-1*x[h]?-1*x[h]:e);var I=Math.ceil(k.autoSlideTransTimer/10)+1,_=T.getSliderOffset(i,"x"),O=(T.calcActiveOffset(k,e,f,a,S,g,y[h],h)+S[h]+g)%g,P=f.slice();if(k.snapToChildren&&!k.infiniteSlider)e=f[O];else if(k.infiniteSlider&&k.snapToChildren){for(;e>=P[0];)P.splice(0,0,P[g-1]+t(i).width()),P.splice(g,1);for(;e<=P[g-1];)P.splice(g,0,P[0]-t(i).width()),P.splice(0,1);O=T.calcActiveOffset(k,e,P,a,S,g,y[h],h),e=P[O]}var E=e-_;e=[];var M;for(T.showScrollbar(k,r),P=0;I>=P;P++)M=P,M/=I,M--,M=_+E*(Math.pow(M,5)+1),e[e.length]=M;for(I=(O+S[h]+g)%g,P=_=0;P=e.length-2)&&(_=e[P],o[P]=T.slowScrollHorizontalIntervalTimer(10*(P+1),i,n,e[P],r,s,a,l,c,d,O,u,f,m,g,p,h,C,I,k)),0==P&&""!=k.onSlideStart&&(I=(y[h]+S[h]+g)%g,k.onSlideStart(new T.args("start",k,i,t(i).children(":eq("+I+")"),I,O)));_=!1,k.infiniteSlider?I!=b[h]&&(_=!0):O!=y[h]&&(_=!0),_&&""!=k.onSlideComplete&&(o[o.length]=T.onSlideCompleteTimer(10*(P+1),k,i,t(i).children(":eq("+I+")"),I,h)),v[h]=o,T.hideScrollbar(k,o,P,e,r,s,a,c,d,h),T.autoSlide(i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,C,k)},autoSlide:function(t,e,i,n,o,r,s,a,l,c,d,u,f,p,g,v,b){return m[f].autoSlide?(T.autoSlidePause(f),void(h[f]=setTimeout(function(){!b.infiniteSlider&&y[f]>d.length-1&&(y[f]-=g),T.changeSlide(y[f]+S[f]+1,t,e,i,n,o,r,s,a,l,c,d,u,f,p,g,v,b),T.autoSlide(t,e,i,n,o,r,s,a,l,c,d,u,f,p,g,v,b)},b.autoSlideTimer+b.autoSlideTransTimer))):!1},autoSlidePause:function(t){clearTimeout(h[t])},isUnselectable:function(e,i){return""!=i.unselectableSelector&&1==t(e).closest(i.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(t,e,i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,v,y,b){return setTimeout(function(){T.slowScrollHorizontalInterval(e,i,n,o,r,s,a,l,c,d,u,f,p,h,m,g,v,y,b)},t)},onSlideCompleteTimer:function(t,e,i,n,o,r){return setTimeout(function(){T.onSlideComplete(e,i,n,o,r)},t)},hideScrollbarIntervalTimer:function(t,e,i,n,o,r,s,a,l,c){return setTimeout(function(){T.hideScrollbarInterval(e,i,n,o,r,s,a,l,c)},t)},updateBackfaceVisibilityTimer:function(t,e,i,n,o){return setTimeout(function(){T.updateBackfaceVisibility(e,i,n,o)},t)},updateBackfaceVisibility:function(e,i,n,o){i=(y[i]+S[i]+n)%n;for(var r=[],s=0;s<2*o.hardwareAccelBuffer;s++){var a=T.mod(i+s-o.hardwareAccelBuffer,n);if("visible"==t(e).eq(a).css("-webkit-backface-visibility")){r[r.length]=a;var l=T.mod(a+2*o.hardwareAccelBuffer,n),c=T.mod(a-2*o.hardwareAccelBuffer,n);t(e).eq(a).css("-webkit-backface-visibility","hidden"),-1==r.indexOf(c)&&t(e).eq(c).css("-webkit-backface-visibility",""),-1==r.indexOf(l)&&t(e).eq(l).css("-webkit-backface-visibility","")}}},mod:function(t,e){var i=t%e;return 0>i?i+e:i},args:function(e,i,n,o,r,s){this.prevSlideNumber=void 0==t(n).parent().data("args")?void 0:t(n).parent().data("args").prevSlideNumber,this.prevSlideObject=void 0==t(n).parent().data("args")?void 0:t(n).parent().data("args").prevSlideObject,this.targetSlideNumber=s+1,this.targetSlideObject=t(n).children(":eq("+s+")"),this.slideChanged=!1,"load"==e?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==e?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==e?(this.slideChanged=!0,this.prevSlideNumber=void 0==t(n).parent().data("args")?i.startAtSlide:t(n).parent().data("args").currentSlideNumber,this.prevSlideObject=t(n).children(":eq("+this.prevSlideNumber+")")):"complete"==e&&(this.slideChanged=t(n).parent().data("args").slideChanged),this.settings=i,this.data=t(n).parent().data("iosslider"),this.sliderObject=n,this.sliderContainerObject=t(n).parent(),this.currentSlideObject=o,this.currentSlideNumber=r+1,this.currentSliderOffset=-1*T.getSliderOffset(n,"x")},preventDrag:function(t){t.preventDefault()},preventClick:function(t){return t.stopImmediatePropagation(),!1},enableClick:function(){return!0}};T.setBrowserInfo();var $={init:function(u,h){a=T.has3DTransform();var O=t.extend(!0,{elasticPullResistance:.6,frictionCoefficient:.92,elasticFrictionCoefficient:.6,snapFrictionCoefficient:.92,snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1,scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarPaging:!1,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:.9,desktopClickDrag:!1,keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",autoSlideToggleSelector:"",autoSlide:!1,autoSlideTimer:5e3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,hardwareAccelBuffer:5,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"",onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},u);return void 0==h&&(h=this),t(h).each(function(a){function u(){T.autoSlidePause(h),me=t(G).find("a"),ge=t(G).find("[onclick]"),ve=t(G).find("*"),t(B).css("width",""),t(B).css("height",""),t(G).css("width",""),J=t(G).children().not("script").get(),te=[],ee=[],O.responsiveSlides&&t(J).css("width",""),x[h]=0,Y=[],A=t(B).parent().width(),W=t(B).outerWidth(!0),O.responsiveSlideContainer&&(W=t(B).outerWidth(!0)>A?A:t(B).width()),t(B).css({position:O.stageCSS.position,top:O.stageCSS.top,left:O.stageCSS.left,overflow:O.stageCSS.overflow,zIndex:O.stageCSS.zIndex,webkitPerspective:1e3,webkitBackfaceVisibility:"hidden",msTouchAction:"pan-y",width:W}),t(O.unselectableSelector).css({cursor:"default"});for(var e=0;eW?(i=W+-1*(ee[e]-te[e]),te[e]=i,ee[e]=W):i=te[e],t(J[e]).css({width:i})),t(J[e]).css({overflow:"hidden",position:"absolute"}),Y[e]=-1*x[h],x[h]=x[h]+i+(ee[e]-te[e])}for(O.snapSlideCenter&&(D=.5*(W-ee[0]),O.responsiveSlides&&ee[0]>W&&(D=0)),C[h]=2*x[h],e=0;eY.length?Y.length:m[h].startAtSlide,O.infiniteSlider?(m[h].startAtSlide=(m[h].startAtSlide-1+ie)%ie,y[h]=m[h].startAtSlide):(m[h].startAtSlide=0>m[h].startAtSlide-1?Y.length-1:m[h].startAtSlide,y[h]=m[h].startAtSlide-1),b[h]=y[h]),w[h]=x[h]+D,t(G).css({position:"relative",cursor:f,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:x[h]+"px"}),he=x[h],x[h]=2*x[h]-W+2*D,(le=W>he+D||0==W?!0:!1)&&t(G).css({cursor:"default"}),R=t(B).parent().outerHeight(!0),F=t(B).height(),O.responsiveSlideContainer&&(F=F>R?R:F),t(B).css({height:F}),T.setSliderOffset(G,Y[y[h]]),O.infiniteSlider&&!le){for(e=T.getSliderOffset(t(G),"x"),i=(S[h]+ie)%ie*-1;0>i;){var n=0,o=T.getSliderOffset(t(J[0]),"x");t(J).each(function(t){T.getSliderOffset(this,"x")a&&(a=T.getSliderOffset(this,"x"),s=t)}),r=w[h]-ee[s],T.setSliderOffset(t(J)[s],r),Y.splice(0,0,-1*r+D),Y.splice(Y.length-1,1),w[h]=-1*Y[0]+D,x[h]=w[h]+he-W,S[h]--,y[h]++}for(;e<=-1*x[h];)n=0,o=T.getSliderOffset(t(J[0]),"x"),t(J).each(function(t){T.getSliderOffset(this,"x")0||O.infiniteSlider)&&T.changeSlide(e-1,G,J,I,M,N,W,j,H,q,V,Y,ee,h,ae,ie,D,O)})),""!=O.navNextSelector&&(t(O.navNextSelector).css({cursor:"pointer"}),t(O.navNextSelector).unbind(pe).bind(pe,function(e){t(this).unbind("touchstart"==e.type?"click.iosSliderEvent":"touchstart.iosSliderEvent"),pe=e.type+".iosSliderEvent",e=(y[h]+S[h]+ie)%ie,(e
"):t(G).parent().append("")),!u())return!0;if(t(this).find("a").bind("mousedown",T.preventDrag),t(this).find("[onclick]").bind("click",T.preventDrag).each(function(){t(this).data("onclick",this.onclick)}),a=T.calcActiveOffset(O,T.getSliderOffset(t(G),"x"),Y,W,S[h],ie,void 0,h),a=(a+S[h]+ie)%ie,a=new T.args("load",O,G,t(G).children(":eq("+a+")"),a,a),t(B).data("args",a),""!=O.onSliderLoaded&&O.onSliderLoaded(a),O.scrollbarPaging&&O.scrollbar&&!le&&(t(L).css("cursor","pointer"),t(L).bind("click.iosSliderEvent",function(e){this==e.target&&(e.pageX>t(z).offset().left?$.nextPage(B):$.prevPage(B))})),(m[h].responsiveSlides||m[h].responsiveSlideContainer)&&(a=s?"orientationchange":"resize",t(window).bind(a+".iosSliderEvent-"+h,function(){if(!u())return!0;var e=t(B).data("args");""!=O.onSliderResize&&O.onSliderResize(e)})),!O.keyboardControls&&!O.tabToAdvance||le||t(document).bind("keydown.iosSliderEvent",function(t){return l||c||(t=t.originalEvent),"INPUT"==t.target.nodeName||k[h]?!0:void(37==t.keyCode&&O.keyboardControls?(t.preventDefault(),t=(y[h]+S[h]+ie)%ie,(t>0||O.infiniteSlider)&&T.changeSlide(t-1,G,J,I,M,N,W,j,H,q,V,Y,ee,h,ae,ie,D,O)):(39==t.keyCode&&O.keyboardControls||9==t.keyCode&&O.tabToAdvance)&&(t.preventDefault(),t=(y[h]+S[h]+ie)%ie,(t-1*w[h]+D+he?(e=-1*w[h]+D+he,T.setSliderOffset(t("."+M),e),t("."+M).css({width:N-q+"px"})):e<-1*x[h]&&(e=-1*x[h],T.setSliderOffset(t("."+M),j-H-N),t("."+M).css({width:N-q+"px"})),e=t(this)[0]===t(z)[0]?w[h]:0,K=-1*(T.getSliderOffset(this,"x")-eventX-e),T.getSliderOffset(this,"y"),_[1]=eventX,P[1]=eventY,fe=!1}),t(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",function(e){if(l||c||(e=e.originalEvent),k[h]||le||xe||!be)return!0;var r=0;if("touchmove"==e.type)eventX=e.touches[0].pageX,eventY=e.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(c)try{document.selection.empty()}catch(s){}else document.selection.empty();if(eventX=e.pageX,eventY=e.pageY,!re||!d&&("undefined"!=typeof e.webkitMovementX||"undefined"!=typeof e.webkitMovementY)&&0===e.webkitMovementY&&0===e.webkitMovementX)return!0}if(_[0]=_[1],_[1]=eventX,i=(_[1]-_[0])/2,P[0]=P[1],P[1]=eventY,n=(P[1]-P[0])/2,!ne){var a=(y[h]+S[h]+ie)%ie,a=new T.args("start",O,G,t(G).children(":eq("+a+")"),a,void 0);t(B).data("args",a),""!=O.onSlideStart&&O.onSlideStart(a)}if((n>O.verticalSlideLockThreshold||n<-1*O.verticalSlideLockThreshold)&&"touchmove"==e.type&&!ne&&(ue=!0),(i>O.horizontalSlideLockThreshold||i<-1*O.horizontalSlideLockThreshold)&&"touchmove"==e.type&&e.preventDefault(),(i>O.slideStartVelocityThreshold||i<-1*O.slideStartVelocityThreshold)&&(ne=!0),ne&&!ue){var a=T.getSliderOffset(G,"x"),u=t(de)[0]===t(z)[0]?w[h]:D,f=t(de)[0]===t(z)[0]?(w[h]-x[h]-D)/(j-H-N):1,p=t(de)[0]===t(z)[0]?O.scrollbarElasticPullResistance:O.elasticPullResistance,m=O.snapSlideCenter&&t(de)[0]===t(z)[0]?0:D,g=O.snapSlideCenter&&t(de)[0]===t(z)[0]?D:0;if("touchmove"==e.type&&(Z!=e.touches.length&&(K=-1*a+eventX),Z=e.touches.length),O.infiniteSlider){if(a<=-1*x[h]){var v=t(G).width();if(a<=-1*C[h]){var I=-1*V[0];t(J).each(function(e){T.setSliderOffset(t(J)[e],I+D),e=-1*w[h]||a>=0)if(v=t(G).width(),a>=0)for(I=-1*V[0],t(J).each(function(e){T.setSliderOffset(t(J)[e],I+D),eR&&(R=T.getSliderOffset(this,"x"),A=t)}),p=w[h]-ee[A],T.setSliderOffset(t(J)[A],p),Y.splice(0,0,-1*p+D),Y.splice(Y.length-1,1),w[h]=-1*Y[0]+D,x[h]=w[h]+v-W,S[h]--,y[h]++}else A=0,R=T.getSliderOffset(t(J[0]),"x"),t(J).each(function(t){T.getSliderOffset(this,"x")>R&&(R=T.getSliderOffset(this,"x"),A=t)}),p=w[h]-ee[A],T.setSliderOffset(t(J)[A],p),Y.splice(0,0,-1*p+D),Y.splice(Y.length-1,1),w[h]=-1*Y[0]+D,x[h]=w[h]+v-W,S[h]--}else v=t(G).width(),a>-1*w[h]+D&&(r=(w[h]+-1*(K-u-eventX+m)*f-u)*p*-1/f),a<-1*x[h]&&(r=(x[h]+g+-1*(K-u-eventX)*f-u)*p*-1/f);T.setSliderOffset(G,-1*(K-u-eventX-r)*f-u+g),O.scrollbar&&(T.showScrollbar(O,M),o=Math.floor((K-eventX-r-w[h]+m)/(x[h]-w[h]+D)*(j-H-N)*f),a=N,0>=o?(a=N-q- -1*o,T.setSliderOffset(t("."+M),0),t("."+M).css({width:a+"px"})):o>=j-H-q-N?(a=j-H-q-o,T.setSliderOffset(t("."+M),o),t("."+M).css({width:a+"px"})):T.setSliderOffset(t("."+M),o)),"touchmove"==e.type&&(U=e.touches[0].pageX),e=!1,r=T.calcActiveOffset(O,-1*(K-eventX-r),Y,W,S[h],ie,void 0,h),a=(r+S[h]+ie)%ie,O.infiniteSlider?a!=b[h]&&(e=!0):r!=y[h]&&(e=!0),e&&(y[h]=r,b[h]=a,fe=!0,a=new T.args("change",O,G,t(G).children(":eq("+a+")"),a,a),t(B).data("args",a),""!=O.onSlideChange&&O.onSlideChange(a),T.updateBackfaceVisibility(J,h,ie,O))}});var Ce=t(window);(c||l)&&(Ce=t(document)),t(a).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent",function(t){if(t=t.originalEvent,Se)return!1;if(Se=!0,k[h]||le||xe)return!0;if(0!=t.touches.length)for(var e=0;eS[o.sliderNumber]&&y[o.sliderNumber]--,n.data("args").currentSlideNumber>=i&&y[o.sliderNumber]++):(i<=o.numberOfSlides?t(o.scrollerNode).children(":eq("+(i-1)+")").before(e):t(o.scrollerNode).children(":eq("+(i-2)+")").after(e),n.data("args").currentSlideNumber>=i&&n.data("args").currentSlideNumber++),n.data("iosslider").numberOfSlides++,void $.update(this))})},removeSlide:function(e){return this.each(function(){var i=t(this),n=i.data("iosslider");return void 0==n?!1:(t(n.scrollerNode).children(":eq("+(e-1)+")").remove(),y[n.sliderNumber]>e-1&&y[n.sliderNumber]--,i.data("iosslider").numberOfSlides--,void $.update(this))})},goToSlide:function(e,i,n){return void 0==n&&(n=this),t(n).each(function(){var n=t(this).data("iosslider");return void 0==n||n.shortContent?!1:(e=e>n.childrenOffsets.length?n.childrenOffsets.length-1:e-1,void 0!=i&&(n.settings.autoSlideTransTimer=i),void T.changeSlide(e,t(n.scrollerNode),t(n.slideNodes),v[n.sliderNumber],n.scrollbarClass,n.scrollbarWidth,n.stageWidth,n.scrollbarStageWidth,n.scrollMargin,n.scrollBorder,n.originalOffsets,n.childrenOffsets,n.slideNodeOuterWidths,n.sliderNumber,n.infiniteSliderWidth,n.numberOfSlides,n.centeredSlideOffset,n.settings))})},prevSlide:function(e){return this.each(function(){var i=t(this).data("iosslider");if(void 0==i||i.shortContent)return!1;var n=(y[i.sliderNumber]+S[i.sliderNumber]+i.numberOfSlides)%i.numberOfSlides;void 0!=e&&(i.settings.autoSlideTransTimer=e),(n>0||i.settings.infiniteSlider)&&T.changeSlide(n-1,t(i.scrollerNode),t(i.slideNodes),v[i.sliderNumber],i.scrollbarClass,i.scrollbarWidth,i.stageWidth,i.scrollbarStageWidth,i.scrollMargin,i.scrollBorder,i.originalOffsets,i.childrenOffsets,i.slideNodeOuterWidths,i.sliderNumber,i.infiniteSliderWidth,i.numberOfSlides,i.centeredSlideOffset,i.settings),y[i.sliderNumber]=n})},nextSlide:function(e){return this.each(function(){var i=t(this).data("iosslider");if(void 0==i||i.shortContent)return!1;var n=(y[i.sliderNumber]+S[i.sliderNumber]+i.numberOfSlides)%i.numberOfSlides;void 0!=e&&(i.settings.autoSlideTransTimer=e),(n"),$(".html-block-inner").clone().removeClass("hide-for-small").appendTo($("#jPanelMenu-menu")).wrap(" "),$("ul.top-bar-nav").clone().removeClass("hide-for-small").appendTo($("#jPanelMenu-menu")).wrap(" "),$(".menu-parent-item > .nav-top-link, .account-dropdown > .nav-top-login").click(function(t){$(this).parent().toggleClass("open"),t.preventDefault()})},exit:function(){t.off()}}),e.addFunc({breakpoint:["large","medium"],enter:function(){$(".nav-top-link").parent().hoverIntent(function(){var t="1080";t>$(window).width()&&(t=$(window).width()),$(this).find(".nav-dropdown").css("max-width",t),$(this).find(".nav-dropdown").fadeIn(20),$(this).addClass("active");var e=$(this).find(".nav-dropdown").outerWidth(),i=$(this).find(".nav-dropdown > ul > li.menu-parent-item").width(),n=$(this).find(".nav-dropdown > ul > li.menu-parent-item").length+$(this).find(".nav-dropdown").find(".image-column").length,o=n*i;$(".wide-nav").hasClass("nav-center")&&$(this).find(".nav-dropdown").css("margin-left","-70px"),o>e&&($(this).find(".nav-dropdown").width(o),$(this).find(".nav-dropdown").addClass("no-arrow"),$(this).find(".nav-dropdown").css("left","auto"),$(this).find(".nav-dropdown").css("right",0),$(this).find("ul:after").remove())},function(){$(this).find(".nav-dropdown").fadeOut(20),$(this).removeClass("active")}),$(".menu-item-language-current").hoverIntent(function(){$(this).find(".sub-menu").fadeIn(50)},function(){$(this).find(".sub-menu").fadeOut(50)}),$(".search-dropdown").hoverIntent(function(){$(".wide-nav").hasClass("nav-center")&&$(this).find(".nav-dropdown").css("margin-left","-85px"),$(this).find(".nav-dropdown").fadeIn(50),$(this).addClass("active"),$(this).find("input").focus()},function(){$(this).find(".nav-dropdown").fadeOut(50),$(this).removeClass("active"),$(this).find("input").blur()}),$(".prod-dropdown").hoverIntent(function(){$(this).find(".nav-dropdown").fadeIn(50),$(this).addClass("active")},function(){$(this).find(".nav-dropdown").fadeOut(50),$(this).removeClass("active")}),$(".cart-link").parent().parent().hoverIntent(function(){$(this).find(".nav-dropdown").fadeIn(50),$(this).addClass("active")},function(){$(this).find(".nav-dropdown").fadeOut(50),$(this).removeClass("active")})},exit:function(){}}),$(".gallery-popup").magnificPopup({delegate:"a",type:"image",tLoading:'
',mainClass:"my-mfp-zoom-in product-zoom-lightbox",removalDelay:300,closeOnContentClick:!0,gallery:{enabled:!0,navigateByImgClick:!1,preload:[0,1]},image:{verticalFit:!1,tError:'The image #%curr% could not be loaded.'}}),$("*[id^='attachment'] a, a.image-lightbox, .entry-content a[href$='.jpg'], .entry-content a[href$='.jpeg']").not('.gallery a[href$=".jpg"], .gallery a[href$=".jpeg"]').magnificPopup({type:"image",tLoading:'
',closeOnContentClick:!0,mainClass:"my-mfp-zoom-in",image:{verticalFit:!1}}),$(".gallery a[href$='.jpg'],.gallery a[href$='.jpeg'],.featured-item a[href$='.jpeg'],.featured-item a[href$='.gif'],.featured-item a[href$='.jpg'], .page-featured-item .slider a[href$='.jpg'], .page-featured-item a[href$='.jpg'],.page-featured-item .slider a[href$='.jpeg'], .page-featured-item a[href$='.jpeg'], .gallery a[href$='.png'], .gallery a[href$='.jpeg'], .gallery a[href$='.gif']").parent().magnificPopup({delegate:"a",type:"image",tLoading:'
',mainClass:"my-mfp-zoom-in",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.',verticalFit:!1}}),$("a.button[href*='vimeo'],a.button[href*='youtube']").magnificPopup({disableOn:700,type:"iframe",mainClass:"my-mfp-zoom-in my-mfp-video",removalDelay:160,preloader:!1}),$(".quick-view,.open-quickview").click(function(t){$(this).after('
');var e=$(this).attr("data-prod"),i={action:"jck_quickview",product:e};$.post(ajaxURL.ajaxurl,i,function(t){$.magnificPopup.open({mainClass:"my-mfp-zoom-in",items:{src:''+t+"
",type:"inline"}}),$(".loading,.color-overlay").remove(),setTimeout(function(){function t(t){var e=$(t.currentSlideObject).outerHeight();$(t.sliderContainerObject).height(e)}$(".product-lightbox .iosSlider.product-gallery-slider").iosSlider({snapToChildren:!0,scrollbar:!0,scrollbarHide:!1,desktopClickDrag:!0,snapFrictionCoefficient:.7,infiniteSlider:!0,autoSlideTransTimer:500,onSliderLoaded:t,navPrevSelector:$(".product-lightbox .prev_product_slider"),navNextSelector:$(".product-lightbox .next_product_slider")}),$(".product-lightbox form").wc_variation_form(),$(".product-lightbox form select").change(),$('[name*="color"]').change(function(){$(".product-lightbox .iosSlider.product-gallery-slider").iosSlider("goToSlide","1")})},600)}),t.preventDefault()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&$(".scroll-animate").each(function(){$(this).removeClass("scroll-animate")}),$(".ux_banner .inner-wrap.animated").waypoint(function(){if(!$(this).parent().parent().parent().parent().hasClass("slider")){var t=$(this).attr("data-animate");$(this).addClass(t),$(this).addClass("start-anim")}},{offset:"95%"}),$("#main-content").waypoint(function(){$("#top-link").toggleClass("active fadeInUp animated")},{offset:"-100%"}),setTimeout(function(){$(".scroll-animate").waypoint(function(){$(this).parent().parent().parent().parent().hasClass("slider")||($(this).addClass("animated"),$(this).addClass($(this).data("animate")))},{offset:"95%"})},100);var i=-$("#masthead").outerHeight();$(".sticky_header #masthead").waypoint("sticky",{offset:i}),$(".sticky_header .wide-nav").waypoint("sticky",{offset:i}),$("#main-content").waypoint(function(){$("body.has-dark-header:not(.org-dark-header)").toggleClass("dark-header"),$(".header-wrapper").toggleClass("before-sticky"),$(".sticky_header #masthead, .wide-nav").toggleClass("move_down")},{offset:i}),$("#top-link").click(function(t){$.scrollTo(0,300),t.preventDefault()}),$(".scroll-to-reviews").click(function(t){$(".product-details .tabs-nav li").removeClass("current-menu-item"),$(".product-details .tabs-nav").find("a[href=#panelreviews]").parent().addClass("current-menu-item"),$(".tabs li, .tabs-inner,.panel.entry-content").removeClass("active"),$(".tabs li.reviews_tab, #panelreviews, #tab-reviews").addClass("active"),$(".panel.entry-content").css("display","none"),$("#tab-reviews").css("display","block"),$.scrollTo("#panelreviews",300,{offset:-90}),$.scrollTo(".reviews_tab",300,{offset:-90}),$.scrollTo("#section-reviews",300,{offset:-90}),t.preventDefault()}),$(".widget_nav_menu .menu-parent-item").hoverIntent(function(){$(this).find("ul").slideDown()},function(){$(this).find("ul").slideUp()}),$(".accordion").each(function(){var t=2*$(this).attr("rel");$(this).find(".accordion-inner:nth-child("+t+")").show(),$(this).find(".accordion-inner:nth-child("+t+")").prev().addClass("active")}),$(".accordion .accordion-title").click(function(){return $(this).next().is(":hidden")?($(this).parent().find(".accordion-title").removeClass("active").next().slideUp(200),$(this).toggleClass("active").next().slideDown(200),/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&$.scrollTo($(this),300,{offset:-100})):$(this).parent().find(".accordion-title").removeClass("active").next().slideUp(200),!1}),$(".shortcode_tabgroup ul.tabs li a").click(function(t){t.preventDefault(),$(this).parent().parent().parent().find("ul li").removeClass("active"),$(this).parent().addClass("active");var e=$(this).attr("href");$(this).parent().parent().parent().find("div.panel").removeClass("active"),$(e).addClass("active"),$(e).find("p script").unwrap();var i=navigator.userAgent.match(/(Android|webOS|iPhone|iPad|iPod|BlackBerry)/g)?!0:!1;return $(e).find(".iosSlider")&&i&&$(e).find(".iosSlider").each(function(){var t=$(this).attr("id");$("#"+t).iosSlider("update").iosSlider("goToSlide",1)}),$(window).resize(),!1}),$(".product-details .tabbed-content .tabs a").click(function(){var t=$(this).attr("href");return $(t).addClass("active"),!1}),$(".shortcode_tabgroup_vertical ul.tabs-nav li a").click(function(t){t.preventDefault(),$(this).parent().parent().parent().find("ul li").removeClass("current-menu-item"),$(this).parent().addClass("current-menu-item");var e=$(this).attr("href");return $(this).parent().parent().parent().parent().find("div.tabs-inner").removeClass("active"),$(e).addClass("active"),$(window).resize(),!1}),/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)||($(".yith-wcwl-wishlistexistsbrowse.show").each(function(){var t=$(this).find("a").text();$(this).find("a").attr("title",t).addClass("tip-top")}),$(".yith-wcwl-add-button.show").each(function(){var t=$(this).find("a.add_to_wishlist").text();$(this).find("a.add_to_wishlist").attr("title",t).addClass("tip-top")}),$(".tip-left").tooltipster({position:"left",delay:50,contentAsHTML:!0,touchDevices:!1}),$(".tip, .tip-top,.tip-bottom").tooltipster({delay:50,contentAsHTML:!0,touchDevices:!1})),$("textarea#comment").focus(function(){$(".form-allowed-tags").slideDown(),$(".form-submit").slideDown()}),$("textarea#comment").blur(function(){$(this).val()||($(".form-allowed-tags").slideUp(),$(".form-submit").slideUp())}),$("textarea#comment").blur(function(){$(this).val()||($(".form-allowed-tags").slideUp(),$(".form-submit").slideUp())}),$(window).resize(function(){$(".ux_banner.full-height").height($(window).height())}),$(".col_hover_focus").hover(function(){$(this).parent().find(".columns > *").css("opacity","0.5")},function(){$(this).parent().find(".columns > *").css("opacity","1")}),$(".slider .add_to_cart_button").hover(function(){$(".sliderControlls").css("pointer-events","none")},function(){$(".sliderControlls").css("pointer-events","all")}),$(".add-to-cart-grid.product_type_simple").click(function(){jQuery(".mini-cart").addClass("active cart-active"),jQuery(".mini-cart").hover(function(){jQuery(".cart-active").removeClass("cart-active")}),setTimeout(function(){jQuery(".cart-active").removeClass("active")},5e3)}),$('.ux_banner [class^="text-box-"], .ux_banner [class^="text-border"]').after('
'),$(".ux_banner .inner-wrap p > br, .accordion > br, #content > br, .ux-section-content > br, .social-icons > br").remove(),$("#megaMenu").wrap(" "),$("select.ninja-forms-field,select.addon-select,.widget_layered_nav select").wrap('
'),$(window).resize()}(jQuery);