IntegriLAB: a blockchain-enabled electronic lab notebook for reproducible neuroimaging research.
The 3 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § IntegriLAB overview › Implementation and deployment ↔ management/static/management/js/nicepage-copy.js, the whole file · a weak match · score 0.56 · JavaScript, optimized, Bootstrap, web, backend, interface
- [2] § IntegriLAB overview › Implementation and deployment ↔ repository/static/repository/js/nicepage.js, the whole file · a weak match · score 0.55 · JavaScript, optimized, Bootstrap, web, backend, interface
- [3] § IntegriLAB overview › System validation ↔ repository/views.py, lines 613–708 · score 0.52 · generating certification, LabTrace, latest, commits, connected, repositories
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
JavaScript · 35 lines · 195 KB · no license · 1 match
- !function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:false,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=true,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,getter){e.o(t,n)||Object.defineProperty(t,n,{configurable:false,enumerable:true,get:getter})},e.n=function(t){var getter=t&&t.__esModule?function e(){return t.default}:function e(){return t};return e.d(getter,"a",getter),getter},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/Content/BundledScripts/",e(e.s=13856)}({1079:function(t,e,n){"use strict";var i=n(1080),bootstrap={};bootstrap.Util=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function n(){if(window.QUnit)return false;var el=document.createElement("bootstrap");for(var t in h)if(void 0!==el.style[t])return h[t];return false}function i(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function o(){return{bindType:l,delegateType:l,handle:function t(e){if(u.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function a(t){var e=this,n=false;return u.default(this).one(Util.TRANSITION_END,(function(){n=true})),setTimeout((function(){n||Util.triggerTransitionEnd(e)}),t),this}function s(){l=n(),u.default.fn.emulateTransitionEnd=a,u.default.event.special[Util.TRANSITION_END]=o()}var u=e(t),l=false,c=1e6,f=1e3,h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Util={TRANSITION_END:"bsTransitionEnd",getUID:function t(e){do{e+=~~(Math.random()*c)}while(document.getElementById(e));return e},getSelectorFromElement:function t(e){var selector=e.getAttribute("data-u-target");if(!selector||"#"===selector){var n=e.getAttribute("href");selector=n&&"#"!==n?n.trim():""}try{return document.querySelector(selector)?selector:null}catch(t){return null}},getTransitionDurationFromElement:function t(e){if(!e)return 0;var n=u.default(e).css("transition-duration"),i=u.default(e).css("transition-delay"),o=parseFloat(n),a=parseFloat(i);return o||a?(n=n.split(",")[0],i=i.split(",")[0],(parseFloat(n)+parseFloat(i))*f):0},reflow:function t(e){return e.offsetHeight},triggerTransitionEnd:function t(e){u.default(e).trigger(l)},supportsTransitionEnd:function t(){return Boolean(l)},isElement:function t(e){return(e[0]||e).nodeType},typeCheckConfig:function t(e,n,o){for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a],u=n[a],l=u&&Util.isElement(u)?"element":i(u);if(!new RegExp(s).test(l))throw new Error(e.toUpperCase()+': Option "'+a+'" provided type "'+l+'" but expected type "'+s+'".')}},findShadowRoot:function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}return e instanceof ShadowRoot?e:e.parentNode?Util.findShadowRoot(e.parentNode):null}};return s(),Util}($),bootstrap.Carousel=function(t,Util){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function n(t,props){for(var e=0;e<props.length;e++){var n=props[e];n.enumerable=n.enumerable||false,n.configurable=true,"value"in n&&(n.writable=true),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function s(t){var e=t.css("background-color"),n=t.closest(".u-carousel-inner");n.length&&e&&n.css("background-color",e)}var u=e(t),l=e(Util),c="u-carousel",f="4.6.0",h="bs.u-carousel",p="bs.u-carousel.swipe",m="."+h,g=".data-u-api",v=u.default.fn[c],y=37,w=39,b=500,C=40,Default={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true,touch:false,swipe:true},S={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean",swipe:"boolean"},x="next",A="prev",_="left",T="right",E="u-slide"+m,I="slid"+m,k="keydown"+m,M="mouseenter"+m,L="mouseleave"+m,P="touchstart"+m,O="touchmove"+m,B="touchend"+m,F="pointerdown"+m,N="pointerup"+m,U="dragstart"+m,z="load"+m+g,H="click"+m+g,$="u-carousel",Y="u-active",W="u-slide",V="u-carousel-item-right",G="u-carousel-item-left",j="u-carousel-item-next",K="u-carousel-item-prev",Z="pointer-event",X=".u-active",J=".u-active.u-carousel-item",tt=".u-carousel-item",nt=".u-carousel-item img",rt=".u-carousel-item-next, .u-carousel-item-prev",ot=".u-carousel-indicators, .u-carousel-thumbnails",at="[data-u-slide], [data-u-slide-to]",st='[data-u-ride="carousel"]',ut={TOUCH:"touch",PEN:"pen"},Carousel=function(){function Carousel(t,e){var n="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._items=null,this._interval=null,this._activeElement=null,this._isPaused=false,this._isSliding=false,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported=!this._element.matches(".u-form")&&n,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=Carousel.prototype;return e.next=function t(){this._isSliding||this._slide(x)},e.nextWhenVisible=function t(){var e=u.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},e.prev=function t(){this._isSliding||this._slide(A)},e.pause=function t(e){e||(this._isPaused=true),this._element.querySelector(rt)&&(l.default.triggerTransitionEnd(this._element),this.cycle(true)),clearInterval(this._interval),this._interval=null},e.cycle=function t(e){e||(this._isPaused=false),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function t(index){var e=this;this._activeElement=this._element.querySelector(J);var n=this._getItemIndex(this._activeElement);if(!(index>this._items.length-1||index<0)){if(this._isSliding)return u.default(this._element).one(I,(function(){return e.to(index)})),void 0;if(n===index)return this.pause(),this.cycle(),void 0;var i=index>n?x:A;this._slide(i,this._items[index])}},e.dispose=function t(){u.default(this._element).off(m),u.default.removeData(this._element,h),u.default.removeData(this._element,p),this._items=null,this._config=null,this._element=null,this._interval&&clearInterval(this._interval),this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function t(e){return e=a({},Default,e),l.default.typeCheckConfig(c,e,S),e},e._handleSwipe=function t(){var e=Math.abs(this.touchDeltaX);if(!(e<=C)){var n=e/this.touchDeltaX;this.touchDeltaX=0,n>0&&this.prev(),n<0&&this.next()}},e._addEventListeners=function t(){var e=this;this._config.keyboard&&u.default(this._element).on(k,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&u.default(this._element).on(M,(function(t){return e.pause(t)})).on(L,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function t(){var e=this;if(this._touchSupported){var n=function t(n){e._pointerEvent&&ut[n.originalEvent.pointerType.toUpperCase()]?e.touchStartX=n.originalEvent.clientX:e._pointerEvent||(e.touchStartX=n.originalEvent.touches[0].clientX)},move=function move(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX},i=function t(n){e._pointerEvent&&ut[n.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=n.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),b+e._config.interval))};u.default(this._element.querySelectorAll(nt)).on(U,(function(t){return t.preventDefault()})),this._pointerEvent?(u.default(this._element).on(F,(function(t){return n(t)})),u.default(this._element).on(N,(function(t){return i(t)})),this._element.classList.add(Z)):(u.default(this._element).on(P,(function(t){return n(t)})),u.default(this._element).on(O,(function(t){return move(t)})),u.default(this._element).on(B,(function(t){return i(t)})))}},e._keydown=function t(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case y:e.preventDefault(),this.prev();break;case w:e.preventDefault(),this.next()}},e._getItemIndex=function t(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(tt)):[],this._items.indexOf(e)},e._getItemByDirection=function t(e,n){var i=e===x,o=e===A,a=this._getItemIndex(n),s=this._items.length-1,u;if((o&&0===a||i&&a===s)&&!this._config.wrap)return n;var l,c=(a+(e===A?-1:1))%this._items.length;return-1===c?this._items[this._items.length-1]:this._items[c]},e._triggerSlideEvent=function t(e,n){var i=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(J)),a=u.default.Event(E,{relatedTarget:e,direction:n,from:o,to:i});return u.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function t(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(X));u.default(n).removeClass(Y);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&u.default(i).addClass(Y)}},e._updateInterval=function t(){var e=this._activeElement||this._element.querySelector(J);if(e){var n=parseInt(e.getAttribute("data-interval"),10);n?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=n):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function e(n,i){var o=this,a=this._element.querySelector(J),c=this._getItemIndex(a),f=i||a&&this._getItemByDirection(n,a),h=this._getItemIndex(f),p=Boolean(this._interval),m,g,v,y;if(n===x?(m=G,g=j,v=_):(m=V,g=K,v=T),f&&u.default(f).hasClass(Y))return this._isSliding=false,void 0;if(!this._triggerSlideEvent(f,v).isDefaultPrevented()&&a&&f){t(f).closest(".u-carousel-fade").length&&s(t(f)),this._isSliding=true,p&&this.pause(),this._setActiveIndicatorElement(f),this._activeElement=f;var w=u.default.Event(I,{relatedTarget:f,direction:v,from:c,to:h}),b=null;if(u.default(this._element).hasClass($)){u.default(f).addClass(g),l.default.reflow(f),u.default(a).addClass(m),u.default(f).addClass(m);var C=l.default.getTransitionDurationFromElement(a),S=this._element.className,A=/u-carousel-duration-(\d+)/.exec(S);if(A&&2===A.length&&(C=parseFloat(A[1])||0),p){var E=parseFloat(t(this._element).attr("data-interval"))+C;Number.isFinite(E)&&E>0&&(b=this._config.interval,this._config.interval=E)}u.default(a).one(l.default.TRANSITION_END,(function(){u.default(f).removeClass(m+" "+g).addClass(Y),u.default(a).removeClass("u-active "+g+" "+m),o._isSliding=false,setTimeout((function(){return u.default(o._element).trigger(w)}),0)})).emulateTransitionEnd(C)}else u.default(a).removeClass(Y),u.default(f).addClass(Y),this._isSliding=false,u.default(this._element).trigger(w);p&&this.cycle(),b&&(this._config.interval=b)}},Carousel._jQueryInterface=function t(e){return this.each((function(){var data=u.default(this).data(h),t=a({},Default,u.default(this).data());"object"==typeof e&&(t=a({},t,e));var n="string"==typeof e?e:t.uSlide,o;data||(data=new Carousel(this,t),u.default(this).data(h,data),u.default(this).data(p)||u.default(this).data(p,new i(this,t)));if("number"==typeof e)data.to(e);else if("string"==typeof n){if(void 0===data[n])throw new TypeError('No method named "'+n+'"');data[n]()}else t.interval&&t.uRide&&(data.pause(),data.cycle())}))},Carousel._dataApiClickHandler=function t(e){var selector=l.default.getSelectorFromElement(this);if(selector){var n=u.default(selector)[0];if(n&&u.default(n).hasClass($)){var i=a({},u.default(n).data(),u.default(this).data()),o=this.getAttribute("data-u-slide-to");o&&(i.interval=false),Carousel._jQueryInterface.call(u.default(n),i),o&&u.default(n).data(h).to(o),e.preventDefault()}}},o(Carousel,null,[{key:"VERSION",get:function t(){return f}},{key:"Default",get:function t(){return Default}}]),Carousel}();return u.default(document).on(H,at,Carousel._dataApiClickHandler),u.default(window).on(z,(function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=u.default(t[e]);Carousel._jQueryInterface.call(i,i.data())}})),u.default.fn[c]=Carousel._jQueryInterface,u.default.fn[c].Constructor=Carousel,u.default.fn[c].noConflict=function(){return u.default.fn[c]=v,Carousel._jQueryInterface},Carousel}($,bootstrap.Util)},1080:function(t,e,n){"use strict";function i(t){this.$element=o(t),this.carousel=this.$element.data("bs.u-carousel"),this.options=o.extend({},i.DEFAULTS,this.carousel._config),this.startX=null,this.startY=null,this.startTime=null,this.cycling=null,this.$active=null,this.$items=null,this.$next=null,this.$prev=null,this.dx=null,this.sliding=false,this.$element.hasClass("u-form")||this.$element.on("touchstart.bs.u-carousel",this.touchstart.bind(this)).on("touchmove.bs.u-carousel",this.touchmove.bind(this)).on("touchend.bs.u-carousel",this.touchend.bind(this)).on("u-slide.bs.u-carousel",this.startSliding.bind(this)).on("slid.bs.u-carousel",this.stopSliding.bind(this))}t.exports=i;var o=n(31);i.DEFAULTS={swipe:50},i.prototype.startSliding=function(){this.sliding=true},i.prototype.stopSliding=function(){this.sliding=false},i.prototype.touchstart=function(t){if(!this.sliding&&this.options.swipe){var e=t.originalEvent.touches?t.originalEvent.touches[0]:t;this.dx=0,this.startX=e.pageX,this.startY=e.pageY,this.cycling=null,this.width=this.$element.width(),this.startTime=t.timeStamp}},i.prototype.touchmove=function(t){if(!this.sliding&&this.options.swipe&&this.startTime){var e=t.originalEvent.touches?t.originalEvent.touches[0]:t,n=e.pageX-this.startX,i=e.pageY-this.startY;Math.abs(n)<Math.abs(i)||(null===this.cycling&&(this.cycling=!!this.carousel.interval,this.cycling&&this.carousel.pause()),t.preventDefault(),this.dx=n/(this.width||1)*100,this.swipe(this.dx))}},i.prototype.touchend=function(t){if(!this.sliding&&this.options.swipe&&this.startTime&&this.$active){var all=o().add(this.$active).add(this.$prev).add(this.$next).carousel_transition(true),e=(t.timeStamp-this.startTime)/1e3,n=Math.abs(this.dx/e);this.dx>40||this.dx>0&&n>this.options.swipe?this.carousel.prev():this.dx<-40||this.dx<0&&n>this.options.swipe?this.carousel.next():this.$active.one(o.support.transition.end,(function(){all.removeClass("u-carousel-item-prev u-carousel-item-next")})).emulateTransitionEnd(1e3*this.$active.css("transition-duration").slice(0,-1)),all.css("transform",""),this.cycling&&this.carousel.cycle(),this.$active=null,this.startTime=null}},i.prototype.swipe=function(t){var e=this.$active||this.getActive();if(t<0){if(this.$prev.css("transform","translate3d(0,0,0)").removeClass("u-carousel-item-prev").carousel_transition(true),!this.$next.length||this.$next.hasClass("u-active"))return;this.$next.carousel_transition(false).addClass("u-carousel-item-next").css("transform","translate3d("+(t+100)+"%,0,0)")}else{if(this.$next.css("transform","").removeClass("u-carousel-item-next").carousel_transition(true),!this.$prev.length||this.$prev.hasClass("u-active"))return;this.$prev.carousel_transition(false).addClass("u-carousel-item-prev").css("transform","translate3d("+(t-100)+"%,0,0)")}e.carousel_transition(false).css("transform","translate3d("+t+"%, 0, 0)")},i.prototype.getActive=function(){return this.$active=this.$element.find(".u-carousel-item.u-active"),this.$items=this.$active.parent().children(),this.$next=this.$active.next(),!this.$next.length&&this.options.wrap&&(this.$next=this.$items.first()),this.$prev=this.$active.prev(),!this.$prev.length&&this.options.wrap&&(this.$prev=this.$items.last()),this.$active},o.fn.carousel_transition=function(t){return t=t?"":"none",this.each((function(){o(this).css("transition",t)}))}},1095:function(t,e,n){"use strict";function i(t){var data=t.attr("data-map");if(data){data=Object(a.a)(data);var e=t.contents()[0],n=e.createElement("script");n.type="text/javascript",n.innerHTML="var data = "+JSON.stringify(data)+';\n;var mapIframeApiReady = function () {\n parent.mapIframeApiReady(google, document.getElementById("map"), data);\n}';var i=e.createElement("script");i.type="text/javascript",i.src="//maps.google.com/maps/api/js?key="+data.apiKey+"&callback=mapIframeApiReady",data.lang&&(i.src+="&language="+data.lang),e.head.appendChild(n),e.head.appendChild(i),$(e.body).append('<style> #map { width: 100%; height: 100%; } body { margin: 0; } .marker-internal { width: 180px; font-weight: normal; } .marker-internal a { text-decoration: none; color:#427fed; } .marker-internal strong { font-weight: 500; font-size: 14px; }</style><div id="map"></div>')}}function o(t){var e="",url,n;(t.title&&(e+="<strong>"+t.title+"</strong>"),t.description&&(e+="<div>"+t.description.replace(/\n/g,"<br>")+"</div>"),t.linkUrl)&&(e+='<a href="'+t.linkUrl+'" target="_blank"><span>'+(t.linkCaption||t.linkUrl)+"</span></a>");return e&&(e='<div class="marker-internal">'+e+"</div>"),e}Object.defineProperty(e,"__esModule",{value:true});var a=n(237),MapsLoader={};window.loadMapsContent=function(){$("iframe.map-content").each((function(){var t=$(this);0===t.contents().find("#map").length&&i(t)}))},window.mapIframeApiReady=function(google,t,data){data.markers=data.markers||[];var e=data.zoom;e||1!==data.markers.length||(e=data.markers[0].zoom),e||(e=14),e=parseInt(e,10),data.map=data.map||{},data.map.zoom=e,data.map.mapTypeId="satellite"===data.typeId?google.maps.MapTypeId.HYBRID:google.maps.MapTypeId.ROADMAP,data.markers.length&&(data.map.center=data.markers[0].position);var map=new google.maps.Map(t,data.map||{}),n=new google.maps.LatLngBounds;if(data.markers.forEach((function(t){t.map=map;var e=new google.maps.Marker(t);n.extend(new google.maps.LatLng(t.position.lat,t.position.lng));var i=o(t);if(i){var a=new google.maps.InfoWindow({content:$("<textarea/>").html(i).text()});e.addListener("click",(function(){a.open(e.get("map"),e)}))}})),data.markers.length>1&&e&&!isNaN(e)){map.fitBounds(n);var i=google.maps.event.addListener(map,"zoom_changed",(function(){google.maps.event.removeListener(i),(map.getZoom()>e||0===map.getZoom())&&map.setZoom(e)}))}},window.MapsLoader=MapsLoader},1096:function(t,e,n){"use strict";function ResponsiveMenu(t,e){this.responsive=t,this.root=e||i("body"),this.init()}t.exports=ResponsiveMenu;var i=window.jQuery;ResponsiveMenu.prototype.init=function init(){this.root.is("body")&&this.subscribe(),this.initStyles()},ResponsiveMenu.prototype.subscribe=function t(){this.root.on("click",".u-menu .menu-collapse",function(t){t.preventDefault();var e=i(t.currentTarget).closest(".u-menu");ResponsiveMenu.isActive(e)?this.close(e):this.open(e)}.bind(this)),this.root.on("click",".u-menu .u-menu-close",function(t){t.preventDefault();var e=i(t.currentTarget).closest(".u-menu");this.close(e)}.bind(this)),this.root.on("click",".u-menu .u-menu-overlay",function(t){var e=i(t.currentTarget).closest(".u-menu.open");this.close(e)}.bind(this)),this.root.find(".u-menu").on("click",".u-nav-container-collapse .u-nav-link",function(t){var e=i(t.currentTarget),n;if(!e.siblings(".u-nav-popup").length){var o=e.attr("href");if(o&&-1!==o.indexOf("#")){var a=i(t.currentTarget).closest(".u-menu");this.close(a)}}}.bind(this)),this.root.find(".u-menu:not(.u-menu-one-level)").on("click",".u-nav-container-collapse .u-nav-link",(function(t){var e=i(t.currentTarget).siblings(".u-nav-popup"),nav,n=e.closest(".u-menu").attr("data-submenu-level")||"on-click";if(e.length&&"on-click"===n){t.preventDefault(),t.stopPropagation(),t.returnValue=false,e.one("transitionend webkitTransitionEnd oTransitionEnd",(function(t){t.stopPropagation(),e.removeClass("animating"),e.toggleClass("open"),e.css({"max-height":e.is(".open")?"none":"",visibility:""}),e.find(".open").removeClass("open").css("max-height","")})),e.css({"max-height":"none",visibility:"visible"});var o=e.outerHeight();e.css("max-height",e.is(".open")?o:0),e.addClass("animating"),e[0].offsetHeight,e.css("max-height",e.is(".open")?0:o)}e.length&&"with-reload"===n&&i(this).attr("href")&&i(this).attr("href").indexOf("#")>-1&&(window.location.href.indexOf(i(this).attr("href"))>-1?window.location.reload(true):window.location=i(this).attr("href"))})),i(window).on("resize",function(){this.screenWidth!==window.innerWidth&&i(".u-menu.open").each(function(t,el){this.close(i(el))}.bind(this))}.bind(this)),i(document).keyup(function(t){27===t.keyCode&&i(".u-menu.open").each(function(t,el){this.close(i(el))}.bind(this))}.bind(this)),i(this.root).on("mouseenter touchstart",".u-nav-container ul > li",function(t){ResponsiveMenu.fixDirection(this.root,i(t.currentTarget))}.bind(this))},ResponsiveMenu.prototype.initStyles=function t(){this.root.find(".u-menu").each((function(){var menu=i(this),style=menu.find(".offcanvas-style"),t=menu.find(".u-nav-container-collapse .u-sidenav").attr("data-offcanvas-width")||250;style.length||(style=i('<style class="offcanvas-style"></style>'),menu.append(style)),style.html(" .u-offcanvas .u-sidenav { flex-basis: {width} !important; } .u-offcanvas:not(.u-menu-open-right) .u-sidenav { margin-left: -{width}; } .u-offcanvas.u-menu-open-right .u-sidenav { margin-right: -{width}; } @keyframes menu-shift-left { from { left: 0; } to { left: {width}; } } @keyframes menu-unshift-left { from { left: {width}; } to { left: 0; } } @keyframes menu-shift-right { from { right: 0; } to { right: {width}; } } @keyframes menu-unshift-right { from { right: {width}; } to { right: 0; } } ".replace(/\{width\}/g,t+"px"))}))},ResponsiveMenu.prototype.onResponsiveResize=function t(){i(".u-menu").each(function(t,el){var e=i(el).attr("data-responsive-from")||"MD",n=this.responsive.modes.indexOf(e);-1===n&&(n=0);var o=this.responsive.modes.slice(n);ResponsiveMenu.toggleResponsive(el,-1!==o.indexOf(this.responsive.mode)),this.megaResize(el,1)}.bind(this))},ResponsiveMenu.toggleResponsive=function t(e,n){i(e).toggleClass("u-enable-responsive",n)},ResponsiveMenu.prototype.close=function close(menu,t){if(window.app&&window.app.modes)return this.closeMenu(menu,t),this.setOverlayOpacity(menu),ResponsiveMenu.isOffcanvasMode(menu)&&app.modes().resetOffCanvas(),void 0;ResponsiveMenu.isActive(menu)&&this.closeMenu(menu,t)},ResponsiveMenu.prototype.closeMenu=function t(menu,e){this.enableScroll(),ResponsiveMenu.isOffcanvasMode(menu)?this.offcanvasMenuClose(menu):this.overlayMenuClose(menu),this.root.removeClass("menu-overlay"),this.hideOverlay(menu,e)},ResponsiveMenu.prototype.open=function open(menu){if(this.root.addClass("menu-overlay"),window.app&&window.app.modes)return this.setOverlayOpacity(menu),this.openMenu(menu),ResponsiveMenu.isOffcanvasMode(menu)&&app.modes().setOffCanvas(),void 0;ResponsiveMenu.isActive(menu)||this.openMenu(menu)},ResponsiveMenu.prototype.setOverlayOpacity=function t(menu){menu.find(".u-menu-overlay").css("opacity","")},ResponsiveMenu.prototype.openMenu=function open(menu){this.screenWidth=window.innerWidth,this.disableScroll(),ResponsiveMenu.isOffcanvasMode(menu)?this.offcanvasMenuOpen(menu):this.overlayMenuOpen(menu),this.showOverlay(menu)},ResponsiveMenu.prototype.offcanvasMenuOpen=function t(menu){var e=this.root;menu.addClass("open"),e.addClass("u-offcanvas-opened"),menu.is(".u-offcanvas-shift")&&e.addClass("u-offcanvas-shifted-"+(menu.hasClass("u-menu-open-right")?"right":"left"))},ResponsiveMenu.prototype.offcanvasMenuClose=function t(menu){menu.removeClass("open"),this.root.removeClass("u-offcanvas-opened u-offcanvas-shifted-left u-offcanvas-shifted-right"),menu.is(".u-offcanvas-shift")&&this.root.addClass("u-offcanvas-unshifted-"+(menu.hasClass("u-menu-open-right")?"right":"left"))},ResponsiveMenu.prototype.megaResize=function t(menu,e){menu=i(menu),e=e||1,menu.hasClass("u-menu-mega")&&(menu.outerHeight(),menu.each((function(){var menu=i(this);menu.find(".u-mega-popup").each((function(){var t=i(this),n=t.attr("data-mega-width")||"content";if("custom"!==n&&"content"!==n){var o="sheet"===n?menu.closest(".u-sheet, .u-body"):menu.closest("body, .u-body"),a=o.offset(),s=o.outerWidth();if(t.css({left:"",width:""}),t.removeClass("u-popup-left u-popup-right"),t.addClass("u-hidden"),menu.outerHeight(),t.removeClass("u-hidden"),menu.outerHeight(),"content"===n)return t.css("width","auto"),void 0;var u=t.offset(),l=(a.left-u.left)/e,c=parseFloat(t.css("left")||0);t.css({left:c+Math.round(l)+"px",width:s+"px"})}}))})))},ResponsiveMenu.prototype.hideOverlay=function t(menu,e){var overlay=menu.find(".u-menu-overlay"),n=function(){ResponsiveMenu.isActive(menu)||(menu.find(".u-nav-container-collapse").css("width",""),this.root.filter("body").find("header.u-sticky").css("top",""),this.updateHeaderRows(menu,"menuClosed"))}.bind(this);e?n():overlay.fadeOut(500,n)},ResponsiveMenu.prototype.showOverlay=function t(menu){var overlay=menu.find(".u-menu-overlay");menu.find(".u-nav-container-collapse").css("width","100%"),overlay.fadeIn(500),this.updateHeaderRows(menu,"menuOpened")},ResponsiveMenu.prototype.disableScroll=function t(){this.root.is("body")&&(document.documentElement.style.overflow="hidden")},ResponsiveMenu.prototype.updateHeaderRows=function t(menu,type){var e;"menuOpened"===type?(e=menu.closest(".u-sticky-fixed")).length&&e.addClass("u-sticky-with-opened-mobile-menu"):(e=i("header .u-sticky-with-opened-mobile-menu")).length&&e.removeClass("u-sticky-with-opened-mobile-menu")},ResponsiveMenu.prototype.enableScroll=function t(){this.root.is("body")&&(document.documentElement.style.overflow="")},ResponsiveMenu.prototype.overlayMenuOpen=function t(menu){menu.addClass("open")},ResponsiveMenu.prototype.overlayMenuClose=function t(menu){menu.removeClass("open")},ResponsiveMenu.isOffcanvasMode=function(menu){return menu.is(".u-offcanvas")},ResponsiveMenu.isActive=function(menu){return menu.hasClass("open")},ResponsiveMenu.fixDirection=function t(e,el){if(el&&el.length){e=i(e);var n="u-popup-left",o="u-popup-right",a;i(el).children(".u-nav-popup").each((function(){var t=i(this);t.removeClass(n+" "+o);var a=t.parent().closest(".u-nav-popup"),s=t.attr("data-mega-width")||"content",u=Boolean(a.length);if("content"===s){var l="";if(t.parents("."+n).length?l=n:t.parents("."+o).length&&(l=o),l)t.addClass(l);else{var c=t[0].getBoundingClientRect(),f=e[0].getBoundingClientRect(),h="undefined"==typeof app?1:app.editor.preview.scale,p=c.right-f.right,m=f.left-c.left;p>1?(t.css("left",u?"":(f.right-c.right)/h+"px"),t.css("right",u?"":"auto"),t.addClass(n)):m>1&&(t.css("left",u?"":"0px"),t.css("right",u?"":"auto"),t.addClass(o))}}}))}},window.ResponsiveMenu=ResponsiveMenu},110:function(t,e,n){"use strict";(function(t){function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return false}}function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,length){if(o()<length)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(length)).__proto__=s.prototype:(null===t&&(t=new s(length)),t.length=length),t}function s(t,e,length){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,length);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,length)}function u(t,e,n,length){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,n,length):"string"==typeof e?h(t,e,n):g(t,e)}function l(size){if("number"!=typeof size)throw new TypeError('"size" argument must be a number');if(size<0)throw new RangeError('"size" argument must not be negative')}function c(t,size,e,n){return l(size),size<=0?a(t,size):void 0!==e?"string"==typeof n?a(t,size).fill(e,n):a(t,size).fill(e):a(t,size)}function f(t,size){if(l(size),t=a(t,size<0?0:0|v(size)),!s.TYPED_ARRAY_SUPPORT)for(var e=0;e<size;++e)t[e]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var length=0|w(e,n),i=(t=a(t,length)).write(e,n);return i!==length&&(t=t.slice(0,i)),t}function p(t,e){var length=e.length<0?0:0|v(e.length);t=a(t,length);for(var n=0;n<length;n+=1)t[n]=255&e[n];return t}function m(t,e,n,length){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(length||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===length?new Uint8Array(e):void 0===length?new Uint8Array(e,n):new Uint8Array(e,n,length),s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=p(t,e),t}function g(t,e){if(s.isBuffer(e)){var n=0|v(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||rt(e.length)?a(t,0):p(t,e);if("Buffer"===e.type&&st(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(length){if(length>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|length}function y(length){return+length!=length&&(length=0),s.alloc(+length)}function w(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=false;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return tt(t).length;default:if(i)return Z(t).length;e=(""+e).toLowerCase(),i=true}}function b(t,e,n){var i=false;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=true}}function C(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function S(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,o);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,o){function a(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,u=t.length,l=e.length,c;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,u/=2,l/=2,n/=2}if(o){var f=-1;for(c=n;c<u;c++)if(a(t,c)===a(e,-1===f?0:c-f)){if(-1===f&&(f=c),c-f+1===l)return f*s}else-1!==f&&(c-=c-f),f=-1}else for(n+l>u&&(n=u-l),c=n;c>=0;c--){for(var h=true,p=0;p<l;p++)if(a(t,c+p)!==a(e,p)){h=false;break}if(h)return c}return-1}function A(t,e,n,length){n=Number(n)||0;var i=t.length-n;length?(length=Number(length))>i&&(length=i):length=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");length>o/2&&(length=o/2);for(var a=0;a<length;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,length){return nt(Z(e,t.length-n),t,n,length)}function T(t,e,n,length){return nt(X(e),t,n,length)}function E(t,e,n,length){return T(t,e,n,length)}function I(t,e,n,length){return nt(tt(e),t,n,length)}function k(t,e,n,length){return nt(J(e,t.length-n),t,n,length)}function M(t,e,n){return 0===e&&n===t.length?ot.fromByteArray(t):ot.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var a=t[o],s=null,u=a>239?4:a>223?3:a>191?2:1,l,c,f,h;if(o+u<=n)switch(u){case 1:a<128&&(s=a);break;case 2:128==(192&(l=t[o+1]))&&(h=(31&a)<<6|63&l)>127&&(s=h);break;case 3:l=t[o+1],c=t[o+2],128==(192&l)&&128==(192&c)&&(h=(15&a)<<12|(63&l)<<6|63&c)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:l=t[o+1],c=t[o+2],f=t[o+3],128==(192&l)&&128==(192&c)&&128==(192&f)&&(h=(15&a)<<18|(63&l)<<12|(63&c)<<6|63&f)>65535&&h<1114112&&(s=h)}null===s?(s=65533,u=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),o+=u}return P(i)}function P(t){var e=t.length;if(e<=ut)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=ut));return n}function O(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(127&t[o]);return i}function B(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(t[o]);return i}function F(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=e;a<n;++a)o+=K(t[a]);return o}function N(t,e,n){for(var i=t.slice(e,n),o="",a=0;a<i.length;a+=2)o+=String.fromCharCode(i[a]+256*i[a+1]);return o}function U(t,e,length){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>length)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,i,o,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function H(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,a=Math.min(t.length-n,2);o<a;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function $(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,a=Math.min(t.length-n,4);o<a;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function Y(t,e,n,i,o,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,i,o){return o||Y(t,e,n,4,34028234663852886e22,-34028234663852886e22),at.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,o){return o||Y(t,e,n,8,17976931348623157e292,-17976931348623157e292),at.write(t,e,n,i,52,8),n+8}function G(t){if((t=j(t).replace(lt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function j(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var n;e=e||1/0;for(var length=t.length,i=null,o=[],a=0;a<length;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===length){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function J(t,e){for(var n,i,o,a=[],s=0;s<t.length&&!((e-=2)<0);++s)i=(n=t.charCodeAt(s))>>8,o=n%256,a.push(o),a.push(i);return a}function tt(t){return ot.toByteArray(G(t))}function nt(t,e,n,length){for(var i=0;i<length&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function rt(t){return t!=t}var ot=n(673),at=n(674),st=n(675);e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),e.kMaxLength=o(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,length){return u(null,t,e,length)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:true})),s.alloc=function(size,t,e){return c(null,size,t,e)},s.allocUnsafe=function(size){return f(null,size)},s.allocUnsafeSlow=function(size){return f(null,size)},s.isBuffer=function t(e){return!!(null!=e&&e._isBuffer)},s.compare=function compare(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},s.isEncoding=function t(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}},s.concat=function t(list,length){if(!st(list))throw new TypeError('"list" argument must be an Array of Buffers');if(0===list.length)return s.alloc(0);var e;if(void 0===length)for(length=0,e=0;e<list.length;++e)length+=list[e].length;var n=s.allocUnsafe(length),i=0;for(e=0;e<list.length;++e){var o=list[e];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=w,s.prototype._isBuffer=true,s.prototype.swap16=function t(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)C(this,n,n+1);return this},s.prototype.swap32=function t(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)C(this,n,n+3),C(this,n+1,n+2);return this},s.prototype.swap64=function t(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)C(this,n,n+7),C(this,n+1,n+6),C(this,n+2,n+5),C(this,n+3,n+4);return this},s.prototype.toString=function t(){var length=0|this.length;return 0===length?"":0===arguments.length?L(this,0,length):b.apply(this,arguments)},s.prototype.equals=function t(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function t(){var n="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(n+=" ... ")),"<Buffer "+n+">"},s.prototype.compare=function compare(t,e,n,i,o){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(o>>>=0)-(i>>>=0),u=(n>>>=0)-(e>>>=0),l=Math.min(a,u),c=this.slice(i,o),f=t.slice(e,n),h=0;h<l;++h)if(c[h]!==f[h]){a=c[h],u=f[h];break}return a<u?-1:u<a?1:0},s.prototype.includes=function t(e,n,i){return-1!==this.indexOf(e,n,i)},s.prototype.indexOf=function t(e,n,i){return S(this,e,n,i,true)},s.prototype.lastIndexOf=function t(e,n,i){return S(this,e,n,i,false)},s.prototype.write=function t(e,n,length,i){if(void 0===n)i="utf8",length=this.length,n=0;else if(void 0===length&&"string"==typeof n)i=n,length=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(length)?(length|=0,void 0===i&&(i="utf8")):(i=length,length=void 0)}var o=this.length-n;if((void 0===length||length>o)&&(length=o),e.length>0&&(length<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=false;;)switch(i){case"hex":return A(this,e,n,length);case"utf8":case"utf-8":return _(this,e,n,length);case"ascii":return T(this,e,n,length);case"latin1":case"binary":return E(this,e,n,length);case"base64":return I(this,e,n,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n,length);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=true}},s.prototype.toJSON=function t(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ut=4096;s.prototype.slice=function t(e,n){var i=this.length,o;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(n=void 0===n?i:~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<e&&(n=e),s.TYPED_ARRAY_SUPPORT)(o=this.subarray(e,n)).__proto__=s.prototype;else{var a=n-e;o=new s(a,void 0);for(var u=0;u<a;++u)o[u]=this[u+e]}return o},s.prototype.readUIntLE=function t(e,n,i){e|=0,n|=0,i||U(e,n,this.length);for(var o=this[e],a=1,s=0;++s<n&&(a*=256);)o+=this[e+s]*a;return o},s.prototype.readUIntBE=function t(e,n,i){e|=0,n|=0,i||U(e,n,this.length);for(var o=this[e+--n],a=1;n>0&&(a*=256);)o+=this[e+--n]*a;return o},s.prototype.readUInt8=function t(e,n){return n||U(e,1,this.length),this[e]},s.prototype.readUInt16LE=function t(e,n){return n||U(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function t(e,n){return n||U(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function t(e,n){return n||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function t(e,n){return n||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function t(e,n,i){e|=0,n|=0,i||U(e,n,this.length);for(var o=this[e],a=1,s=0;++s<n&&(a*=256);)o+=this[e+s]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*n)),o},s.prototype.readIntBE=function t(e,n,i){e|=0,n|=0,i||U(e,n,this.length);for(var o=n,a=1,s=this[e+--o];o>0&&(a*=256);)s+=this[e+--o]*a;return s>=(a*=128)&&(s-=Math.pow(2,8*n)),s},s.prototype.readInt8=function t(e,n){return n||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function t(e,n){n||U(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function t(e,n){n||U(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function t(e,n){return n||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function t(e,n){return n||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function t(e,n){return n||U(e,4,this.length),at.read(this,e,true,23,4)},s.prototype.readFloatBE=function t(e,n){return n||U(e,4,this.length),at.read(this,e,false,23,4)},s.prototype.readDoubleLE=function t(e,n){return n||U(e,8,this.length),at.read(this,e,true,52,8)},s.prototype.readDoubleBE=function t(e,n){return n||U(e,8,this.length),at.read(this,e,false,52,8)},s.prototype.writeUIntLE=function t(e,n,i,o){var a;(e=+e,n|=0,i|=0,o)||z(this,e,n,i,Math.pow(2,8*i)-1,0);var s=1,u=0;for(this[n]=255&e;++u<i&&(s*=256);)this[n+u]=e/s&255;return n+i},s.prototype.writeUIntBE=function t(e,n,i,o){var a;(e=+e,n|=0,i|=0,o)||z(this,e,n,i,Math.pow(2,8*i)-1,0);var s=i-1,u=1;for(this[n+s]=255&e;--s>=0&&(u*=256);)this[n+s]=e/u&255;return n+i},s.prototype.writeUInt8=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},s.prototype.writeUInt16LE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):H(this,e,n,true),n+2},s.prototype.writeUInt16BE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):H(this,e,n,false),n+2},s.prototype.writeUInt32LE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):$(this,e,n,true),n+4},s.prototype.writeUInt32BE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):$(this,e,n,false),n+4},s.prototype.writeIntLE=function t(e,n,i,o){if(e=+e,n|=0,!o){var a=Math.pow(2,8*i-1);z(this,e,n,i,a-1,-a)}var s=0,u=1,l=0;for(this[n]=255&e;++s<i&&(u*=256);)e<0&&0===l&&0!==this[n+s-1]&&(l=1),this[n+s]=(e/u>>0)-l&255;return n+i},s.prototype.writeIntBE=function t(e,n,i,o){if(e=+e,n|=0,!o){var a=Math.pow(2,8*i-1);z(this,e,n,i,a-1,-a)}var s=i-1,u=1,l=0;for(this[n+s]=255&e;--s>=0&&(u*=256);)e<0&&0===l&&0!==this[n+s+1]&&(l=1),this[n+s]=(e/u>>0)-l&255;return n+i},s.prototype.writeInt8=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},s.prototype.writeInt16LE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):H(this,e,n,true),n+2},s.prototype.writeInt16BE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):H(this,e,n,false),n+2},s.prototype.writeInt32LE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):$(this,e,n,true),n+4},s.prototype.writeInt32BE=function t(e,n,i){return e=+e,n|=0,i||z(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):$(this,e,n,false),n+4},s.prototype.writeFloatLE=function t(e,n,i){return W(this,e,n,true,i)},s.prototype.writeFloatBE=function t(e,n,i){return W(this,e,n,false,i)},s.prototype.writeDoubleLE=function t(e,n,i){return V(this,e,n,true,i)},s.prototype.writeDoubleBE=function t(e,n,i){return V(this,e,n,false,i)},s.prototype.copy=function copy(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o=i-n,a;if(this===t&&n<e&&e<i)for(a=o-1;a>=0;--a)t[a+e]=this[a+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)t[a+e]=this[a+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},s.prototype.fill=function t(e,n,i,o){if("string"==typeof e){if("string"==typeof n?(o=n,n=0,i=this.length):"string"==typeof i&&(o=i,i=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<i)throw new RangeError("Out of range index");if(i<=n)return this;var u;if(n>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(u=n;u<i;++u)this[u]=e;else{var l=s.isBuffer(e)?e:Z(new s(e,o).toString()),c=l.length;for(u=0;u<i-n;++u)this[u+n]=l[u%c]}return this};var lt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(74))},1116:function(t,e,n){"use strict";var Const=t.exports={};Const.formActionUrl=["https://forms.","n","i","c","e","p","a","g","e","srv.com/"].join(""),Const.stripeCheckoutUrl="https://service.nicepagesrv.com/stripe/v1/stripe-checkout",Const.emailCheckoutUrl="https://service.nicepagesrv.com/place-email-order/v1/place-email-order",Const.formUploadAttachmentsUrl="https://service.nicepagesrv.com/form-attachment/v1/form-upload-url"},1117:function(t,e,n){"use strict";var i=n(31),ProductBadge;t.exports.update=function update(t){t&&t.length||(t=i(".u-product-badge[data-product-created]")),t.each((function(){var t=i(this),e=t.attr("data-product-created"),n,o;Date.now()-e<=2592e6&&t.removeClass("u-hidden-block")}))}},1118:function(t,e,n){"use strict";t.exports={options:{usePureJavaScript:false}}},1119:function(t,e,n){"use strict";function i(){this.$cart=$(".u-shopping-cart-icon").parent('.u-shopping-cart[href^="#"]')}var o=n(13940);t.exports=i;var cart=null;i.getCart=function(){return cart||(cart=new i),cart},i.prototype.init=function init(data){var t=this.getProducts(),products=data.products,e=data.categories;if(t&&products&&products.length){var n=[];t.forEach(function(product){var index=products.findIndex((function(t){return product.id===t.id}));if(-1!==index){var t=products[index];t.quantity=product.quantity||1,t.categoriesData||(t.categoriesData=this.getCategoriesData(t.categories,e)),n.push(t)}}.bind(this)),this.addProducts(n)}this.update()},i.prototype.getCategoriesData=function t(productCategories,e){var n=[],i=(document.body.getAttribute("data-path-to-root")||"./")+"products/products.html#/1///";return(productCategories||[]).forEach((function(id){var t=e.find((function(t){return t.id===id}));t&&n.push({link:i+t.id,title:t.title})})),n.length||n.push({link:i,title:"Uncategorized"}),n},i.prototype.clear=function t(){o.remove(),this.update()},i.prototype.update=function update(){this.$cart.length&&this.$cart.find(".u-shopping-cart-count").text(this.count())},i.prototype.count=function t(){var products=this.getProducts();return products?products.reduce((function(t,product){return t+product.quantity}),0):0},i.prototype.addProduct=function addProduct(product){var products=this.getProducts()||[],t=product.name,e=products.filter((function(el){return el.name===t}))[0];e?e.quantity+=1:products.push(product),this.addProducts(products),this.update()},i.prototype.addProducts=function addProduct(products){o.add(JSON.stringify(products))},i.prototype.getProducts=function t(){var storage=o.get();return storage?JSON.parse(storage):null},i.prototype.removeProductById=function t(id){var products,e=(this.getProducts()||[]).filter((function(product){return product.id!==id}));e.length?this.addProducts(e):this.clear(),this.update()},window.PaymentCart=i},13856:function(t,e,n){"use strict";n(13857),n(13951)},13857:function(t,e,n){"use strict";n(13858)},13858:function(t,e,n){"use strict";n(13859),n(13860),n(606),n(13861),n(13862),n(13864),n(13865),n(13866),n(13867),n(1079),n(1095),n(13868),n(13876),n(13877),n(13879),n(13881),n(13882),n(13883),n(13884),n(339),n(13885),n(13894),n(13895),n(13897),n(13898),n(13900),n(13904),n(13905),n(13907),n(13908),n(13909),n(13910),n(1117),n(13911),n(13912),n(13917),n(13918),n(13919),n(13920),n(13921),n(13923),n(13924),n(13927),n(13928),n(13929),n(13931),n(13933),n(13934),n(13943),n(13944),n(13945)},13859:function(t,e,n){"use strict";function i(){if(window&&document&&"complete"!==document.readyState){var t=document.body;if(t&&t.classList&&"function"==typeof t.classList.add&&"function"==typeof t.classList.remove&&"function"==typeof t.appendChild&&"function"==typeof document.createElement&&"function"==typeof window.addEventListener){var e="u-disable-duration";t.classList.add(e);var styleNode=document.createElement("style");styleNode.innerHTML=".u-disable-duration * {transition-duration: 0s !important;}",t.appendChild(styleNode),window.addEventListener("load",(function(){t.classList.remove(e)}))}}}i()},13860:function(t,e,n){"use strict";"CSS"in window||(window.CSS={}),"supports"in window.CSS||("use strict",window.CSS._cacheSupports={},window.CSS.supports=function(t,e){function n(t,e){var style=document.createElement("div").style;if(void 0===e){var n=function(t,e){var n=t.split(e);if(n.length>1)return n.map((function(t,index,e){return index%2==0?t+e[index+1]:""})).filter(Boolean)},i=n(t,/([)])\s*or\s*([(])/gi);if(i)return i.some((function(t){return window.CSS.supports(t)}));var o=n(t,/([)])\s*and\s*([(])/gi);if(o)return o.every((function(t){return window.CSS.supports(t)}));style.cssText=t.replace("(","").replace(/[)]$/,"")}else style.cssText=t+":"+e;return!!style.length}var i=[t,e].toString();return i in window.CSS._cacheSupports?window.CSS._cacheSupports[i]:window.CSS._cacheSupports[i]=n(t,e)})},13861:function(t,e,n){"use strict";function i(t){this.prevMode="",this.resizeTimeout=50,this.sheet={XS:340,SM:540,MD:720,LG:940,XL:1140,XXL:1320},this.mediaMax={XS:575,SM:767,MD:991,LG:1199},this.modes=["XL","LG","MD","SM","XS"],this.defaultMode="XL",document.body.classList.contains("u-xxl-mode")&&(this.mediaMax.XXL=1399,this.defaultMode="XXL",this.modes.splice(0,0,"XXL")),this._handlers=[],this.modes.forEach((function(t){var e=document.body.style.getPropertyValue("--theme-sheet-width-"+t.toLowerCase());e=parseFloat(e),Number.isFinite(e)&&(this.sheet[t]=e)}),this),this.init(t||[])}var ResponsiveMenu=n(1096),o=n(31);Object.defineProperty(i.prototype,"mode",{get:function(){var t=(document.documentElement||document.body).clientWidth||window.innerWidth;for(var e in this.scrolbar&&(document.documentElement.setAttribute("style","overflow-y:hidden"),t=(document.documentElement||document.body).clientWidth||window.innerWidth,document.documentElement.removeAttribute("style")),this.mediaMax)if(this.mediaMax.hasOwnProperty(e)&&t<=this.mediaMax[e])return e;return this.defaultMode}}),i.prototype.init=function init(t){o(function(){this.update(true),this.scrolbar=!!(document.body&&document.body.clientWidth!==document.body.scrollWidth)}.bind(this)),o(window).on("resize",function(){this.update(true)}.bind(this)),t.forEach((function(t){this._handlers.push(new t(this))}),this);var e=new CustomEvent("np.responsive.init",{detail:{prevMode:this.prevMode,mode:this.mode}});document.dispatchEvent(e),this.update()},i.prototype.update=function update(t){var e=function(){var t=this.mode;if(t!==this.prevMode||this.getContentWidth()<this.sheet[t]){this._handlers.forEach((function(t){"function"==typeof t.onResponsiveBefore&&t.onResponsiveBefore()})),this.responsiveClass(o("html")),this._handlers.forEach((function(t){"function"==typeof t.onResponsiveAfter&&t.onResponsiveAfter()}));var e=new CustomEvent("np.responsive.changed",{detail:{prevMode:this.prevMode,mode:t}});document.dispatchEvent(e),this.prevMode=t}this._handlers.forEach((function(t){"function"==typeof t.onResponsiveResize&&t.onResponsiveResize()}))}.bind(this);t?(clearTimeout(this._timeoutId),this._timeoutId=setTimeout(e,this.resizeTimeout)):e()},i.prototype.responsiveClass=function t(e){var removeList=Object.keys(this.sheet).map((function(t){return"u-responsive-"+t.toLowerCase()})).join(" ");e.removeClass(removeList),e.addClass("u-responsive-"+this.mode.toLowerCase())},i.prototype.getContentWidth=function(){return o(".u-body section:first").parent().width()},o((function(){window._responsive=new i([ResponsiveMenu]),o(document).on("click","[data-href]:not(.u-back-to-top), [data-post-link]",(function(t){if(!t.isDefaultPrevented()){var e=o(this),url=e.attr("data-href")||e.attr("data-post-link"),n=e.attr("data-target")||"",i=window.location.href.split("/"),a=i[i.length-1],s=o(e).parents("body").find("header")&&o(e).parents("body").find("header").hasClass("u-sticky")||o(e).is(".u-icon"),u=url&&(url.startsWith("#")||url.indexOf("#")>-1&&url.indexOf(a.split("#")[0])>-1);if(s&&u&&window._npScrollAnchor){var l=url.split("#")[1]||"",c=o("#"+l);c.length&&(window._npScrollAnchor.scroll(c),window.location.hash="#"+l)}else if(n)window.open(url,n);else try{window.location.href=url}catch(t){console.warn("Incorrect url: "+url)}}}))}))},13862:function(t,e,n){"use strict";function i(){return{submit:function(t){t.preventDefault(),t.stopPropagation();var form=m(this);form.find('input[type="submit"]').prop("disabled",true);var url=form.attr("action"),e=form.attr("source"),n=form.attr("method")||"POST",i="";h(form),"email"!==e&&"customphp"!==e||"true"!==form.attr("redirect")||(i=form.attr("redirect-url")&&!m.isNumeric(form.attr("redirect-url"))?form.attr("redirect-url"):form.attr("redirect-address")),"email"!==e||m(form).find('input[name="npspec-referer"]').length||m(form).append('<input type="hidden" name="npspec-referer" value="'+window.location.href+'">');var o=document.location&&document.location.protocol,u;if(navigator.userAgent&&navigator.userAgent.match(/firefox|fxios/i)&&"file:"===o)FormMessage.showError(form,"The page is opened as a file on disk and sending emails is not supported.\nSending emails works only for pages opened from the domain.");else{var services=form.find('input[name="formServices"]'),l=Const.formActionUrl+"v2/form/process",c=url===l,f=form.find(".u-file-name[data-presigned-file-name]"),p=[];f.each((function(){p.push(m(this).attr("data-presigned-file-name"))})),services.length?s(form,{url:l,method:"POST",redirectAddress:i,uploadedFiles:p,showSuccess:c,withFormServices:true,success:function(){c||a(form,{url:url,method:n,redirectAddress:i})}}):a(form,{url:url,method:n,redirectAddress:i})}},click:function(t){t.preventDefault(),t.stopPropagation(),m(this).find(".u-form-send-success").hide(),m(this).find(".u-form-send-error").hide();var form=m(this).closest("form");if(o(form),!g.signatureValidation(form))return FormMessage.showError(form,"The Signature field is required"),void 0;if(!c(form))return FormMessage.showError(form,"The File field is required"),void 0;if(!f(form)){FormMessage.showError(form,"Unable to submit the contact form. Please accept the cookie consent for the correct recaptcha functioning.");var e=form.parents("body").find(".u-cookies-consent");return e.length&&e.addClass("show"),void 0}g.addSignatureFiles(form),form.find('input[type="submit"]').click()}}}function o(form){form.find(".u-form-checkbox-group").each((function(){var t=m(this),e=t.find("input"),n=e.length,i=n>0?e[0]:null,o;if(e.attr("required")||t.attr("data-required")){e.removeAttr("required"),t.attr("data-required","required");for(var a=false,s=0;s<n;s++)if(e[s].checked){a=true;break}var u=a?"":"At least one checkbox must be selected.";i.setCustomValidity(u)}}))}function a(form,t){if(/list-manage[1-9]?.com/i.test(t.url))return u(form,t.url),void 0;s(form,{url:t.url,method:t.method,redirectAddress:t.redirectAddress,success:l,showSuccess:true,withFormServices:"email"===form.attr("source")||"gsheets"===form.attr("source")})}function s(form,t){var e=function(){var e=new FormData(form[0]),n=t.uploadedFiles||[];n.length&&(e.append("uploadedFiles",JSON.stringify(n)),t.withFormServices&&e.delete(form.find('input[type="file"]').attr("name")||"")),m.ajax({type:t.method,url:t.url,data:e,dataType:"json",processData:false,contentType:false}).done((function(data,e){data&&(data.success||data.ok)||!data&&"success"===e?(t.showSuccess&&FormMessage.showSuccess(form),t.redirectAddress?setTimeout((function(){window.location.replace(t.redirectAddress)}),2e3):t.success(form)):(data=data||{},FormMessage.showError(form,data.error,data.errorId,data.email))})).fail((function(){FormMessage.showError(form)}))};void 0!==window.recaptchaObject?window.recaptchaObject.executeContact(e):e()}function u(form,url){var t=form.find("input[name=name]").val(),email=form.find("input[name=email]").val(),data={Email:email,EMAIL:email};t&&(data.Name=t,data.FNAME=t);var e=form.find("input, textarea");m.each(e,(function(index,t){var e=m(t).attr("name"),n=m(t).val();e&&n&&(data[e.toUpperCase()]=n)}));var n=(url=url.replace("/post?","/post-json?")+"&c=?").indexOf("u=")+2;n=url.substring(n,url.indexOf("&",n));var i=url.indexOf("id=")+3;i=url.substring(i,url.indexOf("&",i)),data["b_"+n+"_"+i]="",m.ajax({url:url,data:data,dataType:"jsonp"}).done((function(t){var e;"success"===t.result||/already/.test(t.msg)?(FormMessage.showSuccess(form),l(form)):FormMessage.showError(form,t.msg)})).fail((function(){FormMessage.showError(form)}))}function l(form){var dialog=new Dialog(form);setTimeout((function(){dialog.close()}),2e3)}function c(form){var t=form.find('input[type="file"][required]');return!t.length||t.toArray().every((function(input){return input.files.length}))}function f(form){var t=form.hasClass("u-form-custom-backend"),e=form.find('input[name="recaptchaResponse"]'),n=form.parents("body").find(".u-cookies-consent"),i=document.cookie&&document.cookie.indexOf("u-gdpr-cookie=true")>-1;return!!t||!(n.length&&e.length&&!i)}function h(form){var t;form.find("input[type=tel]").each((function(){var t=m(this),e=t.parents(".iti").find(".iti__selected-flag").attr("title")||"";t.val(e+" "+t.val())}))}function p(form){var services;if(form.find('input[name="formServices"]').length){var t=Const.formActionUrl+"v2/form/process",e=form.attr("action")===t;s(form,{url:t,method:"POST",redirectAddress:"",showSuccess:e,success:function(){},withFormServices:true})}}var m=n(31),Dialog=n(337),g=n(13863),FormMessage=n(4087),Const=n(1116);m((function(){var form=new i;window.serviceRequest=p,m("form.u-form-vertical:not(.u-form-custom-backend), form.u-form-horizontal:not(.u-form-custom-backend)").submit(form.submit),m(".u-form .u-btn-submit").click(form.click)})),window.MailChimpForm=i},13863:function(t,e,n){"use strict";function i(t){var e=JSON.parse(t.getAttribute("data-canvas-default-options")||"{}");a(t,e)}function o(t){var e,n=t.clone().get(0),i=JSON.parse(n.getAttribute("data-canvas-default-options")||"{}");return a(n,i),n.toDataURL()}function a(t,e){var n=t.getContext("2d");n.clearRect(0,0,e.width,e.height),n.lineWidth=e.lineWidth,n.strokeStyle=e.strokeStyle,n.fillStyle=e.fillStyle,n.fillRect(0,0,e.width,e.height),n.beginPath(),n.moveTo(e.signatureLine.startX,e.signatureLine.startY),n.lineTo(e.signatureLine.endX,e.signatureLine.endY),n.stroke()}function s(t,fileName){for(var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),o=i.length,a=new Uint8Array(o);o--;)a[o]=i.charCodeAt(o);var s=new Blob([a],{type:n});return new File([s],fileName)}var u=t.exports={};u.signatureValidation=function t(form){var e=form.find("canvas"),n,data;return!e.length||(!e.attr("data-required")||o(e)!==e.get(0).toDataURL())},u.addSignatureFiles=function t(form){form.find(".u-form-signature canvas").each((function(){var t=$(this).get(0),e,n=s(t.toDataURL(),"signature.png"),o=form.find(".u-form-signature-file");o.length&&o.remove();var file=$('<input class="u-form-signature-file" style="display:none" type="file" name="file">');form.append(file);var a=new DataTransfer;a.items.add(n),file[0].files=a.files,i(t)}))}},13864:function(t,e,n){"use strict";var i=n(801).evaluate,o=n(802);$((function(){function t(t){var form;$(t&&t.target).closest("form").each((function(index,form){var t=new o(form).getScope();$(form).find("[data-expression]").each((function(){var e=$(this),n=e.closest(".u-form-calc").find(".u-calc-input");try{var o=e.attr("data-expression"),a=i(o,t);e.text(a),n.val(a)}catch(t){e.text(0),n.val(0)}}))}))}$("body").on("input","input[type=number][name]",t),$("body").on("change","input[type=range][name], input[type=radio][name], input[type=checkbox][name], select[name]",t)}))},13865:function(t,e,n){"use strict";function i(){$(".u-form input[type=file]").change((function(){var form=$(this).closest(".u-form");l(form),c(form)}))}function o(){$(".u-form .u-upload-button").click((function(t){t.stopPropagation(),t.preventDefault(),$(this).closest(".u-form").find('input[type="file"]').click()}))}function a(){$(".u-form").on("click",".u-file-remove",(function(t){t.stopPropagation(),t.preventDefault();var e=$(this),form=e.closest(".u-form"),n=e.closest(".u-file-item"),i=parseFloat(n.attr("data-i"));Number.isFinite(i)&&m(form,i)}))}function s(){$(".u-form").on("reset",(function(){var form=$(this).closest(".u-form"),input=form.find('input[type="file"]').get(0);input&&(input.files=(new DataTransfer).files,c(form))}))}function u(){$('.u-form input[type="file"]').each((function(){var t=$(this),e=t.attr("accept");e in FormFileAccept&&(e=FormFileAccept[e]),t.attr("accept",e)}))}function l(form){var input=form.find('input[type="file"]').get(0),t=[];if(input&&(Array.from(input.files).forEach((function(file,e){(file.size>v||e>=y)&&t.push({i:e,name:file.name})})),t.length)){m(form,t.map((function(t){return t.i})));var e='"{files}" file(s) size exceeds maximum limit.',n=t.map((function(t){return t.name})).join(", ");FormMessage.showError(form,e.replace(/\{files\}/,n))}}function c(form){form.find(".u-file-list .u-file-item:not(.u-file-template)").remove();var input=form.find('input[type="file"]').get(0),t=form.find(".u-file-template");if(input){var formServices=form.find('input[name="formServices"]').val()||"";if(formServices){var e=[];Array.from(input.files).forEach((function(file,n){e.push({fileName:file.name,fileSize:file.size,data:file.slice()});var i=t.clone();i.removeClass("u-file-template");var fileName=i.find(".u-file-name");fileName.text(file.name),fileName.append('<span class="u-file-error-tooltip-text">There was an error uploading the file, please try again!</span>');var o=i.find(".u-file-remove");o.hide(),o.before('<span class="'+o.attr("class").replace("remove","spinner")+'"/>'),i.attr("data-i",n),form.find(".u-file-list").append(i),g(form,true)})),e.length&&f(form,e,formServices)}else Array.from(input.files).forEach((function(file,e){var n=t.clone();n.removeClass("u-file-template"),n.find(".u-file-name").text(file.name),n.attr("data-i",e),form.find(".u-file-list").append(n)}))}}function f(form,t,formServices){fetch(Const.formUploadAttachmentsUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({files:t.map((function(file){return{fileName:file.fileName,fileSize:file.fileSize}})),formServiceTokens:[formServices]})}).then((function(t){return t.ok?t.json():Promise.reject(t)})).then((function(data){h(data,form,t)})).catch((function(){p(form)}))}function h(data,form,t){for(var links=data.links||[],e=[],n=[],i=0;i<links.length;i++){var link=links[i],o=t[i].data,fileName=t[i].fileName,a=link.fileName,s=link.error||"",u;if(s)u=Promise.reject();else{var l=link.preSignedLink,url=l.url,fields=l.fields,c=new FormData;Object.entries(fields).forEach((function(field){c.append(field[0],field[1])})),c.append("file",new Blob([o])),u=fetch(url,{method:"POST",body:c})}e.push(u),n.push({preSignedFileName:a,fileName:fileName,status:"",error:s})}Promise.allSettled(e).then((function(t){for(var e=0;e<t.length;e++){var i=t[e];"fulfilled"===i.status&&i.value&&204===i.value.status&&(n[e].status="uploaded")}p(form,n)}))}function p(form,t){var e=true;t?t.forEach(function(t){var fileName=t.fileName,n=t.status,i=t.error,o=t.preSignedFileName,a=form.find('.u-file-name:contains("'+fileName+'")');a.attr("data-presigned-file-name",o),a.parent().find(".u-file-spinner").hide(),a.parent().find(".u-file-remove").show(),"uploaded"!==n&&(a.addClass("u-file-error-tooltip"),a.find(".u-file-error-tooltip-text").text(i),e=false)}.bind(this)):(form.find(".u-file-list .u-file-item:not(.u-file-template) .u-file-name").addClass("u-file-error-tooltip"),form.find(".u-file-spinner").hide(),form.find(".u-file-remove").show(),e=false),e&&g(form,false)}function m(form,index){var input=form.find('input[type="file"]').get(0),t=new DataTransfer;input&&(Array.isArray(index)||(index=[index]),Array.from(input.files).forEach((function(file,e){index.includes(e)||t.items.add(file)})),input.files=t.files,form.find('.u-file-item[data-i="'+index+'"]').remove(),form.find(".u-file-list .u-file-item:not(.u-file-template)").each((function(index){$(this).attr("data-i",index)})),form.find(".u-file-error-tooltip").length||g(form,false))}function g(form,t){var e=form.find(".u-btn-submit");t?e.addClass("disabled"):e.removeClass("disabled")}var FormFileAccept=n(805),FormMessage=n(4087),Const=n(1116),v=10485760,y=10;$((function(){i(),o(),a(),s(),u()}))},13866:function(t,e,n){"use strict";function i(el){var video;el.find(".u-video .embed-responsive-item").each((function(){if(this.matches("video"))this.pause();else if(this.matches("iframe")){var t=this.getAttribute("src")||this.getAttribute("data-src");this.setAttribute("src",t.replace(/autoplay=1?/gi,""))}}))}function o(t){var video;(t.hasClass("u-video")?t:t.find(".u-video")).find(".embed-responsive-item[data-autoplay]").each((function(){a(s(this).closest(".u-video"))}))}function a(video){if(!video.closest(".u-dialog-block:not(.u-dialog-open)").length){var t=video.find("iframe"),e=t.attr("data-src")||t.attr("src"),n=video.find("video");if(e)video.addClass("active"),e+=(-1===e.indexOf("?")?"?":"&")+"autoplay=1",t.attr("src",e);else if(n.length){video.addClass("active");var i=n[0];i.paused?i.play():i.pause()}}}var s=n(31);s(document).on("click",".u-video-poster, .u-video video",(function(t){var e,video;t.preventDefault(),a(s(this).closest(".u-video"))})),s((function(){s(".u-video-background .u-video-poster, .u-video-background .u-video video").each((function(){a(s(this).closest(".u-video"))})),s(".u-video .embed-responsive-item:not(.lazyloading, .lazyloaded) + .u-video-poster").each((function(){var t=this.getAttribute("data-src");t&&(this.style.backgroundImage="url("+t+")"),o(s(this).closest(".u-video"))}))})),s(document).on("opened.np.dialog",".u-dialog-block",(function(t){o(s(t.currentTarget))})),s(document).on("closed.np.dialog",".u-dialog-block",(function(t){i(s(t.currentTarget))}))},13867:function(t,e,n){"use strict";function i(t){this._audioElement=t.querySelector("audio"),this._playButton=t.querySelector(".player-play-btn"),this._playIcon=this._playButton.querySelector(".player-icon-play"),this._pauseIcon=this._playButton.querySelector(".player-icon-pause"),this._progress=t.querySelector(".u-player-progress"),this._playerCurrentTime=t.querySelector(".player-time-current"),this._progressFilled=t.querySelector(".u-player-progress-filled"),this._progressFilled.style.flexBasis="auto",this._playerDuration=t.querySelector(".player-time-duration"),this._mousedown=false}var o=n(31);i.prototype.build=function t(){this.setTimes(),this.initPlayerEvents(),this.initProgressEvents()},i.prototype.initProgressEvents=function t(){this._progress.addEventListener("click",this.scrub.bind(this)),this._progress.addEventListener("mousemove",function(t){this._mousedown&&this.scrub(t)}.bind(this)),this._progress.addEventListener("mousedown",(function(){this._mousedown=true})),this._progress.addEventListener("mouseup",(function(){this._mousedown=false}))},i.prototype.initPlayerEvents=function t(){this._audioElement.addEventListener("timeupdate",function(){this.progressUpdate(),this.setTimes()}.bind(this)),this._audioElement.addEventListener("loadedmetadata",function(){this.setTimes()}.bind(this)),this._playButton.addEventListener("click",function(){if("false"===this._playButton.dataset.playing){var t=this._audioElement.play();void 0!==t&&t.then(function(){this._playButton.dataset.playing="true",this._playIcon.classList.add("u-hidden"),this._pauseIcon.classList.remove("u-hidden")}.bind(this)).catch((function(){}))}else"true"===this._playButton.dataset.playing&&(this._audioElement.pause(),this._playButton.dataset.playing="false",this._pauseIcon.classList.add("u-hidden"),this._playIcon.classList.remove("u-hidden"))}.bind(this)),this._audioElement.addEventListener("ended",function(){this._playButton.dataset.playing="false",this._pauseIcon.classList.add("u-hidden"),this._playIcon.classList.remove("u-hidden"),this._progressFilled.style.flexBasis="0%",this._audioElement.currentTime=0}.bind(this))},i.prototype.progressUpdate=function t(){var e=this._audioElement.currentTime/this._audioElement.duration*100;this._progressFilled.style.flexBasis=e+"%"},i.prototype.scrub=function t(e){this._audioElement.currentTime=e.offsetX/this._progress.offsetWidth*this._audioElement.duration},i.prototype.setTimes=function t(){if(this._audioElement.duration){var e=new Date(1e3*this._audioElement.currentTime);this._playerCurrentTime.textContent=e.toISOString().substring(14,19);var n=new Date(1e3*this._audioElement.duration);this._playerDuration.textContent=n.toISOString().substring(14,19)}},o(window).on("load",(function(){o(".u-audio").each((function(){var t;new i(o(this).get(0)).build()}))}))},13868:function(t,e,n){"use strict";var i=n(31),o=n(13869);i((function(){(new o).init()}))},13869:function(t,e,n){"use strict";function i(){this.galleries=null,this._pswpElement=null,this._listeners=[],this._onItemClick=this.onItemClick.bind(this)}var Utils=n(13870),o=n(13871),a=n(13872),s=n(13873),u=n(31),l=n(13874),c=n(13875);t.exports=i,Object.defineProperty(i.prototype,"pswpElement",{get:function(){if(this._pswpElement||(this._pswpElement=u(".pswp")[0]),!this._pswpElement){var t=u(a.PSWP_TEMPLATE).appendTo(".u-body");this._pswpElement=t[0]}return this._pswpElement}}),i.prototype.init=function(){this.initGallery(),this.subscribe(),this.checkHashUrl()},i.prototype.initGallery=function(){var t={};u(a.LIGHTBOX_SELECTOR).each((function(t){u(this).attr("data-pswp-uid",t+1)})),u(a.GALLERY_ITEM_SELECTOR).each((function(){var e=this.closest(a.LIGHTBOX_SELECTOR);if(e&&this!==e){var n=e.getAttribute("data-pswp-uid"),gallery=t[n];gallery||(gallery={dom:e,items:[]}),this.setAttribute("data-pswp-item-id",gallery.items.length),this.setAttribute("data-gallery-uid",n),gallery.items.push(this),t[n]=gallery}})),this.galleries=t},i.prototype.subscribe=function(){for(var t=Object.keys(this.galleries),e=0;e<t.length;e++)for(var id=t[e],gallery=this.galleries[id],n=0;n<gallery.items.length;n++){var i=gallery.items[n];u(i).on("click",this._onItemClick)}},i.prototype.onItemClick=function(t){var e=t.currentTarget;if(!e.matches("[data-href]")){t.preventDefault(),t.stopPropagation(),t.returnValue=false;var index=e.getAttribute("data-pswp-item-id"),n=e.getAttribute("data-gallery-uid"),gallery=this.galleries[n];gallery&&index>=0&&this.openOnClick(index,gallery)}},i.prototype.listen=function(t,e){this._listeners.push({event:t,func:e})},i.prototype.checkHashUrl=function(){var t=Utils.parseHash();t.pid&&t.gid&&this.openFromUrl(t.pid,this.galleries[t.gid])},i.prototype.openOnClick=function(index,gallery){var t=gallery.dom.getAttribute("data-pswp-uid");o.gallery(gallery,(function(items){var e=this.buildOptions(t,items);e.index=parseFloat(index),e.showPreviews=gallery.dom.classList.contains("u-product-control"),this.showPswp(items,e)}),this)},i.prototype.openFromUrl=function(index,gallery){var t=gallery.dom.getAttribute("data-pswp-uid");o.gallery(gallery,(function(items){var e=this.buildOptions(t,items);if(e.showAnimationDuration=0,e.index=parseFloat(index)-1,e.showPreviews=gallery.dom.classList.contains("u-product-control"),e.galleryPIDs)for(var n=0;n<items.length;n++)if(items[n].pid==index){e.index=n;break}this.showPswp(items,e)}),this)},i.prototype.showPswp=function(items,t){if(Number.isFinite(t.index)){var e=new l(this.pswpElement,c,items,t);s.init(e,t),this._listeners.forEach((function(t){e.listen(t.event,t.func)})),e.init()}},i.prototype.buildOptions=function(t,items){var e;return{galleryUID:t,getThumbBoundsFn:function(index){var t=window.pageYOffset||document.documentElement.scrollTop,rect=items[index].el.getBoundingClientRect();return{x:rect.left,y:rect.top+t,w:rect.width}},addCaptionHTMLFn:function(t,e,n){if(n)return e.children[0].innerHTML="<br><br>",true;if(!t.title)return e.children[0].innerHTML="",false;var html=t.title;return t.desc&&(html+="<br><small>"+t.desc+"</small>"),e.children[0].innerHTML=html,true},showHideOpacity:true,history:window.location===window.parent.location}},window.Lightbox=i},13870:function(t,e,n){"use strict";var Utils;(t.exports={}).parseHash=function t(){var hash=window.location.hash.substring(1),e={};if(hash.length<5)return e;for(var n=hash.split("&"),i=0;i<n.length;i++)if(n[i]){var o=n[i].split("=");o.length<2||(e[o[0]]=o[1])}return e.gid&&(e.gid=parseInt(e.gid,10)),e}},13871:function(t,e,n){"use strict";function i(t){return new Promise((function(e,n){if(t.is(".u-background-effect ~ .u-container-layout"))i(t.prev(".u-background-effect").find(".u-background-effect-image")).then((function(t){e(t)}),n);else if(t.is("img")){var a=t[0].naturalWidth||t.attr("data-image-width")||t.attr("imgwidth")||t.width(),s=t[0].naturalHeight||t.attr("data-image-height")||t.attr("imgheight")||t.height();e({el:t[0],src:t.attr("src"),msrc:t.attr("src"),w:parseFloat(a),h:parseFloat(s)})}else t.is(".u-video")?e({el:t[0],html:t.find(".u-background-video").get(0).outerHTML}):t.is(".u-gallery-item")?i(t.find(".u-back-slide")).then((function(t){e(t)}),n):t.is(".u-back-slide")?i(t.find(".u-back-image")).then((function(n){var i=t.siblings(".u-over-slide"),o=t.closest(".u-gallery").is(".u-layout-thumbnails");i.length&&!o&&(n.title=i.find(".u-gallery-heading").html(),n.desc=i.find(".u-gallery-text").html()),e(n)}),n):o(t).then((function(n){e({el:t[0],src:n.src,msrc:n.src,w:n.width,h:n.height})}),n)}))}function o(t){var e=t.css("background-image"),n=e.match(/url\(['"]?(.+?)['"]?\)/);return new Promise((function(t,i){if(n){var o=new Image;o.onload=t.bind(null,o),o.onerror=o.onabort=i,o.src=n[1]}else i(new Error("Invalid source: "+e))}))}var a=n(31),s;(t.exports={}).gallery=function gallery(gallery,t,e){e=e||null;var n=gallery.items.map((function(t){return i(t=a(t))}));Promise.all(n).then(t.bind(e),console.log)}},13872:function(t,e,n){"use strict";var i=t.exports={};i.LIGHTBOX_SELECTOR=".u-lightbox",i.GALLERY_ITEM_SELECTOR=[".u-image:not(.u-carousel-thumbnail-image):not(.u-background-effect-image)",".u-gallery-item",".u-background-effect ~ .u-container-layout"].join(", "),i.PSWP_TEMPLATE='<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>\n <button class="pswp__button pswp__button--share" title="Share"></button>\n <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>\n <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>\n <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>\n <div class="pswp__previews" data-previews="data-previews" style="display: none"></div> <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n</div>'},13873:function(t,e,n){"use strict";function i(gallery,selector){var t=gallery.scrollWrap,e=t.querySelector(selector),n;t.querySelector(".pswp__caption").style.display="none",e.style.display=""}function o(gallery,selector){var t=gallery.scrollWrap,e=t.querySelector(selector),n;t.querySelector(".pswp__caption").style.display="",e.style.display="none"}function add(gallery,selector){var t=gallery.scrollWrap,items=gallery.items,e=t.querySelector(selector);items.forEach((function(t){var preview=t.msrc,n=document.createElement("img");n.setAttribute("src",preview),n.addEventListener("click",(function(){gallery.goTo(items.indexOf(t))})),e.appendChild(n)}))}function remove(gallery,selector){var t,e;gallery.scrollWrap.querySelector(selector).innerHTML=""}function a(gallery,selector){var t=gallery.scrollWrap,e,preview=gallery.currItem.msrc,n,i;t.querySelector(selector).querySelectorAll("img").forEach((function(t){var e,n="active";t.getAttribute("src")===preview?(t.classList.add(n),t.scrollIntoView({behavior:"smooth"})):t.classList.remove(n)}))}var s;t.exports.init=function init(gallery,t){var e=false;gallery.listen("gettingData",(function(){e||(e=true,t.showPreviews?i(gallery,"[data-previews]"):o(gallery,"[data-previews]"),add(gallery,"[data-previews]"))})),gallery.listen("close",(function(){remove(gallery,"[data-previews]")})),gallery.listen("afterChange",(function(){a(gallery,"[data-previews]")}))}},13874:function(t,e,n){"use strict";
- /*! PhotoSwipe - v4.1.3 - 2019-01-08
- * http://photoswipe.com
- * Copyright (c) 2019 Dmitry Semenov; */var i,factory;i=this,factory=function(){var t=function(template,t,items,e){var n={features:null,bind:function(t,type,e,n){var i=(n?"remove":"add")+"EventListener";type=type.split(" ");for(var o=0;o<type.length;o++)type[o]&&t[i](type[o],e,false)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var el=document.createElement(e||"div");return t&&(el.className=t),el},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,type,e){n.bind(t,type,e,true)},removeClass:function(el,t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");el.className=el.className.replace(e," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(el,t){n.hasClass(el,t)||(el.className+=(el.className?" ":"")+t)},hasClass:function(el,t){return el.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(el.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(n.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(t,e,n){for(var i=t.length;i--;)if(t[i][n]===e)return i;return-1},extend:function(t,e,n){for(var i in e)if(e.hasOwnProperty(i)){if(n&&t.hasOwnProperty(i))continue;t[i]=e[i]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(n.features)return n.features;var t,e=n.createEl().style,i="",o={};if(o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!o.pointerEvent){var a=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var s=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);s&&s.length>0&&(s=parseInt(s[1],10))>=1&&s<8&&(o.isOldIOSPhone=true)}var u=a.match(/Android\s([0-9\.]*)/),l=u?u[1]:0;(l=parseFloat(l))>=1&&(l<4.4&&(o.isOldAndroid=true),o.androidVersion=l),o.isMobileOpera=/opera mini|opera mobi/i.test(a)}for(var c=["transform","perspective","animationName"],f=["","webkit","Moz","ms","O"],h,p,m=0;m<4;m++){i=f[m];for(var g=0;g<3;g++)h=c[g],p=i+(i?h.charAt(0).toUpperCase()+h.slice(1):h),!o[h]&&p in e&&(o[h]=p);i&&!o.raf&&(i=i.toLowerCase(),o.raf=window[i+"RequestAnimationFrame"],o.raf&&(o.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]))}if(!o.raf){var v=0;o.raf=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-v)),id=window.setTimeout((function(){t(e+n)}),n);return v=e+n,id},o.caf=function(id){clearTimeout(id)}}return o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,n.features=o,o}};n.detectFeatures(),n.features.oldIE&&(n.bind=function(t,type,e,n){type=type.split(" ");for(var i=(n?"detach":"attach")+"Event",o,a=function(){e.handleEvent.call(e)},s=0;s<type.length;s++)if(o=type[s])if("object"==typeof e&&e.handleEvent){if(n){if(!e["oldIE"+o])return false}else e["oldIE"+o]=a;t[i]("on"+o,e["oldIE"+o])}else t[i]("on"+o,e)});var i=this,o=25,a=3,s={allowPanToNext:true,spacing:.12,bgOpacity:1,mouseUsed:false,loop:true,pinchToClose:true,closeOnScroll:true,closeOnVerticalDrag:true,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:false,focus:true,escKey:true,arrowKeys:true,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(el){return"A"===el.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:true,scaleMode:"fit"};n.extend(s,e);var u=function(){return{x:0,y:0}},l,c,f,h,p,m,g={x:0,y:0},v={x:0,y:0},y={x:0,y:0},w,b,C,S={},x,A,_,T,E,I,k=0,M={},L={x:0,y:0},P,O,B=0,F,N,U,z,H,$,Y=true,W,V=[],G,j,K,Z,X,J,tt,nt={},rt=false,ot,at=function(t,e){n.extend(i,e.publicMethods),V.push(t)},st=function(index){var t=wn();return index>t-1?index-t:index<0?t+index:index},ut={},lt=function(t,e){return ut[t]||(ut[t]=[]),ut[t].push(e)},ct=function(t){var e=ut[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<e.length;o++)e[o].apply(i,n)}},dt=function(){return(new Date).getTime()},ft=function(t){Le=t,i.bg.style.opacity=t*s.bgOpacity},ht=function(t,e,n,o,a){(!rt||a&&a!==i.currItem)&&(o/=a?a.fitRatio:i.currItem.fitRatio),t[H]=_+e+"px, "+n+"px"+T+" scale("+o+")"},pt=function(t){xe&&(t&&(x>i.currItem.fitRatio?rt||(En(i.currItem,false,true),rt=true):rt&&(En(i.currItem),rt=false)),ht(xe,y.x,y.y,x))},mt=function(t){t.container&&ht(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},gt=function(t,e){e[H]=_+t+"px, 0px"+T},vt=function(t,e){if(!s.loop&&e){var n=h+(L.x*k-t)/L.x,i=Math.round(t-Se.x);(n<0&&i>0||n>=wn()-1&&i<0)&&(t=Se.x+i*s.mainScrollEndFriction)}Se.x=t,gt(t,p)},yt=function(t,e){var n=_e[t]-M[t];return v[t]+g[t]+n-n*(e/A)},wt=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},bt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Ct=null,St=function(){Ct&&(n.unbind(document,"mousemove",St),n.addClass(template,"pswp--has_mouse"),s.mouseUsed=true,ct("mouseUsed")),Ct=setTimeout((function(){Ct=null}),100)},xt=function(){n.bind(document,"keydown",i),tt.transform&&n.bind(i.scrollWrap,"click",i),s.mouseUsed||n.bind(document,"mousemove",St),n.bind(window,"resize scroll orientationchange",i),ct("bindEvents")},At=function(){n.unbind(window,"resize scroll orientationchange",i),n.unbind(window,"scroll",C.scroll),n.unbind(document,"keydown",i),n.unbind(document,"mousemove",St),tt.transform&&n.unbind(i.scrollWrap,"click",i),ue&&n.unbind(window,w,i),clearTimeout(ot),ct("unbindEvents")},_t=function(t,update){var e=xn(i.currItem,S,t);return update&&(Ce=e),e},Tt=function(t){return t||(t=i.currItem),t.initialZoomLevel},kt=function(t){return t||(t=i.currItem),t.w>0?s.maxSpreadZoom:1},Dt=function(t,e,n,o){return o===i.currItem.initialZoomLevel?(n[t]=i.currItem.initialPosition[t],true):(n[t]=yt(t,o),n[t]>e.min[t]?(n[t]=e.min[t],true):n[t]<e.max[t]&&(n[t]=e.max[t],true))},Mt=function(){if(H){var t=tt.perspective&&!W;return _="translate"+(t?"3d(":"("),T=tt.perspective?", 0px)":")",void 0}H="left",n.addClass(template,"pswp--ie"),gt=function(t,e){e.left=t+"px"},mt=function(t){var e=t.fitRatio>1?1:t.fitRatio,n=t.container.style,i=e*t.w,o=e*t.h;n.width=i+"px",n.height=o+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"},pt=function(){if(xe){var t=xe,e=i.currItem,n=e.fitRatio>1?1:e.fitRatio,o=n*e.w,a=n*e.h;t.width=o+"px",t.height=a+"px",t.left=y.x+"px",t.top=y.y+"px"}}},Lt=function(t){var e="";s.escKey&&27===t.keyCode?e="close":s.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=false,i[e]()))},Pt=function(t){t&&(fe||ce||Ae||ie)&&(t.preventDefault(),t.stopPropagation())},Ot=function(){i.setScrollOffset(0,n.getScrollY())},Bt={},Ft=0,Rt=function(t){Bt[t]&&(Bt[t].raf&&j(Bt[t].raf),Ft--,delete Bt[t])},Nt=function(t){Bt[t]&&Rt(t),Bt[t]||(Ft++,Bt[t]={})},Ut=function(){for(var t in Bt)Bt.hasOwnProperty(t)&&Rt(t)},qt=function(t,e,n,d,i,o,a){var s=dt(),u;Nt(t);var l=function(){if(Bt[t]){if((u=dt()-s)>=d)return Rt(t),o(n),a&&a(),void 0;o((n-e)*i(u/d)+e),Bt[t].raf=G(l)}};l()},zt={shout:ct,listen:lt,viewportSize:S,options:s,isMainScrollAnimating:function(){return Ae},getZoomLevel:function(){return x},getCurrentIndex:function(){return h},isDragging:function(){return ue},isZooming:function(){return ye},setScrollOffset:function(t,e){M.x=t,J=M.y=e,ct("updateScrollOffset",M)},applyZoomPan:function(t,e,n,i){y.x=e,y.y=n,x=t,pt(i)},init:function(){if(!l&&!c){var e;i.framework=n,i.template=template,i.bg=n.getChildByClass(template,"pswp__bg"),K=template.className,l=true,tt=n.detectFeatures(),G=tt.raf,j=tt.caf,H=tt.transform,X=tt.oldIE,i.scrollWrap=n.getChildByClass(template,"pswp__scroll-wrap"),i.container=n.getChildByClass(i.scrollWrap,"pswp__container"),p=i.container.style,i.itemHolders=P=[{el:i.container.children[0],wrap:0,index:-1},{el:i.container.children[1],wrap:0,index:-1},{el:i.container.children[2],wrap:0,index:-1}],P[0].el.style.display=P[2].el.style.display="none",Mt(),C={resize:i.updateSize,orientationchange:function(){clearTimeout(ot),ot=setTimeout((function(){S.x!==i.scrollWrap.clientWidth&&i.updateSize()}),500)},scroll:Ot,keydown:Lt,click:Pt};var o=tt.isOldIOSPhone||tt.isOldAndroid||tt.isMobileOpera,a;for(tt.animationName&&tt.transform&&!o||(s.showAnimationDuration=s.hideAnimationDuration=0),e=0;e<V.length;e++)i["init"+V[e]]();t&&(i.ui=new t(i,n)).init(),ct("firstUpdate"),h=h||s.index||0,(isNaN(h)||h<0||h>=wn())&&(h=0),i.currItem=yn(h),(tt.isOldIOSPhone||tt.isOldAndroid)&&(Y=false),template.setAttribute("aria-hidden","false"),s.modal&&(Y?template.style.position="fixed":(template.style.position="absolute",template.style.top=n.getScrollY()+"px")),void 0===J&&(ct("initialLayout"),J=Z=n.getScrollY());var u="pswp--open ";for(s.mainClass&&(u+=s.mainClass+" "),s.showHideOpacity&&(u+="pswp--animate_opacity "),u+=W?"pswp--touch":"pswp--notouch",u+=tt.animationName?" pswp--css_animation":"",u+=tt.svg?" pswp--svg":"",n.addClass(template,u),i.updateSize(),m=-1,B=null,e=0;e<3;e++)gt((e+m)*L.x,P[e].el.style);X||n.bind(i.scrollWrap,b,i),lt("initialZoomInEnd",(function(){i.setContent(P[0],h-1),i.setContent(P[2],h+1),P[0].el.style.display=P[2].el.style.display="block",s.focus&&template.focus(),xt()})),i.setContent(P[1],h),i.updateCurrItem(),ct("afterInit"),Y||(E=setInterval((function(){Ft||ue||ye||x!==i.currItem.initialZoomLevel||i.updateSize()}),1e3)),n.addClass(template,"pswp--visible")}},close:function(){l&&(l=false,c=true,ct("close"),At(),dn(i.currItem,null,true,i.destroy))},destroy:function(){ct("destroy"),cn&&clearTimeout(cn),template.setAttribute("aria-hidden","true"),template.className=K,E&&clearInterval(E),n.unbind(i.scrollWrap,b,i),n.unbind(window,"scroll",i),Re(),Ut(),ut=null},panTo:function(t,e,n){n||(t>Ce.min.x?t=Ce.min.x:t<Ce.max.x&&(t=Ce.max.x),e>Ce.min.y?e=Ce.min.y:e<Ce.max.y&&(e=Ce.max.y)),y.x=t,y.y=e,pt()},handleEvent:function(t){t=t||window.event,C[t.type]&&C[t.type](t)},goTo:function(index){var diff=(index=st(index))-h;B=diff,h=index,i.currItem=yn(h),k-=diff,vt(L.x*k),Ut(),Ae=false,i.updateCurrItem()},next:function(){i.goTo(h+1)},prev:function(){i.goTo(h-1)},updateCurrZoomItem:function(t){if(t&&ct("beforeChange",0),P[1].el.children.length){var e=P[1].el.children[0];xe=n.hasClass(e,"pswp__zoom-wrap")?e.style:null}else xe=null;Ce=i.currItem.bounds,A=x=i.currItem.initialZoomLevel,y.x=Ce.center.x,y.y=Ce.center.y,t&&ct("afterChange")},invalidateCurrItems:function(){I=true;for(var t=0;t<3;t++)P[t].item&&(P[t].item.needsUpdate=true)},updateCurrItem:function(t){if(0!==B){var e=Math.abs(B),n;if(!(t&&e<2)){i.currItem=yn(h),rt=false,ct("beforeChange",B),e>=3&&(m+=B+(B>0?-3:3),e=3);for(var o=0;o<e;o++)B>0?(n=P.shift(),P[2]=n,m++,gt((m+2)*L.x,n.el.style),i.setContent(n,h-e+o+1+1)):(n=P.pop(),P.unshift(n),m--,gt(m*L.x,n.el.style),i.setContent(n,h+e-o-1-1));if(xe&&1===Math.abs(B)){var a=yn(O);a.initialZoomLevel!==x&&(xn(a,S),En(a),mt(a))}B=0,i.updateCurrZoomItem(),O=h,ct("afterChange")}}},updateSize:function(t){if(!Y&&s.modal){var e=n.getScrollY();if(J!==e&&(template.style.top=e+"px",J=e),!t&&nt.x===window.innerWidth&&nt.y===window.innerHeight)return;nt.x=window.innerWidth,nt.y=window.innerHeight,template.style.height=nt.y+"px"}if(S.x=i.scrollWrap.clientWidth,S.y=i.scrollWrap.clientHeight,Ot(),L.x=S.x+Math.round(S.x*s.spacing),L.y=S.y,vt(L.x*k),ct("beforeResize"),void 0!==m){for(var o,a,u,l=0;l<3;l++)o=P[l],gt((l+m)*L.x,o.el.style),u=h+l-1,s.loop&&wn()>2&&(u=st(u)),(a=yn(u))&&(I||a.needsUpdate||!a.bounds)?(i.cleanSlide(a),i.setContent(o,u),1===l&&(i.currItem=a,i.updateCurrZoomItem(true)),a.needsUpdate=false):-1===o.index&&u>=0&&i.setContent(o,u),a&&a.container&&(xn(a,S),En(a),mt(a));I=false}A=x=i.currItem.initialZoomLevel,(Ce=i.currItem.bounds)&&(y.x=Ce.center.x,y.y=Ce.center.y,pt(true)),ct("resize")},zoomTo:function(t,e,i,o,a){e&&(A=x,_e.x=Math.abs(e.x)-y.x,_e.y=Math.abs(e.y)-y.y,wt(v,y));var s=_t(t,false),u={};Dt("x",s,u,t),Dt("y",s,u,t);var l=x,c=y.x,f=y.y;bt(u);var h=function(e){1===e?(x=t,y.x=u.x,y.y=u.y):(x=(t-l)*e+l,y.x=(u.x-c)*e+c,y.y=(u.y-f)*e+f),a&&a(e),pt(1===e)};i?qt("customZoomTo",0,1,i,o||n.easing.sine.inOut,h):h(1)}},Ht=30,$t=10,Yt,Wt,Vt={},Gt={},jt={},Kt={},Zt={},Xt=[],Jt={},Qt,te=[],ee={},ne,ie,re,oe=0,ae={x:0,y:0},se=0,ue,le,ce,fe,pe,ge,ve,ye,we,be,Ce,Se={x:0,y:0},xe,Ae,_e={x:0,y:0},Te={x:0,y:0},Ee,Ie,ke,Le,Pe,Oe=function(t,e){return t.x===e.x&&t.y===e.y},Be=function(t,e){return Math.abs(t.x-e.x)<o&&Math.abs(t.y-e.y)<o},Fe=function(t,e){return ee.x=Math.abs(t.x-e.x),ee.y=Math.abs(t.y-e.y),Math.sqrt(ee.x*ee.x+ee.y*ee.y)},Re=function(){pe&&(j(pe),pe=null)},Ne=function(){ue&&(pe=G(Ne),nn())},Ue=function(){return!("fit"===s.scaleMode&&x===i.currItem.initialZoomLevel)},qe=function(el,t){return!(!el||el===document)&&!(el.getAttribute("class")&&el.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(el)?el:qe(el.parentNode,t))},ze={},$e=function(t,e){return ze.prevent=!qe(t.target,s.isClickableElement),ct("preventDragEvent",t,e,ze),ze.prevent},Ye=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},We=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},Ve=function(t,e,n){if(t-Wt>50){var i=te.length>2?te.shift():{};i.x=e,i.y=n,te.push(i),Wt=t}},Ge=function(){var t=y.y-i.currItem.initialPosition.y;return 1-Math.abs(t/(S.y/2))},je={},Ke={},Ze=[],Xe,Je=function(t){for(;Ze.length>0;)Ze.pop();return $?(Xe=0,Xt.forEach((function(t){0===Xe?Ze[0]=t:1===Xe&&(Ze[1]=t),Xe++}))):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Ze[0]=Ye(t.touches[0],je),t.touches.length>1&&(Ze[1]=Ye(t.touches[1],Ke))):(je.x=t.pageX,je.y=t.pageY,je.id="",Ze[0]=je),Ze},Qe=function(t,e){var n,o=0,a=y[t]+e[t],u,l=e[t]>0,c=Se.x+e.x,f=Se.x-Jt.x,h,p;if(n=a>Ce.min[t]||a<Ce.max[t]?s.panEndFriction:1,a=y[t]+e[t]*n,(s.allowPanToNext||x===i.currItem.initialZoomLevel)&&(xe?"h"!==Ee||"x"!==t||ce||(l?(a>Ce.min[t]&&(n=s.panEndFriction,o=Ce.min[t]-a,u=Ce.min[t]-v[t]),(u<=0||f<0)&&wn()>1?(p=c,f<0&&c>Jt.x&&(p=Jt.x)):Ce.min.x!==Ce.max.x&&(h=a)):(a<Ce.max[t]&&(n=s.panEndFriction,o=a-Ce.max[t],u=v[t]-Ce.max[t]),(u<=0||f>0)&&wn()>1?(p=c,f>0&&c<Jt.x&&(p=Jt.x)):Ce.min.x!==Ce.max.x&&(h=a))):p=c,"x"===t))return void 0!==p&&(vt(p,true),ge=p!==Jt.x),Ce.min.x!==Ce.max.x&&(void 0!==h?y.x=h:ge||(y.x+=e.x*n)),void 0!==p;Ae||ge||x>i.currItem.fitRatio&&(y[t]+=e[t]*n)},tn=function(t){if(!("mousedown"===t.type&&t.button>0)){if(gn)return t.preventDefault(),void 0;if(!re||"mousedown"!==t.type){if($e(t,true)&&t.preventDefault(),ct("pointerDown"),$){var e=n.arraySearch(Xt,t.pointerId,"id");e<0&&(e=Xt.length),Xt[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var o=Je(t),a=o.length;ve=null,Ut(),ue&&1!==a||(ue=Ie=true,n.bind(window,w,i),ne=Pe=ke=ie=ge=fe=le=ce=false,Ee=null,ct("firstTouchStart",o),wt(v,y),g.x=g.y=0,wt(Kt,o[0]),wt(Zt,Kt),Jt.x=L.x*k,te=[{x:Kt.x,y:Kt.y}],Wt=Yt=dt(),_t(x,true),Re(),Ne()),!ye&&a>1&&!Ae&&!ge&&(A=x,ce=false,ye=le=true,g.y=g.x=0,wt(v,y),wt(Vt,o[0]),wt(Gt,o[1]),We(Vt,Gt,Te),_e.x=Math.abs(Te.x)-y.x,_e.y=Math.abs(Te.y)-y.y,we=be=Fe(Vt,Gt))}}},en=function(t){if(t.preventDefault(),$){var e=n.arraySearch(Xt,t.pointerId,"id");if(e>-1){var i=Xt[e];i.x=t.pageX,i.y=t.pageY}}if(ue){var o=Je(t);if(Ee||fe||ye)ve=o;else if(Se.x!==L.x*k)Ee="h";else{var diff=Math.abs(o[0].x-Kt.x)-Math.abs(o[0].y-Kt.y);Math.abs(diff)>=$t&&(Ee=diff>0?"h":"v",ve=o)}}},nn=function(){if(ve){var t=ve.length;if(0!==t)if(wt(Vt,ve[0]),jt.x=Vt.x-Kt.x,jt.y=Vt.y-Kt.y,ye&&t>1){if(Kt.x=Vt.x,Kt.y=Vt.y,!jt.x&&!jt.y&&Oe(ve[1],Gt))return;wt(Gt,ve[1]),ce||(ce=true,ct("zoomGestureStarted"));var e=Fe(Vt,Gt),n=un(e);n>i.currItem.initialZoomLevel+i.currItem.initialZoomLevel/15&&(Pe=true);var o=1,a=Tt(),u=kt();if(n<a)if(s.pinchToClose&&!Pe&&A<=i.currItem.initialZoomLevel){var l,c=1-(a-n)/(a/1.2);ft(c),ct("onPinchClose",c),ke=true}else(o=(a-n)/a)>1&&(o=1),n=a-o*(a/3);else n>u&&((o=(n-u)/(6*a))>1&&(o=1),n=u+o*a);o<0&&(o=0),we=e,We(Vt,Gt,ae),g.x+=ae.x-Te.x,g.y+=ae.y-Te.y,wt(Te,ae),y.x=yt("x",n),y.y=yt("y",n),ne=n>x,x=n,pt()}else{if(!Ee)return;if(Ie&&(Ie=false,Math.abs(jt.x)>=$t&&(jt.x-=ve[0].x-Zt.x),Math.abs(jt.y)>=$t&&(jt.y-=ve[0].y-Zt.y)),Kt.x=Vt.x,Kt.y=Vt.y,0===jt.x&&0===jt.y)return;if("v"===Ee&&s.closeOnVerticalDrag&&!Ue()){g.y+=jt.y,y.y+=jt.y;var f=Ge();return ie=true,ct("onVerticalDrag",f),ft(f),pt(),void 0}var h;Ve(dt(),Vt.x,Vt.y),fe=true,Ce=i.currItem.bounds,Qe("x",jt)||(Qe("y",jt),bt(y),pt())}}},rn=function(t){if(tt.isOldAndroid){if(re&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(re),re=setTimeout((function(){re=0}),600))}var e;if(ct("pointerUp"),$e(t,false)&&t.preventDefault(),$){var o=n.arraySearch(Xt,t.pointerId,"id");if(o>-1)if(e=Xt.splice(o,1)[0],navigator.msPointerEnabled){var a={4:"mouse",2:"touch",3:"pen"};e.type=a[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var u=Je(t),l,c=u.length;if("mouseup"===t.type&&(c=0),2===c)return ve=null,true;1===c&&wt(Zt,u[0]),0!==c||Ee||Ae||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),ct("touchRelease",t,e));var f=-1;if(0===c&&(ue=false,n.unbind(window,w,i),Re(),ye?f=0:-1!==se&&(f=dt()-se)),se=1===c?dt():-1,l=-1!==f&&f<150?"zoom":"swipe",ye&&c<2&&(ye=false,1===c&&(l="zoomPointerUp"),ct("zoomGestureEnded")),ve=null,fe||ce||Ae||ie)if(Ut(),Qt||(Qt=on()),Qt.calculateSwipeSpeed("x"),ie){var h;if(Ge()<s.verticalDragRange)i.close();else{var p=y.y,m=Le;qt("verticalDrag",0,1,300,n.easing.cubic.out,(function(t){y.y=(i.currItem.initialPosition.y-p)*t+p,ft((1-m)*t+m),pt()})),ct("onVerticalDrag",1)}}else{if((ge||Ae)&&0===c){var g;if(sn(l,Qt))return;l="zoomPointerUp"}if(!Ae)return"swipe"!==l?(ln(),void 0):(!ge&&x>i.currItem.fitRatio&&an(Qt),void 0)}},on=function(){var t,e,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){te.length>1?(t=dt()-Wt+50,e=te[te.length-2][n]):(t=dt()-Yt,e=Zt[n]),i.lastFlickOffset[n]=Kt[n]-e,i.lastFlickDist[n]=Math.abs(i.lastFlickOffset[n]),i.lastFlickDist[n]>20?i.lastFlickSpeed[n]=i.lastFlickOffset[n]/t:i.lastFlickSpeed[n]=0,Math.abs(i.lastFlickSpeed[n])<.1&&(i.lastFlickSpeed[n]=0),i.slowDownRatio[n]=.95,i.slowDownRatioReverse[n]=1-i.slowDownRatio[n],i.speedDecelerationRatio[n]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(y[t]>Ce.min[t]?i.backAnimDestination[t]=Ce.min[t]:y[t]<Ce.max[t]&&(i.backAnimDestination[t]=Ce.max[t]),void 0!==i.backAnimDestination[t]&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=true,qt("bounceZoomPan"+t,y[t],i.backAnimDestination[t],e||300,n.easing.sine.out,(function(e){y[t]=e,pt()})))))},calculateAnimOffset:function(t){i.backAnimStarted[t]||(i.speedDecelerationRatio[t]=i.speedDecelerationRatio[t]*(i.slowDownRatio[t]+i.slowDownRatioReverse[t]-i.slowDownRatioReverse[t]*i.timeDiff/10),i.speedDecelerationRatioAbs[t]=Math.abs(i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]),i.distanceOffset[t]=i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]*i.timeDiff,y[t]+=i.distanceOffset[t])},panAnimLoop:function(){if(Bt.zoomPan&&(Bt.zoomPan.raf=G(i.panAnimLoop),i.now=dt(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),pt(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05))return y.x=Math.round(y.x),y.y=Math.round(y.y),pt(),Rt("zoomPan"),void 0}};return i},an=function(t){if(t.calculateSwipeSpeed("y"),Ce=i.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),true;Nt("zoomPan"),t.lastNow=dt(),t.panAnimLoop()},sn=function(t,e){var o,a,u;if(Ae||(oe=h),"swipe"===t){var l=Kt.x-Zt.x,c=e.lastFlickDist.x<10;l>Ht&&(c||e.lastFlickOffset.x>20)?a=-1:l<-30&&(c||e.lastFlickOffset.x<-20)&&(a=1)}a&&((h+=a)<0?(h=s.loop?wn()-1:0,u=true):h>=wn()&&(h=s.loop?0:wn()-1,u=true),u&&!s.loop||(B+=a,k-=a,o=true));var f=L.x*k,p=Math.abs(f-Se.x),m;return o||f>Se.x==e.lastFlickSpeed.x>0?(m=Math.abs(e.lastFlickSpeed.x)>0?p/Math.abs(e.lastFlickSpeed.x):333,m=Math.min(m,400),m=Math.max(m,250)):m=333,oe===h&&(o=false),Ae=true,ct("mainScrollAnimStart"),qt("mainScroll",Se.x,f,m,n.easing.cubic.out,vt,(function(){Ut(),Ae=false,oe=-1,(o||oe!==h)&&i.updateCurrItem(),ct("mainScrollAnimComplete")})),o&&i.updateCurrItem(true),o},un=function(t){return 1/be*t*A},ln=function(){var t=x,e=Tt(),o=kt();x<e?t=e:x>o&&(t=o);var a=1,s,u=Le;return ke&&!ne&&!Pe&&x<e?(i.close(),true):(ke&&(s=function(t){ft((1-u)*t+u)}),i.zoomTo(t,0,200,n.easing.cubic.out,s),true)};at("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,move,n,i){F=t+e,N=t+move,U=t+n,z=i?t+i:""};($=tt.pointerEvent)&&tt.touch&&(tt.touch=false),$?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):tt.touch?(t("touch","start","move","end","cancel"),W=true):t("mouse","down","move","up"),w=N+" "+U+" "+z,b=F,$&&!W&&(W=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),i.likelyTouchDevice=W,C[F]=tn,C[N]=en,C[U]=rn,z&&(C[z]=C[U]),tt.touch&&(b+=" mousedown",w+=" mousemove mouseup",C.mousedown=C[F],C.mousemove=C[N],C.mouseup=C[U]),W||(s.allowPanToNext=false)}}});var cn,dn=function(t,e,o,a){var u;cn&&clearTimeout(cn),gn=true,mn=true,t.initialLayout?(u=t.initialLayout,t.initialLayout=null):u=s.getThumbBoundsFn&&s.getThumbBoundsFn(h);var l=o?s.hideAnimationDuration:s.showAnimationDuration,c=function(){Rt("initialZoom"),o?(i.template.removeAttribute("style"),i.bg.removeAttribute("style")):(ft(1),e&&(e.style.display="block"),n.addClass(template,"pswp--animated-in"),ct("initialZoom"+(o?"OutEnd":"InEnd"))),a&&a(),gn=false},p,m,g;if(!l||!u||void 0===u.x)return ct("initialZoom"+(o?"Out":"In")),x=t.initialZoomLevel,wt(y,t.initialPosition),pt(),template.style.opacity=o?0:1,ft(1),l?setTimeout((function(){c()}),l):c(),void 0;m=f,g=!i.currItem.src||i.currItem.loadError||s.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(x=u.w/t.w,y.x=u.x,y.y=u.y-Z,i[g?"template":"bg"].style.opacity=.001,pt()),Nt("initialZoom"),o&&!m&&n.removeClass(template,"pswp--animated-in"),g&&(o?n[(m?"remove":"add")+"Class"](template,"pswp--animate_opacity"):setTimeout((function(){n.addClass(template,"pswp--animate_opacity")}),30)),void(cn=setTimeout((function(){if(ct("initialZoom"+(o?"Out":"In")),o){var e=u.w/t.w,i={x:y.x,y:y.y},a=x,s=Le,f=function(t){1===t?(x=e,y.x=u.x,y.y=u.y-J):(x=(e-a)*t+a,y.x=(u.x-i.x)*t+i.x,y.y=(u.y-J-i.y)*t+i.y),pt(),g?template.style.opacity=1-t:ft(s-t*s)};m?qt("initialZoom",0,1,l,n.easing.cubic.out,f,c):(f(1),cn=setTimeout(c,l+20))}else x=t.initialZoomLevel,wt(y,t.initialPosition),pt(),ft(1),g?template.style.opacity=1:ft(1),cn=setTimeout(c,l+20)}),o?25:90))},fn,hn={},pn=[],mn,gn,vn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:false,preload:[1,1],getNumItemsFn:function(){return fn.length}},yn,wn,bn,Cn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},Sn=function(t,e,n){var i=t.bounds;i.center.x=Math.round((hn.x-e)/2),i.center.y=Math.round((hn.y-n)/2)+t.vGap.top,i.max.x=e>hn.x?Math.round(hn.x-e):i.center.x,i.max.y=n>hn.y?Math.round(hn.y-n)+t.vGap.top:i.center.y,i.min.x=e>hn.x?0:i.center.x,i.min.y=n>hn.y?t.vGap.top:i.center.y},xn=function(t,e,n){if(t.src&&!t.loadError){var i=!n;if(i&&(t.vGap||(t.vGap={top:0,bottom:0}),ct("parseVerticalMargin",t)),hn.x=e.x,hn.y=e.y-t.vGap.top-t.vGap.bottom,i){var o=hn.x/t.w,a=hn.y/t.h;t.fitRatio=o<a?o:a;var u=s.scaleMode;"orig"===u?n=1:"fit"===u&&(n=t.fitRatio),n>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return Sn(t,t.w*n,t.h*n),i&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},t.initialPosition=t.bounds.center,t.bounds},An=function(index,t,e,n,o,a){t.loadError||n&&(t.imageAppended=true,En(t,n,t===i.currItem&&rt),e.appendChild(n),a&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},_n=function(t){t.loading=true,t.loaded=false;var e=t.img=n.createEl("pswp__img","img"),i=function(){t.loading=false,t.loaded=true,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=i,e.onerror=function(){t.loadError=true,i()},e.src=t.src,e},Tn=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=s.errorMsg.replace("%url%",t.src),true},En=function(t,e,n){if(t.src){e||(e=t.container.lastChild);var i=n?t.w:Math.round(t.w*t.fitRatio),o=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=i+"px",t.placeholder.style.height=o+"px"),e.style.width=i+"px",e.style.height=o+"px"}},In=function(){if(pn.length){for(var t,e=0;e<pn.length;e++)(t=pn[e]).holder.index===t.index&&An(t.index,t.item,t.baseDiv,t.img,false,t.clearPlaceholder);pn=[]}};at("Controller",{publicMethods:{lazyLoadItem:function(index){index=st(index);var t=yn(index);t&&(!t.loaded&&!t.loading||I)&&(ct("gettingData",index,t),t.src&&_n(t))},initController:function(){n.extend(s,vn,true),i.items=fn=items,yn=i.getItemAt,wn=s.getNumItemsFn,bn=s.loop,wn()<3&&(s.loop=false),lt("beforeChange",(function(diff){var t=s.preload,e=null===diff||diff>=0,n=Math.min(t[0],wn()),o=Math.min(t[1],wn()),a;for(a=1;a<=(e?o:n);a++)i.lazyLoadItem(h+a);for(a=1;a<=(e?n:o);a++)i.lazyLoadItem(h-a)})),lt("initialLayout",(function(){i.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(h)})),lt("mainScrollAnimComplete",In),lt("initialZoomInEnd",In),lt("destroy",(function(){for(var t,e=0;e<fn.length;e++)(t=fn[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=false);pn=null}))},getItemAt:function(index){return index>=0&&void 0!==fn[index]&&fn[index]},allowProgressiveImg:function(){return s.forceProgressiveLoading||!W||s.mouseUsed||screen.width>1200},setContent:function(t,index){s.loop&&(index=st(index));var e=i.getItemAt(t.index);e&&(e.container=null);var o=i.getItemAt(index),a;if(!o)return t.el.innerHTML="",void 0;ct("gettingData",index,o),t.index=index,t.item=o;var u=o.container=n.createEl("pswp__zoom-wrap");if(!o.src&&o.html&&(o.html.tagName?u.appendChild(o.html):u.innerHTML=o.html),Tn(o),xn(o,S),!o.src||o.loadError||o.loaded)o.src&&!o.loadError&&((a=n.createEl("pswp__img","img")).style.opacity=1,a.src=o.src,En(o,a),An(index,o,u,a,true));else{if(o.loadComplete=function(e){if(l){if(t&&t.index===index){if(Tn(e,true))return e.loadComplete=e.img=null,xn(e,S),mt(e),t.index===h&&i.updateCurrZoomItem(),void 0;e.imageAppended?!gn&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):tt.transform&&(Ae||gn)?pn.push({item:e,baseDiv:u,img:e.img,index:index,holder:t,clearPlaceholder:true}):An(index,e,u,e.img,Ae||gn,true)}e.loadComplete=null,e.img=null,ct("imageLoadComplete",index,e)}},n.features.transform){var c="pswp__img pswp__img--placeholder";c+=o.msrc?"":" pswp__img--placeholder--blank";var placeholder=n.createEl(c,o.msrc?"img":"");o.msrc&&(placeholder.src=o.msrc),En(o,placeholder),u.appendChild(placeholder),o.placeholder=placeholder}o.loading||_n(o),i.allowProgressiveImg()&&(!mn&&tt.transform?pn.push({item:o,baseDiv:u,img:o.img,index:index,holder:t}):An(index,o,u,o.img,true,true))}mn||index!==h?mt(o):(xe=u.style,dn(o,a||o.img)),t.el.innerHTML="",t.el.appendChild(u)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=false}}});var kn,Dn={},Mn=function(t,e,n){var i=document.createEvent("CustomEvent"),o={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};i.initCustomEvent("pswpTap",true,true,o),t.target.dispatchEvent(i)},Ln;at("Tap",{publicMethods:{initTap:function(){lt("firstTouchStart",i.onTapStart),lt("touchRelease",i.onTapRelease),lt("destroy",(function(){Dn={},kn=null}))},onTapStart:function(t){t.length>1&&(clearTimeout(kn),kn=null)},onTapRelease:function(t,e){if(e&&!fe&&!le&&!Ft){var i=e,o;if(kn&&(clearTimeout(kn),kn=null,Be(i,Dn)))return ct("doubleTap",i),void 0;if("mouse"===e.type)return Mn(t,e,"mouse"),void 0;if("BUTTON"===t.target.tagName.toUpperCase()||n.hasClass(t.target,"pswp__single-tap"))return Mn(t,e),void 0;wt(Dn,i),kn=setTimeout((function(){Mn(t,e),kn=null}),300)}}}}),at("DesktopZoom",{publicMethods:{initDesktopZoom:function(){X||(W?lt("mouseUsed",(function(){i.setupDesktopZoom()})):i.setupDesktopZoom(true))},setupDesktopZoom:function(t){Ln={};var events="wheel mousewheel DOMMouseScroll";lt("bindEvents",(function(){n.bind(template,events,i.handleMouseWheel)})),lt("unbindEvents",(function(){Ln&&n.unbind(template,events,i.handleMouseWheel)})),i.mouseZoomedIn=false;var e,o=function(){i.mouseZoomedIn&&(n.removeClass(template,"pswp--zoomed-in"),i.mouseZoomedIn=false),x<1?n.addClass(template,"pswp--zoom-allowed"):n.removeClass(template,"pswp--zoom-allowed"),a()},a=function(){e&&(n.removeClass(template,"pswp--dragging"),e=false)};lt("resize",o),lt("afterChange",o),lt("pointerDown",(function(){i.mouseZoomedIn&&(e=true,n.addClass(template,"pswp--dragging"))})),lt("pointerUp",a),t||o()},handleMouseWheel:function(t){if(x<=i.currItem.fitRatio)return s.modal&&(!s.closeOnScroll||Ft||ue?t.preventDefault():H&&Math.abs(t.deltaY)>2&&(f=true,i.close())),true;if(t.stopPropagation(),Ln.x=0,"deltaX"in t)1===t.deltaMode?(Ln.x=18*t.deltaX,Ln.y=18*t.deltaY):(Ln.x=t.deltaX,Ln.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(Ln.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Ln.y=-.16*t.wheelDeltaY:Ln.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;Ln.y=t.detail}_t(x,true);var e=y.x-Ln.x,n=y.y-Ln.y;(s.modal||e<=Ce.min.x&&e>=Ce.max.x&&n<=Ce.min.y&&n>=Ce.max.y)&&t.preventDefault(),i.panTo(e,n)},toggleDesktopZoom:function(t){t=t||{x:S.x/2+M.x,y:S.y/2+M.y};var e=s.getDoubleTapZoom(true,i.currItem),o=x===e;i.mouseZoomedIn=!o,i.zoomTo(o?i.currItem.initialZoomLevel:e,t,333),n[(o?"remove":"add")+"Class"](template,"pswp--zoomed-in")}}});var Pn={history:true,galleryUID:1},On,Bn,Fn,Rn,Nn,Un,qn,zn,Hn,$n,Yn,Wn,Vn=function(){return Yn.hash.substring(1)},Gn=function(){On&&clearTimeout(On),Fn&&clearTimeout(Fn)},jn=function(){var hash=Vn(),t={};if(hash.length<5)return t;var e,n=hash.split("&");for(e=0;e<n.length;e++)if(n[e]){var i=n[e].split("=");i.length<2||(t[i[0]]=i[1])}if(s.galleryPIDs){var o=t.pid;for(t.pid=0,e=0;e<fn.length;e++)if(fn[e].pid===o){t.pid=e;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},Kn=function(){if(Fn&&clearTimeout(Fn),Ft||ue)return Fn=setTimeout(Kn,500),void 0;Rn?clearTimeout(Bn):Rn=true;var t=h+1,e=yn(h);e.hasOwnProperty("pid")&&(t=e.pid);var n=qn+"&gid="+s.galleryUID+"&pid="+t;zn||-1===Yn.hash.indexOf(n)&&($n=true);var i=Yn.href.split("#")[0]+"#"+n;Wn?"#"+n!==window.location.hash&&history[zn?"replaceState":"pushState"]("",document.title,i):zn?Yn.replace(i):Yn.hash=n,zn=true,Bn=setTimeout((function(){Rn=false}),60)};at("History",{publicMethods:{initHistory:function(){if(n.extend(s,Pn,true),s.history){Yn=window.location,$n=false,Hn=false,zn=false,qn=Vn(),Wn="pushState"in history,qn.indexOf("gid=")>-1&&(qn=(qn=qn.split("&gid=")[0]).split("?gid=")[0]),lt("afterChange",i.updateURL),lt("unbindEvents",(function(){n.unbind(window,"hashchange",i.onHashChange)}));var t=function(){Un=true,Hn||($n?history.back():qn?Yn.hash=qn:Wn?history.pushState("",document.title,Yn.pathname+Yn.search):Yn.hash=""),Gn()};lt("unbindEvents",(function(){f&&t()})),lt("destroy",(function(){Un||t()})),lt("firstUpdate",(function(){h=jn().pid}));var index=qn.indexOf("pid=");index>-1&&"&"===(qn=qn.substring(0,index)).slice(-1)&&(qn=qn.slice(0,-1)),setTimeout((function(){l&&n.bind(window,"hashchange",i.onHashChange)}),40)}},onHashChange:function(){if(Vn()===qn)return Hn=true,i.close(),void 0;Rn||(Nn=true,i.goTo(jn().pid),Nn=false)},updateURL:function(){Gn(),Nn||(zn?On=setTimeout(Kn,800):Kn())}}}),n.extend(i,zt)};return t},void("function"==typeof define&&define.amd?define(factory):(true,t.exports=factory()))},13875:function(t,e,n){"use strict";
- /*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
- * http://photoswipe.com
- * Copyright (c) 2019 Dmitry Semenov; */var i,factory;i=this,factory=function(){var t;return function(t,e){var n=this,i=false,o=true,a,s,u,l,c,f,h,p=true,m,g,v,y,w,b,C,S,x={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,true):(e.children[0].innerHTML="",false)},closeEl:true,captionEl:true,fullscreenEl:true,zoomEl:true,shareEl:true,counterEl:true,arrowEl:true,preloaderEl:true,tapToClose:false,tapToToggleControls:true,clickToCloseNonZoomable:true,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:true}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A,_,T=function(t){if(A)return true;t=t||window.event,S.timeToIdle&&S.mouseUsed&&!g&&z();for(var n,i,o=(t.target||t.srcElement).getAttribute("class")||"",a,s=0;s<K.length;s++)(i=K[s]).onTap&&o.indexOf("pswp__"+i.name)>-1&&(i.onTap(),a=true);if(a){t.stopPropagation&&t.stopPropagation(),A=true;var u=e.features.isOldAndroid?600:30;_=setTimeout((function(){A=false}),u)}},E=function(){return!t.likelyTouchDevice||S.mouseUsed||screen.width>S.fitControlsWidth},I=function(el,t,add){e[(add?"add":"remove")+"Class"](el,"pswp__"+t)},k=function(){var t=1===S.getNumItemsFn();t!==C&&(I(s,"ui--one-slide",t),C=t)},M=function(){I(h,"share-modal--hidden",p)},L=function(){return(p=!p)?(e.removeClass(h,"pswp__share-modal--fade-in"),setTimeout((function(){p&&M()}),300)):(M(),setTimeout((function(){p||e.addClass(h,"pswp__share-modal--fade-in")}),30)),p||O(),false},P=function(e){var n=(e=e||window.event).target||e.srcElement;return t.shout("shareLinkClick",e,n),!!n.href&&(!!n.hasAttribute("download")||(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),p||L(),false))},O=function(){for(var t="",e,n,i,o,a,s=0;s<S.shareButtons.length;s++)e=S.shareButtons[s],i=S.getImageURLForShare(e),o=S.getPageURLForShare(e),a=S.getTextForShare(e),t+='<a href="'+(n=e.url.replace("{{url}}",encodeURIComponent(o)).replace("{{image_url}}",encodeURIComponent(i)).replace("{{raw_image_url}}",i).replace("{{text}}",encodeURIComponent(a)))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",S.parseShareButtonOut&&(t=S.parseShareButtonOut(e,t));h.children[0].innerHTML=t,h.children[0].onclick=P},B=function(t){for(var n=0;n<S.closeElClasses.length;n++)if(e.hasClass(t,"pswp__"+S.closeElClasses[n]))return true},F,N,U=0,z=function(){clearTimeout(N),U=0,g&&n.setIdle(false)},H=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(N),N=setTimeout((function(){n.setIdle(true)}),S.timeToIdleOutside))},$=function(){S.fullscreenEl&&!e.features.isOldAndroid&&(a||(a=n.getFullscreenAPI()),a?(e.bind(document,a.eventK,n.updateFullscreen),n.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs"))},Y=function(){S.preloaderEl&&(W(true),v("beforeChange",(function(){clearTimeout(b),b=setTimeout((function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&W(false):W(true)}),S.loadingIndicatorDelay)})),v("imageLoadComplete",(function(index,e){t.currItem===e&&W(true)})))},W=function(t){w!==t&&(I(y,"preloader--active",!t),w=t)},V=function(t){var n=t.vGap;if(E()){var i=S.barsSize;if(S.captionEl&&"auto"===i.bottom)if(l||((l=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),s.insertBefore(l,u),e.addClass(s,"pswp__ui--fit")),S.addCaptionHTMLFn(t,l,true)){var o=l.clientHeight;n.bottom=parseInt(o,10)||44}else n.bottom=i.top;else n.bottom="auto"===i.bottom?0:i.bottom;n.top=i.top}else n.top=n.bottom=0},G=function(){S.timeToIdle&&v("mouseUsed",(function(){e.bind(document,"mousemove",z),e.bind(document,"mouseout",H),F=setInterval((function(){2==++U&&n.setIdle(true)}),S.timeToIdle/2)}))},j=function(){var t;v("onVerticalDrag",(function(t){o&&t<.95?n.hideControls():!o&&t>=.95&&n.showControls()})),v("onPinchClose",(function(e){o&&e<.9?(n.hideControls(),t=true):t&&!o&&e>.9&&n.showControls()})),v("zoomGestureEnded",(function(){(t=false)&&!o&&n.showControls()}))},K=[{name:"caption",option:"captionEl",onInit:function(el){u=el}},{name:"share-modal",option:"shareEl",onInit:function(el){h=el},onTap:function(){L()}},{name:"button--share",option:"shareEl",onInit:function(el){f=el},onTap:function(){L()}},{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(el){c=el}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){a.isFullscreen()?a.exit():a.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(el){y=el}}],Z=function(){var t,n,i,o=function(o){if(o)for(var a=o.length,s=0;s<a;s++){t=o[s],n=t.className;for(var u=0;u<K.length;u++)i=K[u],n.indexOf("pswp__"+i.name)>-1&&(S[i.option]?(e.removeClass(t,"pswp__element--disabled"),i.onInit&&i.onInit(t)):e.addClass(t,"pswp__element--disabled"))}};o(s.children);var a=e.getChildByClass(s,"pswp__top-bar");a&&o(a.children)};n.init=function(){e.extend(t.options,x,true),S=t.options,s=e.getChildByClass(t.scrollWrap,"pswp__ui"),v=t.listen,j(),v("beforeChange",n.update),v("doubleTap",(function(e){var n=t.currItem.initialZoomLevel;t.getZoomLevel()!==n?t.zoomTo(n,e,333):t.zoomTo(S.getDoubleTapZoom(false,t.currItem),e,333)})),v("preventDragEvent",(function(t,e,n){var i=t.target||t.srcElement;i&&i.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(i.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=false)})),v("bindEvents",(function(){e.bind(s,"pswpTap click",T),e.bind(t.scrollWrap,"pswpTap",n.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",n.onMouseOver)})),v("unbindEvents",(function(){p||L(),F&&clearInterval(F),e.unbind(document,"mouseout",H),e.unbind(document,"mousemove",z),e.unbind(s,"pswpTap click",T),e.unbind(t.scrollWrap,"pswpTap",n.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",n.onMouseOver),a&&(e.unbind(document,a.eventK,n.updateFullscreen),a.isFullscreen()&&(S.hideAnimationDuration=0,a.exit()),a=null)})),v("destroy",(function(){S.captionEl&&(l&&s.removeChild(l),e.removeClass(u,"pswp__caption--empty")),h&&(h.children[0].onclick=null),e.removeClass(s,"pswp__ui--over-close"),e.addClass(s,"pswp__ui--hidden"),n.setIdle(false)})),S.showAnimationDuration||e.removeClass(s,"pswp__ui--hidden"),v("initialZoomIn",(function(){S.showAnimationDuration&&e.removeClass(s,"pswp__ui--hidden")})),v("initialZoomOut",(function(){e.addClass(s,"pswp__ui--hidden")})),v("parseVerticalMargin",V),Z(),S.shareEl&&f&&h&&(p=true),k(),G(),$(),Y()},n.setIdle=function(t){g=t,I(s,"ui--idle",t)},n.update=function(){o&&t.currItem?(n.updateIndexIndicator(),S.captionEl&&(S.addCaptionHTMLFn(t.currItem,u),I(u,"caption--empty",!t.currItem.title)),i=true):i=false,p||L(),k()},n.updateFullscreen=function(n){n&&setTimeout((function(){t.setScrollOffset(0,e.getScrollY())}),50),e[(a.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},n.updateIndexIndicator=function(){S.counterEl&&(c.innerHTML=t.getCurrentIndex()+1+S.indexIndicatorSep+S.getNumItemsFn())},n.onGlobalTap=function(i){var a=(i=i||window.event).target||i.srcElement;if(!A)if(i.detail&&"mouse"===i.detail.pointerType){if(B(a))return t.close(),void 0;e.hasClass(a,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?S.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(i.detail.releasePoint))}else if(S.tapToToggleControls&&(o?n.hideControls():n.showControls()),S.tapToClose&&(e.hasClass(a,"pswp__img")||B(a)))return t.close(),void 0},n.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;I(s,"ui--over-close",B(e))},n.hideControls=function(){e.addClass(s,"pswp__ui--hidden"),o=false},n.showControls=function(){o=true,i||n.update(),e.removeClass(s,"pswp__ui--hidden")},n.supportsFullscreen=function(){var d=document;return!!(d.exitFullscreen||d.mozCancelFullScreen||d.webkitExitFullscreen||d.msExitFullscreen)},n.getFullscreenAPI=function(){var e=document.documentElement,n,i="fullscreenchange";return e.requestFullscreen?n={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:e.mozRequestFullScreen?n={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:e.webkitRequestFullscreen?n={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:e.msRequestFullscreen&&(n={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),n&&(n.enter=function(){if(m=S.closeOnScroll,S.closeOnScroll=false,"webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},n.exit=function(){return S.closeOnScroll=m,document[this.exitK]()},n.isFullscreen=function(){return document[this.elementK]}),n}}},void("function"==typeof define&&define.amd?define(factory):(true,t.exports=factory()))},13876:function(t,e,n){"use strict";var i;n(31)(window.loadMapsContent)},13877:function(t,e,n){"use strict";n(13878);var i=n(31),Utils;n(4088).animationsEnabled()&&i(window).on("load",(function(){var t;if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent||navigator.vendor||window.opera)){var items=i(".u-parallax");if(items.length>0){items.each((function(){var t=i(this);t.css("background-attachment","fixed"),t.hasClass("u-shading")?(t.attr("data-bottom-top","background-position: 50% 0, 50% 0vh;"),t.attr("data-top-bottom","background-position: 50% 0, 50% -20vh")):(t.attr("data-bottom-top","background-position: 50% 0vh;"),t.attr("data-top-bottom","background-position: 50% -20vh"))}));var e={forceHeight:false};skrollr.init(e)}}}))},13878:function(t,e){var e=void 0,t=void 0;(function(){var e=void 0;
- /*!
- * skrollr core
- *
- * Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr
- *
- * Free to use under terms of MIT license
- */!function(e,n,i){"use strict";function o(t){if(c=n.documentElement,f=n.body,X(),Mt=this,Nt=(t=t||{}).constants||{},t.easing)for(var i in t.easing)nt[i]=t.easing[i];Jt=t.edgeStrategy||"set",Ot={beforerender:t.beforerender,render:t.render,keyframe:t.keyframe},(Bt=false!==t.forceHeight)&&(Rt=t.scale||1),Ut=t.mobileDeceleration||E,Gt=false!==t.smoothScrolling,jt=t.smoothScrollingDuration||k,Kt={targetTop:Mt.getScrollTop()},(Qt=(t.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})())?((Pt=n.getElementById(t.skrollrBody||I))&&mt(),rt(),At(c,[C,A],[S])):At(c,[C,x],[S]),Mt.refresh(),gt(e,"resize orientationchange",(function(){var t=c.clientWidth,e=c.clientHeight;e===Yt&&t===$t||(Yt=e,$t=t,Wt=true)}));var o=J();return!function t(){st(),ie=o(t)}(),Mt}var a={get:function(){return Mt},init:function(t){return Mt||new o(t)},VERSION:"0.6.30"},s=Object.prototype.hasOwnProperty,u=e.Math,l=e.getComputedStyle,c,f,h="touchstart",p="touchmove",m="touchcancel",g="touchend",v="skrollable",y="skrollable-before",w="skrollable-between",b="skrollable-after",C="skrollr",S="no-skrollr",x="skrollr-desktop",A="skrollr-mobile",_="linear",T=1e3,E=.004,I="skrollr-body",k=200,M="start",L="end",P="center",O="bottom",B="___skrollable_id",F=/^(?:input|textarea|button|select)$/i,N=/^\s+|\s+$/g,U=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,z=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,H=/^(@?[a-z\-]+)\[(\w+)\]$/,$=/-([a-z0-9_])/g,Y=function(t,e){return e.toUpperCase()},W=/[\-+]?[\d]*\.?[\d]+/g,V=/\{\?\}/g,G=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,j=/[a-z\-]+-gradient/g,K="",Z="",X=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(l){var style=l(f,null);for(var e in style)if(K=e.match(t)||+e==e&&style[e].match(t))break;if(!K)return K=Z="",void 0;"-"===(K=K[0]).slice(0,1)?(Z=K,K={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[K]):Z="-"+K.toLowerCase()+"-"}},J=function(){var t=e.requestAnimationFrame||e[K.toLowerCase()+"RequestAnimationFrame"],n=kt();return!Qt&&t||(t=function(t){var i=kt()-n,o=u.max(0,1e3/60-i);return e.setTimeout((function(){n=kt(),t()}),o)}),t},tt=function(){var t=e.cancelAnimationFrame||e[K.toLowerCase()+"CancelAnimationFrame"];return!Qt&&t||(t=function(t){return e.clearTimeout(t)}),t},nt={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-u.cos(t*u.PI)/2+.5},sqrt:function(t){return u.sqrt(t)},outCubic:function(t){return u.pow(t-1,3)+1},bounce:function(t){var e;if(t<=.5083)e=3;else if(t<=.8489)e=9;else if(t<=.96208)e=27;else{if(!(t<=.99981))return 1;e=91}return 1-u.abs(3*u.cos(t*e*1.028)/e)}};o.prototype.refresh=function(t){var e,o,a=false;for(t===i?(a=true,Lt=[],Xt=0,t=n.getElementsByTagName("*")):t.length===i&&(t=[t]),e=0,o=t.length;e<o;e++){var el=t[e],s=el,u=[],l=Gt,c=Jt,f=false;if(a&&B in el&&delete el.___skrollable_id,el.attributes){for(var h=0,p=el.attributes.length,m,g,id;h<p;h++){var y=el.attributes[h];if("data-anchor-target"!==y.name)if("data-smooth-scrolling"!==y.name)if("data-edge-strategy"!==y.name)if("data-emit-events"!==y.name){var w=y.name.match(U);if(null!==w){var b={props:y.value,element:el,eventType:y.name.replace($,Y)};u.push(b);var C=w[1];C&&(b.constant=C.substr(1));var S=w[2];/p$/.test(S)?(b.isPercentage=true,b.offset=(0|S.slice(0,-1))/100):b.offset=0|S;var x=w[3],A=w[4]||x;x&&x!==M&&x!==L?(b.mode="relative",b.anchors=[x,A]):(b.mode="absolute",x===L?b.isEnd=true:b.isPercentage||(b.offset=b.offset*Rt))}}else f=true;else c=y.value;else l="off"!==y.value;else if(null===(s=n.querySelector(y.value)))throw'Unable to find anchor target "'+y.value+'"'}if(u.length)!a&&B in el?(id=el.___skrollable_id,m=Lt[id].styleAttr,g=Lt[id].classAttr):(id=el.___skrollable_id=Xt++,m=el.style.cssText,g=xt(el)),Lt[id]={element:el,styleAttr:m,classAttr:g,anchorTarget:s,keyFrames:u,smoothScrolling:l,edgeStrategy:c,emitEvents:f,lastFrameIndex:-1},At(el,[v],[])}}for(bt(),e=0,o=t.length;e<o;e++){var sk=Lt[t[e].___skrollable_id];sk!==i&&(ut(sk),ct(sk))}return Mt},o.prototype.relativeToAbsolute=function(t,e,n){var i=c.clientHeight,o=t.getBoundingClientRect(),a=o.top,s=o.bottom-o.top;return e===O?a-=i:e===P&&(a-=i/2),n===O?a+=s:n===P&&(a+=s/2),(a+=Mt.getScrollTop())+.5|0},o.prototype.animateTo=function(t,e){e=e||{};var n=kt(),o=Mt.getScrollTop(),a=e.duration===i?T:e.duration;return(Vt={startTop:o,topDiff:t-o,targetTop:t,duration:a,startTime:n,endTime:n+a,easing:nt[e.easing||_],done:e.done}).topDiff||(Vt.done&&Vt.done.call(Mt,false),Vt=i),Mt},o.prototype.stopAnimateTo=function(){Vt&&Vt.done&&Vt.done.call(Mt,true),Vt=i},o.prototype.isAnimatingTo=function(){return!!Vt},o.prototype.isMobile=function(){return Qt},o.prototype.setScrollTop=function(t,n){return Zt=true===n,Qt?te=u.min(u.max(t,0),Ft):e.scrollTo(0,t),Mt},o.prototype.getScrollTop=function(){return Qt?te:e.pageYOffset||c.scrollTop||f.scrollTop||0},o.prototype.getMaxScrollTop=function(){return Ft},o.prototype.on=function(t,e){return Ot[t]=e,Mt},o.prototype.off=function(t){return delete Ot[t],Mt},o.prototype.destroy=function(){var t;tt()(ie),yt(),At(c,[S],[C,x,A]);for(var e=0,n=Lt.length;e<n;e++)pt(Lt[e].element);c.style.overflow=f.style.overflow="",c.style.height=f.style.height="",Pt&&a.setStyle(Pt,"transform","none"),Mt=i,Pt=i,Ot=i,Bt=i,Ft=0,Rt=1,Nt=i,Ut=i,qt="down",zt=-1,$t=0,Yt=0,Wt=false,Vt=i,Gt=i,jt=i,Kt=i,Zt=i,Xt=0,Jt=i,Qt=false,te=0,ee=i};var rt=function(){var t,o,a,s,l,v,y,w,b,C,S,x;gt(c,[h,p,m,g].join(" "),(function(e){var c=e.changedTouches[0];for(s=e.target;3===s.nodeType;)s=s.parentNode;switch(l=c.clientY,v=c.clientX,C=e.timeStamp,F.test(s.tagName)||e.preventDefault(),e.type){case h:t&&t.blur(),Mt.stopAnimateTo(),t=s,o=y=l,a=v,b=C;break;case p:F.test(s.tagName)&&n.activeElement!==s&&e.preventDefault(),w=l-y,x=C-S,Mt.setScrollTop(te-w,true),y=l,S=C;break;default:var f=o-l,m=a-v,g;if(m*m+f*f<49){if(!F.test(t.tagName)){t.focus();var A=n.createEvent("MouseEvents");A.initMouseEvent("click",true,true,e.view,1,c.screenX,c.screenY,c.clientX,c.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),t.dispatchEvent(A)}return}t=i;var _=w/x;_=u.max(u.min(_,3),-3);var T=u.abs(_/Ut),E=_*T+.5*Ut*T*T,I=Mt.getScrollTop()-E,k=0;I>Ft?(k=(Ft-I)/E,I=Ft):I<0&&(k=-I/E,I=0),T*=1-k,Mt.animateTo(I+.5|0,{easing:"outCubic",duration:T})}})),e.scrollTo(0,0),c.style.overflow=f.style.overflow="hidden"},ot=function(){var t=c.clientHeight,e=Ct(),n,i,o,a,s,l,f,h,p,m,g;for(h=0,p=Lt.length;h<p;h++)for(i=(n=Lt[h]).element,o=n.anchorTarget,s=0,l=(a=n.keyFrames).length;s<l;s++)m=(f=a[s]).offset,g=e[f.constant]||0,f.frame=m,f.isPercentage&&(m*=t,f.frame=m),"relative"===f.mode&&(pt(i),f.frame=Mt.relativeToAbsolute(o,f.anchors[0],f.anchors[1])-m,pt(i,true)),f.frame+=g,Bt&&!f.isEnd&&f.frame>Ft&&(Ft=f.frame);for(Ft=u.max(Ft,St()),h=0,p=Lt.length;h<p;h++){for(s=0,l=(a=(n=Lt[h]).keyFrames).length;s<l;s++)g=e[(f=a[s]).constant]||0,f.isEnd&&(f.frame=Ft-f.offset+g);n.keyFrames.sort(Dt)}},at=function(t,e){for(var n=0,i=Lt.length;n<i;n++){var o=Lt[n],u=o.element,l=o.smoothScrolling?t:e,c=o.keyFrames,f=c.length,h=c[0],p=c[c.length-1],m=l<h.frame,g=l>p.frame,C=m?h:p,S=o.emitEvents,x=o.lastFrameIndex,A,_;if(m||g){if(m&&-1===o.edge||g&&1===o.edge)continue;switch(m?(At(u,[y],[b,w]),S&&x>-1&&(wt(u,h.eventType,qt),o.lastFrameIndex=-1)):(At(u,[b],[y,w]),S&&x<f&&(wt(u,p.eventType,qt),o.lastFrameIndex=f)),o.edge=m?-1:1,o.edgeStrategy){case"reset":pt(u);continue;case"ease":l=C.frame;break;default:var props=C.props;for(A in props)s.call(props,A)&&(_=ht(props[A].value),0===A.indexOf("@")?u.setAttribute(A.substr(1),_):a.setStyle(u,A,_));continue}}else 0!==o.edge&&(At(u,[v,w],[y,b]),o.edge=0);for(var T=0;T<f-1;T++)if(l>=c[T].frame&&l<=c[T+1].frame){var E=c[T],I=c[T+1];for(A in E.props)if(s.call(E.props,A)){var k=(l-E.frame)/(I.frame-E.frame);k=E.props[A].easing(k),_=ft(E.props[A].value,I.props[A].value,k),_=ht(_),0===A.indexOf("@")?u.setAttribute(A.substr(1),_):a.setStyle(u,A,_)}S&&x!==T&&(wt(u,"down"===qt?E.eventType:I.eventType,qt),o.lastFrameIndex=T);break}}},st=function(){Wt&&(Wt=false,bt());var t=Mt.getScrollTop(),e,n=kt(),o;if(Vt)n>=Vt.endTime?(t=Vt.targetTop,e=Vt.done,Vt=i):(o=Vt.easing((n-Vt.startTime)/Vt.duration),t=Vt.startTop+o*Vt.topDiff|0),Mt.setScrollTop(t,true);else if(!Zt){var s;Kt.targetTop-t&&(Kt={startTop:zt,topDiff:t-zt,targetTop:t,startTime:Ht,endTime:Ht+jt}),n<=Kt.endTime&&(o=nt.sqrt((n-Kt.startTime)/jt),t=Kt.startTop+o*Kt.topDiff|0)}if(Zt||zt!==t){Zt=false;var u={curTop:t,lastTop:zt,maxTop:Ft,direction:qt=t>zt?"down":t<zt?"up":qt},l;false!==(Ot.beforerender&&Ot.beforerender.call(Mt,u))&&(at(t,Mt.getScrollTop()),Qt&&Pt&&a.setStyle(Pt,"transform","translate(0, "+-te+"px) "+ee),zt=t,Ot.render&&Ot.render.call(Mt,u)),e&&e.call(Mt,false)}Ht=n},ut=function(t){for(var e=0,n=t.keyFrames.length;e<n;e++){for(var i=t.keyFrames[e],o,a,s,props={},u;null!==(u=z.exec(i.props));)s=u[1],a=u[2],null!==(o=s.match(H))?(s=o[1],o=o[2]):o=_,a=a.indexOf("!")?lt(a):[a.slice(1)],props[s]={value:a,easing:nt[o]};i.props=props}},lt=function(t){var e=[];return G.lastIndex=0,t=t.replace(G,(function(t){return t.replace(W,(function(t){return t/255*100+"%"}))})),Z&&(j.lastIndex=0,t=t.replace(j,(function(t){return Z+t}))),t=t.replace(W,(function(t){return e.push(+t),"{?}"})),e.unshift(t),e},ct=function(sk){var t={},e,n;for(e=0,n=sk.keyFrames.length;e<n;e++)dt(sk.keyFrames[e],t);for(t={},e=sk.keyFrames.length-1;e>=0;e--)dt(sk.keyFrames[e],t)},dt=function(t,e){var n;for(n in e)s.call(t.props,n)||(t.props[n]=e[n]);for(n in t.props)e[n]=t.props[n]},ft=function(t,e,n){var i,o=t.length;if(o!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var a=[t[0]];for(i=1;i<o;i++)a[i]=t[i]+(e[i]-t[i])*n;return a},ht=function(t){var e=1;return V.lastIndex=0,t[0].replace(V,(function(){return t[e++]}))},pt=function(t,e){for(var n,i,o=0,a=(t=[].concat(t)).length;o<a;o++)i=t[o],(n=Lt[i.___skrollable_id])&&(e?(i.style.cssText=n.dirtyStyleAttr,At(i,n.dirtyClassAttr)):(n.dirtyStyleAttr=i.style.cssText,n.dirtyClassAttr=xt(i),i.style.cssText=n.styleAttr,At(i,n.classAttr)))},mt=function(){ee="translateZ(0)",a.setStyle(Pt,"transform",ee);var t=l(Pt),e=t.getPropertyValue("transform"),n=t.getPropertyValue(Z+"transform"),i;e&&"none"!==e||n&&"none"!==n||(ee="")};a.setStyle=function(el,t,e){var style=el.style;if("zIndex"===(t=t.replace($,Y).replace("-","")))isNaN(e)?style[t]=e:style[t]=""+(0|e);else if("float"===t)style.styleFloat=style.cssFloat=e;else try{K&&(style[K+t.slice(0,1).toUpperCase()+t.slice(1)]=e),style[t]=e}catch(t){}};var gt=a.addEvent=function(t,names,n){for(var i=function(t){return(t=t||e.event).target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=false,t.defaultPrevented=true}),n.call(this,t)},o,a=0,s=(names=names.split(" ")).length;a<s;a++)o=names[a],t.addEventListener?t.addEventListener(o,n,false):t.attachEvent("on"+o,i),ne.push({element:t,name:o,listener:n})},vt=a.removeEvent=function(t,names,e){for(var n=0,i=(names=names.split(" ")).length;n<i;n++)t.removeEventListener?t.removeEventListener(names[n],e,false):t.detachEvent("on"+names[n],e)},yt=function(){for(var t,e=0,n=ne.length;e<n;e++)t=ne[e],vt(t.element,t.name,t.listener);ne=[]},wt=function(t,e,n){Ot.keyframe&&Ot.keyframe.call(Mt,t,e,n)},bt=function(){var t=Mt.getScrollTop();Ft=0,Bt&&!Qt&&(f.style.height=""),ot(),Bt&&!Qt&&(f.style.height=Ft+c.clientHeight+"px"),Qt?Mt.setScrollTop(u.min(Mt.getScrollTop(),Ft)):Mt.setScrollTop(t,true),Zt=true},Ct=function(){var t=c.clientHeight,copy={},e,n;for(e in Nt)"function"==typeof(n=Nt[e])?n=n.call(Mt):/p$/.test(n)&&(n=n.slice(0,-1)/100*t),copy[e]=n;return copy},St=function(){var t=0,e;return Pt&&(t=u.max(Pt.offsetHeight,Pt.scrollHeight)),(e=u.max(t,f.scrollHeight,f.offsetHeight,c.scrollHeight,c.offsetHeight,c.clientHeight))-c.clientHeight},xt=function(t){var n="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[n],n="baseVal"),t[n]},At=function(t,add,remove){var n="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[n],n="baseVal"),remove===i)return t[n]=add,void 0;for(var o=t[n],a=0,s=remove.length;a<s;a++)o=Tt(o).replace(Tt(remove[a])," ");o=_t(o);for(var u=0,l=add.length;u<l;u++)-1===Tt(o).indexOf(Tt(add[u]))&&(o+=" "+add[u]);t[n]=_t(o)},_t=function(t){return t.replace(N,"")},Tt=function(t){return" "+t+" "},kt=Date.now||function(){return+new Date},Dt=function(t,e){return t.frame-e.frame},Mt,Lt,Pt,Ot,Bt,Ft=0,Rt=1,Nt,Ut,qt="down",zt=-1,Ht=kt(),$t=0,Yt=0,Wt=false,Vt,Gt,jt,Kt,Zt,Xt=0,Jt,Qt=false,te=0,ee,ne=[],ie;"function"==typeof define&&define.amd?define([],(function(){return a})):void 0!==t&&t.exports?t.exports=a:e.skrollr=a}(window,document)}).call(window)},13879:function(t,e,n){"use strict";function i(t){this.initialize(t)}function o(t){if(!window.getComputedStyle)return null;var transform=getComputedStyle(t).transform,e=/matrix\(([^)]+)\)/.exec(transform);return!e||e.length<2||(e=e[1].split(",")).length<6?null:{a:parseFloat(e[0],10),b:parseFloat(e[1],10),c:parseFloat(e[2],10),d:parseFloat(e[3],10),tx:parseFloat(e[4],10),ty:parseFloat(e[5],10)}}function a(t,e,n,i){var a=o(e),s=0,u=0,l,c;return a&&!isNaN(a.tx)&&(s=a.tx),a&&!isNaN(a.ty)&&(u=a.ty),"horizontal"===n?(l=t.innerWidth(),c=s):(l=t.innerHeight(),c=u),Math.ceil(l*i+c)}function s(t){if(!t&&!t.element)return false;var e=t.element.getAttribute("data-animation-name");return!(!e||"slidein"!==e.toLowerCase())}function u(t){if(!s(t))return t;var e=t.offset;return"string"==typeof e&&(e=parseFloat(e),t.offset.indexOf("%")>-1&&(e/=100)),(t=$.extend({},t)).offset=function(){return a(this.context,this.element,this.axis,e)},t}n(13880),i.prototype.initialize=function t(e){this.waypoint||e&&e.element&&"function"==typeof e.handler&&(e=u(e),this.waypoint=new Waypoint(e))},i.prototype.destroy=function t(){this.waypoint&&(this.waypoint.destroy(),this.waypoint=null)},window.WaypointAdapter=i},13880:function(t,e){var e=void 0,t=void 0;(function(){var t=void 0;
- /*!
- Waypoints - 4.0.1
- Copyright © 2011-2016 Caleb Troughton
- Licensed under the MIT license.
- https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
- */!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=false,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=true,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var o=0,a=e.length;o<a;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),n)n[e].enabled=true;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:true,enabled:true,group:"default",horizontal:false,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=false,this.didResize=false,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,o.windowContext||(o.windowContext=true,o.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},o=window.Waypoint,a=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;t&&e&&!n&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=false}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=true,o.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=false}var e=this;this.adapter.on("scroll.waypoints",(function(){e.didScroll&&!o.isTouch||(e.didScroll=true,o.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o,a=i.newScroll>i.oldScroll?i.forward:i.backward;for(var s in this.waypoints[n]){var u=this.waypoints[n][s];if(null!==u.triggerPoint){var l=i.oldScroll<u.triggerPoint,c=i.newScroll>=u.triggerPoint,f,h;(l&&c||!l&&!c)&&(u.queueTrigger(a),t[u.group.id]=u.group)}}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;i<o;i++)t[i].destroy()},e.prototype.refresh=function(){var t=this.element==this.element.window,e=t?void 0:this.adapter.offset(),n={},i;for(var a in this.handleScroll(),i={horizontal:{contextOffset:t?0:e.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:e.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=i[a];for(var u in this.waypoints[a]){var l=this.waypoints[a][u],c=l.options.offset,f=l.triggerPoint,h=0,p=null==f,m,g,v,y,w;l.element!==l.element.window&&(h=l.adapter.offset()[s.offsetProp]),"function"==typeof c?c=c.apply(l):"string"==typeof c&&(c=parseFloat(c),l.options.offset.indexOf("%")>-1&&(c=Math.ceil(s.contextDimension*c/100))),m=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(h+m-c),g=f<s.oldScroll,v=l.triggerPoint>=s.oldScroll,w=!g&&!v,!p&&(y=g&&v)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!p&&w||p&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return o.requestAnimationFrame((function(){for(var t in n)n[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){a&&a(),e.refreshAll()},o.requestAnimationFrame=function(e){var n;(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function Group(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},i=window.Waypoint;Group.prototype.add=function(t){this.waypoints.push(t)},Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},Group.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var a=0,s=i.length;a<s;a+=1){var u=i[a];(u.options.continuous||a===i.length-1)&&u.trigger([n])}}this.clearTriggerQueues()},Group.prototype.next=function(e){this.waypoints.sort(t);var index=i.Adapter.inArray(e,this.waypoints),n;return index===this.waypoints.length-1?null:this.waypoints[index+1]},Group.prototype.previous=function(e){this.waypoints.sort(t);var index=i.Adapter.inArray(e,this.waypoints);return index?this.waypoints[index-1]:null},Group.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},Group.prototype.remove=function(t){var index=i.Adapter.inArray(t,this.waypoints);index>-1&&this.waypoints.splice(index,1)},Group.prototype.first=function(){return this.waypoints[0]},Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},Group.findOrCreate=function(t){return n[t.axis][t.name]||new Group(t)},i.Group=Group}(),function(){"use strict";function t(t){return t===t.window}function e(e){return t(e)?e:e.defaultView}function n(t){this.element=t,this.handlers={}}var i=window.Waypoint;n.prototype.innerHeight=function(){var e;return t(this.element)?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){var e;return t(this.element)?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(t,e){function n(t,e,n){for(var i=0,o=e.length-1;i<o;i++){var a=e[i];n&&n!==a||t.removeEventListener(a)}}var i=t.split("."),o=i[0],a=i[1],s=this.element;if(a&&this.handlers[a]&&o)n(s,this.handlers[a][o],e),this.handlers[a][o]=[];else if(o)for(var u in this.handlers)n(s,this.handlers[u][o]||[],e),this.handlers[u][o]=[];else if(a&&this.handlers[a]){for(var type in this.handlers[a])n(s,this.handlers[a][type],e);this.handlers[a]={}}},n.prototype.offset=function(){if(!this.element.ownerDocument)return null;var t=this.element.ownerDocument.documentElement,n=e(this.element.ownerDocument),rect={top:0,left:0};return this.element.getBoundingClientRect&&(rect=this.element.getBoundingClientRect()),{top:rect.top+n.pageYOffset-t.clientTop,left:rect.left+n.pageXOffset-t.clientLeft}},n.prototype.on=function(t,e){var n=t.split("."),i=n[0],o=n[1]||"__default",a=this.handlers[o]=this.handlers[o]||{},s;(a[i]=a[i]||[]).push(e),this.element.addEventListener(i,e)},n.prototype.outerHeight=function(e){var n=this.innerHeight(),i;return e&&!t(this.element)&&(i=window.getComputedStyle(this.element),n+=parseInt(i.marginTop,10),n+=parseInt(i.marginBottom,10)),n},n.prototype.outerWidth=function(e){var n=this.innerWidth(),i;return e&&!t(this.element)&&(i=window.getComputedStyle(this.element),n+=parseInt(i.marginLeft,10),n+=parseInt(i.marginRight,10)),n},n.prototype.scrollLeft=function(){var t=e(this.element);return t?t.pageXOffset:this.element.scrollLeft},n.prototype.scrollTop=function(){var t=e(this.element);return t?t.pageYOffset:this.element.scrollTop},n.extend=function(){function merge(t,e){if("object"==typeof t&&"object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}for(var t=Array.prototype.slice.call(arguments),e=1,n=t.length;e<n;e++)merge(t[0],t[e]);return t[0]},n.inArray=function(t,e,n){return null==e?-1:e.indexOf(t,n)},n.isEmptyObject=function(t){for(var e in t)return false;return true},i.adapters.push({name:"noframework",Adapter:n}),i.Adapter=n}()}).call(window)},13881:function(t,e,n){"use strict";var i=n(31);i(document).ready((function(){function t(t){return e()?0:n(t)}function e(){return a.hasClass("u-overlap")}function n(t){var rect;return t[0].getBoundingClientRect().height}var o=i("header.u-sticky");if(o.length&&!o.closest(".u-overlap").length&&!CSS.supports("position","sticky")&&!CSS.supports("position","-webkit-sticky")){o.css("width","100%");var update=function(){o.each((function(){var t=i(this),e=t.height(),n=t.data("additionalMargin")||0;if(e!==n){t.data("additionalMargin",e);var o=t;do{o=o.next()}while(o.length>0&&"none"===o.css("display"));o.css("margin-top",parseFloat(o.css("margin-top"))-n+e+"px")}}))};update(),i(window).load(update),i(window).resize(update)}var a=i(".u-body");a.hasClass("u-overlap-transparent")&&a.data("overlap-transparent",true),a.hasClass("u-overlap-contrast")&&a.data("overlap-contrast",true),i(window).scroll((function e(){i("header.u-sticky").each((function(){var e=i(this),n=e.nextAll(":visible:first");if(n.length){var o=n.offset().top,s=e.offset().top,u,l=s+t(e)>o,c;a.toggleClass("u-sticky-fixed",l),s>o?(a.addClass("u-sticky-scroll"),a.removeClass("u-overlap-transparent u-overlap-contrast")):(a.toggleClass("u-overlap-transparent",!!a.data("overlap-transparent")),a.toggleClass("u-overlap-contrast",!!a.data("overlap-contrast")),a.removeClass("u-sticky-scroll"))}}))}))}))},13882:function(t,e,n){"use strict";function i(t){function e(){c=[];var e=o("html").scrollTop();t.each((function(){var rect=this.getBoundingClientRect();c.push({height:rect.height,top:rect.top+e})}))}function n(index){for(var e=0,n=0;n<index;n++){var i,rect;if(t.eq(n).hasClass(f))e+=(c[n]||{}).height||0}return e}function i(){l.refresh()}function a(){clearTimeout(p),p=setTimeout((function(){for(var n=0;n<t.length;n++){var i;u(t.eq(n))}e(),l.refresh()}),25)}function s(t,e,n){if(!(t=o(t)).hasClass(f)){var i=o("<div></div>");i.addClass(h),i.css("height",e+"px"),t.after(i),t.addClass(f),t.css("top",n+"px")}}function u(t){(t=o(t)).nextAll("."+h).remove(),t.removeClass(f),t.css("top","")}var l={},c=[],f="u-sticky-fixed",h="u-sticky-placeholder",p=null;return l.init=function init(){o(window).on("scroll",i),o(window).on("resize",a),e()},l.destroy=function t(){o(window).off("scroll",i),o(window).off("resize",a)},l.refresh=function e(){var i=document.documentElement.scrollTop||document.body.scrollTop;t.each((function(t,el){var e=n(t);i+e>c[t].top?s(el,c[t].height,e):u(el)}))},l}var o=n(31);o(window).on("load",(function(){var t,sticky=i(o(".u-section-row.u-sticky"));sticky.init(),sticky.refresh()})),window._npStickyStack=i},13883:function(t,e,n){"use strict";var i=n(31);i((function(){i(".u-nav-container .u-nav-link").each((function(){window._npInitMenuLink(i(this))})),i(".u-nav-container-collapse .u-nav-link").each((function(){window._npInitMenuLink(i(this),true)}))})),window._npInitMenuLink=function t(e,n){var o=i("body"),a=/\/?#.*?$/,s=o.attr("data-home-page-name"),homePage=o.attr("data-home-page"),pageTitle=i("title").text().trim(),nav=e.closest(".u-menu"),u=nav.attr("data-submenu-level")||"on-click",l=nav.is(".u-menu-mega"),c=e.attr("href")||"",f=(e[0].href||"").replace(a,""),h=c.replace(a,""),p=s||pageTitle,m=e.text().trim(),hash=c.replace(/^[^#]+/,""),g=f.split(".").slice(0,-1).join("."),pageName=h.replace(".html",""),v=new RegExp(pageName+"_[\\s\\S]+?.html","gm"),y=hash&&"#"!==hash&&i(hash).length,w=h&&window.location.href.toString()===f&&!y,b=h&&window.location.href.toString()===g&&!y,C=h&&window.location.href.toString().search(v)>-1,S=h&&hash&&window.location.href.toString().search(h+hash)>-1,x,A,_;if(w||b||C||S||m&&p===m||!y&&homePage&&h===homePage){var T=e;l&&!n||(T=e.parents(".u-nav-item").children(".u-nav-link")),T.addClass("active"),"with-reload"===u&&n&&T.siblings(".u-nav-popup").addClass("open").css("max-height","none")}}},13884:function(t,e,n){"use strict";var i=n(31),o;("Microsoft Internet Explorer"===navigator.appName||!!(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/rv:11/))||void 0!==i.browser&&1===i.browser.msie)&&i((function(){i(".u-social-icons, .u-language").each((function(t,e){var n=i(e),size=n.css("height");n.find(".u-svg-link").css("width",size)}))}))},13885:function(t,e,n){"use strict";var Animation=n(13886),i=n(326);n(734),n(13890),window.uAnimation=new Animation(i.instance()).init()},13886:function(t,e,n){"use strict";function Animation(factory){this.factory=factory,this.animationElements=null,this.animationEvents=[],this._section=null,this._sliderNode=null,this._slideNumber=null,this._slideEvent=null,this._animationInfo=null,this._animation=null,this._subscribeQueue=[],this.status="loading",this._onDOMContentLoaded=this._onDOMContentLoaded.bind(this),this._onLoadingComplete=this._onLoadingComplete.bind(this)}function i(t){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;if(!e)return t(),void 0;e.apply(window,arguments)}function o(t){return"string"==typeof t.name&&-1!==m.indexOf(t.name.toLowerCase())}function a(t){return"string"==typeof t.direction&&-1!==g.indexOf(t.direction.toLowerCase())}function s(section,t){if(t&&t.length&&u())for(var e=0;e<t.length;e++)if(a(t[e])||o(t[e])){section.style.overflow="hidden";break}}function u(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent||navigator.vendor||window.opera)}var l=n(464),c=n(465),f=n(13887),h=n(13888),p=n(13889);Animation.utils=l,Animation.prototype.init=function init(){return"loading"!==document.readyState?(this._onDOMContentLoaded(),void 0):(document.addEventListener("DOMContentLoaded",this._onDOMContentLoaded),this)},Animation.prototype.start=function t(){var e=this._subscribeQueue;i((function(){e.forEach((function(el){el.event&&el.animation&&el.event.subscribe(el.animation)})),e.length=0}))},Animation.prototype.visitSection=function t(e){if(e.classList.contains("u-carousel"))return this.visitSlider(e),void 0;this._section=e,this._visitElementsInContentSlider(e),this._visitElementsNotInSlider(e),this._section=null},Animation.prototype._visitElementsInContentSlider=function(t){for(var e=t.querySelectorAll(".u-carousel"),n=0;n<e.length;n++)this.visitSlider(e[n])},Animation.prototype._visitElementsNotInSlider=function(t){for(var e=[],n=t.querySelectorAll("[data-animation-name]"),o=0;o<n.length;o++){var a=n[o];a.closest&&null===a.closest(".u-carousel")&&a.getAttribute("data-animation-name")&&(this.visitAnimatedElement(a),e.push(this._animationInfo),this._subscribeQueue.push({animation:this._animation,event:f}),i(this._animation.init.bind(this._animation)))}s(t,e)},Animation.prototype.visitSlider=function t(e){this._sliderNode=e;for(var n=e.querySelectorAll(".u-carousel-item"),i=0;i<n.length;i++)this._slideNumber=i,this.visitSlide(n[i])},Animation.prototype.visitSlide=function t(e){var n=e.querySelectorAll("[data-animation-name]"),i=[];this._slideEvent=new h(this._sliderNode,e,this._slideNumber);for(var o=0;o<n.length;o++)n[o].getAttribute("data-animation-name")&&(this.visitAnimatedElement(n[o]),i.push(this._animationInfo),this._animation.init(),this._slideEvent.animations.push(this._animation));this._slideEvent.init(),s(e,i)},Animation.prototype.visitAnimatedElement=function t(e){this._animationInfo=new c(e,this._section),this._animation=this.factory.createAnimation(this._animationInfo),this.animationElements.push(this._animation)},Animation.prototype._onDOMContentLoaded=function(){if(this.status="DOMContentLoaded",document.removeEventListener("DOMContentLoaded",this._onDOMContentLoaded),!this.animationElements){this.animationElements=[],this.factory.setHint(p);var sections=$("section, header, footer"),length=sections.length;if(sections.each(function(index,t){this.visitSection(t),--length||this.factory.setHint(null)}.bind(this)),"interactive"!==document.readyState)return this._onLoadingComplete(),void 0;window.addEventListener("load",this._onLoadingComplete)}},Animation.prototype._onLoadingComplete=function(){this.status="complete",window.removeEventListener("load",this._onLoadingComplete),this.start()};var m=["lightspeedin","flipin","flipout"],g=["right","downright","upright"];t.exports=Animation,window.Animation=Animation},13887:function(t,e,n){"use strict";function i(animation){if(animation.start(),!animation.isInOutAnimation()&&!animation.info.infinite){var t=animation.info.duration,e=animation.info.delay;setTimeout((function(){animation.clear()}),t+e)}}function o(animation){animation.isInOutAnimation()&&animation.startOut()}function a(animation){return animation.info&&0===animation.info.animationOut&&animation.info.element.classList.contains("animated-once")}var s={subscribe:function t(animation){var e=animation&&animation.info||{},n=e.section||e.element;animation.info.eventObject=new WaypointAdapter({element:n,handler:function(t){if(animation)return"up"===t||a(animation)?(o(animation),void 0):(i(animation),void 0)},offset:"70%"})}};t.exports=s,window.AnimationEventScroll=s},13888:function(t,e,n){"use strict";function i(carousel,slide,t){this.carousel=$(carousel),this.slide=$(slide),this.slideNum=t,this.animations=[],this._delays=[],this._autoplayPaused=false,this._handleSlide=o.bind(this),this._handleSlid=a.bind(this)}function o(t){t&&t.from===this.slideNum&&this.slideOut(t)}function a(t){t&&t.to===this.slideNum&&(this.pauseAutoplayWhileInAnimation(),this.startInAnimation())}i.prototype.init=function init(){$(this.carousel).on("u-slide.bs.u-carousel",this._handleSlide),$(this.carousel).on("slid.bs.u-carousel",this._handleSlid),this.slide.is(".u-active")&&(this._isAutoplayOnStart()&&this.pauseAutoplayWhileInAnimation(),this.startInAnimation())},i.prototype.deinit=function t(){$(this.carousel).off("slid.bs.u-carousel",this._handleSlid),$(this.carousel).off("u-slide.bs.u-carousel",this._handleSlide)},i.prototype.resetAnimations=function t(){for(var e=0;e<this.animations.length;e++)this.animations[e].reset&&this.animations[e].reset()},i.prototype.pauseAutoplayWhileInAnimation=function t(){var e=this.countMaxInAnimationTime();e>0&&(this._pauseAutoplay(),this._delay(e,function(){this._continueAutoplay(),this._clearDelays()}.bind(this)))},i.prototype.startInAnimation=function t(){this.animations.forEach(function(animation){animation.start()}.bind(this))},i.prototype.needOutAnimation=function t(){for(var e=0,length=this.animations.length;e<length;e++)if(this.animations[e].needOutAnimation&&this.animations[e].needOutAnimation())return true;return false},i.prototype.startOutAnimations=function t(){for(var e=0;e<this.animations.length;e++)this.animations[e].startOut&&this.animations[e].startOut()},i.prototype.countMaxOutAnimationTime=function t(){if(!this.animations||!this.animations.length)return 0;var e=this.animations.map((function(animation){return animation.getOutTime()}));return Math.max.apply(null,e)},i.prototype.countMaxInAnimationTime=function t(){if(!this.animations||!this.animations.length)return 0;var e=this.animations.map((function(animation){return animation.getTime()}));return Math.max.apply(null,e)},i.prototype.slideOut=function t(e){if(this._delays.length>0&&this._cancelDelays(),this._continueAutoplay(),!this.needOutAnimation())return this.resetAnimations(),void 0;e.preventDefault();var n=this.countMaxOutAnimationTime(),i="number"==typeof e.to?e.to:null,o=e.direction;setTimeout(function(){return this.resetAnimations(),null!==i?($(e.target)["u-carousel"](i),void 0):"left"===o?($(e.target)["u-carousel"]("next"),void 0):("right"===o&&$(e.target)["u-carousel"]("prev"),void 0)}.bind(this),n),this.startOutAnimations()},i.prototype._delay=function t(e,n){this._delays.push(setTimeout((function(){n()}),e))},i.prototype._cancelDelays=function t(){this._delays.forEach((function(id){clearTimeout(id)})),this._delays.length=0},i.prototype._clearDelays=function t(){this._delays.length=0},i.prototype._isAutoplayOnStart=function t(){var e=this.carousel.attr("data-u-ride");return!!e&&"carousel"===(e=e.toLowerCase())},i.prototype._pauseAutoplay=function t(){this.carousel["u-carousel"]("pause"),this._autoplayPaused=true},i.prototype._continueAutoplay=function t(){this._autoplayPaused&&(this.carousel["u-carousel"]("cycle"),this._autoplayPaused=false)},t.exports=i,window.AnimationEventSlider=i},13889:function(t,e,n){"use strict";function i(t){var e=[];return(-1!==a.indexOf(t.name)||t.direction)&&e.push("transform"),-1!==s.indexOf(t.name)&&e.push("opacity"),-1!==u.indexOf(t.name)&&e.push("contents"),0===e.length&&e.push("auto"),e.join(", ")}var o={},a=["bounce","headShake","heartBeat","jello","pulse","rubberBand","shake","swing","tada","wobble","bounceIn","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedIn","rotateIn","slideIn","hinge","jackInTheBox","rollIn","zoomIn","customAnimationIn","customAnimationOut"],s=["flash","bounceIn","fadeIn","flipInX","flipInY","flipOutX","flipOutY","lightSpeedIn","rotateIn","hinge","jackInTheBox","rollIn","zoomIn","customAnimationIn","customAnimationOut"],u=["counter"];o.hintBrowser=function t(e){e&&e.element&&(e.element.style.willChange=i(e))},o.removeHint=function t(e){e.element.style.willChange="auto"},t.exports=o,window.WillChangeHint=o},13890:function(t,e,n){"use strict";var i=n(13891),Utils;n(4088).animationsEnabled()&&document.addEventListener("np.responsive.init",function(t){setTimeout((function(){var e;new i(t.detail&&t.detail.mode).subscribe()}),0)}.bind(this),false)},13891:function(t,e,n){"use strict";function i(t){this.mode=t||"XL",this.animations=[],this._responsiveListener=this.responsiveListener.bind(this),this._prevState={},this._app={raf:null}}t.exports=i;var o=n(13892);i.prototype.subscribe=function(){this.animations=this.initTimeline(),document.addEventListener("np.responsive.changed",this._responsiveListener,false);var t=this._app,e=this.render.bind(this);!function n(){e(),t.raf=requestAnimationFrame(n)}()},i.prototype.destroy=function(){cancelAnimationFrame(this._app.raf),document.removeEventListener("np.responsive.changed",this._responsiveListener,false),this.animations=null},i.prototype.responsiveListener=function(t){t.detail&&this.mode!==t.detail.mode&&(this.mode=t.detail.mode,this.animations=this.initTimeline())},i.prototype.initTimeline=function(){this._prevState={};var t=document.body.querySelectorAll("[data-custom-animation]");return Array.from(t).reduce(function(t,el){var e=el.getAttribute("data-custom-animation"),n;if(!e)return t;try{n=JSON.parse(e)}catch(t){n=null}return n&&(n.animation=new o(el,n.animation,this.mode),t.push(n)),t}.bind(this),[])},i.prototype.render=function(){var t=this.getGlobal();this._prevState.scrollY!==t.scrollY&&(this.animations.forEach((function(e){e.animation.setGlobal(t),e.animation.calc(),e.animation.apply()})),this._prevState=t)},i.prototype.getGlobal=function(){var t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)||1,e=Math.max(0,window.scrollY),n=document.documentElement.scrollHeight||1,i;return{vh:t,scrollY:e,scrollHeight:n,scrollHeightRelative:n/t}},window.ScrollTimeline=i},13892:function(t,e,n){"use strict";function i(t,animation,e){this.dom=t,this.mode=e,this.animation=animation||{},this.initSteps(),this.state=null,this.global=null}var o=n(13893),a=n(730);t.exports=i;var s="before",u="start",l="end",c="top",f="middle",h="bottom";Object.defineProperty(i.prototype,"currentAnimation",{get:function(){return this.animation[this.mode]||{}}}),Object.defineProperty(i.prototype,"steps",{get:function(){return this.currentAnimation.steps||[]}}),i.prototype.initSteps=function(){var t=this.dom.getBoundingClientRect(),e;this.domWidth=t.width||0,this.domHeight=t.height||0,this.domTop=t.top+Math.max(0,window.scrollY),window._responsive.modes.forEach((function(t,index){var animation=this.animation[t],n=!animation||!animation.steps.length;if(n&&index>0)return animation=JSON.parse(JSON.stringify(e)),this.animation[t]=animation,void 0;n&&"XXL"===t&&(animation=JSON.parse(JSON.stringify(this.animation.XL||{})),this.animation[t]=animation);var i=animation.steps||[],o=0;i.forEach((function(t,e){var n=parseFloat(t.dist)||0,i=parseFloat(t.skip)||0;t.dist=n,t.skip=i,t.index=e,t.start=o,t.end=o+n+i,o=t.end})),e=animation}),this)},i.prototype.setGlobal=function(t){this.global=t},i.prototype.calc=function(){if(this.state=o.create(this.dom),!this.currentAnimation.hidden&&(this.domHeight||this.domWidth)){var t=this.getGlobalProgress();this.steps.forEach((function(e){var n=s;t>=e.start&&t<e.end?n=u:t>=e.end?n=l:t<e.start&&(n=s),this.calcStep(n,e,t)}),this)}},i.prototype.getGlobalProgress=function(){var t=this.currentAnimation.start||{},e=t.at||h,n=parseFloat(t.off)||0,i=this.domTop,o;return e===c&&this.domTop<0&&(i+=-this.domTop),e===f&&(this.domTop<this.global.vh/2&&(i+=this.global.vh/2-this.domTop),i-=this.global.vh/2),e===h&&(this.domTop<this.global.vh&&(i+=this.global.vh-this.domTop),i-=this.global.vh),(this.global.scrollY+n-i)*this.global.scrollHeightRelative/this.global.scrollHeight},i.prototype.calcStep=function(t,e,n){this.state.willChange=t!==l,this.calcStepPropertyToggle(t,e,"sticky",true),this.calcStepPropertyToggle(t,e,"fixed"),this.calcFixed(t,e,n);var i=this.getStepProgress(t,e,n);i<0||(this.state.mx+=(e.mx-this.state.mx)*i,this.state.my+=(e.my-this.state.my)*i,this.state.op+=(e.op-this.state.op)*i,this.state.sx+=(e.sx-this.state.sx)*i,this.state.sy+=(e.sy-this.state.sy)*i,this.state.rot+=(e.rot-this.state.rot)*i,this.state.bgy+=(e.bgy-this.state.bgy)*i,this.state.blur+=(e.blur-this.state.blur)*i)},i.prototype.getStepProgress=function(t,e,n){if(t===s)return 0;if(t===l)return 1;var i=e.skip||0;return(n-e.start-i)/(e.end-e.start-i)},i.prototype.calcStepPropertyToggle=function(t,e,n,i){e[n]&&(t===s&&this.state[n]&&e.index>0||(t===u?this.state[n]=true:t===l&&(this.state[n]=!!i&&e[n])))},i.prototype.calcFixed=function(t,e,n){var i=e.skip||0;if(!e.fixed)return this.state._unfixedDist+=this.global.vh*(e.dist+i),void 0;t===u?this.state._fixedDist=this.global.vh*n-this.state._unfixedDist:t===l&&(this.state._fixedDist+=this.global.vh*(e.dist+i))},i.prototype.apply=function(){this.state&&a.apply(this.dom,this.state)},window.StepAnimation=i},13893:function(t,e,n){"use strict";var i=t.exports;i.create=function(t){var e=1,n=(t.getAttribute("class")||"").match(/u-opacity-(\d+)/);return n&&(e=parseFloat(n[1])/100),Number.isFinite(e)||(e=1),{blur:0,sticky:false,fixed:false,_fixedDist:0,_unfixedDist:0,mx:0,my:0,op:e,rot:0,sx:1,sy:1,bgy:0}},window.StepAnimationState=i},13894:function(t,e,n){"use strict";function i(){}function o(t,props){document.body.classList.add("u-scrollspy-prevent"),t.animate(props,{done:function(){document.body.classList.remove("u-scrollspy-prevent")}})}var a=n(31);i.prototype.scroll=function(t){var e=1,n=a(".u-section-row.u-sticky, header.u-sticky").toArray().reduce((function(t,el){return t+(a(el).outerHeight(true)||0)-1}),0);o(a("html, body"),{scrollTop:t.offset().top-n})},i.prototype.scrollTop=function(){o(a("html, body"),{scrollTop:0})},i.prototype.update=function(t){var e="string"==typeof t?t:a(t.currentTarget).attr("href");if((e=(e||"").replace(/^[^#]+/,"")).match(/^#[\d\w-_]+$/i)){var n=a(e);n.length&&(t.preventDefault&&t.preventDefault(),this.scroll(n))}},window._npScrollAnchor=new i,a(window).on("load",(function(){window._npScrollAnchor.update(window.location.hash),a("body").on("click","a:not([data-u-slide], [data-u-slide-to], [data-toggle], .u-tab-link, .u-quantity-button)",(function(t){a(this).is(".u-dialog-link")||a(this).parent().is(".u-pagination-item")||(window._npScrollAnchor.update(t),t&&t.target&&t.target.hash&&(window.location.hash=t.target.hash),a(this).blur())})),a("body").on("click",".u-back-to-top",(function(){window._npScrollAnchor.scrollTop()}))}))},13895:function(t,e,n){"use strict";var i=n(31),o=n(13896),a="u-gdpr-cookie",s="u-cookies-consent",u="u-button-confirm",l="u-button-decline",c="_u_GDPRConfirmCode";i((function(){function t(){var form=i(".u-form"),t=form.find(".u-form-send-error:visible");form.length&&t.length&&(t.hide(),t.html("Unable to send your message. Please fix errors then try again."),form.find('input[type="submit"]').prop("disabled",false))}function e(){var t=createGuid(),e=createGuid();n("sessionId",t,.5/24),n("userId",e,365)}function n(t,e,n){o.get(t)||o.set(t,e,{expires:n,secure:true})}function u(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function createGuid(){if(crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof window.Uint8Array){var t=new window.Uint8Array(16),guid;crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;for(var e=[],n="",i=0;i<t.length;i++)(n=t[i].toString(16)).length<2&&(n="0"+n),e.push(n);return e.slice(0,4).join("")+"-"+e.slice(4,6).join("")+"-"+e.slice(6,8).join("")+"-"+e.slice(8,10).join("")+"-"+e.slice(10).join("")}return u()}var l=i("."+s),f;if(!l.length)return e(),void 0;l.find(".u-button-confirm").on("click",(function(n){n.preventDefault(),e(),o.set(a,true,{expires:365,secure:true}),l.removeClass("show"),h(),t()})),l.find(".u-button-decline").on("click",(function(t){t.preventDefault(),o.set(a,false,{expires:365,secure:false}),l.removeClass("show")}));try{f=o.get(a)}catch(t){f=false}var h=window[c]||function(){};if(f)return"true"===f&&(e(),h(),t()),void 0;l.addClass("show")}))},13896:function(t,e,n){"use strict";
- /*!
- * JavaScript Cookie v2.2.1
- * https://github.com/js-cookie/js-cookie
- *
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
- * Released under the MIT license
- */!function(factory){var e;if("function"==typeof define&&define.amd&&(define(factory),e=true),true,t.exports=factory(),!(e=true)){var n=window.Cookies,i=window.Cookies=factory();i.noConflict=function(){return window.Cookies=n,i}}}((function(){function extend(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function t(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(e){function n(){}function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=extend({path:"/"},n.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(i);/^[\{\[]/.test(a)&&(i=a)}catch(t){}i=e.write?e.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,true!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+i+s}}function o(n,i){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],s=0;s<a.length;s++){var u=a[s].split("="),l=u.slice(1).join("=");i||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(u[0]);if(l=(e.read||e)(l,c)||t(l),i)try{l=JSON.parse(l)}catch(t){}if(o[c]=l,n===c)break}catch(t){}}return n?o[n]:o}}return n.set=i,n.get=function(t){return o(t,false)},n.getJSON=function(t){return o(t,true)},n.remove=function(t,e){i(t,"",extend(e,{expires:-1}))},n.defaults={},n.withConverter=init,n}return init((function(){}))}))},13897:function(t,e,n){"use strict";$((function(){var selector=".u-back-to-top";$(selector).hide(),$(window).scroll((function(){$(this).scrollTop()>100?$(selector).fadeIn().css("display","block"):$(selector).fadeOut()}))}))},13898:function(t,e,n){"use strict";var i=n(31),o=n(13899);window._npScrollSpyInit=function(){var t='.u-menu .u-nav-container .u-nav-link[href*="#"]',e='.u-menu .u-nav-container-collapse .u-nav-link[href*="#"]',n;if(document.querySelectorAll(t).length)try{o(t,{nested:true,offset:function(){var t,e=1;return(i(".u-header.u-sticky").outerHeight(true)||0)+1}}),o(e,{nested:true,offset:function(){return i(".u-header.u-sticky").outerHeight(true)||0}})}catch(t){console.warn("ScrollSpy: has no items")}},document.addEventListener("gumshoeActivate",(function(t){var link;t.detail.link.classList.add("active")}),false),document.addEventListener("gumshoeDeactivate",(function(t){var link;t.detail.link.classList.remove("active")}),false),i((function(){window._npScrollSpyInit()}))},13899:function(t,e,n){"use strict";(function(e){
- /*!
- * gumshoejs v5.1.2
- * A simple, framework-agnostic scrollspy script.
- * (c) 2019 Chris Ferdinandi
- * MIT License
- * http://github.com/cferdinandi/gumshoe
- */
- var n,factory;n=void 0!==e?e:"undefined"!=typeof window?window:this,factory=function(t){var e={navClass:"active",contentClass:"active",nested:false,nestedClass:"active",offset:0,reflow:false,events:true},extend=function(){var t={};return Array.prototype.forEach.call(arguments,(function(e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})),t},n=function(type,t,e){if(e.settings.events){var n=new CustomEvent(type,{bubbles:true,cancelable:true,detail:e});t.dispatchEvent(n)}},i=function(t){var e=0;if(t.offsetParent)for(;t;)e+=t.offsetTop,t=t.offsetParent;return e>=0?e:0},o=function(t){t&&t.sort((function(t,e){var n,o;return i(t.content)<i(e.content)?-1:1}))},a=function(settings){return"function"==typeof settings.offset?parseFloat(settings.offset()):parseFloat(settings.offset)},s=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},u=function(e,settings,n){var i=e.getBoundingClientRect(),o=a(settings);return n?parseInt(i.bottom,10)<(t.innerHeight||document.documentElement.clientHeight):parseInt(i.top,10)<=o},l=function(){return t.innerHeight+t.pageYOffset>=s()},c=function(t,settings){return!(!l()||!u(t.content,settings,true))},f=function(t,settings){if(t.length){var e=t[t.length-1];if(c(e,settings))return e;for(var n=t.length-1;n>=0;n--)if(u(t[n].content,settings))return t[n]}},h=function(nav,settings){if(settings.nested&&nav.parentNode){var t=nav.parentNode.closest("li");t&&(t.classList.remove(settings.nestedClass),h(t,settings))}},p=function(items,settings){if(items){var t=items.nav.closest("li");t&&(t.classList.remove(settings.navClass),items.content.classList.remove(settings.contentClass),h(t,settings),n("gumshoeDeactivate",t,{link:items.nav,content:items.content,settings:settings}))}},m=function(nav,settings){if(settings.nested){var t=nav.parentNode.closest("li");t&&(t.classList.add(settings.nestedClass),m(t,settings))}},g=function(items,settings){if(items){var t=items.nav.closest("li");t&&(t.classList.add(settings.navClass),items.content.classList.add(settings.contentClass),m(t,settings),n("gumshoeActivate",t,{link:items.nav,content:items.content,settings:settings}))}},v;return function(selector,n){var i={},a,s,u,l,settings;i.setup=function(){a=document.querySelectorAll(selector),s=[],Array.prototype.forEach.call(a,(function(t){var e=document.getElementById(decodeURIComponent(t.hash.substr(1)));e&&s.push({nav:t,content:e})})),o(s)},i.detect=function(){if(!document.body.classList.contains("u-scrollspy-prevent")){var t=f(s,settings);if(!t)return u&&(p(u,settings),u=null),void 0;u&&t.content===u.content||(p(u,settings),g(t,settings),u=t)}};var c=function(){l&&t.cancelAnimationFrame(l),l=t.requestAnimationFrame(i.detect)},h=function(){l&&t.cancelAnimationFrame(l),l=t.requestAnimationFrame((function(){o(s),i.detect()}))},init;return i.destroy=function(){u&&p(u,settings),t.removeEventListener("scroll",c,false),settings.reflow&&t.removeEventListener("resize",h,false),s=null,a=null,u=null,l=null,settings=null},settings=extend(e,n||{}),i.setup(),i.detect(),t.addEventListener("scroll",c,false),void(settings.reflow&&t.addEventListener("resize",h,false)),i}},void("function"==typeof define&&define.amd?define([],(function(){return factory(n)})):(true,t.exports=factory(n)))}).call(e,n(74))},13900:function(t,e,n){"use strict";var i=n(31),Filter=n(13901),o=n(13903),HorizontalLayoutSlider=n(486);i(window).on("load",(function(){setTimeout((function(){i(".u-gallery").removeClass("u-no-transition"),i(".u-layout-horizontal").each((function(){var gallery=i(this),slider=new HorizontalLayoutSlider(gallery,true);gallery.children(".u-gallery-nav").click((function(t){t.preventDefault();var e=i(t.currentTarget);slider.navigate(e)}))}))}),250)})),i((function(){var t;i("body").on("mouseenter",".u-gallery.u-no-transition",(function(){i(this).closest(".u-gallery").removeClass("u-no-transition")})),new o([".u-gallery.u-product-zoom.u-layout-thumbnails",".u-gallery.u-product-zoom.u-layout-carousel"]).init(),Filter.init()}))},13901:function(t,e,n){"use strict";var i=n(31),GalleryLayout=n(13902),Filter;t.exports.init=function(){var filter=i(".u-gallery-filter");filter.on("click",".u-filter-item",(function(t){t.preventDefault();var gallery=filter.closest(".u-gallery"),e=gallery.find(".u-gallery-item"),n=i(t.currentTarget),o=GalleryLayout.init(gallery);filter.find(".active").removeClass("active"),n.addClass("active");var a=n.text().trim(),s=n.index();e.each((function(){var galleryItem=i(this),t;galleryItem.attr("data-category")===a||0===s?(galleryItem.removeClass("hide"),galleryItem.addClass("show")):(galleryItem.removeClass("show"),galleryItem.addClass("hide"))})),o.updateHeight()}))}},13902:function(t,e,n){"use strict";function GalleryLayout(gallery){this.columnsRegEx=/repeat\((\d+),\s*auto\)/i,this.columnsSplitRegEx=/\s+/,this.gallery=gallery,this.inner=gallery.find(".u-gallery-inner"),this.controls=gallery.find(".u-gallery-controls")}t.exports=GalleryLayout,GalleryLayout.init=function(gallery){var model=new GalleryLayout(gallery);return model.init(),model.updateHeight(),model},GalleryLayout.prototype.init=function(){var t=this.inner.css("grid-template-columns")||"",e=t.match(this.columnsRegEx);this.columns=e?parseFloat(e[1]):t.split(this.columnsSplitRegEx).length,this.columns||(this.columns=1),this.allItems=this.inner.find(".u-gallery-item"),this.allRows=Math.ceil(this.allItems.length/this.columns),this._updateState();var n=this.inner.height(),i=parseFloat(this.inner.css("gap"))||0,o=this.visibleRows>0?i*(this.visibleRows-1):0;this.rowHeight=(n-o)/this.visibleRows},GalleryLayout.prototype._updateState=function(){this.visibleItems=this.allItems.filter(":not(.hide)"),this.visibleRows=Math.ceil(this.visibleItems.length/this.columns)},GalleryLayout.prototype.updateHeight=function(){if(this._updateState(),this.visibleRows){var t=parseFloat(this.gallery.css("gap"))||0,e=parseFloat(this.inner.css("gap"))||0,n=this.controls.height()+t,i=this.visibleRows>0?e*(this.visibleRows-1):0,o=n+this.rowHeight*this.visibleRows+i;this.gallery.css("height",o+"px")}}},13903:function(t,e,n){"use strict";function i(t){this.galleryZoomSelector=t}function o(t){var e=t.currentTarget,n,i=u(e).closest(".u-gallery-item").data("zoom_click"),o=e.getBoundingClientRect(),a=e.querySelector("img"),s=t.clientX,l=t.clientY,c=t.originalEvent.changedTouches;if(!i&&!c){u(e).addClass("hover");var f=s-o.x,h=l-o.y;requestAnimationFrame((function(){var t=f*(1-a.offsetWidth/e.offsetWidth),n=h*(1-a.offsetHeight/e.offsetHeight);a.style.left=t+"px",a.style.top=n+"px"}))}}function a(t){var e=u(t.currentTarget),n;u(e).removeClass("hover"),u(e).closest(".u-gallery-item").data("zoom_click")}function s(t){var e=u(t.currentTarget);u(e).removeClass("hover")}var u=n(31);t.exports=i,i.prototype.init=function(){var t=this.galleryZoomSelector.map((function(selector){return selector+" .u-back-slide"})).join(", "),e=this.galleryZoomSelector.map((function(selector){return selector+" .u-back-image"})).join(", ");u("body").on("mousedown touchstart",t,a),u("body").on("mousemove touchmove",t,o),u("body").on("click mouseup mouseout touchend touchcancel",t,s),u(e).each((function(t,e){var url=e.getAttribute("src");u(e).parent().css("background-image","url("+url+")")}))},window.ImageZoom=i},13904:function(t,e,n){"use strict";var i=n(31),TabsControl=n(329);window._npTabsInit=function(){function t(t){t.preventDefault(),t.stopPropagation();var link=i(t.currentTarget),tabsControl;new TabsControl(link).show()}i("body").on("click",".u-tab-link",t)},i((function(){window._npTabsInit()}))},13905:function(t,e,n){"use strict";var i=n(13906);window._npLazyImages={setup:function(){window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.init=false,document.addEventListener("lazybeforeunveil",(function(t){var el=t.target;if(el.matches("video")){var e=el.getAttribute("data-src"),n=el.querySelector("source");n&&e&&n.setAttribute("src",e)}else{var i=el.getAttribute("data-bg");if(i){var list=cssBgParser.parseElementStyle(getComputedStyle(el));list.backgrounds.length&&(list.backgrounds[0].color=""),list.backgrounds.push(new cssBgParser.Background({image:i})),el.style.backgroundImage=list.toString("image")}}}))},init:function(){i.init()}},window._npLazyImages.setup(),$((function(){window._npLazyImages.init()}))},13906:function(t,e,n){"use strict";!function(e,factory){var n=factory(e,e.document,Date);e.lazySizes=n,"object"==typeof t&&t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{},(function t(e,n,Date){var i,o;if(!function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!n||!n.getElementsByClassName)return{init:function(){},cfg:o,noSupport:true};var a=n.documentElement,s=e.HTMLPictureElement,u="addEventListener",l="getAttribute",c=e.addEventListener.bind(e),f=e.setTimeout,h=e.requestAnimationFrame||f,p=e.requestIdleCallback,m=/^picture$/i,g=["load","error","lazyincluded","_lazyloaded"],v={},y=Array.prototype.forEach,w=function(t,e){return v[e]||(v[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),v[e].test(t.getAttribute("class")||"")&&v[e]},b=function(t,e){w(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},C=function(t,e){var n;(n=w(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(n," "))},S=function(t,e,add){var n=add?u:"removeEventListener";add&&S(t,e),g.forEach((function(i){t[n](i,e)}))},x=function(t,e,o,a,s){var u=n.createEvent("Event");return o||(o={}),o.instance=i,u.initEvent(e,!a,!s),u.detail=o,t.dispatchEvent(u),u},A=function(el,t){var n;!s&&(n=e.picturefill||o.pf)?(t&&t.src&&!el.getAttribute("srcset")&&el.setAttribute("srcset",t.src),n({reevaluate:true,elements:[el]})):t&&t.src&&(el.src=t.src)},_=function(t,style){return(getComputedStyle(t,null)||{})[style]},T=function(t,e,n){for(n=n||t.offsetWidth;n<o.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},E=(L=[],P=M=[],B=function(t,e){I&&!e?t.apply(this,arguments):(P.push(t),k||(k=true,(n.hidden?f:h)(O)))},B._lsFlush=O=function(){var t=P;for(P=M.length?L:M,I=true,k=false;t.length;)t.shift()();I=false},B),I,k,M,L,P,O,B,F=function(t,simple){return simple?function(){E(t)}:function(){var e=this,n=arguments;E((function(){t.apply(e,n)}))}},N=function(t){var e,n=0,i=o.throttleDelay,a=o.ricTimeout,s=function(){e=false,n=Date.now(),t()},u=p&&a>49?function(){p(s,{timeout:a}),a!==o.ricTimeout&&(a=o.ricTimeout)}:F((function(){f(s)}),true);return function(t){var o;(t=true===t)&&(a=33),e||(e=true,(o=i-(Date.now()-n))<0&&(o=0),t||o<9?u():f(u,o))}},U=function(t){var e,n,i=99,o=function(){e=null,t()},a=function(){var t=Date.now()-n;t<i?f(a,i-t):(p||o)(o)};return function(){n=Date.now(),e||(e=f(a,i))}},loader=(tt=/^img$/i,nt=/^iframe$/i,rt="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),ot=0,at=0,st=0,ut=-1,lt=function(t){st--,(!t||st<0||!t.target)&&(st=0)},ct=function(t){return null==J&&(J="hidden"==_(n.body,"visibility")),J||!("hidden"==_(t.parentNode,"visibility")&&"hidden"==_(t,"visibility"))},dt=function(t,e){var i,o=t,visible=ct(t);for(j-=e,X+=e,K-=e,Z+=e;visible&&(o=o.offsetParent)&&o!=n.body&&o!=a;)(visible=(_(o,"opacity")||1)>0)&&"visible"!=_(o,"overflow")&&(i=o.getBoundingClientRect(),visible=Z>i.left&&K<i.right&&X>i.top-1&&j<i.bottom+1);return visible},ht=N(ft=function(){var t,e,rect,s,u,l,c,f,h,p,m,g,v=i.elements;if((Y=o.loadMode)&&st<8&&(t=v.length)){for(e=0,ut++;e<t;e++)if(v[e]&&!v[e]._lazyRace)if(!rt||i.prematureUnveil&&i.prematureUnveil(v[e]))bt(v[e]);else if((f=v[e].getAttribute("data-expand"))&&(l=1*f)||(l=at),p||(p=!o.expand||o.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:o.expand,i._defEx=p,m=p*o.expFactor,g=o.hFac,J=null,at<m&&st<1&&ut>2&&Y>2&&!n.hidden?(at=m,ut=0):at=Y>1&&ut>1&&st<6?p:0),h!==l&&(V=innerWidth+l*g,G=innerHeight+l,c=-1*l,h=l),rect=v[e].getBoundingClientRect(),(X=rect.bottom)>=c&&(j=rect.top)<=G&&(Z=rect.right)>=c*g&&(K=rect.left)<=V&&(X||Z||K||j)&&(o.loadHidden||ct(v[e]))&&(H&&st<3&&!f&&(Y<3||ut<4)||dt(v[e],l))){if(bt(v[e]),u=true,st>9)break}else!u&&H&&!s&&st<4&&ut<4&&Y>2&&(z[0]||o.preloadAfterLoad)&&(z[0]||!f&&(X||Z||K||j||"auto"!=v[e].getAttribute(o.sizesAttr)))&&(s=z[0]||v[e]);s&&!u&&bt(s)}}),mt=F(pt=function(t){var e=t.target;if(e._lazyCache)return delete e._lazyCache,void 0;lt(t),b(e,o.loadedClass),C(e,o.loadingClass),S(e,gt),x(e,"lazyloaded")}),gt=function(t){mt({target:t.target})},vt=function(t,e){try{t.contentWindow.location.replace(e)}catch(n){t.src=e}},yt=function(t){var e,n=t.getAttribute(o.srcsetAttr);(e=o.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},wt=F((function(t,e,n,i,a){var s,u,l,c,h,p;(h=x(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?b(t,o.autosizesClass):t.setAttribute("sizes",i)),u=t.getAttribute(o.srcsetAttr),s=t.getAttribute(o.srcAttr),a&&(c=(l=t.parentNode)&&m.test(l.nodeName||"")),p=e.firesLoad||"src"in t&&(u||s||c),h={target:t},b(t,o.loadingClass),p&&(clearTimeout($),$=f(lt,2500),S(t,gt,true)),c&&y.call(l.getElementsByTagName("source"),yt),u?t.setAttribute("srcset",u):s&&!c&&(nt.test(t.nodeName)?vt(t,s):t.src=s),a&&(u||c)&&A(t,{src:s})),t._lazyRace&&delete t._lazyRace,C(t,o.lazyClass),E((function(){var e=t.complete&&t.naturalWidth>1;p&&!e||(e&&b(t,"ls-is-cached"),pt(h),t._lazyCache=true,f((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&st--}),true)})),bt=function(t){if(!t._lazyRace){var e,n=tt.test(t.nodeName),i=n&&(t.getAttribute(o.sizesAttr)||t.getAttribute("sizes")),a="auto"==i;(!a&&H||!n||!t.getAttribute("src")&&!t.srcset||t.complete||w(t,o.errorClass)||!w(t,o.lazyClass))&&(e=x(t,"lazyunveilread").detail,a&&At.updateElem(t,true,t.offsetWidth),t._lazyRace=true,st++,wt(t,e,a,i,n))}},Ct=U((function(){o.loadMode=3,ht()})),xt=function(){if(!H){if(Date.now()-W<999)return f(xt,999),void 0;H=true,o.loadMode=3,ht(),c("scroll",St,true)}},{_:function(){W=Date.now(),i.elements=n.getElementsByClassName(o.lazyClass),z=n.getElementsByClassName(o.lazyClass+" "+o.preloadClass),c("scroll",ht,true),c("resize",ht,true),c("pageshow",(function(t){if(t.persisted){var e=n.querySelectorAll("."+o.loadingClass);e.length&&e.forEach&&h((function(){e.forEach((function(t){t.complete&&bt(t)}))}))}})),e.MutationObserver?new MutationObserver(ht).observe(a,{childList:true,subtree:true,attributes:true}):(a.addEventListener("DOMNodeInserted",ht,true),a.addEventListener("DOMAttrModified",ht,true),setInterval(ht,999)),c("hashchange",ht,true),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){n.addEventListener(t,ht,true)})),/d$|^c/.test(n.readyState)?xt():(c("load",xt),n.addEventListener("DOMContentLoaded",ht),f(xt,2e4)),i.elements.length?(ft(),E._lsFlush()):ht()},checkElems:ht,unveil:bt,_aLSL:St=function(){3==o.loadMode&&(o.loadMode=2),Ct()}}),z,H,$,Y,W,V,G,j,K,Z,X,J,tt,nt,rt,ot,at,st,ut,lt,ct,dt,ft,ht,pt,mt,gt,vt,yt,wt,bt,Ct,St,xt,At=(Tt=F((function(t,e,n,i){var o,a,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),m.test(e.nodeName||""))for(a=0,s=(o=e.getElementsByTagName("source")).length;a<s;a++)o[a].setAttribute("sizes",i);n.detail.dataAttr||A(t,n.detail)})),kt=function(t,e,n){var i,o=t.parentNode;o&&(n=T(t,o,n),(i=x(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=i.detail.width)&&n!==t._lazysizesWidth&&Tt(t,o,i,n))},{_:function(){_t=n.getElementsByClassName(o.autosizesClass),c("resize",Mt)},checkElems:Mt=U((function(){var t,e=_t.length;if(e)for(t=0;t<e;t++)kt(_t[t])})),updateElem:kt}),_t,Tt,kt,Dt,Mt,init=function(){!init.i&&n.getElementsByClassName&&(init.i=true,At._(),loader._())};return f((function(){o.init&&init()})),i={cfg:o,autoSizer:At,loader:loader,init:init,uP:A,aC:b,rC:C,hC:w,fire:x,gW:T,rAF:E}}))},13907:function(t,e,n){"use strict";var i=n(31),Dialog=n(337);window._npDialogsInit=function(){function t(t){var dialog=o(t);dialog&&(t.preventDefault(),t.stopPropagation(),e(t)||dialog.open())}function e(t){return i(t.currentTarget).hasClass("disabled")}function n(t){var dialog;t.preventDefault(),t.stopPropagation(),o(t).close()}function o(t){var link=i(t.currentTarget),e=link.attr("href")||link.attr("data-href"),n;try{n=i(e)}catch(t){return null}return n=n.length?n:link,new Dialog(n,link)}function a(){return new Dialog(i('[data-dialog-show-on="page_exit"]'))}function s(){return new Dialog(i('[data-dialog-show-on="timer"]'))}function u(t){var dialog;t.clientY<50&&null==t.relatedTarget&&"select"!==t.target.nodeName.toLowerCase()&&a().open((function(){document.removeEventListener("mouseout",u)}))}function l(){var dialog=s();setTimeout((function(){dialog.open()}),dialog.getInterval())}function c(t){var e=i(t.currentTarget);setTimeout((function(){new Dialog(e).close()}))}i("body").on("click",".u-dialog-link",t),i("body").on("click",'.u-shopping-cart[href^="#"]',t),i("body").on("click",".u-dialog-close-button",n),i("body").on("click",".u-dialog .u-btn:not(.u-btn-step):not(.u-stripe-button)",c),document.addEventListener("mouseout",u),l()},i((function(){window._npDialogsInit()}))},13908:function(t,e,n){"use strict";var i=n(31),CountdownUpdater=n(328);i(window).on("load",(function(){function update(){t.each((function(t,el){var countdownUpdater;new CountdownUpdater(i(el)).startUpdate("runtime")}))}var t=CountdownUpdater.findAll();t.length&&update()}))},13909:function(t,e,n){"use strict";var i=n(31);i((function(){i(document).on("click",".u-quantity-input a",(function(t){var e;t.preventDefault();var n=i(this),o=n.siblings("input");n.hasClass("minus")&&(e=(e=parseFloat(o.val())-1)<1?1:e,o.val(e)),n.hasClass("plus")&&(e=parseFloat(o.val())+1,o.val(e)),n.siblings(".minus").addBack(".minus").toggleClass("disabled",1===e),o.change()}))}))},13910:function(t,e,n){"use strict";var i=n(31);i((function(){i(".u-show-second-image").each((function(){var t;i(this).find(".u-repeater-item").each((function(){var repeaterItem=i(this),image=repeaterItem.find(".u-image:not(.u-product-second-image, a)").eq(0);repeaterItem.hasClass("u-image")&&(image=repeaterItem);var t=repeaterItem.find(".u-product-second-image");if(t.length){var e=t.attr("src"),n=t.attr("srcset"),o=image.clone(),a=image.clone();"IMG"===image.get(0).tagName?(a.attr("src",e),n?a.attr("srcset",n):(o.removeAttr("srcset"),a.removeAttr("srcset"))):a.get(0).style.backgroundImage="url('"+e+"')";var s=i('<div class="u-product-second-image-wrapper"/>');s.append(o),s.append(a),image.replaceWith(s)}}))}))}))},13911:function(t,e,n){"use strict";var i=n(31),Accordion=n(276);window._npAccordionInit=function(){function t(t){t.preventDefault(),t.stopPropagation();var link=i(t.currentTarget),accordion;new Accordion(link).show()}i("body").on("click",".u-accordion-link",t)},i((function(){window._npAccordionInit()}))},13912:function(t,e,n){"use strict";function i(t){var form=l(this),password=form.find("input[name=password]").val()||"",e=form.find("input[name=password_hash]");if(e.length){var hash=u.create().update(password).digest().toHex();return e.val(hash),void 0}t.preventDefault(),t.stopPropagation(),a(password,(function(){s(form)}))}function o(){a(localStorage.getItem(c)),l("#password-redirect-style").remove()}function a(password,t){if(password){var e=l("body"),n=e.attr("data-salt"),i=e.attr("data-salted-password"),hash=u.create().update(password).digest().toHex(),o=u.create().update(password+n).digest().toHex(),homePage,url=(e.attr("data-home-page")||window.location.pathname).replace(/\.html(\?[\s\S]*)?$/,"_"+hash+".html$1");o===i?(localStorage.setItem(c,password),window.location.replace(url)):"function"==typeof t&&t()}}function s(form){var t=form.find(".u-form-send-error");t.show(),setTimeout((function(){t.hide()}),2e3)}var u=n(13913),l=n(31),c="auth_key";window.sha256=u,window._npAuthInit=function(){var form;l(".u-password-control form").submit(i)},l((function(){window._npAuthInit(),o()}))},13913:function(t,e,n){"use strict";function i(){u=String.fromCharCode(128),u+=a.util.fillString(String.fromCharCode(0),64),c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=true}function o(t,e,n){for(var i,o,a,s,u,l,f,h,p,m,d,g,v,y,w,b=n.length();b>=64;){for(f=0;f<16;++f)e[f]=n.getInt32();for(;f<64;++f)i=((i=e[f-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,o=((o=e[f-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,e[f]=i+e[f-7]+o+e[f-16]|0;for(h=t.h0,p=t.h1,m=t.h2,d=t.h3,g=t.h4,v=t.h5,y=t.h6,w=t.h7,f=0;f<64;++f)a=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),l=h&p|m&(h^p),i=w+(s=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(u=y^g&(v^y))+c[f]+e[f],w=y,y=v,v=g,g=d+i>>>0,d=m,m=p,p=h,h=i+(o=a+l)>>>0;t.h0=t.h0+h|0,t.h1=t.h1+p|0,t.h2=t.h2+m|0,t.h3=t.h3+d|0,t.h4=t.h4+g|0,t.h5=t.h5+v|0,t.h6=t.h6+y|0,t.h7=t.h7+w|0,b-=64}}var a=n(1118);n(13914),n(13915);var s=t.exports=a.sha256=a.sha256||{};a.md.sha256=a.md.algorithms.sha256=s,s.create=function(){l||i();var t=null,e=a.util.createBuffer(),n=new Array(64),s={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){s.messageLength=0,s.fullMessageLength=s.messageLength64=[];for(var n=s.messageLengthSize/4,i=0;i<n;++i)s.fullMessageLength.push(0);return e=a.util.createBuffer(),t={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},s}};return s.start(),s.update=function(i,u){"utf8"===u&&(i=a.util.encodeUtf8(i));var l=i.length;s.messageLength+=l,l=[l/4294967296>>>0,l>>>0];for(var c=s.fullMessageLength.length-1;c>=0;--c)s.fullMessageLength[c]+=l[1],l[1]=l[0]+(s.fullMessageLength[c]/4294967296>>>0),s.fullMessageLength[c]=s.fullMessageLength[c]>>>0,l[0]=l[1]/4294967296>>>0;return e.putBytes(i),o(t,n,e),(e.read>2048||0===e.length())&&e.compact(),s},s.digest=function(){var i=a.util.createBuffer();i.putBytes(e.bytes());var l,c=s.fullMessageLength[s.fullMessageLength.length-1]+s.messageLengthSize&s.blockLength-1,f,h;i.putBytes(u.substr(0,s.blockLength-c));for(var p=8*s.fullMessageLength[0],m=0;m<s.fullMessageLength.length-1;++m)p+=h=(f=8*s.fullMessageLength[m+1])/4294967296>>>0,i.putInt32(p>>>0),p=f>>>0;i.putInt32(p);var g={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};o(g,n,i);var v=a.util.createBuffer();return v.putInt32(g.h0),v.putInt32(g.h1),v.putInt32(g.h2),v.putInt32(g.h3),v.putInt32(g.h4),v.putInt32(g.h5),v.putInt32(g.h6),v.putInt32(g.h7),v},s};var u=null,l=false,c=null},13914:function(t,e,n){"use strict";var i=n(1118);t.exports=i.md=i.md||{},i.md.algorithms=i.md.algorithms||{}},13915:function(t,e,n){"use strict";(function(e,i,o,a){function s(t){if(!(8===t||16===t||24===t||32===t))throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}function u(t){if(this.data="",this.read=0,"string"==typeof t)this.data=t;else if(util.isArrayBuffer(t)||util.isArrayBufferView(t))if(void 0!==a&&t instanceof a)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(t){for(var n=0;n<e.length;++n)this.putByte(e[n])}}else(t instanceof u||"object"==typeof t&&"string"==typeof t.data&&"number"==typeof t.read)&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}function l(t,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var n=util.isArrayBuffer(t),i=util.isArrayBufferView(t);if(n||i)return this.data=n?new DataView(t):new DataView(t.buffer,t.byteOffset,t.byteLength),this.write="writeOffset"in e?e.writeOffset:this.data.byteLength,void 0;this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=t&&this.putBytes(t),"writeOffset"in e&&(this.write=e.writeOffset)}var c=n(1118),f=n(13916),util=t.exports=c.util=c.util||{};!function(){if(void 0!==e&&e.nextTick&&!e.browser)return util.nextTick=e.nextTick,util.setImmediate="function"==typeof i?i:util.nextTick,void 0;if("function"==typeof i)return util.setImmediate=function(){return i.apply(void 0,arguments)},util.nextTick=function(t){return i(t)},void 0;if(util.setImmediate=function(t){setTimeout(t,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var t="forge.setImmediate",n=[];function e(e){if(e.source===window&&e.data===t){e.stopPropagation();var copy=n.slice();n.length=0,copy.forEach((function(t){t()}))}}util.setImmediate=function(e){n.push(e),1===n.length&&window.postMessage(t,"*")},window.addEventListener("message",e,true)}if("undefined"!=typeof MutationObserver){var o=Date.now(),a=true,s=document.createElement("div"),n=[];new MutationObserver((function(){var copy=n.slice();n.length=0,copy.forEach((function(t){t()}))})).observe(s,{attributes:true});var u=util.setImmediate;util.setImmediate=function(t){Date.now()-o>15?(o=Date.now(),u(t)):(n.push(t),1===n.length&&s.setAttribute("a",a=!a))}}util.nextTick=util.setImmediate}(),util.isNodejs=void 0!==e&&e.versions&&e.versions.node,util.globalScope=util.isNodejs?o:"undefined"==typeof self?window:self,util.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},util.isArrayBuffer=function(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer},util.isArrayBufferView=function(t){return t&&util.isArrayBuffer(t.buffer)&&void 0!==t.byteLength},util.ByteBuffer=u,util.ByteStringBuffer=u;var h=4096;util.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>h&&(this.data.substr(0,1),this._constructedStringLength=0)},util.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},util.ByteStrin
nicepage-copy.js at commit 8f72705, no license · at the source
Overview
- Institute of Psychiatry, Psychology and Neuroscience, King’s College London, London, United Kingdom
- Department of Information Engineering, University of Padua, Padua, Italy
- WILL Chair PSY Team, Centre LilNCog, INSERM U-1172, Lille, France
Abstract
In the era of data-intensive science, managing and verifying research processes that include raw data, analysis scripts, workflows, and documentation, remains a major challenge, particularly in complex fields like neuroimaging were multiple processing and analyses stages can take place. Fragmented tools, inconsistent documentation, and poor platform integration continue to undermine reproducibility. While current Electronic Lab Notebooks (ELNs) aid organization, they often lack cross-platform interoperability, authorship certification, and immutable auditability. To address these gaps, this study proposes a novel ELN framework IntegriLAB, that consolidates traditional data, document and code repositories into a centralized, web-based system for end-to-end project tracking. As a proof of concept, our case study integrates DataLad, Overleaf and GitHub. It allows real-time monitoring across the research cycle while preserving familiar workflows. A key innovation is the use of LabTrace built on green blockchain technology to certify research activities through cryptographically signed, immutable records, ensuring data integrity and verifiable authorship with minimal environmental impact. By unifying project management, secure data handling, and blockchain-based verification, the proposed ELN advances reproducibility, fosters trust, and strengthens collaborative research practices.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
Rubaida001/integriLAB01
8f72705c35fc82aa473b2380816b410765643158, 5 March 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
95 files
- Notebook/
__init__.py , Python, 1 line - Notebook/
asgi.py , Python, 16 lines - Notebook/
settings/ , Python, 1 line__init__.py - Notebook/
settings/ , Python, 170 linesbase.py - Notebook/
urls.py , Python, 31 lines - Notebook/
wsgi.py , Python, 16 lines - labTrace_sdk/
labtrace/ , Python, 362 linesclient.py - labTrace_sdk/
main.py , Python, 107 lines - labTrace_sdk/
setup.py , Python, 12 lines - manage.py, Python, 22 lines
- management/
__init__.py , Python, 1 line - management/
admin.py , Python, 61 lines - management/
apps.py , Python, 6 lines - management/
backends.py , Python, 28 lines - management/
forms.py , Python, 111 lines - management/
middleware.py , Python, 38 lines - management/
migrations/ , Python, 1 line__init__.py - management/
models.py , Python, 101 lines - management/
static/ , JavaScript, 5 linesmanagement/ js/ jquery-1.9.1.min.js - management/
static/ , JavaScript, 2 linesmanagement/ js/ jquery-copy.js - management/
static/ , JavaScript, 2 linesmanagement/ js/ jquery.js - management/
static/ , JavaScript, 35 lines, 1 matchmanagement/ js/ nicepage-copy.js - management/
static/ , JavaScript, 36 linesmanagement/ js/ nicepage-login.js - management/
static/ , JavaScript, 35 linesmanagement/ js/ nicepage.js - management/
tables.py , Python, 27 lines - management/
tests.py , Python, 3 lines - management/
urls.py , Python, 37 lines - management/
validation.py , Python, 25 lines - management/
views.py , Python, 454 lines - repository/
__init__.py , Python, 1 line - repository/
admin.py , Python, 143 lines - repository/
apps.py , Python, 6 lines - repository/
context_processors.py , Python, 10 lines - repository/
forms.py , Python, 93 lines - repository/
getCertificate.py , Python, 151 lines - repository/
getCodeRepoDetails.py , Python, 56 lines - repository/
getDataDetailsFromS3.py , Python, 60 lines - repository/
getDataRepoDetails.py , Python, 52 lines - repository/
getDocRepoDetails.py , Python, 118 lines - repository/
models.py , Python, 131 lines - repository/
static/ , JavaScript, 5 linesrepository/ js/ jquery-1.9.1.min.js - repository/
static/ , JavaScript, 2 linesrepository/ js/ jquery.js - repository/
static/ , JavaScript, 36 linesrepository/ js/ nicepage-login.js - repository/
static/ , JavaScript, 35 lines, 1 matchrepository/ js/ nicepage.js - repository/
templatetags/ , Python, 1 line__init__.py - repository/
templatetags/ , Python, 12 linescustom_filters.py - repository/
tests.py , Python, 3 lines - repository/
urls.py , Python, 53 lines - repository/
views.py , Python, 777 lines, 1 match - static/
bootstrap/ , JavaScript, 118 linesjs/ demo/ chart-area-demo.js - static/
bootstrap/ , JavaScript, 111 linesjs/ demo/ chart-bar-demo.js - static/
bootstrap/ , JavaScript, 35 linesjs/ demo/ chart-pie-demo.js - static/
bootstrap/ , JavaScript, 4 linesjs/ demo/ datatables-demo.js - static/
bootstrap/ , JavaScript, 56 linesjs/ sb-admin-2.js - static/
bootstrap/ , JavaScript, 7 linesjs/ sb-admin-2.min.js - static/
bootstrap/ , JavaScript, 5,843 linesvendor/ bootstrap/ js/ bootstrap.bundle.js - static/
bootstrap/ , JavaScript, 7 linesvendor/ bootstrap/ js/ bootstrap.bundle.min.js - static/
bootstrap/ , JavaScript, 4,432 linesvendor/ bootstrap/ js/ bootstrap.js - static/
bootstrap/ , JavaScript, 7 linesvendor/ bootstrap/ js/ bootstrap.min.js - static/
bootstrap/ , JavaScript, 7,602 linesvendor/ chart.js/ Chart.bundle.js - static/
bootstrap/ , JavaScript, 7 linesvendor/ chart.js/ Chart.bundle.min.js - static/
bootstrap/ , JavaScript, 7,600 linesvendor/ chart.js/ Chart.js - static/
bootstrap/ , JavaScript, 7 linesvendor/ chart.js/ Chart.min.js - static/
bootstrap/ , JavaScript, 184 linesvendor/ datatables/ dataTables.bootstrap4.js - static/
bootstrap/ , JavaScript, 8 linesvendor/ datatables/ dataTables.bootstrap4.mi n.js - static/
bootstrap/ , JavaScript, 6,838 linesvendor/ datatables/ jquery.dataTables.js - static/
bootstrap/ , JavaScript, 168 linesvendor/ datatables/ jquery.dataTables.min.js - static/
bootstrap/ , JavaScript, 3 linesvendor/ fontawesome-free/ attribution.js - static/
bootstrap/ , JavaScript, 332 linesvendor/ fontawesome-free/ js/ all.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ all.min.js - static/
bootstrap/ , JavaScript, 332 linesvendor/ fontawesome-free/ js/ brands.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ brands.min.js - static/
bootstrap/ , JavaScript, 998 linesvendor/ fontawesome-free/ js/ conflict-detection.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ conflict-detection.min.j s - static/
bootstrap/ , JavaScript, 2,483 linesvendor/ fontawesome-free/ js/ fontawesome.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ fontawesome.min.js - static/
bootstrap/ , JavaScript, 280 linesvendor/ fontawesome-free/ js/ regular.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ regular.min.js - static/
bootstrap/ , JavaScript, 448 linesvendor/ fontawesome-free/ js/ solid.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ solid.min.js - static/
bootstrap/ , JavaScript, 68 linesvendor/ fontawesome-free/ js/ v4-shims.js - static/
bootstrap/ , JavaScript, 5 linesvendor/ fontawesome-free/ js/ v4-shims.min.js - static/
bootstrap/ , JavaScript, 59 linesvendor/ jquery-easing/ jquery.easing.compatibil ity.js - static/
bootstrap/ , JavaScript, 166 linesvendor/ jquery-easing/ jquery.easing.js - static/
bootstrap/ , JavaScript, 1 linevendor/ jquery-easing/ jquery.easing.min.js - static/
bootstrap/ , JavaScript, 7,407 linesvendor/ jquery/ jquery.js - static/
bootstrap/ , JavaScript, 2 linesvendor/ jquery/ jquery.min.js - static/
bootstrap/ , JavaScript, 7,419 linesvendor/ jquery/ jquery.slim.js - static/
bootstrap/ , JavaScript, 2 linesvendor/ jquery/ jquery.slim.min.js - static/
intlTelInput/ , JavaScript, 8 linesintlTelInput.min.js - static/
intlTelInput/ , JavaScript, 381 linesutils.js - static/
js/ , JavaScript, 5 linesjquery-1.9.1.min.js - static/
js/ , JavaScript, 2 linesjquery.js - static/
js/ , JavaScript, 36 linesnicepage.js - README.md, Text, 96 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 94 scripts, each with its path and the digest of its content;
- 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The original contributions presented in the study are included in the article/
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 5 authors, 5 keywords, 1 funder, 26 references.
Cite
This paper
Easmin, R., Veronese, M., Allen, P., Nordio, G., & Turkheimer, F. (2026). IntegriLAB: a blockchain-enabled electronic lab notebook for reproducible neuroimaging research. Frontiers in neuroinformatics, 20, 1753937. https://
BibTeX
@article{easmin2026integ
author = {Easmin, Rubaida and Veronese, Mattia and Allen, Paul and Nordio, Giovanna and Turkheimer, Federico},
title = {{IntegriLAB: a blockchain-enabled electronic lab notebook for reproducible neuroimaging research}},
journal = {Frontiers in neuroinformatics},
year = {2026},
month = may,
volume = {20},
pages = {1753937},
publisher = {Frontiers Media SA},
issn = {1662-5196},
doi = {10.3389/
url = {https://
pmid = {42255115},
pmcid = {PMC13233703}
}
RIS
TY - JOUR
AU - Easmin, Rubaida
AU - Veronese, Mattia
AU - Allen, Paul
AU - Nordio, Giovanna
AU - Turkheimer, Federico
TI - IntegriLAB: a blockchain-enabled electronic lab notebook for reproducible neuroimaging research
T2 - Frontiers in neuroinformatics
J2 - Front Neuroinform
PY - 2026
DA - 2026/
VL - 20
SP - 1753937
SN - 1662-5196
PB - Frontiers Media SA
DO - 10.3389/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3389/
"type": "article-journal",
"title": "IntegriLAB: a blockchain-enabled electronic lab notebook for reproducible neuroimaging research",
"container-title": "Frontiers in neuroinformatics",
"author": [
{
"family": "Easmin",
"given": "Rubaida"
},
{
"family": "Veronese",
"given": "Mattia"
},
{
"family": "Allen",
"given": "Paul"
},
{
"family": "Nordio",
"given": "Giovanna"
},
{
"family": "Turkheimer",
"given": "Federico"
}
],
"container-title-short":
"volume": "20",
"page": "1753937",
"DOI": "10.3389/
"PMID": "42255115",
"PMCID": "PMC13233703",
"ISSN": "1662-5196",
"publisher": "Frontiers Media SA",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
21
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41380-026-03497-4 [code]
- Transcriptome-informed brain cartography of polygenic risk and association with brain structure in major psychiatric disorders.Journal: Molecular psychiatryIn common: 2 authors
- [2] doi:10.1016/j.dcn.2026.101755 [code]
- ABCD-ReproNim: An educational program for responsible and reproducible analyses of ABCD data.Journal: Developmental cognitive neuroscienceIn common: 5 references
- [3] doi:10.1002/hbm.70627 [code]
- Investigating the Contribution of Molecular-Enriched Functional Connectivity to Brain-Age Analysis.Journal: Human brain mappingIn common: 1 reference, author Mattia Veronese
- [4] doi:10.1093/schbul/sbag045 [code]
- Cortical Iron and Mesostriatal Dopamine Function in Schizophrenia: A Positron Emission Tomography and Magnetic Resonance Imaging Study.Journal: Schizophrenia bulletinIn common: author Mattia Veronese
- [5] doi:10.1016/j.bbih.2026.101274 [code]
- Brain dynamics of attentional, default-mode and limbic networks are disrupted at rest in post-COVID-19 syndrome.Journal: Brain, behavior, & immunity - healthIn common: author Federico Turkheimer
- [6] doi:10.64898/2026.04.08.26350385
- Associations between corticolimbic glutamatergic metabolites and functional connectivity in people at clinical high-risk for psychosisJournal: medRxiv (preprint)In common: author Federico Turkheimer
- [7] doi:10.1007/s11682-026-01191-1 [code]
- Enhancing reproducibility in neuroimaging with containerized archival.Journal: Brain imaging and behaviorIn common: 3 references
- [8] doi:10.1080/26941899.2026.2619222
- Neurodatascience: Past, Present, and Future.Journal: Data science in scienceIn common: 3 references
- [9] doi:10.1002/hbm.70559 [code]
- Replicability of Functional Brain Networks: A Study Through the Lens of Seven Resting-State Networks.Journal: Human brain mappingIn common: 2 references
- [10] doi:10.1162/imag.a.1274 [code]
- QuNex recipes: Executable, human-readable workflows for reproducible neuroimaging research.Journal: Imaging neuroscience (Cambridge, Mass.)In common: 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 94 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:6bd96b70756c73d2…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
